@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v48-cyrillic_latin_symbols-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v49-cyrillic_latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v48-cyrillic_latin_symbols-700.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/noto-sans-arabic-v33-arabic_latin_math_symbols-regular.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/noto-sans-arabic-v33-arabic_latin_math_symbols-500.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/noto-sans-arabic-v33-arabic_latin_math_symbols-500.woff2') format('woff2');
}

:root {
  --radius: 8px;
  --main-yellow: #eda139;
  --main-green: #00937b;
  --light-yellow: #ffb044;
  --light-grey: #f9f6ef;
  --green-light: #00b98e;
  --gray-transcriptions: #8a8a8a;
  --heading-color: #1b1b1b;
  /* --false-color: #ff5c3f; */
  --false-color: #cecece;
  --second-family: 'Noto Sans Arabic';
  --black: #000;

  --cell: clamp(52px, 23vmin, 90px);
  --text: #111;
  --line: #f1a24a;

  --gap: clamp(10px, 2.4vh, 18px);

  --screen-w: 392;
  --screen-h: 620;
  --app-scale: 1;

  --center-scale: 1;

  --fit-scale: 1;
  --h-header: 90px;
  --h-footer: 85px;
  --h-title: 110px;
  --h-row: 80px;
  --gap-row: 16px;
  --h-max-layout: 852px;
  --learner-layout-width: 393px;
  --learner-shell-width: 410px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100dvh;
  touch-action: manipulation;
}

body {
  /* position: fixed;
  top: 0;
  left: 0; */
  overflow: hidden;
  /* Используем динамическую высоту вьюпорта */
  height: 100dvh;
  width: 100vw;
  /* display: flex;
  flex-direction: column; */
  /* margin: 0; */
  font-family: 'Roboto', var(--second-family), sans-serif;
  background-color: #fff;
}

body.app-layout--fixed-phone {
  background-color: #fff8e8;
}

p,
h1,
h2 {
  margin: 0;
  font-weight: 400;
  font-size: inherit;
}

h1 {
  font-weight: 500;
}

button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (orientation: landscape) {
  body {
    overflow: auto;
  }
}

/* Для устройств с "бровью" (notch) */
@supports (padding: max(0px)) {
  #app-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .header {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

.admin__preview .footer {
  padding-left: 20px;
  padding-right: 20px;
}

#courseSelect {
  width: clamp(80px, 20vw, 140px); /* wider box */
  padding: clamp(4px, 1vw, 8px);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  border-radius: var(--radius);
  border: none;
  background-color: white;
  color: #333;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  appearance: none;
  margin-left: 6px;
}

#courseSelect:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4a90e2;
}

.scroll-lock-ios {
  position: fixed;
  width: 100vw;
  overflow: hidden;
}

.scroll-lock {
  overflow: hidden;
}

.header {
  width: 100%;
  max-width: var(--learner-shell-width);
  margin: 0 auto;
  flex-shrink: 0;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background-color: #fff;
  position: relative;
}

.footer {
  width: 100%;
  max-width: var(--learner-shell-width);
  margin: 0 auto;
  flex-shrink: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  background-color: #fff;
}

@media (min-width: 768px) {
  .header {
    max-width: 1440px;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    padding-top: 20px;
    /* padding-right: 53px; */
  }

  .footer {
    max-width: 984px;
  }
}

@media (min-width: 1440px) {
  .header {
    padding-top: 68px;
    /* padding-right: 53px; */
  }
}

.header__logo {
  display: none;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  /* padding-top: 20px;
  padding-left: 20px;
  padding-right: 22px;
  padding-bottom: 14px; */
  /* max-width: 393px; */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header__logo {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: 50px;
    right: 0;
    flex-direction: column-reverse;
    gap: 66px;
  }
}

.header__score {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (min-width: 768px) {
  .header__score {
    flex-direction: column;
    order: 2;
  }
}

.header__score span {
  display: flex;
  align-items: center;
  height: 28px;
  padding-left: 5px;
  padding-right: 5px;
  /* background-color: #faf4e4;
  border-radius: 4px;
  font-size: 15px;
  text-align: center;
  color: #343434; */
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  color: var(--main-green);
}

.nav__toggle {
  display: block;
  padding: 0;
  width: 38px;
  height: 28px;
  background-color: transparent;
  background-image: url('../assets/images/icons/menu.svg');
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  outline: none;
  position: relative;
  z-index: 20;
}

.nav__toggle--open {
  display: block;
}

.nav__menu.active ~ .nav__toggle--open,
.nav__toggle--open.active {
  display: none;
}

.nav__toggle--return {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='20.268' width='28.6632' height='4.19462' rx='2.09731' transform='rotate(-45 0 20.268)' fill='%23eda139' /%3E%3Crect x='2.96606' width='28.6632' height='4.19462' rx='2.09731' transform='rotate(45 2.96606 0)' fill='%23eda139' /%3E%3C/svg%3E");
  background-size: 22px 22px;
  background-position: center;
}

.nav__toggle--close {
  display: none;
  padding: 0;
  width: 42px;
  height: 28px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  outline: none;
  z-index: 26;
  justify-self: end;
  align-self: start;
  background-position-x: right;
  background-position-y: top;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='20.268' width='28.6632' height='4.19462' rx='2.09731' transform='rotate(-45 0 20.268)' fill='%23eda139' /%3E%3Crect x='2.96606' width='28.6632' height='4.19462' rx='2.09731' transform='rotate(45 2.96606 0)' fill='%23eda139' /%3E%3C/svg%3E");
}

.nav__menu.active .nav__toggle--close {
  display: block;
}

@media (min-width: 768px) {
  .nav__toggle {
    flex-direction: column;
    order: 1;
  }
}

.nav {
  overflow: visible;
}

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 35, 30, 0.38);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 24;
}

.nav__backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav__menu {
  position: fixed;
  inset: 0;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 25;
}

.nav__menu.active {
  visibility: visible;
  pointer-events: auto;
}

.nav__menu-panel {
  width: min(430px, 100%);
  min-height: min(820px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 44px 30px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 34px;
  overflow: auto;
  transform: translateY(36px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.nav__menu.active .nav__menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nav__menu-greeting {
  display: grid;
  grid-template-columns: 48px 1fr 42px;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  position: relative;
}

.nav__menu-greeting-badge {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--light-yellow);
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  overflow: hidden;
}

.nav__menu-greeting-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 17.25V21H6.75L17.81 9.94L14.06 6.19L3 17.25ZM20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C17.98 2.9 17.35 2.9 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04Z' fill='white' fill-opacity='0.87'/%3E%3C/svg%3E%0A");
  z-index: 1;
}

.nav__menu-greeting-badge--has-avatar::after {
  display: none;
}

.nav__menu-greeting-badge-button {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: stretch;
  justify-content: stretch;
  appearance: none;
}

.nav__menu-greeting-badge-button:focus-visible {
  outline: 2px solid #35250a;
  outline-offset: 3px;
  border-radius: 50%;
}

.nav__menu-greeting-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav__menu-avatar-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 35;
  min-width: 196px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(195, 162, 105, 0.3);
  background: rgba(255, 251, 243, 0.98);
  box-shadow: 0 20px 40px rgba(53, 37, 10, 0.16);
  backdrop-filter: blur(10px);
}

.nav__menu-avatar-menu[hidden] {
  display: none;
}

.nav__menu-avatar-menu-action {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #35250a;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav__menu-avatar-menu-action:hover,
.nav__menu-avatar-menu-action:focus-visible {
  background: #ffefd1;
  color: #2f1e05;
  outline: none;
}

.nav__menu-avatar-menu-action:active {
  transform: translateY(1px);
}

.nav__menu-avatar-menu-action[data-avatar-action='remove'] {
  color: #8b2f22;
}

.nav__menu-avatar-menu-action[data-avatar-action='remove']:hover,
.nav__menu-avatar-menu-action[data-avatar-action='remove']:focus-visible {
  background: #fff0ed;
  color: #7b231c;
}

.nav__menu-avatar-menu-action:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.nav__menu-greeting-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: start;
}

.nav__menu-greeting-label,
.nav__menu-section-label,
.nav__menu-row-key {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #626262;
}

.nav__menu-greeting-label {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  text-transform: none;
  min-height: 22px;
}

.nav__menu-greeting-name {
  color: #343434;
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 24px;
  overflow-wrap: anywhere;
}

.nav__session-card {
  display: grid;
  gap: 14px;
}

.nav__session-card-stats {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  color: #fff;
}

/* .nav__session-card-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--green-light);
  flex-direction: column;
  padding: 16px;
  min-height: 216px;
}

.nav__session-card-ring-icons {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: auto;
} */

.nav__session-card-ring-inner {
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  place-items: center;
}

.nav__session-card-progress-circle {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.nav__session-card-progress-fill {
  --circle-length: 399;
  transition: stroke-dashoffset 0.5s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dashoffset: calc(var(--circle-length) - (var(--circle-length) * var(--progress, 0) / 100));
}

.nav__session-card-metrics {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nav__session-card-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--light-grey);
  font-size: 20px;
  color: var(--black);
  min-width: 0;
}

.nav__session-card-metric span {
  font-family: 'Roboto', var(--second-family), sans-serif;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 400;
  color: #252525;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav__session-card-metric strong {
  display: block;
  min-width: 0;
  font-family: 'Roboto', var(--second-family), sans-serif;
  line-height: 1;
  font-weight: 700;
  font-size: clamp(16px, 4.6vw, 20px);
  text-align: right;
  justify-self: end;
  min-height: 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav__session-card-metric-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
  opacity: 0.92;
}

.nav__session-card-metric--today strong {
  color: var(--green-light);
}

.nav__session-card-metric--limit strong {
  color: var(--main-yellow);
}

.nav__session-card-metric--limit span {
  white-space: nowrap;
}

.nav__session-card-metric--limit.nav__session-card-metric--multiline {
  align-items: start;
}

.nav__session-card-metric--limit.nav__session-card-metric--multiline span,
.nav__session-card-metric--limit.nav__session-card-metric--multiline strong {
  align-self: start;
}

.nav__session-card-metric--streak strong {
  color: #ff5c3f;
}

/* .nav__session-card-detail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 24px;
  background-color: var(--light-grey);
  border-radius: 12px;
  min-width: 0;
} */

/* .nav__session-card-step-label {
  display: block;
  margin: 0;
  color: var(--green-light);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  min-height: 29px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
} */

/* .nav__session-card-step-title {
  display: block;
  margin: 0;
  font-weight: 500;
  font-family: 'Roboto', var(--second-family), sans-serif;
  font-size: 20px;
  line-height: 1.16;
  min-height: 24px;
  color: #252525;
  overflow-wrap: anywhere;
} */

