@media (min-width:901px) {
  .slm-learning .slm-player { align-items:stretch; overflow:visible; transition:grid-template-columns .42s cubic-bezier(.22,1,.36,1); }
  .slm-learning .slm-content { min-width:0; width:100%; overflow:visible; position:relative; }
  .slm-learning .slm-sidebar { position:sticky; top:20px; height:calc(100vh - 40px); max-height:900px; overflow:hidden; border:1px solid var(--slm-line); border-width:0 1px 0 0; opacity:1; transform:translateX(0); transition:opacity .25s ease,transform .42s cubic-bezier(.22,1,.36,1); }
  .slm-learning .slm-curriculum { flex:1; min-height:0; max-height:none; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .slm-player.is-collapsed { grid-template-columns:0 minmax(0,1fr); min-height:100vh; height:auto; overflow:visible!important; }
  .slm-player.is-collapsed .slm-sidebar { opacity:0; transform:translateX(-40px); visibility:hidden; pointer-events:none; }
  .slm-player.is-collapsed .slm-content { grid-column:2; min-height:100vh; height:auto; overflow:visible!important; }
  .slm-player.is-collapsed .slm-content:before { display:none!important; }
  .slm-sidebar-reopen { display:none; position:sticky; z-index:30; top:20px; margin:14px 0 0 14px; width:44px; height:44px; border:1px solid var(--slm-line); border-radius:13px; background:#fff; color:var(--slm-brand); box-shadow:0 7px 20px rgba(20,34,51,.13); font-size:23px; cursor:pointer; animation:slmPop .3s ease; }
  .slm-player.is-collapsed .slm-sidebar-reopen { display:grid; place-items:center; }
  .slm-sidebar-reopen + .slm-sidebar-reopen { display:none!important; }
  .slm-collapse { display:grid; place-items:center; padding:0; transition:transform .22s ease,background .22s ease; }
  .slm-collapse:hover { transform:translateX(-2px); background:#f5f2fa; }
}

.slm-learning { width:100%; min-width:0; max-width:100%; container-type:inline-size; container-name:slm-player; }

.slm-learning .slm-player,
.slm-learning .slm-content,
.slm-learning .slm-lesson,
.slm-learning .slm-lesson-body { min-width:0; max-width:100%; }
.slm-learning .slm-player.is-one-page { display:grid; grid-template-columns:minmax(0,1fr)!important; min-height:0; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
.slm-learning .slm-player.is-one-page .slm-sidebar,
.slm-learning .slm-player.is-one-page .slm-sidebar-reopen,
.slm-learning .slm-player.is-one-page .slm-mobile-head { display:none!important; }
.slm-learning .slm-player.is-one-page .slm-content { grid-column:1; width:100%; }
.slm-learning .slm-player.is-one-page .slm-lesson { width:100%; max-width:none; padding:0; }
.slm-learning .slm-player.is-one-page .slm-lesson-body { width:100%; max-width:none; }
.slm-learning .slm-player.is-one-page .slm-lesson-footer,
.slm-learning .slm-player.is-one-page .slm-floating-next,
.slm-learning .slm-player.is-one-page .slm-floating-prev,
.slm-learning .slm-player.is-one-page .slm-back-top { display:none!important; }
.slm-learning .slm-player.is-view-only .slm-side-progress,
.slm-learning .slm-player.is-view-only .slm-mobile-percent { display:none; }
.slm-html-frame-wrap { display:block; width:100%; min-width:0; max-width:100%; overflow:hidden; border-radius:16px; background:#fff; }
.slm-html-lesson { display:block; width:100%; min-width:0; max-width:100%; height:78vh; min-height:420px; border:0; background:#fff; transition:height .18s ease; }
.slm-floating-next,
.slm-floating-prev { position:fixed; z-index:9990; bottom:28px; min-width:210px; max-width:320px; border-radius:16px; box-shadow:0 12px 34px rgba(8,55,100,.28); transition:transform .22s ease,box-shadow .22s ease; }
.slm-floating-next { right:28px; display:grid; grid-template-columns:auto 28px; gap:1px 14px; align-items:center; padding:13px 16px; background:var(--slm-brand); color:#fff!important; }
.slm-floating-next:hover,
.slm-floating-prev:hover { transform:translateY(-3px); box-shadow:0 17px 40px rgba(8,55,100,.34); }
.slm-floating-next span { font-size:9px; text-transform:uppercase; letter-spacing:.09em; opacity:.78; }
.slm-floating-next strong { grid-column:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.slm-floating-next b { grid-column:2; grid-row:1/3; font-size:23px; }
.slm-floating-prev { left:28px; display:grid; grid-template-columns:28px auto; gap:1px 14px; align-items:center; padding:13px 16px; background:#fff; border:1px solid var(--slm-line); color:var(--slm-ink)!important; }
.slm-floating-prev b { grid-column:1; grid-row:1/3; color:var(--slm-brand); font-size:23px; }
.slm-floating-prev span { grid-column:2; color:var(--slm-brand); font-size:9px; text-transform:uppercase; letter-spacing:.09em; }
.slm-floating-prev strong { grid-column:2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.slm-floating-prev b svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.slm-floating-next.is-compact-side,.slm-floating-prev.is-compact-side { min-width:0; width:52px; height:52px; padding:0; display:grid; place-items:center; border-radius:50%; }
.slm-floating-next.is-compact-side span,.slm-floating-next.is-compact-side strong,.slm-floating-prev.is-compact-side span,.slm-floating-prev.is-compact-side strong { display:none; }
.slm-floating-next.is-compact-side b,.slm-floating-prev.is-compact-side b { grid-column:1; grid-row:1; display:grid; place-items:center; width:100%; height:100%; margin:0; line-height:1; }
.slm-floating-prev.is-compact-side b { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.slm-floating-prev.is-compact-side b svg { position:absolute; inset:0; margin:auto; transform:none!important; }
.slm-back-top { position:fixed; z-index:9989; right:28px; bottom:calc(100px + var(--slm-footer-lift,0px)); width:42px; height:42px; border:1px solid var(--slm-line); border-radius:50%; background:#fff; color:var(--slm-brand); box-shadow:0 7px 22px rgba(20,34,51,.14); font-size:19px; cursor:pointer; transition:transform .2s ease; }
.slm-back-top:hover { transform:translateY(-2px); }
.slm-is-portaled.slm-floating-next,.slm-is-portaled.slm-floating-prev,.slm-is-portaled.slm-back-top{position:fixed!important;z-index:2147483000!important;margin:0!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.slm-is-portaled.slm-floating-next.slm-nav-at-footer,.slm-is-portaled.slm-floating-prev.slm-nav-at-footer{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(18px)!important}
.slm-floating-next,.slm-floating-prev,.slm-floating-next:hover,.slm-floating-prev:hover,.slm-floating-next:focus,.slm-floating-prev:focus,.slm-floating-next *,.slm-floating-prev *{text-decoration:none!important;text-decoration-line:none!important;border-bottom:0!important}
.slm-site-menu-open .slm-is-portaled.slm-floating-next,
.slm-site-menu-open .slm-is-portaled.slm-floating-prev,
.slm-site-menu-open .slm-is-portaled.slm-back-top{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(16px)!important;
}
@keyframes slmPop { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:scale(1); } }

@media (max-width:900px) {
  .slm-sidebar-reopen { display:none!important; }
  .slm-player.is-collapsed .slm-content:before { display:none!important; content:none!important; }
  .slm-learning .slm-content { min-width:0; max-width:100%; overflow:visible; }
  .slm-learning .slm-sidebar { height:100%; max-height:none; overflow:hidden; }
  .slm-learning .slm-curriculum { flex:1; min-height:0; max-height:none; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .slm-html-frame-wrap { overflow:visible; }
  .slm-html-lesson { height:72vh; min-height:420px; overflow:hidden; }
  .slm-floating-next { right:10px; bottom:10px; max-width:calc(100vw - 76px); min-width:160px; padding:10px 13px; }
  .slm-floating-prev { left:10px; bottom:10px; min-width:0; width:42px; height:42px; padding:0; display:grid; place-items:center; border:2px solid var(--slm-brand); border-radius:50%; box-shadow:0 8px 22px rgba(8,55,100,.18); }
  .slm-floating-prev b { grid-column:1; grid-row:1; display:grid; place-items:center; width:100%; height:100%; line-height:1; transform:none; }
  .slm-floating-prev b svg { margin:auto; transform:none; }
  .slm-floating-prev span,.slm-floating-prev strong { display:none; }
  .slm-back-top { right:12px; bottom:calc(78px + var(--slm-footer-lift,0px)); width:38px; height:38px; }
  .slm-learning .slm-mobile-head { position:sticky; top:0; z-index:80; height:auto; min-height:68px; gap:12px; padding:10px 14px; background:rgba(255,255,255,.96); box-shadow:0 5px 18px rgba(20,34,51,.08); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
  .slm-learning .slm-mobile-curriculum { display:inline-flex; flex:1 1 auto; min-width:0; align-items:center; justify-content:flex-start; gap:9px; min-height:46px; margin:0; padding:11px 15px; border:0; border-radius:12px; background:var(--slm-brand); color:#fff!important; box-shadow:0 6px 16px rgba(89,123,124,.34); font:inherit; cursor:pointer; }
  .slm-learning .slm-mobile-curriculum span { display:block; font-size:20px; font-weight:400; line-height:1; }
  .slm-learning .slm-mobile-curriculum strong { display:block; color:inherit; font-size:13px; font-weight:800; line-height:1; white-space:nowrap; }
  .slm-learning .slm-mobile-percent { flex:0 0 auto; padding:7px 9px; border-radius:9px; background:#f5f2fa; color:var(--slm-brand); }
  .slm-floating-prev { position:fixed!important; display:flex!important; align-items:center!important; justify-content:center!important; }
  .slm-floating-prev b { position:absolute!important; inset:0!important; display:flex!important; align-items:center!important; justify-content:center!important; width:auto!important; height:auto!important; margin:0!important; padding:0!important; line-height:0!important; }
  .slm-floating-prev b svg { position:static!important; display:block!important; width:22px!important; height:22px!important; margin:0!important; transform:translateX(3px)!important; }
}

@media (max-width:520px) {
  .slm-html-lesson { height:68vh; min-height:420px; }
  .slm-floating-next { min-width:0; max-width:calc(100vw - 76px); }
}

/*
 * WordPress themes and page builders often place the player in a column that is
 * much narrower than the browser window. These container rules make the player
 * respond to its real available width instead of the viewport width.
 */
@container slm-player (max-width:900px) {
  .slm-learning .slm-player { display:block; border-radius:16px; }
  .slm-learning .slm-sidebar { position:fixed; z-index:99999; inset:0 12% 0 0; width:auto; height:100%; max-height:none; overflow:hidden; box-shadow:20px 0 50px rgba(0,0,0,.25); opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-110%); }
  .slm-learning .slm-player.mobile-open .slm-sidebar { transform:translateX(0); }
  .slm-learning .slm-content { width:100%; min-width:0; max-width:100%; overflow:visible; }
  .slm-learning .slm-mobile-head { display:flex; height:56px; padding:0 16px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--slm-line); }
  .slm-learning .slm-collapse { font-size:0; }
  .slm-learning .slm-collapse:after { content:'×'; font-size:23px; }
  .slm-learning .slm-sidebar-reopen { display:none!important; }
  .slm-learning .slm-lesson { width:100%; padding:40px 24px; }
  .slm-learning .slm-html-lesson { height:72vh; min-height:420px; }
}

@container slm-player (max-width:620px) {
  .slm-learning .slm-lesson { padding:32px 19px; }
  .slm-learning .slm-lesson h1 { font-size:34px; }
  .slm-learning .slm-lesson-footer { flex-direction:column-reverse; align-items:stretch; }
  .slm-learning .slm-footer-actions { flex-direction:row; width:100%; align-items:stretch; }
  .slm-learning .slm-footer-actions > .slm-complete,
  .slm-learning .slm-footer-actions > .slm-next-btn { flex:1 1 0; min-width:0; width:auto; padding:11px 10px; font-size:12px; line-height:1.2; text-align:center; justify-content:center; white-space:normal; }
  .slm-learning .slm-nav-btn { max-width:100%; }
}

@container slm-player (max-width:520px) {
  .slm-learning .slm-html-lesson { height:68vh; min-height:420px; }
}

.slm-card-actions { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:stretch; }
.slm-card-actions .slm-ghost-btn,.slm-card-actions .slm-primary-btn { min-width:0; width:100%; }
.slm-course-card .slm-primary-btn,.slm-course-card .slm-ghost-btn { font-weight:400; }
.slm-unified-dashboard .slm-dashboard-head { margin-bottom:34px; }
.slm-dashboard-section { padding:30px; border:1px solid var(--slm-line); border-radius:25px; background:#fff; box-shadow:0 8px 28px rgba(15,36,58,.06); }
.slm-dashboard-section + .slm-dashboard-section { margin-top:28px; }
.slm-dashboard-explore { background:linear-gradient(145deg,#f8fbfe,#fff); }
.slm-dashboard-section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:22px; margin-bottom:22px; }
.slm-dashboard-section-head h3 { margin:2px 0 5px; font-size:30px; line-height:1.1; letter-spacing:-.025em; }
.slm-dashboard-section-head p { margin:0; color:var(--slm-muted); }
.slm-dashboard-section-head > strong { width:46px; height:46px; display:grid; place-items:center; flex:0 0 46px; border-radius:15px; background:#f5f2fa; color:var(--slm-brand); font-size:17px; }
.slm-dashboard-note { display:flex; align-items:center; gap:16px; padding:22px; border:1px dashed #cbd5e1; border-radius:17px; background:var(--slm-soft); }
.slm-dashboard-note > span { width:44px; height:44px; display:grid; place-items:center; flex:0 0 44px; border-radius:14px; background:var(--slm-brand); color:#fff; font-size:20px; }
.slm-dashboard-note h4 { margin:0 0 3px; font-size:17px; }
.slm-dashboard-note p { margin:0; color:var(--slm-muted); }
.slm-app.slm-course-home { width:calc(100% - 48px); max-width:1240px; margin:0 auto; padding-top:12px; padding-bottom:72px; }
body.slm-course-home-page .ous-content { padding-top:0!important; }
.slm-home-top { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; color:var(--slm-muted); font-size:13px; font-weight:750; }
.slm-home-top a { color:var(--slm-brand)!important; }
.slm-home-hero { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); overflow:hidden; border:1px solid var(--slm-line); border-radius:28px; background:linear-gradient(135deg,#fff 0%,#f2f7fc 100%); box-shadow:var(--slm-shadow); }
.slm-home-hero-copy { padding:52px; align-self:center; }
.slm-home-hero h1 { margin:6px 0 18px; font-size:clamp(36px,5vw,62px); line-height:1.04; letter-spacing:-.045em; }
.slm-home-intro { color:var(--slm-muted); font-size:16px; }
.slm-home-intro > :first-child { margin-top:0; }
.slm-home-intro > :last-child { margin-bottom:0; }
.slm-home-welcome { margin:24px 0 18px; padding:16px 18px; border-left:4px solid var(--slm-brand); border-radius:0 12px 12px 0; background:rgba(255,255,255,.76); }
.slm-home-start { width:max-content; min-width:190px; }
.slm-home-image { min-height:300px; margin:28px 28px 28px 0; display:grid; place-items:center; overflow:hidden; border-radius:0 18px 18px 0; background:#f4f7fa; }
.slm-home-image img { width:100%; height:100%; object-fit:contain; display:block; }
.slm-home-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:22px; margin-top:22px; align-items:start; }
.slm-home-panel { padding:32px; border:1px solid var(--slm-line); border-radius:24px; background:#fff; box-shadow:0 8px 28px rgba(15,36,58,.07); }
.slm-home-panel-head h2 { margin:3px 0 7px; font-size:30px; letter-spacing:-.025em; }
.slm-home-panel-head > p:last-child { margin:0 0 24px; color:var(--slm-muted); }
.slm-home-outline > section { margin-top:15px; border:1px solid var(--slm-line); border-radius:16px; overflow:hidden; }
.slm-home-outline > section > h3 { display:flex; align-items:center; gap:11px; margin:0; padding:15px 17px; background:var(--slm-soft); font-size:15px; }
.slm-home-outline > section > h3 span { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:var(--slm-brand); color:#fff; font-size:11px; }
.slm-home-outline > section > div { display:grid; }
.slm-home-outline a { display:flex; gap:11px; align-items:center; padding:13px 17px; border-top:1px solid var(--slm-line); color:var(--slm-ink)!important; font-size:14px; font-weight:700; }
.slm-home-outline a:hover { background:#f5f2fa; }
.slm-home-outline a i { width:25px; height:25px; display:grid; place-items:center; flex:0 0 25px; border:1px solid #cbd5e1; border-radius:50%; color:var(--slm-brand); font-size:11px; font-style:normal; }
.slm-home-outline a.is-done i { border-color:var(--slm-accent); background:var(--slm-accent); color:#fff; }
.slm-home-goals ul { margin:22px 0 28px; padding:0; list-style:none; display:grid; gap:15px; }
.slm-home-goals li { position:relative; padding-left:30px; }
.slm-home-goals li:before { content:'✓'; position:absolute; left:0; top:0; width:21px; height:21px; display:grid; place-items:center; border-radius:50%; background:#f5f2fa; color:#362c66; font-size:11px; font-weight:900; }
.slm-home-goals .slm-requirement-list li { padding-left:0; }
.slm-home-goals .slm-requirement-list li:before { display:none; content:none; }
.slm-home-muted { color:var(--slm-muted); }
.slm-home-certificate { display:flex; gap:14px; padding:19px; border-radius:17px; background:linear-gradient(135deg,#f5f2fa,#fff); }
.slm-home-certificate > span { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; border-radius:13px; background:var(--slm-brand); color:#fff; }
.slm-home-certificate h3 { margin:0 0 5px; font-size:17px; }
.slm-home-certificate p { margin:0; color:var(--slm-muted); font-size:13px; }
.slm-home-help { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:22px; padding:18px; border:1px solid var(--slm-line); border-radius:16px; background:#fff; }
.slm-home-help > span { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--slm-brand); color:#fff; font-weight:900; }
.slm-home-help p { margin:0; }
.slm-home-help a { color:var(--slm-brand)!important; font-weight:800; }

@media (max-width:900px) {
  .slm-app.slm-course-home { width:calc(100% - 32px); margin:0 auto; padding-top:10px; padding-bottom:54px; }
  .slm-home-hero,.slm-home-grid { grid-template-columns:1fr; }
  .slm-home-image { min-height:260px; margin:20px 20px 0; order:-1; border-radius:16px; }
  .slm-home-hero-copy { padding:34px; }
}

@media (max-width:620px) {
  .slm-app.slm-course-home { width:calc(100% - 24px); margin:0 auto; padding-top:8px; padding-bottom:42px; }
  .slm-card-actions { grid-template-columns:1fr; }
  .slm-dashboard-section { padding:22px 18px; border-radius:20px; }
  .slm-dashboard-section-head { align-items:flex-start; }
  .slm-dashboard-section-head h3 { font-size:26px; }
  .slm-dashboard-note { align-items:flex-start; }
  .slm-home-top { padding:0 4px; }
  .slm-home-hero { border-radius:20px; }
  .slm-home-hero-copy,.slm-home-panel { padding:24px 20px; }
  .slm-home-hero h1 { font-size:38px; }
  .slm-home-start { width:100%; }
  .slm-home-help { align-items:flex-start; justify-content:flex-start; }
}

/* One-page courses with an overlay/transparent theme header need a safe
 * content offset. The spacer is injected inside the lesson's first layout
 * container so the course's own full-bleed background continues behind it. */
body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-one-page-header-spacer {
  display:block!important;
  width:100%!important;
  height:96px!important;
  min-height:96px!important;
  flex:0 0 96px!important;
  grid-column:1 / -1!important;
  pointer-events:none!important;
  visibility:hidden!important;
}
body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-lesson-body [id] {
  scroll-margin-top:112px;
}
@media (max-width:900px) {
  body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-one-page-header-spacer {
    height:82px!important;
    min-height:82px!important;
    flex-basis:82px!important;
  }
  body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-lesson-body [id] {
    scroll-margin-top:98px;
  }
}
@media (max-width:620px) {
  body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-one-page-header-spacer {
    height:72px!important;
    min-height:72px!important;
    flex-basis:72px!important;
  }
  body.slm-transparent-header .slm-learning .slm-player.is-one-page .slm-lesson-body [id] {
    scroll-margin-top:88px;
  }
}

/* 1.14.8: stable, self-contained mobile curriculum drawer. */
@media (max-width:900px) {
  .slm-learning .slm-sidebar,
  .slm-learning .slm-player.mobile-open .slm-sidebar {
    z-index:2147482200!important;
    top:0!important;
    bottom:0!important;
    left:0!important;
    right:12%!important;
    width:auto!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }
  .slm-learning .slm-curriculum {
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
  }
  .slm-learning .slm-side-top {
    position:relative;
    z-index:2;
    flex:0 0 auto;
    background:#f5f2fa;
  }
  .slm-mobile-backdrop {
    position:fixed;
    z-index:2147482100;
    top:0;
    right:0;
    bottom:0;
    left:88%;
    width:12%;
    height:100dvh;
    margin:0;
    padding:0;
    border:0;
    background:rgba(10,23,36,.34);
    backdrop-filter:blur(1px);
    -webkit-backdrop-filter:blur(1px);
    cursor:pointer;
    touch-action:none;
  }
  .slm-mobile-backdrop[hidden] { display:none!important; }
}

/* Portaled controls live under body, so hide them from the document-level lock state. */
.slm-curriculum-open .slm-is-portaled.slm-floating-next,
.slm-curriculum-open .slm-is-portaled.slm-floating-prev,
.slm-curriculum-open .slm-is-portaled.slm-back-top {
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(16px)!important;
}


/* 1.14.10: mobile viewport fit and tighter lesson canvas. */
@media (max-width:900px) {
  .slm-learning .slm-curriculum {
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;
  }
  .slm-learning .slm-lesson { padding:24px 12px; }
  .slm-learning .slm-lesson:has(.slm-html-frame-wrap) { padding-left:6px; padding-right:6px; }
  .slm-learning .slm-html-frame-wrap { border-radius:12px; }
}
@media (max-width:620px) {
  .slm-learning .slm-lesson { padding:22px 10px; }
  .slm-learning .slm-lesson:has(.slm-html-frame-wrap) { padding-left:6px; padding-right:6px; }
}


/* 1.14.11 — Optional course community offshoot. It is deliberately styled
   like a destination, not a numbered/completable lesson. */
.slm-course-community-nav .slm-module-title{cursor:default}
.slm-course-community-nav .slm-module-title b{font-size:17px}
.slm-community-link i{font-style:normal;font-size:16px}
.slm-community-link span small,.slm-community-home-link span small{display:block;opacity:.68;font-size:12px;margin-top:2px}
.slm-home-community a{display:flex;align-items:center;gap:12px;text-decoration:none}
.slm-community-head{margin-bottom:0}
.slm-community-shell{max-width:1480px;margin:0 auto;padding:30px clamp(16px,3vw,42px) 56px}
.slm-community-title{display:flex;align-items:flex-start;gap:16px;margin:0 auto 22px;max-width:1240px}
.slm-community-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:16px;background:#f1f5f9;font-size:23px}
.slm-community-title small{display:block;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:700;opacity:.58;margin:1px 0 4px}
.slm-community-title h1{font-size:clamp(28px,3vw,42px);line-height:1.05;margin:0 0 7px}
.slm-community-title p{margin:0;max-width:760px;opacity:.72}
.slm-community-app{max-width:1240px;margin:0 auto}
.slm-course-community-page .hmc-app{min-height:min(760px,calc(100vh - 240px));box-shadow:0 18px 60px rgba(15,23,42,.08)}
@media(max-width:900px){
  .slm-community-shell{padding:20px 0 36px}
  .slm-community-title{padding:0 16px;margin-bottom:16px}
  .slm-course-community-page .hmc-app{border-radius:0;min-height:calc(100vh - 190px)}
}

/* 1.14.28: keep Back to Top paired with My Notes as the lesson footer enters view. */
.slm-back-top{transition:bottom .16s ease,transform .2s ease}

/* Calm course outline: navigation remains secondary to the lesson. */
.slm-learning .slm-sidebar{background:#f5f2fa}
.slm-learning .slm-module-title{font-weight:600}
.slm-learning .slm-lesson-link span{font-weight:500}
.slm-learning .slm-lesson-link.is-active{background:#f5f2fa;color:#373e48!important;border-left-color:var(--slm-brand)}
.slm-learning .slm-lesson-link.is-active span{font-weight:700}
.slm-learning .slm-lesson-link>i{background:#fff;color:#526477}
.slm-learning .slm-lesson-link.is-done>i{background:#edf1f4;border-color:#cbd5df;color:#526477}
@media(min-width:901px){.slm-learning .slm-sidebar-reopen{width:auto;max-width:calc(100% - 28px);align-self:flex-start;height:40px;padding:0 14px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;box-shadow:0 2px 8px rgba(20,34,51,.06)}}
@media(prefers-reduced-motion:reduce){.slm-learning .slm-player,.slm-learning .slm-sidebar{transition:none!important}}
