:root {
  --lc-bg: #f5f7fb;
  --lc-card: #ffffff;
  --lc-border: #e6ebf3;
  --lc-border-strong: #d6deea;
  --lc-text: #0f172a;
  --lc-muted: #64748b;
  --lc-soft: #f1f5fb;
  --lc-primary: #1a56db;
  --lc-primary-dark: #0f3b8e;
  --lc-primary-soft: #e8efff;
  --lc-green: #16a34a;
  --lc-green-soft: #e7f7ed;
  --lc-amber: #b45309;
  --lc-amber-soft: #fdf2df;
  --lc-red: #dc2626;
  --lc-red-soft: #fdeaea;
  --lc-sidebar: #0b1220;
  --lc-sidebar-2: #111d33;
  --lc-radius: 16px;
  --lc-radius-sm: 10px;
  --lc-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  --lc-shadow-lift: 0 20px 44px rgba(15, 23, 42, .12);
  --lc-sidebar-w: 264px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

.lc-body {
  background: var(--lc-bg);
  color: var(--lc-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.lc-body h1,
.lc-body h2,
.lc-body h3,
.lc-body h4 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  color: var(--lc-text);
  margin: 0;
  letter-spacing: -.01em;
}

.lc-body a { color: inherit; }

.lc-body img { max-width: 100%; display: block; }

.lc-body button { font-family: inherit; }

.lc-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 3000;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--lc-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}

.lc-skip:focus { top: 0; }

.lc-app { min-height: 100vh; }

.lc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: var(--lc-sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, var(--lc-sidebar) 0%, var(--lc-sidebar-2) 100%);
  color: #b8c4d8;
  transition: transform .28s ease;
}

.lc-sidebar--light {
  background: #ffffff;
  color: #3f4b60;
  border-right: 1px solid var(--lc-border);
}

.lc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 22px;
  text-decoration: none;
}

.lc-brand img {
  width: 158px;
  height: auto;
}

.lc-sidebar--light .lc-brand img {
  filter: brightness(0) saturate(100%) opacity(.88);
}

.lc-brand-tag {
  display: none;
}

.lc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
  padding: 2px 0 12px;
  scrollbar-width: thin;
}

.lc-nav-label {
  margin: 18px 10px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6d7c93;
}

.lc-sidebar--light .lc-nav-label { color: #94a3b8; }

.lc-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .2s ease, color .2s ease;
}

.lc-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #7f90aa;
  transition: color .2s ease;
}

.lc-nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.lc-sidebar--light .lc-nav-item:hover {
  background: var(--lc-soft);
  color: var(--lc-text);
}