.nav__session-card-actions {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.nav__session-card-nav,
.nav__session-card-continue {
  /* min-height: 42px; */
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.nav__session-card-continue {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /* min-height: 56px; */
  border-radius: 8px;
  background: var(--green-light);
  color: #fff;
  font-size: 20px;
  text-align: center;
  box-shadow: 0 4px 0px var(--main-green);
}

.nav__session-card-continue:hover {
  background: var(--main-green);
}

.nav__menu-block {
  display: grid;
  gap: 16px;
}

.nav__menu-section-head {
  display: grid;
  gap: 4px;
}

.nav__menu-section-label {
  margin: 0;
  color: rgba(21, 53, 45, 0.46);
}

.nav__menu-list {
  display: grid;
  padding-left: 24px;
  border-radius: 12px;
  background: rgba(16, 145, 138, 0.05);
}

.nav__menu-row:last-of-type {
  border-bottom: none;
}

.nav__menu-list--grey .nav__menu-row {
  border-bottom-color: rgba(237, 161, 57, 0.2);
}

.nav__menu-list--grey {
  background-color: var(--light-grey);
}

.nav__menu-list--grey .nav__menu-row-key {
  font-family: 'Roboto', var(--second-family), sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #252525;
  text-transform: none;
}

.nav__menu-row-key {
  font-weight: 900;
  font-size: 15px;
  color: var(--green-light);
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav__menu-row-value {
  font-family: 'Roboto', var(--second-family), sans-serif;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 400;
  text-align: right;
  color: var(--black);
  min-width: 0;
  min-height: 19px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav__menu-row-value--link {
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9px;
  gap: 20px;
  align-items: center;
  width: 100%;
  justify-self: stretch;
}

#menuProfileEmail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* .nav__menu-row-value--link::after {
  content: '';
  display: block;
  width: 9px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='16' viewBox='0 0 9 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.72727 8L0.725511 16C0.26062 15.4713 0 14.7965 0 14.08C0 13.3009 0.302883 12.5635 0.8523 12.0139L4.85311 8L0.859344 3.98609C0.309927 3.43652 0.00704397 2.70609 0.00704397 1.92696C0.00704397 1.21043 0.26062 0.528696 0.732555 0L8.72727 8Z' fill='%2300B98E'/%3E%3C/svg%3E%0A");
} */

.nav__menu-row-value--link {
  display: block;
  pointer-events: none;
}

.nav__menu-row-value--link {
  pointer-events: all;
}

.nav__menu-row-value--logout {
  display: grid;
  pointer-events: all;
}

.nav__menu-row--link {
  padding-right: 42px;
  text-decoration: none;
}

.nav__menu-row--link::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 15px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 11.3644C14.3008 11.3152 13.5843 10.9856 13.0771 10.4784C12.5256 9.92689 12.2154 9.19321 12.2105 8.42013L12.1858 4.43657L0.939307 15.6831L0.707877 15.4517C-0.227694 14.5161 -0.237542 12.9995 0.688181 12.0738L10.0094 2.75255L6.53303 2.73285C5.75996 2.72793 5.0312 2.42263 4.4797 1.87114C3.97253 1.36396 3.66723 0.70414 3.62292 0H15V11.3644Z' fill='%2300B98E'/%3E%3C/svg%3E%0A");
  transition: transform 0.3s ease;
}

.nav__menu-row--link:hover::after {
  transform: translateY(-50%) rotate(45deg);
}

.nav__menu-row--select {
  cursor: default;
}

.nav__menu-row-control {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav__menu-row-control #courseSelect {
  width: 100%;
  margin-left: 0;
  padding: 10px 38px 10px 12px;
  min-height: 44px;
  height: auto;
  border: 1px solid rgba(15, 76, 64, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: #15352d;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav__menu-row-control #courseSelect:focus {
  box-shadow: 0 0 0 2px rgba(13, 184, 153, 0.18);
}

.nav__menu-footer {
  display: grid;
  gap: 44px;
  padding-top: 10px;
}

.nav__menu-socials {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.nav__menu-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__menu-brand {
  width: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.nav__menu-build {
  width: 100%;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* #menuBuildBadgeText {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(21, 53, 45, 0.48);
  font: 10px/1.2 monospace;
} */

#courseNavigationPopup {
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

#courseNavigationPopupBody details {
  padding: 0 30px;
}

#courseNavigationPopupBody summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-top: 20px;
  padding-right: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2d5c6;
}

#courseNavigationPopupBody details:first-of-type {
  position: relative;
  margin-top: 40px;
}

#courseNavigationPopupBody details:first-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  display: block;
  height: 1px;
  border-top: 1px solid #e2d5c6;
}

#courseNavigationPopupBody details[open]:first-of-type::before {
  left: -30px;
  right: -30px;
}

#courseNavigationPopupBody summary::-webkit-details-marker {
  display: none;
}

#courseNavigationPopupBody summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  display: block;
  width: 18px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='21' viewBox='0 0 24 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5501 21L0.000101044 9.44745C0.763405 8.77626 1.73762 8.39999 2.7721 8.39999C3.89697 8.39999 4.96158 8.83728 5.75501 9.6305L11.5501 15.4067L17.3452 9.64067C18.1386 8.84745 19.1932 8.41016 20.3181 8.41016C21.3525 8.41016 22.3368 8.77626 23.1001 9.45762L11.5501 21Z' fill='%2300B98E'/%3E%3Cpath d='M11.5501 12.6L0.000100924 1.04746C0.763405 0.376269 1.73762 -9.33783e-07 2.7721 -8.88565e-07C3.89697 -8.39395e-07 4.96158 0.437286 5.75501 1.23051L11.5501 7.00667L17.3452 1.24068C18.1386 0.447457 19.1932 0.0101696 20.3181 0.0101696C21.3525 0.0101696 22.3368 0.37627 23.1001 1.05763L11.5501 12.6Z' fill='%2300B98E'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%) rotate(0);
  transition: transform 0.3s ease;
}

#courseNavigationPopupBody details[open] summary::after {
  transform: translateY(-50%) rotate(-180deg);
}

#courseNavigationPopupBody h2 {
  margin: 0;
  margin-bottom: 7px;
  font-weight: 800;
  font-size: 24px;
  color: var(--green-light);
  text-transform: uppercase;
}

#courseNavigationPopupBody h3 {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  color: #252525;
}

#courseNavigationPopupBody button {
  position: relative;
  min-height: 80px;
  margin-bottom: 48px;
  padding: 19px 24px;
  text-align: left;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  z-index: 20;
}

#courseNavigationPopupBody button:first-of-type {
  margin-top: 25px;
}

#courseNavigationPopupBody button:not(:last-of-type)::before {
  pointer-events: none;
  z-index: 1;
}

#courseNavigationPopupBody button:nth-child(odd):not(:last-of-type)::before {
  content: '';
  position: absolute;
  top: calc(100% - 7px);
  left: 52px;
  display: block;
  width: 68px;
  height: 75px;
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3107_3642)'%3E%3Cpath d='M15.9199 9.89502C10.92 25.895 24.9198 34.395 31.9199 36.395C38.92 38.395 52.4199 42.895 52.4199 59.895' stroke='white' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3107_3642' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3107_3642'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3107_3642' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: cover;
}

#courseNavigationPopupBody button:nth-child(even):not(:last-of-type)::before {
  content: '';
  position: absolute;
  top: calc(100% - 5px);
  right: 90px;
  display: block;
  width: 68px;
  height: 75px;
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3107_3689)'%3E%3Cpath d='M51.5 9.89502C56.4999 25.895 42.5001 34.395 35.5 36.395C28.4999 38.395 15 42.895 15 59.895' stroke='white' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3107_3689' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3107_3689'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3107_3689' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1, 1);
}

#courseNavigationPopupBody button:nth-child(odd).is-active-lesson::before {
  top: calc(100% - 15px);
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3101_3525)'%3E%3Cpath d='M51.5 9.89502C56.4999 25.895 42.5001 34.395 35.5 36.395C28.4999 38.395 15 42.895 15 59.895' stroke='url(%23paint0_linear_3101_3525)' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3101_3525' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3101_3525'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3101_3525' result='shape'/%3E%3C/filter%3E%3ClinearGradient id='paint0_linear_3101_3525' x1='51.5' y1='9.89502' x2='16.5' y2='59.895' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.197115' stop-color='white'/%3E%3Cstop offset='1' stop-color='%2300B98E'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
  /* transform: scaleX(1); */
  transform: rotate(180deg) scale(-1, 1);
}

#courseNavigationPopupBody button:nth-child(even).is-active-lesson::before {
  top: calc(100% - 12px);
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3101_3529)'%3E%3Cpath d='M15.9199 9.89502C10.92 25.895 24.9198 34.395 31.9199 36.395C38.92 38.395 52.4199 42.895 52.4199 59.895' stroke='url(%23paint0_linear_3101_3529)' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3101_3529' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3101_3529'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3101_3529' result='shape'/%3E%3C/filter%3E%3ClinearGradient id='paint0_linear_3101_3529' x1='33.642' y1='9.89502' x2='33.642' y2='59.895' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2300B98E'/%3E%3Cstop offset='0.769231' stop-color='white'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
  /* transform: rotate(180deg); */
  transform: scale(-1, 1);
}

#courseNavigationPopupBody button:nth-child(odd):not(:last-of-type):has(+ .is-active-lesson)::before {
  top: calc(100% - 11px);
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3101_3525)'%3E%3Cpath d='M51.5 9.89502C56.4999 25.895 42.5001 34.395 35.5 36.395C28.4999 38.395 15 42.895 15 59.895' stroke='url(%23paint0_linear_3101_3525)' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3101_3525' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3101_3525'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3101_3525' result='shape'/%3E%3C/filter%3E%3ClinearGradient id='paint0_linear_3101_3525' x1='51.5' y1='9.89502' x2='16.5' y2='59.895' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.197115' stop-color='white'/%3E%3Cstop offset='1' stop-color='%2300B98E'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
  transform: scale(-1, 1);
}

#courseNavigationPopupBody button:nth-child(even):not(:last-of-type):has(+ .is-active-lesson)::before {
  top: calc(100% - 11px);
  background-image: url("data:image/svg+xml,%3Csvg width='68' height='75' viewBox='0 0 68 75' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_3101_3525)'%3E%3Cpath d='M51.5 9.89502C56.4999 25.895 42.5001 34.395 35.5 36.395C28.4999 38.395 15 42.895 15 59.895' stroke='url(%23paint0_linear_3101_3525)' stroke-width='6' stroke-dasharray='10 10'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_3101_3525' x='0' y='0' width='67.4199' height='74.895' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.774038 0 0 0 0 0.690575 0 0 0 0 0.598391 0 0 0 0.4 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3101_3525'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3101_3525' result='shape'/%3E%3C/filter%3E%3ClinearGradient id='paint0_linear_3101_3525' x1='51.5' y1='9.89502' x2='16.5' y2='59.895' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.197115' stop-color='white'/%3E%3Cstop offset='1' stop-color='%2300B98E'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
  transform: scale(1, 1);
}

#courseNavigationPopupBody button h4 {
  margin: 0 0 4px;
  font-weight: 900;
  font-size: 15px;
  color: var(--green-light);
  text-transform: uppercase;
}

#courseNavigationPopupBody button p {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  color: #252525;
}

#courseNavigationPopupBody button .course-nav-badge {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  font-size: 15px;
  text-transform: uppercase;
  text-align: right;
  color: #626262;
  display: none;
}

#courseNavigationPopupBody button.is-active-lesson {
  background-color: var(--green-light);
  width: calc(100% + 30px);
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' viewBox='0 0 18 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.55031 2.55031C5.95072 -0.850103 11.4639 -0.850103 14.8643 2.55031C18.2647 5.95072 18.2647 11.4639 14.8643 14.8643L13.6773 16.0382C12.8024 16.8969 11.6673 18.0008 10.2715 19.3504C9.39921 20.1937 8.01539 20.1936 7.14328 19.3501L3.65218 15.9543C3.21341 15.5234 2.84615 15.1601 2.55031 14.8643C-0.850103 11.4639 -0.850103 5.95072 2.55031 2.55031ZM13.8036 3.61097C10.989 0.796344 6.42559 0.796344 3.61097 3.61097C0.796344 6.42559 0.796344 10.989 3.61097 13.8036L5.09804 15.2711C5.91695 16.0725 6.94641 17.0729 8.18609 18.2719C8.47679 18.5531 8.93807 18.5531 9.22882 18.272L12.6237 14.9705C13.0927 14.5102 13.486 14.1213 13.8036 13.8036C16.6182 10.989 16.6182 6.42559 13.8036 3.61097ZM8.7073 5.98096C10.365 5.98096 11.7088 7.3248 11.7088 8.98251C11.7088 10.6402 10.365 11.9841 8.7073 11.9841C7.04958 11.9841 5.70574 10.6402 5.70574 8.98251C5.70574 7.3248 7.04958 5.98096 8.7073 5.98096ZM8.7073 7.48096C7.87801 7.48096 7.20574 8.15323 7.20574 8.98251C7.20574 9.8118 7.87801 10.4841 8.7073 10.4841C9.53658 10.4841 10.2088 9.8118 10.2088 8.98251C10.2088 8.15323 9.53658 7.48096 8.7073 7.48096Z' fill='white'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: calc(100% - 30px);
}

#courseNavigationPopupBody button.is-active-lesson h4 {
  color: #fff;
}

#courseNavigationPopupBody button.is-active-lesson span {
  right: 30px;
}

#courseNavigationPopupBody details[open] {
  position: relative;
  background-color: #f9f6ef;
}

[data-course-navigation-popup-head] {
  padding-left: 30px;
  padding-right: 16px;
}
/*
.courseNavigationPopupBody details[open]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  right: -30px;
  bottom: 0;
} */

