/* ── Hero banner ─────────────────────────────────────────────── */

.hero {
  position: relative;
  border-radius: 28px;
  padding: 38px 36px;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 58, 244, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Aurora orb 1 — electric blue, drifts top-left */
.hero::before {
  content: '';
  position: absolute;
  width: 70%;
  padding-bottom: 70%;
  top: -60%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 58, 244, 0.18) 0%,
    rgba(0, 30, 160, 0.08) 45%,
    transparent 70%);
  animation: aurora-a 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Aurora orb 2 — violet, drifts bottom-right */
.hero::after {
  content: '';
  position: absolute;
  width: 55%;
  padding-bottom: 55%;
  bottom: -55%;
  right: 0%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(122, 63, 245, 0.14) 0%,
    rgba(80, 30, 200, 0.06) 45%,
    transparent 70%);
  animation: aurora-b 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Hero orb3 + stars — injected as child divs */
.hero-orb3 {
  position: absolute;
  width: 38%;
  padding-bottom: 38%;
  top: 5%;
  right: 20%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30, 80, 220, 0.10) 0%,
    transparent 68%);
  animation: aurora-c 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(0,58,244,0.18) 0%, transparent 100%),
    radial-gradient(1px   1px   at 48% 75%, rgba(122,63,245,0.14) 0%, transparent 100%),
    radial-gradient(2px   2px   at 75% 30%, rgba(0,58,244,0.20) 0%, transparent 100%),
    radial-gradient(1px   1px   at 90% 65%, rgba(122,63,245,0.12) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 85%, rgba(0,58,244,0.15) 0%, transparent 100%),
    radial-gradient(1px   1px   at 62% 12%, rgba(122,63,245,0.10) 0%, transparent 100%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  position: relative;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.hero p {
  font-size: 16px;
  color: #4a5360;
  max-width: 580px;
  position: relative;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(80, 50, 200, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 50, 200, 0.4);
}

/* ── Metrics row ─────────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.metric {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.metric:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(0, 58, 244, 0.12);
}

.metric .val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric .lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8390;
  margin-top: 6px;
}

/* ── Flip tile (course cards) ────────────────────────────────── */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip {
  height: 320px;
  cursor: pointer;
}

.flip-face {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.flip:hover .flip-face {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.flip-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

/* Course cards — brand blue → violet family */
.flip-thumb.ai      { background: linear-gradient(135deg, #0030e8, #7A3FF5); }
.flip-thumb.neg     { background: linear-gradient(135deg, #1040e0, #6632ee); }
.flip-thumb.data    { background: linear-gradient(135deg, #0028dc, #5535e0); }
.flip-thumb.ooh     { background: linear-gradient(135deg, #0034dc, #8040f0); }
.flip-thumb.comm    { background: linear-gradient(135deg, #1e3ee0, #6a2fe0); }
.flip-thumb.default { background: linear-gradient(135deg, #003AF4, #7A3FF5); }

.req-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 77, 122, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
}

.opt-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(122, 63, 245, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
}

.flip-body {
  padding: 15px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flip-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flip-meta {
  font-size: 12px;
  color: #7a8390;
  margin-bottom: auto;
}

.prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.prog-bar {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: rgba(0, 58, 244, 0.1);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 4px;
}

.prog-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.front-btn {
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  border: none;
  padding: 9px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.front-btn:hover {
  background: rgba(0, 58, 244, 0.14);
}

/* ── Status card (simulations, surveys, paths) ───────────────── */

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.complete { background: #0f6e56; }
.status-dot.pending  { background: var(--blue); }
.status-dot.due      { background: var(--amber); }
.status-dot.on-track { background: #0f6e56; }
.status-dot.overdue  { background: var(--cherry); }

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill.complete { background: rgba(29, 158, 117, 0.15);  color: #0f6e56; }
.status-pill.pending  { background: rgba(77, 156, 255, 0.15);  color: #1a5fa8; }
.status-pill.due      { background: rgba(239, 159, 39, 0.15);  color: #854F0B; }
.status-pill.on-track { background: rgba(29, 158, 117, 0.15);  color: #0f6e56; }
.status-pill.overdue  { background: rgba(255, 77, 122, 0.15);  color: #8a1a3a; }

.card-meta {
  font-size: 13px;
  color: #6a7380;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-primary {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.3);
}

.btn-ghost {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(0, 58, 244, 0.14);
}

/* ── Learning path card ──────────────────────────────────────── */

.path-card {
  cursor: pointer;
}

.path-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.path-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.path-info .sub {
  font-size: 13px;
  color: #6a7380;
}

.path-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.path-pct {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.path-prog-wrap {
  margin-top: 14px;
}

.path-bar {
  height: 9px;
  border-radius: 5px;
  background: rgba(0, 58, 244, 0.1);
  overflow: hidden;
}

.path-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 5px;
}

.path-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.path-items {
  font-size: 12px;
  color: #7a8390;
}

.path-open {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}

/* ── Custom assignment row ───────────────────────────────────── */

.custom-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px 20px;
}

.custom-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.custom-info {
  flex: 1;
}

.custom-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.custom-info .sub {
  font-size: 12px;
  color: #7a8390;
}

.btn-small {
  padding: 8px 16px;
  border-radius: 11px;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  border: none;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-small:hover {
  background: rgba(0, 58, 244, 0.14);
}

/* ── Chart cards ─────────────────────────────────────────────── */

.chart-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.chart-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 22px;
}

.chart-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.donut {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.donut-legend {
  font-size: 12px;
  color: #5a6470;
}

.donut-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bar-mini {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bm-label {
  width: 84px;
  color: #5a6470;
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-track {
  flex: 1;
  height: 18px;
  border-radius: 6px;
  background: rgba(0, 58, 244, 0.07);
  overflow: hidden;
}

.bm-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 6px;
}

.bm-val {
  width: 34px;
  font-weight: 700;
  color: var(--blue);
}

.big-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.big-sub {
  font-size: 13px;
  color: #7a8390;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Tabs ────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 9px 18px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.6);
  color: #5a6470;
  transition: background 0.2s, color 0.2s;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.9);
}

.tab.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ── Data table ──────────────────────────────────────────────── */

.table-wrap {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  background: rgba(0, 58, 244, 0.06);
  text-align: left;
  padding: 13px 18px;
  font-weight: 700;
  color: var(--charcoal);
}

tbody td {
  padding: 13px 18px;
  border-top: 1px solid rgba(0, 58, 244, 0.06);
  color: #3a434f;
}

tbody tr:hover {
  background: rgba(0, 58, 244, 0.03);
}

.tbl-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
}

.tbl-pill.req { background: rgba(255, 77, 122, 0.12); color: #993556; }
.tbl-pill.opt { background: rgba(122, 63, 245, 0.12); color: #3C3489; }

.tbl-prog {
  font-weight: 700;
  color: var(--blue);
}

.tbl-link {
  font-weight: 600;
  color: #1a2030;
  text-decoration: none;
  cursor: pointer;
}

.tbl-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ── Glass modal ─────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 600px;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-modal);
  padding: 30px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.modal-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 90%;
  line-height: 1.2;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  color: #5a6470;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
}

.modal-sub {
  font-size: 13px;
  color: #6a7380;
  margin-bottom: 18px;
}

.modal-prog {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 58, 244, 0.05);
}

.modal-prog .mp-pct {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.modal-prog .mp-bar-wrap {
  flex: 1;
}

.mp-bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(0, 58, 244, 0.1);
  overflow: hidden;
}

.mp-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 6px;
}

.mp-count {
  font-size: 12px;
  color: #7a8390;
  margin-top: 7px;
}

.path-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #7a8390;
  margin: 18px 0 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-size: 13.5px;
}

.cl-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cl-status.done  { background: var(--green); }
.cl-status.prog  { background: var(--ocean); }
.cl-status.todo  { background: #c5cdd8; }

.cl-name {
  flex: 1;
  font-weight: 600;
}

.cl-due {
  font-size: 12px;
  color: #8a93a0;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .metrics      { grid-template-columns: repeat(3, 1fr); }
  .course-grid  { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2  { grid-template-columns: 1fr; }
  .chart-row    { grid-template-columns: 1fr; }
}

/* ── Level badge ─────────────────────────────────────────────── */

.level-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9px;
  letter-spacing: 0.01em;
}

/* ── Horizontal scroll row (Catalog sections) ───────────────── */

.catalog-scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Custom thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.18) transparent;
}

.catalog-scroll-row::-webkit-scrollbar {
  height: 5px;
}

.catalog-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 244, 0.18);
  border-radius: 3px;
}

/* Flip tiles inside a scroll row have fixed width */
.catalog-scroll-row .flip {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: start;
}

/* Exclusives badge overlaid on tile thumbnail */
.exclusive-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 8px;
}

/* billups Original badge keeps brand casing — not all-caps like the trending badge */
.exclusive-badge--original {
  text-transform: none;
}

/* ── Filter bar (Catalog) ────────────────────────────────────── */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b0;
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.filter-search input:focus {
  border-color: rgba(0, 58, 244, 0.3);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #7a8390;
  white-space: nowrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.65);
  color: #5a6470;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
}

.filter-pill.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.results-count {
  font-size: 13px;
  color: #7a8390;
  margin-bottom: 16px;
  font-weight: 500;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 32px;
  text-align: center;
  color: #7a8390;
}

.empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 15px;
  font-weight: 600;
  color: #3a434f;
  margin-bottom: 6px;
}

.empty-state span {
  font-size: 13px;
}

/* ── Available simulation card ───────────────────────────────── */

.sim-available-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.sim-available-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.sim-available-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sim-available-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.sim-available-meta {
  font-size: 13px;
  color: #6a7380;
}

.sim-available-desc {
  font-size: 13px;
  color: #5a6470;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Simulation detail modal ─────────────────────────────────── */

.sim-scenario-block {
  background: rgba(0, 58, 244, 0.04);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.sim-scenario-block h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8390;
  margin-bottom: 8px;
}

.sim-scenario-block p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a434f;
}

.rubric-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rubric-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
}

.rubric-weight {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 1px;
  flex-shrink: 0;
}

.rubric-criterion {
  flex: 1;
  line-height: 1.45;
}

.attempt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.attempt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.attempt-score {
  font-size: 20px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.attempt-meta {
  flex: 1;
  color: #6a7380;
}

.no-attempts {
  font-size: 13px;
  color: #9aa3b0;
  padding: 12px 0;
  margin-bottom: 20px;
}

.modal-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-coming-soon {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-coming-soon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(80, 50, 200, 0.35);
}

/* ── Simulation cards ────────────────────────────────────────── */

.sim-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.sim-card {
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.sim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail — simulation cards: deep navy → electric blue family */
.sim-card-thumb {
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.sim-card-thumb.ai      { background: linear-gradient(135deg, #06102e, #003AF4); }
.sim-card-thumb.neg     { background: linear-gradient(135deg, #080e26, #0a38e0); }
.sim-card-thumb.data    { background: linear-gradient(135deg, #040b20, #0028d4); }
.sim-card-thumb.ooh     { background: linear-gradient(135deg, #060d24, #0832d4); }
.sim-card-thumb.comm    { background: linear-gradient(135deg, #070f22, #1038c8); }
.sim-card-thumb.default { background: linear-gradient(135deg, #0a1560, #003AF4); }

/* Status pill — top-right of thumbnail */
.sim-thumb-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
}

.sim-thumb-status.complete {
  background: rgba(0, 58, 244, 0.88);
  color: #fff;
}

.sim-thumb-status.pending {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
}

/* Level badge — bottom-left of thumbnail */
.sim-thumb-level {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card body */
.sim-card-body {
  flex: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2030;
  line-height: 1.3;
}

.sim-card-meta {
  font-size: 12.5px;
  color: #7a8390;
}

.sim-card-due {
  color: #d44f6a;
  font-weight: 600;
}

.sim-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-skill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(0, 58, 244, 0.07);
  color: #3a434f;
}

/* CTA button */
.sim-card-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sim-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(80, 50, 200, 0.35);
}

@media (max-width: 1100px) {
  .sim-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Sortable table header ────────────────────────────────────── */

.sort-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.sort-th:hover {
  background: rgba(0, 58, 244, 0.09);
}

.sort-icon {
  display: inline-block;
  margin-left: 5px;
  opacity: 0.35;
  font-size: 10px;
}

.sort-th.active .sort-icon {
  opacity: 1;
  color: var(--blue);
}

/* ── Team Learning ───────────────────────────────────────────── */

/* Overdue warning variant for .val in the metrics strip */
.val-warn { color: var(--cherry) !important; }

/* Overdue warning variant for .big-num in modals */
.big-num--warn { color: var(--cherry); }

/* Clickable team table rows */
.js-team-row {
  cursor: pointer;
  transition: background 0.15s;
}
.js-team-row:hover { background: rgba(0, 58, 244, 0.04); }

/* Member cell — avatar + name/dept */
.tm-member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tm-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.tm-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2030;
  white-space: nowrap;
}

.tm-dept {
  font-size: 12px;
  color: #9aa3b0;
  margin-top: 1px;
}

/* Completion cell — % + mini bar stacked */
.tm-comp-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tm-comp-pct {
  font-size: 14px;
  font-weight: 700;
  color: #003AF4;
}

/* Compact progress bar used in table cells */
.prog-mini {
  width: 90px;
  height: 5px;
  background: rgba(0, 58, 244, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.prog-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Path name in Active path column */
.tm-path-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #3a434f;
  margin-bottom: 5px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-path-more {
  font-size: 11px;
  font-weight: 600;
  color: #003AF4;
  margin-top: 4px;
}

/* Overdue count pill */
.overdue-count {
  display: inline-block;
  background: rgba(241, 104, 141, 0.12);
  color: #c0315a;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

/* Overdue alert block inside member modal */
.tm-overdue-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(241, 104, 141, 0.08);
  border: 1px solid rgba(241, 104, 141, 0.22);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #7a3040;
}

.tm-overdue-alert-count {
  font-size: 18px;
  font-weight: 800;
  color: #c0315a;
  flex-shrink: 0;
}

/* ── Team training log ───────────────────────────────────────── */

/* Scrollable inner container — keeps .table-wrap border-radius intact */
.tl-scroll-body {
  max-height: 480px;
  overflow-y: auto;
  /* Thin custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.25) transparent;
}

.tl-scroll-body::-webkit-scrollbar       { width: 6px; }
.tl-scroll-body::-webkit-scrollbar-track { background: transparent; }
.tl-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 244, 0.25);
  border-radius: 3px;
}

/* Sticky header within scroll body */
.tl-scroll-body thead th {
  position: sticky;
  top: 0;
  background: rgba(240, 244, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Export button row — right-aligned below the table */
.tl-export-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Small gradient button variant */
.btn-primary--sm {
  flex: none;
  width: fit-content;
  padding: 6px 16px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* Platform badge pills */
.tl-platform {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.tl-platform--coursera {
  background: rgba(0, 86, 210, 0.1);
  color: #0047b3;
}

.tl-platform--ethena {
  background: rgba(99, 54, 240, 0.1);
  color: #4a2db5;
}

.tl-platform--billups {
  background: rgba(0, 58, 244, 0.1);
  color: #003AF4;
}

/* Overdue date text in training log */
.tl-overdue-date {
  color: var(--cherry);
  font-weight: 700;
}

/* ── Feedback link button ────────────────────────────────────── */

.feedback-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback-link:hover { color: var(--violet); }

/* ── Catalog — Aurora Learning Advisor card ──────────────────── */

.catalog-advisor-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #040e28;
  padding: 40px 44px;
  margin-bottom: 28px;
  min-height: 220px;
  display: flex;
  align-items: center;
}

/* Aurora orb 1 — electric blue, drifts slowly top-left */
.catalog-advisor-card::before {
  content: '';
  position: absolute;
  width: 65%;
  padding-bottom: 65%;
  top: -30%;
  left: -5%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 58, 244, 0.70) 0%,
    rgba(0, 30, 160, 0.30) 45%,
    transparent 70%);
  animation: aurora-a 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Aurora orb 2 — mystic violet, drifts bottom-right */
.catalog-advisor-card::after {
  content: '';
  position: absolute;
  width: 55%;
  padding-bottom: 55%;
  bottom: -25%;
  right: 5%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(122, 63, 245, 0.65) 0%,
    rgba(80, 30, 200, 0.28) 45%,
    transparent 70%);
  animation: aurora-b 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-a {
  from { transform: translate(0,   0)   scale(1);    }
  to   { transform: translate(18%, 12%) scale(1.28); }
}

@keyframes aurora-b {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(-14%, -9%) scale(1.22); }
}

/* Third accent orb — indigo, sits center-right */
.aurora-orb3 {
  position: absolute;
  width: 40%;
  padding-bottom: 40%;
  top: 10%;
  right: 22%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30, 80, 220, 0.40) 0%,
    transparent 68%);
  animation: aurora-c 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-c {
  from { transform: translate(0,   0)   scale(1);    }
  to   { transform: translate(-8%, 14%) scale(1.18); }
}

/* Starfield dots */
.aurora-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 44% 72%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(2px   2px   at 71% 28%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1px   1px   at 88% 62%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 88%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 60% 10%, rgba(255,255,255,0.30) 0%, transparent 100%);
  pointer-events: none;
}

/* Content layer — sits above orbs */
.catalog-advisor-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.catalog-advisor-text {
  flex: 1;
  min-width: 0;
}

.catalog-advisor-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: rgba(150, 180, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.catalog-advisor-headline {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.catalog-advisor-desc {
  font-size: 14px;
  color: rgba(210, 220, 255, 0.72);
  line-height: 1.6;
  max-width: 480px;
}

/* Catalog card input form */
.catalog-advisor-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 340px;
}

.catalog-input-wrap {
  position: relative;
  flex: 1;
}

.catalog-input-wrap input {
  width: 100%;
  padding: 13px 46px 13px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.catalog-input-wrap input::placeholder {
  color: rgba(180, 195, 255, 0.60);
}

.catalog-input-wrap input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
}

/* Mic button inside catalog input */
.catalog-mic-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: rgba(180, 200, 255, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: color 0.2s;
}

.catalog-mic-btn:hover   { color: rgba(255, 255, 255, 0.9); }
.catalog-mic-btn.listening {
  color: #ff6b8a;
  animation: mic-pulse 1.1s ease-in-out infinite;
}

/* Catalog card submit button */
.catalog-advisor-submit {
  padding: 13px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.catalog-advisor-submit:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ── Learning Advisor centered glass modal ────────────────────── */

.advisor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.advisor-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.advisor-modal {
  width: 100%;
  max-width: 680px;
  height: min(680px, 78vh);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(56px) saturate(200%);
  -webkit-backdrop-filter: blur(56px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow:
    0 32px 80px rgba(0, 20, 80, 0.24),
    0 0 0 1px rgba(0, 58, 244, 0.07);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.advisor-modal-overlay.open .advisor-modal {
  transform: translateY(0) scale(1);
}

/* Modal header */

.advisor-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  flex-shrink: 0;
}

.advisor-head-info {
  display: flex;
  align-items: center;
  gap: 13px;
}

.advisor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.36);
}

.advisor-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a2030;
  letter-spacing: -0.01em;
}

.advisor-subtitle {
  font-size: 11.5px;
  color: #8a93a0;
  margin-top: 2px;
}

.advisor-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 17px;
  color: #5a6470;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.advisor-modal-close:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #1a2030;
}

/* Messages (scrollable) */

.advisor-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.14) transparent;
}

.advisor-messages::-webkit-scrollbar       { width: 4px; }
.advisor-messages::-webkit-scrollbar-track  { background: transparent; }
.advisor-messages::-webkit-scrollbar-thumb  {
  background: rgba(0, 58, 244, 0.14);
  border-radius: 2px;
}

/* Welcome state */

.advisor-welcome p {
  font-size: 14px;
  color: #4a5360;
  line-height: 1.65;
  margin-bottom: 18px;
}

.advisor-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.advisor-prompt-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 58, 244, 0.20);
  background: rgba(0, 58, 244, 0.05);
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}

.advisor-prompt-chip:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* Message bubbles */

.advisor-msg               { display: flex; }
.advisor-msg--user         { justify-content: flex-end; }
.advisor-msg--assistant    { justify-content: flex-start; }

.advisor-bubble {
  max-width: 84%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}

.advisor-msg--user .advisor-bubble {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 14px rgba(80, 50, 200, 0.22);
}

.advisor-msg--assistant .advisor-bubble {
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(0, 58, 244, 0.10);
  color: #1e2a38;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 58, 244, 0.05);
}

.advisor-msg--assistant .advisor-bubble a {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 2px;
}

.advisor-msg--assistant .advisor-bubble strong { color: #1a2030; }

/* Typing indicator */

.advisor-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}

.advisor-typing span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.45;
  animation: advisor-bounce 1.3s ease-in-out infinite;
}

.advisor-typing span:nth-child(2) { animation-delay: 0.18s; }
.advisor-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes advisor-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.45; }
  30%            { transform: translateY(-7px); opacity: 1;    }
}

/* Input bar (fixed to modal bottom) */

.advisor-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(0, 58, 244, 0.08);
  flex-shrink: 0;
}

.advisor-input-wrap {
  position: relative;
  flex: 1;
}

.advisor-input-wrap input {
  width: 100%;
  padding: 12px 46px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 58, 244, 0.20);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  color: #1a2030;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.advisor-input-wrap input::placeholder { color: #9aa3b0; }

.advisor-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.09);
}

/* Mic button inside modal input */

.advisor-mic {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #9aa3b0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: color 0.2s;
}

.advisor-mic:hover     { color: var(--blue); }
.advisor-mic.listening {
  color: #ff4d7a;
  animation: mic-pulse 1.1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1;    transform: translateY(-50%) scale(1);    }
  50%       { opacity: 0.65; transform: translateY(-50%) scale(1.18); }
}

/* Send button */

.advisor-send {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.28);
}

.advisor-send:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(80, 50, 200, 0.42);
}

/* ── Scope selector (Team Learning + Assign Training) ───────────── */

.tm-scope-bar {
  display: flex;
  gap: 4px;
  background: rgba(0, 58, 244, 0.06);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}

.tm-scope-btn {
  padding: 7px 20px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #7a8390;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.tm-scope-btn:hover { color: var(--blue); }

.tm-scope-btn.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* Sub-manager group header row */
.tm-subteam-header {
  cursor: pointer;
  user-select: none;
}

.tm-subteam-header:hover .tm-subteam-hd-cell {
  background: rgba(0, 58, 244, 0.04);
}

.tm-subteam-hd-cell {
  padding: 8px 16px !important;
  background: rgba(0, 58, 244, 0.025);
  border-top: 1px solid rgba(0, 58, 244, 0.08);
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #3a434f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-subteam-arrow {
  font-size: 10px;
  color: var(--blue);
  width: 14px;
  flex-shrink: 0;
}

.tm-subteam-count {
  font-size: 12px;
  font-weight: 500;
  color: #9aa3b0;
}

/* Indented sub-report rows */
.tm-sub-row td { background: rgba(0, 58, 244, 0.015); }
.tm-sub-row:hover td { background: rgba(0, 58, 244, 0.04); }

.tm-member-cell--indent {
  padding-left: 20px;
}

/* ── Assign Training page ──────────────────────────────────────── */

/* Member chip picker */
.at-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.at-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 12px;
  border-radius: 40px;
  border: 1.5px solid rgba(0, 58, 244, 0.18);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  color: #3a434f;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.at-chip:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 58, 244, 0.12);
}

.at-chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 58, 244, 0.28);
}

.at-chip--all {
  padding-left: 14px;
}

.at-chip-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  flex-shrink: 0;
}

/* Grouped member picker (full-team mode) */
.at-grouped-picker {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 58, 244, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}

.at-picker-all-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(0, 58, 244, 0.04);
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  cursor: pointer;
  transition: background 0.15s;
}

.at-picker-all-row:hover,
.at-picker-all-row.selected { background: rgba(0, 58, 244, 0.07); }

.at-picker-all-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #3a434f;
}

.at-picker-section-label {
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3b0;
}

.at-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.at-picker-row:last-child { border-bottom: none; }

.at-picker-row:hover     { background: rgba(0, 58, 244, 0.03); }
.at-picker-row.selected  { background: rgba(0, 58, 244, 0.05); }

.at-picker-row--indent { padding-left: 42px; }

.at-picker-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
  flex-shrink: 0;
}

.at-picker-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2030;
  flex: 1;
}

.at-picker-dept {
  font-size: 12px;
  color: #9aa3b0;
  white-space: nowrap;
}

.at-picker-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 6px;
  background: rgba(0, 58, 244, 0.025);
  border-top: 1px solid rgba(0, 58, 244, 0.07);
}

.at-picker-group-label {
  font-size: 13px;
  font-weight: 700;
  color: #3a434f;
  flex: 1;
}

.at-picker-group-check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Catalog controls bar */
.at-catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.at-search {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 58, 244, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  color: #1a2030;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.at-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.08);
}

.at-search::placeholder { color: #9aa3b0; }

/* Segmented type filter */
.at-tabs {
  display: flex;
  background: rgba(0, 58, 244, 0.06);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.at-tab {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #7a8390;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.at-tab:hover { color: var(--blue); }

.at-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Selected count badge in section header */
.at-selected-badge {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: 8px;
}

/* Catalog table row states */
.at-catalog-row { cursor: pointer; }

.at-catalog-row:hover td { background: rgba(0, 58, 244, 0.03); }

.at-catalog-row.selected td { background: rgba(0, 58, 244, 0.05); }

.at-item-title {
  font-weight: 600;
  color: #1a2030;
  max-width: 340px;
}

/* Checkbox styling */
.at-check {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Type badges */
.at-type-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.at-type-badge--crs {
  background: rgba(0, 160, 100, 0.1);
  color: #006a42;
}

.at-type-badge--sim {
  background: rgba(122, 63, 245, 0.1);
  color: #5a28c0;
}

/* Details row */
.at-details-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 32px;
}

.at-detail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #3a434f;
}

.at-field-opt {
  font-weight: 400;
  color: #9aa3b0;
}

.at-date-input {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 58, 244, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  color: #1a2030;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  box-sizing: border-box;
}

.at-date-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.08);
}

.at-note-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 58, 244, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  color: #1a2030;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  line-height: 1.5;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}

.at-note-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.08);
}

.at-note-input::placeholder { color: #b0b8c4; }

/* Submit row */
.at-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 58, 244, 0.1);
  border-radius: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.at-submit-summary {
  font-size: 14px;
  color: #7a8390;
  margin: 0;
  font-weight: 500;
}

/* Toast */
.at-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1a2030;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.at-toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Learning Paths ─────────────────────────────────────────────── */

.lp-main-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-title-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e8ef;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #1a222e;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.lp-title-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.09);
}

.lp-title-input::placeholder { color: #b0b8c4; }

.lp-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #9aa3b0;
  line-height: 1.5;
}

/* ── Learning Paths builder banner ──────────────────────────────── */

.lp-builder-banner {
  cursor: pointer;
  margin-bottom: 0;
  transition: filter 0.2s;
}
.lp-builder-banner:hover  { filter: brightness(1.08); }
.lp-builder-banner:focus  { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 3px; }

.lp-builder-btn {
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
  pointer-events: none; /* banner click handles it */
}
.lp-builder-banner:hover .lp-builder-btn {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Ghost button small ──────────────────────────────────────────── */

.btn-ghost--sm {
  flex: none;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-ghost--sm:hover    { background: rgba(0, 58, 244, 0.14); }
.btn-ghost--sm:disabled { opacity: 0.4; cursor: default; }

/* ── Custom-type badge ───────────────────────────────────────────── */

.at-type-badge--ca {
  background: rgba(122, 63, 245, 0.1);
  color: #7A3FF5;
}

/* ── Learning Paths — pre-built tiles ────────────────────────────── */

.lp-tpl-grid-wrap {
  height: 656px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.25) transparent;
}
.lp-tpl-grid-wrap::-webkit-scrollbar {
  width: 5px;
}
.lp-tpl-grid-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.lp-tpl-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 244, 0.25);
  border-radius: 99px;
}

.lp-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lp-template-card {
  height: 320px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  outline: none;
}
.lp-template-card:hover,
.lp-template-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 58, 244, 0.12);
}

