/* LTL Платформа — лаконичный нейтральный стиль. Цвет акцента меняется в настройках. */
.ltl, .ltl-math { --ltl-accent: #2457a6; --ltl-line: #e2e6ec; --ltl-soft: #f5f7fa; --ltl-radius: 10px; }
.ltl *, .ltl *::before, .ltl *::after { box-sizing: border-box; }
.ltl .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Кнопки */
.ltl .ltl-btn, .ltl-form button.ltl-btn {
  display: inline-block; padding: .65em 1.2em; border: 1px solid var(--ltl-accent); border-radius: 8px;
  background: var(--ltl-accent); color: #fff; font: inherit; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer; transition: filter .15s;
}
.ltl .ltl-btn:hover { filter: brightness(1.1); color: #fff; }
.ltl .ltl-btn--ghost { background: transparent; color: var(--ltl-accent); }
.ltl .ltl-btn--ghost:hover { background: var(--ltl-soft); color: var(--ltl-accent); filter: none; }
.ltl .ltl-btn--small { padding: .45em .9em; font-size: .9em; }
.ltl .ltl-link-btn { background: none; border: 0; padding: 0; color: var(--ltl-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Фильтры библиотеки */
.ltl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 1.5em; }
.ltl-filter select { padding: .55em .8em; border: 1px solid var(--ltl-line); border-radius: 8px; background: #fff; font: inherit; min-width: 12em; }
.ltl-reset { color: #6b7280; text-decoration: underline; font-size: .95em; }

/* Плитки */
.ltl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-bottom: 1.5em; }
.ltl-card { display: flex; flex-direction: column; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.ltl-card:hover { box-shadow: 0 6px 20px rgba(20, 30, 50, .08); transform: translateY(-2px); }
.ltl-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ltl-soft); overflow: hidden; }
.ltl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltl-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; font-weight: 700; color: var(--ltl-accent); opacity: .5; }
.ltl-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.ltl-card__title { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.ltl-card__title a { color: inherit; text-decoration: none; }
.ltl-card__title a:hover { color: var(--ltl-accent); }
.ltl-card__text { margin: 0; color: #4b5563; font-size: .95em; }
.ltl-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; color: #6b7280; font-size: .9em; }
.ltl-card__progress-text { font-size: .85em; color: #6b7280; }
.ltl-card .ltl-btn { align-self: flex-start; margin-top: 4px; }

.ltl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ltl-chip { padding: 2px 9px; border-radius: 999px; background: var(--ltl-soft); color: #374151; font-size: .78rem; line-height: 1.6; }
.ltl-chip--subject { background: color-mix(in srgb, var(--ltl-accent) 12%, #fff); color: var(--ltl-accent); font-weight: 600; }
.ltl-badge { padding: 2px 10px; border-radius: 6px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.ltl-badge--free { background: #e8f6ec; color: #1d7a3a; }
.ltl-badge--paid { background: #fff3e0; color: #9a5b00; }

.ltl-progress { height: 6px; border-radius: 999px; background: var(--ltl-line); overflow: hidden; }
.ltl-progress span { display: block; height: 100%; background: var(--ltl-accent); border-radius: 999px; }
.ltl-empty { color: #6b7280; }
.ltl-pagination .page-numbers { display: inline-block; padding: .35em .75em; margin-right: 4px; border: 1px solid var(--ltl-line); border-radius: 8px; text-decoration: none; }
.ltl-pagination .page-numbers.current { background: var(--ltl-accent); border-color: var(--ltl-accent); color: #fff; }
.ltl-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }

/* Страница курса */
.ltl-course-top { margin: 0 0 1.5em; padding: 18px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: var(--ltl-soft); display: flex; flex-direction: column; gap: 10px; }
.ltl-course-top__row { display: flex; gap: 12px; align-items: center; color: #4b5563; }
.ltl-course-top__hint { margin: 0; }
.ltl-course-top p { margin: 0; }

.ltl-outline { margin-top: 2em; }
.ltl-outline__title { font-size: 1.3rem; margin: 0 0 .6em; }
.ltl-section { margin-bottom: 1.2em; }
.ltl-section__title { font-size: 1.05rem; margin: 0 0 .4em; }
.ltl-lessons { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); overflow: hidden; counter-reset: lesson; }
.ltl-lesson-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--ltl-line); counter-increment: lesson; }
.ltl-lesson-item:first-child { border-top: 0; }
.ltl-lesson-item::before { content: counter(lesson) "."; min-width: 1.6em; color: #9ca3af; font-size: .9em; }
.ltl-lesson-item a { color: inherit; text-decoration: none; flex: 1; }
.ltl-lesson-item a:hover { color: var(--ltl-accent); }
.ltl-lesson-item__mark { order: 3; min-width: 1.4em; text-align: center; color: #1d7a3a; font-weight: 700; }
.ltl-lesson-item.is-done a { color: #6b7280; }
.ltl-lesson-item.is-current { background: color-mix(in srgb, var(--ltl-accent) 8%, #fff); font-weight: 600; }
.ltl-lesson-item.is-locked a { color: #6b7280; }
.ltl-tag { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: #e8f6ec; color: #1d7a3a; }

/* Страница урока */
.ltl-crumbs { margin: 0 0 1.2em; color: #6b7280; font-size: .95em; }
.ltl-crumbs a { color: var(--ltl-accent); text-decoration: none; }
.ltl-lesson-footer { margin: 2.2em 0 1.5em; padding-top: 1.4em; border-top: 1px solid var(--ltl-line); display: flex; flex-direction: column; gap: 16px; }
.ltl-complete { margin: 0; }
.ltl-done-label { color: #1d7a3a; font-weight: 600; margin-right: 10px; }
.ltl-prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ltl-outline-toggle summary { cursor: pointer; font-weight: 600; padding: .5em 0; }
.ltl-outline-toggle .ltl-outline { margin-top: .5em; }
.ltl-outline-toggle .ltl-outline__title { display: none; }
.ltl-locked { padding: 20px; border: 1px dashed var(--ltl-line); border-radius: var(--ltl-radius); background: var(--ltl-soft); }
.ltl-locked p { margin: 0 0 .8em; }

/* Формы входа и регистрации */
.ltl-form-wrap { max-width: 440px; margin: 0 auto; }
.ltl-form { display: flex; flex-direction: column; gap: 14px; }
.ltl-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; }
.ltl-form label small { font-weight: 400; color: #6b7280; }
.ltl-form input[type=text], .ltl-form input[type=email], .ltl-form input[type=password] {
  padding: .65em .8em; border: 1px solid #cfd5de; border-radius: 8px; font: inherit; width: 100%; background: #fff;
}
.ltl-form input:focus { outline: 2px solid color-mix(in srgb, var(--ltl-accent) 40%, transparent); border-color: var(--ltl-accent); }
.ltl-form label.ltl-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.ltl-form label.ltl-check input { margin-top: .3em; }
.ltl-form__links { margin: 0; font-size: .95em; color: #6b7280; }
.ltl-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ltl-notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.ltl-notice ul { margin: 0; padding-left: 1.2em; }
.ltl-notice--error { background: #fdecec; color: #8a1f1f; }
.ltl-notice--success { background: #e8f6ec; color: #1d5e32; }
.ltl-notice--info { background: var(--ltl-soft); color: #374151; }

.ltl-my__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 1em; }
.ltl-my__head p { margin: 0; }

.ltl-js-hide { }
.ltl-js .ltl-js-hide { display: none; }

@media (max-width: 600px) {
  .ltl-filter select { width: 100%; }
  .ltl-filter { flex: 1 1 100%; }
  .ltl-prevnext .ltl-btn { width: 100%; text-align: center; }
}

/* Защита от бага Chromium: text-wrap: pretty/balance (есть в части тем) + формулы KaTeX может ронять вкладку. */
.ltl-math p, .ltl-math li, .ltl-math h1, .ltl-math h2, .ltl-math h3, .ltl-math h4, .ltl-math blockquote, .ltl-math td, .ltl-math th, .ltl-math figcaption { text-wrap: wrap; }
.ltl-math .katex { text-wrap: nowrap; }
.ltl-math .katex-display { margin: 1em 0; overflow-x: auto; overflow-y: hidden; }

/* Размеры текста в карточках не зависят от темы */
.ltl .ltl-card__title { font-size: 1.15rem; font-weight: 600; }
.ltl .ltl-card__text { font-size: .92rem; line-height: 1.45; }
.ltl .ltl-card__meta { font-size: .9rem; }

/* ---------- Тесты ---------- */
.ltl-quiz { margin: 2.2em 0 1.5em; padding: 20px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: #fff; --ltl-ok: #1d7a3a; --ltl-bad: #b42318; --ltl-part: #9a5b00; }
.ltl .ltl-quiz__title, .ltl-quiz .ltl-quiz__title { margin: 0 0 .6em; font-size: 1.35rem; line-height: 1.3; }
.ltl-quiz__facts { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: #4b5563; font-size: .95em; }
.ltl-quiz__note { color: #6b7280; }
.ltl-quiz p { margin: 0 0 .8em; }

.ltl-qhead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ltl-qhead__num { font-weight: 600; white-space: nowrap; }
.ltl-qhead .ltl-progress { flex: 1; }
.ltl-qdots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ltl-qdot { width: 2.1em; height: 2.1em; padding: 0; border: 1px solid var(--ltl-line); border-radius: 50%; background: #fff; color: #374151; font: inherit; font-size: .85em; cursor: pointer; }
.ltl-qdot.is-answered { background: color-mix(in srgb, var(--ltl-accent) 14%, #fff); border-color: var(--ltl-accent); }
.ltl-qdot.is-current { background: var(--ltl-accent); border-color: var(--ltl-accent); color: #fff; }

.ltl-qcard .ltl-qtext { font-size: 1.08rem; margin-bottom: .4em; }
.ltl-qtext img, .ltl-review__body img { max-width: 100%; height: auto; }
.ltl-qmeta { color: #6b7280; font-size: .9em; margin: 0 0 12px; }

/* Варианты ответов */
.ltl-opts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.ltl-opts--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ltl-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--ltl-line); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ltl-opt:hover { border-color: var(--ltl-accent); }
.ltl-opt input { margin-top: .3em; flex: none; }
.ltl-opt:has(input:checked) { border-color: var(--ltl-accent); background: color-mix(in srgb, var(--ltl-accent) 7%, #fff); }
.ltl-opts--cards .ltl-opt { flex-direction: column; align-items: center; text-align: center; justify-content: center; min-height: 4.5em; }
.ltl-opt.is-locked { cursor: default; }
.ltl-opt.is-locked:hover { border-color: var(--ltl-line); }
.ltl-opt.is-correct { border-color: var(--ltl-ok); background: #e8f6ec; }
.ltl-opt.is-wrong { border-color: var(--ltl-bad); background: #fdecec; }
.ltl-opt.is-missed { border: 2px dashed var(--ltl-ok); }

/* Соответствия */
.ltl-match { margin: 0 0 14px; }
.ltl-match__row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ltl-line); }
.ltl-match__row:first-child { border-top: 0; }
.ltl-match__left { flex: 1; }
.ltl-match__row select { flex: 1; max-width: 55%; padding: .5em .7em; border: 1px solid #cfd5de; border-radius: 8px; font: inherit; background: #fff; }
.ltl-match__row.is-correct { background: #e8f6ec; border-radius: 6px; padding-left: 8px; padding-right: 8px; }
.ltl-match__row.is-wrong { background: #fdecec; border-radius: 6px; padding-left: 8px; padding-right: 8px; }
.ltl-match__cols { position: relative; display: flex; justify-content: space-between; gap: 90px; }
.ltl-match__col { display: flex; flex-direction: column; gap: 10px; flex: 1; z-index: 2; }
.ltl-match__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.ltl-m-item { text-align: left; padding: 11px 14px; border: 2px solid var(--ltl-line); border-radius: 8px; background: #fff; font: inherit; color: inherit; cursor: pointer; line-height: 1.35; }
.ltl-m-item:hover:not(:disabled) { border-color: var(--ltl-accent); }
.ltl-m-item.is-selected { border-color: var(--ltl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltl-accent) 25%, transparent); }
.ltl-m-item:disabled { cursor: default; opacity: 1; color: inherit; }
.ltl-m-item.is-correct { border-color: var(--ltl-ok) !important; background: #e8f6ec; }
.ltl-m-item.is-wrong { border-color: var(--ltl-bad) !important; background: #fdecec; }
.ltl-match__svg line { stroke-width: 3; stroke-linecap: round; }
.ltl-pair-0 { --pc: #2457a6; } .ltl-pair-1 { --pc: #c2410c; } .ltl-pair-2 { --pc: #0f766e; }
.ltl-pair-3 { --pc: #7e22ce; } .ltl-pair-4 { --pc: #a16207; } .ltl-pair-5 { --pc: #be185d; }
.ltl-m-item.is-paired { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, #fff); }
.ltl-match__svg line[class^="ltl-pair-"], .ltl-match__svg line[class*=" ltl-pair-"] { stroke: var(--pc); }
.ltl-match__svg line.is-correct { stroke: var(--ltl-ok); }
.ltl-match__svg line.is-wrong { stroke: var(--ltl-bad); stroke-dasharray: 6 5; }
.ltl-match__hint { margin: 10px 0 0 !important; color: #6b7280; font-size: .88em; }
.ltl-match__correct { margin-top: 12px; padding: 10px 12px; background: var(--ltl-soft); border-radius: 8px; font-size: .95em; }
.ltl-match__correct ul { margin: .3em 0 0; padding-left: 1.2em; }

/* Подсказка, обратная связь, действия */
.ltl-hintbtn { margin: 0 0 12px; }
.ltl-hint { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #d97706; background: #fff8eb; border-radius: 0 8px 8px 0; }
.ltl-hint p { margin: 0 0 .5em; }
.ltl-hint p:last-child { margin-bottom: 0; }
.ltl-fb { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--ltl-line); }
.ltl-fb.is-correct { background: #e8f6ec; border-color: #b7e0c4; }
.ltl-fb.is-partial { background: #fff8eb; border-color: #f2d9a6; }
.ltl-fb.is-wrong { background: #fdecec; border-color: #f2c0c0; }
.ltl-fb__title { font-weight: 700; }
.ltl-fb__note { font-size: .9em; color: #4b5563; margin-top: 2px; }
.ltl-fb__explain { margin-top: 8px; }
.ltl-fb__explain p { margin: 0 0 .5em; }
.ltl-fb__explain p:last-child { margin-bottom: 0; }
.ltl-qactions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ltl-qactions .ltl-btn[disabled] { opacity: .6; cursor: wait; }

/* Результат */
.ltl-result { text-align: center; padding: 22px 12px; border-radius: var(--ltl-radius); margin-bottom: 18px; }
.ltl-result.is-pass { background: #e8f6ec; }
.ltl-result.is-fail { background: #fff8eb; }
.ltl-result__score { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.ltl-result.is-pass .ltl-result__score { color: var(--ltl-ok); }
.ltl-result.is-fail .ltl-result__score { color: var(--ltl-part); }
.ltl-result__line { color: #374151; margin-top: 4px; }
.ltl-result__level { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; font-weight: 600; }
.ltl-result__verdict { margin-top: 12px !important; font-weight: 600; }
.ltl-result__note { color: #4b5563; font-size: .95em; margin-bottom: .4em !important; }
.ltl-result .ltl-qactions { justify-content: center; margin-top: 12px; }
.ltl-review__title { margin: 0 0 .5em; font-size: 1.1rem; }
.ltl-review__item { border: 1px solid var(--ltl-line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.ltl-review__item > summary { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; cursor: pointer; list-style: none; }
.ltl-review__item > summary::-webkit-details-marker { display: none; }
.ltl-review__mark { font-weight: 700; width: 1.2em; text-align: center; }
.ltl-review__item.is-correct .ltl-review__mark { color: var(--ltl-ok); }
.ltl-review__item.is-partial .ltl-review__mark { color: var(--ltl-part); }
.ltl-review__item.is-wrong .ltl-review__mark { color: var(--ltl-bad); }
.ltl-review__q { flex: 1; }
.ltl-review__pts { color: #6b7280; white-space: nowrap; font-size: .9em; }
.ltl-review__body { padding: 4px 14px 14px; border-top: 1px solid var(--ltl-line); }
.ltl-quiz-gate { margin: 0; padding: 10px 14px; background: var(--ltl-soft); border-radius: 8px; color: #374151; }

@media (max-width: 600px) {
  .ltl-quiz { padding: 14px; }
  .ltl-match__row { flex-direction: column; align-items: stretch; gap: 6px; }
  .ltl-match__row select { max-width: 100%; }
  .ltl-qactions .ltl-btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Этап 3: скорость, математический ввод, перетаскивание ---------- */
.ltl-clock { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--ltl-soft); color: #374151; font-size: .9em; font-variant-numeric: tabular-nums; }
.ltl-clock.is-late { background: #fff8eb; color: var(--ltl-part); font-weight: 600; }

.ltl-mi { margin: 0 0 14px; }
.ltl-mi__req { margin: 0 0 8px !important; color: #4b5563; font-size: .92em; }
.ltl-mi__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.ltl-mi__input { flex: 1 1 14em; min-width: 0; padding: .65em .8em; border: 2px solid #cfd5de; border-radius: 8px; font: inherit; font-size: 1.15rem; background: #fff; }
.ltl-mi__input:focus { outline: none; border-color: var(--ltl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltl-accent) 22%, transparent); }
.ltl-mi__input:disabled { background: var(--ltl-soft); color: inherit; }
.ltl-mi__tog { padding: .5em .9em !important; }
.ltl-mi__prev { min-height: 2.6em; margin: 8px 0 0; padding: 6px 12px; border-radius: 8px; background: var(--ltl-soft); font-size: 1.2rem; overflow-x: auto; }
.ltl-mi__prev:empty { visibility: hidden; }
.ltl-mi__prev.is-err { font-size: .92rem; color: var(--ltl-bad); background: #fdecec; }
.ltl-mi__kb { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; max-width: 26em; }
.ltl-mi__krow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ltl-mi__key { min-height: 2.6em; padding: 0 4px; border: 1px solid #cfd5de; border-radius: 8px; background: #fff; font: inherit; font-size: 1.05rem; color: #1f2937; cursor: pointer; touch-action: manipulation; }
.ltl-mi__key:hover { border-color: var(--ltl-accent); background: color-mix(in srgb, var(--ltl-accent) 6%, #fff); }
.ltl-mi__key:active { background: color-mix(in srgb, var(--ltl-accent) 16%, #fff); }
.ltl-mi__key.is-ctl { background: var(--ltl-soft); }
.ltl-mi__help { margin: 10px 0 0; font-size: .9em; color: #4b5563; }
.ltl-mi__help summary { cursor: pointer; }
.ltl-mi__help p { margin: .4em 0 0 !important; }
.ltl-mi.is-correct .ltl-mi__input { border-color: var(--ltl-ok); background: #e8f6ec; }
.ltl-mi.is-partial .ltl-mi__input { border-color: var(--ltl-part); background: #fff8eb; }
.ltl-mi.is-wrong .ltl-mi__input { border-color: var(--ltl-bad); background: #fdecec; }
.ltl-mi__ans { display: inline-block; padding: 0 4px; }

.ltl-dd { margin: 0 0 14px; }
.ltl-dd__pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 3.4em; padding: 10px; border: 2px dashed var(--ltl-line); border-radius: 10px; background: var(--ltl-soft); }
.ltl-dd__pool.is-empty::before { content: 'Все элементы размещены'; color: #6b7280; font-size: .9em; align-self: center; }
.ltl-dd__zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.ltl-dd--slots .ltl-dd__zones { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ltl-dd__zone { display: flex; flex-direction: column; border: 2px solid var(--ltl-line); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s; }
.ltl-dd__zone:focus-visible { outline: 3px solid color-mix(in srgb, var(--ltl-accent) 40%, transparent); }
.ltl-dd__zlabel { padding: 8px 12px; font-weight: 600; border-bottom: 1px solid var(--ltl-line); background: var(--ltl-soft); border-radius: 8px 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ltl-dd__zbody { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 10px; min-height: 4.2em; flex: 1; }
.ltl-dd__zbody:empty::before { content: 'перетащите сюда'; color: #9ca3af; font-size: .88em; align-self: center; }
.ltl-dd__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid #cfd5de; border-radius: 8px; background: #fff; cursor: grab; line-height: 1.35; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.ltl-dd__item:hover { border-color: var(--ltl-accent); }
.ltl-dd__item:focus-visible { outline: 3px solid color-mix(in srgb, var(--ltl-accent) 40%, transparent); }
.ltl-dd__item.is-selected { border-color: var(--ltl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltl-accent) 25%, transparent); background: color-mix(in srgb, var(--ltl-accent) 7%, #fff); }
.ltl-dd__item.is-dragging { opacity: .35; }
.ltl-dd__item.is-locked { cursor: default; }
.ltl-dd__item.is-locked:hover { border-color: #cfd5de; }
.ltl-dd__item.is-correct { border-color: var(--ltl-ok) !important; background: #e8f6ec; }
.ltl-dd__item.is-wrong { border-color: var(--ltl-bad) !important; background: #fdecec; }
.ltl-dd__ghost { position: fixed !important; z-index: 100000; margin: 0; pointer-events: none; opacity: .92; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); cursor: grabbing; }
.ltl-dd__img { display: block; max-width: 140px; max-height: 110px; width: auto; height: auto; border-radius: 4px; }
.ltl-dd__zone.is-over, .ltl-dd__pool.is-over { border-color: var(--ltl-accent); background: color-mix(in srgb, var(--ltl-accent) 8%, #fff); }
.ltl-dd__list { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 2px dashed var(--ltl-line); border-radius: 10px; background: var(--ltl-soft); }
.ltl-dd--order .ltl-dd__item { display: flex; }
.ltl-dd__grip { color: #9ca3af; font-size: 1.2em; line-height: 1; flex: none; }
.ltl-dd--order .ltl-dd__text { flex: 1; }
.ltl-dd__mv { display: flex; gap: 4px; margin-left: auto; flex: none; }
.ltl-dd__arrow { width: 2.1em; height: 2.1em; padding: 0; border: 1px solid #cfd5de; border-radius: 6px; background: #fff; font: inherit; cursor: pointer; touch-action: manipulation; }
.ltl-dd__arrow:hover { border-color: var(--ltl-accent); }
.ltl-dd__item.is-locked .ltl-dd__mv { display: none; }
.ltl-dd__item.is-over-before { box-shadow: 0 -4px 0 var(--ltl-accent); }
.ltl-dd__item.is-over-after { box-shadow: 0 4px 0 var(--ltl-accent); }
.ltl-dd__hint { margin: 10px 0 0 !important; color: #6b7280; font-size: .88em; }
html.ltl-dragging, html.ltl-dragging * { cursor: grabbing !important; }
html.ltl-dragging { user-select: none; -webkit-user-select: none; }
@media (max-width: 600px) {
  .ltl-mi__tog { flex: 1 1 100%; }
  .ltl-mi__krow { gap: 5px; }
}

/* Визуальный ввод математики (этап 3, дополнение): дробь с окошками, смешанное число, корень, степень. */
.ltl-me { flex: 1 1 14em; min-width: 0; min-height: 3.3rem; box-sizing: border-box; padding: .35em .8em; border: 2px solid #cfd5de; border-radius: 8px; background: #fff; font-size: 1.5rem; line-height: 1.2; display: flex; align-items: center; cursor: text; overflow-x: auto; overflow-y: hidden; position: relative; -webkit-tap-highlight-color: transparent; user-select: none; }
.ltl-me:focus { outline: none; }
.ltl-me.is-active { border-color: var(--ltl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltl-accent) 22%, transparent); }
.ltl-me.is-locked { background: var(--ltl-soft); cursor: default; }
.ltl-me__ph { position: absolute; left: .8em; font-size: 1.05rem; color: #9aa3af; pointer-events: none; }
.ltl-me.is-active .ltl-me__ph { opacity: .55; left: calc(.8em + 6px); }
.ltl-me__row { display: inline-flex; align-items: center; min-height: 1.2em; white-space: nowrap; }
.ltl-me__root { min-width: 4px; flex: 0 0 auto; padding-right: 2px; }
.ltl-me__row.is-empty:not(.ltl-me__root) { min-width: .8em; min-height: 1.15em; border: 1.5px dashed #9aa3af; border-radius: 3px; background: color-mix(in srgb, var(--ltl-accent) 5%, transparent); }
.ltl-me__c { display: inline-block; }
.ltl-me__c.is-var { font-style: italic; font-family: "Times New Roman", Times, serif; }
.ltl-me__c.is-dot { padding: 0 .02em; }
.ltl-me__sp { display: inline-block; width: .45em; }
.ltl-me__frac { display: inline-flex; flex-direction: column; align-items: stretch; vertical-align: middle; margin: 0 .12em; text-align: center; }
.ltl-me__frac > .ltl-me__row { justify-content: center; font-size: .95em; padding: 0 .12em; }
.ltl-me__frac > .ltl-me__num { border-bottom: 2px solid currentColor; padding-bottom: .04em; }
.ltl-me__frac > .ltl-me__den { padding-top: .04em; }
.ltl-me__mixed { display: inline-flex; align-items: center; margin: 0 .1em; }
.ltl-me__mixed > .ltl-me__whole { margin-right: .12em; }
.ltl-me__sqrt { display: inline-flex; align-items: stretch; margin: 0 .1em; }
.ltl-me__rad { font-size: 1.15em; line-height: 1; align-self: flex-end; padding-right: 1px; }
.ltl-me__radc { border-top: 2px solid currentColor; padding: .06em .15em 0 .12em; align-self: stretch; align-items: flex-end; }
.ltl-me__pow { font-size: .62em; vertical-align: top; position: relative; top: -.1em; margin-left: 1px; line-height: 1; }
.ltl-me__pow > .ltl-me__row { font-size: 1em; }
.ltl-me__caret { display: inline-block; width: 0; height: 1.15em; border-left: 2px solid var(--ltl-accent); margin: 0 -1px; flex: 0 0 auto; animation: ltl-me-blink 1.05s steps(1) infinite; vertical-align: middle; }
.ltl-me__pow .ltl-me__caret { height: 1em; }
.ltl-me__log { display: inline-flex; align-items: center; margin: 0 .08em; }
.ltl-me__logw { font-family: "Times New Roman", Times, serif; }
.ltl-me__log > .ltl-me__lb { font-size: .62em; align-self: flex-end; position: relative; top: .25em; margin: 0 1px; line-height: 1; }
.ltl-me__lb .ltl-me__caret { height: 1em; }
.ltl-me__lp { padding: 0 .02em; }
@keyframes ltl-me-blink { 50% { opacity: 0; } }
.ltl-mi.is-correct .ltl-me { border-color: var(--ltl-ok); background: #e8f6ec; }
.ltl-mi.is-partial .ltl-me { border-color: var(--ltl-part); background: #fff8eb; }
.ltl-mi.is-wrong .ltl-me { border-color: var(--ltl-bad); background: #fdecec; }
.ltl-mi__prev:not(.is-err) { display: none; }

/* значки клавиш */
.ltl-mi__key.is-ico { display: flex; align-items: center; justify-content: center; }
.ltl-ico { display: inline-flex; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.ltl-ico--frac { flex-direction: column; gap: 2px; }
.ltl-ico__b { display: inline-block; width: .55em; height: .55em; border: 1.5px dashed currentColor; border-radius: 2px; box-sizing: border-box; opacity: .85; }
.ltl-ico__bar { display: block; width: 1em; height: 0; border-top: 2px solid currentColor; }
.ltl-ico--mixed { gap: 3px; }
.ltl-ico--pow .ltl-ico__sup { width: .4em; height: .4em; align-self: flex-start; margin-top: -2px; }
.ltl-ico--sq .ltl-ico__sup2 { font-size: .6em; align-self: flex-start; margin-top: -2px; }
.ltl-ico--sqrt .ltl-ico__rb { border-top: 2px solid currentColor; border-radius: 0; width: .65em; height: .6em; border-left: 0; border-right: 0; border-bottom: 0; background: none; opacity: 1; position: relative; }
.ltl-ico--sqrt .ltl-ico__rb::after { content: ''; position: absolute; left: .1em; right: .1em; top: .12em; bottom: 0; border: 1.5px dashed currentColor; border-radius: 2px; opacity: .85; }
.ltl-ico__t { font-size: 1.1em; }
.ltl-ico--log .ltl-ico__lw { font-size: .8em; }
.ltl-ico--log .ltl-ico__sub { width: .4em; height: .4em; align-self: flex-end; margin-bottom: -3px; }

@media (max-width: 600px) {
  .ltl-me { flex-basis: 100%; font-size: 1.6rem; min-height: 3.6rem; }
}
.ltl-mi__key.is-ico { font-size: 1.4rem; }
.ltl-ico__b { width: .6em; height: .6em; }

/* ---------- Этап 4: личный кабинет ---------- */
.ltl-cab { --ltl-ok: #1d7a3a; --ltl-bad: #b42318; --ltl-part: #9a5b00; }
.ltl-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 1.4em; border-bottom: 1px solid var(--ltl-line); }
.ltl-tabs .ltl-tabs__a { padding: .5em .85em; margin-bottom: -1px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: #4b5563; text-decoration: none; font-weight: 600; font-size: .9em; }
.ltl-tabs .ltl-tabs__a:hover { color: var(--ltl-accent); background: var(--ltl-soft); }
.ltl-tabs .ltl-tabs__a.is-current { color: var(--ltl-accent); background: #fff; border-color: var(--ltl-line) var(--ltl-line) #fff; }
.ltl-cab__facts, .ltl-cab__lead { color: #4b5563; margin: 0 0 1em; }
.ltl-cab__note { color: #6b7280; font-size: .88em; margin: 1.2em 0 0; }
.ltl-cab__back { margin: 0 0 .6em; }
.ltl-cab__back a, .ltl-cab__lnk { color: var(--ltl-accent); }
.ltl .ltl-cab__h { font-size: 1.45em; font-weight: 700; margin: 0 0 .7em; line-height: 1.25; }
.ltl .ltl-cab__h a { color: inherit; text-decoration: none; }
.ltl .ltl-cab__h3, .ltl-cab .ltl-review__title { font-size: 1.15em; font-weight: 700; margin: 1.6em 0 .5em; line-height: 1.3; }
.ltl-card__actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ltl-card__actions .ltl-btn { margin-top: 0; }
.ltl-card__more { color: var(--ltl-accent); font-size: .9em; }

/* Уровни освоения */
.ltl-lv { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.6; white-space: nowrap; background: #f1f3f6; color: #4b5563; }
.ltl-lv i { width: .6em; height: .6em; border-radius: 50%; background: currentColor; flex: none; }
.ltl-lv--excellent { background: #d6f2df; color: #0b5a27; }
.ltl-lv--formed { background: #e8f6ec; color: #1d6b37; }
.ltl-lv--partial { background: #fff3dc; color: #8a5300; }
.ltl-lv--not_formed { background: #fdecec; color: #a12622; }
.ltl-lv--none { background: #f1f3f6; color: #6b7280; }
.ltl-lvs { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }

/* Показатели курса */
.ltl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 1em; }
.ltl-stat { padding: 14px 16px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: #fff; display: flex; flex-direction: column; gap: 6px; }
.ltl-stat__label { color: #6b7280; font-size: .85em; }
.ltl-stat__val { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.ltl-stat__val small { font-size: .55em; font-weight: 600; color: #6b7280; }
.ltl-stat__note { color: #9ca3af; font-size: .78em; }

/* Список курсов в «Успеваемости» */
.ltl-cab__courses { display: flex; flex-direction: column; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); overflow: hidden; }
.ltl .ltl-cab__crow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(120px, .8fr) minmax(0, 1.6fr); gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--ltl-line); color: inherit; text-decoration: none; background: #fff; }
.ltl .ltl-cab__crow:first-child { border-top: 0; }
.ltl .ltl-cab__crow:hover { background: var(--ltl-soft); }
.ltl-cab__ctitle { font-weight: 600; }
.ltl-cab__cbar { display: flex; align-items: center; gap: 8px; }
.ltl-cab__cbar .ltl-progress { flex: 1; }
.ltl-cab__cbar small { color: #6b7280; min-width: 2.6em; }
.ltl-cab__cmeta { color: #4b5563; font-size: .9em; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* Темы */
.ltl-topics { display: flex; flex-direction: column; gap: 8px; }
.ltl-topic { border: 1px solid var(--ltl-line); border-left-width: 4px; border-radius: 8px; background: #fff; }
.ltl-topic--excellent { border-left-color: #1d7a3a; }
.ltl-topic--formed { border-left-color: #4caf6e; }
.ltl-topic--partial { border-left-color: #e0a100; }
.ltl-topic--not_formed { border-left-color: #d0453f; }
.ltl-topic--none { border-left-color: #cfd5de; }
.ltl-topic > summary { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 40px 12px 14px; cursor: pointer; list-style: none; }
.ltl-topic > summary::-webkit-details-marker { display: none; }
.ltl-topic > summary::after { content: '▾'; position: absolute; right: 14px; top: 12px; color: #9ca3af; transition: transform .15s; }
.ltl-topic[open] > summary::after { transform: rotate(180deg); }
.ltl-topic__title { font-weight: 600; }
.ltl-topic__meta { flex-basis: 100%; color: #6b7280; font-size: .88em; }
.ltl-topic__quizzes { list-style: none; margin: 0; padding: 0 14px 10px; }
.ltl-topic__quizzes li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--ltl-line); }
.ltl-topic__qt { font-weight: 500; }
.ltl-topic__res { color: #6b7280; font-size: .9em; }
.ltl-topic__act { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.ltl-qstate { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: .8rem; font-weight: 600; background: #f1f3f6; color: #6b7280; }
.ltl-qstate.is-ok { background: #e8f6ec; color: #1d6b37; }
.ltl-qstate.is-bad { background: #fdecec; color: #a12622; }

/* Таблицы кабинета */
.ltl-table-wrap { overflow-x: auto; }
.ltl-table { width: 100%; border-collapse: collapse; font-size: .93em; }
.ltl-table th { text-align: left; font-weight: 600; color: #6b7280; font-size: .88em; padding: 8px 10px; border-bottom: 2px solid var(--ltl-line); white-space: nowrap; }
.ltl-table td { padding: 10px; border-bottom: 1px solid var(--ltl-line); vertical-align: top; }
.ltl-table small { color: #6b7280; }
.ltl-cab .ltl-review__item.is-correct .ltl-review__mark { color: var(--ltl-ok); }
.ltl-cab .ltl-review__item.is-partial .ltl-review__mark { color: var(--ltl-part); }
.ltl-cab .ltl-review__item.is-wrong .ltl-review__mark { color: var(--ltl-bad); }
.ltl-cab .ltl-review__item.is-wrong { border-left: 4px solid #d0453f; }
.ltl-cab .ltl-review__item.is-partial { border-left: 4px solid #e0a100; }
.ltl-cab .ltl-review__body p { margin: .5em 0; }
.ltl-cab .ltl-result { margin-bottom: 1.4em; }
.ltl-cab .ltl-result__line { font-size: .92em; }

/* Профиль */
.ltl-cab__forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.ltl-cab__box { padding: 18px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: #fff; }
.ltl .ltl-cab__box h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.ltl-cab__box > p { margin: 0 0 .8em; }
.ltl-cab__box .ltl-form { gap: 12px; }
.ltl-cab__box form.ltl-notice { font-size: .92em; }

@media (max-width: 700px) {
  .ltl-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ltl-tabs .ltl-tabs__a { white-space: nowrap; padding: .5em .8em; }
  .ltl .ltl-cab__crow { grid-template-columns: 1fr; gap: 8px; }
  .ltl-topic__act { margin-left: 0; flex-basis: 100%; }
  .ltl-table thead { display: none; }
  .ltl-table, .ltl-table tbody, .ltl-table tr, .ltl-table td { display: block; width: 100%; }
  .ltl-table tr { padding: 10px 0; border-bottom: 1px solid var(--ltl-line); }
  .ltl-table td { border: 0; padding: 3px 0; }
  .ltl-table td[data-l] { position: relative; padding-left: 7.2em; min-height: 1.6em; }
  .ltl-table td[data-l]::before { content: attr(data-l); position: absolute; left: 0; top: 4px; width: 6.8em; color: #6b7280; font-size: .85em; }
}

/* 0.4.1: кнопка «Отправить ответ» рядом с ответом; компактная клавиатура на компьютере */
.ltl-qsend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; }
.ltl-qsend-slot { display: inline-flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.ltl-qsend-slot:empty { display: none; }
.ltl-quiz .ltl-qsend__btn { white-space: nowrap; }
.ltl-qsend__btn[disabled] { opacity: .6; cursor: wait; }
.ltl-qsend__mark { color: var(--ltl-ok); font-weight: 600; font-size: .92em; }
.ltl-qsend__mark:empty { display: none; }
@media (pointer: fine) and (min-width: 601px) {
  .ltl-mi__kb { max-width: 19em; gap: 4px; }
  .ltl-mi__krow { gap: 4px; }
  .ltl-mi__key { min-height: 2.05em; font-size: .92rem; border-radius: 6px; }
  .ltl-mi__key.is-ico { font-size: 1.05rem; }
  .ltl-mi__tog { padding: .4em .8em !important; font-size: .88em; }
}
@media (max-width: 600px) {
  .ltl-qsend-slot { flex-basis: 100%; }
  .ltl-qsend-slot .ltl-qsend__btn, .ltl-qsend .ltl-qsend__btn { flex: 1 1 auto; text-align: center; }
}

/* 0.4.2: открытые курсы */
.ltl-guest-course { display: flex; flex-direction: column; gap: 10px; }
.ltl-guest-course__progress { display: flex; flex-direction: column; gap: 6px; }
.ltl-guest-course__progress[hidden] { display: none; }
.ltl-guest-note { font-size: .9em; color: #4b5563; }

/* 0.5.0: оплата по QR */
.ltl-qstate.is-wait { background: #fff3dc; color: #8a5300; }
.ltl-buy { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; margin: 4px 0; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: var(--ltl-soft); }
.ltl-buy p { margin: 0; }
.ltl-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ltl-buy__price strong { font-size: 1.5rem; line-height: 1.2; }
.ltl-buy__price span { color: #4b5563; }
.ltl-buy__how { color: #4b5563; font-size: .92em; }
.ltl-buy__expired { color: #a12622; font-weight: 600; }
.ltl-pay-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.ltl-pay-offer { display: flex; gap: 8px; align-items: flex-start; font-size: .92em; cursor: pointer; }
.ltl-pay-offer input { margin-top: .25em; }
.ltl-sub-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; color: #4b5563; font-size: .92em; }
.ltl-sub-line .ltl-pay-form { flex-direction: row; align-items: center; }
.ltl-sub-line .ltl-pay-offer { font-size: .9em; }
.ltl-locked .ltl-buy { margin: 10px 0; text-align: left; }
.ltl-acc-t__act .ltl-pay-form { margin: 0; }

.ltl-pay { display: flex; flex-direction: column; gap: 12px; }
.ltl .ltl-pay__title { margin: 0; font-size: 1.3em; line-height: 1.3; }
.ltl-pay__sub { margin: 0; color: #6b7280; font-size: .92em; }
.ltl-pay__grid { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; padding: 18px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: #fff; }
.ltl-pay__qrbox { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ltl-qr { width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--ltl-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: .85em; text-align: center; }
.ltl-qr svg { width: 100%; height: 100%; display: block; border-radius: 8px; }
.ltl-qr--admin { width: 180px; margin: 10px 0 4px; }
.ltl-qr--admin:empty { display: none; }
.ltl .ltl-pay__app { text-align: center; }
.ltl-pay__steps { margin: 0; padding: 0; list-style: none; counter-reset: ltlpay; display: flex; flex-direction: column; gap: 18px; }
.ltl-pay__steps > li { counter-increment: ltlpay; position: relative; padding-left: 2.4em; display: flex; flex-direction: column; gap: 4px; }
.ltl-pay__steps > li::before { content: counter(ltlpay); position: absolute; left: 0; top: 0; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ltl-accent); color: #fff; font-weight: 700; font-size: .9em; display: flex; align-items: center; justify-content: center; }
.ltl-pay__label { font-weight: 600; }
.ltl-pay__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ltl-pay__sum strong { font-size: 1.8rem; line-height: 1.15; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ltl-pay__hint { color: #4b5563; font-size: .92em; }
.ltl-pay__claim { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; width: 100%; }
.ltl-pay__claim label { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 420px; font-size: .92em; }
.ltl-pay__claim label small { color: #6b7280; }
.ltl-pay__claim input[type=text] { padding: .55em .7em; border: 1px solid var(--ltl-line); border-radius: 8px; font: inherit; width: 100%; }
.ltl-pay__foot { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; }
.ltl-inline-form { display: inline; margin: 0; }
.ltl-pay__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.ltl-pay__facts dt { color: #6b7280; }
.ltl-pay__facts dd { margin: 0; font-weight: 600; }
.ltl-pay-t tr.is-open td { background: #fffaf0; }
@media (max-width: 640px) {
  .ltl-pay__grid { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .ltl-pay__qrbox { max-width: 260px; width: 100%; margin: 0 auto; }
  .ltl-pay__steps > li { padding-left: 2.2em; }
  .ltl-pay__claim .ltl-btn { width: 100%; text-align: center; }
}
.ltl-course-top .ltl-buy { background: #fff; }
@media (pointer: fine) and (min-width: 641px) { .ltl .ltl-pay__app { display: none; } }

/* 0.5.1: чек об оплате */
.ltl-file { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.ltl-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ltl-file__btn { display: inline-block; padding: .5em 1em; border: 1px dashed var(--ltl-accent); border-radius: 8px; color: var(--ltl-accent); font-weight: 600; background: #fff; }
.ltl-file:hover .ltl-file__btn, .ltl-file:focus-within .ltl-file__btn { background: var(--ltl-soft); }
.ltl-file:focus-within .ltl-file__btn { outline: 2px solid var(--ltl-accent); outline-offset: 2px; }
.ltl-file__name { color: #6b7280; font-size: .92em; word-break: break-all; }
.ltl-file.has-file .ltl-file__name { color: #1d6b37; font-weight: 600; }

/* ---------- Этап 6: интерактив (графики, чертежи, тренажёры) ---------- */
.ltl-int { margin: 1.6em 0; padding: 16px; border: 1px solid var(--ltl-line); border-radius: var(--ltl-radius); background: #fff; }
.ltl-int__title { margin: 0 0 .4em; font-size: 1.15rem; }
.ltl-int__task { margin: 0 0 .8em; color: #374151; }
.ltl-int__errors { font-size: .9em; }
.ltl-int__stage { position: relative; }
.ltl-int__svg { display: block; width: 100%; height: auto; max-height: 70vh; border: 1px solid var(--ltl-line); border-radius: 8px; background: #fff; user-select: none; -webkit-user-select: none; }
.ltl-int__svg:focus-visible { outline: 2px solid var(--ltl-accent); outline-offset: 2px; }
.ltl-int__bg { fill: #fff; }
.ltl-int__grid line { stroke: #e8ecf1; stroke-width: 1; }
.ltl-int__axis { stroke: #6b7280; stroke-width: 1.4; }
.ltl-int__ticks text { font-size: 11px; fill: #6b7280; }
.ltl-int__curve { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.ltl-int__area { opacity: .22; stroke: none; }
.ltl-int__area-val { font-size: 14px; font-weight: 600; fill: #1f2937; }
.ltl-int__pt { stroke: #fff; stroke-width: 1.5; }
.ltl-int__ptl { font-size: 12px; fill: #1f2937; }
.ltl-int__cross { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 3 3; }
.ltl-int__hpt { stroke: #fff; stroke-width: 1.5; }
.ltl-int__tip { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); border: 1px solid var(--ltl-line); font-size: 13px; pointer-events: none; font-variant-numeric: tabular-nums; }
.ltl-int__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 0; font-size: .85em; color: #6b7280; }
.ltl-int__zoom { display: inline-flex; gap: 4px; }
.ltl-int__zbtn { width: 28px; height: 28px; padding: 0; border: 1px solid var(--ltl-line); border-radius: 6px; background: #fff; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; color: #374151; }
.ltl-int__zbtn:hover { background: var(--ltl-soft); }
.ltl-int__ctrls { display: grid; gap: 8px; margin: 12px 0 0; }
.ltl-int__slider { display: grid; grid-template-columns: 3.2em 1fr 4.5em; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.ltl-int__sname { font-weight: 600; text-align: right; }
.ltl-int__sval { font-weight: 600; }
.ltl-int__slider input[type=range] { width: 100%; min-height: 32px; accent-color: var(--ltl-accent); }
.ltl-int__texts { margin: 12px 0 0; }
.ltl-int__text { margin: .3em 0; }
.ltl-int__legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9em; color: #374151; }
.ltl-int__sw { display: inline-block; width: 18px; height: 4px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.ltl-int__check { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ltl-int__hint { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff8e1; color: #6b4e00; }
.ltl-int__msg { margin: 8px 0 0; min-height: 1.4em; font-weight: 600; }
.ltl-int__msg.is-ok { color: #1d7a3a; }
.ltl-int__msg.is-bad { color: #a12622; }
.ltl-int__readouts { margin: 8px 0 0; }
.ltl-int__read { margin: .2em 0; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Чертёж */
.ltl-int__poly { fill: rgba(36, 87, 166, .08); stroke: #2457a6; stroke-width: 2; stroke-linejoin: round; }
.ltl-int__poly.is-hi { fill: rgba(36, 87, 166, .22); }
.ltl-int__ln { stroke: #2457a6; stroke-width: 2; stroke-linecap: round; }
.ltl-int__ln.is-aux { stroke: #7b8794; stroke-width: 1.4; stroke-dasharray: 6 4; }
.ltl-int__circ { fill: none; stroke: #2457a6; stroke-width: 2; }
.ltl-int__ang { fill: none; stroke: #d33a3a; stroke-width: 1.6; }
.ltl-int__angv, .ltl-int__lenv { font-size: 12px; fill: #b02a2a; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.ltl-int__lenv { fill: #1f2937; }
.ltl-int__dot { fill: #1f2937; stroke: #fff; stroke-width: 1.5; }
.ltl-int__p.is-mov .ltl-int__dot { fill: var(--ltl-accent); stroke-width: 2; }
.ltl-int__p.is-mov { cursor: grab; }
.ltl-int__p.is-mov:focus { outline: none; }
.ltl-int__p.is-mov:focus .ltl-int__dot, .ltl-int__p.is-mov:hover .ltl-int__dot { stroke: #f59e0b; stroke-width: 3; }
.ltl-int__hit { fill: transparent; }
.ltl-int__plabel { font-size: 14px; font-weight: 600; fill: #111827; paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
/* Тренажёр */
.ltl-tr__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; color: #4b5563; font-size: .95em; }
.ltl-tr__prog { flex: 1 1 140px; height: 8px; border-radius: 999px; background: var(--ltl-line); overflow: hidden; }
.ltl-tr__prog span { display: block; height: 100%; background: var(--ltl-accent); transition: width .2s; }
.ltl-tr__levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ltl-tr__lvl { padding: .5em 1em; border: 1px solid var(--ltl-line); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; color: #1f2937; }
.ltl-tr__lvl[aria-pressed="true"] { border-color: var(--ltl-accent); background: var(--ltl-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ltl-accent); }
.ltl-tr__task { margin: .4em 0 1em; font-size: 1.15em; line-height: 1.55; }
.ltl-tr__task p { margin: .3em 0; }
.ltl-tr__answer { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
.ltl-tr__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ltl-tr__res { margin: 10px 0; padding: 10px 14px; border-radius: 8px; }
.ltl-tr__res.is-ok { background: #e8f6ec; color: #1d5e32; }
.ltl-tr__res.is-bad { background: #fdecec; color: #8a1f1f; }
.ltl-tr__res.is-form, .ltl-tr__res.is-invalid { background: #fff8e1; color: #6b4e00; }
.ltl-tr__sol { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--ltl-line); color: #374151; }
.ltl-tr__sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.ltl-tr__sum div { padding: 10px 12px; border: 1px solid var(--ltl-line); border-radius: 8px; text-align: center; }
.ltl-tr__sum b { display: block; font-size: 1.5em; line-height: 1.2; }
.ltl-tr__sum span { color: #6b7280; font-size: .85em; }
@media (max-width: 520px) {
  .ltl-int { padding: 12px; }
  .ltl-int__slider { grid-template-columns: 2.4em 1fr 3.8em; gap: 6px; }
}

/* ===== Вопрос «Пропуски» ===== */
.ltl-gap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3em; vertical-align: middle; margin: .2em .15em; max-width: 100%; }
.ltl-gap__in { box-sizing: border-box; min-width: 4em; max-width: 100%; height: 2.5rem; padding: .2em .6em; font: inherit; font-size: 1.1rem; border: 2px solid #cfd5de; border-radius: 8px; background: #fff; color: inherit; }
.ltl-gap__in:focus { outline: none; border-color: var(--ltl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltl-accent) 22%, transparent); }
.ltl-me.ltl-me--gap { flex: 0 0 auto; display: inline-flex; width: auto; min-width: 3.4em; max-width: 100%; min-height: 2.5rem; padding: .1em .55em; font-size: 1.25rem; vertical-align: middle; overflow-y: visible; }
.ltl-me--gap .ltl-me__ph { display: none; }
.ltl-gap.is-bad .ltl-me, .ltl-gap.is-bad .ltl-gap__in { border-color: var(--ltl-bad); }
.ltl-gap.is-locked .ltl-gap__in { background: var(--ltl-soft); }
.ltl-gap.is-correct .ltl-me, .ltl-gap.is-correct .ltl-gap__in { border-color: var(--ltl-ok, #2e8b57); background: #eef8f1; }
.ltl-gap.is-wrong .ltl-me, .ltl-gap.is-wrong .ltl-gap__in { border-color: var(--ltl-bad); background: #fdecec; }
.ltl-gap.is-partial .ltl-me, .ltl-gap.is-partial .ltl-gap__in { border-color: #d9a400; background: #fff7dc; }
.ltl-gap__ans { font-size: .95rem; color: var(--ltl-ok, #2e8b57); }
.ltl-gap__ans::before { content: "✓ "; }
.ltl-bl__bar { margin: 10px 0 0; }
.ltl-bl .ltl-mi__kb { max-width: 26em; }
.ltl-qtext .ltl-gap { line-height: 1.2; }
@media (max-width: 520px) { .ltl-gap__in { font-size: 1rem; } .ltl-me.ltl-me--gap { font-size: 1.15rem; } }
.ltl-bl .ltl-mi__help { margin-bottom: 12px; }

/* ===== Версия 0.8.0: оформление «Тетрадь» (шрифты лежат в assets/fonts, внешних подключений нет) ===== */
@font-face { font-family: "Marck Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/marck-script-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Marck Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/marck-script-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/caveat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:is(.ltl-quiz, .ltl-cab) .ltl-result {
  --nb-ink: #1f2d54; --nb-red: #d64541; --nb-green: #2e9e5b;
  position: relative; padding: 28px 22px 24px 54px; border-radius: 6px; color: var(--nb-ink);
  background-color: #f7f9fc;
  background-image: linear-gradient(rgba(70,120,200,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(70,120,200,.16) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: 0 1px 3px rgba(31,45,84,.18);
}
:is(.ltl-quiz, .ltl-cab) .ltl-result::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 2px; background: rgba(214,69,65,.55); }
:is(.ltl-quiz, .ltl-cab) .ltl-result.is-pass, :is(.ltl-quiz, .ltl-cab) .ltl-result.is-fail { background-color: #f7f9fc; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 19rem; max-width: 100%; min-height: 12rem; padding: 1rem 2rem 1.2rem; box-sizing: border-box;
  font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 1rem; line-height: 1; color: var(--nb-red) !important;
  border: 4px solid var(--nb-red); border-radius: 50% 48% 52% 46% / 56% 52% 48% 44%; transform: rotate(-2deg);
}
:is(.ltl-quiz, .ltl-cab) .ltl-result__num { font-size: 5.6rem; line-height: 1; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__of { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.9rem; line-height: 1.1; white-space: nowrap; color: var(--nb-red); margin-top: 4px; }
.ltl-rtopic__ok { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.35rem; color: #2e9e5b; margin: 2px 0 6px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__line { font-family: "PT Sans", system-ui, sans-serif; color: #2c3b66; margin-top: 10px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__level { background: #d9ecff; transform: rotate(-1.2deg); font-family: "Caveat", cursive; font-weight: 700; font-size: 1.25rem; border-radius: 2px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__verdict { font-family: "Marck Script", cursive; font-weight: 400; font-size: 1.7rem; color: var(--nb-red); line-height: 1.2; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__note { color: #5d6b8f; }

.ltl-resume { margin: 22px 0; }
.ltl-resume__title { font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 2rem; color: #1f2d54; margin: 0 0 .5em; line-height: 1.15; }
.ltl-rtopic { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; color: #1f2d54; }
.ltl-rtopic__mark { flex: none; width: 36px; font-family: "Marck Script", cursive; font-size: 2.5rem; line-height: 1; }
.ltl-rtopic__name { font-family: "PT Sans", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; }
.ltl-rtopic__text { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin-top: 2px; }
.ltl-rtopic.is-good .ltl-rtopic__mark, .ltl-rtopic.is-good .ltl-rtopic__text { color: #2e9e5b; }
.ltl-rtopic.is-weak { padding: 18px 20px; background: #fffdf0; border: 2px dashed #d64541; border-radius: 6px; margin: 10px 0; }
.ltl-rtopic.is-weak .ltl-rtopic__mark, .ltl-rtopic.is-weak .ltl-rtopic__text { color: #d64541; }
.ltl-rtopic__body { min-width: 0; flex: 1; }
.ltl-rtopic__count { font-size: .9rem; color: #5d6b8f; margin: 4px 0 8px; }
.ltl-task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.ltl-task__n { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.35rem; color: #1f2d54; min-width: 5.5em; }
.ltl .ltl-task__link { display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: .9rem; font-weight: 700; color: #1f2d54; text-decoration: none; }
.ltl .ltl-task__link--theory { background: #d9ecff; box-shadow: 0 2px 0 #9cc4ec; }
.ltl .ltl-task__link--trainer { background: #fff3b0; box-shadow: 0 2px 0 #e1cd62; }
.ltl .ltl-task__link:hover { filter: brightness(.97); }
.ltl-tr__scale { font-family: "Caveat", cursive; font-size: 1.5rem; color: #d64541; margin: 8px 0; }
.ltl-tr__scale b { font-family: "Marck Script", cursive; font-weight: 400; font-size: 1.8rem; }
@media (max-width: 520px) {
  :is(.ltl-quiz, .ltl-cab) .ltl-result { padding-left: 40px; }
  :is(.ltl-quiz, .ltl-cab) .ltl-result::before { left: 26px; }
  :is(.ltl-quiz, .ltl-cab) .ltl-result__score { width: 15rem; min-height: 10rem; padding: .8rem 1.4rem 1rem; }
  :is(.ltl-quiz, .ltl-cab) .ltl-result__num { font-size: 4.4rem; }
  :is(.ltl-quiz, .ltl-cab) .ltl-result__of { font-size: 1.6rem; }
}

/* Кнопка «Пройти ещё раз»: объёмная, «пухлая» */
.ltl-result__top { margin: 0 0 22px; text-align: center; }
.ltl .ltl-btn--puffy {
  position: relative; padding: .85em 2.4em; border: 0; border-radius: 999px; cursor: pointer;
  font-family: "PT Sans", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  text-shadow: 0 1px 2px rgba(10,30,70,.55);
  background: linear-gradient(180deg, #5a8fe0 0%, #2f66c4 52%, #234f9e 100%);
  box-shadow: 0 6px 0 #17376f, 0 12px 18px rgba(23,55,111,.38), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 8px rgba(10,30,80,.35);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.ltl .ltl-btn--puffy::before { content: ""; position: absolute; left: 12%; right: 12%; top: 6%; height: 38%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.ltl .ltl-btn--puffy:hover { filter: brightness(1.06); }
.ltl .ltl-btn--puffy:active { transform: translateY(5px); box-shadow: 0 1px 0 #17376f, 0 4px 8px rgba(23,55,111,.35), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(10,30,80,.35); }
.ltl .ltl-btn--puffy:disabled { opacity: .65; cursor: default; }

/* ===== Версия 0.9.0: плитки разделов на школьной доске ===== */
@font-face { font-family: "Neucha"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/neucha-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Neucha"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/neucha-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.ltl-board-wrap { margin: 1.5em 0; }
.ltl-board {
  position: relative; padding: 28px 28px 34px 56px; border-radius: 6px; color: #1f2d54;
  background-color: #f7f9fc;
  background-image: linear-gradient(rgba(70,120,200,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(70,120,200,.16) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: 0 1px 3px rgba(31,45,84,.18);
}
.ltl-board::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 2px; background: rgba(214,69,65,.55); }
.ltl-board__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 26px; }
.ltl-board__title { margin: 0; font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 2.4rem; line-height: 1.1; color: #1f2d54; }
.ltl-board__back { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.3rem; color: #d64541; text-decoration: none; padding: 2px 14px; border: 2px dashed rgba(214,69,65,.6); border-radius: 999px; }
.ltl-board__back:hover { background: rgba(214,69,65,.08); }
.ltl-board__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 24px; }
@media (max-width: 860px) { .ltl-board__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ltl-board { padding: 20px 14px 26px 40px; } .ltl-board::before { left: 26px; } .ltl-board__tiles { grid-template-columns: minmax(0, 1fr); gap: 20px; } .ltl-board__title { font-size: 1.9rem; } }

.ltl .ltl-tile {
  --t1: #3a62c4; --t2: #2349a3; --t3: #173480; --td: #0c1f52; --tx: #fff; --tn: #ffeab0;
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  min-height: 118px; padding: 20px 18px 24px; box-sizing: border-box; text-align: center; text-decoration: none; color: var(--tx);
  border-radius: 30px;
  background: linear-gradient(180deg, var(--t1) 0%, var(--t2) 54%, var(--t3) 100%);
  box-shadow: 0 8px 0 var(--td), 0 15px 20px rgba(31,45,84,.32), inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 0 4px rgba(0,0,0,.14), inset 0 -10px 16px rgba(0,10,50,.26);
  transition: transform .09s, box-shadow .09s, filter .15s;
}
.ltl .ltl-tile::before { content: ""; position: absolute; left: 7%; right: 7%; top: 5%; height: 42%; border-radius: 26px 26px 50% 50% / 26px 26px 60% 60%; background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0)); pointer-events: none; }
/* солнечный блик в левом верхнем углу и тёплый отсвет справа внизу */
.ltl .ltl-tile::after { content: ""; position: absolute; inset: 0; border-radius: 30px; pointer-events: none;
  background:
    radial-gradient(circle at 17% 16%, rgba(255,250,215,.95) 0, rgba(255,236,160,.55) 5%, rgba(255,220,120,.18) 14%, rgba(255,220,120,0) 30%),
    radial-gradient(ellipse 34% 7% at 17% 16%, rgba(255,248,200,.8), rgba(255,248,200,0)),
    radial-gradient(ellipse 5% 40% at 17% 16%, rgba(255,248,200,.7), rgba(255,248,200,0)),
    radial-gradient(circle at 86% 88%, rgba(255,225,140,.22), rgba(255,225,140,0) 22%); }
.ltl .ltl-tile:hover { filter: brightness(1.07); transform: translateY(-2px); color: var(--tx); }
.ltl .ltl-tile:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--td), 0 6px 10px rgba(31,45,84,.3), inset 0 0 0 2px rgba(255,255,255,.55), inset 0 -8px 12px rgba(0,10,50,.26); }
.ltl .ltl-tile:focus-visible { outline: 3px solid #d64541; outline-offset: 4px; }
.ltl-tile__name { position: relative; z-index: 1; font-family: "Marck Script", "PT Sans", cursive; font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 2px 3px rgba(0,10,50,.55); }
.ltl-tile__n { position: relative; z-index: 1; font-family: "PT Sans", system-ui, sans-serif; font-size: .95rem; font-weight: 700; color: var(--tn); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,10,50,.45); }
.ltl .ltl-tile--c0, .ltl .ltl-card--c0 { --t1: #3a62c4; --t2: #2349a3; --t3: #173480; --td: #0c1f52; --tx: #fff; --tn: #ffeab0; }
.ltl .ltl-tile--c1, .ltl .ltl-card--c1 { --t1: #a9d3f5; --t2: #6fa9df; --t3: #4d88c3; --td: #2e5b8a; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c2, .ltl .ltl-card--c2 { --t1: #4f78d6; --t2: #3358b8; --t3: #244295; --td: #142a63; --tx: #fff; --tn: #ffeab0; }
.ltl .ltl-tile--c3, .ltl .ltl-card--c3 { --t1: #ffe27a; --t2: #f3bd1c; --t3: #d29a05; --td: #8d6503; --tx: #3d2a00; --tn: #6b4a00; }
.ltl .ltl-tile--c4, .ltl .ltl-card--c4 { --t1: #58c0ee; --t2: #2a97cf; --t3: #1a77ab; --td: #0e4a6b; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c5, .ltl .ltl-card--c5 { --t1: #3f93dc; --t2: #2a74bd; --t3: #1d5a9b; --td: #103a66; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c6, .ltl .ltl-card--c6 { --t1: #5b9be0; --t2: #3a77c0; --t3: #2a5e9d; --td: #183a64; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c7, .ltl .ltl-card--c7 { --t1: #f0628f; --t2: #d92f68; --t3: #b01d4f; --td: #6e0e2e; --tx: #fff; --tn: #ffe9a8; }
.ltl .ltl-tile--c8, .ltl .ltl-card--c8 { --t1: #6b78d6; --t2: #4655b8; --t3: #323f95; --td: #1e285f; --tx: #fff; --tn: #ffeab0; }
.ltl .ltl-tile--c9, .ltl .ltl-card--c9 { --t1: #43c9d6; --t2: #1e9fb0; --t3: #157d8e; --td: #0b4b57; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c10, .ltl .ltl-card--c10 { --t1: #3b82e6; --t2: #1f5fc4; --t3: #1749a0; --td: #0d2d66; --tx: #fff; --tn: #ffeab0; }
.ltl .ltl-tile--c11, .ltl .ltl-card--c11 { --t1: #ffc7a1; --t2: #f5976a; --t3: #dc7344; --td: #8f4421; --tx: #4a230c; --tn: #7a3c1b; }
.ltl .ltl-tile--c12, .ltl .ltl-card--c12 { --t1: #8fb1d6; --t2: #5f86b0; --t3: #476a92; --td: #2c4561; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c13, .ltl .ltl-card--c13 { --t1: #d9456a; --t2: #b22249; --t3: #8c1535; --td: #520a1f; --tx: #fff; --tn: #ffe9a8; }
.ltl .ltl-tile--c14, .ltl .ltl-card--c14 { --t1: #7e8fe0; --t2: #5a6cc4; --t3: #4352a2; --td: #272f66; --tx: #fff; --tn: #ffeab0; }
.ltl .ltl-tile--c15, .ltl .ltl-card--c15 { --t1: #35a7e0; --t2: #1580bd; --t3: #0e6598; --td: #073d5c; --tx: #fff; --tn: #fff4cf; }
.ltl .ltl-tile--c16, .ltl .ltl-card--c16 { --t1: #e8506b; --t2: #c4283f; --t3: #9c1b30; --td: #5c0e1c; --tx: #fff; --tn: #ffe9a8; }
.ltl .ltl-tile--c3 .ltl-tile__name, .ltl .ltl-tile--c11 .ltl-tile__name { text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.ltl .ltl-tile--c3 .ltl-tile__n, .ltl .ltl-tile--c11 .ltl-tile__n { text-shadow: none; }
.ltl-board__all { margin: 28px 0 0; text-align: center; }
.ltl-board__all a { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.35rem; color: #d64541; text-decoration: underline dashed rgba(214,69,65,.6); text-underline-offset: 5px; }
.ltl-back { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 1em; }
.ltl-back__name { font-size: 1.15rem; }

/* ===== Версия 0.12.0: плашки курсов — объёмные кнопки «Тетрадь», площе плиток разделов ===== */
.ltl .ltl-card {
  position: relative; display: flex; flex-direction: column; padding: 7px 7px 0; border: 0; border-radius: 20px; overflow: visible;
  background: linear-gradient(180deg, var(--t1, #3a62c4) 0%, var(--t2, #2349a3) 55%, var(--t3, #173480) 100%);
  box-shadow: 0 5px 0 var(--td), 0 9px 14px rgba(31,45,84,.24), inset 0 0 0 2px rgba(255,255,255,.5);
  transition: transform .09s, box-shadow .09s, filter .15s; margin-bottom: 5px;
}
.ltl .ltl-card::before { content: ""; position: absolute; left: 6%; right: 6%; top: 2px; height: 22px; border-radius: 18px 18px 50% 50% / 18px 18px 70% 70%; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0)); pointer-events: none; }
.ltl .ltl-card:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 7px 0 var(--td), 0 12px 16px rgba(31,45,84,.26), inset 0 0 0 2px rgba(255,255,255,.5); }
.ltl .ltl-card:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--td), 0 3px 6px rgba(31,45,84,.28), inset 0 0 0 2px rgba(255,255,255,.5); }
.ltl .ltl-card:focus-within { outline: 3px solid #d64541; outline-offset: 3px; }
.ltl .ltl-card__paper {
  position: relative; display: flex; flex-direction: column; flex: 1; border-radius: 14px; overflow: hidden; color: #1f2d54;
  background-color: #f7f9fc;
  background-image: linear-gradient(rgba(70,120,200,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(70,120,200,.14) 1px, transparent 1px);
  background-size: 20px 20px; box-shadow: inset 0 2px 5px rgba(0,10,50,.28);
}
.ltl .ltl-card__media { border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--t1, #3a62c4) 26%, #fff); text-decoration: none; }
.ltl .ltl-card__ph { color: var(--t3, #173480); opacity: .65; text-decoration: none; font-family: "Marck Script", cursive; font-weight: 400; font-size: 4rem; }
.ltl .ltl-card__body { padding: 14px 16px 16px; }
.ltl .ltl-card__title { font-family: "Marck Script", "Segoe Script", "PT Sans", cursive; font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: #1f2d54; }
.ltl .ltl-card__title a { color: inherit; }
.ltl .ltl-card__title a:hover { color: #d64541; }
.ltl .ltl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.ltl .ltl-card__text { color: #3a4a78; font-family: "PT Sans", system-ui, sans-serif; }
.ltl .ltl-card__meta { color: #4b5b8a; font-family: "PT Sans", system-ui, sans-serif; }
.ltl .ltl-card .ltl-chip { background: rgba(255,255,255,.85); border: 1px solid rgba(70,120,200,.28); }
.ltl .ltl-card__actions { position: relative; z-index: 2; }
.ltl .ltl-card__go {
  display: block; padding: 6px 12px 9px; text-align: center; color: var(--tx); font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.25rem; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,10,50,.5);
}
.ltl .ltl-card--c3 .ltl-card__go, .ltl .ltl-card--c11 .ltl-card__go { text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.ltl .ltl-card--cab { padding-bottom: 7px; }
.ltl .ltl-card--cab:hover, .ltl .ltl-card--cab:active { transform: none; filter: none; }
.ltl .ltl-card--cab { box-shadow: 0 5px 0 var(--td), 0 9px 14px rgba(31,45,84,.24), inset 0 0 0 2px rgba(255,255,255,.5); }
.ltl-grid { gap: 26px 22px; }
@media (prefers-reduced-motion: reduce) { .ltl .ltl-card, .ltl .ltl-card:hover, .ltl .ltl-card:active { transition: none; transform: none; } }

/* ===== Версия 0.13.0: «Тема подготовки» — страницы теории, практики и тренажёра на листе в клетку ===== */
.ltl-topic { margin: 0 0 2em; }
.ltl-topic__sheet { color: #1f2d54; }
.ltl-topic__sheet .ltl-board__head { margin-bottom: 14px; min-height: 0; }
.ltl-topic__sheet .ltl-board__head:empty { display: none; }
.ltl-topic__tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.ltl-topic .ltl-topic__tab { display: inline-block; padding: 8px 20px 10px; border-radius: 14px; font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.35rem; line-height: 1.1; color: #1f2d54; text-decoration: none; background: #d9ecff; box-shadow: 0 4px 0 #9cc4ec, inset 0 0 0 2px rgba(255,255,255,.7); transition: transform .09s, box-shadow .09s; }
.ltl-topic .ltl-topic__tab--practice { background: #e6f5df; box-shadow: 0 4px 0 #a8d29a, inset 0 0 0 2px rgba(255,255,255,.7); }
.ltl-topic .ltl-topic__tab--trainer { background: #fff3b0; box-shadow: 0 4px 0 #e1cd62, inset 0 0 0 2px rgba(255,255,255,.7); }
.ltl-topic .ltl-topic__tab:hover { transform: translateY(-2px); }
.ltl-topic .ltl-topic__tab.is-on { transform: translateY(3px); box-shadow: 0 1px 0 #9cc4ec, inset 0 0 0 2px #d64541; }
.ltl-topic .ltl-topic__tab--practice.is-on { box-shadow: 0 1px 0 #a8d29a, inset 0 0 0 2px #d64541; }
.ltl-topic .ltl-topic__tab--trainer.is-on { box-shadow: 0 1px 0 #e1cd62, inset 0 0 0 2px #d64541; }
.ltl-topic__wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0 0 30px; }
.ltl-topic__wins.is-single { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .ltl-topic__wins { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.ltl-win { margin: 0; }
.ltl-win__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #fff; border: 4px solid #3358b8; box-shadow: 0 5px 0 #142a63, 0 10px 16px rgba(31,45,84,.22), inset 0 0 0 2px rgba(255,255,255,.5); }
.ltl-win--banner .ltl-win__frame { border-color: #d92f68; box-shadow: 0 5px 0 #6e0e2e, 0 10px 16px rgba(31,45,84,.22), inset 0 0 0 2px rgba(255,255,255,.5); }
.ltl-win__frame video, .ltl-win__frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ltl-win figcaption { margin-top: 14px; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.4rem; color: #d64541; text-align: center; transform: rotate(-1deg); }
.ltl-win__pp { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(31,45,84,.78); color: #fff; font-size: .85rem; line-height: 1; cursor: pointer; }
.ltl-win__pp:hover { background: #1f2d54; }
.ltl-win__pp:focus-visible { outline: 3px solid #d64541; outline-offset: 2px; }
.ltl-topic__notes { font-family: "PT Sans", system-ui, sans-serif; font-size: 1.08rem; line-height: 1.6; color: #1f2d54; }
.ltl-topic__notes > * { max-width: 100%; }
.ltl-topic__notes h2, .ltl-topic__notes h3 { font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; color: #1f2d54; line-height: 1.15; margin: 1.1em 0 .4em; }
.ltl-topic__notes h2 { font-size: 2rem; }
.ltl-topic__notes h3 { font-size: 1.6rem; }
.ltl-topic__notes img { max-width: 100%; height: auto; }
.ltl-topic__hint { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.35rem; line-height: 1.25; color: #2c3b66; margin: 0 0 16px; }
.ltl-topic__empty { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.4rem; color: #5d6b8f; }
.ltl-topic--practice .ltl-reader, .ltl-topic--practice [class*="ltl-reader"] { max-width: 100%; }
.ltl-topic--trainer .ltl-int { background: rgba(255,255,255,.85); border-radius: 10px; padding: 14px; }
/* блоки конспекта */
.ltl-box { margin: 20px 0; padding: 16px 20px 14px; border-radius: 8px; position: relative; }
.ltl-box__t { font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.55rem; line-height: 1.1; margin-bottom: 8px; }
.ltl-box__text > :first-child { margin-top: 0; }
.ltl-box__text > :last-child { margin-bottom: 0; }
.ltl-box--rule { background: #fff8c6; box-shadow: 0 3px 0 #e1cd62, 0 6px 10px rgba(31,45,84,.12); transform: rotate(-.4deg); }
.ltl-box--rule .ltl-box__t { color: #8a5a00; }
.ltl-box--algo { background: #fff; border: 3px solid #3358b8; box-shadow: 0 4px 0 #142a63; }
.ltl-box--algo .ltl-box__t { color: #3358b8; }
.ltl-box__steps { list-style: none; counter-reset: ltlstep; margin: 0; padding: 0; }
.ltl-box__steps li { counter-increment: ltlstep; position: relative; padding: 6px 0 6px 46px; min-height: 40px; }
.ltl-box__steps li::before { content: counter(ltlstep); position: absolute; left: 0; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: #3358b8; color: #fff; font-family: "Marck Script", cursive; font-size: 1.4rem; line-height: 34px; text-align: center; box-shadow: 0 2px 0 #142a63; }
.ltl-box--example { background: #eef6ff; border: 2px dashed #6fa9df; }
.ltl-box--example .ltl-box__t { color: #2a5e9d; }
.ltl-box--note { background: #fffdf0; border: 2px dashed #d64541; }
.ltl-box--note .ltl-box__t { color: #d64541; }
.ltl .ltl-task__link--practice { background: #e6f5df; box-shadow: 0 2px 0 #a8d29a; }
@media (prefers-reduced-motion: reduce) { .ltl-topic .ltl-topic__tab { transition: none; } .ltl-box--rule { transform: none; } }

/* Версия 0.16.0: таймер теста и итог тренажёра */
.ltl-limit { position: sticky; top: 0; z-index: 5; display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px; background: var(--ltl-soft); color: #374151; font-weight: 600; font-variant-numeric: tabular-nums; }
.ltl-limit.is-low { background: #fff1f0; color: #b42318; }
.ltl-result__phrase { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--ltl-soft); font-size: 1.02em; }
.ltl-result__late { color: #b42318; font-weight: 600; }

.ltl-kind { color: #6b7280; }
.ltl-kind--drill { color: #996800; font-weight: 600; }

/* Версия 0.17.0: компактный итог */
:is(.ltl-quiz, .ltl-cab) .ltl-result { padding: 14px 18px 12px 54px; margin-bottom: 12px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__score { width: 11rem; min-height: 6.4rem; padding: .5rem 1.1rem .7rem; border-width: 3px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__num { font-size: 3.4rem; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__of { font-size: 1.3rem; margin-top: 2px; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__line { margin-top: 6px; font-size: .9rem; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__note { margin: 2px 0 !important; }
:is(.ltl-quiz, .ltl-cab) .ltl-result__top { margin-bottom: 8px; }
.ltl .ltl-quiz__title, .ltl-quiz .ltl-quiz__title { margin-bottom: .25em; }
.ltl .ltl-cab__h { margin-bottom: .3em; }
@media (max-width: 520px) { :is(.ltl-quiz, .ltl-cab) .ltl-result { padding-left: 40px; } :is(.ltl-quiz, .ltl-cab) .ltl-result__score { width: 9.5rem; } }

/* Версия 0.17.0: страница «Курс с учителем» */
.ltl-teacher__title { margin: 0 0 4px; font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 2.3rem; line-height: 1.1; color: #1f2d54; }
.ltl-teacher__course { margin: 0 0 14px; font-family: "Caveat", cursive; font-size: 1.5rem; color: #d64541; }
.ltl-teacher__text { margin: 0 0 14px; }
.ltl-teacher__price { display: inline-block; margin: 6px 0 14px; padding: 6px 16px; background: #fff3b0; border-radius: 3px; transform: rotate(-1deg); color: #1f2d54; }
.ltl-teacher__price span { font-family: "Caveat", cursive; font-size: 1.3rem; margin-right: 6px; }
.ltl-teacher__price strong { font-size: 1.5rem; }
.ltl-teacher__note { color: #5d6b8f; }
.ltl-teacher-cta { margin: 12px 0 0; }

/* ===== Версия 0.18.0: ряд кнопок курса, содержание курса отдельной страницей, подзаголовки в успеваемости ===== */
.ltl-course-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.ltl-course-actions .ltl-btn { margin: 0; text-align: center; }
@media (max-width: 640px) {
  .ltl-course-actions { flex-direction: column; align-items: stretch; }
  .ltl-course-actions .ltl-btn { width: 100%; box-sizing: border-box; }
}
.ltl .ltl-card__go { position: relative; z-index: 3; text-decoration: none; cursor: pointer; }
.ltl .ltl-card__go:hover { text-decoration: underline; }
.ltl-topic--outline .ltl-outline { margin: 14px 0 0; }
.ltl-topic--outline .ltl-outline__title { display: none; }
.ltl-topic__kind { margin: 10px 14px 0; padding: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4b5b8a; }
.ltl-topic__kind--drill { margin-top: 14px; color: #b3402f; }

/* ===== Версия 0.19.0: кнопки «Все курсы / Мои курсы», содержание курса ===== */
.ltl-navbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ltl .ltl-navbtns__a { margin: 0; }
@media (max-width: 520px) { .ltl-navbtns .ltl-navbtns__a { flex: 1 1 0; text-align: center; } }

.ltl-topic--outline .ltl-section__title { font-family: "Caveat", cursive; font-size: 1.6rem; color: #d64541; margin: 14px 0 8px; }

/* 0.19.0: система координат и векторы в чертежах */
.ltl-int__csline { stroke: #111827; stroke-width: 2; stroke-linecap: round; fill: none; }
.ltl-int__cshead { fill: #111827; }
.ltl-int__cslab { font-size: 18px; font-style: italic; fill: #111827; font-family: "Times New Roman", serif; }
.ltl-int__cstick { font-size: 14px; fill: #111827; }
.ltl-int__vhead { fill: #111827; }
.ltl-int__vlabel { font-size: 19px; font-style: italic; fill: #111827; font-family: "Times New Roman", serif; }
.ltl-int__vlabline { stroke: #111827; stroke-width: 1.2; fill: none; stroke-linecap: round; }
.ltl-int__ln.is-vec { stroke: #111827; stroke-width: 2.2; }

/* 0.22.0: объёмные фигуры и пунктир в чертеже */
.ltl-int__sh { fill: none; stroke: #111827; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ltl-int__sh.is-dash, .ltl-int__ln.is-dash, .ltl-int__circ.is-dash { stroke-dasharray: 6 5; }

/* 0.22.1: чертёж компактнее (на телефоне по-прежнему во всю ширину блока) */

/* 0.23.0: синее оформление интерактивов и вопросов теста */
.ltl-qcard { padding: 16px; border: 2.5px solid #2457a6; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(36, 87, 166, .26), 0 1px 3px rgba(36, 87, 166, .22); }
.ltl-int { border: 2.5px solid #2457a6; box-shadow: 0 5px 14px rgba(36, 87, 166, .26), 0 1px 3px rgba(36, 87, 166, .22); }
.ltl-qcard .ltl-int { margin: 1em 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.ltl-int--drawing .ltl-int__svg { max-width: 400px; margin-left: auto; margin-right: auto; border: 1.5px solid #9db6dd; }
.ltl-int__grid line { stroke: #d6e0f0; stroke-width: 1.2; }
.ltl-int__csline { stroke: #1d4fc4; stroke-width: 2.6; }
.ltl-int__cshead, .ltl-int__vhead { fill: #1d4fc4; }
.ltl-int__cslab, .ltl-int__cstick, .ltl-int__vlabel { fill: #1d4fc4; }
.ltl-int__ln.is-vec { stroke: #1d4fc4; stroke-width: 3; }
.ltl-int__vlabline { stroke: #1d4fc4; stroke-width: 1.5; }
.ltl-int__sh { stroke: #12306b; stroke-width: 2.6; }
.ltl-int__ln { stroke: #2f6bff; stroke-width: 2.4; }
.ltl-int__ln.is-aux { stroke: #7b8794; stroke-width: 1.4; }
.ltl-int__circ { stroke: #2f6bff; stroke-width: 2.4; }
.ltl-int__ln.is-vec { stroke: #1d4fc4; stroke-width: 3; }
.ltl-int__sh.is-dash, .ltl-int__ln.is-dash, .ltl-int__circ.is-dash { stroke-dasharray: 6 5; }
.ltl-int__ln.is-aux.is-dash { stroke-dasharray: 6 4; }
.ltl-int__msg:empty, .ltl-int__check:empty, .ltl-int__texts:empty { display: none; }

/* ===== 0.24.0: таблица в тексте вопроса ===== */
.ltl-qtext table.ltl-tbl, .ltl-review__body table.ltl-tbl { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: .6em 0; }
.ltl-tbl th, .ltl-tbl td { border: 1px solid #b9c2cf; padding: .45em .8em; text-align: center; vertical-align: middle; }
.ltl-tbl th { background: #eef2f8; font-weight: 600; }
.ltl-tbl td .ltl-gap { margin: .1em 0; }
.ltl-tbl td .ltl-gap__in { min-width: 3.2em; height: 2.2rem; }

/* ===== 0.25.0: график на координатной плоскости (вид «plot») ===== */
.ltl-int--plot .ltl-int__stage { text-align: center; }
.ltl-plot { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; background: #fff; user-select: none; -webkit-user-select: none; }
.ltl-plot__bg { fill: #fff; }
.ltl-plot__field { fill: #fff; stroke: #c9d0da; stroke-width: 1; }
.ltl-plot__gl { stroke: #d3d9e2; stroke-width: 1; }
.ltl-plot__gl.is-dash { stroke-dasharray: 4 4; }
.ltl-plot__gl.is-dot { stroke-dasharray: 0.1 4.5; stroke-linecap: round; stroke-width: 2; }
.ltl-plot__gdot { fill: #8d97a6; }
.ltl-plot__axis { stroke: #111; stroke-width: 1.8; }
.ltl-plot__head { fill: #111; }
.ltl-plot__tick { stroke: #111; stroke-width: 1.4; }
.ltl-plot__mtick { stroke: #111; stroke-width: 2.2; }
.ltl-plot__curve { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ltl-plot__curve.is-dash, .ltl-plot__ln.is-dash { stroke-dasharray: 7 5; }
.ltl-plot__ln { fill: none; stroke-linecap: round; }
.ltl-plot__asym, .ltl-plot__proj { stroke: #111; stroke-width: 1.3; stroke-dasharray: 6 4; fill: none; }
.ltl-plot__dot { stroke-width: 2; }
.ltl-plot__dot.is-open { fill: #fff; }
.ltl-plot__num { font: 12.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.ltl-plot__lab { font: 16px/1 "Times New Roman", Times, serif; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

/* ===== 0.27.0: ученик строит график на плоскости ===== */
.ltl-plot__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.ltl-plot__tools .ltl-btn.is-on { background: var(--ltl-accent, #2a6fdb); color: #fff; border-color: var(--ltl-accent, #2a6fdb); }
.ltl-plot__sl { stroke: #16358f; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.ltl-plot__sl.is-prev { stroke-dasharray: 5 4; opacity: .7; }
.ltl-plot__sd { fill: #16358f; stroke: #16358f; stroke-width: 2; }
.ltl-plot__sd.is-open { fill: #fff; }
.ltl-plot__sh { fill: rgba(224,128,27,.18); stroke: #e0801b; stroke-width: 1.6; cursor: grab; }
.ltl-plot__refl { fill: none; stroke: #d33a3a; stroke-width: 1.6; stroke-dasharray: 3 3; opacity: .8; }
.ltl-plot__refd { fill: #d33a3a; stroke: #d33a3a; stroke-width: 1.6; opacity: .8; pointer-events: none; }
.ltl-plot__refd.is-open { fill: #fff; }
.ltl-plot__res { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.ltl-plot__res li { padding: 2px 0; }
.ltl-plot__res .is-ok { color: var(--ltl-ok, #2e8b57); }
.ltl-plot__res .is-bad { color: var(--ltl-bad, #c0392b); }
.ltl-plot__tot { font-weight: 600; margin-top: 4px; }
.ltl-plot__tools [hidden] { display: none !important; }

/* ===== Версия 0.28.0: страница результатов — «Таблица разбора» (без жёлтого, двойные синие рамки со «ступенькой») ===== */
.ltl-solved { margin: 26px 0 22px; }
.ltl-solved__txt {
  display: block; padding: 14px 22px 17px; border-radius: 22px; text-align: center; color: #fff;
  font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.7rem; line-height: 1.25; text-shadow: 0 2px 3px rgba(0,60,25,.5);
  background: linear-gradient(180deg, #5fcf8a 0%, #2e9e5b 55%, #237c47 100%);
  box-shadow: 0 6px 0 #14502b, 0 11px 16px rgba(20,80,43,.3), inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -8px 12px rgba(0,50,20,.2);
}
.ltl-rt-wrap { margin: 0 0 14px; padding: 6px; border: 3px solid #2f66c4; border-radius: 10px; background: #fff; box-shadow: 0 6px 0 #234f9e, 0 11px 16px rgba(35,79,158,.22); overflow-x: auto; }
.ltl-rt { width: 100%; border-collapse: collapse; border: 2px solid #2f66c4; color: #1f2d54; font-family: "PT Sans", system-ui, sans-serif; table-layout: fixed; }
.ltl-rt th { padding: 10px 12px; text-align: left; font-size: 1rem; font-weight: 700; color: #123a85; background: #e3eefc; border: 1px solid #9cc4ec; }
.ltl-rt td { padding: 12px; vertical-align: top; border: 1px solid #b9d3f1; overflow-wrap: break-word; }
.ltl-rt th:nth-child(1) { width: 16%; } .ltl-rt th:nth-child(2) { width: 30%; } .ltl-rt th:nth-child(3) { width: 26%; } .ltl-rt th:nth-child(4) { width: 28%; }
.ltl-rt--short th:nth-child(1) { width: 40%; } .ltl-rt--short th:nth-child(2) { width: 60%; }
.ltl-rt__n { display: block; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: #d64541; }
.ltl-rt__topic { display: block; margin-top: 4px; font-size: .95rem; font-weight: 700; }
.ltl-rt td .ltl-qtext p { margin: 0 0 .5em; }
.ltl-rt td .ltl-qtext > :last-child { margin-bottom: 0; }
.ltl-rt__ans { font-size: 1rem; }
.ltl-rt__ans.is-none, .ltl-rt__ans.is-complex { color: #5d6b8f; font-style: italic; }
.ltl-ropts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ltl-ropt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid var(--ltl-line, #c9d3ea); border-radius: 8px; background: #fff; }
.ltl-ropt__mark { flex: none; color: #5d6b8f; line-height: 1.4; }
.ltl-ropt__t { min-width: 0; overflow-wrap: anywhere; }
.ltl-ropt.is-chosen { border: 2px solid var(--ltl-accent, #2f66c8); padding: 7px 11px; background: color-mix(in srgb, var(--ltl-accent, #2f66c8) 7%, #fff); }
.ltl-ropt.is-chosen .ltl-ropt__mark { color: var(--ltl-accent, #2f66c8); }
.ltl-rt__act > a { margin: 0 0 10px; }
.ltl-rt__act > a:last-child { margin-bottom: 0; }
.ltl .ltl-rt .ltl-task__link {
  display: block; padding: 9px 12px 11px; border-radius: 14px; text-align: center; font-size: .92rem; line-height: 1.25; font-weight: 700; color: #fff; text-decoration: none;
  text-shadow: 0 1px 2px rgba(10,30,70,.5);
  background: linear-gradient(180deg, #5a8fe0 0%, #2f66c4 55%, #234f9e 100%);
  box-shadow: 0 4px 0 #17376f, 0 7px 10px rgba(23,55,111,.3), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.ltl .ltl-rt .ltl-task__link--trainer { background: linear-gradient(180deg, #58c0ee 0%, #2a97cf 55%, #1a77ab 100%); box-shadow: 0 4px 0 #0e4a6b, 0 7px 10px rgba(14,74,107,.3), inset 0 1px 0 rgba(255,255,255,.5); }
.ltl .ltl-rt .ltl-task__link:hover { filter: brightness(1.07); color: #fff; }
.ltl .ltl-rt .ltl-task__link:active { transform: translateY(3px); box-shadow: 0 1px 0 #17376f, inset 0 1px 0 rgba(255,255,255,.4); }
@media (max-width: 720px) {
  .ltl-rt-wrap { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .ltl-rt, .ltl-rt tbody { display: block; border: 0; }
  .ltl-rt thead { display: none; }
  .ltl-rt tr { display: block; margin: 0 0 20px; padding: 5px; border: 3px solid #2f66c4; border-radius: 10px; background: #fff; box-shadow: 0 6px 0 #234f9e; }
  .ltl-rt td { display: block; border: 0; border-bottom: 1px solid #b9d3f1; padding: 10px 8px; }
  .ltl-rt td:last-child { border-bottom: 0; }
  .ltl-rt td::before { content: attr(data-l); display: block; margin-bottom: 3px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #5d6b8f; }
  .ltl-rt td:first-child::before { display: none; }
  .ltl-rt td.ltl-rt__act:empty { display: none; }
  .ltl-solved__txt { font-size: 1.4rem; padding: 12px 14px 15px; }
}

/* ===== Версия 0.28.0: карточка теста на странице урока — «Две колонки» ===== */
.ltl-lessontop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 1.2em; }
.ltl-lessontop .ltl-crumbs { margin: 0; font-size: 1.05rem; color: #1f2d54; }
.ltl-lessontop .ltl-crumbs a { font-weight: 700; color: #1648b0; }
.ltl-lessontop .ltl-crumbs__sep { color: #9cc4ec; margin: 0 .15em; }
.ltl-lessontop .ltl-navbtns { margin: 0; justify-content: flex-end; }
@media (max-width: 520px) { .ltl-lessontop .ltl-navbtns { width: 100%; justify-content: stretch; } }

.ltl-quiz__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 .7em; }
.ltl-quiz__head .ltl-quiz__title { margin: 0; }
.ltl-quiz__done { white-space: nowrap; }

.ltl-tcard { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; margin: 4px 0 10px; }
.ltl-tcard__box {
  box-sizing: border-box; padding: 22px 24px 24px; border: 3px solid #2f66c4; border-radius: 12px; background: #fff; color: #1f2d54;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #9cc4ec, 0 6px 0 #234f9e, 0 11px 16px rgba(35,79,158,.2);
}
.ltl-tcard__h { margin: 0 0 .6em; font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 1.7rem; line-height: 1.15; color: #1f2d54; }
.ltl-tcard__how .ltl-quiz__facts { flex-direction: column; gap: 8px; margin: 0; color: #1f2d54; font-size: 1.02rem; }
.ltl-tcard__how .ltl-quiz__facts li { position: relative; padding-left: 1.4em; }
.ltl-tcard__how .ltl-quiz__facts li::before { content: "✓"; position: absolute; left: 0; color: #2e9e5b; font-weight: 700; }
.ltl-tcard__how .ltl-quiz__intro-text { margin: 0 0 .8em; }
.ltl-tcard__how .ltl-quiz__intro-text p:last-child { margin-bottom: 0; }
.ltl-tcard__side { text-align: center; }
.ltl-tcard__res { margin: 0 0 16px; }
.ltl-tcard__lbl { font-size: .95rem; font-weight: 700; color: #5d6b8f; letter-spacing: .02em; }
.ltl-tcard__pct { font-family: "Marck Script", "Segoe Script", cursive; font-size: 3.4rem; line-height: 1.1; color: #d64541; }
.ltl-tcard__res.is-pass .ltl-tcard__pct { color: #2e9e5b; }
.ltl-tcard__pts { color: #1f2d54; font-size: 1.02rem; }
.ltl-tcard__st { margin-top: 4px; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.4rem; color: #d64541; }
.ltl-tcard__res.is-pass .ltl-tcard__st { color: #2e9e5b; }
.ltl-tcard__act { margin: 6px 0 4px; }
.ltl-tcard__act .ltl-btn--puffy { max-width: 100%; padding-left: 1.6em; padding-right: 1.6em; }
.ltl-tcard__sub { margin: 14px 0 0; }
.ltl-tcard__links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #9cc4ec; }
.ltl-tcard__unmark { margin: 0; }
.ltl .ltl-tcard__link { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: #1648b0; text-decoration: underline dashed rgba(22,72,176,.55); text-underline-offset: 5px; }
.ltl .ltl-tcard__link:hover { color: #0b2f80; }
@media (max-width: 760px) {
  .ltl-tcard { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ltl-tcard__side { order: -1; }
  .ltl-tcard__box { padding: 18px 16px 20px; }
  .ltl-tcard__pct { font-size: 2.8rem; }
}
.ltl-quiz:has(.ltl-tcard), .ltl-quiz:has(.ltl-result) { padding: 0; border: 0; background: transparent; }
.ltl-tcard { align-items: stretch; }
.ltl-tcard__act .ltl-btn--puffy { white-space: nowrap; font-size: 1.05rem; padding: .8em 1.5em; }

/* ===== Версия 0.29.0: «Задача и ответ» — кнопка и всплывающее окно; блок «Верно решённых задач нет» ===== */
.ltl-solved--none .ltl-solved__txt {
  background: linear-gradient(180deg, #f27a76 0%, #d64541 55%, #b02f2b 100%);
  box-shadow: 0 6px 0 #6e1815, 0 11px 16px rgba(110,24,21,.3), inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -8px 12px rgba(60,0,0,.2);
  text-shadow: 0 2px 3px rgba(80,0,0,.5);
}
.ltl-rt--win th:nth-child(1) { width: 30%; } .ltl-rt--win th:nth-child(2) { width: 24%; } .ltl-rt--win th:nth-child(3) { width: 46%; }
.ltl-rt--short.ltl-rt--win th:nth-child(1) { width: 40%; } .ltl-rt--short.ltl-rt--win th:nth-child(2) { width: 60%; }
.ltl .ltl-rt__view {
  display: inline-block; padding: 8px 18px 10px; border: 0; border-radius: 14px; cursor: pointer; list-style: none;
  font-family: "PT Sans", system-ui, sans-serif; font-size: .95rem; font-weight: 700; color: #123a85;
  background: linear-gradient(180deg, #eef5ff 0%, #cfe2fb 100%);
  box-shadow: 0 4px 0 #7fa9dd, 0 7px 10px rgba(35,79,158,.22), inset 0 1px 0 #fff;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.ltl-rt__view::-webkit-details-marker { display: none; }
.ltl .ltl-rt__view:hover { filter: brightness(.97); }
.ltl .ltl-rt__view:active { transform: translateY(3px); box-shadow: 0 1px 0 #7fa9dd, inset 0 1px 0 #fff; }
.ltl-rt__det[open] .ltl-rt__view { margin-bottom: 10px; }
.ltl-rt__detbody { font-size: .98rem; }
.ltl-twin__lbl { margin: 14px 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #5d6b8f; }

html.ltl-twin-open { overflow: hidden; }
.ltl-twin { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,30,70,.55); }
.ltl-twin__box {
  box-sizing: border-box; width: 100%; max-width: 760px; max-height: 100%; display: flex; flex-direction: column; color: #1f2d54;
  background: #fff; border: 3px solid #2f66c4; border-radius: 12px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #9cc4ec, 0 8px 0 #234f9e, 0 18px 30px rgba(10,30,80,.4);
}
.ltl-twin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px 24px; }
.ltl-twin__title { font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.5rem; line-height: 1.2; color: #d64541; }
.ltl-twin__x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; color: #fff; background: linear-gradient(180deg, #5a8fe0, #234f9e); box-shadow: 0 3px 0 #17376f; }
.ltl-twin__x:hover { filter: brightness(1.08); }
.ltl-twin__body { padding: 4px 24px 24px; overflow: auto; }
@media (max-width: 520px) { .ltl-twin { padding: 8px; } .ltl-twin__head { padding: 14px 12px 6px 16px; } .ltl-twin__title { font-size: 1.25rem; } .ltl-twin__body { padding: 4px 16px 18px; } }

/* ===== Версия 0.29.1: таблица разбора компактнее — строки уже, кнопки скромнее ===== */
.ltl-rt-wrap { padding: 4px; border-width: 2px; box-shadow: 0 4px 0 #234f9e, 0 8px 12px rgba(35,79,158,.18); }
.ltl-rt { font-size: .92rem; }
.ltl-rt th { padding: 6px 10px; font-size: .9rem; }
.ltl-rt td { padding: 6px 10px; vertical-align: middle; }
.ltl-rt__n { font-size: 1.25rem; display: inline; margin-right: .5em; }
.ltl-rt__topic { display: inline; margin: 0; font-size: .88rem; }
.ltl .ltl-rt__view { padding: 4px 12px 5px; border-radius: 10px; font-size: .85rem; box-shadow: 0 2px 0 #7fa9dd, inset 0 1px 0 #fff; }
.ltl .ltl-rt__view:active { transform: translateY(2px); box-shadow: 0 0 0 #7fa9dd, inset 0 1px 0 #fff; }
.ltl .ltl-rt .ltl-task__link { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 12px 5px; border-radius: 10px; font-size: .85rem; line-height: 1.2; font-weight: 700; box-shadow: 0 2px 0 #17376f, inset 0 1px 0 rgba(255,255,255,.4); }
.ltl .ltl-rt .ltl-task__link--trainer { box-shadow: 0 2px 0 #0e4a6b, inset 0 1px 0 rgba(255,255,255,.4); }
.ltl .ltl-rt .ltl-task__link:active { transform: translateY(2px); box-shadow: 0 0 0 #17376f; }
.ltl-rt__act > a:last-child { margin-right: 0; }
@media (max-width: 720px) {
  .ltl-rt tr { margin-bottom: 14px; padding: 3px 3px 4px; border-width: 2px; box-shadow: 0 4px 0 #234f9e; }
  .ltl-rt td { padding: 5px 8px; }
  .ltl-rt td::before { margin-bottom: 1px; font-size: .72rem; }
  .ltl-rt__n { display: block; margin: 0; }
  .ltl-rt__topic { display: block; }
}

/* ===== Версия 0.30.0: кнопки «Все курсы»/«Мои курсы» на досках, название курса в строке с заголовком ===== */
.ltl-board__nav { margin-left: auto; }
.ltl-board__nav .ltl-navbtns, .ltl-course-top > .ltl-navbtns { margin: 0; }
.ltl-course-top > .ltl-navbtns { margin-bottom: 12px; }
.ltl-teacher__title--line .ltl-teacher__course { display: inline; margin: 0 0 0 .5em; font-size: .62em; line-height: 1.2; white-space: normal; }
@media (max-width: 520px) { .ltl-board__nav { margin-left: 0; width: 100%; } .ltl-board__nav .ltl-navbtns { width: 100%; } }
.ltl-qdots { align-items: center; }
.ltl-qdots__fin { font-family: inherit; margin-left: auto; padding: 5px 14px 7px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(180deg, #5fcf8a 0%, #2e9e5b 60%, #237c47 100%); box-shadow: 0 3px 0 #14502b, inset 0 1px 0 rgba(255,255,255,.45); }
.ltl-qdots__fin:hover { filter: brightness(1.06); }
.ltl-qdots__fin:active { transform: translateY(2px); box-shadow: 0 1px 0 #14502b; }
.ltl-qdots__fin:disabled { opacity: .6; cursor: default; }
/* Полоса прогресса теста: цветная, «бегущая» */
.ltl-qhead .ltl-progress { height: 12px; background: #e3eefc; box-shadow: inset 0 1px 2px rgba(31,45,84,.2); }
.ltl-qhead .ltl-progress span {
  min-width: 12px; background-color: #2f66c4;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 8px, rgba(255,255,255,0) 8px 16px), linear-gradient(90deg, #2f66c4, #2a97cf 55%, #2e9e5b);
  background-size: 22.6px 22.6px, 100% 100%; animation: ltl-run 1s linear infinite; transition: width .5s ease;
}
@keyframes ltl-run { to { background-position: 22.6px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .ltl-qhead .ltl-progress span { animation: none; transition: none; } }

/* ===== Версия 0.30.0: «Помощь поддержки» ===== */
.ltl-sup-btn { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; font: 700 .9rem/1 "PT Sans", system-ui, sans-serif; color: #fff; background: linear-gradient(180deg, #5a8fe0 0%, #2f66c4 55%, #234f9e 100%); box-shadow: 0 3px 0 #17376f, 0 6px 14px rgba(23,55,111,.35), inset 0 1px 0 rgba(255,255,255,.45); }
.ltl-sup-btn:hover { filter: brightness(1.07); }
.ltl-sup-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #17376f; }
.ltl-sup-btn__q { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #234f9e; font-size: 1rem; }
@media (max-width: 520px) { .ltl-sup-btn { right: 10px; bottom: 10px; padding: 6px; } .ltl-sup-btn__t { display: none; } .ltl-sup-btn__q { width: 30px; height: 30px; } }
html.ltl-sup-open { overflow: hidden; }
.ltl-sup { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,30,70,.55); }
.ltl-sup__box { box-sizing: border-box; width: 100%; max-width: 520px; max-height: 100%; overflow: auto; padding: 20px 22px 22px; color: #1f2d54; background: #fff; border: 3px solid #2f66c4; border-radius: 12px; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #9cc4ec, 0 8px 0 #234f9e, 0 18px 30px rgba(10,30,80,.4); font-family: "PT Sans", system-ui, sans-serif; }
.ltl-sup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ltl-sup__h { margin: 0; font-family: "Marck Script", "Segoe Script", cursive; font-weight: 400; font-size: 1.7rem; line-height: 1.15; color: #d64541; }
.ltl-sup__x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #fff; background: linear-gradient(180deg, #5a8fe0, #234f9e); box-shadow: 0 3px 0 #17376f; }
.ltl-sup__lbl { display: block; margin: 12px 0 0; font-size: .9rem; font-weight: 700; }
.ltl-sup__ta, .ltl-sup__in { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; padding: 8px 10px; font: 400 1rem/1.4 "PT Sans", system-ui, sans-serif; color: #1f2d54; border: 2px solid #9cc4ec; border-radius: 8px; background: #f7f9fc; }
.ltl-sup__ta:focus, .ltl-sup__in:focus { outline: none; border-color: #2f66c4; background: #fff; }
.ltl-sup__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ltl-sup__note { margin: 12px 0 0; font-size: .82rem; color: #5d6b8f; }
.ltl-sup__err { min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; font-weight: 700; color: #b42318; }
.ltl-sup__send { margin-top: 6px; }
.ltl-sup__ok { text-align: center; padding: 10px 0 4px; }
.ltl-sup__okh { margin: 0 0 8px; font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.6rem; color: #2e9e5b; }
.ltl-qreport { margin: 6px 0 0; text-align: right; }
.ltl .ltl-qreport__btn { padding: 0; border: 0; background: none; cursor: pointer; font: 400 .85rem/1.2 "PT Sans", system-ui, sans-serif; color: #5d6b8f; text-decoration: underline dotted; text-underline-offset: 3px; }
.ltl .ltl-qreport__btn:hover { color: #d64541; }

/* 0.31.0: резюме преподавателя, метка «Новое», тесты курса, «ваше место» */
.ltl-new { display: inline-block; margin-left: .35em; padding: 1px 8px; border-radius: 999px; background: #e8f6ec; color: #1a6b3a; border: 1px solid #b6e0c4; font-size: .72em; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
.ltl-verdict { margin: 1.2rem 0; padding: 14px 18px; border: 1px solid var(--ltl-line, #e1e4ea); border-left: 4px solid var(--ltl-accent, #2457a6); border-radius: 10px; background: #fff; }
.ltl-verdict .ltl-cab__h3 { margin-top: 0; }
.ltl-verdict__text p { margin: 0 0 .6em; }
.ltl-verdict__date { margin: .4em 0 0; color: #6b7280; font-size: .85em; }
.ltl-ctests { margin-bottom: 1rem; }
.ltl-topic__place { display: block; flex-basis: 100%; margin: .25em 0 0; color: #1a6b3a; font-size: .88em; font-weight: 600; }
.ltl-place { margin: .6em 0 0; padding: 8px 12px; border-radius: 10px; background: #eef6ff; color: #1b4d8c; font-weight: 600; font-size: .95em; text-align: center; }

/* 0.32.0: карточка курса в кабинете — кнопка «Сообщение от учителя», кнопки «Содержание» и «Результаты» */
.ltl .ltl-card--cab .ltl-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ltl .ltl-card--cab .ltl-card__btn { flex: 1 1 0; text-align: center; font-weight: 800; border-width: 2px; padding: .55em .8em; }
.ltl .ltl-msgbtn { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 14px; border-radius: 10px; border: 2px solid #15934d; background: #e9f8ef; color: #0f6b36; font-weight: 800; font-size: .95rem; text-decoration: none; }
.ltl .ltl-msgbtn:hover { filter: brightness(.97); color: #0f6b36; }
.ltl .ltl-msgbtn.is-new { background: #15934d; color: #fff; }
.ltl .ltl-msgbtn.is-new:hover { color: #fff; filter: brightness(1.06); }
.ltl .ltl-msgbtn__d { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ltl-topic__lastpct { color: #6b7280; font-size: .85em; }

/* ===== Версия 0.33.0: правки по макетам ===== */
/* 1. Результаты теста: первая колонка шире, «Задача и ответ» уже */
.ltl-rt--win th:nth-child(1) { width: 38%; } .ltl-rt--win th:nth-child(2) { width: 150px; } .ltl-rt--win th:nth-child(3) { width: auto; }
.ltl-rt--short.ltl-rt--win th:nth-child(1) { width: 40%; } .ltl-rt--short.ltl-rt--win th:nth-child(2) { width: 60%; }
.ltl-rt--win td:nth-child(1) .ltl-rt__n, .ltl-rt--win td:nth-child(1) .ltl-rt__topic { display: inline-block; vertical-align: baseline; }
.ltl-rt--win td:nth-child(1) .ltl-rt__topic { margin: 0 0 0 .7em; }
.ltl-rt--win td:nth-child(2) .ltl-rt__view { white-space: nowrap; }

/* 2. Тесты и тренажёры курса — каждый в своей рамке */
.ltl-topic__quizzes { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.ltl-topic__quizzes li { padding: 12px 16px; border: 2px solid #2f66c4; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(35,79,158,.18); }
.ltl-topic__kind--drill + .ltl-topic__quizzes li { border-color: #2a8fc2; box-shadow: 0 2px 6px rgba(42,143,194,.2); }
.ltl-topic__qt { font-weight: 700; font-size: 1.05em; }

/* 3. Кнопки «Содержание» и «Результаты» в карточке — в одну строку */
.ltl .ltl-card--cab .ltl-card__btn { white-space: nowrap; min-width: 0; padding: .55em .3em; font-size: .88rem; box-sizing: border-box; }
.ltl .ltl-card--cab .ltl-card__actions { flex-wrap: nowrap; }

/* 4. Список уроков: строки-рамки с кружком состояния и стрелкой (страница «Содержание» и страница курса) */
.ltl-lessons--rows { counter-reset: none; display: flex; flex-direction: column; gap: 10px; border: 0; border-radius: 0; overflow: visible; }
.ltl-lessons--rows .ltl-lesson-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 0; border: 2px solid #9db8e3; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px rgba(36,87,167,.14); counter-increment: none; }
.ltl-lessons--rows .ltl-lesson-item::before { content: none; }
.ltl-lessons--rows .ltl-lesson-item:hover { border-color: #2457a7; box-shadow: 0 3px 8px rgba(36,87,167,.28); }
.ltl-lessons--rows .ltl-lesson-item a.ltl-lesson-item__a { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 16px; color: #17233b; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.ltl-lessons--rows .ltl-lesson-item a.ltl-lesson-item__a::after { content: '›'; margin-left: auto; font-size: 1.5rem; line-height: 1; color: #2457a7; }
.ltl-lessons--rows .ltl-lesson-item__num { flex: none; width: 34px; height: 34px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #2457a7; color: #2457a7; background: #fff; font-size: .95rem; font-weight: 700; }
.ltl-lessons--rows .ltl-lesson-item__t { flex: 1; min-width: 0; }
.ltl-lessons--rows .ltl-lesson-item__tag { flex: none; padding: 2px 10px; border-radius: 10px; background: #fdebc8; color: #7a4a00; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.ltl-lessons--rows .is-done { border-color: #7cc28f; background: #f3fbf5; }
.ltl-lessons--rows .is-done .ltl-lesson-item__num { background: #2f9e55; border-color: #2f9e55; color: #fff; }
.ltl-lessons--rows .is-done .ltl-lesson-item__tag { background: #d9f2e0; color: #14612e; }
.ltl-lessons--rows .is-current { border-color: #2457a7; background: #fff; }
.ltl-lessons--rows .is-current .ltl-lesson-item__num { background: #2457a7; color: #fff; }
.ltl-lessons--rows .is-current .ltl-lesson-item__tag { background: #dbe8fb; color: #12306a; }
.ltl-lessons--rows .is-locked { border-color: #c9d1de; background: #f3f5f9; }
.ltl-lessons--rows .is-locked .ltl-lesson-item__num { border-color: #c9d1de; background: #e4e8f0; color: #5b6b86; }
.ltl-lessons--rows .is-locked .ltl-lesson-item__tag { background: #e4e8f0; color: #4a5a76; }
.ltl-lessons--rows .is-locked a.ltl-lesson-item__a::after { color: #8b97ab; }
.ltl-lessons--rows .ltl-lesson-item .ltl-lesson-item__mark { display: none; }
.ltl-course-lessons { margin: 18px 0 0; }
.ltl-course-lessons__h { margin: 0 0 10px; font-family: "Caveat", cursive; font-size: 1.7rem; color: #1b2f66; }
@media (max-width: 520px) { .ltl-lessons--rows .ltl-lesson-item a.ltl-lesson-item__a { padding: 10px 12px; gap: 10px; font-size: 1rem; } .ltl-lessons--rows .ltl-lesson-item__tag { display: none; } }

/* ===== Версия 0.34.0: семейства функций у ученика ===== */
.ltl-plot__fam, .ltl-plot__pown { padding: .35em .6em; border: 1px solid #9db8e3; border-radius: 8px; background: #fff; color: #1f4a96; font-size: .9em; font-weight: 700; }
.ltl-plot__fam.is-on { background: #2457a7; color: #fff; border-color: #2457a7; }
.ltl-plot__tip { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #eef4ff; color: #1b3f86; font-size: .9em; }

/* ===== Версия 0.35.0: вопрос «Построить график» ===== */
.ltl-qplot { margin: 12px 0; }
.ltl-qplot .ltl-plot { max-width: 520px; margin: 0 auto; display: block; }
.ltl-qplot .ltl-int__stage { text-align: center; }
.ltl-plot__res--q { list-style: none; margin: 12px 0 0; padding: 10px 14px; border: 2px solid #9db8e3; border-radius: 10px; background: #f5f9ff; }
.ltl-plot__res--q li { margin: 2px 0; font-weight: 700; }
.ltl-plot__res--q li.is-ok { color: #14612e; }
.ltl-plot__res--q li.is-bad { color: #a12622; }
.ltl-plot__res--q li.ltl-plot__tot { margin-top: 6px; color: #12306a; }
.ltl-plot__tools[hidden] { display: none; }

/* 0.35.1: без столбца «Отработка» (нет ссылок) */
.ltl-rt--win.ltl-rt--noact th:nth-child(1) { width: auto; }
.ltl-rt--win.ltl-rt--noact th:nth-child(2) { width: 220px; }

/* 0.35.5: разбор «пропусков» в кабинете: ответ ученика на месте метки */
.ltl-gapv { display: inline-block; min-width: 2.2em; max-width: 100%; box-sizing: border-box; padding: .08em .55em; border: 2px solid #cfd5de; border-radius: 8px; font-weight: 700; text-align: center; vertical-align: middle; line-height: 1.3; overflow-wrap: anywhere; }
.ltl-gapv.is-ok { border-color: #2e8b57; background: #eef8f1; color: #1d5e3a; }
.ltl-gapv.is-bad { border-color: #c0392b; background: #fdecec; color: #8f2318; }
.ltl-gapv.is-empty { border-style: dashed; background: #f3f5f9; color: #6b7a90; font-weight: 400; }
.ltl-rt__bsum { font-weight: 700; margin: 0 0 .6em; color: #12306a; }

/* ---------- 0.36.0: увеличение картинок и видео, меньшие картинки в вопросах, заголовок темы ---------- */
.ltl-zoomable { cursor: zoom-in; }
.ltl-zoomable:focus-visible { outline: 3px solid #d64541; outline-offset: 2px; }
.ltl-win--banner .ltl-win__frame img, .ltl-win--video .ltl-win__frame video { cursor: zoom-in; }
.ltl-win__zoom { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(31,45,84,.78); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ltl-win__zoom:hover { background: #1f2d54; }
.ltl-win__zoom:focus-visible { outline: 3px solid #d64541; outline-offset: 2px; }
.ltl-qcard .ltl-qtext img { max-width: min(max(28%, 120px), 250px); max-height: 190px; width: auto; height: auto; }
.ltl-rt td .ltl-qtext img { max-width: min(100%, 250px); max-height: 190px; width: auto; height: auto; }
.ltl-zoom { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,30,70,.78); }
.ltl-zoom__box { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.ltl-zoom__media { display: block; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); width: auto; height: auto; object-fit: contain; background: #fff; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.ltl-zoom__x { position: fixed; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1; color: #fff; background: linear-gradient(180deg, #5a8fe0, #234f9e); box-shadow: 0 3px 0 #17376f; }
.ltl-zoom__x:hover { filter: brightness(1.08); }
.ltl-zoom__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) { .ltl-zoom { padding: 8px; } .ltl-zoom__media { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); } }
body.ltl-page-topic h1.entry-title, body.ltl-page-topic h1.wp-block-post-title, body.ltl-page-topic .entry-title, body.ltl-page-topic .wp-block-post-title, body.ltl-page-topic .page-title, body.ltl-page-topic .post-title, body.ltl-page-topic .entry-header h1 { font-size: 1.6rem !important; line-height: 1.25 !important; }

/* Оценка в кружке (0.37.0): только оценка, без «из … баллов»; цвет задаётся через --nb-red на самом кружке. */
:is(.ltl-quiz, .ltl-cab) .ltl-result__num--word { font-size: 3.2rem; }
@media (max-width: 520px) { :is(.ltl-quiz, .ltl-cab) .ltl-result__num--word { font-size: 2.4rem; } }
.ltl-gtable .ltl-grade { display: inline-block; min-width: 2.2em; text-align: center; font-family: "Marck Script", "Segoe Script", cursive; font-size: 1.6rem; line-height: 1.2; padding: 0 .4em; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-3deg); }

/* Карточки Зимнего раунда в личном кабинете. */
.ltl-cab .ltl-winter-card {
  min-width: 0;
  padding: clamp(16px, 3vw, 26px);
  color: #fff;
  background: linear-gradient(145deg, #0845c7, #073197);
  border-top: 5px solid #4dbdff;
  border-radius: 22px;
  box-shadow: 0 12px 28px #17377838;
}
.ltl-cab .ltl-winter-card--base {
  background: linear-gradient(145deg, #6d1bd0, #471593);
  border-color: #d394ff;
}
.ltl-cab .ltl-winter-card h3 { color: inherit; margin: 0 0 12px; }
.ltl-cab .ltl-winter-card progress { display: block; width: 100%; margin: 5px 0 10px; accent-color: #4dbdff; }
.ltl-cab .ltl-winter-card--base progress { accent-color: #d394ff; }
.ltl-cab .ltl-winter-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ltl-cab .ltl-winter-card__actions form { margin: 0; }
.ltl-cab .ltl-winter-card .ltl-btn { background: #e7efff; color: #172f69; }
.ltl-cab .ltl-winter-card__downloads { flex-basis: 100%; margin: 0; font-size: .875rem; }

.ltl-cab .ltl-winter-round {
  --plot: clamp(150px, 30vw, 240px);
  --bar-left: #3576e8;
  --bar-right: #79caff;
  --bar-side: #264cae;
  padding: clamp(12px, 3vw, 24px);
  margin-block: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #152b65, #303c90);
  color: #f6f8ff;
}
.ltl-cab .ltl-winter-round--base {
  --bar-left: #884ee0;
  --bar-right: #dfadff;
  --bar-side: #6334a8;
  background: linear-gradient(145deg, #36206e, #48369b);
}
.ltl-cab .ltl-winter-round :is(h3,p,small) { color: inherit; }
.ltl-winter-round__chart { display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.ltl-winter-round__axis { position: relative; height: var(--plot); margin-top: 26px; border-right: 1px solid #c0ccff; }
.ltl-winter-round__axis span { position: absolute; bottom: var(--row); right: 6px; transform: translateY(50%); font-size: 12px; }
.ltl-winter-round__scroll { overflow-x: auto; padding-top: 26px; }
.ltl-winter-round__columns { display: grid; grid-template-columns: repeat(30, minmax(70px, 1fr)); min-width: 2100px; }
.ltl-winter-round__slot { text-align: center; font-size: 13px; }
.ltl-winter-round__slot > small { display: block; min-height: 1.5em; font-size: 11px; }
.ltl-winter-round__plot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  height: var(--plot);
  border-bottom: 1px solid #c0ccff;
  background: repeating-linear-gradient(to top, transparent 0 calc(20% - 1px), #c0ccff44 calc(20% - 1px) 20%);
}
.ltl-cab .ltl-winter-round__bar {
  position: relative;
  height: max(4px, var(--height));
  width: 40px;
  border-radius: 4px 3px 0 0;
  background: linear-gradient(90deg, var(--bar-left), var(--bar-right));
  box-shadow: inset -7px 0 var(--bar-side);
  color: #fff;
}
.ltl-winter-round__bar::before { content: ""; position: absolute; inset: -4px 3px auto; height: 5px; transform: skewX(-35deg); background: var(--bar-right); }
.ltl-winter-round__bar strong { position: absolute; inset: auto 0 calc(100% + 5px); }
.ltl-cab .ltl-winter-round__bar:is(:hover,:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }

.ltl-winter-history details { margin-block: 12px; }
.ltl-winter-history summary { cursor: pointer; font-weight: 650; }
.ltl-winter-history__filters,.ltl-winter-history__pages { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 12px; }
.ltl-winter-history__filters a[aria-current] { border-color: #3459b7; background: #dbe6ff; }
.ltl-winter-history__pages { gap: 16px; }

.ltl-winter-map { overflow-x: auto; }
.ltl-winter-map table { min-width: max-content; text-align: center; }
.ltl-winter-map td,.ltl-winter-map th { border: 1px solid #a0afe0; white-space: nowrap; }
.ltl-winter-map tr > :first-child { position: sticky; left: 0; background: #dce6fc; color: #192e65; z-index: 1; }
.ltl-winter-mark { display: inline-block; padding: .2em .45em; border-radius: .45em; background: #e5e9f4; color: #35436c; }
.ltl-winter-mark--good { background: #c9f4db; color: #164a2b; }
.ltl-winter-mark--warn { background: #fff0ad; color: #5d4608; }
.ltl-winter-mark--poor { background: #ffd8de; color: #712332; }

.ltl-winter-success { margin-block: 20px; }
.ltl-winter-success__graph {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 1px solid #a0afe0;
  border-radius: 12px;
  background: #f3f6ff;
}
.ltl-winter-success__graph text { fill: #263a6b; font: 12px system-ui, sans-serif; }
.ltl-winter-success__grid line { stroke: #b7c6e8; }
.ltl-winter-success__graph polyline { fill: none; stroke: #365ad1; stroke-width: 2.5; }
.ltl-winter-success__graph circle { fill: #6644d4; stroke: #fff; }

/* Dark cabinet surfaces shared by account and course tabs. */
.ltl.ltl-cab {
  --cab-bg: #14254a;
  --cab-panel: #1c335d;
  --cab-raised: #25416f;
  --cab-line: #526e9d;
  --cab-text: #f3f7ff;
  --cab-muted: #c3d2ee;
  --cab-link: #b7d9ff;
  box-sizing: border-box;
  padding: clamp(14px, 3vw, 36px);
  border: 1px solid var(--cab-line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--cab-bg), #202e60);
  color: var(--cab-text);
}

.ltl-cab :is(.ltl-cab__h, .ltl-cab__h3, .ltl-stat__val, .ltl-my__head),
.ltl-cab__body > :is(h2, h3),
.ltl-cab :is(.ltl-cab__box, .ltl-winter-history) :is(h2, h3, h4, summary),
.ltl-cab .ltl-form label { color: var(--cab-text); }

.ltl-cab :is(.ltl-cab__facts, .ltl-cab__lead, .ltl-cab__note, .ltl-empty,
  .ltl-stat__label, .ltl-stat__note, .ltl-stat__val small, .ltl-form label small,
  .ltl-cab__cmeta, .ltl-cab__cbar small, .ltl-table th, .ltl-table small) {
  color: var(--cab-muted);
}

.ltl-cab :is(.ltl-reset, .ltl-cab__back a, .ltl-cab__h a, .ltl-cab__lnk,
  .ltl-table a:not(.ltl-btn), .ltl-winter-history p a) { color: var(--cab-link); }

.ltl-cab .ltl-tabs { border-color: var(--cab-line); }
.ltl-cab .ltl-tabs .ltl-tabs__a { color: var(--cab-muted); }
.ltl-cab .ltl-tabs .ltl-tabs__a:is(:hover, .is-current) {
  color: var(--cab-text);
  background: var(--cab-raised);
  border-color: var(--cab-line);
}

.ltl-cab :is(.ltl-stat, .ltl-cab__box) {
  min-width: 0;
  background: var(--cab-panel);
  border-color: var(--cab-line);
  box-shadow: 0 3px 0 #0d1c3a;
}
.ltl-cab .ltl-cab__forms {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.ltl-cab .ltl-cab__box > p strong { overflow-wrap: anywhere; }
.ltl-cab .ltl-stat .ltl-progress { background: var(--cab-line); }
.ltl-cab .ltl-stat .ltl-progress span { background: #83baff; }

.ltl-cab .ltl-table-wrap {
  background: var(--cab-panel);
  border: 1px solid var(--cab-line);
  border-radius: 12px;
}
.ltl-cab .ltl-table :is(th, td) { border-color: var(--cab-line); }
.ltl-cab .ltl-table td { color: var(--cab-text); }
.ltl-cab .ltl-table thead th,
.ltl-cab .ltl-winter-map tr > :first-child {
  background: var(--cab-raised);
  color: var(--cab-text);
}
.ltl-cab .ltl-table tbody tr:nth-child(even) { background: #203961; }

.ltl-cab .ltl-btn--ghost {
  color: var(--cab-link);
  border-color: var(--cab-line);
  background: var(--cab-panel);
}
.ltl-cab .ltl-btn--ghost:hover,
.ltl-cab .ltl-winter-history__filters a[aria-current] {
  color: var(--cab-text);
  background: var(--cab-raised);
  border-color: #9ebbea;
}

.ltl-cab .ltl-form input:is([type=text], [type=email], [type=password]) {
  color-scheme: dark;
  background: #112244;
  color: var(--cab-text);
  border-color: var(--cab-line);
  caret-color: var(--cab-text);
}
.ltl-cab .ltl-form input::placeholder { color: var(--cab-muted); }
.ltl-cab .ltl-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--cab-text);
  box-shadow: 0 0 0 1000px #112244 inset;
}
.ltl-cab :is(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid #b7d9ff;
  outline-offset: 2px;
}

.ltl-cab .ltl-winter-success__graph {
  background: var(--cab-panel);
  border-color: var(--cab-line);
}
.ltl-cab .ltl-winter-success__graph text { fill: var(--cab-text); }
.ltl-cab .ltl-winter-success__grid line { stroke: var(--cab-line); }
.ltl-cab .ltl-winter-success__graph polyline { stroke: #9ec6ff; }
.ltl-cab .ltl-winter-success__graph circle { fill: #9ec6ff; }

/* Keep the approved light result sheet legible inside the cabinet. */
.ltl-cab .ltl-result { color: #1f2d54; }
