:root{
  --lm-header-h-desktop: 54px;
  --lm-header-h-mobile: 54px;

  --lm-sidebar-w-desktop: 256px;
  --lm-sidebar-w-mobile: 256px;

  --lm-header-pad-x-desktop: 0px;
  --lm-header-pad-x-mobile: 14px;

  --lm-content-top-desktop: 36px;
  --lm-content-top-mobile: 22px;

  --lm-content-left-desktop: 44px;
  --lm-content-right-desktop: 44px;

  --lm-content-left-mobile: 10px;
  --lm-content-right-mobile: 10px;

  --lm-shell-bg: #f5f6f8;
  --lm-surface-card: #ffffff;
  --lm-surface-sidebar: #ffffff;
  --lm-border-soft: #e5e7eb;
  --lm-border-strong: #dbe6ff;
  --lm-text-main: #111827;
  --lm-text-soft: #374151;
  --lm-text-muted: #6b7280;
  --lm-text-faint: #9ca3af;
  --lm-accent: #2563eb;
  --lm-accent-soft: #3b82f6;
  --lm-accent-light: #eff6ff;
  --lm-success: #16a34a;
  --lm-success-light: #f0fdf4;
  --lm-warning: #ea580c;
  --lm-warning-light: #fff7ed;
  --lm-radius-sm: 12px;
  --lm-radius-md: 16px;
  --lm-radius-lg: 20px;
  --lm-radius-xl: 24px;
  --lm-shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 3px 10px rgba(0,0,0,.03);
  --lm-shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
  --lm-shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.06);
  --lm-page-shell-max: 1120px;
  --lm-page-hero-title: 40px;
  --lm-page-card-title: 28px;
  --lm-page-section-title: 30px;
  --lm-page-body: 15px;
}

@media (max-width: 520px){
  :root{
    --lm-content-left-mobile: 8px;
    --lm-content-right-mobile: 8px;
  }
}

/* =========================
   HEADER
========================= */

.lm-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #dfe8ff;
  box-shadow: 0 8px 24px rgba(25,60,140,.06);
}

.lm-header__inner{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--lm-header-pad-x-desktop);
  box-sizing: border-box;
}

.lm-header__shell{
  min-height: var(--lm-header-h-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lm-header__left,
.lm-header__right{
  display: flex;
  align-items: center;
}

.lm-header__left{
  gap: 14px;
  min-width: 0;
}

.lm-header__right{
  gap: 12px;
  margin-left: auto;
}

.lm-header__logo{
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.lm-header__logo img{
  display: block;
  max-height: 46px;
  width: auto;
  height: auto;
}

.lm-header__burger-wrap{
  display: none;
}

.lm-header__burger{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe6ff;
  background: linear-gradient(180deg,#ffffff 0%, #f7faff 100%);
  color: #0b46b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(25,60,140,.07);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  padding: 0;
}

.lm-header__burger:hover{
  transform: translateY(-1px);
  border-color: #c9d9ff;
  box-shadow: 0 12px 24px rgba(25,60,140,.10);
}

/* =========================
   AUTH PAGES (login / forgot)
========================= */

body.layout-public.layout-auth.has-lm-header .lm-header{
  display: none !important;
}

body.layout-public.layout-auth{
  padding-top: 0 !important;
}

body.layout-public.layout-auth .container{
  position: relative;
  z-index: 2;
}

body.layout-public.layout-auth .form-signin,
body.layout-public.layout-auth .form-forgot{
  margin-top: 50px !important;
}

@media (max-width: 1000px){
  body.layout-public.layout-auth .form-signin,
  body.layout-public.layout-auth .form-forgot{
    margin-top: 30px !important;
  }
}


/* =========================
   AUTH PAGE LOGO
========================= */

body.auth-screen .auth-page-logo-wrap{
  width: 100%;
  text-align: center !important;
  margin: 34px 0 14px 0;
  position: relative;
  z-index: 5;
}

body.auth-screen .auth-page-logo-link{
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
}

body.auth-screen .auth-page-logo-link:hover,
body.auth-screen .auth-page-logo-link:focus{
  text-decoration: none !important;
}

body.auth-screen .auth-page-logo-img{
  display: block !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 380px !important;
  height: auto !important;
  max-height: none !important;
}

body.auth-screen .lm-header{
  display: none !important;
}

@media (max-width: 768px){
  body.auth-screen .auth-page-logo-wrap{
    margin: 24px 0 10px 0;
  }

  body.auth-screen .auth-page-logo-img{
    max-width: 260px !important;
  }
}

/* =========================
   AUTH MAINTENANCE NOTICE
========================= */

.auth-maintenance-notice{
  max-width: 820px;
  margin: 0 auto 18px auto;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  border-radius: 14px;
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-maintenance-notice__icon{
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 17px;
  color: #ffffff;
}

.auth-maintenance-notice__content{
  min-width: 0;
}

.auth-maintenance-notice__title{
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.auth-maintenance-notice__text{
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}

@media (max-width: 768px){
  .auth-maintenance-notice{
    margin: 0 15px 16px 15px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .auth-maintenance-notice__icon{
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .auth-maintenance-notice__title{
    font-size: 15px;
  }

  .auth-maintenance-notice__text{
    font-size: 13px;
  }
}

/* =========================
   AUTH PAGES
========================= */

body.layout-public.layout-auth{
  padding-top: 0 !important;
}

body.layout-public.layout-auth .lm-header{
  display: none !important;
}

body.layout-public.layout-auth .container{
  position: relative;
  z-index: 2;
}

body.layout-public.layout-auth .form-signin,
body.layout-public.layout-auth .form-forgot{
  margin-top: 50px !important;
}

@media (max-width: 1000px){
  body.layout-public.layout-auth .form-signin,
  body.layout-public.layout-auth .form-forgot{
    margin-top: 30px !important;
  }
}

/* =========================
   HEADER RIGHT / USER / NOTIF
========================= */

.lm-header__left.lm-header__logo-zone{
  width: var(--lm-sidebar-w-desktop);
  min-width: var(--lm-sidebar-w-desktop);
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--lm-border-soft);
  flex-shrink: 0;
}

.lm-header__center{
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.header-breadcrumb{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.48px;
  font-weight: 600;
  color: #9ca3af;
}

.header-breadcrumb__section{
  color: #9ca3af;
}

.header-breadcrumb__sep{
  font-size: 9.28px;
  color: #d1d5db;
}

.header-breadcrumb__current{
  color: #6b7280;
}

.header-notif-wrap,
.header-user-wrap{
  position: relative;
}

.header-urgency-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid;
  font-size: 12.48px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all .18s ease;
}

.header-urgency-chip:hover,
.header-urgency-chip:focus{
  text-decoration: none !important;
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.header-urgency-chip i{
  font-size: 11px;
}

.header-urgency-chip__days{
  font-size: 13px;
  font-weight: 800;
}

.header-urgency-chip.stable{
  background: #f0fdf4;
  color: #16a34a;
  border-color: rgba(22,163,74,.2);
}

.header-urgency-chip.info{
  background: #eff6ff;
  color: #2563eb;
  border-color: rgba(37,99,235,.15);
}

.header-urgency-chip.warn{
  background: #fffbeb;
  color: #d97706;
  border-color: rgba(217,119,6,.2);
}

.header-urgency-chip.danger{
  background: #fef2f2;
  color: #dc2626;
  border-color: rgba(220,38,38,.18);
}

.header-icon-btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--lm-border-soft);
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
}

.header-icon-btn:hover,
.header-icon-btn:focus{
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.header-icon-dot{
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  border: 1.5px solid #ffffff;
}

.header-notif-dropdown,
.header-user-dropdown{
  position: fixed;
  top: calc(var(--lm-header-h-desktop) + 6px);
  right: 16px;
  background: #ffffff;
  border: 1px solid var(--lm-border-soft);
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 32px 80px rgba(0,0,0,.09);
  overflow: hidden;
  display: none;
  z-index: 500;
}

.header-notif-dropdown.open,
.header-user-dropdown.open{
  display: block;
  animation: ddIn .24s cubic-bezier(.22,1,.36,1) both;
}

.header-notif-dropdown{
  width: 340px;
  border-radius: 22px;
}

.header-notif-head{
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--lm-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-notif-title{
  font-size: 14.08px;
  font-weight: 800;
  color: #111827;
}

.header-notif-mark{
  font-size: 11.52px;
  font-weight: 700;
  color: #2563eb;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-notif-list{
  max-height: 380px;
  overflow-y: auto;
}

.header-notif-list::-webkit-scrollbar{
  width: 3px;
}

.header-notif-list::-webkit-scrollbar-thumb{
  background: #e5e7eb;
  border-radius: 999px;
}

.header-notif-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--lm-border-soft);
  position: relative;
  transition: background .16s ease;
}

.header-notif-item:last-child{
  border-bottom: none;
}

.header-notif-item:hover{
  background: #f9fafb;
}

.header-notif-item::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2563eb;
}

.header-notif-item.type-maintenance::before{
  background: #d97706;
}

.header-notif-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.header-notif-item.type-maintenance .header-notif-icon{
  background: #fffbeb;
  color: #d97706;
}

.header-notif-item.type-info .header-notif-icon{
  background: #eff6ff;
  color: #2563eb;
}

.header-notif-body{
  flex: 1 1 auto;
  min-width: 0;
}

.header-notif-item-title{
  font-size: 13.12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 2px;
}

.header-notif-item-desc{
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
}

.header-notif-item-time{
  font-size: 10.72px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 4px;
}

.header-notif-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  text-align: center;
}

.header-notif-empty__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f4f6;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.header-notif-empty__text{
  font-size: 12.8px;
  font-weight: 600;
  color: #9ca3af;
}

.header-user-trigger{
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border-radius: 100px;
  border: 1.5px solid var(--lm-border-soft);
  background: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 3px 10px rgba(0,0,0,.03);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all .22s ease;
}

.header-user-trigger:hover,
.header-user-trigger:focus{
  border-color: #9ca3af;
}

.header-user-trigger.open{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.header-user-avatar,
.header-user-dropdown-avatar{
  border-radius: 50%;
  background: linear-gradient(135deg,#93c5fd,#86efac);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.header-user-avatar{
  width: 32px;
  height: 32px;
  font-size: 11.2px;
}

.header-user-dropdown-avatar{
  width: 38px;
  height: 38px;
  font-size: 11.84px;
}

.header-user-meta{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-user-label{
  color: #9ca3af;
  font-size: 10.4px;
  font-weight: 700;
  line-height: 1.1;
}

.header-user-name{
  color: #111827;
  font-size: 12.48px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-caret{
  color: #9ca3af;
  font-size: 9.6px;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}

.header-user-trigger.open .header-user-caret{
  transform: rotate(180deg);
}

.header-user-dropdown{
  width: 260px;
  border-radius: 22px;
}

.header-user-dropdown-head{
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--lm-border-soft);
}

.header-user-dropdown-meta{
  min-width: 0;
}

.header-user-dropdown-label{
  color: #9ca3af;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.header-user-dropdown-name{
  color: #111827;
  font-size: 14.08px;
  font-weight: 800;
  line-height: 1.2;
}

.header-user-dropdown-email{
  color: #9ca3af;
  font-size: 11.2px;
  font-weight: 500;
  margin-top: 1px;
}

.header-user-subinfo{
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid rgba(217,119,6,.2);
}

.header-user-subinfo-k{
  color: #9ca3af;
  font-size: 9.76px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.header-user-subinfo-v{
  color: #d97706;
  font-size: 13.12px;
  font-weight: 800;
  margin-top: 2px;
}

.header-user-links{
  padding: 6px 8px 8px;
}

.header-user-link{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #6b7280;
  font-size: 13.12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .16s ease;
}

.header-user-link:hover{
  background: #f3f4f6;
  color: #111827;
  padding-left: 14px;
}

.header-user-link i{
  width: 16px;
  text-align: center;
  color: #9ca3af;
}

.header-user-link:hover i{
  color: #6b7280;
}

.header-user-divider{
  height: 1px;
  background: var(--lm-border-soft);
  margin: 4px 0;
}

.header-user-link.danger{
  color: #dc2626;
}

.header-user-link.danger i{
  color: #dc2626;
  opacity: .7;
}

.header-user-link.danger:hover{
  background: #fef2f2;
  color: #dc2626;
}


/* =========================
   APP LAYOUT
========================= */

body.layout-app,
body.layout-app section#container,
body.layout-app section#container > .container,
body.layout-app section#container > .container > .row{
  background: transparent;
}

body.layout-app section#container > .container{
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.layout-app section#container > .container > .row{
  margin-left: 0;
  margin-right: 0;
}

body.layout-app #sidebar{
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  padding-top: 0 !important;
  min-width: var(--lm-sidebar-w-desktop) !important;
  width: var(--lm-sidebar-w-desktop) !important;
  top: 0 !important;
  background: var(--lm-surface-sidebar) !important;
  border-right: 1px solid var(--lm-border-soft) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,.04);
  overflow: hidden !important;
}

body.layout-app .sidebar-content{
  position: fixed !important;
  opacity: 1 !important;
  top: var(--lm-header-h-desktop) !important;
  height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding-top: 16px !important;
  padding-right: 10px !important;
  padding-bottom: 18px !important;
  padding-left: 10px !important;
  left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: var(--lm-sidebar-w-desktop) !important;
  max-width: var(--lm-sidebar-w-desktop) !important;
  box-sizing: border-box !important;
  background: var(--lm-surface-sidebar) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.layout-app #sidebar .sidebar-header{
  padding: 8px 10px 14px;
  border-bottom: 1px solid var(--lm-border-soft);
  margin-bottom: 8px;
}

body.layout-app #sidebar .sidebar-logo{
  display: inline-flex;
  align-items: center;
  font-family: 'Exo 2', system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--lm-text-main);
  text-decoration: none !important;
}

body.layout-app #sidebar .sidebar-logo span{
  color: var(--lm-accent);
}

body.layout-app #sidebar .sidebar-level{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--lm-accent-light);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}

body.layout-app #sidebar .sidebar-level:hover{
  background: rgba(37,99,235,.12);
  transform: translateY(-1px);
}