@media (max-width: 520px) {
  .nav__menu-panel {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    padding-top: calc(46px + env(safe-area-inset-top));
  }

  .nav__session-card-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-layout--fixed-phone .nav__session-card-stats {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .nav__session-card-ring {
    min-height: 216px;
  }
}

@media (max-device-width: 375px) {
  .nav__toggle {
    width: 27px;
    height: 20px;
  }

  .header__bookmark svg {
    height: 24px;
  }

  .header__ai img {
    height: 24px;
  }

  .header__score span {
    font-size: 14px;
  }

  .header__score img {
    height: 24px;
  }

  .nav__menu-panel {
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav__session-card {
    padding: 14px;
  }

  .nav__session-card-actions {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .header__bookmark {
    flex-direction: column;
    order: 3;
  }

  .header__ai {
    flex-direction: column;
    order: 4;
  }
}

#app-container {
  /* display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; */

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);

  /* width: calc(var(--screen-w) * 1px);
  height: calc(var(--screen-h) * 1px);

  margin: 0 auto;
  transform: scale(var(--app-scale));
  transform-origin: top center; */

  width: min(100vw, var(--learner-layout-width));
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  display: grid;
  /* grid-template-rows: calc(var(--h-header) * var(--fit-scale)) minmax(0, 1fr) calc(var(--h-footer) * var(--fit-scale)); */
  grid-template-rows: var(--h-header) minmax(0, 1fr) calc(var(--h-footer) * var(--fit-scale));
  overflow: hidden;
}

@media (max-height: 500px) {
  :root {
    --h-header: 80px;
    --h-footer: 56px;
  }

  #app-container {
  }
}

@media (min-width: 768px) {
  #app-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягивается на весь body */
    width: 100%;

    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);

    /* transform: scale(var(--scale));
  transform-origin: top center; */

    transform: none;
    transform-origin: top center;
  }
}

#centralFrame {
  width: 100%;
  flex-grow: 1;
  /* overflow-y: hidden; */
  min-height: 0;
  display: block;
  position: relative;
  padding: calc(20px * var(--fit-scale)) 0 calc(40px * var(--fit-scale));
  min-height: 0;

  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

@media (max-height: 500px) {
  #centralFrame {
    overflow-y: scroll;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) {
  #centralFrame {
    padding-top: 40px;
    padding-bottom: 20px;
  }
}

@media (min-width: 1440px) {
  #centralFrame {
    padding-top: 60px;
    padding-bottom: 80px;
  }
}

#centralFrame img,
#centralFrame video,
#centralFrame audio {
  max-width: 100%;
  height: auto;
  max-height: clamp(200px, 30vh, 240px); /* Constrain media height */
  object-fit: contain;
  margin: 0 auto;
}

.learner-live-badges {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  padding: 0 14px;
  pointer-events: none;
  user-select: none;
}

.learner-live-coords-badge {
  display: inline-flex;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(21, 53, 45, 0.52);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.learner-live-carousel-badge {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  gap: 1px;
  min-height: 18px;
  padding: 2px 8px;
  margin: 0 6px;
  border: 1px solid rgba(21, 53, 45, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(136, 140, 146, 0.84);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
  white-space: normal;
  font-variant-numeric: tabular-nums;
  text-align: center;
  max-width: min(100%, 235px);
}

.learner-live-carousel-badge__line {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.learner-live-carousel-badge[data-mode='replay'] {
  color: rgba(136, 140, 146, 0.84);
  border-color: rgba(175, 123, 33, 0.18);
  background: rgba(255, 247, 232, 0.88);
}

#centralFrame.slide-resources-pending {
  cursor: progress;
}

#centralFrame.slide-resources-pending::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.01);
  pointer-events: auto;
}

/* @media (max-device-width: 375px) {
  #centralFrame img,
  #centralFrame video,
  #centralFrame audio {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }
} */
/*
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding-top: clamp(8px, 3.5vw, 40px);
  padding-bottom: clamp(8px, 1.5vw, 10px);
  flex-shrink: 0;
} */

.slide-controls__btn {
  display: block;
  padding: 0;
  background-color: transparent;
  border: none;
  outline: none;
  background-repeat: no-repeat;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background-color: var(--light-yellow);
  position: relative;
  transition: background-color 0.5s ease;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--main-yellow);
  user-select: none;
}

.slide-controls__btn--prev {
  border-radius: var(--radius);
  width: 80px;
  height: 45px;
  background-image: url('../assets/images/icons/prev.svg');
  background-position: center;
  background-size: 22px;
  box-shadow: 0 3px 0 var(--main-yellow);
}

.slide-controls__btn--next {
  border-radius: var(--radius);
  display: inline-flex;
  /* justify-content: flex-start; */
  justify-content: center;
  align-items: center;
  padding-right: 10px;
  /* width: 260px; */
  flex-grow: 1;
  height: 45px;
  /* padding-left: 22%; */
  background-color: var(--green-light);
  background-image: url('../assets/images/icons/next.svg');
  background-position-y: center;
  background-position-x: 90%;
  background-size: 22px;
  box-shadow: 0 3px 0 var(--main-green);
}

.slide-controls__btn--skip {
  border-radius: var(--radius);
  display: inline-flex;
  /* justify-content: flex-start; */
  justify-content: center;
  padding-right: 10px;
  align-items: center;
  /* width: 260px; */
  flex-grow: 1;
  height: 45px;
  /* padding-left: 78px; */
  background-image: url('../assets/images/icons/next.svg');
  background-position-y: center;
  background-position-x: 90%;
  background-size: 22px;
  box-shadow: 0 3px 0 var(--main-yellow);
}

#navSame {
  display: none;
}

@media (hover: hover) {
  .slide-controls__btn--next:hover {
    background-color: var(--main-green);
  }

  .slide-controls__btn--prev:hover,
  .slide-controls__btn--skip:hover {
    background-color: var(--main-yellow);
  }
}

@media (max-device-width: 375px) {
  .slide-controls__btn {
    font-size: 16px;
    height: 36px;
  }

  .slide-controls__btn--next {
    height: 36px;
  }

  .slide-controls__btn--skip {
    height: 36px;
  }

  :root {
    --h-footer: 76px;
  }
}

@media (min-width: 768px) {
  .slide-controls__btn {
    width: 260px;
    padding: 0;
    justify-content: center;
  }

  .slide-controls__btn--prev {
    position: relative;
    background-position-x: 10%;
  }

  .slide-controls__btn--prev::after {
    content: attr(aria-label);
    color: #fff;
  }

  .admin__preview .slide-controls__btn--prev {
    position: relative;
    background-position-x: center;
    width: 80px;
  }

  .admin__preview .slide-controls__btn--prev::after {
    display: none;
  }

  .slide-controls__btn--next,
  .slide-controls__btn--skip {
    flex-grow: 0;
  }

  .admin__preview .slide-controls__btn--next,
  .admin__preview .slide-controls__btn--skip {
    flex-grow: 1;
  }
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
}

.slide {
  width: 100%;
  height: 100%;
  /* max-height: 620px; */
  display: grid;
  /* grid-template-rows: 1fr 3fr; */
  min-height: 0;

  grid-template-rows: calc(var(--h-title) * var(--fit-scale)) minmax(0, 1fr);
  row-gap: calc(var(--gap-row) * var(--fit-scale));
}

.slide,
.slide * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.slide input:not([type]),
.slide input[type='text'],
.slide input[type='search'],
.slide input[type='email'],
.slide input[type='number'],
.slide input[type='password'],
.slide input[type='tel'],
.slide input[type='url'],
.slide textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.slide__title {
  /* padding-top: 25px;
  font-size: 22px; */
  color: #777;

  min-height: 0;
  height: 100%;
  margin: 0;
  /* padding: 0 clamp(12px, calc(20px * var(--fit-scale)), 20px); */
}

.slide__title:not(.rt-richtext) {
  text-align: center;
  font-size: clamp(14px, calc(24px * var(--fit-scale)), 24px);
  line-height: 1.15;
}

.slide__title--vertical-centered {
  grid-row: 1 / -1;
  margin: auto;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* @media (max-device-width: 375px) {
  .slide__title {
    font-size: 14px;
  }
} */

@media (min-width: 768px) {
  .slide__title {
    width: 100%;
    max-width: 867px;
    margin: 0 auto;
  }
}

.slide__compare {
  display: flex;
  justify-content: center;
  gap: calc(var(--gap-row) * var(--fit-scale));
  grid-row: 2 / 5;
}

.slide__compare:has(+ .slide__symbol-transcription) {
  grid-row: 2 / 4;
}

.slide__compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  width: calc(100% / 3);
  max-width: 110px;
  row-gap: calc(var(--gap-row) * var(--fit-scale));
}

.slide__compare-item .slide__symbol-transcription {
  margin-bottom: 10px;
  padding: 0;
}

.slide__compare-card {
  position: relative;
  display: grid;
  grid-template-rows: calc(var(--h-row) * var(--fit-scale) + var(--gap-row) * var(--fit-scale)) 1fr;
  width: 100%;
  min-height: calc(var(--h-row) * 2 * var(--fit-scale) - 20px);
  /* height: calc((var(--h-row) * var(--fit-scale)) * 2 + calc(var(--gap-row) * var(--fit-scale))); */
  /* margin-bottom: 33px; */
  background-color: var(--light-grey);
  border-radius: 8px;
  border-radius: calc(var(--radius) * var(--fit-scale));
  overflow: hidden;
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  color: var(--dark-green);
}

.slide__cards .slide__compare-card {
  margin-bottom: 0;
}

.slide__compare-card--symbol {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide__compare-card--symbol:not(.rt-richtext) {
  font-family: var(--second-family);
  font-size: 60px;
  font-size: clamp(32px, calc(60px * var(--fit-scale)), 60px);
  font-weight: 400;
  line-height: 2;
  line-height: calc(var(--h-row) * var(--fit-scale));
}

.slide__compare-symbol + [data-field]:not(.rt-richtext) {
  font-size: clamp(12px, calc(20px * var(--fit-scale)), 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px;
}

/* .slide__compare-card span {
  grid-row: 2 / 3;
  margin: auto;
} */

.slide__compare-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide__compare-symbol:not(.rt-richtext) {
  font-size: clamp(32px, calc(64px * var(--fit-scale)), 64px);
  font-family: var(--second-family);
  direction: rtl;
  font-weight: 400;
  text-align: center;
  line-height: calc(var(--h-row) * var(--fit-scale));
}

.slide--i-10 .slide__compare-card {
  direction: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  color: inherit;
}

.slide--i-10 .slide__content > [data-field='ar.v_1'] {
  transform: translateY(calc(-1 * (var(--h-row) + var(--gap-row)) * var(--fit-scale)));
}

.slide--i-10 .slide__symbol:not(.rt-richtext),
.slide--i-10 .slide__symbol--large:not(.rt-richtext),
.slide--i-10 .slide__compare-card--symbol:not(.rt-richtext),
.slide--i-10 .slide__compare-symbol:not(.rt-richtext),
.slide--i-10 .slide__compare-symbol + [data-field]:not(.rt-richtext) {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  color: inherit;
  direction: inherit;
}

.slide--i-10 .slide__compare-symbol + [data-field]:not(.rt-richtext) {
  padding-bottom: 0;
}

/* @media (max-device-width: 375px) {
  .slide__compare-item {
    width: 85px;
  }

  .slide__compare-card {
    width: 85px;
    height: 130px;
  }

  .slide__compare-card span {
    font-size: 16px;
  }

  .slide__compare-card-symbol {
    font-size: 44px;
  }

  .slide__compare-card-symbol span {
    font-size: 44px;
  }
} */

.play-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  width: clamp(48px, calc(64px * var(--fit-scale)), 64px);
  height: clamp(48px, calc(64px * var(--fit-scale)), 64px);
  padding: 0;
  background-color: #fff;
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  border-radius: 100%;
  border: none;
}

.play-btn.playing {
  box-shadow: none !important;
}

.play-btn.disabled svg path {
  fill: #e7e7e7 !important;
  pointer-events: none;
}

.slide__audio-btn {
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4) !important;
}

.slide__audio-btn svg {
  height: 100%;
  max-height: 50%;
  width: auto;
}

.slide__audio-btn--small {
  /* width: 48px !important;
  height: 48px !important; */
  width: clamp(32px, calc(48px * var(--fit-scale)), 48px);
  height: clamp(32px, calc(48px * var(--fit-scale)), 48px);
}

.slide__audio-btn--large {
  width: clamp(32px, calc(80px * var(--fit-scale)), 80px);
  height: clamp(32px, calc(80px * var(--fit-scale)), 80px);
}