.lp-tpl-header {
  flex: 0 0 132px;
  background: var(--grad);
}

.lp-tpl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.lp-tpl-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lp-tpl-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
}
.lp-tpl-badge--admin {
  background: rgba(0, 58, 244, 0.1);
  color: var(--blue);
}
.lp-tpl-badge--mine {
  background: rgba(122, 63, 245, 0.1);
  color: #7A3FF5;
}

.lp-tpl-item-count {
  font-size: 12px;
  color: #9aa3b0;
  font-weight: 600;
}

.lp-tpl-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a222e;
  line-height: 1.3;
  margin-bottom: 4px;
}

.lp-tpl-meta {
  font-size: 12px;
  color: #9aa3b0;
  margin-bottom: 6px;
}

.lp-tpl-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
}

.lp-tpl-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lp-tpl-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: #7a8390;
}

.lp-tpl-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: #9aa3b0;
  font-size: 14px;
}

/* ── Template filter bar ─────────────────────────────────────────── */

.lp-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lp-filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}

.lp-filter-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b0;
  pointer-events: none;
}

.lp-filter-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px 34px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-filter-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.08);
}

.lp-filter-dropdown-wrap {
  position: relative;
}

.lp-filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-family: inherit;
  color: #3a4250;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.lp-filter-btn:hover {
  border-color: #c5cad4;
  background: #fff;
}
.lp-filter-btn--active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 58, 244, 0.06);
  font-weight: 600;
}