body.layout-app #sidebar .sidebar-level-badge{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lm-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

body.layout-app #sidebar .sidebar-level-name{
  font-size: 13px;
  font-weight: 700;
  color: var(--lm-text-main);
}

body.layout-app #sidebar .sidebar-level-sub{
  font-size: 11px;
  color: var(--lm-text-muted);
}

body.layout-app #sidebar .sidebar-level-arrow{
  margin-left: auto;
  color: var(--lm-text-faint);
  font-size: 11px;
}

body.layout-app #sidebar .sidebar-nav{
  flex: 1 1 auto;
  padding: 10px 0 0;
}

body.layout-app ul.sidebar-menu{
  margin-top: 0 !important;
}

body.layout-app .nicescroll-rails{
  top: var(--lm-header-h-desktop) !important;
}

/* odstránenie starých top offsetov */
body.layout-app section#main-content,
body.layout-app section#main-content[data-lesson],
body.layout-app .main-container-words,
body.layout-app #main-content.overview-2020,
body.layout-app .courses section#main-content,
body.layout-app.no-package section#main-content{
  margin-top: var(--lm-content-top-desktop) !important;
}

/* hlavný desktop content */
body.layout-app #main-content{
  float: none !important;
  width: calc(100% - var(--lm-sidebar-w-desktop)) !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - var(--lm-content-top-desktop)) !important;
  margin-left: var(--lm-sidebar-w-desktop) !important;
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--lm-content-left-desktop) !important;
  padding-right: var(--lm-content-right-desktop) !important;
  box-sizing: border-box !important;
}

/* demo/trial účet: prebije legacy body.no-package section#main-content { width:100% !important; } */
body.layout-app.no-package section#main-content,
body.layout-app.no-package #main-content{
  width: calc(100% - var(--lm-sidebar-w-desktop)) !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - var(--lm-content-top-desktop)) !important;
  margin-left: var(--lm-sidebar-w-desktop) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--lm-content-left-desktop) !important;
  padding-right: var(--lm-content-right-desktop) !important;
  box-sizing: border-box !important;
}

/* Mapa gramatiky používa plnú pracovnú plochu bez bieleho rámu.
   Vlastné odsadenie obsahu riadi jej izolovaný Shadow DOM. */
body.layout-app #main-content.grammar-map-shell-main,
body.layout-app.no-package #main-content.grammar-map-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  background: #F1F3F7 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.layout-app #main-content.overview-shell-main,
body.layout-app.no-package #main-content.overview-shell-main{
  margin-top: 10px !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - 10px) !important;
  background: #EFF1F5 !important;
}

/* Samostatná výučba začína priamo pod hlavným headerom. */
body.layout-app #main-content.teaching-hub-shell-main,
body.layout-app #main-content.teaching-area-shell-main,
body.layout-app #main-content.teaching-topic-shell-main,
body.layout-app section#main-content.teaching-topic-shell-main[data-lesson],
body.layout-app.no-package #main-content.teaching-hub-shell-main,
body.layout-app.no-package #main-content.teaching-area-shell-main,
body.layout-app.no-package #main-content.teaching-topic-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
}