.slide__audio-btn--center {
  margin: auto;
}

.slide__audio-btn--mt-0 {
  margin-top: 0;
}

/* @media (max-device-width: 375px) {
  .slide__audio-btn--small {
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4) !important;
  }

  .slide__audio-btn--small svg {
    width: 18px;
    height: 19px;
  }
} */

.slide__symbol {
  grid-row: 1 / 2;
  position: relative;
  z-index: 2;
}

.slide__symbol:not(.rt-richtext) {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 60px;
  font-size: clamp(36px, calc(60px * var(--fit-scale)), 60px);
  line-height: 1.33;
  line-height: calc(var(--h-row) * var(--fit-scale));
  text-align: center;
  color: #000;
  direction: rtl;
}

.exact-match {
  color: var(--main-green);
}

.quasi-match {
  color: #f29f05;
}

.no-match {
  color: #f83b3c;
}

.slide__symbol--small:not(.rt-richtext) {
  font-size: clamp(20px, calc(36px * var(--fit-scale)), 36px);
}

.slide__content > .slide__symbol {
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.slide__symbol-transcription {
  margin-top: auto;
  /* margin-bottom: 25px; */
}

.slide__symbol-transcription:not(.rt-richtext) {
  font-weight: 500;
  font-size: 24px;
  font-size: clamp(16px, calc(24px * var(--fit-scale)), 24px);
  text-align: center;
  color: var(--gray-transcriptions);
}

.slide__symbol-transcription .slide__audio-btn {
  margin-top: 5px;
}

.slide__symbol--large:not(.rt-richtext) {
  font-size: 80px;
  font-size: clamp(60px, calc(80px * var(--fit-scale)), 80px);
}

/* @media (max-device-width: 375px) {
  .slide__symbol-transcription {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .slide__symbol {
    font-size: 48px;
  }

  .slide__symbol--large {
    font-size: 60px;
  }
} */

.slide__content {
  --slide-content-rows-sum: 5;
  --slide-content-row-1-weight: 1;
  --slide-content-row-2-weight: 1;
  --slide-content-row-3-weight: 1;
  --slide-content-row-4-weight: 1;
  --slide-content-row-5-weight: 1;
  --slide-content-offset-y: 0px;
  min-height: 0;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  display: grid;
  /* grid-template-rows: 78px repeat(4, minmax(0, 1fr)); */
  /* grid-template-rows: repeat(5, calc(var(--h-row) * var(--fit-scale))); */
  grid-template-rows:
    minmax(
      calc((var(--h-row) * 5 * var(--fit-scale) * var(--slide-content-row-1-weight)) / var(--slide-content-rows-sum)),
      auto
    )
    calc((var(--h-row) * 5 * var(--fit-scale) * var(--slide-content-row-2-weight)) / var(--slide-content-rows-sum))
    calc((var(--h-row) * 5 * var(--fit-scale) * var(--slide-content-row-3-weight)) / var(--slide-content-rows-sum))
    calc((var(--h-row) * 5 * var(--fit-scale) * var(--slide-content-row-4-weight)) / var(--slide-content-rows-sum))
    calc((var(--h-row) * 5 * var(--fit-scale) * var(--slide-content-row-5-weight)) / var(--slide-content-rows-sum));

  /* row-gap: 3.5%; */
  /* row-gap: var(--gap); */
  row-gap: calc(var(--gap-row) * var(--fit-scale));
  transform: translateY(var(--slide-content-offset-y));
  /* overflow-y: auto;
  -webkit-overflow-scrolling: touch; */
}
/*
.slide--c4 .slide__content {
  grid-template-rows: repeat(5, calc(var(--h-row) * var(--fit-scale)));
} */

.slide__content .slide__title {
  margin: 0;
  padding: 0;
  grid-row: 1 / 3;
  color: inherit;
}

.slide__content .slide__title:not(.rt-richtext) {
  font-weight: 500;
  font-size: 30px;
  font-size: clamp(20px, calc(30px * var(--fit-scale)), 30px);
  text-align: center;
}

@media (max-width: 375px) {
  .slide__content .slide__title:not(.rt-richtext) {
    font-size: 24px;
  }
}

.slide__content:has(.slide__text-content) {
  display: flex;
  flex-direction: column;
}

/* @media (max-device-width: 375px) {
  .slide__content {
    display: grid;
    grid-template-rows: 66px repeat(4, auto);
    row-gap: 3.5%;
  }
} */

.slide__vertical-full-wrapper {
  grid-row: 3 / -1;
  display: grid;
  grid-template-rows: repeat(3, calc(var(--h-row) * var(--fit-scale)));
  row-gap: calc(var(--gap-row) * var(--fit-scale));
}

.slide__with-pic {
  grid-row: 2 / -1;
  display: grid;
  grid-template-rows: repeat(3, calc(var(--h-row) * var(--fit-scale)));
  row-gap: calc(var(--gap-row) * var(--fit-scale));
}

.slide__with-pic .slide__pic-with-icon {
  grid-row: 2 / 4;
}

.slide__with-pic .slide__pic-with-icon img {
  height: 100% !important;
  width: auto;
}

.slide__with-pic .slide__symbol-transcription {
  margin-bottom: 0;
}

.slide__with-pic .slide__audio-btn {
  grid-row: 4 / -1;
}

.slide__with-pic .slide__vertical-full-wrapper .slide__audio-btn {
  grid-row: 3 / -1;
}

.video-player {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-player__video {
  width: 100%;
  /* border-radius: 12px; */
}

.video-player__controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.video-player__play-btn {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  cursor: pointer;
  background-color: transparent;
}

.video-player__progress {
  -webkit-appearance: none;
  appearance: none;
  /* width: 100%; */
  flex-grow: 1;
  height: 6px;
  border-radius: 3px;
  background: #e5e5e5; /* серая линия фона */
  outline: none;
  overflow: hidden;
  cursor: pointer;
}

/* Зелёная заливка прогресса */
.video-player__progress::-webkit-slider-runnable-track {
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
}

.video-player__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0; /* убираем кружок */
  height: 4px;
  box-shadow: -1000px 0 0 1000px #07bfa5; /* заливка до ползунка */
  border: none;
}

/* Для Firefox */
.video-player__progress::-moz-range-track {
  height: 4cqh;
  background: #e5e5e5;
  border-radius: 2px;
}

.video-player__progress::-moz-range-progress {
  height: 4px;
  background: #07bfa5;
  border-radius: 2px;
}

.video-player__progress::-moz-range-thumb {
  width: 0;
  height: 4px;
  border: none;
}

/* @media (max-device-width: 375px) {
  .video-player__play-btn {
    width: 66px;
    height: 66px;
  }

  .video-player__play-btn svg {
    width: 100%;
    height: auto;
  }
} */

.slide__letters-grid {
  grid-row: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, calc(90px * var(--fit-scale)));
  grid-auto-rows: calc(var(--h-row) * 0.91 * var(--fit-scale));
  gap: 0;
  border: 1px solid var(--line);
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  align-self: start;
}

/* @media (max-width: 392px) {
  :root {
    --cell: clamp(40px, 18vmin, 80px);
  }
}

@media (max-device-width: 375px) {
  :root {
    --cell: clamp(52px, 17vmin, 90px);
  }
} */

.slide__letters-grid-btn {
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(28px, 8.5vmin, 40px);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--black);
  position: relative;
  isolation: isolate;

  /* display: flex;
  justify-content: center;
  align-items: center;
  width: 81px;
  height: 70px;
  margin-top: -1px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  text-align: center;
  color: #000;
  border: 1px solid var(--main-yellow);
  background-color: transparent; */
  /* margin-left: -1px; */
}

.slide__letters-grid-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: transparent;
  opacity: 0;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease;
  z-index: 0;
}

.slide__letters-grid-text {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* .slide__letters-grid-btn:nth-child(4n + 4) {
  border-right: none;
}

.slide__letters-grid-btn:nth-last-child(-n + 5) {
  border-bottom: none;
} */

.slide__letters-grid-btn.correct {
  color: #fff;
  transition: color 0.25s ease;
}

.slide__letters-grid-btn.wrong {
  color: #6f6f6f;
  transition: color 0.25s ease;
}

.slide__letters-grid-btn.correct::before {
  background-color: var(--main-green);
  opacity: 1;
}

.slide__letters-grid-btn.wrong::before {
  background-color: #ececec;
  opacity: 1;
}

.slide__input-wrapper {
  grid-row: 2 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-btn + .slide__input-wrapper {
  margin-top: 28px;
}

.slide__input {
  border: 1px solid #b6b6b6;
  border-radius: var(--radius);
  width: 100%;
  max-width: 296px;
  height: 58px;
  margin-bottom: 50px;
  background: #fff;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 26px;
  font-size: clamp(16px, calc(26px * var(--fit-scale)), 26px);
  text-align: center;
  color: #000;
  outline: none;
}

.slide__input:active,
.slide__input:focus {
  border-color: #5a5a5a;
}

.slide__input.wrong {
  border-color: var(--false-color);
}

.slide__input.correct {
  border-color: var(--green-light);
}

.slide__input + .slide__check-btn {
  max-width: 160px;
}

.slide__check-btn,
.v8-answer {
  width: 100%;
  height: calc(var(--h-row) * var(--fit-scale));
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  transition: background 0.3s;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: clamp(14px, calc(20px * var(--fit-scale)), 20px);
  line-height: 1.8;
  color: var(--black);
  border: 1px solid transparent;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.v8-answer {
  width: 100%;
  max-width: unset;
}

.v8-answer.correct {
  color: var(--green-light);
  border: 2px solid var(--green-light);
  box-shadow: none;
}

.v8-answer.wrong {
  color: var(--false-color);
  border: 2px solid var(--false-color);
}

.v8-letter.locked {
  display: none;
}

/* @media (max-device-width: 375px) {
  .slide__check-btn,
  .v8-answer {
    height: 60px;
  }

  .v8-answer {
    font-size: 17px;
  }
} */

.v8-game-area {
  grid-row: 1 / 4;
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 245px;
  border-radius: 8px;
  border-radius: calc(var(--radius) * var(--fit-scale));
  overflow: hidden;
  background-color: var(--light-grey);
}

.v8-letter {
  position: absolute;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 70px;
  line-height: 1;
  text-align: center;
  color: #000;
  transition: top 0.1s linear;
}

.v8-answers {
  grid-row: 4 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap-row) * var(--fit-scale));
  align-items: start;
  align-self: start;
}

.slide__var {
  margin: 0 auto;
}

.slide__var:not(.rt-richtext) {
  font-weight: 500;
  font-size: 54px;
  font-size: clamp(32px, calc(54px * var(--fit-scale)), 54px);
  line-height: 1.16;
  text-align: center;
  color: var(--black);
}

/* @media (max-device-width: 375px) {
  .slide__var {
    font-size: 36px;
  }
} */

.slide__answers-list {
  grid-row: 3 / 5;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, calc(var(--h-row) * var(--fit-scale)));
  /* column-gap: 10%;
  gap: var(--gap); */
  gap: calc(var(--gap-row) * var(--fit-scale));
  height: fit-content;
}

.slide__answers-list:has(li:nth-child(2)):not(:has(li:nth-child(4))) {
  display: grid;
  grid-template-columns: 1fr;
  grid-row: 2 / -1;
  grid-template-rows: repeat(3, calc(var(--h-row) * var(--fit-scale)));
  margin-top: auto;
}

.slide__answers-list:has(li:nth-child(2)):not(:has(li:nth-child(3))) {
  grid-template-columns: 1fr 1fr;
}

.slide__answers-list:has(li:nth-of-type(3)) .slide__answer-btn {
  height: 100%;
}

.slide__answers-list:has(li:nth-of-type(4)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, calc(var(--h-row) * var(--fit-scale)));
  grid-row: 3 / -1;
}

.slide__answers-list:has(li .slide__answer-btn--long) {
  grid-row: 2 / -1;
}

.slide__answers-list li {
  height: 100%;
}

.slide__answers-list--full {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  /* margin-top: auto; */
  margin: auto;
  gap: var(--gap);
  gap: calc(var(--gap-row) * var(--fit-scale));
  grid-row: 1 / -1;
}

.slide__symbol:has(+ .slide__answers-list--full) {
  grid-row: 1 / 3;
}