.lp-filter-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-height: 264px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.2) transparent;
}

.lp-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #3a4250;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.lp-filter-option:hover {
  background: #f5f7ff;
}
.lp-filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.lp-filter-clear-btn {
  padding: 7px 10px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  color: #9aa3b0;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.lp-filter-clear-btn:hover {
  color: var(--blue);
}

/* ── Divider ─────────────────────────────────────────────────────── */

.lp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  color: #c0c8d4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lp-divider::before,
.lp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eaecf0;
}

/* ── Inline custom assignment form ───────────────────────────────── */

.lp-ca-inline {
  margin-bottom: 16px;
  background: rgba(0, 58, 244, 0.03);
  border: 1.5px dashed rgba(0, 58, 244, 0.2);
}

/* ── Wide modal override ─────────────────────────────────────────── */

.modal--wide {
  max-width: 860px !important;
  padding: 0 !important;
  overflow-y: hidden !important;
  display: flex;
  flex-direction: column;
}

/* ── Template modal interior ─────────────────────────────────────── */

.lp-modal-wrap {
  display: flex;
  flex-direction: column;
  max-height: 82vh;
}

.lp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #eaecf0;
  flex-shrink: 0;
}

.lp-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a222e;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.lp-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
}

.lp-modal-section {
  margin-bottom: 24px;
}

.lp-modal-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #7a8390;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-modal-items-scroll {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 0 12px;
}

.lp-modal-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: opacity 0.15s;
}
.lp-modal-item-row:last-child { border-bottom: none; }

.lp-item-excluded {
  opacity: 0.38;
}

.lp-modal-item-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lp-modal-item-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #1a222e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-modal-item-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lp-modal-item-date {
  width: 136px;
  padding: 6px 10px;
  border: 1.5px solid #e5e8ef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: #1a222e;
  background: #fff;
  cursor: pointer;
}
.lp-modal-item-date:focus { outline: none; border-color: var(--blue); }

.lp-modal-item-comment {
  width: 160px;
  padding: 6px 10px;
  border: 1.5px solid #e5e8ef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: #1a222e;
  background: #fff;
}
.lp-modal-item-comment:focus   { outline: none; border-color: var(--blue); }
.lp-modal-item-comment::placeholder { color: #b0b8c4; }

/* ── Search dropdown ─────────────────────────────────────────────── */

.lp-search-wrap { position: relative; }

.lp-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e5e8ef;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
}

.lp-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s;
}
.lp-search-result:last-child  { border-bottom: none; }
.lp-search-result:hover       { background: #f5f7ff; }

.lp-search-result-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lp-search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a222e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-search-result-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lp-search-result-dur {
  font-size: 12px;
  color: #9aa3b0;
}

.lp-search-create {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border-top: 1px solid #eaecf0;
  transition: background 0.12s;
}
.lp-search-create:hover { background: #f5f7ff; }

/* Responsive */
@media (max-width: 768px) {
  .at-details-row          { grid-template-columns: 1fr; }
  .at-submit-row           { flex-direction: column; align-items: flex-start; }
  .lp-modal-item-controls  { display: none; }
}

/* ── Custom assignment cards (My Learning) ───────────────────────── */

.ca-card {
  height: 320px;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  outline: none;
  box-shadow: var(--shadow-card);
}
.ca-card:hover,
.ca-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(122, 63, 245, 0.14);
}
.ca-card-thumb {
  flex: 0 0 140px;
  background: linear-gradient(135deg, #4c1bb5, #7A3FF5, #003AF4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.ca-card-body {
  flex: 1;
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
}
.ca-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7A3FF5;
  margin-bottom: 5px;
}
.ca-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2030;
  margin: 0 0 6px;
  line-height: 1.35;
}
.ca-card-sub {
  font-size: 12px;
  color: #9aa3b0;
  line-height: 1.4;
}
.ca-card-foot {
  padding: 0 16px 16px;
  margin-top: auto;
}
.ca-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3a4250;
  user-select: none;
}
/* Done state */
.ca-card--done .ca-card-thumb {
  opacity: 0.55;
}
.ca-card--done .ca-card-title {
  text-decoration: line-through;
  opacity: 0.55;
}
.ca-card--done .ca-card-sub {
  opacity: 0.6;
}
.ca-card--done .ca-check-label {
  color: #0f6e56;
}

/* ── Learning path card thumb — indigo → violet ──────────────── */
.lp-card-thumb {
  flex: 0 0 140px;
  background: linear-gradient(135deg, #1a0a6e, #7A3FF5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Survey card thumb — violet → soft magenta ───────────────── */
.survey-card-thumb {
  flex: 0 0 140px;
  background: linear-gradient(135deg, #7A3FF5, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Checklist modal list ────────────────────────────────────── */
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checklist-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s;
}

.checklist-row:last-child {
  border-bottom: none;
}

.checklist-row--done {
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════
   KPI DASHBOARD
   ══════════════════════════════════════════════════════════════════ */

/* ── Grid & base card ───────────────────────────────────────────── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.kpi-card--full {
  margin-bottom: 28px;
}

/* ── Card header ────────────────────────────────────────────────── */

.kpi-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.kpi-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Region select ──────────────────────────────────────────────── */

.kpi-region-select {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background-color: rgba(0, 58, 244, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23003AF4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid rgba(0, 58, 244, 0.18);
  border-radius: 8px;
  padding: 4px 26px 4px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.kpi-region-select:hover {
  border-color: var(--blue);
  background-color: rgba(0, 58, 244, 0.12);
}

/* ── Big number ─────────────────────────────────────────────────── */

.kpi-big-num {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.kpi-big-num--sm {
  font-size: 38px;
  margin-bottom: 8px;
}

.kpi-card-sub {
  font-size: 13px;
  color: #7a8390;
  margin-bottom: 18px;
  line-height: 1.5;
}

.kpi-card-sub--tight {
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── Progress bar (active learners) ────────────────────────────── */

.kpi-bar-track {
  height: 8px;
  background: rgba(0, 58, 244, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.kpi-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 4px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-bar-foot {
  font-size: 12px;
  color: #9aa3b0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.kpi-bar-foot-r {
  margin-left: auto;
  color: #b0b8c4;
}

/* ── Split bar (enrollments) ────────────────────────────────────── */

.kpi-split-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
  gap: 3px;
}

.kpi-split-seg {
  border-radius: 5px;
  min-width: 4px;
}

.kpi-split-course { background: var(--blue); }
.kpi-split-sim    { background: var(--violet); }

.kpi-split-legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: #7a8390;
  font-weight: 500;
}

.kpi-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kpi-ld-course { background: var(--blue); }
.kpi-ld-sim    { background: var(--violet); }

/* ── Donut ring (required training) ────────────────────────────── */

.kpi-donut-layout {
  display: flex;
  align-items: center;
  gap: 22px;
}

.kpi-donut-svg {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.kpi-donut-track {
  fill: none;
  stroke: rgba(0, 58, 244, 0.08);
  stroke-width: 9;
}

.kpi-donut-progress {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-donut-pct-text {
  fill: var(--charcoal);
  font-size: 17px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: auto;
  font-family: var(--font);
}

.kpi-donut-sub-text {
  fill: #9aa3b0;
  font-size: 8.5px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: auto;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-donut-info {
  flex: 1;
  min-width: 0;
}

.kpi-donut-gap-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #9aa3b0;
  background: rgba(0, 58, 244, 0.05);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ── Top learners section ───────────────────────────────────────── */

.kpi-learner-subhd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9aa3b0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.06);
  margin-bottom: 2px;
}

.kpi-learner-count-lbl {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  padding-right: 4px;
}

.kpi-learner-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
}

.kpi-learner-row:last-child { border-bottom: none; }

.kpi-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.kpi-learner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.kpi-learner-info {
  flex: 1;
  min-width: 0;
}

.kpi-learner-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-learner-meta {
  display: flex;
  gap: 6px;
}

.kpi-dept-chip {
  font-size: 11px;
  font-weight: 600;
  color: #5a6474;
  background: rgba(0, 58, 244, 0.06);
  border-radius: 5px;
  padding: 2px 7px;
}

.kpi-region-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(122, 63, 245, 0.08);
  border-radius: 5px;
  padding: 2px 7px;
}

.kpi-learner-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 210px;
  flex-shrink: 0;
}

.kpi-learner-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 58, 244, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.kpi-learner-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-learner-count {
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
  min-width: 28px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════════
   COURSE LIBRARY
   ══════════════════════════════════════════════════════════════════ */

/* ── Toolbar ────────────────────────────────────────────────────── */

.cl-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cl-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.cl-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b0;
  font-size: 16px;
  pointer-events: none;
}

.cl-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font);
}

.cl-search-input:focus { border-color: rgba(0, 58, 244, 0.3); }

.cl-filter-select {
  padding: 9px 30px 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8390' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-size: 14px;
  font-family: var(--font);
  color: var(--charcoal);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.cl-filter-select:hover { border-color: rgba(0, 58, 244, 0.25); }

.cl-create-btn {
  margin-left: auto;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(80, 50, 200, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cl-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(80, 50, 200, 0.38);
}

/* ── Table ──────────────────────────────────────────────────────── */

.cl-table-wrap {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.cl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cl-table thead {
  background: rgba(0, 58, 244, 0.03);
  border-bottom: 1px solid rgba(0, 58, 244, 0.07);
}

.cl-table th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8390;
  text-align: left;
  white-space: nowrap;
}

.cl-th-sort {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.cl-th-sort:hover { color: var(--blue); }
.cl-th-active     { color: var(--blue); }

.cl-th-actions { text-align: right; }

.cl-table tbody tr {
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
  transition: background 0.15s;
}

.cl-table tbody tr:last-child { border-bottom: none; }

.cl-table tbody tr:hover { background: rgba(0, 58, 244, 0.025); }

.cl-table td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--charcoal);
}

.cl-td-title   { min-width: 220px; }
.cl-td-cat     { color: #5a6474; font-size: 13px; }
.cl-td-req     { text-align: center; }
.cl-td-num     { font-weight: 700; text-align: right; }
.cl-td-compl   { min-width: 140px; }
.cl-td-actions { text-align: right; white-space: nowrap; }

.cl-course-title {
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.cl-course-dur {
  font-size: 11px;
  color: #9aa3b0;
  font-weight: 500;
}

/* ── Platform chips ─────────────────────────────────────────────── */

.cl-platform-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.cl-plat--coursera { background: rgba(0,119,182,0.10); color: #0077b6; }
.cl-plat--billups  { background: rgba(0,58,244,0.10);  color: var(--blue); }
.cl-plat--ethena   { background: rgba(122,63,245,0.10); color: var(--violet); }
.cl-plat--other    { background: rgba(0,58,244,0.06);  color: #5a6474; }

/* ── Required dot ───────────────────────────────────────────────── */

.cl-req-dot       { font-size: 14px; }
.cl-req-dot--req  { color: #0f6e56; }
.cl-req-dot--opt  { color: #c0c8d4; }

/* ── Completion bar ─────────────────────────────────────────────── */

.cl-compl-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-compl-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 58, 244, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.cl-compl-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
}

.cl-compl-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  min-width: 34px;
  text-align: right;
}

.cl-na {
  color: #c0c8d4;
  font-size: 13px;
}

/* ── Status badge ───────────────────────────────────────────────── */

.cl-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.cl-status--pub    { background: rgba(15,110,86,0.10); color: #0f6e56; }
.cl-status--draft  { background: rgba(239,159,39,0.12); color: #c77d0a; }
.cl-status--unpub  { background: rgba(90,100,116,0.12); color: #5a6474; }

/* ── Action buttons ─────────────────────────────────────────────── */

.cl-action-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, border-color 0.2s;
  margin-left: 6px;
}

.cl-action-btn:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,58,244,0.2); }

.cl-action-overflow-btn {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, border-color 0.2s;
  margin-left: 6px;
}

.cl-action-overflow-btn:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,58,244,0.2); }

.cl-action-menu {
  z-index: 200;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cl-action-menu-item {
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.cl-action-menu-item:hover { background: rgba(0, 58, 244, 0.07); }

.cl-action-menu-item--danger { color: #c0392b; }
.cl-action-menu-item--danger:hover { background: rgba(192,57,43,0.08); }

/* ── Empty state ────────────────────────────────────────────────── */

.cl-empty {
  text-align: center;
  padding: 64px 32px;
  color: #7a8390;
  font-size: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 28px;
}

.cl-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ── Modal: Course form ─────────────────────────────────────────── */

.cl-modal-inner {
  padding: 4px 0 0;
}

.cl-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.cl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cl-form-row { display: flex; gap: 16px; }
.cl-form-row--2 > * { flex: 1; min-width: 0; }

.cl-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6474;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cl-req-star { color: var(--cherry); }

.cl-form-input,
.cl-form-select,
.cl-form-textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.85);
  font-size: 14px;
  font-family: var(--font);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.cl-form-input:focus,
.cl-form-select:focus,
.cl-form-textarea:focus { border-color: rgba(0, 58, 244, 0.35); }

.cl-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8390' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

.cl-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.cl-form-row--toggles {
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cl-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.cl-toggle-check { cursor: pointer; width: 16px; height: 16px; }

.cl-status-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cl-status-radios {
  display: flex;
  gap: 16px;
}

.cl-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--charcoal);
}

.cl-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 58, 244, 0.07);
}

.cl-modal-cancel-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  color: var(--charcoal);
  transition: background 0.2s;
}

.cl-modal-cancel-btn:hover { background: rgba(255,255,255,0.95); }

.cl-modal-save-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cl-modal-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(80, 50, 200, 0.38);
}

.cl-modal-danger-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cl-modal-danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.38);
}

/* ── Toast ──────────────────────────────────────────────────────── */

.cl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
}

.cl-toast--in {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   IMPACT & ROI — PLACEHOLDER
   ══════════════════════════════════════════════════════════════════ */

.roi-coming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── Vision card (left) ─────────────────────────────────────────── */

.roi-vision-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.roi-vision-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.roi-vision-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.roi-vision-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.roi-vision-intro {
  font-size: 14px;
  color: #5a6474;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Kirkpatrick levels ─────────────────────────────────────────── */

.roi-kk-levels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roi-kk-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.roi-kk-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.roi-kk-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.roi-kk-desc {
  font-size: 13px;
  color: #7a8390;
  line-height: 1.5;
}

/* ── Feature cards (right col) ──────────────────────────────────── */

.roi-features-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roi-feature-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.roi-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(122, 63, 245, 0.08);
  color: var(--violet);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roi-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.roi-feature-line {
  font-size: 12px;
  color: #7a8390;
  line-height: 1.5;
}

/* ── Timeline card ──────────────────────────────────────────────── */

.roi-timeline-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.roi-timeline-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa3b0;
  margin-bottom: 20px;
}

.roi-timeline-track {
  display: flex;
  align-items: center;
}

.roi-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.roi-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 58, 244, 0.15);
  border: 2px solid rgba(0, 58, 244, 0.2);
}