/* Materiál otvorený z Mapy gramatiky pokračuje bez prázdneho pásu
   priamo navigáciou mapy pod hlavným headerom. */
body.layout-app.route-grammar-map-context
  section#main-content.teaching-topic-shell-main[data-lesson]{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
}

body.layout-app.route-grammar-map-context
  section#main-content.teaching-topic-shell-main[data-lesson]
  #langemTeachingExerciseContent{
  padding-top: 12px !important;
}

/* Pôvodný obsah zostáva zachovaný, iba názov otvoreného materiálu
   preberá typografiu titulku témy v novom dizajnovom systéme. */
body.layout-app #main-content.teaching-topic-shell-main
  #langemTeachingExerciseContent
  #main-content-test
  .course-panel-heading h1{
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #111827 !important;
  font-family: 'Exo 2', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: 31px !important;
}

body.layout-app #main-content.profile-faq-shell-main,
body.layout-app.no-package #main-content.profile-faq-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  background: #EFF1F5 !important;
}

body.layout-app #main-content.false-friends-shell-main,
body.layout-app.no-package #main-content.false-friends-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  background: #EFF1F5 !important;
  padding-top: 26px !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.langem-test-runner-main,
body.layout-app #main-content.langem-practice-hub-main,
body.layout-app #main-content.langem-challenge-hub-main,
body.layout-app #main-content.dictionary-word-choice-main,
body.layout-app.no-package #main-content.langem-test-runner-main,
body.layout-app.no-package #main-content.langem-practice-hub-main,
body.layout-app.no-package #main-content.langem-challenge-hub-main,
body.layout-app.no-package #main-content.dictionary-word-choice-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  background: #EFF1F5 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.langem-practice-hub-main > section.wrapper,
body.layout-app #main-content.langem-challenge-hub-main > section.wrapper,
body.layout-app.no-package #main-content.langem-practice-hub-main > section.wrapper,
body.layout-app.no-package #main-content.langem-challenge-hub-main > section.wrapper{
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  margin: 0 !important;
  padding: 22px 0 72px !important;
  --lpbh-top-inset: 22px;
  background:
    radial-gradient(ellipse 760px 420px at 18% -6%, rgba(124,58,237,.11), transparent 62%),
    radial-gradient(ellipse 560px 360px at 92% -14%, rgba(37,99,235,.07), transparent 58%),
    #EFF1F5 !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.langem-practice-hub-main #lpbh-host,
body.layout-app #main-content.langem-challenge-hub-main #ltcfg-host,
body.layout-app #main-content.dictionary-word-choice-main #lm-word-choice-host,
body.layout-app.no-package #main-content.langem-practice-hub-main #lpbh-host,
body.layout-app.no-package #main-content.langem-challenge-hub-main #ltcfg-host,
body.layout-app.no-package #main-content.dictionary-word-choice-main #lm-word-choice-host{
  display: block;
  width: 100%;
}

body.layout-app.lm-overview-active #lesson-nav-carousel-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.lm-overview-active #lm-header-shadow-host{
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.lm-overview-active #main-content.overview-shell-main,
body.layout-app.lm-overview-active.no-package #main-content.overview-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding-top: 74px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.daily-mix-shell-main,
body.layout-app.no-package #main-content.daily-mix-shell-main{
  margin-top: 12px !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - 12px) !important;
}

body.layout-app #main-content.lessons-hub-shell-main,
body.layout-app.no-package #main-content.lessons-hub-shell-main{
  margin-top: 10px !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - 10px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.layout-app.packages,
body.layout-app.route-user-packages{
  min-height: 0 !important;
  height: auto !important;
  background: #EFF1F5 !important;
}

body.layout-app.packages section#container,
body.layout-app.packages section#container > .container,
body.layout-app.packages section#container > .container > .row,
body.layout-app.route-user-packages section#container,
body.layout-app.route-user-packages section#container > .container,
body.layout-app.route-user-packages section#container > .container > .row{
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #EFF1F5 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.packages-shell-main,
body.layout-app.no-package #main-content.packages-shell-main{
  width: calc(100% - var(--lm-sidebar-w-desktop)) !important;
  max-width: none !important;
  margin-left: var(--lm-sidebar-w-desktop) !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  background: #EFF1F5 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.packages-shell-main #langemRenewalCheckoutHost,
body.layout-app.no-package #main-content.packages-shell-main #langemRenewalCheckoutHost{
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  background: #EFF1F5 !important;
}

body.layout-app #main-content.welcome-shell-main,
body.layout-app.no-package #main-content.welcome-shell-main{
  margin-top: 10px !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - 10px) !important;
  background: #EFF1F5 !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.layout-app #main-content.study-mode-intro-shell-main,
body.layout-app.no-package #main-content.study-mode-intro-shell-main{
  margin-top: 10px !important;
  min-height: calc(100vh - var(--lm-header-h-desktop) - 10px) !important;
  background: #EFF1F5 !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.layout-app.welcome,
body.layout-app.route-user-welcome,
body.layout-app.welcome section#container,
body.layout-app.route-user-welcome section#container,
body.layout-app.welcome section#container > .container,
body.layout-app.route-user-welcome section#container > .container,
body.layout-app.welcome section#container > .container > .row,
body.layout-app.route-user-welcome section#container > .container > .row{
  background: #EFF1F5 !important;
}

body.layout-app.study-mode-intro,
body.layout-app.route-study-mode-intro,
body.layout-app.study-mode-intro section#container,
body.layout-app.route-study-mode-intro section#container,
body.layout-app.study-mode-intro section#container > .container,
body.layout-app.route-study-mode-intro section#container > .container,
body.layout-app.study-mode-intro section#container > .container > .row,
body.layout-app.route-study-mode-intro section#container > .container > .row{
  background: #EFF1F5 !important;
}

body.layout-app.welcome section#container > .container,
body.layout-app.route-user-welcome section#container > .container,
body.layout-app.welcome section#container > .container > .row,
body.layout-app.route-user-welcome section#container > .container > .row{
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
}

body.layout-app.study-mode-intro section#container > .container,
body.layout-app.route-study-mode-intro section#container > .container,
body.layout-app.study-mode-intro section#container > .container > .row,
body.layout-app.route-study-mode-intro section#container > .container > .row{
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
}

body.layout-app.welcome #lesson-nav-carousel-host,
body.layout-app.route-user-welcome #lesson-nav-carousel-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.study-mode-intro #lesson-nav-carousel-host,
body.layout-app.route-study-mode-intro #lesson-nav-carousel-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.welcome #lm-header-shadow-host,
body.layout-app.route-user-welcome #lm-header-shadow-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.study-mode-intro #lm-header-shadow-host,
body.layout-app.route-study-mode-intro #lm-header-shadow-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.welcome #main-content.welcome-shell-main,
body.layout-app.route-user-welcome #main-content.welcome-shell-main,
body.layout-app.welcome.no-package #main-content.welcome-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding-top: 56px !important;
  padding-bottom: 28px !important;
}

body.layout-app.study-mode-intro #main-content.study-mode-intro-shell-main,
body.layout-app.route-study-mode-intro #main-content.study-mode-intro-shell-main,
body.layout-app.study-mode-intro.no-package #main-content.study-mode-intro-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

body.layout-app.lm-welcome-active #lesson-nav-carousel-host{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.lm-welcome-active #lm-header-shadow-host{
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.layout-app.lm-welcome-active #main-content.welcome-shell-main,
body.layout-app.lm-welcome-active.no-package #main-content.welcome-shell-main{
  margin-top: 0 !important;
  min-height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding-top: 42px !important;
  padding-bottom: 0 !important;
}

body.layout-app.lm-welcome-active section#container,
body.layout-app.lm-welcome-active section#container > .container,
body.layout-app.lm-welcome-active section#container > .container > .row{
  background: #EFF1F5 !important;
}

body.layout-app #main-content.lesson-nav-main,
body.layout-app section#main-content.lesson-nav-main[data-lesson]{
  padding-left: 60px !important;
  padding-right: 60px !important;
}

/* zatvorený sidebar: desktopové odsadenie nesmie zúžiť mobilný obsah */
@media (min-width: 1001px){
  body.layout-app.sidebar-closed #main-content{
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: var(--lm-content-left-desktop) !important;
    padding-right: var(--lm-content-right-desktop) !important;
  }
}

body.layout-app #sidebar h2{
  margin: 0;
  padding: 12px 12px 6px;
  width: 100%;
  color: var(--lm-text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

body.layout-app #sidebar .ls-levels{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px !important;
  margin: 6px 0 16px !important;
  background: var(--lm-accent-light);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 14px;
}