.lc-nav-item.is-active {
  background: linear-gradient(135deg, var(--lc-primary), #2f6bea);
  color: #fff;
  box-shadow: 0 12px 24px rgba(26, 86, 219, .28);
}

.lc-nav-item.is-active i { color: #fff; }

.lc-sidebar--light .lc-nav-item.is-active {
  background: var(--lc-primary-soft);
  color: var(--lc-primary-dark);
  box-shadow: none;
}

.lc-sidebar--light .lc-nav-item.is-active i { color: var(--lc-primary); }

.lc-nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.lc-sidebar--light .lc-nav-count {
  background: var(--lc-primary);
  color: #fff;
}

.lc-nav-item.is-active .lc-nav-count { background: rgba(255, 255, 255, .24); }

.lc-side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.lc-sidebar--light .lc-side-user { border-top-color: var(--lc-border); }

.lc-side-user-info { min-width: 0; line-height: 1.25; }

.lc-side-user-info b {
  display: block;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-sidebar--light .lc-side-user-info b { color: var(--lc-text); }

.lc-side-user-info span { font-size: 11.5px; color: #8595ad; }

.lc-side-user-out {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #8595ad;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.lc-side-user-out:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.lc-sidebar--light .lc-side-user-out:hover { background: var(--lc-soft); color: var(--lc-text); }

.lc-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #22d3ee);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .03em;
}

.lc-avatar--sm { width: 34px; height: 34px; font-size: 11.5px; }

.lc-avatar--amber { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.lc-avatar--green { background: linear-gradient(135deg, #16a34a, #34d399); }

.lc-avatar--violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.lc-main {
  margin-left: var(--lc-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lc-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 3vw, 38px);
  background: rgba(245, 247, 251, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lc-border);
}

.lc-icon-btn.lc-menu-btn { display: none; }

.lc-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lc-border);
  border-radius: 11px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.lc-icon-btn:hover { border-color: var(--lc-border-strong); color: var(--lc-primary); }

.lc-top-title { min-width: 0; }

.lc-top-title h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.lc-top-title p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--lc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-search {
  position: relative;
  margin-left: auto;
  width: min(300px, 32vw);
}

.lc-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.lc-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--lc-border);
  border-radius: 11px;
  background: #fff;
  color: var(--lc-text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lc-search input:focus {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

.lc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 6px;
}

.lc-top-user-info { line-height: 1.2; }

.lc-top-user-info b { display: block; font-size: 12.5px; }

.lc-top-user-info span { font-size: 11px; color: var(--lc-muted); }

.lc-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.lc-notif {
  position: absolute;
  top: 62px;
  right: clamp(18px, 3vw, 38px);
  width: 320px;
  max-width: calc(100vw - 36px);
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  box-shadow: var(--lc-shadow-lift);
  padding: 10px;
  display: none;
}

.lc-notif.is-open { display: block; }

.lc-notif h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  padding: 8px 10px;
}

.lc-notif-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
}

.lc-notif-item:hover { background: var(--lc-soft); }

.lc-notif-item i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  font-size: 12px;
}

.lc-notif-item b { display: block; font-size: 12.5px; font-weight: 600; }

.lc-notif-item span { font-size: 11.5px; color: var(--lc-muted); }

.lc-content {
  flex: 1;
  padding: 26px clamp(18px, 3vw, 38px) 64px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.lc-view[hidden] { display: none; }

.lc-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: 22px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 240px at 84% -20%, rgba(34, 211, 238, .28), transparent 60%),
    linear-gradient(135deg, #0f2a63 0%, #1a56db 60%, #2f6bea 100%);
  color: #fff;
  box-shadow: 0 22px 50px rgba(26, 86, 219, .24);
}

.lc-welcome h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin: 6px 0 8px;
}

.lc-welcome p {
  margin: 0 0 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
}

.lc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.lc-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.lc-welcome .lc-btn-primary {
  background: #fff;
  color: var(--lc-primary-dark);
}

.lc-welcome .lc-btn-primary:hover { background: #eef3ff; }

.lc-welcome .lc-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}

.lc-welcome .lc-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.lc-ring {
  flex: 0 0 auto;
  position: relative;
  width: 132px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.lc-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }

.lc-ring-track { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 10; }

.lc-ring-val {
  fill: none;
  stroke: #34d399;
  stroke-width: 10;
  stroke-linecap: round;
}

.lc-ring b { position: relative; z-index: 1; font-size: 26px; color: #fff; line-height: 1; }

.lc-ring span { position: relative; z-index: 1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

.lc-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.lc-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
}

.lc-kpi-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  font-size: 17px;
}

.lc-kpi-icon.green { background: var(--lc-green-soft); color: var(--lc-green); }
.lc-kpi-icon.amber { background: var(--lc-amber-soft); color: var(--lc-amber); }
.lc-kpi-icon.violet { background: #f1eafe; color: #7c3aed; }
.lc-kpi-icon.red { background: var(--lc-red-soft); color: var(--lc-red); }

.lc-kpi > div > span { display: block; font-size: 11.5px; color: var(--lc-muted); }

.lc-kpi b { display: block; font-size: 22px; line-height: 1.2; }

.lc-kpi small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lc-green);
}

.lc-kpi small.down { color: var(--lc-red); }

.lc-section { margin-bottom: 30px; }

.lc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.lc-section-head h2 { font-size: 18px; font-weight: 800; }

.lc-section-head a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lc-primary);
  text-decoration: none;
}

