/* Test School — блоки тренажёров: карточки «на полпути» / «всё решено» и блок автора.
   Цвета берутся из переменных тренажёра, поэтому светлая, тёмная и лиловая темы работают сами. */

.ts-tc{margin-top:12px;padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:var(--r-md,8px);background:var(--paper);color:var(--ink);font-size:14.5px;line-height:1.5;
  animation:tsTcIn .35s ease both}
.ts-tc--done{border-left-color:var(--ok);background:var(--ok-soft)}
.ts-tc__t{display:block;font-size:16px;margin-bottom:4px;color:var(--ink)}
.ts-tc__p{margin:0 0 12px;color:var(--ink-70)}
.ts-tc__a{display:flex;flex-wrap:wrap;gap:8px}
.ts-tc__a .btn{min-width:0;width:auto;text-decoration:none}
@keyframes tsTcIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ts-tc{animation:none}}
@media (max-width:520px){.ts-tc__a .btn{flex:1 1 100%;text-align:center;justify-content:center}}

.ts-author{display:flex;gap:16px;align-items:flex-start;margin:20px 0 28px;padding:16px 18px;
  border:1px solid var(--line);border-radius:var(--r-lg,14px);background:var(--paper)}
.ts-author img{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover}
.ts-author b{display:block;font-size:16px;color:var(--ink);margin-bottom:2px}
.ts-author p{margin:0 0 8px;color:var(--ink-70);font-size:14.5px;line-height:1.5}
.ts-author a{font-weight:600;color:var(--accent)}
@media (max-width:520px){.ts-author{padding:14px}.ts-author img{width:52px;height:52px}}

/* PDF-материалы в Telegram (бот) */
.ts-magnet{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:18px 0;padding:14px 18px;
  border:1px dashed var(--accent);border-radius:var(--r-lg,14px);background:var(--accent-soft)}
.ts-magnet__t{flex:1 1 280px;min-width:0}
.ts-magnet b{display:block;font-size:15.5px;color:var(--ink)}
.ts-magnet p{margin:2px 0 0;color:var(--ink-70);font-size:14px;line-height:1.45}
.ts-magnet .btn{min-width:0;width:auto;text-decoration:none;flex:none}
@media (max-width:520px){.ts-magnet .btn{flex:1 1 100%;text-align:center;justify-content:center}}
/* в «О тренажёре» ссылки красятся в акцент (.dt-about a) — возвращаем кнопке её цвет текста */
.ts-magnet a.btn{color:#fff}
html[data-theme="dark"] .ts-magnet a.btn{color:#111315}
html[data-accent="lilac"] .ts-magnet a.btn{color:#14152B}