.slide__symbol + .slide__answers-list--full {
  grid-row: 3 / -1 !important;
}

.slide__symbol:has(.slide__audio-btn) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide__answers-list--vertical-centered {
  margin: auto;
}

.slide__answers-list--flex {
  display: flex;
  width: 100%;
}

.slide__answers-list {
  width: 100%;
}

.slide--a-5 .slide__answers-list {
  grid-row: 4 / 6;
}

.slide--a-1 .slide__answers-list--flex {
  justify-content: center;
  align-items: center;
}

.slide--a-1 .slide__answers-list--flex li {
  width: auto;
  flex: 0 1 33.3%;
}

.slide__answers-list--flex li {
  width: 33.3%;
}

.slide__answers-list--single-choice-centered {
  display: grid !important;
  grid-template-columns: minmax(0, min(50%, 420px));
  justify-content: center;
  align-content: center;
}

.slide__answers-list--single-choice-centered > * {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.slide__answer-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* height: 80px; */
  height: clamp(100%, calc(80px * var(--fit-scale)), 80px);
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  border: none;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  font-weight: 500;
  font-size: clamp(16px, 5vw, 22px);
  font-size: clamp(14px, calc(22px * var(--fit-scale)), 22px);
  line-height: 1.2;
  text-align: center;
  color: var(--black);
  font-family: inherit;
}

.slide__answer-btn:not(.correct):disabled:active {
  outline: 2px solid var(--false-color);
  box-shadow: none;
}

.slide__answer-btn--symbol {
  font-size: 40px;
  font-size: clamp(24px, calc(40px * var(--fit-scale)), 40px);
  line-height: 2;
  font-weight: 400;
  font-family: var(--second-family);
  direction: rtl;
  /* padding-bottom: 18px; */
}

.slide__answer-btn-text {
  display: block;
  width: 100%;
}

.slide__answer-btn--with-pic {
  height: 140px;
  padding: 0;
  font-size: 70px;
}

.slide__answer-btn--long {
  font-size: 36px;
  font-size: clamp(18px, calc(36px * var(--fit-scale)), 36px);
  font-weight: 400;
  line-height: 2.22;
}

/* @media (max-device-width: 375px) {
  .slide__answer-btn {
    height: 60px;
  }

  .slide__answer-btn--symbol {
    font-size: 40px;
    padding-bottom: 0;
  }

  .slide__answer-btn--with-pic {
    height: 108px;
    padding: 0;
    font-size: 60px;
  }
} */

.slide__answer-btn.wrong {
  outline: 2px solid var(--false-color);
  box-shadow: none;
}

.slide__answer-btn.correct {
  color: var(--main-green);
  outline: 2px solid var(--green-light);
  box-shadow: none;
}

.slide__recording {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: clamp(100%, calc(80px * var(--fit-scale)), 80px);
  max-height: 80px;
  padding: 5px 16px;
  background: var(--light-grey);
  border-radius: var(--radius);
}

.slide__symbol:has(+ .slide__recognize) {
  grid-row: 1 / 3;
}

.slide__recognize {
  grid-row: 3 / -1;
  display: flex;
  flex-direction: column;
  row-gap: calc(var(--gap-row) * var(--fit-scale));
  position: relative;
}

.slide__recognize .player {
  margin: auto;
}

.mic-btn,
.replay-btn {
  /* width: 48px;
  height: 48px; */
  width: clamp(32px, calc(60px * var(--fit-scale)), 48px);
  height: clamp(32px, calc(60px * var(--fit-scale)), 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background-color: #fff;
}

.mic-btn svg,
.replay-btn svg {
  max-height: 50%;
}

/* @media (max-device-width: 375px) {
  .mic-btn,
  .replay-btn {
    width: 36px;
    height: 36px;
  }

  .mic-btn svg,
  .replay-btn svg {
    width: auto;
    height: 20px;
  }
} */

.mic-btn,
.replay-btn {
  & svg path {
    transition: fill 0.5s ease;
  }
}

.mic-btn.recording {
  & svg path {
    fill: red !important;
  }
}

.mic-btn:disabled,
.replay-btn:disabled {
  & svg path {
    fill: #e7e7e7 !important;
  }
}

.btn--mic.recording {
  background-color: #ff4b4b;
}
.slide__record-info-text {
  margin-top: 14px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: var(--gray-transcriptions);
}

.slide__audio-text-animation:not(.rt-richtext) {
  /* position: relative; */
  direction: rtl;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 60px;
  font-size: clamp(20px, calc(60px * var(--fit-scale)), 60px);
  line-height: 2;
  text-align: center;
  color: #000;
}

/* @media (max-device-width: 375px) {
  .slide__audio-text-animation {
    font-size: 48px;
  }
} */

.slide__audio-text-animation:not(.rt-richtext) span {
  color: var(--main-green);
}

.slide__audio-text-animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  grid-row: 1 / 3;
  border-radius: var(--radius);
  padding-bottom: clamp(10px, calc(16px * var(--fit-scale)), 16px);
  min-height: calc(var(--h-row) * 2 * var(--fit-scale) + calc(var(--gap-row) * var(--fit-scale)));
}

.slide__audio-text-animation-container + .slide__symbol-transcription {
  grid-row: 3 / 4;
  align-self: end;
}

.slide__audio-text-animation + [data-field]:not(.rt-richtext) {
  font-weight: 500;
  font-size: clamp(16px, calc(20px * var(--fit-scale)), 20px);
}

.slide__symbol:has(+ .slide__audio-text-wrapper) {
  grid-row: 1 / 3;
}

.slide__audio-text-wrapper {
  grid-row: 3 / -1;
  display: grid;
  grid-template-rows: repeat(4, calc(var(--h-row) * var(--fit-scale)));
  row-gap: calc(var(--gap-row) * var(--fit-scale));
}

.slide__audio-text-wrapper .slide__audio-btn {
  grid-row: 4 / -1;
}

.slide__audio-text-wrapper .slide__symbol-transcription {
  margin-bottom: 0;
}

.progress {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress .bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #17a2b8, #20c997);
  transition: width 0.2s ease;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  height: 48px;
  gap: 2px;
}

.waveform__bar {
  width: 2px;
  height: 2px;
  border-radius: 2px;
  background-color: #b4b2ab;
  transition:
    height 0.15s ease,
    background-color 0.3s ease;
}

.waveform__bar.active {
  background-color: var(--main-green);
}

.slide__result {
  /* position: absolute;
  bottom: 0; */
}

.dragdrop {
  grid-row: 1 / -1;
  margin: auto;
  /* display: flex;
  justify-content: space-between; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap-row) * var(--fit-scale));
  width: 100%;
}

.dragdrop__col {
  display: grid;
  grid-template-rows: repeat(4, calc(var(--h-row) * var(--fit-scale)));
  row-gap: calc(var(--gap-row) * var(--fit-scale));
  /* width: 50%; */
}

.dragdrop__placeholder {
  height: 0 !important;
}

.dragdrop__col .dragdrop__item:nth-child(1) {
  grid-row: 1 / 2;
}
.dragdrop__col .dragdrop__item:nth-child(2) {
  grid-row: 2 / 3;
}
.dragdrop__col .dragdrop__item:nth-child(3) {
  grid-row: 3 / 4;
}
.dragdrop__col .dragdrop__item:nth-child(4) {
  grid-row: 4 / 5;
}

.dragdrop__item {
  width: 100%;
  height: calc(var(--h-row) * var(--fit-scale));
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  transition: background 0.3s;
  font-weight: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  direction: inherit;
  text-align: inherit;
  border: 1px solid transparent;

  touch-action: none;

  -webkit-touch-callout: none;
  user-select: none;
}

.dragdrop__item.active {
  border: 1px solid var(--main-yellow);
  box-shadow: 0 3px 14px 0 rgba(197, 176, 153, 0.81);
}

.dragdrop__item.wrong {
  border-color: var(--false-color);
}

.dragdrop__slot {
  position: relative;
  overflow: hidden;
  padding: 5px;
  border: 1px dashed var(--light-yellow);
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  width: 100%;
  height: calc(var(--h-row) * var(--fit-scale));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  user-select: none;
  transition: border-color 0.5s ease;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  color: inherit;
  direction: inherit;
}

.dragdrop__slot-label {
  display: block;
  width: 100%;
}

/* @media (max-device-width: 375px) {
  .dragdrop__item,
  .dragdrop__slot {
    height: 56px;
  }

  .dragdrop__item {
    font-size: 30px;
  }

  .dragdrop__col {
    grid-template-rows: repeat(3, 60px) max-content;
  }
} */

.dropzone.correct {
  overflow: hidden;
  border: 1px solid var(--green-light);
  outline: 2px solid var(--green-light);
  outline-offset: -1px;
  color: var(--green-light);
}

.dragdrop__slot .dragdrop__item {
  position: absolute;
  inset: 0;
  min-width: unset;
  min-height: unset;
  width: 100%;
  height: 100%;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  direction: inherit;
  text-align: inherit;
  margin: 0;
  color: inherit;
  border-radius: inherit;
  background-color: #fff;
  box-shadow: none;
  padding: 0;
}

.dragdrop__slot.correct {
  padding: 0;
  border: 1px solid var(--green-light);
  color: var(--main-green);
}

.dragdrop__slot.correct .dragdrop__slot-label {
  display: none;
}

@keyframes bounceBack {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-15px);
  }
  60% {
    transform: translateX(10px);
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.bounce-back {
  animation: bounceBack 0.4s ease;
}

.slide__pic-with-icon {
  grid-row: 2 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}

.slide__image {
  display: block;
  grid-row: 1 / 3;
  height: auto;
}

.slide--i-5 .slide__image {
  display: block;
  grid-row: 1 / -1;
  height: auto;
}

.slide__text-content {
  grid-row: 1 / -1;
  /* height: 100%;
  max-height: 54dvh; */
  overflow-y: scroll;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;

  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: calc(6px * var(--fit-scale));
  font-size: clamp(14px, calc(24px * var(--fit-scale)), 24px);
}

.slide__image + .slide__text-content {
  grid-row: 3 / -1;
  max-height: 200px;
}

.slide__image + .slide__text-content {
  max-height: 210px;
  overflow-y: scroll;
}

@media (max-width: 375px) {
  .slide__image {
    max-height: 150px;
  }

  .slide__image + .slide__text-content {
    max-height: 170px;
  }
}

.slide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  row-gap: calc(var(--gap-row) * var(--fit-scale));
  grid-row: 1 / -1;
  margin: auto;
  width: 100%;
}

.slide__list li {
  min-height: 108px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 19px;
  padding-right: 22px;
  font-size: 20px;
}

.slide__list:not(.slide__list--audio) {
  margin: 0;
  width: 100%;
  max-height: 50dvh;
  overflow-y: auto;
  grid-auto-rows: max-content;
  align-content: start;
  justify-items: stretch;
  row-gap: 12px;
}

.slide__list:not(.slide__list--audio) > li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: unset;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  justify-self: stretch;
  align-self: start;
  padding-top: 1lh;
  padding-bottom: 1lh;
}

.slide__list:not(.slide__list--audio) > li.rt-richtext {
  justify-self: stretch !important;
  margin-inline: 0 !important;
}

.slide__list li {
  background-color: var(--light-grey);
  border-radius: var(--radius);
  border-radius: calc(var(--radius) * var(--fit-scale));
}

.slide__list--audio {
  grid-row: 1 / -1;
}

.slide__list--audio .slide__list-item {
  display: grid;
  grid-template-columns: 1fr calc(var(--h-row) * var(--fit-scale));
  min-height: calc(var(--h-row) * var(--fit-scale));
  padding: 0;
}

.slide__word {
  font-weight: 500;
}

.slide__list-item .slide__word {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  text-align: center;
}

