:root{
  --tlk-userbar-name-size: 16px;

  --tlk-course-title-size: 20px;
  --tlk-course-title-weight: 700;

  --tlk-lecture-title-size: 28px;
  --tlk-lecture-title-weight: 700;

  --tlk-partition-title-size: 18px;
  --tlk-partition-title-weight: 600;

  --tlk-lecture-desc-size: 16px;
  --tlk-lecture-desc-weight: 400;
  --tlk-lecture-desc-color: #4a4a4a;
}

/* =========================================
   NineSquares — Tilda Members global theme
   Scope: только Members (есть #app + tlk-*)
   ========================================= */

#app .tlk-userbar__popup-name{
  font-weight: 600 !important;
  font-size: var(--tlk-userbar-name-size, 16px) !important;
  line-height: 1.2 !important;
}

/* ---------- Аватар в шапке Members ---------- */
#app .tlk-userbar__user-image{
  width: 42px !important;
  height: 42px !important;

  border-radius: 12px !important;
  overflow: hidden !important;

  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.05) !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 18px rgba(0,0,0,0.06),
    0 18px 30px rgba(0,0,0,0.05) !important;

  transition: box-shadow .25s ease, transform .2s ease;
}

#app .tlk-userbar__user-image_md{
  border-radius: 12px !important;
}

#app .tlk-userbar__user-image svg{
  width: 22px !important;
  height: 22px !important;
}

#app .tlk-userbar__user-image:hover{
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 12px 24px rgba(0,0,0,0.08),
    0 24px 40px rgba(0,0,0,0.07) !important;
  transform: translateY(-1px);
}

/* ---------- Попап меню (шире + без лома текста) ---------- */
#app .tlk-userbar__popup{
  min-width: 320px !important;
  max-width: 420px !important;

  border-radius: 18px !important;
  background: #ffffff !important;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06),
    0 18px 40px rgba(0,0,0,0.08) !important;

  border: 1px solid rgba(0,0,0,0.05) !important;
}

#app .tlk-userbar__popup-content{
  padding: 16px 18px !important;
}
#app .tlk-userbar__popup-container{
  padding: 6px 18px 16px !important;
}
#app .tlk-userbar__popup-store-item{
  margin-bottom: 10px !important;
}
#app .tlk-userbar__popup-store-item:last-child{
  margin-bottom: 0 !important;
}

/* ---------- Заголовки курса/разделов/описания ---------- */
#app .tlk-lectures__header-title{
  font-size: var(--tlk-lecture-title-size, 28px) !important;
  font-weight: var(--tlk-lecture-title-weight, 700) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

#app .tlk-lectures__partition-title{
  font-size: var(--tlk-partition-title-size, 18px) !important;
  font-weight: var(--tlk-partition-title-weight, 600) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}

#app .tlk-lectures__header-description{
  font-size: var(--tlk-lecture-desc-size, 16px) !important;
  font-weight: var(--tlk-lecture-desc-weight, 400) !important;
  line-height: 1.6 !important;
  color: var(--tlk-lecture-desc-color, #4a4a4a) !important;
  max-width: 760px;
}

/* ---------- Плашка разделов с твоим градиентом ---------- */
#app .tlk-lectures__sections{
  background: linear-gradient(0.343turn, rgba(236,236,236,1) 26%, rgba(255,255,255,0) 100%) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
}

#app .tlk-lectures__partition-item{
  margin-bottom: 14px !important;
}
#app .tlk-lectures__partition-item:last-child{
  margin-bottom: 0 !important;
}

/* ---------- Убираем разделитель ::after у header ---------- */
#app .tlk-lectures__header::after{
  content: none !important;
  display: none !important;
}

/* ---------- Заголовки в списке курсов ---------- */
#app .tlk-resources__groups-title-link{
  font-size: var(--tlk-course-title-size, 20px) !important;
  font-weight: var(--tlk-course-title-weight, 700) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
}
#app .tlk-resources__groups-title-link-icon{
  width: 16px;
  height: 16px;
  margin-left: 6px;
  transform: translateY(2px);
}