body.layout-app #sidebar .ls-levels a.ls-level{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: #fff !important;
  border: 1px solid var(--lm-border-soft);
  color: var(--lm-text-soft) !important;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

body.layout-app #sidebar .ls-levels a.ls-level:hover,
body.layout-app #sidebar .ls-levels a.ls-level.active{
  background: var(--lm-accent) !important;
  border-color: var(--lm-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

body.layout-app #sidebar .sidebar-panel{
  margin-bottom: 10px !important;
}

body.layout-app #sidebar .langem-sidebar{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
}

body.layout-app #sidebar .sidebar-group{
  margin-bottom: 4px !important;
}

body.layout-app #sidebar .sidebar-level-shell{
  margin-bottom: 8px;
}

body.layout-app #sidebar .sidebar-group-label{
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--lm-text-faint);
  padding: 12px 12px 6px;
}

body.layout-app #sidebar .sidebar-panel.ext{
  margin-bottom: 14px !important;
}

body.layout-app #sidebar .sidebar-panel > h2{
  margin-bottom: 3px;
  padding: 0;
}

body.layout-app #sidebar h2 a,
body.layout-app #sidebar .sidebar-link{
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--lm-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  position: relative;
}

body.layout-app #sidebar h2 a .lm-nav-link__label{
  min-width: 0;
  flex: 1 1 auto;
}

body.layout-app #sidebar .lm-nav-link--direct{
  min-height: 40px;
}

body.layout-app #sidebar .lm-nav-link--panel{
  background: transparent !important;
}

body.layout-app #sidebar h2 a:hover,
body.layout-app #sidebar .sidebar-link:hover{
  background: #f3f4f6;
  color: var(--lm-text-main);
  transform: translateY(-1px);
}

body.layout-app #sidebar h2 a .left,
body.layout-app #sidebar .sidebar-link i{
  width: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

body.layout-app #sidebar h2 a .collapseLessons,
body.layout-app #sidebar h2 a .collapseInclusions,
body.layout-app #sidebar .sidebar-link-arrow{
  margin-left: auto;
  color: #a3afc3;
  font-size: 11px;
}

body.layout-app #sidebar .sidebar-menu{
  margin: 4px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  list-style: none;
}

body.layout-app #sidebar .sidebar-menu li{
  position: relative;
  border-top: 0 !important;
  margin: 0 !important;
}

body.layout-app #sidebar .sidebar-menu > li > a{
  display: flex;
  align-items: center;
  position: relative;
  min-height: 36px;
  padding: 7px 12px 7px 38px !important;
  border-radius: 12px;
  background: transparent !important;
  color: var(--lm-text-muted);
  font-size: 13px !important;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body.layout-app #sidebar .sidebar-menu.cms > li > a{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px !important;
  border-radius: 12px;
  color: var(--lm-text-muted) !important;
  font-size: 13px !important;
  font-weight: 600;
}

body.layout-app #sidebar .sidebar-menu.cms > li:hover > a,
body.layout-app #sidebar .sidebar-menu.cms > li.active > a,
body.layout-app #sidebar .sidebar-menu.cms > li > a.active{
  background: var(--lm-accent-light) !important;
  color: var(--lm-accent) !important;
}

body.layout-app #sidebar .sidebar-menu > li.parent > i{
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  color: #94a3b8 !important;
  font-size: 14px;
}

body.layout-app #sidebar .sidebar-menu > li > a i{
  width: 17px;
  margin-right: 10px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

body.layout-app #sidebar .sidebar-menu > li:hover > a,
body.layout-app #sidebar .sidebar-menu > li.active > a,
body.layout-app #sidebar .sidebar-menu > li > a.active{
  background: var(--lm-accent-light) !important;
  color: var(--lm-accent) !important;
  transform: translateY(-1px);
}

body.layout-app #sidebar .sidebar-menu > li.active > a::before,
body.layout-app #sidebar .sidebar-menu > li > a.active::before,
body.layout-app #sidebar .sidebar-link.active::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--lm-accent);
  border-radius: 0 3px 3px 0;
}

body.layout-app #sidebar .sidebar-menu > li.active > i,
body.layout-app #sidebar .sidebar-menu > li:hover > i,
body.layout-app #sidebar .sidebar-menu > li:hover > a i,
body.layout-app #sidebar .sidebar-menu > li.active > a i,
body.layout-app #sidebar .sidebar-menu > li > a.active i,
body.layout-app #sidebar .sidebar-link.active i{
  color: var(--lm-accent) !important;
}

body.layout-app #sidebar .sidebar-link.active{
  background: var(--lm-accent-light) !important;
  color: var(--lm-accent) !important;
  font-weight: 600;
}

body.layout-app #sidebar .badge-count{
  margin-left: auto;
  background: var(--lm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

body.layout-app #sidebar .badge-new{
  margin-left: auto;
  background: var(--lm-success-light);
  color: var(--lm-success);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

body.layout-app #sidebar .sidebar-menu > li.parent ul.child{
  padding: 2px 0 8px;
}

body.layout-app #sidebar .sidebar-content ul.child li a{
  min-height: 36px;
  padding: 0 12px 0 44px !important;
  border-radius: 12px;
  background: transparent !important;
  color: var(--lm-text-muted);
  font-size: 13px !important;
  font-weight: 600;
}

body.layout-app #sidebar .sidebar-content ul.child > li:hover a,
body.layout-app #sidebar .sidebar-content ul.child > li > a.active{
  background: var(--lm-accent-light) !important;
  color: var(--lm-accent) !important;
}

body.layout-app #sidebar .sidebar-content ul.child li a.demo{
  background: #fff4f4 !important;
  color: #d14343 !important;
  border: 1px solid rgba(209,67,67,.12);
}

body.layout-app #sidebar .sidebar-footer{
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid var(--lm-border-soft);
}

body.layout-app #sidebar .sidebar-user{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease;
}

body.layout-app #sidebar .sidebar-user:hover{
  background: #f3f4f6;
}

body.layout-app #sidebar .sidebar-avatar{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #86efac);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--lm-text-main);
}

body.layout-app #sidebar .sidebar-user-name{
  font-size: 13px;
  font-weight: 600;
  color: var(--lm-text-main);
}

body.layout-app #sidebar .sidebar-user-email{
  font-size: 11px;
  color: var(--lm-text-faint);
}

body.layout-app #sidebar .sidebar-user-more{
  margin-left: auto;
  color: var(--lm-text-faint);
  font-size: 12px;
}

/* =========================
   SIDEBAR SCROLLBAR
========================= */

