/* LVL Editorial Light 1670 — reference-driven visual owner
   Goal: reproduce the approved clean, professional, didactic LVL mobile direction
   without changing course pedagogy, APIs, access rules or data ownership. */

html[data-lvl-design="editorial-light-1670"],
html[data-lvl-design="editorial-light-1670"].lvl-theme-light-1199bi,
html[data-lvl-design="editorial-light-1670"].lvl-theme-dark-1199bi {
  --lvl-ed-canvas:#f8f7f4;
  --lvl-ed-surface:#ffffff;
  --lvl-ed-surface-soft:#f3efff;
  --lvl-ed-surface-warm:#fbf8f2;
  --lvl-ed-text:#181629;
  --lvl-ed-text-strong:#0e0d1b;
  --lvl-ed-muted:#6f6a7e;
  --lvl-ed-subtle:#9993a4;
  --lvl-ed-border:#e5e1e9;
  --lvl-ed-border-strong:#d4cedb;
  --lvl-ed-purple:#7137f5;
  --lvl-ed-purple-deep:#5523cb;
  --lvl-ed-purple-soft:#eee7ff;
  --lvl-ed-green:#22a861;
  --lvl-ed-danger:#b63a48;
  --lvl-ed-shadow:0 12px 32px rgba(37,27,62,.055);
  --lvl-ed-radius:16px;
  --lvl-ed-radius-sm:12px;
  --lvl-ed-page:760px;
  color-scheme:light !important;
  background:#f8f7f4 !important;
}

html[data-lvl-design="editorial-light-1670"] body {
  margin:0 !important;
  background:var(--lvl-ed-canvas) !important;
  color:var(--lvl-ed-text) !important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  letter-spacing:-.014em !important;
  color-scheme:light !important;
}

html[data-lvl-design="editorial-light-1670"] body::before,
html[data-lvl-design="editorial-light-1670"] body::after {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] :where(h1,h2,h3,h4,strong,.btn,button) {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  letter-spacing:-.035em !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.app-shell,.main-content,.view) {
  background:transparent !important;
}

html[data-lvl-design="editorial-light-1670"] .app-shell {
  min-height:100dvh !important;
  background:var(--lvl-ed-canvas) !important;
}

html[data-lvl-design="editorial-light-1670"] .main-content {
  width:min(calc(100% - 28px),var(--lvl-ed-page)) !important;
  margin:0 auto !important;
  padding:0 0 calc(92px + env(safe-area-inset-bottom)) !important;
}

html[data-lvl-design="editorial-light-1670"] .view {
  width:100% !important;
  padding:0 0 34px !important;
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] .view[hidden] { display:none !important; }
html[data-lvl-design="editorial-light-1670"] .view.active:not([hidden]) {
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}

html[data-lvl-design="editorial-light-1670"] .eyebrow {
  color:var(--lvl-ed-purple) !important;
  font-size:10px !important;
  line-height:1.2 !important;
  font-weight:850 !important;
  letter-spacing:.22em !important;
}

html[data-lvl-design="editorial-light-1670"] :where(p,small,label,span) {
  color:inherit;
}

html[data-lvl-design="editorial-light-1670"] :where(input,textarea,select) {
  color:var(--lvl-ed-text) !important;
  background:var(--lvl-ed-surface) !important;
  border-color:var(--lvl-ed-border) !important;
  box-shadow:none !important;
}

/* -------------------- Shell -------------------- */