.slide__list-item .slide__symbol {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.slide__list-item .slide__media {
  grid-column: 2 / 3;
  grid-row: 1 / 3;

  display: flex;
  justify-content: center;
  align-items: center;
}

.slide__list--long li {
  /* display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 80px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight: 500;
  background-color: var(--light-grey);
  border-radius: var(--radius);
  border-radius: calc(var(--radius) * var(--fit-scale));
}

.slide__list--long .slide__symbol {
  text-align: center;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.slide__list--long .slide__word {
  text-align: center;
  grid-column: 1 / 3;
}

@media (max-device-width: 375px) {
  .slide__list--long li {
    min-height: 60px;
    min-height: clamp(60px, calc(80px * var(--fit-scale)), 80px);
  }
}

.slide__list--long .slide__media {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

/* .slide__symbol:has(+ .slide__audio-select-list) {
  grid-row: 1 / 3;
} */

.slide__audio-select-list {
  display: flex;
  flex-direction: column;
  row-gap: calc(var(--gap-row) * var(--fit-scale));
  grid-row: 3 / -1;
}

@media (min-width: 768px) {
  .slide__audio-select-list {
    grid-row: 2 / -1;
  }
}

.slide__audio-select-list-item {
  display: grid;
  grid-template-columns: 64px 140px;
  column-gap: 45px;
  justify-content: center;
  align-items: center;
}

.slide__select-btn {
  height: calc(var(--h-row) * var(--fit-scale));
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  border: 2px solid transparent;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  color: #000;
  transition: opacity 0.5s ease;
}

/* @media (max-device-width: 375px) {
  .slide__select-btn {
    height: 60px;
  }
} */

.slide__select-btn:disabled {
  opacity: 0.5;
}

.slide__audio-select-list-item.correct .slide__select-btn {
  border-color: var(--green-light);
  border-width: 2px;
  box-shadow: none;
}

.slide__audio-select-list-item.correct .slide__select-btn:disabled {
  opacity: 1;
}

.slide__audio-select-list-item.wrong .slide__select-btn {
  border-color: var(--false-color);
}

.login-container,
.register-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  height: 100%;
  max-width: 327px;
  max-height: 900px;
  margin: auto;
  overflow-y: scroll;

  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

#login-feedback {
  margin-top: 10px;
}

.login-container .logo {
  margin-bottom: 75px;
}

.register-container .logo {
  margin-bottom: 20px;
}

.login-container img,
.register-container img {
  max-width: 100%;
  height: auto;
}

.login-container h2,
.register-container h2 {
  margin: 0;
  margin-bottom: 40px;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.28571;
  letter-spacing: -0.02em;
  text-align: center;
  color: #343434;
}

.login-container p,
.register-container p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42857;
  text-align: center;
  color: #474747;
}

.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.reset-form {
  margin-top: auto;
  flex-grow: 1;
  padding-bottom: 80px;
}

.reset-form .input-group:first-of-type {
  margin-top: auto;
}

.reset-form .input-group:last-of-type {
  margin-bottom: auto;
}

.reset-form .register-button {
  margin-top: auto;
}

.register-form {
  padding-top: 50px;
}

.register-container h2 + p {
  margin: auto;
  text-align: center;
}

.reset-container h2 + p,
.otp-container h2 + p {
  margin-bottom: 0;
  margin-top: 0;
}

.login-form--forgot-password {
  flex-grow: 1;
  justify-content: center;
  padding-top: 40px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  position: relative;
}

.input-group label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.42857;
  color: #474747;
}

.input-group input {
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  width: 100%;
  height: 48px;
  padding: 5px 10px 10px 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: #474747;
}

.input-group input:not(:placeholder-shown):invalid {
  border-color: #ff5c3f;
}

.error-message {
  position: absolute;
  top: 100%;
  color: #ff5c3f;
  font-size: 14px;
  margin-top: 2px;
  display: none;
}

.password-requirements {
  /* position: absolute;
  top: calc(100% + 12px); */
  font-size: 14px;
  color: var(--gray-transcriptions);
  margin-top: 5px;
  padding-top: 10px;
  background-color: #fff;
  z-index: 2;
  width: 100%;
}
.password-requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  list-style: none;
}
.password-requirements li.met {
  color: var(--green-light);
}
.password-requirements li.not-met {
  color: var(--gray-transcriptions);
}

.input-group input::placeholder {
  font-size: 12px;

  line-height: 1.5;
  color: #a3a3a3;
}

.sign-up-with {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-bottom: 10px;
  padding-top: 40px;
}

.sign-up-with__link {
  width: 100%;
  min-height: 48px;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  background-color: #f5f6f7;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28571;
  color: #343434;
  border: none;
  cursor: pointer;
}

.is-not-apple-device .sign-up-with__link--apple {
  display: none;
}

.sign-up-with__link span {
  flex-grow: 1;
  text-align: center;
  padding-right: 25px;
}

.sign-up-with__alternative {
  display: flex;
  justify-content: center;
  position: relative;
  width: 216px;
  margin: 0 auto;
}

.sign-up-with__alternative::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 100%;
  height: 1px;
  background-color: #a3a3a3;
  z-index: -1;
}

.sign-up-with__alternative span {
  padding: 5px;
  background-color: #fff;
  max-width: max-content;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #a3a3a3;
}

.links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  width: 100%;
  padding-top: 15px;
}

.form-checkbox {
  font-size: 14px;
  line-height: 1.28571;
  color: #474747;
  display: flex;
  align-items: center;
}

.form-checkbox label {
  padding-left: 27px;
  position: relative;
  cursor: pointer;
}

.form-checkbox label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.25 0C1.45507 0 0 1.45507 0 3.25V14.75C0 16.5449 1.45507 18 3.25 18H14.75C16.5449 18 18 16.5449 18 14.75V3.25C18 1.45507 16.5449 0 14.75 0H3.25ZM1.5 3.25C1.5 2.2835 2.2835 1.5 3.25 1.5H14.75C15.7165 1.5 16.5 2.2835 16.5 3.25V14.75C16.5 15.7165 15.7165 16.5 14.75 16.5H3.25C2.2835 16.5 1.5 15.7165 1.5 14.75V3.25Z' fill='%23A3A3A3'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: contain;
}

.form-checkbox input:checked + label::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.25 0C1.45507 0 0 1.45507 0 3.25V14.75C0 16.5449 1.45507 18 3.25 18H14.75C16.5449 18 18 16.5449 18 14.75V3.25C18 1.45507 16.5449 0 14.75 0H3.25ZM1.5 3.25C1.5 2.2835 2.2835 1.5 3.25 1.5H14.75C15.7165 1.5 16.5 2.2835 16.5 3.25V14.75C16.5 15.7165 15.7165 16.5 14.75 16.5H3.25C2.2835 16.5 1.5 15.7165 1.5 14.75V3.25ZM14.28 6.28064C14.5731 5.98791 14.5734 5.51304 14.2806 5.21998C13.9879 4.92691 13.513 4.92664 13.22 5.21936L6.99658 11.4356L4.78084 9.21968C4.48795 8.92678 4.01308 8.92677 3.72018 9.21965C3.42727 9.51253 3.42726 9.98741 3.72014 10.2803L6.46591 13.0262C6.75868 13.319 7.23333 13.3192 7.52628 13.0266L14.28 6.28064Z' fill='%2300B98E' /%3E%3C/svg%3E");
}

.reset-password-link {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9em;
  color: var(--main-yellow);
  text-decoration: none;
}

.reset-password-link:disabled {
  color: #999999;
  text-decoration: none;
  cursor: not-allowed;
}

.policy-modal button {
  position: absolute;
  right: 0;
  top: 0;
  background-color: transparent;
  border: none;
}

.input-group input:focus {
  outline: 2px solid var(--main-green);
  outline-offset: -1px;
}

.register-link-container,
.login-link-container {
  width: 100%;
  max-width: 300px;
  margin: auto auto 0;
  padding-top: 45px;
  font-size: 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.28571;
  text-align: right;
  color: #474747;
}

.policy-text {
  max-width: 327px;
  margin: 0 auto;
  font-size: 14px;
  padding-top: 0;
  text-align: left;
}

.legal-links {
  padding-top: 15px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: #474747;
}

.legal-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.register-link-container a,
.login-link-container a,
.policy-text a,
.register-link-container button {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--main-green);
}