body.layout-app #sidebar,
body.layout-app .sidebar-content{
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.layout-app #sidebar::-webkit-scrollbar,
body.layout-app .sidebar-content::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.layout-app #sidebar::-webkit-scrollbar-track,
body.layout-app .sidebar-content::-webkit-scrollbar-track{
  background: transparent;
}

body.layout-app #sidebar::-webkit-scrollbar-thumb,
body.layout-app .sidebar-content::-webkit-scrollbar-thumb{
  background: transparent;
  border: 0;
}

body.layout-app #sidebar::-webkit-scrollbar-thumb:hover,
body.layout-app .sidebar-content::-webkit-scrollbar-thumb:hover{
  background: transparent;
}

body.layout-app #sidebar::-webkit-scrollbar-button,
body.layout-app .sidebar-content::-webkit-scrollbar-button{
  height: 0;
  width: 0;
  display: none;
}

body.layout-app .sidebar-content.sidebar-content--v4 > .mCustomScrollBox,
body.layout-app .sidebar-content.sidebar-content--v4 > .mCSB_scrollTools{
  display: none !important;
}

/* =========================
   PUBLIC LAYOUT
========================= */

body.layout-public .lm-header__inner--public{
  min-height: var(--lm-header-h-desktop);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--lm-header-pad-x-desktop);
  padding-right: var(--lm-header-pad-x-desktop);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1000px){
  .lm-header__inner{
    padding: 0 var(--lm-header-pad-x-mobile);
  }

  .lm-header__shell{
    min-height: var(--lm-header-h-mobile);
    gap: 10px;
  }

  .lm-header__logo img{
    max-height: 38px;
  }

  .lm-header__burger-wrap{
    display: inline-flex;
    align-items: center;
  }

  .lm-header__burger{
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .lm-header__left.lm-header__logo-zone{
    width: auto;
    min-width: 0;
    padding: 0 0 0 14px;
    border-right: none;
  }

  .lm-header__center{
    display: none;
  }

  .header-user-trigger{
    min-height: 40px;
    padding: 3px 8px 3px 3px;
    border-radius: 100px;
    gap: 8px;
  }

  .header-user-avatar{
    width: 32px;
    height: 32px;
    font-size: 11.2px;
  }

  .header-user-caret{
    font-size: 9.6px;
  }

  .header-notif-dropdown,
  .header-user-dropdown{
    right: 14px;
  }

  body.layout-app #sidebar{
    position: fixed !important;
    left: 0 !important;
    top: var(--lm-header-h-mobile) !important;
    height: calc(100vh - var(--lm-header-h-mobile)) !important;
    padding-top: 0 !important;
    min-width: var(--lm-sidebar-w-mobile) !important;
    width: var(--lm-sidebar-w-mobile) !important;
    overflow: hidden !important;
    z-index: 1025 !important;
    display: none;
  }

  body.layout-app.mobile-nav-open #sidebar{
    display: block !important;
  }

  body.layout-app .sidebar-content{
    top: var(--lm-header-h-mobile) !important;
    height: calc(100vh - var(--lm-header-h-mobile)) !important;
    padding-top: 12px !important;
    padding-right: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 14px !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: var(--lm-sidebar-w-mobile) !important;
    max-width: var(--lm-sidebar-w-mobile) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.layout-app .nicescroll-rails{
    top: var(--lm-header-h-mobile) !important;
  }

  body.layout-app section#main-content,
  body.layout-app section#main-content[data-lesson],
  body.layout-app .main-container-words,
  body.layout-app #main-content.overview-2020,
  body.layout-app .courses section#main-content,
  body.layout-app.no-package section#main-content{
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: var(--lm-content-top-mobile) !important;
    padding-left: var(--lm-content-left-mobile) !important;
    padding-right: var(--lm-content-right-mobile) !important;
    box-sizing: border-box !important;
  }

  body.layout-app #main-content.lesson-nav-main,
  body.layout-app section#main-content.lesson-nav-main[data-lesson]{
    padding-left: var(--lm-content-left-mobile) !important;
    padding-right: var(--lm-content-right-mobile) !important;
  }

  body.layout-app #main-content.overview-shell-main,
  body.layout-app.no-package #main-content.overview-shell-main{
    margin-top: 8px !important;
    min-height: calc(100vh - var(--lm-header-h-mobile) - 8px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.layout-app.lm-overview-active #main-content.overview-shell-main,
  body.layout-app.lm-overview-active.no-package #main-content.overview-shell-main{
    margin-top: 0 !important;
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
  }

  body.layout-app #main-content.teaching-hub-shell-main,
  body.layout-app #main-content.teaching-area-shell-main,
  body.layout-app #main-content.teaching-topic-shell-main,
  body.layout-app.no-package #main-content.teaching-hub-shell-main,
  body.layout-app.no-package #main-content.teaching-area-shell-main,
  body.layout-app.no-package #main-content.teaching-topic-shell-main{
    margin-top: 0 !important;
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
  }

  body.layout-app #main-content.profile-faq-shell-main,
  body.layout-app.no-package #main-content.profile-faq-shell-main{
    margin-top: 0 !important;
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
  }

  body.layout-app #main-content.false-friends-shell-main,
  body.layout-app.no-package #main-content.false-friends-shell-main{
    margin-top: 0 !important;
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
    padding-top: 18px !important;
  }

  body.layout-app #main-content.langem-test-runner-main,
  body.layout-app #main-content.langem-practice-hub-main,
  body.layout-app #main-content.langem-challenge-hub-main,
  body.layout-app #main-content.dictionary-word-choice-main,
  body.layout-app.no-package #main-content.langem-test-runner-main,
  body.layout-app.no-package #main-content.langem-practice-hub-main,
  body.layout-app.no-package #main-content.langem-challenge-hub-main,
  body.layout-app.no-package #main-content.dictionary-word-choice-main{
    margin-top: 0 !important;
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
    background: #EFF1F5 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.layout-app #main-content.langem-practice-hub-main > section.wrapper,
  body.layout-app #main-content.langem-challenge-hub-main > section.wrapper,
  body.layout-app.no-package #main-content.langem-practice-hub-main > section.wrapper,
  body.layout-app.no-package #main-content.langem-challenge-hub-main > section.wrapper{
    min-height: calc(100vh - var(--lm-header-h-mobile)) !important;
    padding-top: 16px !important;
    padding-bottom: 60px !important;
    --lpbh-top-inset: 16px;
  }

  body.layout-app #main-content.daily-mix-shell-main,
  body.layout-app.no-package #main-content.daily-mix-shell-main{
    margin-top: 8px !important;
    min-height: calc(100vh - var(--lm-header-h-mobile) - 8px) !important;
  }

  body.layout-app #main-content.lessons-hub-shell-main,
  body.layout-app.no-package #main-content.lessons-hub-shell-main{
    margin-top: 8px !important;
    min-height: calc(100vh - var(--lm-header-h-mobile) - 8px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.layout-app #main-content.packages-shell-main,
  body.layout-app.no-package #main-content.packages-shell-main{
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #EFF1F5 !important;
  }

  body.layout-app #main-content.packages-shell-main #langemRenewalCheckoutHost,
  body.layout-app.no-package #main-content.packages-shell-main #langemRenewalCheckoutHost{
    min-height: 0 !important;
    height: auto !important;
    background: #EFF1F5 !important;
  }

  body.layout-public .lm-header__inner--public{
    padding-left: var(--lm-header-pad-x-mobile);
    padding-right: var(--lm-header-pad-x-mobile);
  }
}

@media (max-width: 580px){
  body.layout-app #main-content.teaching-topic-shell-main
    #langemTeachingExerciseContent
    #main-content-test
    .course-panel-heading h1{
    font-size: 21px !important;
    line-height: 28px !important;
  }
}

@media (max-width: 480px){
  .lm-header__shell{
    gap: 8px;
  }

  .lm-header__center,
  .header-user-meta{
    display: none !important;
  }

  .header-urgency-chip__text{
    display: none !important;
  }

  .header-user-trigger{
    padding-right: 4px;
  }
}

/* =========================
   APP HEADER + SIDEBAR V4
========================= */

.lm-header--app{
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 #e5e7eb, 0 2px 16px rgba(0,0,0,.04);
}

.lm-header--app .lm-header__shell{
  justify-content: flex-start;
}

.lm-header--app .lm-header__right{
  gap: 8px;
  padding: 0 16px;
}

.lm-header--app .lm-header__logo{
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

body.layout-app #sidebar{
  top: var(--lm-header-h-desktop) !important;
  height: calc(100vh - var(--lm-header-h-desktop)) !important;
  background: #ffffff !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: 2px 0 12px rgba(0,0,0,.04);
}

body.layout-app .sidebar-content{
  top: var(--lm-header-h-desktop) !important;
  height: calc(100vh - var(--lm-header-h-desktop)) !important;
  padding: 14px 14px 12px !important;
  display: flex !important;
  flex-direction: column;
  gap: 0;
  overflow: hidden !important;
}

body.layout-app #sidebar .sidebar-header{
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

body.layout-app #sidebar .sidebar-level-shell{
  margin-bottom: 0;
}

body.layout-app #sidebar .sidebar-progress-box{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  background: #f3f4f6;
  border-radius: 16px !important;
  -webkit-border-radius: 16px !important;
  -moz-border-radius: 16px !important;
  border: none;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Exo 2', system-ui, sans-serif;
  transition: background .18s ease;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
}

body.layout-app #sidebar .sidebar-progress-box:hover{
  background: #eceff3;
}

body.layout-app #sidebar .sidebar-progress-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.layout-app #sidebar .sidebar-progress-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.24px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #9ca3af;
}

body.layout-app #sidebar .sidebar-progress-caret{
  font-size: 10px;
  color: #9ca3af;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sidebar-progress-box.expanded .sidebar-progress-caret{
  transform: rotate(180deg);
}

body.layout-app #sidebar .sidebar-progress-value{
  font-size: 12.48px;
  font-weight: 800;
  color: #2563eb;
}

body.layout-app #sidebar .sidebar-progress-track{
  height: 5px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}

body.layout-app #sidebar .sidebar-progress-fill{
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg,#2563eb,#3b82f6);
}

body.layout-app #sidebar .sidebar-progress-sections{
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.22,1,.36,1), margin-top .35s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sidebar-progress-box.expanded .sidebar-progress-sections{
  max-height: 220px;
  margin-top: 10px;
}

body.layout-app #sidebar .sidebar-progress-section-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.layout-app #sidebar .sidebar-progress-section-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.84px;
  font-weight: 600;
  color: #6b7280;
}

body.layout-app #sidebar .sidebar-progress-section-icon{
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

body.layout-app #sidebar .sidebar-progress-section-item.done{
  color: #9ca3af;
}