.lc-section-head a:hover { text-decoration: underline; }

.lc-continue {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: 18px;
  box-shadow: var(--lc-shadow);
}

.lc-continue-cover {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dbe4f3;
}

.lc-continue-cover img { width: 100%; height: 100%; object-fit: cover; }

.lc-continue-body h3 { font-size: 20px; margin: 8px 0 4px; }

.lc-continue-body p { margin: 0 0 14px; color: var(--lc-muted); font-size: 12.5px; }

.lc-continue-side {
  padding-left: 22px;
  border-left: 1px solid var(--lc-border);
}

.lc-continue-side-k {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-muted);
}

.lc-continue-side b { display: block; margin: 8px 0 4px; font-size: 13.5px; }

.lc-continue-side span { font-size: 12px; color: var(--lc-muted); }

.lc-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.lc-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}

.lc-progress-bar span {
  display: block;
  width: var(--v, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lc-primary), #22d3ee);
}

.lc-progress b { font-size: 12px; color: var(--lc-muted); }

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

.lc-course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.lc-course:hover { transform: translateY(-3px); box-shadow: var(--lc-shadow-lift); }

.lc-course-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dbe4f3;
  overflow: hidden;
}

.lc-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.lc-course:hover .lc-course-cover img { transform: scale(1.04); }

.lc-course-cover .lc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
}

.lc-cover-grad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g1, #1a56db), var(--g2, #22d3ee));
}

.lc-cover-initials {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .94);
}

.lc-course-body p.lc-course-foot { margin: 0; }

.lc-course-body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }

.lc-course-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-primary);
}

.lc-course-body h3 { font-size: 15.5px; margin: 5px 0 8px; }

.lc-course-body h3 a { text-decoration: none; }

.lc-course-body h3 a:hover { color: var(--lc-primary); }

.lc-course-body .lc-progress { margin: 6px 0 12px; }

.lc-course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--lc-muted);
}

.lc-course-foot a {
  font-weight: 700;
  color: var(--lc-primary);
  text-decoration: none;
  white-space: nowrap;
}

.lc-course-foot a:hover { text-decoration: underline; }

.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--lc-soft);
  color: #475569;
}

.lc-badge--green { background: var(--lc-green-soft); color: var(--lc-green); }
.lc-badge--blue { background: var(--lc-primary-soft); color: var(--lc-primary); }
.lc-badge--amber { background: var(--lc-amber-soft); color: var(--lc-amber); }
.lc-badge--red { background: var(--lc-red-soft); color: var(--lc-red); }
.lc-badge--violet { background: #f1eafe; color: #7c3aed; }

.lc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.lc-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lc-cert-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.lc-cert {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
}

.lc-cert-img {
  position: relative;
  padding: 10px;
  background: linear-gradient(135deg, #eef3ff, #e6fbff);
}

.lc-cert-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.lc-cert-body { padding: 14px 16px 16px; }

.lc-cert-body h3 { font-size: 15px; margin-bottom: 4px; }

.lc-cert-body p { margin: 0 0 12px; font-size: 12px; color: var(--lc-muted); }

.lc-cert-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.lc-cert-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--lc-border-strong);
  border-radius: var(--lc-radius);
  background: #fff;
  color: var(--lc-muted);
}

.lc-cert-empty i { font-size: 26px; color: var(--lc-primary); }

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.lc-btn:hover { transform: translateY(-1px); }