.roi-step-dot--done   { background: #0f6e56; border-color: #0f6e56; }
.roi-step-dot--active { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.15); }

.roi-step-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.4;
}

.roi-step-text span {
  font-weight: 500;
  color: #7a8390;
  font-size: 11px;
}

.roi-step--done   .roi-step-text { color: #0f6e56; }
.roi-step--active .roi-step-text { color: var(--blue); }

.roi-timeline-line {
  flex: 1;
  height: 2px;
  background: rgba(0, 58, 244, 0.1);
  margin: 0 8px;
  margin-bottom: 22px;
}

.roi-timeline-line--done {
  background: #0f6e56;
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════════════
   CONFIGURATION
   ══════════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────────── */

.cfg-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cfg-sidenav {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 80px;
}

.cfg-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #3a434f;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.cfg-nav-item:hover { background: rgba(0, 58, 244, 0.06); color: var(--blue); }

.cfg-nav-item--active {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-nav);
}

.cfg-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.cfg-content {
  flex: 1;
  min-width: 0;
}

/* ── Section shell ──────────────────────────────────────────────── */

.cfg-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.cfg-section-hd {
  margin-bottom: 4px;
}

.cfg-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.cfg-section-sub {
  font-size: 14px;
  color: #5a6474;
  line-height: 1.6;
  max-width: 600px;
}

/* ── Cards ──────────────────────────────────────────────────────── */

.cfg-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.cfg-card--table { padding: 0; overflow: hidden; }

.cfg-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.cfg-card-desc {
  font-size: 13px;
  color: #7a8390;
  line-height: 1.55;
  margin-bottom: 18px;
}

.cfg-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.06);
}

/* ── Form fields ────────────────────────────────────────────────── */

.cfg-field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cfg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfg-field--toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
}

.cfg-field--toggle:last-child { border-bottom: none; }

.cfg-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6474;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cfg-field-hint {
  font-size: 12px;
  color: #9aa3b0;
  margin-top: 2px;
}

.cfg-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.85);
  font-size: 14px;
  font-family: var(--font);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.cfg-input:focus { border-color: rgba(0, 58, 244, 0.3); }
.cfg-input--mono { font-family: monospace; letter-spacing: 0.02em; }
.cfg-input--sm   { width: 120px; }

.cfg-select {
  padding: 10px 32px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background-color: rgba(255,255,255,0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8390' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-size: 14px;
  font-family: var(--font);
  color: var(--charcoal);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.cfg-btn-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(80,50,200,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cfg-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(80,50,200,0.35); }

.cfg-btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--charcoal);
  border: 1px solid var(--glass-border);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cfg-btn-secondary:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,58,244,0.2); }
.cfg-btn-full            { width: 100%; text-align: center; }
.cfg-btn-sm              { padding: 5px 10px; font-size: 11px; border-radius: 7px; }

.cfg-save-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(80,50,200,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cfg-save-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(80,50,200,0.38); }

.cfg-action-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-left: 4px;
}

.cfg-action-btn:hover { background: rgba(255,255,255,0.95); }

.cfg-actions-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── Tables ─────────────────────────────────────────────────────── */

.cfg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cfg-table thead {
  background: rgba(0, 58, 244, 0.03);
  border-bottom: 1px solid rgba(0, 58, 244, 0.07);
}

.cfg-table th {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8390;
  text-align: left;
}

.cfg-th-actions { text-align: right; }

.cfg-table-row {
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
  transition: background 0.15s;
}

.cfg-table-row:last-child { border-bottom: none; }
.cfg-table-row:hover { background: rgba(0, 58, 244, 0.02); }

.cfg-table td { padding: 14px 20px; vertical-align: middle; }