body.layout-app #sidebar .sidebar-progress-section-item.done .sidebar-progress-section-icon{
  color: #16a34a;
}

body.layout-app #sidebar .sidebar-progress-section-item.active{
  color: #2563eb;
  font-weight: 700;
}

body.layout-app #sidebar .sidebar-progress-section-item.active .sidebar-progress-section-icon{
  color: #2563eb;
}

body.layout-app #sidebar .sidebar-progress-section-item.future{
  color: #9ca3af;
}

body.layout-app #sidebar .sidebar-progress-section-item.future .sidebar-progress-section-icon{
  color: #d1d5db;
}

body.layout-app #sidebar .sidebar-progress-empty{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: #9ca3af;
}

body.layout-app #sidebar .sidebar-level{
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 16px !important;
  -webkit-border-radius: 16px !important;
  -moz-border-radius: 16px !important;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Exo 2', system-ui, sans-serif;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
}

body.layout-app #sidebar .sidebar-level:hover{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  box-shadow: 0 3px 12px rgba(37,99,235,.10);
  transform: translateY(-1px);
}

body.layout-app #sidebar .sidebar-level-badge{
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(37,99,235,.22);
}

body.layout-app #sidebar .sidebar-level-name{
  font-size: 12.64px;
  font-weight: 800;
  color: #2563eb;
}

body.layout-app #sidebar .sidebar-level-sub{
  font-size: 10.24px;
  color: #3b82f6;
  opacity: .78;
  font-weight: 500;
  margin-top: 1px;
}

body.layout-app #sidebar .sidebar-level-arrow{
  font-size: 9px;
  color: rgba(37,99,235,.45);
  transition: transform .22s cubic-bezier(.22,1,.36,1), color .18s ease;
}

body.layout-app #sidebar .sidebar-level:hover .sidebar-level-arrow{
  transform: translateX(2px);
  color: rgba(37,99,235,.6);
}

body.layout-app #sidebar .sb-top{
  padding: 14px 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

body.layout-app #sidebar .sb-level{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin: 0 0 10px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 16px !important;
  cursor: pointer;
  transition: all .22s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

body.layout-app #sidebar .sb-level::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
  transform: translateX(-100%);
  transition: transform .4s ease;
}

body.layout-app #sidebar .sb-level:hover{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.2);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(37,99,235,.12);
}

body.layout-app #sidebar .sb-level:hover::after{
  transform: translateX(100%);
}

body.layout-app #sidebar .sb-level-dot{
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.52px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sb-level:hover .sb-level-dot{
  transform: scale(1.08);
}

body.layout-app #sidebar .sb-level-name{
  font-size: 12.64px;
  font-weight: 800;
  color: #2563eb;
}

body.layout-app #sidebar .sb-level-sub{
  font-size: 10.24px;
  color: #3b82f6;
  font-weight: 500;
  opacity: .75;
  margin-top: 1px;
}

body.layout-app #sidebar .sb-level-arrow{
  margin-left: auto;
  color: rgba(37,99,235,.3);
  font-size: 9.28px;
  transition: transform .22s cubic-bezier(.22,1,.36,1), color .18s ease;
}

body.layout-app #sidebar .sb-level:hover .sb-level-arrow{
  transform: translateX(2px);
  color: rgba(37,99,235,.55);
}

body.layout-app #sidebar .sb-progress{
  padding: 9px 12px;
  background: #f3f4f6;
  border-radius: 14px !important;
  border: none;
  cursor: pointer;
  transition: background .18s ease;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

body.layout-app #sidebar .sb-progress:hover{
  background: #e5e7eb;
}

body.layout-app #sidebar .sb-progress-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}

body.layout-app #sidebar .sb-progress-lbl{
  font-size: 10.08px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .8px;
}

body.layout-app #sidebar .sb-progress-pct{
  font-size: 11.2px;
  font-weight: 800;
  color: #2563eb;
}

body.layout-app #sidebar .sb-progress-chevron{
  display: inline-block;
  margin-left: 4px;
  font-size: 8.8px;
  color: #9ca3af;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sb-progress.expanded .sb-progress-chevron{
  transform: rotate(180deg);
}

body.layout-app #sidebar .sb-progress-track{
  height: 4px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}

body.layout-app #sidebar .sb-progress-fill{
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg,#2563eb,#3b82f6);
  transition: width .9s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sb-sections{
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sb-progress.expanded .sb-sections{
  max-height: 300px;
}

body.layout-app #sidebar .sb-section-list{
  padding: 8px 0 2px;
}

body.layout-app #sidebar .sb-section-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 11.84px;
  font-weight: 600;
  color: #6b7280;
}

body.layout-app #sidebar .sb-section-item.done{
  color: #9ca3af;
}

body.layout-app #sidebar .sb-section-item.active{
  color: #2563eb;
  font-weight: 700;
}

body.layout-app #sidebar .sb-section-item.future{
  color: #9ca3af;
}

body.layout-app #sidebar .sb-sec-icon{
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  font-size: 10.24px;
}

body.layout-app #sidebar .sb-section-item.done .sb-sec-icon{
  color: #16a34a;
}

body.layout-app #sidebar .sb-section-item.active .sb-sec-icon{
  color: #2563eb;
}

body.layout-app #sidebar .sb-section-item.future .sb-sec-icon{
  color: #d1d5db;
}

body.layout-app #sidebar .sb-nav{
  flex: 1;
  padding: 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}

body.layout-app #sidebar .sb-nav::-webkit-scrollbar{
  width: 3px;
}

body.layout-app #sidebar .sb-nav::-webkit-scrollbar-thumb{
  background: #e5e7eb;
  border-radius: 100px;
}

body.layout-app #sidebar .sb-nav::-webkit-scrollbar-track{
  background: transparent;
}

body.layout-app #sidebar .sb-group-label{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 5px;
  font-size: 9.12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ca3af;
}

body.layout-app #sidebar .sb-group-label::after{
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

body.layout-app #sidebar .sb-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 1px;
  padding: 8px 10px;
  border-radius: 16px;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 13.44px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sb-item:hover{
  background: #f3f4f6;
  color: #111827;
  padding-left: 14px;
}

body.layout-app #sidebar .sb-item.active{
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  padding-left: 14px;
}

body.layout-app #sidebar .sb-item.active::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #2563eb;
  border-radius: 0 4px 4px 0;
}

body.layout-app #sidebar .sb-item-icon{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s ease;
}

body.layout-app #sidebar .sb-item:hover .sb-item-icon{
  background: #e5e7eb;
}

body.layout-app #sidebar .sb-item.active .sb-item-icon{
  background: rgba(37,99,235,.12);
}

body.layout-app #sidebar .sb-item-icon i{
  color: #9ca3af;
  transition: color .18s ease;
}

body.layout-app #sidebar .sb-item:hover .sb-item-icon i{
  color: #6b7280;
}

body.layout-app #sidebar .sb-item.active .sb-item-icon i{
  color: #2563eb;
}

body.layout-app #sidebar .sb-item-label{
  flex: 1;
}

body.layout-app #sidebar .sb-badge{
  margin-left: auto;
  font-size: 9.28px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
}

body.layout-app #sidebar .sb-badge.blue{
  background: #2563eb;
  color: #ffffff;
}

body.layout-app #sidebar .sb-badge.red{
  background: #dc2626;
  color: #ffffff;
}

body.layout-app #sidebar .sb-badge.amber{
  background: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(217,119,6,.2);
}

body.layout-app #sidebar .sb-badge.new{
  background: #7c3aed;
  color: #ffffff;
}

body.layout-app #sidebar .sb-subitem{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 20px;
  border-radius: 14px;
  font-size: 12.16px;
  font-weight: 600;
  color: #9ca3af;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s cubic-bezier(.22,1,.36,1), opacity .25s ease, padding .3s ease;
  pointer-events: none;
}

body.layout-app #sidebar .sb-subitem.visible{
  max-height: 36px;
  opacity: 1;
  padding: 5px 10px 5px 20px;
  pointer-events: auto;
}

body.layout-app #sidebar .sb-subitem-arrow{
  font-size: 8.32px;
  color: #e5e7eb;
}

body.layout-app #sidebar .sb-subitem-text{
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

body.layout-app #sidebar .sb-item-gap{
  height: 4px;
}

body.layout-app #sidebar .sb-footer{
  padding: 8px 8px 12px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

body.layout-app #sidebar .sb-footer-item{
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 16px;
  color: #6b7280;
  font-size: 13.12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s ease;
}

body.layout-app #sidebar .sb-footer-item:hover{
  background: #f3f4f6;
  color: #111827;
  padding-left: 14px;
}