.lc-btn-primary { background: var(--lc-primary); color: #fff; }

.lc-btn-primary:hover { background: var(--lc-primary-dark); }

.lc-btn-ghost { background: #fff; border-color: var(--lc-border-strong); color: #334155; }

.lc-btn-ghost:hover { border-color: var(--lc-primary); color: var(--lc-primary); }

.lc-btn-soft { background: var(--lc-primary-soft); color: var(--lc-primary-dark); }

.lc-btn-soft:hover { background: #dbe6ff; }

.lc-btn-danger { background: var(--lc-red-soft); color: var(--lc-red); }

.lc-btn-sm { min-height: 32px; padding: 0 12px; font-size: 11.5px; }

.lc-btn-block { width: 100%; }

.lc-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.lc-pill {
  padding: 7px 14px;
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.lc-pill:hover { border-color: var(--lc-border-strong); }

.lc-pill.is-active {
  background: var(--lc-primary);
  border-color: var(--lc-primary);
  color: #fff;
}

.lc-panel {
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
}

.lc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--lc-border);
}

.lc-panel-head h2 { font-size: 16px; font-weight: 800; }

.lc-panel-head p { margin: 3px 0 0; font-size: 12px; color: var(--lc-muted); }

.lc-panel-body { padding: 18px 20px; }

.lc-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.lc-dash-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.lc-dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.lc-chart { position: relative; }

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

.lc-chart-head h3 { font-size: 15px; }

.lc-chart-head p { margin: 2px 0 0; font-size: 12px; color: var(--lc-muted); }

.lc-chart-legend { display: flex; gap: 14px; font-size: 11px; color: var(--lc-muted); }

.lc-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

.lc-chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--lc-primary); }

.lc-chart-legend i.green { background: #34d399; }

.lc-chart svg { width: 100%; height: auto; display: block; overflow: visible; }

.lc-chart-grid line { stroke: #e8edf5; stroke-width: 1; }

.lc-chart-area { fill: url(#lcAreaFill); }

.lc-chart-line { fill: none; stroke: var(--lc-primary); stroke-width: 2.5; stroke-linecap: round; }

.lc-chart-line-2 { fill: none; stroke: #34d399; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 5; }

.lc-chart-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: #94a3b8; }

.lc-bars { display: flex; align-items: flex-end; gap: 12px; height: 172px; padding-top: 10px; }

.lc-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }

.lc-bar {
  width: 100%;
  max-width: 38px;
  height: var(--h, 40%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2f6bea, var(--lc-primary));
  transition: height .6s ease;
}

.lc-bar.green { background: linear-gradient(180deg, #34d399, #16a34a); }

.lc-bar-col span { font-size: 10.5px; color: #94a3b8; white-space: nowrap; }

.lc-table-wrap { width: 100%; overflow-x: auto; }

.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.lc-table th {
  text-align: left;
  padding: 11px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  background: #fafbfe;
  border-bottom: 1px solid var(--lc-border);
  white-space: nowrap;
}

.lc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
}

.lc-table tr:last-child td { border-bottom: 0; }

.lc-table tbody tr:hover { background: #fafcff; }

.lc-table .lc-user-cell { display: flex; align-items: center; gap: 10px; }

.lc-table .lc-user-cell > div > b { display: block; font-size: 12.5px; }

.lc-table .lc-user-cell > div > span { display: block; font-size: 11px; color: var(--lc-muted); }

.lc-table .lc-actions { display: flex; gap: 6px; justify-content: flex-end; }

.lc-table .lc-progress { min-width: 120px; margin: 0; }

.lc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.lc-status--active { background: var(--lc-green-soft); color: var(--lc-green); }
.lc-status--draft { background: var(--lc-amber-soft); color: var(--lc-amber); }
.lc-status--paused { background: #eef2f8; color: #64748b; }
.lc-status--refunded { background: var(--lc-red-soft); color: var(--lc-red); }

.lc-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lc-top-courses { display: flex; flex-direction: column; gap: 14px; }

.lc-top-course { display: flex; align-items: center; gap: 12px; }

.lc-top-course img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}

.lc-top-course-body { flex: 1; min-width: 0; }

.lc-top-course-body b {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-top-course-body .lc-progress { margin: 6px 0 0; }

.lc-top-course-body .lc-progress b { font-size: 10.5px; }

.lc-activity { display: flex; flex-direction: column; gap: 2px; }

.lc-activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5fb; }

.lc-activity-item:last-child { border-bottom: 0; }

.lc-activity-item i {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  font-size: 12px;
}

.lc-activity-item.green i { background: var(--lc-green-soft); color: var(--lc-green); }

.lc-activity-item b { display: block; font-size: 12.5px; font-weight: 600; }

.lc-activity-item span { font-size: 11px; color: var(--lc-muted); }

.lc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.lc-field--full { grid-column: 1 / -1; }

.lc-field label { font-size: 12px; font-weight: 700; color: #334155; }

.lc-field input,
.lc-field select,
.lc-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--lc-text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lc-field textarea { min-height: 102px; resize: vertical; }

.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

.lc-field small { font-size: 11px; color: var(--lc-muted); }

.lc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5fb;
}

.lc-toggle-row:last-child { border-bottom: 0; }

.lc-toggle-row b { display: block; font-size: 13px; }

.lc-toggle-row span { font-size: 11.5px; color: var(--lc-muted); }

.lc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.lc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.lc-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s ease;
  pointer-events: none;
}

.lc-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .2s ease;
}

.lc-switch input:checked + i { background: var(--lc-primary); }

.lc-switch input:checked + i::after { transform: translateX(18px); }

.lc-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(26, 86, 219, .2); }

.lc-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--lc-border);
}

.lc-profile .lc-avatar { width: 62px; height: 62px; font-size: 19px; }

.lc-profile b { display: block; font-size: 17px; }

.lc-profile > div > span:not(.lc-badge) { font-size: 12.5px; color: var(--lc-muted); }

.lc-profile .lc-badge { margin-top: 6px; }

.lc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 14, 26, .55);
  backdrop-filter: blur(4px);
}