.login-button,
.register-button,
.verify-button {
  position: relative;
  width: 100%;
  margin-top: 25px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 218px;
  height: 40px;
  background: var(--green-light);
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #00937b;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:active,
.register-button:active,
.verify-button:active {
  background-color: #00937b;
}

.login-button:focus-visible,
.register-button:focus-visible,
.verify-button:focus-visible {
  outline: 2px solid #00937b;
  outline-offset: 3px;
  box-shadow: 0px 0px 0px 0px #00937b;
}

.register-button:disabled,
.login-button:disabled,
.verify-button:disabled {
  background: #9b9b9b;
  box-shadow: 0 4px 0 var(--gray-transcriptions);
  pointer-events: none;
}

.password-container {
  position: relative;
}

.password-actions {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.password-actions button {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.password-actions button:focus-visible {
  outline-color: #00937b;
}

.otp-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  flex-grow: 1;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  flex-grow: 1;
}

.otp-feedback {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.otp-digit {
  width: 100%;
  height: 70px;
  text-align: center;
  border: 1px solid #a3a3a3;
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 36px;

  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  color: #343434;
}

.otp-digit:focus::placeholder {
  color: var(--green-light);
}

.otp-digit:focus {
  border-color: var(--green-light);
  outline: none;
}

.otp-digit:invalid {
  color: #ff5c3f;
}

.otp-digit.filled {
  color: var(--green-light);
}

.verify-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.resend-link {
  background: none;
  border: none;
  color: var(--green-light);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

.resend-link:disabled {
  color: #999;
  cursor: not-allowed;
}

.dropzone-wrapper {
  display: flex;
  gap: 6px;
  gap: calc(6px * var(--fit-scale));
  margin-bottom: auto;
}

@media (max-height: 800px) {
  .login-container .logo {
    height: 60px;
    margin-bottom: 25px;
  }

  .register-link-container,
  .login-link-container {
    padding-top: 25px;
  }
}

.dropzone {
  border: 1px dashed var(--light-yellow);
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone.drop-target {
  border-color: #666;
}

.draggables-wrapper {
  display: flex;
  gap: 6px;
}

.draggable {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  border-radius: calc(var(--radius) * var(--fit-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  font-size: clamp(20px, calc(36px * var(--fit-scale)), 36px);
  text-align: center;
  color: #000;
  transition: box-shadow 0.2s;
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  z-index: 10;
}

@media (max-height: 500px) {
  .draggable {
    border-radius: 2px;
  }
}

.drag-letters-slide-3-col .draggable {
  font-size: 48px;
}

.draggable:active {
  cursor: grabbing;
  box-shadow: 0 3px 14px 0 rgba(197, 176, 153, 0.81);
  outline: 1px solid var(--main-yellow);
  z-index: 10;
}

.draggable.placed {
  cursor: default;
}

.drag-letters-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  grid-row: 3 / -1;
}

.drag-letters-slide-3-col .dropzone {
  width: 110px;
  height: 100px;
}

.drag-letters-container .dropzone {
  width: 66px;
  height: 66px;
  width: calc(66px * var(--fit-scale));
  height: calc(66px * var(--fit-scale));
  position: relative;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
}

.drag-letters-container .draggable {
  width: 64px;
  height: 64px;
  width: calc(66px * var(--fit-scale));
  height: calc(66px * var(--fit-scale));
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  position: relative;
}

/* @media (max-device-width: 375px) {
  .drag-letters-container .draggable {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 24px;
  }

  .drag-letters-container .dropzone {
    width: 46px;
    height: 46px;
  }
} */

.drag-letters-container .draggable.wrong {
  color: var(--gray-transcriptions);
  box-shadow: none;
}

.drag-letters-container .dropzone.wrong {
  border-color: var(--gray-transcriptions);
}

.drag-letters-slide-3-col .dropzone {
  width: 110px;
  height: 100px;
}

.drag-letters-slide-3-col .draggable {
  width: 109px;
  height: 98px;
}

.draggable,
.draggable-word,
.draggable-letter {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.dropzone {
  touch-action: none;
}

.slide__words {
  position: relative;
  width: 160px;
  height: 160px;
  width: calc(var(--h-row) * var(--fit-scale) * 2);
  height: calc(var(--h-row) * var(--fit-scale) * 2);
  margin: auto;
  grid-row: 1 / 3;
}
.slide__zones {
  display: grid;
  display: flex;
  justify-content: space-evenly;
  gap: var(--gap);
  grid-row: 3 / -1;
  align-items: flex-end;
}

.slide__zones .dropzone {
  width: 100%;
  height: 164px;
  width: calc(var(--h-row) * var(--fit-scale) * 2 + 4px);
  height: calc(var(--h-row) * var(--fit-scale) * 2 + 4px);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 22px;
  font-size: clamp(14px, calc(22px * var(--fit-scale)), 22px);
  text-align: center;
  color: var(--gray-transcriptions);
}

@media (min-width: 768px) {
  .slide__zones {
    align-items: center;
  }
}

.slide__zones .dropzone.correct .draggable-word {
  color: var(--main-green);
}

.slide__zones .dropzone.wrong {
  border: 1px solid var(--false-color);
}

.drag-letters-container .draggable.wrong {
  width: calc(64px * var(--fit-scale));
  height: calc(64px * var(--fit-scale));
}

.draggable-word {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 160px;

  width: calc(var(--h-row) * var(--fit-scale) * 2);
  height: calc(var(--h-row) * var(--fit-scale) * 2);
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  transition: border 0.5s ease;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  font-size: clamp(16px, calc(36px * var(--fit-scale)), 36px);
  text-align: center;
  color: #000;
}

/* @media (max-width: 375px) {
  .slide__words {
    width: 120px;
    height: 120px;
  }
  .draggable-word {
    width: 120px;
    height: 120px;
  }

  .slide__zones .dropzone {
    width: 124px;
    height: 124px;
    margin: 0 auto;
    font-size: 16px;
  }
} */

.draggable-word-small {
  font-size: 60px;
}

.slide__forms {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 17px;
  margin: auto 0;
  flex-grow: 2;
}

.slide--c8 .slide__word {
  /* display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row-reverse;
  gap: 17px; */
  margin: auto 0;
  flex-grow: 1;
  direction: rtl;
  text-align: center;
}

.slide--c8 .slide__word .dropzone {
  width: 76px;
  height: 76px;
  width: calc(76px * var(--fit-scale));
  height: calc(76px * var(--fit-scale));
  display: inline-flex;
  margin-bottom: calc(-22px * var(--fit-scale));
}

.slide__word-wrapper {
  flex-grow: 1;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row-reverse;
  gap: 17px;
  margin: auto 0;
  flex-grow: 1;
  grid-row: 3 / 4;
}

.word-letter {
  /* width: 76px;
  height: 76px;
  border: 1px solid var(--green-light); */
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  color: #000;
}

.draggable-letter {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  font-size: clamp(20px, calc(36px * var(--fit-scale)), 36px);
  text-align: center;
  color: #000;
  border-radius: 12px;
  border-radius: calc(12px * var(--fit-scale));
  width: 76px;
  height: 76px;
  width: calc(76px * var(--fit-scale));
  height: calc(76px * var(--fit-scale));
  line-height: calc(76px * var(--fit-scale));
  box-shadow: 0 3px 12px 0 rgba(197, 176, 153, 0.4);
  background: #fff;
}

.slide--c8 .slide__word .dropzone.correct {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
}

.draggable-letter.correct {
  background-color: transparent;
  box-shadow: none;
}

.slide__answers {
  grid-row: 2 / 5;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 70px;
  text-align: center;
  color: #000;
}

.slide__word-help-text {
  grid-row: 5 / 6;
  text-align: center;
  font-size: 14px;
  text-align: center;
  color: var(--gray-transcriptions);
}

.slide__answers span {
  cursor: pointer;
  transition: color 0.5s ease;
}

.slide__answers .correct {
  color: var(--green-light);
}

.slide__answers .wrong {
  color: var(--false-color);
}

.lesson-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

@media (max-height: 500px) {
  .lesson-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .lesson-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 300px;
    align-self: flex-end;
  }
}

@media (min-width: 1024px) {
  .lesson-progress {
    width: 526px;
  }
}

/* Lesson info badges */
.lesson-info {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--main-green);
  flex: 0 0 auto;
}

.module-badge,
.lesson-badge {
  font-size: 10px;
  color: var(--main-green);
  white-space: nowrap;
  text-transform: uppercase;
}

.lesson-info-separator {
  font-size: 10px;
  color: var(--main-green);
  line-height: 1;
}

/* Progress bar */
.progress-container {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f6f1e4;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--main-green);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-summary {
  flex: 0 0 auto;
}

.progress-text {
  font-size: 10px;
  color: #666;
  min-width: 40px;
  text-align: right;
}

@media (min-width: 768px) {
  .module-badge,
  .lesson-badge,
  .lesson-info-separator,
  .progress-text {
    font-size: 14px;
  }

  .lesson-progress {
    margin: 0;
    margin-bottom: 7px;
  }
}

.svg-wrapper {
  width: 100%;
  height: 100%;
  grid-row: 1 / -1;
  margin: auto;
  background: #fff;
  padding: 20px;
  touch-action: none;
  user-select: none;
  display: flex;
  justify-content: center;
}

.svg-wrapper svg {
  opacity: 0;
  max-width: 100%;
  height: auto;
  margin: auto;
  transform: scale(1.2);
}

.ql-size-large {
  font-size: 1.5em;
}

.ql-size-huge {
  font-size: 2.5em;
}

.ql-size-small {
  font-size: 0.75em;
}

.ql-font-roboto {
  font-family: 'Roboto', sans-serif;
}

.ql-font-noto-sans-arabic {
  font-family: 'Noto Sans Arabic', sans-serif;
}

.app-layout--fixed-phone {
  --fit-scale: 1;
  --app-scale: 1;
  --app-entry-scale-boost: 1;
  --app-stage-width: 430px;
  --app-stage-height: 900px;
  --cell: 90px;
  --gap: 18px;
  --h-header: 90px;
  --h-footer: 85px;
  --h-title: 110px;
  --h-row: 80px;
  --gap-row: 16px;
  --shell-edge-padding: 22px;
  --shell-stack-gap: clamp(8px, calc(12px * var(--fit-scale)), 12px);
  --shell-control-gap: clamp(8px, calc(12px * var(--fit-scale)), 12px);
  --shell-control-height: clamp(32px, calc(45px * var(--fit-scale)), 45px);
  --shell-control-font-size: clamp(14px, calc(20px * var(--fit-scale)), 20px);
  --shell-control-icon-size: clamp(16px, calc(22px * var(--fit-scale)), 22px);
  --shell-control-shadow: clamp(2px, calc(3px * var(--fit-scale)), 3px);
  --shell-progress-margin-top: clamp(8px, calc(20px * var(--fit-scale)), 20px);
  --shell-score-font-size: clamp(12px, calc(17px * var(--fit-scale)), 17px);
  --shell-badge-font-size: clamp(10px, calc(12px * var(--fit-scale)), 12px);
  --shell-toggle-width: clamp(27px, calc(38px * var(--fit-scale)), 38px);
  --shell-toggle-height: clamp(20px, calc(28px * var(--fit-scale)), 28px);
  --shell-icon-height: clamp(24px, calc(29px * var(--fit-scale)), 29px);
  --shell-footer-padding-bottom: clamp(10px, calc(40px * var(--fit-scale)), 40px);
  --shell-stage-media-max-height: 240px;
  --shell-stage-image-text-max-height: 210px;
  --shell-stage-list-max-height: calc(var(--app-stage-height) * 0.5);
  --shell-stage-letter-grid-font-size: calc(var(--app-stage-width) * 0.085);
  --shell-text-wrap-width: 349px;
}

@media (max-width: 767px) {
  .app-layout--fixed-phone {
    --h-footer: calc(var(--shell-control-height) + var(--shell-footer-padding-bottom));
    --shell-footer-padding-bottom: 0px;
  }

  .app-layout--fixed-phone .slide-controls {
    transform: translateY(-20px);
  }
}

body.app-layout--fixed-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

@media (max-width: 767px) and (pointer: coarse) {
  body.app-layout--fixed-phone.app-shell--entry {
    align-items: flex-start;
    overflow: hidden;
    overscroll-behavior: none;
  }
}

@media (max-width: 520px) and (pointer: coarse) {
  .app-shell--entry .nav__menu-panel {
    padding-top: 44px;
  }
}

body.app-layout--fixed-phone.app-layout--keyboard-open {
  align-items: flex-start;
}

body.app-layout--fixed-phone #appStageWrap {
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  width: calc(var(--app-stage-width) * var(--app-scale));
  height: calc(var(--app-stage-height) * var(--app-scale));
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior: none;
}

body[data-app-shell] #app-container {
  opacity: 1;
  transition: opacity 0.08s ease;
}

html.app-bootstrap-pending body[data-app-shell] #app-container,
html.app-entry-data-pending body[data-app-shell='entry'] #app-container,
html.app-stage-transitioning body[data-app-shell] #app-container {
  opacity: 0;
  pointer-events: none;
}

.app-bootstrap-shell {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(24px, calc(36px * var(--fit-scale)), 36px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 176, 68, 0.24), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(0, 185, 142, 0.18), transparent 28%),
    linear-gradient(180deg, #fff9ef 0%, #ffffff 54%, #f4fbf8 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

html.app-bootstrap-pending .app-bootstrap-shell,
html.app-entry-data-pending .app-bootstrap-shell,
html.app-stage-transitioning .app-bootstrap-shell {
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 248, 248, 0.98) 100%);
}

html.app-stage-transitioning .app-bootstrap-shell::after {
  content: none;
  position: absolute;
  left: 50%;
  bottom: clamp(22px, calc(28px * var(--fit-scale)), 28px);
  width: min(148px, 38%);
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

html.app-stage-transitioning .app-bootstrap-shell::before {
  content: none;
  position: absolute;
  left: 50%;
  bottom: clamp(22px, calc(28px * var(--fit-scale)), 28px);
  width: min(148px, 38%);
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
  opacity: 0.45;
  animation: app-stage-transition-bar 0.9s ease-in-out infinite;
}

html.app-bootstrap-pending .app-bootstrap-shell__panel,
html.app-entry-data-pending .app-bootstrap-shell__panel,
html.app-stage-transitioning .app-bootstrap-shell__panel {
  display: none;
}

.app-bootstrap-shell__panel {
  width: min(100%, 302px);
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 28px rgba(25, 46, 39, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.app-bootstrap-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 60, 55, 0.74);
}

.app-bootstrap-shell__eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--light-yellow), var(--main-green));
  box-shadow: 0 0 0 6px rgba(0, 185, 142, 0.08);
}

.app-bootstrap-shell__title {
  color: #17352f;
  font-size: clamp(24px, calc(28px * var(--fit-scale)), 28px);
  font-weight: 500;
  line-height: 1.06;
}

.app-bootstrap-shell__subtitle {
  color: rgba(35, 54, 50, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.app-bootstrap-shell__title,
.app-bootstrap-shell__subtitle,
.app-bootstrap-shell__eyebrow,
.app-bootstrap-shell__meter,
.app-bootstrap-shell__chips {
  display: none !important;
}

.app-bootstrap-shell__meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 147, 123, 0.12);
}

.app-bootstrap-shell__meter::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -42%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 176, 68, 0.92), rgba(0, 185, 142, 0.96));
  box-shadow: 0 0 18px rgba(0, 185, 142, 0.22);
  animation: app-bootstrap-shell-meter 1.2s ease-in-out infinite;
}

.app-bootstrap-shell__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-bootstrap-shell__chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.92);
  color: rgba(35, 54, 50, 0.78);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

html.app-bootstrap-pending .app-bootstrap-shell,
html.app-entry-data-pending .app-bootstrap-shell,
html.app-stage-transitioning .app-bootstrap-shell {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@keyframes app-bootstrap-shell-meter {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(340%);
  }
}

@keyframes app-stage-transition-bar {
  0% {
    clip-path: inset(0 100% 0 0 round 999px);
  }

  50% {
    clip-path: inset(0 22% 0 0 round 999px);
  }

  100% {
    clip-path: inset(0 0 0 78% round 999px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-bootstrap-shell,
  .app-bootstrap-shell__meter::after,
  html.app-stage-transitioning .app-bootstrap-shell::before {
    transition: none;
    animation: none;
  }

  .app-bootstrap-shell__meter::after {
    width: 100%;
    inset: 0;
    transform: none;
  }
}

body.app-layout--fixed-phone #app-container {
  width: var(--app-stage-width);
  height: var(--app-stage-height);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: var(--h-header) minmax(0, 1fr) var(--h-footer);
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transform: scale(var(--app-scale));
  transform-origin: top left;
}

body.app-layout--fixed-phone #appBuildBadge {
  display: none !important;
}

body.app-layout--fixed-phone.app-shell--entry #app-container {
  display: block;
  grid-template-rows: none;
  transform: scale(calc(var(--app-scale) * var(--app-entry-scale-boost)));
}