body.layout-app #sidebar .sb-footer-item:hover .sb-item-icon{
  background: #e5e7eb;
}

body.layout-app #sidebar .sb-footer-item:hover .sb-item-icon i{
  color: #6b7280;
}

body.layout-app .lp-overlay{
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(17,24,39,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease both;
}

body.layout-app .lp-overlay.open{
  display: flex;
}

body.layout-app .lp-overlay.closing{
  animation: fadeIn .16s ease reverse both;
}

body.layout-app .lp-panel{
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 32px 80px rgba(0,0,0,.09);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  animation: scaleIn .32s cubic-bezier(.22,1,.36,1) both;
}

body.layout-app .lp-head{
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.layout-app .lp-eyebrow{
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 5px;
}

body.layout-app .lp-title{
  font-size: 17.92px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.3px;
}

body.layout-app .lp-close{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 11.84px;
  transition: all .18s ease;
}

body.layout-app .lp-close:hover{
  border-color: #9ca3af;
  color: #111827;
  background: #e5e7eb;
}

body.layout-app .lp-current{
  margin: 14px 20px 0;
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.layout-app .lp-current-badge{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10.88px;
  flex-shrink: 0;
}

body.layout-app .lp-current-lbl{
  font-size: 9.92px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
}

body.layout-app .lp-current-name{
  font-size: 13.44px;
  font-weight: 700;
  color: #2563eb;
}

body.layout-app .lp-scale{
  padding: 16px 20px 12px;
}

body.layout-app .lp-scale-label{
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

body.layout-app .lp-scale-track{
  display: flex;
  gap: 3px;
  align-items: stretch;
  background: #f3f4f6;
  border-radius: 100px;
  padding: 3px;
  border: 1px solid #e5e7eb;
}

body.layout-app .lp-scale-seg{
  flex: 1;
  height: 8px;
  border-radius: 100px;
  background: #e5e7eb;
  transition: all .3s cubic-bezier(.22,1,.36,1);
}

body.layout-app .lp-scale-seg.done{
  background: #16a34a;
}

body.layout-app .lp-scale-seg.active{
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,.4);
}

body.layout-app .lp-scale-ticks{
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 5px;
}

body.layout-app .lp-scale-tick{
  font-size: 9.6px;
  font-weight: 700;
  color: #9ca3af;
}

body.layout-app .lp-scale-tick.active{
  color: #2563eb;
}

body.layout-app .lp-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding: 4px 20px 20px;
}

body.layout-app .lp-card{
  border-radius: 16px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: all .24s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
}

body.layout-app .lp-card:hover{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12), 0 1px 2px rgba(0,0,0,.04), 0 3px 10px rgba(0,0,0,.03);
  transform: translateY(-2px);
}

body.layout-app .lp-card.current{
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

body.layout-app .lp-card.locked{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.3);
}

body.layout-app .lp-card.locked:hover{
  transform: none;
  border-color: #e5e7eb;
  box-shadow: none;
}

body.layout-app .lp-card-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12.8px;
  flex-shrink: 0;
}

body.layout-app .lp-card[data-level="A0"] .lp-card-tag{
  background: #f3f4f6;
  color: #6b7280;
}

body.layout-app .lp-card[data-level="A1"] .lp-card-tag,
body.layout-app .lp-card[data-level="A2"] .lp-card-tag{
  background: #eff6ff;
  color: #2563eb;
}

body.layout-app .lp-card[data-level="B1"] .lp-card-tag{
  background: #f5f3ff;
  color: #7c3aed;
}

body.layout-app .lp-card[data-level="B2"] .lp-card-tag{
  background: #fff7ed;
  color: #ea580c;
}

body.layout-app .lp-card[data-level="C1"] .lp-card-tag{
  background: #f0fdf4;
  color: #16a34a;
}

body.layout-app .lp-card[data-level="C2"] .lp-card-tag{
  background: linear-gradient(135deg,#fffbeb,#fff7ed);
  color: #ea580c;
}

body.layout-app .lp-card-name{
  font-size: 13.12px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}

body.layout-app .lp-card.current .lp-card-name{
  color: #2563eb;
}

body.layout-app .lp-card-desc{
  font-size: 11.36px;
  color: #9ca3af;
  font-weight: 500;
  line-height: 1.5;
}

body.layout-app .lp-card.current .lp-card-desc{
  color: #3b82f6;
  opacity: .8;
}

body.layout-app .lp-card-cur-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8.96px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: #2563eb;
  color: #ffffff;
}

body.layout-app .lp-card-lock{
  position: absolute;
  top: 8px;
  right: 8px;
  color: #9ca3af;
  font-size: 11.52px;
}

body.layout-app .lp-note{
  padding: 12px 20px 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.16px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 500;
}

body.layout-app .lp-note i{
  color: #9ca3af;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 11.52px;
}

body.layout-app #sidebar .sidebar-nav{
  height: 100%;
  min-height: 0;
  padding: 8px 8px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.layout-app #sidebar .sidebar-nav::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.layout-app #sidebar .sidebar-nav::-webkit-scrollbar-track{
  background: transparent;
}

body.layout-app #sidebar .sidebar-nav::-webkit-scrollbar-thumb{
  background: transparent;
}

body.layout-app #sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover{
  background: transparent;
}

body.layout-app #sidebar .sidebar-nav::-webkit-scrollbar-corner{
  background: transparent;
}

body.layout-app #sidebar .sidebar-nav-shell{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 8px;
}

body.layout-app #sidebar .sidebar-nav-rail{
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 8px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .18s ease;
}

body.layout-app #sidebar .sidebar-nav-rail.is-hidden{
  opacity: 0;
}

body.layout-app #sidebar .sidebar-nav-thumb{
  position: absolute;
  left: 50%;
  width: 3px;
  min-height: 42px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateX(-50%);
}

body.layout-app .sidebar-content--v4.mCustomScrollbar > .mCSB_scrollTools{
  display: none !important;
}

body.layout-app #sidebar .sidebar-group{
  margin-bottom: 8px !important;
}

body.layout-app #sidebar .sidebar-group-label{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 5px;
  font-size: 9.12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ca3af;
}

body.layout-app #sidebar .sidebar-group-label::after{
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #e5e7eb;
}

body.layout-app #sidebar .sidebar-link{
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  margin-bottom: 1px;
  padding: 8px 10px;
  border-radius: 16px;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 13.44px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sidebar-link:hover{
  background: #f3f4f6 !important;
  color: #111827 !important;
  padding-left: 14px;
}

body.layout-app #sidebar .sidebar-link.active{
  background: #eff6ff !important;
  color: #2563eb !important;
  padding-left: 14px;
  font-weight: 700;
}

body.layout-app #sidebar .sidebar-link.active::before{
  width: 3px;
  height: 16px;
  background: #2563eb;
  border-radius: 0 4px 4px 0;
}

body.layout-app #sidebar .sidebar-link-icon{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .18s ease;
}

body.layout-app #sidebar .sidebar-link:hover .sidebar-link-icon{
  background: #e5e7eb;
}

body.layout-app #sidebar .sidebar-link.active .sidebar-link-icon{
  background: rgba(37,99,235,.12);
}

body.layout-app #sidebar .sidebar-link i{
  width: auto;
  text-align: center;
  font-size: 12.48px;
  color: #9ca3af;
  transition: color .18s ease;
}

body.layout-app #sidebar .sidebar-link:hover i{
  color: #6b7280;
}

body.layout-app #sidebar .sidebar-link.active i{
  color: #2563eb !important;
}

body.layout-app #sidebar .sidebar-link-label{
  flex: 1 1 auto;
  min-width: 0;
}

body.layout-app #sidebar .sidebar-lesson-subitem{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 20px;
  border-radius: 14px;
  color: #9ca3af;
  font-size: 12.16px;
  font-weight: 600;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s cubic-bezier(.22,1,.36,1), opacity .25s ease, padding .3s ease;
  pointer-events: none;
}

body.layout-app #sidebar .sidebar-lesson-subitem.visible{
  max-height: 34px;
  opacity: 1;
  padding: 5px 10px 5px 20px;
  pointer-events: auto;
}

body.layout-app #sidebar .sidebar-lesson-subitem-arrow{
  font-size: 8px;
  color: #d1d5db;
}

body.layout-app #sidebar .sidebar-lesson-subitem-text{
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

body.layout-app #sidebar .badge-count,
body.layout-app #sidebar .badge-new{
  margin-left: auto;
  flex-shrink: 0;
}

body.layout-app #sidebar .badge-count{
  background: #2563eb;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 9.28px;
  font-weight: 800;
}

body.layout-app #sidebar .badge-new{
  background: #7c3aed;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 9.28px;
  font-weight: 800;
}