.lc-modal-backdrop.is-open { display: flex; }

.lc-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8, 14, 26, .35);
}

.lc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--lc-border);
}

.lc-modal-head h2 { font-size: 18px; }

.lc-modal-body { padding: 20px 22px; }

.lc-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--lc-border);
}

.lc-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 3000;
  transform: translate(-50%, 20px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.lc-toast.is-open { opacity: 1; transform: translate(-50%, 0); }

.lc-toast i { color: #34d399; }

.lc-scrim {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  background: rgba(8, 14, 26, .45);
}

.lc-scrim.is-open { display: block; }

.lc-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--lc-muted);
}

.lc-empty i { font-size: 30px; color: var(--lc-primary); margin-bottom: 10px; display: block; }

.lc-mt-0 { margin-top: 0; }

.lc-mb-0 { margin-bottom: 0; }

@media (max-width: 1180px) {
  .lc-continue { grid-template-columns: 220px minmax(0, 1fr); }
  .lc-continue-side { display: none; }
  .lc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-dash-grid,
  .lc-dash-grid-2,
  .lc-dash-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .lc-sidebar { transform: translateX(-100%); box-shadow: 0 30px 80px rgba(8, 14, 26, .35); }
  .lc-sidebar.is-open { transform: translateX(0); }
  .lc-main { margin-left: 0; }
  .lc-icon-btn.lc-menu-btn { display: inline-flex; }
  .lc-course-grid,
  .lc-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-top-user-info { display: none; }
}