.cfg-td-muted   { color: #7a8390; font-size: 13px; }
.cfg-td-actions { text-align: right; white-space: nowrap; }

/* ── User cells ─────────────────────────────────────────────────── */

.cfg-user-name  { font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.cfg-user-email { font-size: 12px; color: #9aa3b0; }

/* ── Role badges ────────────────────────────────────────────────── */

.cfg-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: capitalize;
}

.cfg-role--admin   { background: rgba(0,58,244,0.10);  color: var(--blue); }
.cfg-role--manager { background: rgba(122,63,245,0.10); color: var(--violet); }
.cfg-role--learner { background: rgba(0,58,244,0.05);  color: #5a6474; }

.cfg-role-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.cfg-role-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #5a6474;
}

/* ── Status / chips ─────────────────────────────────────────────── */

.cfg-status-sm {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.cfg-status--active { background: rgba(15,110,86,0.10); color: #0f6e56; }
.cfg-status--draft  { background: rgba(239,159,39,0.12); color: #c77d0a; }

.cfg-kk-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,58,244,0.07);
  color: var(--blue);
  white-space: nowrap;
}

.cfg-req-chip       { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.cfg-req-chip--req  { background: rgba(15,110,86,0.10);  color: #0f6e56; }
.cfg-req-chip--opt  { background: rgba(0,58,244,0.05);   color: #7a8390; }

/* ── Info banner ────────────────────────────────────────────────── */

.cfg-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 58, 244, 0.05);
  border: 1px solid rgba(0, 58, 244, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #3a434f;
  line-height: 1.6;
}

.cfg-info-banner--sm { padding: 10px 14px; font-size: 13px; }
.cfg-info-icon { font-size: 15px; color: var(--blue); margin-top: 1px; flex-shrink: 0; }

/* ── Branding: logo preview ─────────────────────────────────────── */

.cfg-upload-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cfg-logo-preview {
  width: 180px;
  height: 56px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 58, 244, 0.2);
  background: rgba(0, 58, 244, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cfg-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfg-logo-placeholder-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-logo-placeholder-text { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }

.cfg-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfg-upload-hint { font-size: 11px; color: #9aa3b0; }

/* ── Branding: color swatches ───────────────────────────────────── */

.cfg-color-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cfg-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cfg-color-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.cfg-color-label { font-size: 11px; font-weight: 700; color: #5a6474; }
.cfg-color-hex   { font-size: 11px; color: #9aa3b0; font-family: monospace; }
.cfg-color-note  { font-size: 12px; color: #9aa3b0; font-style: italic; }

/* ── Toggle ─────────────────────────────────────────────────────── */

.cfg-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s;
}

.cfg-toggle--on  { background: var(--grad); }
.cfg-toggle--off { background: #c0c8d4; }

.cfg-toggle-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  transition: left 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.cfg-toggle--on  .cfg-toggle-thumb { left: 23px; }
.cfg-toggle--off .cfg-toggle-thumb { left: 3px; }

/* ── Login background preview ───────────────────────────────────── */

.cfg-login-bg-preview {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 7;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--grad);
  border: 1px solid #e6e9ef;
}
.cfg-login-bg-preview video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cfg-login-bg-preview-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 8px; padding: 12px 18px;
  font-size: 12px; font-weight: 700; color: #1a2230;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.cfg-login-bg-preview-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; text-align: center;
  color: #fff; font-size: 12px; font-weight: 600;
  background: rgba(0,0,0,.28);
}

/* ── Learning paths section ─────────────────────────────────────── */

.cfg-path-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
}

.cfg-path-row:last-child { border-bottom: none; }

.cfg-path-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 3px; }
.cfg-path-meta  { font-size: 12px; color: #9aa3b0; }

/* ── ROI cost rows ──────────────────────────────────────────────── */

.cfg-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
}

.cfg-cost-row:last-child { border-bottom: none; }
.cfg-cost-title { font-size: 14px; color: var(--charcoal); font-weight: 500; }

.cfg-cost-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cfg-cost-prefix { font-size: 14px; color: #7a8390; font-weight: 600; }

/* ── Card type grid (images section) ───────────────────────────── */

.cfg-card-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cfg-card-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cfg-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: var(--grad);
}

.cfg-thumb--courses     { background: linear-gradient(135deg, #003AF4, #4D9CFF); }
.cfg-thumb--sims        { background: linear-gradient(135deg, #151E27, #003AF4); }
.cfg-thumb--assignments { background: linear-gradient(135deg, #FF4D7A, #EF9F27); }
.cfg-thumb--surveys     { background: linear-gradient(135deg, #7A3FF5, #FF4D7A); }
.cfg-thumb--paths       { background: linear-gradient(135deg, #4930D0, #7A3FF5); }

.cfg-card-type-label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.cfg-card-type-meta  { font-size: 11px; color: #9aa3b0; margin-bottom: 2px; }

/* ── Survey title cell ──────────────────────────────────────────── */

.cfg-survey-title   { font-weight: 600; margin-bottom: 2px; }
.cfg-program-title  { font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   SIMULATION BUILDER
   ══════════════════════════════════════════════════════════════════ */

/* ── Difficulty chips ───────────────────────────────────────────── */

.sb-diff-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.sb-diff--beginner     { background: rgba(15,110,86,0.10);   color: #0f6e56; }
.sb-diff--intermediate { background: rgba(0,58,244,0.10);    color: var(--blue); }
.sb-diff--advanced     { background: rgba(122,63,245,0.12);  color: #5a28c0; }

/* ── Modal wide + sim builder override ─────────────────────────── */

.modal--sim-builder {
  max-height: 90vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* ── Builder shell ──────────────────────────────────────────────── */

.sb-builder {
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
}

/* ── Fixed header ───────────────────────────────────────────────── */

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 14px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  flex-shrink: 0;
}

.sb-head-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2030;
  letter-spacing: -0.01em;
}

.sb-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 15px;
  color: #5a6470;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.sb-close-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #1a2030;
}

/* ── Step progress bar ──────────────────────────────────────────── */

.sb-step-bar {
  display: flex;
  align-items: center;
  padding: 16px 28px 12px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.06);
  flex-shrink: 0;
  overflow-x: auto;
  gap: 0;
}

.sb-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sb-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.sb-step-text {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s;
}

/* Upcoming */
.sb-step--upcoming .sb-step-circle {
  background: rgba(0, 58, 244, 0.07);
  color: #9aa3b0;
  border: 2px solid rgba(0, 58, 244, 0.12);
}
.sb-step--upcoming .sb-step-text { color: #9aa3b0; }

/* Active */
.sb-step--active .sb-step-circle {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.3);
  border: 2px solid transparent;
}
.sb-step--active .sb-step-text { color: var(--blue); font-weight: 700; }

/* Done */
.sb-step--done .sb-step-circle {
  background: rgba(0, 58, 244, 0.1);
  color: var(--blue);
  border: 2px solid rgba(0, 58, 244, 0.25);
}
.sb-step--done .sb-step-text { color: var(--blue); }

/* Connector lines between steps */
.sb-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(0, 58, 244, 0.1);
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 24px;
}

.sb-step-connector--done {
  background: rgba(0, 58, 244, 0.35);
}

/* ── Scrollable body ────────────────────────────────────────────── */

.sb-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.18) transparent;
}

.sb-body::-webkit-scrollbar       { width: 5px; }
.sb-body::-webkit-scrollbar-track { background: transparent; }
.sb-body::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 244, 0.18);
  border-radius: 3px;
}

/* ── Fixed footer ───────────────────────────────────────────────── */

.sb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 18px;
  border-top: 1px solid rgba(0, 58, 244, 0.08);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.sb-footer-center {
  text-align: center;
}

.sb-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b0;
}

.sb-prev-btn,
.sb-next-btn {
  padding: 9px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.sb-prev-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--charcoal);
}

.sb-prev-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 58, 244, 0.2);
}

.sb-prev-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sb-next-btn {
  background: var(--grad);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(80, 50, 200, 0.28);
}

.sb-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(80, 50, 200, 0.38);
}

/* ── Step content shell ─────────────────────────────────────────── */

.sb-step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-step-hd {
  margin-bottom: 4px;
}

.sb-step-hd h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1a2030;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sb-step-hd p {
  font-size: 14px;
  color: #5a6474;
  line-height: 1.6;
}

/* ── Field wrappers ─────────────────────────────────────────────── */

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6474;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── AI assist button ───────────────────────────────────────────── */

.sb-ai-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(122, 63, 245, 0.3);
  background: rgba(122, 63, 245, 0.07);
  color: #5a28c0;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sb-ai-btn:hover {
  background: rgba(122, 63, 245, 0.14);
  border-color: rgba(122, 63, 245, 0.5);
}

/* ── AI assist panel ────────────────────────────────────────────── */

.sb-ai-panel {
  background: rgba(122, 63, 245, 0.04);
  border: 1px solid rgba(122, 63, 245, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.sb-ai-panel-inner {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-ai-panel-label {
  font-size: 12px;
  font-weight: 600;
  color: #5a28c0;
}

.sb-ai-panel-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sb-ai-panel-input-row .sb-textarea {
  flex: 1;
}

.sb-ai-mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(122, 63, 245, 0.2);
  background: rgba(122, 63, 245, 0.07);
  color: #7A3FF5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sb-ai-mic-btn:hover { background: rgba(122, 63, 245, 0.14); }

.sb-ai-generate-btn {
  align-self: flex-start;
  padding: 7px 18px;
  border-radius: 10px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(80, 50, 200, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sb-ai-generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(80, 50, 200, 0.35);
}

.sb-ai-generate-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ── Form inputs ────────────────────────────────────────────────── */

.sb-input,
.sb-select,
.sb-textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-family: var(--font);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.sb-input:focus,
.sb-select:focus,
.sb-textarea:focus {
  border-color: rgba(0, 58, 244, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 58, 244, 0.07);
}

.sb-textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.55;
}

.sb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8390' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

/* 2-col layout */
.sb-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Voice row (select + test button side by side) */
.sb-voice-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sb-voice-test-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 58, 244, 0.2);
  background: rgba(0, 58, 244, 0.06);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.sb-voice-test-btn:hover { background: rgba(0, 58, 244, 0.12); }

/* ── Rubric step ────────────────────────────────────────────────── */

.sb-mode-row {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.sb-mode-btn {
  padding: 8px 18px;
  border-radius: 11px;
  border: 1.5px solid rgba(0, 58, 244, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: #5a6474;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sb-mode-btn:hover { border-color: rgba(0, 58, 244, 0.3); color: var(--blue); }

.sb-mode-btn--active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgba(80, 50, 200, 0.24);
}

.sb-categories-empty {
  font-size: 13px;
  color: #9aa3b0;
  padding: 16px 0 4px;
}

.sb-add-category-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px dashed rgba(0, 58, 244, 0.25);
  background: rgba(0, 58, 244, 0.04);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.sb-add-category-btn:hover {
  background: rgba(0, 58, 244, 0.08);
  border-color: rgba(0, 58, 244, 0.4);
}

/* Category card */
.sb-rubric-category {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.sb-rubric-cat-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sb-rubric-cat-header .sb-input {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.sb-cat-remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(200, 60, 60, 0.2);
  background: rgba(220, 60, 60, 0.05);
  color: #c0392b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.sb-cat-remove:hover { background: rgba(220, 60, 60, 0.12); }

.sb-cat-points-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.sb-rubric-cat-header .sb-cat-points {
  flex: none;
  width: 64px;
  text-align: center;
  font-weight: 700;
}

.sb-cat-points-suffix {
  font-size: 13px;
  color: #5a6474;
  font-weight: 600;
}

.sb-points-total {
  margin-top: 12px;
  font-size: 14px;
  color: #2a3342;
}

.sb-points-hint {
  color: #8a94a6;
  font-weight: 500;
  font-size: 13px;
}

.sb-levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-level-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-level-label {
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Passing score slider */
.sb-score-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.sb-score-slider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sb-range {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
  height: 6px;
}

.sb-score-display {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  min-width: 130px;
}

/* Auto-generate spinner */
.sb-auto-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 14px;
  color: #7a8390;
}

.sb-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 58, 244, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: sb-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes sb-spin {
  to { transform: rotate(360deg); }
}

/* ── Step 5 — Materials ─────────────────────────────────────────── */

.sb-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* File drop zone */
.sb-file-zone {
  border: 2px dashed rgba(0, 58, 244, 0.2);
  border-radius: 14px;
  background: rgba(0, 58, 244, 0.025);
  padding: 28px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.sb-file-zone:hover,
.sb-file-zone--drag {
  border-color: rgba(0, 58, 244, 0.45);
  background: rgba(0, 58, 244, 0.05);
}

.sb-file-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.sb-file-zone-icon {
  font-size: 28px;
  color: rgba(0, 58, 244, 0.35);
}

.sb-file-zone-text {
  font-size: 14px;
  color: #5a6474;
  font-weight: 500;
}

.sb-file-zone-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-file-zone-hint {
  font-size: 12px;
  color: #9aa3b0;
}

.sb-file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* File chips */
.sb-file-chip {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-file-chip-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-file-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-file-chip-size {
  font-size: 12px;
  color: #9aa3b0;
  flex-shrink: 0;
}

.sb-file-remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(200, 60, 60, 0.06);
  color: #c0392b;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.sb-file-remove:hover { background: rgba(200, 60, 60, 0.14); }

/* Link rows */
.sb-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.sb-link-url  { flex: 2; }
.sb-link-desc { flex: 1.5; }

.sb-link-remove {
  width: 30px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: rgba(200, 60, 60, 0.06);
  color: #c0392b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: background 0.18s;
}

.sb-link-remove:hover { background: rgba(200, 60, 60, 0.14); }

.sb-add-link-btn {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1.5px dashed rgba(0, 58, 244, 0.22);
  background: rgba(0, 58, 244, 0.03);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.sb-add-link-btn:hover {
  background: rgba(0, 58, 244, 0.07);
  border-color: rgba(0, 58, 244, 0.38);
}

/* ── Step 6 — Review ────────────────────────────────────────────── */

.sb-summary-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.sb-summary-hd {
  font-size: 12px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sb-summary-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 58, 244, 0.04);
  font-size: 13.5px;
  align-items: flex-start;
}

.sb-summary-row:last-child { border-bottom: none; }

.sb-summary-key {
  width: 170px;
  font-weight: 600;
  color: #5a6474;
  flex-shrink: 0;
}

.sb-summary-val {
  flex: 1;
  color: var(--charcoal);
  line-height: 1.5;
  word-break: break-word;
}

/* Publish toggle */
.sb-publish-row {
  padding-top: 8px;
}

.sb-status-toggle-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.sb-status-toggle-btn {
  padding: 10px 24px;
  border-radius: 11px;
  border: 1.5px solid rgba(0, 58, 244, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #5a6474;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sb-status-toggle-btn:hover { border-color: rgba(0, 58, 244, 0.35); color: var(--blue); }

.sb-status-toggle-btn--active {
  border-color: rgba(239, 159, 39, 0.4);
  background: rgba(239, 159, 39, 0.08);
  color: #c77d0a;
  font-weight: 700;
}

.sb-status-toggle-btn--active.sb-status-toggle-btn--pub {
  border-color: rgba(122, 63, 245, 0.4);
  background: rgba(122, 63, 245, 0.08);
  color: #7A3FF5;
}

/* ══════════════════════════════════════════════════════════════════
   COURSE BUILDER (admin content builder — reuses .sb-* shell)
   ══════════════════════════════════════════════════════════════════ */

.modal--course-builder {
  max-height: 90vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.cbb-loading {
  padding: 60px 32px;
  text-align: center;
  font-size: 14px;
  color: #9aa3b0;
}

/* ── Add-block button + dropdown menu ───────────────────────────── */

.cbb-add-block-wrap {
  position: relative;
  align-self: flex-start;
}

.cbb-add-block-btn {
  padding: 9px 18px;
  border-radius: 11px;
  border: 1.5px dashed rgba(0, 58, 244, 0.3);
  background: rgba(0, 58, 244, 0.04);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.cbb-add-block-btn:hover {
  background: rgba(0, 58, 244, 0.09);
  border-color: rgba(0, 58, 244, 0.45);
}

.cbb-add-block-menu {
  position: fixed;
  z-index: 200;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cbb-add-block-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.cbb-add-block-option:hover { background: rgba(0, 58, 244, 0.07); }

/* ── Block accordion list ───────────────────────────────────────── */

.cbb-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cbb-block-empty {
  font-size: 13px;
  color: #9aa3b0;
  padding: 16px 0;
}

.cbb-block-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cbb-block-card--open { border-color: rgba(0, 58, 244, 0.25); }

.cbb-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.cbb-block-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cbb-block-header-text { flex: 1; min-width: 0; }

.cbb-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.cbb-block-type {
  font-size: 11.5px;
  color: #9aa3b0;
  margin-top: 1px;
}

.cbb-block-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(200, 60, 60, 0.2);
  background: rgba(220, 60, 60, 0.05);
  color: #c0392b;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.cbb-block-remove:hover { background: rgba(220, 60, 60, 0.12); }

.cbb-block-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(154, 163, 176, 0.4);
  color: transparent;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.cbb-block-check--open {
  background: rgba(0, 58, 244, 0.1);
  border-color: rgba(0, 58, 244, 0.4);
  color: var(--blue);
}

.cbb-block-body {
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(0, 58, 244, 0.06);
  padding-top: 16px;
}

/* ── Sub-item lists (flipcard cards / quiz + survey questions) ──── */

.cbb-subitem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbb-subitem {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 58, 244, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbb-subitem-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cbb-subitem-num {
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cbb-subitem-remove {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(200, 60, 60, 0.2);
  background: rgba(220, 60, 60, 0.05);
  color: #c0392b;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.cbb-subitem-remove:hover { background: rgba(220, 60, 60, 0.12); }

.cbb-add-subitem-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px dashed rgba(0, 58, 244, 0.25);
  background: rgba(0, 58, 244, 0.04);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.cbb-add-subitem-btn:hover {
  background: rgba(0, 58, 244, 0.08);
  border-color: rgba(0, 58, 244, 0.4);
}

.cbb-written-tools {
  margin-top: 8px;
}

.cbb-insert-image-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px dashed rgba(0, 58, 244, 0.25);
  background: rgba(0, 58, 244, 0.04);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.cbb-insert-image-btn:hover {
  background: rgba(0, 58, 244, 0.08);
  border-color: rgba(0, 58, 244, 0.4);
}

.cbb-written-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #9aa3b0;
}

/* ── Flipcard face layout ────────────────────────────────────────── */

.cbb-face {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbb-face-label {
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Quiz options ────────────────────────────────────────────────── */

.cbb-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbb-quiz-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cbb-quiz-option-row .cbb-q-correct {
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.cbb-quiz-option-row .cbb-q-option { flex: 1; }

/* ── Case-study format pills ─────────────────────────────────────── */

.cbb-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cbb-checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 58, 244, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 600;
  color: #5a6474;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.cbb-checkbox-pill:hover { border-color: rgba(0, 58, 244, 0.35); }

.cbb-checkbox-pill input {
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Reorder step ────────────────────────────────────────────────── */

.cbb-reorder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbb-reorder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: grab;
  transition: box-shadow 0.18s, border-color 0.18s, opacity 0.18s;
}

.cbb-reorder-row:hover { border-color: rgba(0, 58, 244, 0.25); }

.cbb-reorder-row--dragging {
  opacity: 0.4;
  box-shadow: 0 6px 20px rgba(0, 58, 244, 0.15);
}

.cbb-drag-handle {
  color: #9aa3b0;
  font-size: 16px;
  flex-shrink: 0;
  cursor: grab;
}

.cbb-reorder-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   KPI DASHBOARD — TABS + ANALYTICS TABLES
   ══════════════════════════════════════════════════════════════════ */

/* ── Rank badge (branding-neutral, no medals) ───────────────────── */
.kpi-rank-badge {
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
}

/* ── Top learners controls (region + date range selects side-by-side) */
.kpi-tl-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Metric toggle (Completions / Learning Hours) ───────────────── */
.kpi-metric-toggle {
  display: flex;
  gap: 0;
  background: rgba(0, 58, 244, 0.05);
  border: 1px solid rgba(0, 58, 244, 0.14);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
  margin-bottom: 14px;
}

.kpi-metric-btn {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: #7a8390;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.kpi-metric-btn:hover { color: var(--blue); }

.kpi-metric-btn--active {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Tab bar ────────────────────────────────────────────────────── */
.kpi-tab-bar {
  display: flex;
  gap: 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kpi-tab-bar::-webkit-scrollbar { display: none; }

.kpi-tab {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: #7a8390;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.kpi-tab:hover {
  color: var(--blue);
  background: rgba(0, 58, 244, 0.05);
}

.kpi-tab--active {
  color: var(--blue);
  background: rgba(0, 58, 244, 0.08);
  border-color: rgba(0, 58, 244, 0.18);
  font-weight: 700;
}

/* ── 4-column grid (All Employees KPI tiles) ────────────────────── */
.kpi-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

/* ── Section wrapper ────────────────────────────────────────────── */
.kpi-section {
  padding-bottom: 40px;
}

/* ── Filter bar ─────────────────────────────────────────────────── */
.kpi-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 20px;
  position: relative;
  z-index: 10;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.kpi-filter-select {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  background-color: rgba(255,255,255,0.8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6474' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid rgba(0, 58, 244, 0.14);
  border-radius: 8px;
  padding: 6px 26px 6px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.kpi-filter-select:hover { border-color: rgba(0, 58, 244, 0.35); }

.kpi-filter-input {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--charcoal);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0, 58, 244, 0.14);
  border-radius: 8px;
  padding: 6px 12px;
  outline: none;
  width: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kpi-filter-input::placeholder { color: #b0b8c4; }
.kpi-filter-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,58,244,0.08); }

.kpi-filter-spacer { flex: 1; }

.kpi-export-btn {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--blue);
  background: rgba(0, 58, 244, 0.07);
  border: 1px solid rgba(0, 58, 244, 0.2);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.kpi-export-btn:hover {
  background: rgba(0, 58, 244, 0.13);
  border-color: var(--blue);
}

/* ── Date range picker ──────────────────────────────────────────── */
.kdr-wrap {
  position: relative;
}

.kdr-trigger {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--charcoal);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0, 58, 244, 0.14);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kdr-trigger:hover { border-color: rgba(0, 58, 244, 0.35); }

.kdr-arrow { font-size: 9px; color: #7a8390; }

.kdr-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 58, 244, 0.14);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.kdr-presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kdr-preset {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: #5a6474;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.kdr-preset:hover { background: rgba(0,58,244,0.06); color: var(--blue); }

.kdr-preset--active {
  background: rgba(0,58,244,0.08);
  color: var(--blue);
  font-weight: 700;
}

.kdr-divider {
  height: 1px;
  background: rgba(0,58,244,0.07);
  margin: 8px 0;
}

.kdr-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kdr-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kdr-label {
  font-size: 11px;
  font-weight: 700;
  color: #9aa3b0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 28px;
  flex-shrink: 0;
}

.kdr-date {
  font-size: 12px;
  font-family: var(--font);
  color: var(--charcoal);
  background: rgba(0,58,244,0.03);
  border: 1px solid rgba(0,58,244,0.14);
  border-radius: 7px;
  padding: 5px 8px;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}

.kdr-date:focus { border-color: var(--blue); }

.kdr-apply {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  margin-top: 2px;
  transition: opacity 0.2s;
}

.kdr-apply:hover { opacity: 0.88; }

/* ── Table meta + no-data ───────────────────────────────────────── */
.kpi-table-meta {
  font-size: 12px;
  color: #9aa3b0;
  margin-bottom: 10px;
  padding: 0 2px;
}

.kpi-table-meta strong { color: var(--charcoal); }

.kpi-no-data {
  padding: 48px 24px;
  text-align: center;
  color: #9aa3b0;
  font-size: 14px;
  background: var(--glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* ── Table ──────────────────────────────────────────────────────── */
.kpi-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.kpi-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 58, 244, 0.025);
  border-bottom: 1px solid rgba(0, 58, 244, 0.07);
  white-space: nowrap;
}

.kpi-th--sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

.kpi-th--sortable:hover { color: var(--blue); background: rgba(0, 58, 244, 0.05); }

.kpi-th--active { color: var(--blue); }

.kpi-sort-icon {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}

.kpi-th--active .kpi-sort-icon { opacity: 1; }

.kpi-td {
  padding: 11px 16px;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(0, 58, 244, 0.04);
  vertical-align: middle;
  font-size: 13px;
}

.kpi-table tbody tr:last-child .kpi-td { border-bottom: none; }
.kpi-table tbody tr:hover .kpi-td { background: rgba(0, 58, 244, 0.025); }

.kpi-td--name  { font-weight: 600; min-width: 160px; }
.kpi-td--email { color: #7a8390; font-size: 12px; min-width: 200px; }
.kpi-td--num   { font-weight: 700; text-align: right; }
.kpi-td--entity { font-size: 12px; color: #7a8390; min-width: 180px; }

/* ── Chips / pills ──────────────────────────────────────────────── */
.kpi-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.kpi-chip--coursera  { background: rgba(0,119,181,0.10); color: #0077b5; }
.kpi-chip--ethena    { background: rgba(122,63,245,0.10); color: var(--violet); }
.kpi-chip--billups   { background: rgba(0,58,244,0.09);  color: var(--blue); }
.kpi-chip--course    { background: rgba(0,58,244,0.07);  color: var(--blue); }
.kpi-chip--sim       { background: rgba(122,63,245,0.08); color: var(--violet); }
.kpi-chip--live      { background: rgba(239,159,39,0.12); color: #c07a0a; }

.kpi-status-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
}

.kpi-status-chip--complete { background: rgba(15,110,86,0.10); color: #0f6e56; }
.kpi-status-chip--enrolled { background: rgba(0,58,244,0.08);  color: var(--blue); }

.kpi-rate-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
}

.kpi-rate--high { background: rgba(15,110,86,0.10);  color: #0f6e56; }
.kpi-rate--mid  { background: rgba(239,159,39,0.10); color: #c07a0a; }
.kpi-rate--low  { background: rgba(220,50,50,0.08);  color: #b73030; }

.kpi-yes { font-size: 12px; font-weight: 700; color: #0f6e56; }
.kpi-no  { font-size: 12px; font-weight: 600; color: #9aa3b0; }
.kpi-na  { font-size: 12px; color: #b0b8c4; }

/* ── Pagination ─────────────────────────────────────────────────── */
.kpi-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 4px;
}

.kpi-page-btn {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--blue);
  background: rgba(0,58,244,0.07);
  border: 1px solid rgba(0,58,244,0.18);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.kpi-page-btn:hover:not(:disabled) { background: rgba(0,58,244,0.13); border-color: var(--blue); }

.kpi-page-btn--disabled,
.kpi-page-btn:disabled {
  color: #b0b8c4;
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  cursor: default;
}

.kpi-page-info {
  font-size: 12px;
  color: #9aa3b0;
  font-weight: 500;
}

/* ── Training Analytics — fixed table layout so all columns fit ─── */
.kpi-table--ta {
  table-layout: fixed;
  width: 100%;
}
.kpi-table--ta .kpi-td--name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

/* ── Skip-level checkbox toggle ──────────────────────────────────── */
.kpi-filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
}
.kpi-filter-toggle--hidden {
  display: none;
}
.kpi-filter-check {
  accent-color: var(--blue);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* ── Simulation note in training title ───────────────────────────── */
.kpi-sim-note {
  font-size: 11px;
  font-weight: 500;
  color: #7a8390;
}

/* ── Results tab — quiz aggregate cards ──────────────────────────── */
.kpi-quiz-agg-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-quiz-agg-card {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.kpi-quiz-agg-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-quiz-agg-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.kpi-quiz-agg-sub {
  font-size: 12px;
  color: #9aa3b0;
  margin-top: 3px;
}

.kpi-quiz-qbreak {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0, 58, 244, 0.07);
  padding-top: 12px;
}

.kpi-quiz-qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-quiz-qrow-label {
  font-size: 13px;
  color: var(--charcoal);
  flex: 1;
}

/* ── Results tab — per-learner answer drill-down ─────────────────── */
.kpi-view-answers-btn {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--blue);
  background: rgba(0,58,244,0.07);
  border: 1px solid rgba(0,58,244,0.18);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.kpi-view-answers-btn:hover { background: rgba(0,58,244,0.13); border-color: var(--blue); }

.kpi-answers-row .kpi-td { padding: 0 16px 16px; background: rgba(0, 58, 244, 0.015); }

.kpi-answer-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.kpi-answer-q { font-size: 13px; }

.kpi-answer-prompt {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.kpi-answer-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-answer-opt {
  font-size: 12px;
  color: #7a8390;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(0,0,0,0.02);
}

.kpi-answer-opt--selected { font-weight: 600; }
.kpi-answer-opt--correct  { background: rgba(15,110,86,0.10);  color: #0f6e56; }
.kpi-answer-opt--wrong    { background: rgba(220,50,50,0.08);  color: #b73030; }

/* ── Results tab — pass/fail pill ─────────────────────────────────── */
.kpi-passfail-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
}
.kpi-passfail-pill--pass { background: rgba(15,110,86,0.10); color: #0f6e56; }
.kpi-passfail-pill--fail { background: rgba(220,50,50,0.08); color: #b73030; }

/* ══════════════════════════════════════════════════════════════════
   CONFIGURATION — NEW SECTIONS
   ══════════════════════════════════════════════════════════════════ */

/* ── Survey audience chip ────────────────────────────────────────── */

.cfg-audience-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.cfg-audience--learner  { background: rgba(0,58,244,0.08);   color: var(--blue); }
.cfg-audience--manager  { background: rgba(122,63,245,0.10); color: var(--violet); }
.cfg-audience--reports  { background: rgba(239,159,39,0.12); color: #c77d0a; }

/* ── ROI rate table ──────────────────────────────────────────────── */

/* Pull the table wrapper to card edges so the thead banner fills full width */
.cfg-card--rate .cfg-rate-table-wrap {
  overflow-x: auto;
  margin: 8px -24px 0;
}

.cfg-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cfg-rate-table thead {
  background: rgba(0, 58, 244, 0.03);
  border-bottom: 1px solid rgba(0, 58, 244, 0.07);
}

.cfg-rate-th-region {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  width: 110px;
}

.cfg-rate-th {
  text-align: center;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  color: #7a8390;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cfg-rate-region {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 10px 16px 10px 20px;
  white-space: nowrap;
}

.cfg-rate-cell {
  padding: 6px 8px;
  text-align: center;
}

.cfg-rate-cell .cfg-cost-input-wrap { justify-content: center; }
.cfg-rate-cell .cfg-input--sm { width: 72px; text-align: right; }

/* ── ROI per-course table ─────────────────────────────────────────── */

.cfg-table--roi th,
.cfg-table--roi td { white-space: nowrap; }
.cfg-table--roi td:first-child { white-space: normal; min-width: 180px; }

/* ── Learning Advisor ─────────────────────────────────────────────── */

.cfg-advisor-identity {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cfg-advisor-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cfg-advisor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cfg-llm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.cfg-llm-option {
  border: 1.5px solid rgba(0, 58, 244, 0.12);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(255,255,255,0.6);
  opacity: 0.6;
}

.cfg-llm-option--active {
  border-color: var(--blue);
  background: rgba(0, 58, 244, 0.05);
  opacity: 1;
}

.cfg-llm-top { margin-bottom: 8px; }

.cfg-llm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cfg-llm-badge--active { background: rgba(15,110,86,0.12); color: #0f6e56; }
.cfg-llm-badge--m7     { background: rgba(0,58,244,0.08);  color: var(--blue); }

.cfg-llm-name     { font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.cfg-llm-provider { font-size: 11px; color: #9aa3b0; }

.cfg-check-list { display: flex; flex-direction: column; gap: 2px; }

.cfg-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,58,244,0.05);
}

.cfg-check-row:last-child { border-bottom: none; }

.cfg-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.cfg-textarea {
  width: 100%;
  border: 1.5px solid rgba(0, 58, 244, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--charcoal);
  font-family: inherit;
  background: rgba(255,255,255,0.8);
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}

.cfg-textarea:focus { outline: none; border-color: rgba(0,58,244,0.3); }
.cfg-textarea--tall { min-height: 130px; }

/* ── Integrations ─────────────────────────────────────────────────── */

.cfg-int-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cfg-int-card {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(0,58,244,0.10);
  border-radius: 16px;
  padding: 20px;
}

.cfg-int-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.cfg-int-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.cfg-int-logo--slack    { background: #4A154B; }
.cfg-int-logo--coursera { background: #0056D2; }
.cfg-int-logo--gforms   { background: #673AB7; }
.cfg-int-logo--hris     { background: linear-gradient(135deg, var(--blue), var(--violet)); }

.cfg-int-info { flex: 1; min-width: 0; }
.cfg-int-name { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }

.cfg-int-status       { font-size: 12px; font-weight: 500; }
.cfg-int-status--ok  { color: #0f6e56; }
.cfg-int-status--off { color: #9aa3b0; }

.cfg-int-desc {
  font-size: 13px;
  color: #5a6474;
  line-height: 1.5;
  margin-bottom: 4px;
}

.cfg-int-upload-row { margin-top: 10px; }

.cfg-int-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.cfg-int-future-card {
  border: 1.5px dashed rgba(0,58,244,0.12);
  border-radius: 12px;
  padding: 14px;
  opacity: 0.7;
}

.cfg-int-future-name { font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.cfg-int-future-desc { font-size: 12px; color: #7a8390; line-height: 1.4; margin-bottom: 8px; }

.cfg-int-future-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0,58,244,0.08);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Notification Templates ───────────────────────────────────────── */

.cfg-channel-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.cfg-var-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cfg-var-pill {
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,58,244,0.07);
  color: var(--blue);
}

.cfg-notif-template-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.cfg-notif-template {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(0,58,244,0.10);
  border-radius: 16px;
  padding: 20px;
}

.cfg-notif-template-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cfg-notif-template-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.cfg-notif-to-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0,58,244,0.07);
  color: var(--blue);
}

/* ── Modal wide variant for survey ──────────────────────────────── */

.cl-modal-inner--wide { max-width: 560px; }
.cl-modal-desc {
  font-size: 13px;
  color: #7a8390;
  margin: -4px 0 16px;
  line-height: 1.5;
}
.cl-form-hint {
  font-size: 11px;
  color: #9aa3b0;
  margin-top: 4px;
  display: block;
}

/* ── Course Library — Modal tabs ─────────────────────────────────── */
.cl-tab-bar {
  display: flex;
  gap: 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.08);
  margin-bottom: 20px;
}

.cl-tab {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: #7a8390;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.cl-tab:hover {
  color: var(--blue);
  background: rgba(0, 58, 244, 0.05);
}

.cl-tab--active {
  color: var(--blue);
  background: rgba(0, 58, 244, 0.08);
  border-color: rgba(0, 58, 244, 0.18);
  font-weight: 700;
}

.cl-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
}

.cl-tab-panel { display: block; }
.cl-tab-panel--hidden { display: none; }

.cl-panel-desc {
  font-size: 13px;
  color: #6b7585;
  margin: 0 0 16px;
  line-height: 1.55;
}

/* ── Course Library — Video upload ───────────────────────────────── */
.cl-drop-zone {
  border: 2px dashed rgba(0, 58, 244, 0.2);
  border-radius: 14px;
  background: rgba(0, 58, 244, 0.025);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  margin-bottom: 14px;
}

.cl-drop-zone:hover,
.cl-drop-zone--over {
  border-color: rgba(0, 58, 244, 0.45);
  background: rgba(0, 58, 244, 0.05);
}

.cl-drop-icon {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 8px;
  opacity: 0.6;
}

.cl-drop-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.cl-drop-link {
  color: var(--blue);
  text-decoration: underline;
}

.cl-drop-hint {
  font-size: 12px;
  color: #9aa3b0;
  margin-top: 2px;
}

.cl-video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 58, 244, 0.03);
  border: 1px solid rgba(0, 58, 244, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
}

.cl-video-icon {
  font-size: 14px;
  color: var(--blue);
  opacity: 0.7;
  flex-shrink: 0;
}

.cl-video-item .cl-form-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
}

.cl-video-size {
  font-size: 11px;
  color: #9aa3b0;
  white-space: nowrap;
  flex-shrink: 0;
}

.cl-video-remove {
  background: none;
  border: none;
  color: #b0b8c4;
  font-size: 13px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.cl-video-remove:hover {
  color: #e04055;
  background: rgba(224, 64, 85, 0.08);
}

/* ── Course Library — Attendance ─────────────────────────────────── */
.cl-form-label-note {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #9aa3b0;
}

.cl-parse-btn {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--blue);
  background: rgba(0, 58, 244, 0.06);
  border: 1px solid rgba(0, 58, 244, 0.18);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.18s;
  display: block;
  margin-bottom: 12px;
}

.cl-parse-btn:hover {
  background: rgba(0, 58, 244, 0.11);
}

.cl-attend-count {
  font-size: 12px;
  font-weight: 700;
  color: #0f6e56;
  margin: 0 0 8px;
}

.cl-attend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cl-attend-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8390;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.1);
}

.cl-attend-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(0, 58, 244, 0.05);
  color: var(--charcoal);
}

.cl-attend-table tbody tr:last-child td { border-bottom: none; }

/* ── Course Library — Course link row ────────────────────────────── */
.cl-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cl-link-input {
  flex: 1;
  color: #6b7585;
  background: rgba(0, 0, 0, 0.025);
  cursor: default;
  font-size: 12px;
}

.cl-copy-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 58, 244, 0.18);
  background: rgba(0, 58, 244, 0.05);
  color: var(--blue);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.cl-copy-btn:hover { background: rgba(0, 58, 244, 0.12); }

/* ── Course Library — Panel section divider ──────────────────────── */
.cl-panel-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7a8390;
  margin-bottom: 10px;
}

.cl-transcript-icon {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
}

/* ── Course Library — Sponsors tab ───────────────────────────────── */
.cl-sponsor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 4px;
}

.cl-sponsor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(0, 58, 244, 0.07);
  border: 1px solid rgba(0, 58, 244, 0.16);
  font-size: 13px;
  color: var(--charcoal);
}

.cl-sponsor-chip-name { font-weight: 600; }
.cl-sponsor-chip-meta { color: #7a8390; font-weight: 400; }

.cl-sponsor-chip-remove {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 58, 244, 0.14);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-sponsor-chip-remove:hover { background: rgba(0, 58, 244, 0.26); }

.cl-sponsor-empty {
  font-size: 13px;
  color: #7a8390;
  font-style: italic;
}

.cl-sponsor-search-wrap { position: relative; }

.cl-sponsor-results {
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(0, 58, 244, 0.12);
  border-radius: 10px;
  display: none;
}

.cl-sponsor-results--open { display: block; }

.cl-sponsor-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 58, 244, 0.06);
}

.cl-sponsor-result:last-child { border-bottom: none; }
.cl-sponsor-result:hover { background: rgba(0, 58, 244, 0.05); }
.cl-sponsor-result-name { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.cl-sponsor-result-meta { font-size: 12px; color: #7a8390; }

.cl-sponsor-hint {
  font-size: 12px;
  color: #7a8390;
  padding: 10px 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   COURSE PAGE  (/course/:id)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Header band ─────────────────────────────────────────────────── */
.cp-header {
  background: linear-gradient(135deg, #0f0a2e 0%, #1a0f4f 40%, #003af4 100%);
  padding: 40px 0 44px;
  margin-bottom: 0;
  border-radius: 28px;
  overflow: hidden;
}

.cp-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.cp-breadcrumb {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.15s;
}

.cp-breadcrumb:hover { color: rgba(255,255,255,0.9); }

.cp-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 680px;
}

.cp-header-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 620px;
}

.cp-header-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Single-column body ──────────────────────────────────────────── */
.cp-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 32px 64px;
}

/* ── Main content sections ───────────────────────────────────────── */
.cp-section {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.cp-section:last-child { margin-bottom: 0; }

.cp-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.cp-section-body {
  font-size: 15px;
  color: #3a4250;
  line-height: 1.7;
  margin: 0;
}

.cp-muted { color: #9aa3b0; }

/* ── Videos ──────────────────────────────────────────────────────── */
.cp-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 58, 244, 0.03);
  border: 1px solid rgba(0, 58, 244, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
}

.cp-video-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #003af4, #6b2cf4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-video-play {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
}

.cp-video-info { flex: 1; min-width: 0; }

.cp-video-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 2px;
}

.cp-video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-video-size {
  font-size: 11px;
  color: #9aa3b0;
  margin-top: 2px;
}

.cp-video-play-btn {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--blue);
  background: rgba(0, 58, 244, 0.08);
  border: 1px solid rgba(0, 58, 244, 0.18);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s;
}

.cp-video-play-btn:hover:not(:disabled) { background: rgba(0, 58, 244, 0.14); }
.cp-video-play-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Transcripts ─────────────────────────────────────────────────── */
.cp-transcript-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-transcript-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 58, 244, 0.03);
  border: 1px solid rgba(0, 58, 244, 0.08);
  border-radius: 10px;
}

.cp-transcript-icon {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.6;
  flex-shrink: 0;
}

.cp-transcript-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.cp-transcript-size {
  font-size: 11px;
  color: #9aa3b0;
  white-space: nowrap;
}

/* ── Phase B placeholder ─────────────────────────────────────────── */
.cp-section--placeholder {
  text-align: center;
  padding: 44px 28px;
  border-style: dashed;
  border-color: rgba(0, 58, 244, 0.12);
  background: rgba(0, 58, 244, 0.015);
}

.cp-placeholder-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.3; }

.cp-placeholder-title {
  font-size: 16px;
  font-weight: 800;
  color: #5a6474;
  margin-bottom: 8px;
}

.cp-placeholder-body {
  font-size: 13px;
  color: #9aa3b0;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
  margin-inline: auto;
}

/* ── Skill tags (shared across course page and modal) ─────────────── */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 58, 244, 0.08);
  color: #003af4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Inline progress bar ─────────────────────────────────────────── */
.cp-pb {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cp-pb-meta {
  flex: 1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
}

.cp-pb-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-pb-meta-item dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9aa3b0;
}

.cp-pb-meta-item dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.cp-pb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cp-pb .cp-cta-btn {
  width: auto;
  white-space: nowrap;
  margin-bottom: 0;
}

.cp-pb .cp-mark-done-btn {
  width: auto;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ── Progress ring ───────────────────────────────────────────────── */
.cp-ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.cp-ring {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
}

.cp-ring-bg {
  fill: none;
  stroke: rgba(0, 58, 244, 0.1);
  stroke-width: 6;
}

.cp-ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.cp-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.cp-ring-pct {
  font-size: 18px;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cp-ring-sub {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9aa3b0;
}

/* ── CTAs ────────────────────────────────────────────────────────── */
.cp-cta-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  margin-bottom: 10px;
}

.cp-cta-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.cp-cta-btn:active:not(:disabled) { transform: translateY(0); }

.cp-cta-btn--done {
  background: rgba(0, 58, 244, 0.08);
  color: var(--blue);
  cursor: default;
}

.cp-cta-btn--done:hover { opacity: 1; transform: none; }

.cp-mark-done-btn {
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 58, 244, 0.18);
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s;
  margin-bottom: 10px;
}

.cp-mark-done-btn:hover { background: rgba(0, 58, 244, 0.06); }

/* ── Card meta ───────────────────────────────────────────────────── */
.cp-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 58, 244, 0.07);
  margin: 14px 0;
}

.cp-card-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.cp-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-card-meta-row dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa3b0;
}

.cp-card-meta-row dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

/* ── Not-found state ─────────────────────────────────────────────── */
.cp-not-found {
  padding: 80px 32px;
  text-align: center;
  color: #7a8390;
}

.cp-not-found-icon { font-size: 36px; margin-bottom: 16px; opacity: 0.3; }

.cp-not-found-title {
  font-size: 20px;
  font-weight: 800;
  color: #3a434f;
  margin-bottom: 10px;
}

.cp-not-found-link {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
}

.cp-not-found-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   COURSE CONTENT BLOCKS  (.cb-*)
   ════════════════════════════════════════════════════════════════ */

.cb-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-block {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.cb-block--done {
  border-color: var(--blue);
  border-left: 4px solid var(--blue);
}

.cb-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cb-block-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cb-block--written    .cb-block-icon { background: rgba(100,100,120,0.1); color: #666; }
.cb-block--video      .cb-block-icon { background: rgba(0,20,80,0.1);     color: var(--blue); }
.cb-block--flipcard   .cb-block-icon { background: rgba(0,58,244,0.1);    color: var(--blue); }
.cb-block--simulation .cb-block-icon { background: rgba(122,63,245,0.1);  color: var(--violet); }
.cb-block--quiz       .cb-block-icon { background: rgba(122,63,245,0.1);  color: var(--violet); }
.cb-block--casestudy  .cb-block-icon { background: rgba(0,58,244,0.1);    color: var(--blue); }
.cb-block--survey     .cb-block-icon { background: rgba(122,63,245,0.1);  color: var(--violet); }

.cb-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  margin: 0;
}

.cb-done-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 58, 244, 0.08);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.cb-block-hint {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.cb-block-body {
  padding: 20px;
}

.cb-block-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* ── Written ──────────────────────────────────────────────────── */

.cb-written-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 244, 0.2) transparent;
}

.cb-written-content::-webkit-scrollbar { width: 4px; }
.cb-written-content::-webkit-scrollbar-track { background: transparent; }
.cb-written-content::-webkit-scrollbar-thumb { background: rgba(0, 58, 244, 0.2); border-radius: 2px; }

.cb-written-content p { margin: 0 0 14px; }
.cb-written-content p:last-child { margin-bottom: 0; }

.cb-written-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 16px 0;
}

.cb-written-figure {
  margin: 20px 0;
}

.cb-written-figure figcaption {
  font-size: 11px;
  color: #9aa3b0;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── Video ────────────────────────────────────────────────────── */

.cb-video-player {
  background: #090919;
  border-radius: 10px;
  overflow: hidden;
}

.cb-video-screen {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d2e 0%, #1a0a3e 100%);
}

.cb-video-play-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cb-video-play-btn:hover   { background: rgba(255,255,255,0.22); transform: scale(1.04); }
.cb-video-play-btn:active  { transform: scale(0.97); }

.cb-video-done-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 28px;
}

.cb-video-done-overlay div {
  font-size: 13px;
  font-weight: 600;
}

.cb-video-controls {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-video-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.cb-video-progress-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.1s linear;
  border-radius: 2px;
}

.cb-video-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  display: flex;
  gap: 3px;
}

.cb-video-threshold-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  padding: 0 16px 10px;
}

/* ── Flipcard ─────────────────────────────────────────────────── */

.cb-flipcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cb-flipcard {
  height: 320px;
  perspective: 900px;
  cursor: pointer;
}

.cb-flipcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.cb-flipcard--flipped .cb-flipcard-inner { transform: rotateY(180deg); }

.cb-flipcard-front,
.cb-flipcard-back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cb-flipcard-front--img,
.cb-flipcard-back--img {
  padding: 0;
  overflow: hidden;
}

.cb-flipcard-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.cb-flipcard-front {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  border: 1px solid rgba(0, 58, 244, 0.15);
}

.cb-flipcard-back {
  background: linear-gradient(135deg, #003af4 0%, #1a4fff 100%);
  transform: rotateY(180deg);
}

.cb-flipcard-face-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.cb-flipcard-front .cb-flipcard-face-label { color: var(--blue); }
.cb-flipcard-back  .cb-flipcard-face-label { color: rgba(255,255,255,0.7); }

.cb-flipcard-text {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.cb-flipcard-front .cb-flipcard-text { color: var(--text); }
.cb-flipcard-back  .cb-flipcard-text { color: #fff; }

/* ── Simulation ───────────────────────────────────────────────── */

.cb-sim-meta { margin-bottom: 16px; }

.cb-sim-minscore {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
}

.cb-sim-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.cb-sim-launch-btn:hover  { opacity: 0.9; transform: translateY(-1px); }
.cb-sim-launch-btn:active { transform: translateY(0); }

.cb-sim-done {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* Simulation modal */

.cb-sim-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: cb-fade-in 0.18s ease;
}

@keyframes cb-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cb-sim-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  position: relative;
  animation: cb-slide-up 0.22s ease;
}

@keyframes cb-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cb-sim-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.cb-sim-modal-close:hover { background: rgba(0,0,0,0.06); }

.cb-sim-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}

.cb-sim-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.cb-sim-modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.cb-sim-modal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cb-sim-modal-meta-item {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 4px 10px;
}

.cb-sim-begin-btn {
  width: 100%;
  padding: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cb-sim-begin-btn:hover { opacity: 0.9; }

.cb-sim-running {
  text-align: center;
  padding: 28px 0;
}

.cb-sim-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(122,63,245,0.2);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: cb-spin 0.75s linear infinite;
  margin: 0 auto 14px;
}

@keyframes cb-spin { to { transform: rotate(360deg); } }

.cb-sim-running-label {
  font-size: 14px;
  color: var(--muted);
}

.cb-sim-result {
  text-align: center;
  padding: 8px 0 4px;
}

.cb-sim-score {
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}

.cb-sim-pass-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cb-sim-pass-badge--pass { background: rgba(0,58,244,0.08);  color: var(--blue); }
.cb-sim-pass-badge--fail { background: rgba(122,63,245,0.1); color: var(--violet); }

.cb-sim-complete-btn {
  width: 100%;
  padding: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cb-sim-complete-btn:hover { opacity: 0.9; }

/* ── Quiz ─────────────────────────────────────────────────────── */

.cb-quiz-progress-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}

.cb-quiz-prompt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.5;
}

.cb-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cb-quiz-option {
  text-align: left;
  background: #f8f9ff;
  border: 1.5px solid rgba(0, 58, 244, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.cb-quiz-option:hover:not(:disabled) {
  background: rgba(0, 58, 244, 0.06);
  border-color: var(--blue);
}

.cb-quiz-option--correct {
  background: rgba(0,58,244,0.07) !important;
  border-color: var(--blue) !important;
  color: var(--blue);
}

.cb-quiz-option--wrong {
  background: rgba(122,63,245,0.06) !important;
  border-color: var(--violet) !important;
  color: var(--violet);
}

.cb-quiz-feedback {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cb-quiz-feedback--correct {
  background: rgba(0,58,244,0.06);
  border: 1px solid rgba(0,58,244,0.18);
  color: var(--blue);
}

.cb-quiz-feedback--wrong {
  background: rgba(122,63,245,0.06);
  border: 1px solid rgba(122,63,245,0.18);
  color: var(--violet);
}

.cb-quiz-feedback-icon {
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.cb-quiz-feedback-text { flex: 1; }

.cb-quiz-next-wrap {
  display: flex;
  justify-content: flex-end;
}

.cb-quiz-next-btn {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.cb-quiz-next-btn:hover { opacity: 0.88; }

.cb-quiz-complete-state {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ── Case Study ───────────────────────────────────────────────── */

.cb-cs-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.cb-cs-description p    { margin: 0 0 12px; }
.cb-cs-description p:last-child { margin-bottom: 0; }
.cb-cs-description a    { color: var(--blue); text-decoration: underline; }
.cb-cs-description strong { font-weight: 600; }

.cb-cs-upload-zone {
  border: 2px dashed rgba(0, 58, 244, 0.22);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(0, 58, 244, 0.025);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cb-cs-upload-zone:hover,
.cb-cs-upload-zone--drag {
  border-color: var(--blue);
  background: rgba(0, 58, 244, 0.06);
}

.cb-cs-upload-icon {
  font-size: 22px;
  opacity: 0.35;
  margin-bottom: 10px;
}

.cb-cs-upload-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cb-cs-browse-label {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

.cb-cs-upload-formats {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  margin-top: 4px;
}

.cb-cs-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 58, 244, 0.04);
  border: 1px solid rgba(0, 58, 244, 0.15);
  border-radius: 8px;
  margin-top: 12px;
}

.cb-cs-file-icon { font-size: 18px; flex-shrink: 0; }

.cb-cs-file-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-cs-submit-btn {
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  font-family: inherit;
}

.cb-cs-submit-btn:hover { opacity: 0.9; }

.cb-cs-submitted {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ── Survey ───────────────────────────────────────────────────── */

.cb-survey-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cb-survey-q {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-survey-q-prompt {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.cb-survey-rating {
  display: flex;
  gap: 6px;
}

.cb-rating-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
}

.cb-rating-btn:hover { border-color: var(--violet); color: var(--violet); }

.cb-rating-btn--selected {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.cb-survey-textarea {
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.15s;
  background: #fff;
}

.cb-survey-textarea:focus {
  outline: none;
  border-color: var(--violet);
}

.cb-survey-submit-btn {
  align-self: flex-start;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.cb-survey-submit-btn:hover { opacity: 0.9; }

.cb-survey-thanks {
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  padding: 8px 0;
}

/* ── Manual complete ──────────────────────────────────────────── */

.cb-manual-complete {
  padding: 8px 0 4px;
  display: flex;
  justify-content: flex-end;
}

.cb-manual-complete-btn {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

/* ==================================================================
   SPONSOR PORTAL  (/sponsor)
   ================================================================== */
.sp-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 32px 0;
}
.sp-course-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #3a434f;
}
.sp-course-select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a2230;
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 9px;
  padding: 9px 14px;
  min-width: 280px;
  cursor: pointer;
}
.sp-course-select:focus { outline: none; border-color: var(--blue); }
.sp-course-meta { font-size: 13px; color: #7a8390; }
.sp-toolbar-spacer { flex: 1 1 auto; }
.sp-export-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(0, 58, 244, 0.22);
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .12s ease, border-color .12s ease;
}
.sp-export-btn:hover { background: rgba(0, 58, 244, 0.06); border-color: var(--blue); }
.sp-export-ico { font-size: 14px; line-height: 1; }

/* Filter card: inset like the other sections (margin, not full-bleed padding)
   with equal vertical padding so the selects sit centered, not bottom-aligned. */
.sp-filter-bar { margin: 20px 32px 0; padding: 14px 20px; }
.sp-clear-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 58, 244, 0.06);
  border: 1px solid rgba(0, 58, 244, 0.18);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.sp-clear-btn:hover { background: rgba(0, 58, 244, 0.12); }

.sp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px 32px 0;
}

.sp-learner-card { margin: 20px 32px 40px; }
.sp-learner-course { color: var(--blue); font-weight: 600; }

.sp-td-email { color: #7a8390; font-size: 12px; margin-top: 2px; }
.kpi-th--num { text-align: right; }

.sp-no-data { padding: 32px; text-align: center; color: #7a8390; font-size: 14px; }

.sp-status-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sp-status--done       { color: #0f6e56; background: rgba(15, 110, 86, 0.12); }
.sp-status--prog       { color: #9a6a00; background: rgba(154, 106, 0, 0.12); }
.sp-status--notstarted { color: #7a8390; background: rgba(122, 131, 144, 0.14); }

.sp-analysis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  padding: 16px 32px 0;
}
.sp-section { padding: 20px 22px; }

/* Trend chart */
.sp-trend {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 14px;
}
.sp-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.sp-trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 120px;
  width: 100%;
}
.sp-trend-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.4s ease;
}
.sp-trend-bar--enr  { background: rgba(0, 58, 244, 0.22); }
.sp-trend-bar--comp { background: var(--blue); }
.sp-trend-label {
  font-size: 10px;
  color: #7a8390;
  margin-top: 6px;
  white-space: nowrap;
  transform: rotate(-40deg);
  transform-origin: center;
}
.sp-trend-legend {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: #5a6472;
}
.sp-trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sp-dot--enr  { background: rgba(0, 58, 244, 0.22); }
.sp-dot--comp { background: var(--blue); }

/* Most-missed questions */
.sp-missed { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sp-missed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f5;
}
.sp-missed-row:last-child { border-bottom: none; padding-bottom: 0; }
.sp-missed-q { font-size: 13px; color: #3a434f; line-height: 1.4; }

/* Learning Advisor nudge */
.sp-advisor-nudge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, #003AF4 0%, #7A3FF5 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 58, 244, 0.22);
}
.sp-advisor-orb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 20px;
}
.sp-advisor-copy { flex: 1 1 auto; min-width: 0; }
.sp-advisor-title { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.sp-advisor-text { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); margin-top: 3px; }
.sp-advisor-btn {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  color: #003AF4;
  font-size: 13px;
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sp-advisor-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

/* Post-training survey */
.sp-survey-card { margin-top: 18px; }
.sp-survey-top { display: flex; gap: 40px; margin: 14px 0 18px; flex-wrap: wrap; }
.sp-survey-big { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; }
.sp-survey-of { font-size: 15px; font-weight: 700; color: #7a8390; margin-left: 4px; }
.sp-survey-dims { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.sp-survey-dim { display: flex; align-items: center; gap: 12px; }
.sp-survey-dim-label { flex: 0 0 150px; font-size: 13px; color: #3a434f; }
.sp-survey-track { flex: 1 1 auto; height: 8px; border-radius: 6px; background: #eef1f5; overflow: hidden; }
.sp-survey-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #003AF4, #7A3FF5); }
.sp-survey-score { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #3a434f; width: 28px; text-align: right; }
.sp-survey-quotes { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.sp-quote {
  flex: 1 1 260px;
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid #7A3FF5;
  background: #f7f8fb;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  font-style: italic;
  color: #4a5560;
  line-height: 1.45;
}

/* Qualitative responses — expandable, grouped by question */
.sp-survey-details { margin-top: 20px; border-top: 1px solid #eef1f5; padding-top: 16px; }
.sp-survey-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  user-select: none;
}
.sp-survey-summary::-webkit-details-marker { display: none; }
.sp-survey-summary::before {
  content: "▸";
  font-size: 11px;
  transition: transform .15s ease;
}
.sp-survey-details[open] .sp-survey-summary::before { transform: rotate(90deg); }
.sp-survey-summary:hover { color: #7A3FF5; }
.sp-qual-group { margin-top: 18px; }
.sp-qual-q {
  font-size: 13px;
  font-weight: 700;
  color: #1a2230;
  margin-bottom: 10px;
}
.sp-qual-list { display: flex; flex-direction: column; gap: 8px; }
.sp-qual-item {
  padding: 10px 14px;
  background: #f7f8fb;
  border-left: 3px solid rgba(0, 58, 244, 0.35);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #4a5560;
  line-height: 1.45;
}