html[data-lvl-design="editorial-light-1670"] :is(#sidebar,#sidebarScrim,#menuBtn,.sidebar,.sidebar-scrim,.bottom-nav,.mobile-bottom-nav) {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-topbar,
html[data-lvl-design="editorial-light-1670"] .topbar {
  position:sticky !important;
  top:0 !important;
  z-index:900 !important;
  width:100% !important;
  min-height:72px !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:11px 0 !important;
  border:0 !important;
  border-bottom:1px solid color-mix(in srgb,var(--lvl-ed-border) 78%,transparent) !important;
  border-radius:0 !important;
  background:color-mix(in srgb,var(--lvl-ed-canvas) 94%,transparent) !important;
  box-shadow:none !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-brand {
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  margin-right:auto !important;
  text-decoration:none !important;
  color:var(--lvl-ed-text-strong) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-brand img {
  width:26px !important;
  height:26px !important;
  object-fit:contain !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-brand strong {
  font-size:23px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-.055em !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-page-context {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  white-space:nowrap !important;
}

html[data-lvl-design="editorial-light-1670"] .top-actions {
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  margin-left:auto !important;
}

html[data-lvl-design="editorial-light-1670"] .top-actions>.xp-pill { display:none !important; }

html[data-lvl-design="editorial-light-1670"] .top-actions :where(.lvl-shell-message,.notification-btn,.icon-btn) {
  width:39px !important;
  height:39px !important;
  min-width:39px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:0 !important;
  border-radius:10px !important;
  background:transparent !important;
  color:var(--lvl-ed-text-strong) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] .top-actions :where(.lvl-shell-message,.notification-btn,.icon-btn):active {
  background:var(--lvl-ed-purple-soft) !important;
  color:var(--lvl-ed-purple) !important;
}

html[data-lvl-design="editorial-light-1670"] .top-actions svg {
  width:22px !important;
  height:22px !important;
  stroke:currentColor !important;
  fill:none !important;
  stroke-width:1.8 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-profile-button,
html[data-lvl-design="editorial-light-1670"] #topProfileBtn {
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:var(--lvl-ed-purple-soft) !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

html[data-lvl-design="editorial-light-1670"] #topProfileBtn strong,
html[data-lvl-design="editorial-light-1670"] #topProfileBtn>b { display:none !important; }

html[data-lvl-design="editorial-light-1670"] #topUserAvatar {
  width:100% !important;
  height:100% !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:var(--lvl-ed-purple-soft) !important;
  color:var(--lvl-ed-purple-deep) !important;
  font-size:15px !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] .notification-popover {
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:var(--lvl-ed-shadow) !important;
  color:var(--lvl-ed-text) !important;
}

/* Bottom dock — direct, light and consistent. */
html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock {
  position:fixed !important;
  z-index:2147483000 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  min-height:72px !important;
  padding:0 8px env(safe-area-inset-bottom) !important;
  border:0 !important;
  border-top:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:rgba(255,255,255,.97) !important;
  box-shadow:0 -6px 22px rgba(32,24,50,.035) !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock-inner {
  width:min(100%,620px) !important;
  min-height:72px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button {
  min-width:0 !important;
  min-height:72px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  padding:7px 1px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#696476 !important;
  box-shadow:none !important;
  font-size:10px !important;
  font-weight:700 !important;
  letter-spacing:-.02em !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock .lvl-shell-dock-icon {
  width:28px !important;
  height:27px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:8px !important;
  background:transparent !important;
  color:inherit !important;
  transform:none !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock svg {
  width:21px !important;
  height:21px !important;
  stroke:currentColor !important;
  stroke-width:1.7 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button.is-active,
html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button[aria-current="page"] {
  color:var(--lvl-ed-purple) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button.is-active .lvl-shell-dock-icon,
html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button[aria-current="page"] .lvl-shell-dock-icon {
  background:transparent !important;
  color:var(--lvl-ed-purple) !important;
  transform:none !important;
}

/* -------------------- Home -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-home {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-greeting {
  min-height:auto !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:20px !important;
  margin:0 !important;
  padding:38px 0 26px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-greeting>div {
  min-width:0 !important;
}

html[data-lvl-design="editorial-light-1670"] #heroGreeting {
  margin:8px 0 7px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(31px,7.8vw,52px) !important;
  line-height:.98 !important;
  font-weight:900 !important;
  text-transform:none !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-greeting p {
  margin:0 !important;
  max-width:390px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:14px !important;
  line-height:1.45 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-date {
  flex:0 0 auto !important;
  padding-top:8px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:10px !important;
  font-weight:750 !important;
  line-height:1.55 !important;
  letter-spacing:.09em !important;
  text-align:right !important;
  text-transform:uppercase !important;
  white-space:pre-line !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-continue {
  margin:0 0 0 !important;
  padding:26px 0 32px !important;
  border-top:1px solid var(--lvl-ed-border) !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] .section-head {
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 16px !important;
  padding:0 !important;
}

html[data-lvl-design="editorial-light-1670"] .section-head h3 {
  margin:5px 0 0 !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:25px !important;
  line-height:1.05 !important;
  font-weight:880 !important;
}

html[data-lvl-design="editorial-light-1670"] .section-head p {
  margin:6px 0 0 !important;
  color:var(--lvl-ed-muted) !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

html[data-lvl-design="editorial-light-1670"] .text-btn {
  flex:0 0 auto !important;
  min-height:auto !important;
  padding:5px 0 !important;
  border:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-purple) !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:750 !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid {
  display:block !important;
  margin:0 !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:not(:first-child) {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child {
  position:relative !important;
  min-height:340px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 148px !important;
  gap:22px !important;
  align-items:stretch !important;
  padding:24px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:var(--lvl-ed-radius) !important;
  background:var(--lvl-ed-surface) !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-body {
  grid-column:1 !important;
  grid-row:1 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  padding:0 !important;
  background:transparent !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover {
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:stretch !important;
  min-height:280px !important;
  width:148px !important;
  height:auto !important;
  margin:0 !important;
  border:0 !important;
  border-radius:12px !important;
  background:#18161f !important;
  box-shadow:0 12px 26px rgba(30,22,45,.12) !important;
  overflow:hidden !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover.cover-nl {
  background:
    linear-gradient(140deg,transparent 0 29%,rgba(115,55,245,.96) 29% 43%,transparent 43% 100%),
    linear-gradient(180deg,#18161f 0 36%,#f3efe7 36% 76%,#14121a 76% 100%) !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover.cover-nl::before {
  content:"Ne\A der\A lands";
  position:absolute !important;
  z-index:3 !important;
  left:43px !important;
  top:92px !important;
  white-space:pre !important;
  color:#17141d !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:28px !important;
  line-height:.82 !important;
  letter-spacing:-.055em !important;
  text-align:left !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover.cover-nl::after {
  content:"";
  position:absolute !important;
  z-index:4 !important;
  right:13px !important;
  top:41px !important;
  width:42px !important;
  height:68px !important;
  border-radius:50% 50% 45% 45% / 58% 58% 42% 42% !important;
  background:linear-gradient(155deg,#c5b0ff,#7b41ed) !important;
  box-shadow:-14px 31px 0 -9px #33264f, -27px 47px 0 -13px #1b1821 !important;
  transform:rotate(7deg) !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover .cover-pattern,
html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover .course-icon,
html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover .cover-badge {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .course-meta {
  order:-3 !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 0 8px !important;
  color:var(--lvl-ed-purple) !important;
  font-size:10px !important;
  font-weight:850 !important;
  letter-spacing:.12em !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid h4 {
  margin:2px 0 7px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:31px !important;
  line-height:1 !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .course-body>p {
  margin:0 0 18px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:13px !important;
  line-height:1.5 !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.progress,.mini-progress) {
  height:6px !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:99px !important;
  background:#e7e2ee !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.progress,.mini-progress)>span {
  display:block !important;
  height:100% !important;
  border-radius:inherit !important;
  background:linear-gradient(90deg,var(--lvl-ed-purple),#a267ff) !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .next-lesson {
  margin-top:auto !important;
  min-height:58px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  padding:14px 15px !important;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(100deg,#6030e9,#8745ff) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .next-lesson small {
  display:block !important;
  grid-column:1 !important;
  margin:0 !important;
  color:rgba(255,255,255,.74) !important;
  font-size:9px !important;
  font-weight:700 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .next-lesson strong {
  grid-column:1 !important;
  margin-top:-4px !important;
  color:#fff !important;
  font-size:13px !important;
  line-height:1.25 !important;
}

html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .next-lesson button {
  grid-column:2 !important;
  grid-row:1 / span 2 !important;
  width:34px !important;
  height:34px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
  font-size:25px !important;
}

html[data-lvl-design="editorial-light-1670"] .home-course-empty {
  min-height:170px !important;
  display:grid !important;
  gap:10px !important;
  padding:24px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:var(--lvl-ed-radius) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-study-rhythm,
html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path {
  padding:28px 0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-study-rhythm .section-head {
  align-items:flex-start !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-study-rhythm h3 {
  font-size:26px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots {
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:9px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots span {
  display:grid !important;
  justify-items:center !important;
  gap:7px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:9px !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots i {
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--lvl-ed-border-strong) !important;
  border-radius:50% !important;
  background:#fff !important;
  color:transparent !important;
  font-size:14px !important;
  font-style:normal !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots span:nth-child(-n+4) i {
  border-color:var(--lvl-ed-purple) !important;
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list {
  position:relative !important;
  display:grid !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list::before {
  content:"" !important;
  position:absolute !important;
  left:17px !important;
  top:20px !important;
  bottom:20px !important;
  width:1px !important;
  background:var(--lvl-ed-border-strong) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list button {
  position:relative !important;
  z-index:1 !important;
  min-height:64px !important;
  display:grid !important;
  grid-template-columns:36px minmax(0,1fr) 24px !important;
  align-items:center !important;
  gap:13px !important;
  padding:9px 0 !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
  text-align:left !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list button>span {
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--lvl-ed-border-strong) !important;
  border-radius:50% !important;
  background:var(--lvl-ed-canvas) !important;
  color:var(--lvl-ed-muted) !important;
  font-size:10px !important;
  font-weight:850 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list .is-current>span {
  border-color:var(--lvl-ed-purple) !important;
  box-shadow:0 0 0 4px var(--lvl-ed-purple-soft) !important;
  background:#fff !important;
  color:var(--lvl-ed-purple) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list strong {
  display:block !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:14px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list small {
  display:block !important;
  margin-top:3px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:11px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list button>b {
  color:var(--lvl-ed-muted) !important;
  font-size:22px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-mini-path-list .is-locked {
  opacity:.52 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-data-bridge,
html[data-lvl-design="editorial-light-1670"] .lvl-editorial-secondary-home {
  display:none !important;
}

/* -------------------- Courses -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-courses {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-hero {
  min-height:auto !important;
  display:block !important;
  margin:0 !important;
  padding:38px 0 22px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-hero h2 {
  max-width:580px !important;
  margin:7px 0 8px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(34px,8vw,52px) !important;
  line-height:.98 !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-hero p {
  max-width:580px !important;
  margin:0 !important;
  color:var(--lvl-ed-muted) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-hero-orb {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-toolbar {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:11px !important;
  margin:0 0 10px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-tabs {
  order:2 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:4px !important;
  padding:4px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:12px !important;
  background:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-tab {
  min-height:40px !important;
  padding:0 12px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:var(--lvl-ed-muted) !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:750 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-tab.active {
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-search {
  order:1 !important;
  min-height:48px !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  padding:0 14px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--lvl-ed-muted) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-search input {
  width:100% !important;
  min-height:46px !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-text) !important;
  font-size:13px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-admin-create {
  order:3 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-filters {
  display:flex !important;
  gap:7px !important;
  overflow-x:auto !important;
  padding:4px 0 16px !important;
  scrollbar-width:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-filters::-webkit-scrollbar {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .filter {
  flex:0 0 auto !important;
  min-height:35px !important;
  padding:0 13px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--lvl-ed-muted) !important;
  box-shadow:none !important;
  font-size:11px !important;
  font-weight:700 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .filter.active {
  border-color:var(--lvl-ed-purple) !important;
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-result-head {
  display:flex !important;
  align-items:end !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:16px 0 9px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-result-head h3 {
  margin:4px 0 0 !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:22px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-result-head>small {
  color:var(--lvl-ed-muted) !important;
  font-size:11px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
  border-top:1px solid var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card {
  min-height:86px !important;
  display:grid !important;
  grid-template-columns:54px minmax(0,1fr) !important;
  gap:13px !important;
  align-items:center !important;
  padding:14px 0 !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-cover {
  grid-column:1 !important;
  width:54px !important;
  height:54px !important;
  min-height:54px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-cover::before,
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-cover::after,
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .cover-pattern,
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .cover-badge {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-icon {
  width:100% !important;
  height:100% !important;
  display:grid !important;
  place-items:center !important;
  background:transparent !important;
  color:var(--lvl-ed-purple) !important;
  font-size:12px !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-icon img {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-flag-icon {
  width:38px !important;
  height:26px !important;
  display:block !important;
  border:1px solid rgba(10,10,20,.08) !important;
  border-radius:4px !important;
  box-shadow:0 2px 6px rgba(22,18,32,.07) !important;
  object-fit:cover !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-flag-emoji {
  font-size:31px !important;
  line-height:1 !important;
  filter:saturate(.95) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-body {
  grid-column:2 !important;
  min-width:0 !important;
  padding:0 28px 0 0 !important;
  position:relative !important;
  background:transparent !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card .course-body::after {
  content:"›" !important;
  position:absolute !important;
  right:2px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  color:var(--lvl-ed-muted) !important;
  font-size:24px !important;
  font-weight:400 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .catalog-badges,
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .course-body>p,
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .catalog-card-actions {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .course-meta {
  display:flex !important;
  gap:8px !important;
  margin:0 0 4px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:9px !important;
  font-weight:750 !important;
  letter-spacing:.08em !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid h4 {
  margin:0 0 7px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:850 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .progress {
  width:min(170px,65%) !important;
  height:4px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid .course-progress-caption {
  display:none !important;
}

/* Optional featured editorial cover: JS marks the first active language course. */
html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course {
  grid-template-columns:minmax(0,1fr) 122px !important;
  min-height:198px !important;
  padding:18px 0 20px !important;
  align-items:stretch !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-cover {
  grid-column:2 !important;
  grid-row:1 !important;
  width:122px !important;
  height:172px !important;
  border:0 !important;
  border-radius:11px !important;
  background:
    linear-gradient(145deg,transparent 0 31%,#7440ed 31% 45%,transparent 45%),
    linear-gradient(180deg,#18161f 0 35%,#f5f1eb 35% 77%,#14121a 77%) !important;
  box-shadow:0 10px 23px rgba(34,24,50,.11) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-cover::before {
  display:block !important;
  content:"Ne\A der\A lands" !important;
  position:absolute !important;
  left:37px !important;
  top:62px !important;
  white-space:pre !important;
  color:#17141d !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:23px !important;
  line-height:.82 !important;
  letter-spacing:-.055em !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-cover::after {
  display:block !important;
  content:"" !important;
  position:absolute !important;
  right:11px !important;
  top:30px !important;
  width:34px !important;
  height:54px !important;
  border-radius:50% 50% 45% 45% / 58% 58% 42% 42% !important;
  background:linear-gradient(155deg,#c9b6ff,#7e45ed) !important;
  box-shadow:-12px 25px 0 -8px #32254b,-22px 37px 0 -11px #1a171f !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-icon {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-body {
  grid-column:1 !important;
  grid-row:1 !important;
  align-self:center !important;
  padding-right:16px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .course-body>p {
  display:block !important;
  max-width:300px !important;
  margin:4px 0 12px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:12px !important;
  line-height:1.45 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .catalog-badges {
  display:flex !important;
  gap:6px !important;
  margin-bottom:8px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .catalog-badge {
  padding:4px 7px !important;
  border:0 !important;
  border-radius:999px !important;
  background:var(--lvl-ed-purple-soft) !important;
  color:var(--lvl-ed-purple-deep) !important;
  font-size:8px !important;
  font-weight:800 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course .catalog-card-actions {
  display:flex !important;
  gap:8px !important;
  margin-top:12px !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.btn.primary,.support-send,.support-feedback-submit) {
  border:0 !important;
  border-radius:11px !important;
  background:linear-gradient(100deg,#6532ed,#8747ff) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-weight:800 !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.btn.ghost,.back-btn) {
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:11px !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

/* -------------------- Arena / Path -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-arena {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-hero {
  padding:38px 0 23px !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-hero h2 {
  max-width:540px !important;
  margin:7px 0 9px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(34px,8vw,50px) !important;
  line-height:1 !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-hero p {
  max-width:570px !important;
  margin:0 !important;
  color:var(--lvl-ed-muted) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-course {
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:11px !important;
  margin:18px 0 0 !important;
  padding:15px 0 18px !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-language-flag {
  width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:50% !important;
  background:#fff !important;
  font-size:25px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-course>div:nth-child(2) strong {
  display:block !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:15px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-course>div:nth-child(2) small {
  display:block !important;
  margin-top:3px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:11px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-course>.progress {
  grid-column:2 !important;
  width:100% !important;
  height:5px !important;
  margin-top:-3px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-arena-course>strong:last-child {
  grid-column:3 !important;
  grid-row:1 / span 2 !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:12px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path {
  position:relative !important;
  display:grid !important;
  padding:16px 0 8px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path::before {
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  left:20px !important;
  top:36px !important;
  bottom:35px !important;
  width:2px !important;
  border-radius:99px !important;
  background:linear-gradient(var(--lvl-ed-green) 0 38%,var(--lvl-ed-purple) 38% 52%,var(--lvl-ed-border-strong) 52%) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path button {
  position:relative !important;
  z-index:1 !important;
  min-height:72px !important;
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) 28px !important;
  align-items:center !important;
  gap:13px !important;
  padding:10px 0 !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
  text-align:left !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path button>span {
  width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--lvl-ed-border-strong) !important;
  border-radius:50% !important;
  background:var(--lvl-ed-canvas) !important;
  color:var(--lvl-ed-muted) !important;
  font-size:12px !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-done>span {
  border-color:var(--lvl-ed-green) !important;
  background:var(--lvl-ed-green) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-current {
  margin:4px 0 !important;
  padding:13px 12px 13px 0 !important;
  border:1px solid #d8c9ff !important;
  border-radius:14px !important;
  background:linear-gradient(100deg,#faf8ff,#f0e9ff) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-current>span {
  border-color:var(--lvl-ed-purple) !important;
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
  box-shadow:0 0 0 5px var(--lvl-ed-purple-soft) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path strong {
  display:block !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:14px !important;
  line-height:1.25 !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path small {
  display:block !important;
  margin-top:4px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:11px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path button>b {
  color:var(--lvl-ed-muted) !important;
  font-size:18px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-done>b {
  color:var(--lvl-ed-green) !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-current>b {
  width:28px !important;
  height:28px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
  font-size:10px !important;
}

html[data-lvl-design="editorial-light-1670"] .lvl-editorial-path .is-locked {
  opacity:.48 !important;
}

/* -------------------- Community -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-community {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-mount {
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community :where(.community-public-v1199t,.community-public-v1199u) {
  gap:14px !important;
  max-width:100% !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-n-hero {
  min-height:auto !important;
  display:block !important;
  margin:0 !important;
  padding:38px 0 24px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-n-hero h2 {
  max-width:560px !important;
  margin:7px 0 8px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(33px,7.7vw,49px) !important;
  line-height:1 !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-n-hero p {
  max-width:560px !important;
  color:var(--lvl-ed-muted) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-n-orbit,
html[data-lvl-design="editorial-light-1670"] #view-community .community-n-hero-art {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community :where(.community-n-action,.community-direct-card,.community-room-card) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-direct-layout {
  grid-template-columns:1fr !important;
  gap:12px !important;
  min-height:auto !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community :where(.community-direct-browser,.community-direct-stage,.community-n-section) {
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:none !important;
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-community .community-direct-card {
  min-height:68px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-text) !important;
}

/* -------------------- Support -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-support {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-hero-1300 {
  min-height:auto !important;
  margin:0 !important;
  padding:38px 0 24px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-hero-1300 h2 {
  margin:7px 0 8px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(33px,7.7vw,48px) !important;
  line-height:1 !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-hero-1300 p {
  margin:0 !important;
  color:var(--lvl-ed-muted) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-status-row {
  display:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-shell-1300 {
  margin-top:16px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:15px !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-tabs-1300 {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  padding:4px !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  background:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-tab-1300 {
  min-height:40px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:var(--lvl-ed-muted) !important;
  box-shadow:none !important;
  font-size:11px !important;
  font-weight:750 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-tab-1300.is-active {
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support :where(.support-panel-1300,.support-chat-card,.support-ai-side,.support-feedback-intro,.support-feedback-form) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-ai-layout {
  grid-template-columns:1fr !important;
  gap:0 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-ai-side {
  padding:16px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-chat-card {
  border:0 !important;
  border-radius:0 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-chat-head {
  border-color:var(--lvl-ed-border) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-messages {
  min-height:270px !important;
  background:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-chat-compose {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
}

html[data-lvl-design="editorial-light-1670"] #view-support .support-chat-compose textarea {
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:11px !important;
  background:#faf9fb !important;
}

/* -------------------- Profile / account -------------------- */

html[data-lvl-design="editorial-light-1670"] #view-profile {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-hero-v16 {
  min-height:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:16px !important;
  margin:0 !important;
  padding:34px 0 22px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-identity {
  display:flex !important;
  align-items:center !important;
  gap:15px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .account-avatar-large {
  width:74px !important;
  height:74px !important;
  display:grid !important;
  place-items:center !important;
  border:2px solid var(--lvl-ed-purple) !important;
  border-radius:50% !important;
  background:var(--lvl-ed-purple-soft) !important;
  color:var(--lvl-ed-purple-deep) !important;
  box-shadow:none !important;
  font-size:26px !important;
  font-weight:900 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-avatar-edit {
  width:29px !important;
  height:29px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:50% !important;
  background:#fff !important;
  color:var(--lvl-ed-purple) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-identity h2 {
  margin:4px 0 3px !important;
  color:var(--lvl-ed-text-strong) !important;
  font-size:27px !important;
  line-height:1 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-identity p,
html[data-lvl-design="editorial-light-1670"] #view-profile .profile-identity small {
  color:var(--lvl-ed-muted) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile :where(.profile-level-card,.profile-plan-card) {
  min-height:auto !important;
  padding:15px 0 !important;
  border:0 !important;
  border-top:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-tabs-v16 {
  display:flex !important;
  gap:20px !important;
  overflow-x:auto !important;
  margin:0 !important;
  padding:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  scrollbar-width:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-tab {
  flex:0 0 auto !important;
  min-height:49px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--lvl-ed-muted) !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:750 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-tab.active {
  box-shadow:inset 0 -2px var(--lvl-ed-purple) !important;
  color:var(--lvl-ed-purple) !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-tab-panel {
  padding:18px 0 0 !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile :where(.panel,.profile-form-panel,.profile-badges-panel-1342,.profile-account-controls) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile :where(.account-settings-card,.profile-snapshot,.profile-form-panel,.profile-badges-panel-1342) {
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:14px !important;
  padding:18px !important;
}

html[data-lvl-design="editorial-light-1670"] #view-profile .profile-page-grid {
  grid-template-columns:1fr !important;
  gap:12px !important;
}

html[data-lvl-design="editorial-light-1670"] #profileAccountControls {
  position:static !important;
  transform:none !important;
  margin:18px 0 0 !important;
  padding:18px !important;
  border:1px solid var(--lvl-ed-border) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:none !important;
}

/* -------------------- Achievements / Stats / Plans / Detail -------------------- */

html[data-lvl-design="editorial-light-1670"] :where(#view-achievements,#view-stats,#view-premium,#view-course-detail,#view-lesson) {
  max-width:690px !important;
  margin:0 auto !important;
}

html[data-lvl-design="editorial-light-1670"] :where(#view-achievements,#view-stats,#view-premium) :where(.achievement-hero-v16,.learning-pulse,.premium-hero-v16,.panel,.stat-card) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] #view-achievements .achievement-hero-v16,
html[data-lvl-design="editorial-light-1670"] #view-premium .premium-hero-v16 {
  margin:0 !important;
  padding:34px 0 22px !important;
  border:0 !important;
  border-bottom:1px solid var(--lvl-ed-border) !important;
  border-radius:0 !important;
  background:transparent !important;
}

html[data-lvl-design="editorial-light-1670"] #view-achievements .achievement-hero-v16 h2,
html[data-lvl-design="editorial-light-1670"] #view-premium .premium-hero-v16 h2 {
  color:var(--lvl-ed-text-strong) !important;
}

html[data-lvl-design="editorial-light-1670"] .course-detail-v13 {
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] .course-detail-v13 :where(.course-detail-hero,.curriculum-panel,.course-side-card,.module,.course-visual-card) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] .course-detail-v13 .course-detail-hero {
  border-radius:16px !important;
}

html[data-lvl-design="editorial-light-1670"] .course-detail-v13 .course-detail-copy h2 {
  color:var(--lvl-ed-text-strong) !important;
  font-size:clamp(30px,7vw,46px) !important;
}

/* Auth gets the same product language instead of becoming a separate visual system. */
html[data-lvl-design="editorial-light-1670"] .auth-gate {
  background:var(--lvl-ed-canvas) !important;
  color:var(--lvl-ed-text) !important;
}

html[data-lvl-design="editorial-light-1670"] .auth-layout {
  gap:22px !important;
}

html[data-lvl-design="editorial-light-1670"] :where(.auth-brand-panel,.auth-card) {
  border-color:var(--lvl-ed-border) !important;
  background:#fff !important;
  color:var(--lvl-ed-text) !important;
  box-shadow:none !important;
}

html[data-lvl-design="editorial-light-1670"] .auth-tab.active {
  background:var(--lvl-ed-purple) !important;
  color:#fff !important;
}

/* Safety: no accidental dark islands from legacy theme assets. */
html[data-lvl-design="editorial-light-1670"] body :where(.view,.panel,.course-card,.catalog-hero,.support-shell-1300,.community-direct-browser,.community-direct-stage,.profile-hero-v16,.profile-form-panel,.stat-card,.premium-hero-v16) {
  --lvl-color-canvas:var(--lvl-ed-canvas) !important;
  --lvl-color-surface:var(--lvl-ed-surface) !important;
  --lvl-color-surface-soft:var(--lvl-ed-surface-soft) !important;
  --lvl-color-text:var(--lvl-ed-text) !important;
  --lvl-color-text-strong:var(--lvl-ed-text-strong) !important;
  --lvl-color-text-muted:var(--lvl-ed-muted) !important;
  --lvl-color-border:var(--lvl-ed-border) !important;
  --lvl-color-accent:var(--lvl-ed-purple) !important;
  --lvl-color-accent-strong:var(--lvl-ed-purple-deep) !important;
  --lvl-color-accent-soft:var(--lvl-ed-purple-soft) !important;
}

@media (min-width:820px) {
  html[data-lvl-design="editorial-light-1670"] {
    --lvl-ed-page:900px;
  }

  html[data-lvl-design="editorial-light-1670"] .main-content {
    width:min(calc(100% - 56px),900px) !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child {
    grid-template-columns:minmax(0,1fr) 190px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover {
    width:190px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    column-gap:26px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #view-courses .catalog-grid>.course-card.lvl-editorial-featured-course {
    grid-column:1 / -1 !important;
  }
}

@media (max-width:520px) {
  html[data-lvl-design="editorial-light-1670"] .main-content {
    width:calc(100% - 28px) !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-topbar,
  html[data-lvl-design="editorial-light-1670"] .topbar {
    min-height:66px !important;
    padding:9px 0 !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-brand img {
    width:24px !important;
    height:24px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-brand strong {
    font-size:22px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-date {
    font-size:9px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child {
    min-height:322px !important;
    grid-template-columns:minmax(0,1fr) 116px !important;
    gap:14px !important;
    padding:18px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover {
    width:116px !important;
    min-height:244px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover.cover-nl::before {
    left:34px !important;
    top:80px !important;
    font-size:23px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover.cover-nl::after {
    right:9px !important;
    top:33px !important;
    width:33px !important;
    height:53px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid h4 {
    font-size:25px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid .course-body>p {
    font-size:12px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots {
    gap:4px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-editorial-week-dots i {
    width:30px !important;
    height:30px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .section-head h3 {
    font-size:22px !important;
  }

  html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock,
  html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock-inner,
  html[data-lvl-design="editorial-light-1670"] .lvl-shell-dock button {
    min-height:68px !important;
  }
}

@media (max-width:390px) {
  html[data-lvl-design="editorial-light-1670"] .main-content {
    width:calc(100% - 22px) !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child {
    grid-template-columns:minmax(0,1fr) 104px !important;
    padding:16px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid>.course-card:first-child .course-cover {
    width:104px !important;
  }

  html[data-lvl-design="editorial-light-1670"] #homeCourseGrid h4 {
    font-size:23px !important;
  }
}