body.layout-app #sidebar .badge-count--red{
  background: #dc2626;
}

body.layout-app #sidebar .badge-new--violet{
  background: #7c3aed;
  color: #ffffff;
}

body.layout-app #sidebar .badge-new--amber{
  background: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(217,119,6,.2);
}

body.layout-app #sidebar .sidebar-footer{
  margin-top: auto;
  padding: 8px 0 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

body.layout-app #sidebar .sidebar-footer-link{
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 16px;
  color: #6b7280 !important;
  font-size: 13.44px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s cubic-bezier(.22,1,.36,1);
}

body.layout-app #sidebar .sidebar-footer-link:hover{
  background: #f3f4f6;
  color: #111827 !important;
  padding-left: 14px;
}

body.layout-app #sidebar .sidebar-footer-link.active{
  background: #eff6ff;
  color: #2563eb !important;
  padding-left: 14px;
}

body.layout-app #sidebar .sidebar-footer-link:hover .sidebar-link-icon{
  background: #e5e7eb;
}

body.layout-app #sidebar .sidebar-footer-link.active .sidebar-link-icon{
  background: rgba(37,99,235,.12);
}

body.layout-app #sidebar .sidebar-footer-link.active i{
  color: #2563eb !important;
}

body.lm-level-picker-open{
  overflow: hidden;
}

.lm-level-picker-overlay{
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17,24,39,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lm-level-picker-overlay.open{
  display: flex;
}

.lm-level-picker-panel{
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 32px 80px rgba(0,0,0,.09);
  overflow: hidden;
}

.lm-level-picker-head{
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lm-level-picker-eyebrow{
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 5px;
}

.lm-level-picker-title{
  font-size: 17.92px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.3px;
}

.lm-level-picker-close{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}

.lm-level-picker-close:hover{
  border-color: #9ca3af;
  color: #111827;
  background: #e5e7eb;
}

.lm-level-picker-current{
  margin: 14px 20px 0;
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lm-level-picker-current-badge{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.88px;
  font-weight: 800;
  flex-shrink: 0;
}

.lm-level-picker-current-label{
  font-size: 9.92px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
}

.lm-level-picker-current-name{
  font-size: 13.44px;
  font-weight: 700;
  color: #2563eb;
}

.lm-level-picker-scale{
  padding: 16px 20px 12px;
}

.lm-level-picker-scale-label{
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.lm-level-picker-scale-track{
  display: flex;
  gap: 3px;
  align-items: stretch;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid #e5e7eb;
}

.lm-level-picker-scale-seg{
  flex: 1 1 0;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

.lm-level-picker-scale-seg.done{
  background: #16a34a;
}

.lm-level-picker-scale-seg.active{
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,.4);
}

.lm-level-picker-scale-ticks{
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 5px;
}

.lm-level-picker-scale-tick{
  font-size: 9.6px;
  font-weight: 700;
  color: #9ca3af;
}

.lm-level-picker-scale-tick.active{
  color: #2563eb;
}

.lm-level-picker-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 20px 20px;
}

.lm-level-picker-card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  text-decoration: none !important;
  transition: all .24s cubic-bezier(.22,1,.36,1);
}

.lm-level-picker-card:hover{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12), 0 1px 2px rgba(0,0,0,.04), 0 3px 10px rgba(0,0,0,.03);
  transform: translateY(-2px);
  color: #111827;
}

.lm-level-picker-card.current{
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.lm-level-picker-card.locked{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.3);
}

.lm-level-picker-card.locked:hover{
  transform: none;
  border-color: #e5e7eb;
  box-shadow: none;
}

.lm-level-picker-card-tag{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.8px;
  font-weight: 800;
}

.lm-level-picker-card[data-level="A0"] .lm-level-picker-card-tag{
  background: #f3f4f6;
  color: #6b7280;
}

.lm-level-picker-card[data-level="A1"] .lm-level-picker-card-tag,
.lm-level-picker-card[data-level="A2"] .lm-level-picker-card-tag{
  background: #eff6ff;
  color: #2563eb;
}

.lm-level-picker-card[data-level="B1"] .lm-level-picker-card-tag{
  background: #f5f3ff;
  color: #7c3aed;
}

.lm-level-picker-card[data-level="B2"] .lm-level-picker-card-tag{
  background: #fff7ed;
  color: #ea580c;
}

.lm-level-picker-card[data-level="C1"] .lm-level-picker-card-tag{
  background: #f0fdf4;
  color: #16a34a;
}

.lm-level-picker-card[data-level="C2"] .lm-level-picker-card-tag{
  background: linear-gradient(135deg,#fffbeb,#fff7ed);
  color: #ea580c;
}

.lm-level-picker-card-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 8.96px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.lm-level-picker-card-title{
  font-size: 13.12px;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
}

.lm-level-picker-card.current .lm-level-picker-card-title{
  color: #2563eb;
}

.lm-level-picker-card-subtitle{
  font-size: 11.36px;
  font-weight: 500;
  line-height: 1.55;
  color: #6b7280;
}

.lm-level-picker-card-lock{
  position: absolute;
  top: 8px;
  right: 8px;
  color: #9ca3af;
  font-size: 11.52px;
}

.lm-level-picker-note{
  padding: 12px 20px 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.16px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 500;
}

.lm-level-picker-note i{
  color: #9ca3af;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 1000px){
  .lm-level-picker-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px){
  body.layout-app #sidebar{
    top: var(--lm-header-h-mobile) !important;
    height: calc(100vh - var(--lm-header-h-mobile)) !important;
    min-width: 256px !important;
    width: 256px !important;
  }

  body.layout-app .sidebar-content{
    top: var(--lm-header-h-mobile) !important;
    height: calc(100vh - var(--lm-header-h-mobile)) !important;
    width: 256px !important;
    max-width: 256px !important;
    padding: 12px 14px 12px !important;
  }
}

@media (max-width: 480px){
  body.layout-app #sidebar{
    min-width: 250px !important;
    width: 250px !important;
  }

  body.layout-app .sidebar-content{
    width: 250px !important;
    max-width: 250px !important;
  }

  .lm-level-picker-overlay{
    padding: 14px;
  }

  .lm-level-picker-grid{
    grid-template-columns: 1fr;
  }
}

/* Veľké desktopové displeje používajú väčšiu mierku celého aplikačného shellu.
   Výklad a cvičenia majú odlišnú optimálnu šírku: súvislý text zostáva
   čitateľný, interaktívna plocha môže využiť viac miesta. */
@media (min-width: 1600px) and (min-height: 900px){
  :root{
    --lm-header-h-desktop: 62px;
    --lm-sidebar-w-desktop: 280px;
  }

  #lm-header-shadow-host{
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
  }

  body.layout-app #lm-sidebar-shadow-host{
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main,
  body.layout-app.lesson section#main-content.lesson-nav-main[data-lesson]{
    padding-left: 72px !important;
    padding-right: 72px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading{
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body{
    padding-top: 22px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-style-3{
    width: 100% !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h2,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h3,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h4,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > p,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > ul,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > ol{
    width: 100% !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-style-3 .text-element-body,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-style-3 .text-element-content{
    width: 100% !important;
    max-width: none !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-content,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-body,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading p,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading li{
    font-size: 16px !important;
    line-height: 27px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading h1{
    font-size: 30px !important;
    line-height: 36px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading h2{
    font-size: 32px !important;
    line-height: 39px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading h3{
    font-size: 24px !important;
    line-height: 31px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main > [id^="lm-type12-host-"],
  body.layout-app.lesson #main-content.lesson-nav-main > .langem-exercise-issue-report-host{
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 2200px) and (min-height: 1100px){
  :root{
    --lm-header-h-desktop: 68px;
    --lm-sidebar-w-desktop: 300px;
  }

  #lm-header-shadow-host{
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }

  body.layout-app #lm-sidebar-shadow-host{
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main,
  body.layout-app.lesson section#main-content.lesson-nav-main[data-lesson]{
    padding-left: 96px !important;
    padding-right: 96px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading{
    max-width: 1320px;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-style-3{
    max-width: 1080px;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h2,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h3,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > h4,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > p,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > ul,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .panel-body > ol{
    max-width: 1080px;
  }

  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-content,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading .text-element-body,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading p,
  body.layout-app.lesson #main-content.lesson-nav-main #main-content-test.admin-reading li{
    font-size: 17px !important;
    line-height: 29px !important;
  }

  body.layout-app.lesson #main-content.lesson-nav-main > [id^="lm-type12-host-"],
  body.layout-app.lesson #main-content.lesson-nav-main > .langem-exercise-issue-report-host{
    max-width: 1760px;
  }
}