@media (max-width: 820px) {
  .lc-top-title p { display: none; }
  .lc-search { width: 180px; }
  .lc-welcome { flex-direction: column; align-items: flex-start; }
  .lc-ring { display: none; }
  .lc-form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .lc-topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .lc-search { order: 5; width: 100%; margin-left: 0; }
  .lc-top-actions { margin-left: auto; }
  .lc-content { padding: 18px 16px 48px; }
  .lc-course-grid,
  .lc-cert-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-kpis { grid-template-columns: minmax(0, 1fr); }
  .lc-continue { grid-template-columns: minmax(0, 1fr); }
  .lc-continue-cover { max-height: 200px; }
  .lc-welcome h2 { font-size: 26px; }
  .lc-btn { flex: 1 1 auto; }
  .lc-panel-head .lc-btn,
  .lc-filters .lc-btn,
  .lc-actions .lc-btn,
  .lc-cert-actions .lc-btn { flex: 0 0 auto; }
  .lc-panel-head { flex-wrap: wrap; }
  .lc-welcome-actions { width: 100%; }
  .lc-brand img { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-sidebar,
  .lc-course,
  .lc-course-cover img,
  .lc-btn,
  .lc-bar,
  .lc-toast { transition: none; }
}

.lc-sso-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f0d7a6;
  border-radius: var(--lc-radius-sm);
  background: var(--lc-amber-soft);
  color: #7c4a03;
  font-size: 12.5px;
  line-height: 1.55;
}

.lc-sso-notice > i {
  margin-top: 2px;
  font-size: 15px;
  color: var(--lc-amber);
}

.lc-sso-notice b {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.lc-sso-notice code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .65);
  font-size: 11.5px;
}

.lc-sso-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.lc-sso-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lc-sso-id > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  font-size: 15px;
}

.lc-sso-id b {
  display: block;
  font-size: 13px;
  word-break: break-word;
}

.lc-sso-id span {
  font-size: 11.5px;
  color: var(--lc-muted);
}

.lc-sso-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lc-muted);
}

.lc-auth {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f5f7fb, #e9f0fa);
}

.lc-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 34px 30px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  background: var(--lc-card);
  box-shadow: var(--lc-shadow-lift);
  text-align: center;
}

.lc-auth-logo {
  width: 158px;
  height: auto;
  margin: 0 auto 22px;
}

.lc-auth-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 3px solid var(--lc-primary-soft);
  border-top-color: var(--lc-primary);
  border-radius: 50%;
  animation: lcspin .8s linear infinite;
}

@keyframes lcspin {
  to { transform: rotate(360deg); }
}

.lc-auth-card h2 {
  margin-bottom: 6px;
  font-size: 19px;
}

.lc-auth-card p {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lc-muted);
}

.lc-auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lc-auth-actions .lc-btn {
  min-width: 140px;
}

html.lc-auth-lock,
html.lc-auth-lock body {
  overflow: hidden;
}

html.lc-auth-lock .lc-app {
  display: none;
}

@media (max-width: 640px) {
  .lc-sso-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .lc-sso-row .lc-btn {
    width: 100%;
  }
}

/* ---- Enrolment-driven "My courses" (cf-mycourses.js) ---------------------- */
.lc-course-cta {
  margin-top: auto;
  width: 100%;
}
.lc-course-body .lc-course-cta i { font-size: 10px; }

.lc-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 44px 24px;
  background: var(--lc-card);
  border: 1px dashed var(--lc-border-strong);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
}
.lc-empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  font-size: 22px;
}
.lc-empty h3 {
  font-size: 16.5px;
  font-weight: 800;
}
.lc-empty p {
  margin: 0 0 6px;
  max-width: 44ch;
  color: var(--lc-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Button label colours.
   ".lc-body a { color: inherit }" has higher specificity than ".lc-btn-primary",
   so primary buttons outside the dark welcome panel were rendering with dark
   inherited text on a blue background. These rules restore the intended colours
   and keep the inverted welcome-panel buttons intact. */
.lc-body .lc-btn-primary { color: #fff; }
.lc-body .lc-btn-soft { color: var(--lc-primary-dark); }
.lc-body .lc-btn-ghost { color: #334155; }

.lc-body .lc-welcome .lc-btn-primary { color: var(--lc-primary-dark); }
.lc-body .lc-welcome .lc-btn-ghost { color: #fff; }