body.app-layout--fixed-phone.app-shell--entry #appStageWrap {
  width: calc(var(--app-stage-width) * var(--app-scale) * var(--app-entry-scale-boost));
  height: calc(var(--app-stage-height) * var(--app-scale) * var(--app-entry-scale-boost));
}

@media (min-width: 768px) {
  body.app-layout--fixed-phone {
    background-color: rgb(44, 76, 76);
  }

  body.app-layout--fixed-phone #appStageWrap {
    border-radius: calc(40px * var(--app-scale));
    box-shadow: 0 calc(18px * var(--app-scale)) calc(40px * var(--app-scale)) rgba(25, 46, 39, 0.08);
  }

  body.app-layout--fixed-phone #app-container {
    border-radius: 40px;
  }

  body.app-layout--fixed-phone #appBuildBadge {
    display: block !important;
  }

  .app-layout--fixed-phone .module-badge,
  .app-layout--fixed-phone .lesson-badge {
    display: inline;
  }
}

.app-layout--fixed-phone .header {
  max-width: var(--app-stage-width);
  margin: 0 auto;
  display: block;
  padding-top: clamp(12px, calc(16px * var(--fit-scale)), 16px);
  padding-left: 0;
  padding-right: 0;
  padding-bottom: clamp(8px, calc(10px * var(--fit-scale)), 10px);
}

.app-layout--fixed-phone .footer {
  max-width: var(--app-stage-width);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.app-layout--fixed-phone .header__logo {
  display: none;
}

.app-layout--fixed-phone .header__nav {
  width: 100%;
  box-sizing: border-box;
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  padding-left: var(--shell-edge-padding);
  padding-right: var(--shell-edge-padding);
  flex-direction: row;
  gap: var(--shell-stack-gap);
}

.header__ai a {
  filter: grayscale(1);
  pointer-events: none;
}

.header__bookmark a[aria-disabled='true'] {
  filter: grayscale(1);
  pointer-events: none;
}

.header__bookmark a[aria-disabled='false'] {
  filter: none;
  pointer-events: auto;
}

.app-layout--fixed-phone .header__score,
.app-layout--fixed-phone .header__bookmark,
.app-layout--fixed-phone .header__ai,
.app-layout--fixed-phone .nav__toggle,
.app-layout--fixed-phone .lesson-info {
  order: 0;
}

.app-layout--fixed-phone .header__score,
.app-layout--fixed-phone .header__bookmark,
.app-layout--fixed-phone .header__ai {
  flex-direction: row;
}

.app-layout--fixed-phone .header__score {
  gap: clamp(4px, calc(5px * var(--fit-scale)), 5px);
}

.app-layout--fixed-phone .header__score span {
  font-size: var(--shell-score-font-size);
  min-height: clamp(22px, calc(28px * var(--fit-scale)), 28px);
  height: auto;
  padding-left: clamp(4px, calc(5px * var(--fit-scale)), 5px);
  padding-right: clamp(4px, calc(5px * var(--fit-scale)), 5px);
}

.app-layout--fixed-phone .header__score img,
.app-layout--fixed-phone .header__bookmark svg,
.app-layout--fixed-phone .header__ai img {
  height: var(--shell-icon-height);
  width: auto;
}

.app-layout--fixed-phone .nav__toggle {
  width: var(--shell-toggle-width);
  height: var(--shell-toggle-height);
}

.app-layout--fixed-phone #centralFrame {
  padding: calc(20px * var(--fit-scale)) 0 calc(40px * var(--fit-scale));
  overflow: hidden;
}

.app-layout--fixed-phone .learner-live-badges {
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  align-items: flex-end;
  width: calc(100% - (var(--shell-edge-padding) * 2));
  max-width: calc(100% - (var(--shell-edge-padding) * 2));
  padding: 0 calc(8px * var(--fit-scale));
  gap: 6px;
}

.app-layout--fixed-phone .learner-live-coords-badge {
  min-height: auto;
  font-size: clamp(8px, calc(9px * var(--fit-scale)), 9px);
  margin-bottom: calc(6px * var(--fit-scale));
}

.app-layout--fixed-phone .learner-live-carousel-badge {
  min-height: auto;
  font-size: clamp(9.6px, calc(11px * var(--fit-scale)), 11px);
  padding: calc(2px * var(--fit-scale)) calc(8px * var(--fit-scale));
}

.app-layout--fixed-phone .slide {
  padding-left: var(--shell-edge-padding);
  padding-right: var(--shell-edge-padding);
}

.app-layout--fixed-phone .slide__title {
  width: auto;
  max-width: none;
  margin: 0;
}

.app-layout--fixed-phone .slide__title,
.app-layout--fixed-phone .slide__text-content {
  width: min(100%, var(--shell-text-wrap-width));
  max-width: var(--shell-text-wrap-width);
  margin-left: auto;
  margin-right: auto;
}

.app-layout--fixed-phone .slide-controls {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-left: var(--shell-edge-padding);
  padding-right: var(--shell-edge-padding);
  gap: var(--shell-control-gap);
  padding-bottom: var(--shell-footer-padding-bottom);
}

.app-layout--fixed-phone .slide-controls__btn {
  font-size: var(--shell-control-font-size);
  height: var(--shell-control-height);
  justify-content: center;
  box-shadow: 0 var(--shell-control-shadow) 0 var(--main-yellow);
}

.app-layout--fixed-phone .slide-controls__btn--prev {
  width: auto;
  flex: 0 0 clamp(56px, 20.4%, 80px);
  min-width: 0;
  background-position: center;
  background-size: var(--shell-control-icon-size);
  box-shadow: 0 var(--shell-control-shadow) 0 var(--main-yellow);
}

.app-layout--fixed-phone .slide-controls__btn--next,
.app-layout--fixed-phone .slide-controls__btn--skip {
  flex: 1 1 0;
  min-width: 0;
  padding-left: var(--shell-edge-padding);
  padding-right: calc(var(--shell-control-icon-size) + var(--shell-edge-padding));
  background-size: var(--shell-control-icon-size);
  background-position-x: calc(100% - var(--shell-edge-padding));
}

.app-layout--fixed-phone .slide-controls__btn--next {
  box-shadow: 0 var(--shell-control-shadow) 0 var(--main-green);
}

.app-layout--fixed-phone .slide-controls__btn--prev::after {
  content: none;
}

.app-layout--fixed-phone .lesson-progress {
  display: flex;
  gap: var(--shell-stack-gap);
  margin-top: var(--shell-progress-margin-top);
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--shell-edge-padding);
  padding-right: var(--shell-edge-padding);
}

.app-layout--fixed-phone .progress-container {
  gap: clamp(6px, calc(8px * var(--fit-scale)), 8px);
}

.app-layout--fixed-phone .progress-bar {
  height: clamp(4px, calc(6px * var(--fit-scale)), 6px);
}

.app-layout--fixed-phone .progress-text,
.app-layout--fixed-phone .module-badge,
.app-layout--fixed-phone .lesson-badge,
.app-layout--fixed-phone .lesson-info-separator {
  font-size: var(--shell-badge-font-size);
}

.app-layout--fixed-phone .progress-text {
  min-width: clamp(44px, calc(58px * var(--fit-scale)), 58px);
}

.app-layout--fixed-phone .slide__audio-select-list {
  grid-row: auto;
}

.app-layout--fixed-phone .slide__zones {
  align-items: stretch;
}

.app-layout--fixed-phone #centralFrame img,
.app-layout--fixed-phone #centralFrame video,
.app-layout--fixed-phone #centralFrame audio,
.app-layout--fixed-phone .slide__image {
  max-height: var(--shell-stage-media-max-height);
}

.app-layout--fixed-phone #centralFrame .slide--i-5 .slide__image,
.app-layout--fixed-phone .slide--i-5 .slide__image {
  max-height: 90%;
}

.app-layout--fixed-phone .slide__letters-grid-btn {
  font-size: var(--shell-stage-letter-grid-font-size);
}

.app-layout--fixed-phone .slide__image + .slide__text-content {
  max-height: var(--shell-stage-image-text-max-height);
}

.app-layout--fixed-phone .slide__list:not(.slide__list--audio) {
  max-height: var(--shell-stage-list-max-height);
}

.app-layout--fixed-phone .slide__list--long li {
  min-height: 80px;
}

.app-layout--fixed-phone .lesson-progress {
  align-self: auto;
}

/* Shared Quill content rendering for saved HTML outside the editor UI. */

.rt-richtext {
  --fit-scale: 1;
  color: var(--rt-color, inherit);
  direction: var(--rt-direction, inherit);
  font-family: var(--rt-font-family, inherit);
  font-size: var(--rt-font-size, inherit);
  font-weight: var(--rt-font-weight, inherit);
  justify-self: var(--rt-justify-self, auto);
  letter-spacing: var(--rt-letter-spacing, inherit);
  line-height: var(--rt-line-height, inherit);
  margin-inline: var(--rt-margin-inline, 0);
  text-align: var(--rt-text-align, inherit);
}

:where(.rt-preset-title) {
  --rt-line-height: 1.15;
}

:where(.rt-preset-note) {
  --rt-note-border-color: var(--rt-color-token-accent, currentColor);
}

:where(.quill-content, .ql-editor) :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  margin: 0;
  padding: 0;
  color: inherit;
  direction: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
}

:where(.quill-content, .ql-editor) :is(ol, ul) {
  padding-inline-start: 1.5em;
}

:where(.quill-content, .ql-editor) li {
  margin: 0;
}

:where(.quill-content, .ql-editor) li[data-rt-list-kind='checked']::marker {
  content: '[x] ';
}

:where(.quill-content, .ql-editor) li[data-rt-list-kind='unchecked']::marker {
  content: '[ ] ';
}

/* Saved Quill blocks should keep tight editor-like spacing inside actual rich-text wrappers. */
:where(.slide [data-field]:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)))
  > :is(p, ol, ul, pre, blockquote) {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
}

:where(.slide [data-field]:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)))
  > :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
}

.slide__title:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)) {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  justify-self: center;
}

.slide__content .slide__title:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)) {
  margin: 0 auto;
}

.slide__content .slide__title.rt-richtext {
  color: var(--rt-color, inherit);
  direction: var(--rt-direction, inherit);
  font-family: var(--rt-font-family, inherit);
  font-size: var(--rt-font-size, inherit);
  font-weight: var(--rt-font-weight, inherit);
  letter-spacing: var(--rt-letter-spacing, inherit);
  line-height: var(--rt-line-height, inherit);
  text-align: var(--rt-text-align, inherit);
}

:where(
    .slide__title:not(.rt-richtext):not(.rt-richtext--role-title):has(
        > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)
      )
  )
  > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  text-align: start;
}

:where(
    .slide__title.rt-richtext--role-title[data-field^='ar.']:has(
        > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)
      )
  )
  > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  direction: rtl;
}

:where(
    .slide__title:not(.rt-richtext):not(.rt-richtext--role-title)[data-field^='ar.']:has(
        > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)
      )
  )
  > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  direction: rtl;
  text-align: start;
}

:where(.slide__symbol:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6)))
  > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  font-family: 'Roboto', var(--second-family), sans-serif;
  color: inherit;
  direction: initial;
}

.slide--pr1
  .slide__phrase.rt-richtext:has(> :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6))
  > :is(p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  color: inherit;
  direction: inherit;
  text-align: inherit;
}

.slide--pr1 .slide__phrase :is(.exact-match, .quasi-match, .no-match) {
  -webkit-text-fill-color: currentColor;
}

:where(.quill-content, .ql-editor) .rt-inline-term {
  font-weight: var(--rt-term-font-weight, 700);
  letter-spacing: var(--rt-term-letter-spacing, 0.02em);
}

:where(.quill-content, .ql-editor) .rt-weight-normal {
  font-weight: 400;
}

:where(.quill-content, .ql-editor) .rt-weight-semibold {
  font-weight: 500;
}

:where(.quill-content, .ql-editor) .rt-weight-bold {
  font-weight: 700;
}

:where(.quill-content, .ql-editor) .rt-tone-accent {
  color: var(--rt-color-token-accent, currentColor);
}

:where(.quill-content, .ql-editor) .rt-block-note {
  border-inline-start: 0.22em solid var(--rt-note-border-color, currentColor);
  color: var(--rt-note-color, inherit);
  display: block;
  padding-inline-start: 0.8em;
}
