/* Материалдар базасы — спокойный слой в духе Apple поверх общего каркаса:
   сгруппированные списки на светлом поле, сегменты с бегущей плашкой,
   карточка-лист снизу. Всё под .mt — общие стили сайта не трогаем. */

.mt,
.mt-sheet,
.mt-test,
.mt-build {
  --mt-card: #fff;
  --mt-ink: #1d1d1f;
  --mt-ink-2: #6e6e73;
  --mt-ink-3: #a1a1a6;
  --mt-sep: rgba(60, 60, 67, .13);
  --mt-fill: rgba(118, 118, 128, .12);
  --mt-fill-2: rgba(118, 118, 128, .07);
  --mt-accent: var(--green);
  --mt-accent-soft: rgba(44, 157, 98, .11);
  --mt-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .05);
  --mt-ease: cubic-bezier(.32, .72, 0, 1);
  color: var(--mt-ink);
}
/* На всю ширину экрана. Слева список недель фиксированной ширины, справа
   карточка недели со списком предметов, и на широком мониторе потолок в
   1240 px оставлял справа пустую полосу в пол-экрана. Снимаем и свой
   потолок, и общий потолок страниц у main — как у «Тақырыптық талдау». */
main.mt-page { max-width: none; }
.mt { max-width: none; }
.mt button, .mt-sheet button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ── вкладки: одна плашка едет под выбранной ── */
.mt-tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(var(--n, 3), 1fr);
  padding: 3px; margin-bottom: 18px;
  border-radius: 12px; background: var(--mt-fill);
}
.mt-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / var(--n, 3));
  border-radius: 8px; background: var(--mt-card);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .1), 0 3px 1px rgba(0, 0, 0, .03);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .45s var(--mt-ease);
}
.mt-tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-align: left;
  color: var(--mt-ink-2) !important; transition: color .2s;
}
.mt-tab svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: color .2s;
}
.mt-tab-text { display: flex; flex-direction: column; min-width: 0; }
.mt-tab b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mt-tab small {
  font-size: 12px; color: var(--mt-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-tab.is-on { color: var(--mt-ink) !important; }
.mt-tab.is-on svg { color: var(--mt-accent); }
.mt-tab:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: -2px; }

/* ── панель выбора: класс, язык, программа ── */
.mt-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 24px; margin: 0 2px 20px;
}
.mt-field { display: flex; align-items: center; gap: 10px; }
.mt-field > span { font-size: 13px; color: var(--mt-ink-2); }
.mt-seg {
  display: inline-flex; padding: 2px;
  border-radius: 8px; background: var(--mt-fill);
}
.mt-seg button {
  min-width: 44px; padding: 5px 12px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .2s, box-shadow .2s;
}
.mt-seg button.is-on {
  background: var(--mt-card); font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04);
}
.mt-seg button small { margin-left: 5px; font-size: 12px; color: var(--mt-ink-3); }
.mt-bar-note {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--mt-ink-3);
}
.mt-bar-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 4px; background: #ff9f0a;
}

/* ── две колонки: список слева, содержимое справа ── */
.mt-split {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px; align-items: start;
}
.mt-list {
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 0 2px 12px; scrollbar-width: thin;
}
.mt-detail { min-width: 0; padding-bottom: 40px; }

/* ── подписи и сгруппированные списки ── */
.mt-cap {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 16px 7px;
  font-size: 12px; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase; color: var(--mt-ink-2);
}
.mt-cap:first-child { padding-top: 2px; }
.mt-cap--week {
  text-transform: none; letter-spacing: -.01em;
  font-size: 14px; font-weight: 600; color: var(--mt-ink);
}
.mt-group {
  overflow: hidden;
  border-radius: 12px; background: var(--mt-card);
  box-shadow: var(--mt-shadow);
}

.mt-row {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 9px 14px;
  border: 0; background: none; text-align: left;
}
.mt-row + .mt-row::before {
  content: ""; position: absolute; top: 0; right: 0; left: 56px;
  border-top: 1px solid var(--mt-sep);
}
.mt-row--topic + .mt-row::before,
.mt-row--lesson + .mt-row::before,
.mt-row--muted + .mt-row::before,
.mt-row--lesson + .mt-row--muted::before { left: 50px; }
button.mt-row { cursor: pointer; transition: background .15s; }
button.mt-row:hover { background: var(--mt-fill-2); }
button.mt-row:active { background: var(--mt-fill); }
.mt-row.is-on { background: var(--mt-accent-soft) !important; }
.mt-row.is-on::before, .mt-row.is-on + .mt-row::before { border-color: transparent; }

.mt-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-row-main b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.mt-row.is-on .mt-row-main b { font-weight: 600; }
.mt-row-main small { font-size: 13px; color: var(--mt-ink-2); line-height: 1.35; }
.mt-row-main small .mt-total { color: var(--mt-accent); font-weight: 600; }
.mt-row--muted .mt-row-main b { color: var(--mt-ink-3); font-weight: 400; }
.mt-link { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.mt-link:hover b { color: var(--mt-accent); }
.mt-link:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; border-radius: 4px; }
.mt-row-end { display: flex; align-items: center; gap: 8px; }
.mt-chev {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: var(--mt-ink-3); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* значок предмета — цветной квадрат, как в «Настройках» */
.mt-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)), var(--c);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
  font-size: 12px; font-weight: 700; letter-spacing: -.02em;
}
.mt-ico--lg { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.mt-ico--dense { font-size: 10px; letter-spacing: -.04em; }

.mt-tag {
  padding: 1px 6px; border-radius: 4px; vertical-align: 1px;
  font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--mt-ink-2); background: var(--mt-fill);
}
.mt-count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--mt-accent); background: var(--mt-accent-soft);
}
.mt-count.is-zero { color: var(--mt-ink-3); background: var(--mt-fill); }
.mt-no {
  width: 24px; text-align: center;
  font-size: 13px; color: var(--mt-ink-3); font-variant-numeric: tabular-nums;
}

/* ── шапка предмета или недели ── */
.mt-hero {
  margin-bottom: 6px; padding: 22px 24px;
  border-radius: 20px; background: var(--mt-card);
  box-shadow: var(--mt-shadow);
}
.mt-hero-top { display: flex; align-items: center; gap: 16px; }
.mt-hero h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.mt-hero p { margin: 3px 0 0; font-size: 14px; color: var(--mt-ink-2); }
.mt-back { display: none; }

.mt-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-top: 18px;
}
.mt-stat {
  display: flex; flex-direction: column;
  padding: 12px 14px; border-radius: 12px; background: var(--mt-fill-2);
}
.mt-stat b {
  font-size: 24px; font-weight: 600; letter-spacing: -.02em;
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.mt-stat b i { font-style: normal; font-size: 16px; font-weight: 500; color: var(--mt-ink-3); }
.mt-stat span { margin-top: 2px; font-size: 13px; }
.mt-stat small { font-size: 12px; color: var(--mt-ink-3); }

.mt-progress {
  height: 4px; margin-top: 16px; overflow: hidden;
  border-radius: 4px; background: var(--mt-fill);
}
.mt-progress i {
  display: block; height: 100%;
  border-radius: 4px; background: var(--mt-accent);
  transition: width .6s var(--mt-ease);
}

.mt-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.mt-sources > span { margin-right: 4px; font-size: 12px; color: var(--mt-ink-2); }
.mt-src, .mt-kinds i {
  padding: 4px 10px; border-radius: 999px;
  font-style: normal; font-size: 12px; font-weight: 500;
  background: var(--mt-fill-2); box-shadow: inset 0 0 0 1px var(--mt-sep);
}
.mt-src b { font-weight: 600; color: var(--mt-accent); }

.mt-jump {
  margin-top: 14px; padding: 7px 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--mt-accent) !important; background: var(--mt-accent-soft);
}
.mt-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; color: var(--mt-ink-2); background: var(--mt-fill-2);
}
.mt-note--exam { color: #b3261e; background: rgba(255, 59, 48, .08); }

/* календарный листок недели */
.mt-cal {
  width: 56px; height: 56px; flex-shrink: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 12px; background: var(--mt-card);
  box-shadow: inset 0 0 0 1px var(--mt-sep);
}
.mt-cal small {
  width: 100%; padding: 2px 0; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: #ff3b30;
}
.mt-cal b { font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }

/* ── уровни и ячейки ── */
.mt-levels, .mt-slots { display: flex; gap: 6px; }
.mt-lv, .mt-slot {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; min-width: 34px; padding: 0 9px;
  border: 0; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--mt-ink-3) !important; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, .18);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.mt-lv b, .mt-slot b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-lv:hover, .mt-slot:hover {
  color: var(--mt-ink) !important; background: var(--mt-fill-2);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, .3);
}
.mt-lv:active, .mt-slot:active { transform: scale(.95); }
.mt-lv[data-level="A"], .mt-spec .lv-A { --lv: #1f8f4e; --lv-bg: rgba(52, 199, 89, .14); }
.mt-lv[data-level="B"], .mt-spec .lv-B { --lv: #0a6fd8; --lv-bg: rgba(10, 132, 255, .12); }
.mt-lv[data-level="C"], .mt-spec .lv-C { --lv: #c46a00; --lv-bg: rgba(255, 159, 10, .16); }
.mt-lv[data-level="D"], .mt-spec .lv-D { --lv: #d02b50; --lv-bg: rgba(255, 55, 95, .12); }
.mt-lv.has { color: var(--lv) !important; background: var(--lv-bg); box-shadow: none; }
.mt-slot.has { color: var(--mt-accent) !important; background: var(--mt-accent-soft); box-shadow: none; }

/* состав недельного экзамена */
.mt-row--exam { align-items: start; padding: 12px 14px; }
.mt-row--exam .mt-ico, .mt-row--exam .mt-row-end { margin-top: 2px; }
.mt-spec { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mt-spec i {
  padding: 2px 7px; border-radius: 4px;
  font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--lv, var(--mt-ink-2)); background: var(--lv-bg, var(--mt-fill-2));
}
.mt-spec--none { margin-top: 6px; font-size: 12px; color: var(--mt-ink-3); }

/* список недель */
.mt-wk { width: 34px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mt-wk b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-wk small { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--mt-ink-3); }
.mt-row--week.is-rest .mt-row-main b, .mt-row--week.is-rest .mt-wk b { color: var(--mt-ink-3); }
.mt-badge {
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
  font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.mt-badge--now { color: #fff; background: var(--mt-accent); }
.mt-badge--exam { color: #d70015; background: rgba(255, 59, 48, .11); }
.mt-dot {
  width: 8px; height: 8px; border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(60, 60, 67, .22);
}
.mt-dot.is-half { background: #ff9f0a; box-shadow: none; }
.mt-dot.is-full { background: var(--mt-accent); box-shadow: none; }

/* Строка недели держит две кнопки, поэтому сама она уже не кнопка:
   браузер не пускает кнопку в кнопку — разметку он в таком случае
   разбирает по-своему и выбрасывает вложенную наружу. Всю строку накрывает
   прозрачная кнопка, переключатель стоит поверх неё. */
.mt-hit {
  position: absolute; inset: 0;
  border: 0; background: none; cursor: pointer;
}
.mt-hit:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: -2px; border-radius: 12px; }
.mt-row--week:hover { background: var(--mt-fill-2); }
.mt-row--week:active { background: var(--mt-fill); }
.mt-row--week .mt-row-end { position: relative; }
/* Открыть неделю ученикам — прямо из списка: в лист ячейки за этим больше
   ходить не нужно. Переключатель зелёный, когда экзамен открыт. */
.mt-sw {
  position: relative; flex-shrink: 0;
  width: 40px; height: 24px; padding: 0;
  border: 0; border-radius: 999px; background: rgba(120, 120, 128, .28);
  cursor: pointer; transition: background .2s;
}
.mt-sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1);
}
.mt-sw.is-on { background: var(--mt-accent); }
.mt-sw.is-on::after { transform: translateX(16px); }
.mt-sw:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; }

.mt-week { scroll-margin-top: 16px; }
.mt-week.is-now .mt-group { box-shadow: 0 0 0 2px var(--mt-accent), var(--mt-shadow); }

/* ── тест нұсқалары: полки карточек ── */
.mt-years { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mt-years button {
  padding: 5px 12px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--mt-fill-2); box-shadow: inset 0 0 0 1px var(--mt-sep);
  transition: background .15s;
}
.mt-years button:hover { background: var(--mt-fill); }
.mt-years button.has { color: var(--mt-accent) !important; background: var(--mt-accent-soft); box-shadow: none; }
.mt-years button small { margin-left: 5px; font-size: 12px; font-weight: 500; }

.mt-shelf { scroll-margin-top: 16px; }
.mt-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.mt-card {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 116px; padding: 14px 16px;
  border: 0; border-radius: 16px; text-align: left; text-decoration: none;
  color: var(--mt-ink) !important; background: var(--mt-card);
  box-shadow: var(--mt-shadow); cursor: pointer;
  transition: transform .2s var(--mt-ease), box-shadow .2s;
}
.mt-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 8px 20px rgba(0, 0, 0, .08); }
.mt-card:active { transform: scale(.98); }
.mt-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mt-card-tags i {
  padding: 2px 7px; border-radius: 4px;
  font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--mt-ink-2); background: var(--mt-fill-2);
}
.mt-card b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.mt-card small { font-size: 13px; color: var(--mt-ink-2); }
.mt-shelf.is-empty .mt-cards { grid-template-columns: minmax(0, 1fr); }
.mt-shelf.is-empty .mt-cap { padding-top: 14px; }
.mt-shelf-none { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 13px; color: var(--mt-ink-3); background: var(--mt-fill); }

/* ── пусто и загрузка ── */
.mt-blank {
  padding: 48px 24px; text-align: center;
  font-size: 14px; color: var(--mt-ink-2);
  border-radius: 20px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-skel {
  display: block; width: 60%; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--mt-fill-2) 25%, var(--mt-fill) 50%, var(--mt-fill-2) 75%);
  background-size: 200% 100%;
  animation: mt-shimmer 1.2s linear infinite;
}
.mt-skel + .mt-skel { margin-top: 10px; }
.mt-row .mt-skel { grid-column: 1 / -1; }
@keyframes mt-shimmer { to { background-position: -200% 0; } }

/* ── лист ячейки ── */
html.mt-lock { overflow: hidden; }
.mt-sheet {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  font-family: var(--font);
}
.mt-sheet-back {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  opacity: 0; transition: opacity .3s;
}
.mt-sheet-panel {
  position: relative;
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 26px 26px 22px;
  border-radius: 20px; background: var(--mt-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06);
  opacity: 0; transform: translateY(12px) scale(.97);
  transition: transform .45s var(--mt-ease), opacity .25s;
}
.mt-sheet.is-open .mt-sheet-back { opacity: 1; }
.mt-sheet.is-open .mt-sheet-panel { opacity: 1; transform: none; }
.mt-grab { display: none; }
.mt-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  color: var(--mt-ink-2) !important; background: var(--mt-fill);
}
.mt-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mt-crumbs {
  padding-right: 40px;
  font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--mt-ink-2);
}
.mt-sheet h3 {
  margin: 6px 0 0; padding-right: 30px;
  font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
}
.mt-sheet-sub { margin: 4px 0 0; font-size: 14px; color: var(--mt-ink-2); }
.mt-sheet .mt-spec { margin-top: 10px; }
.mt-seg--sheet { display: flex; margin-top: 16px; }
.mt-seg--sheet button { flex: 1; }
.mt-empty {
  margin-top: 16px; padding: 28px 20px; text-align: center;
  border-radius: 16px; background: var(--mt-fill-2);
}
.mt-empty-ico {
  width: 48px; height: 48px; margin: 0 auto 10px;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-empty-ico svg {
  width: 24px; height: 24px; fill: none; stroke: var(--mt-accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.mt-empty b { display: block; font-size: 16px; font-weight: 600; }
.mt-empty p { max-width: 340px; margin: 4px auto 0; font-size: 14px; color: var(--mt-ink-2); }
.mt-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.mt-primary {
  display: block; width: 100%; margin-top: 18px; padding: 12px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 600;
  color: #fff !important; background: var(--mt-accent);
}
.mt-primary:disabled { color: var(--mt-ink-3) !important; background: var(--mt-fill); cursor: not-allowed; }
.mt-foot { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--mt-ink-3); }

/* ── материалы ячейки ── */
.mt-mats { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mt-mat { padding: 14px; border-radius: 16px; background: var(--mt-fill-2); }
.mt-mat-top { display: flex; align-items: center; gap: 12px; }
.mt-mat-ico {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-mat-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--mt-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mt-mat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-mat-main b { font-size: 15px; font-weight: 600; }
.mt-mat-main small { font-size: 13px; color: var(--mt-ink-2); }
.mt-access {
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--mt-ink-2); background: var(--mt-fill);
}
.mt-access.is-open { color: var(--mt-accent); background: var(--mt-accent-soft); }
.mt-mat-actions { display: flex; gap: 8px; margin-top: 12px; }
.mt-btn {
  flex: 1; padding: 9px 12px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff !important; background: var(--mt-accent);
  transition: filter .15s, transform .1s;
}
.mt-btn:hover { filter: brightness(1.05); }
.mt-btn:active { transform: scale(.98); }
.mt-btn--ghost { color: var(--mt-accent) !important; background: var(--mt-accent-soft); }

/* ── тест: предпросмотр для завуча ── */
.mt-test { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; background: #f5f5f7; font-family: var(--font); }
.mt-test-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  background: rgba(245, 245, 247, .82);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--mt-sep);
}
.mt-back2 { padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--mt-accent) !important; }
.mt-test-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-test-title b { font-size: 15px; font-weight: 600; }
.mt-test-title small { font-size: 12px; color: var(--mt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-test-bar .mt-btn { flex: 0 0 auto; padding: 7px 14px; font-size: 13px; }
.mt-test-page {
  max-width: 980px; margin: 24px auto 60px; padding: 32px 36px;
  border-radius: 20px; background: #fff; box-shadow: var(--mt-shadow);
}
.mt-test-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid #d9412b;
}
.mt-test-head span { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.mt-test-head small { font-size: 13px; color: var(--mt-ink-2); white-space: nowrap; }
.mt-test-instr {
  margin-bottom: 20px; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; background: #fff8ee; box-shadow: inset 0 0 0 1.5px #f0b25c;
}
.mt-test-instr ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.mt-test-cols { column-count: 2; column-gap: 44px; column-rule: 1.5px solid #f1c3bb; }
.mt-q { break-inside: avoid; margin-bottom: 18px; }
.mt-q-passage { break-inside: avoid; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; background: #fff8ee; box-shadow: inset 3px 0 0 #f0b25c; }
.mt-q-t { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; font-size: 15px; font-weight: 600; line-height: 1.7; }
/* Условие бывает списком: слова шифра, ряд чисел, подписи к рисунку.
   Переносы строк из базы должны остаться переносами — иначе список
   склеивается в одну строку и задача перестаёт читаться. Это же правило
   работает и на листе, и в «Емтихан тапсыру»: разметка у них одна. */
.mt-q-t > span + span { white-space: pre-line; }
.mt-q-expr { margin: 4px 0 0 28px; font-size: 16px; font-weight: 600; }
.mt-q-fig { margin: 6px 0 0 28px; }
.mt-q-fig svg { max-width: 100%; height: auto; }
.mt-q-opts { display: grid; gap: 2px; margin: 4px 0 0 28px; }
.mt-q-opts.is-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; margin-top: 8px; }
.mt-q-o {
  display: flex; align-items: center; gap: 6px; min-height: 30px;
  margin-left: -6px; padding: 2px 6px; border-radius: 8px; font-size: 15px;
}
.mt-q-o b { font-weight: 600; }
.mt-q-grp { grid-column: 1 / -1; font-weight: 600; margin-top: 4px; }
.mt-q-o.is-right { color: var(--mt-accent); font-weight: 600; background: var(--mt-accent-soft); }
.mt-q-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0 28px; font-size: 13px; color: var(--mt-ink-2); }
.mt-q-key i { padding: 2px 7px; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 600; }
.mt-q-ans { color: #fff; background: var(--mt-accent); }
.mt-q-lvl { color: var(--mt-ink-2); background: var(--mt-fill); }

/* дробь столбиком (web/lib/math-text.js) */
.mf { display: inline-flex; align-items: center; gap: 2px; margin: 0 2px; vertical-align: middle; }
.mf-f { display: inline-flex; flex-direction: column; text-align: center; font-size: 14px; line-height: 1.1; }
.mf-n { padding: 0 3px 1px; border-bottom: 1.5px solid currentColor; }
.mf-d { padding: 1px 3px 0; }
/* Корень: знак тянется на высоту подкоренного выражения, черта закрывает его целиком. */
.mr { display: inline-block; position: relative; padding-left: 0.56em; margin: 0 0.05em 0 0.08em; line-height: 0; }
.mr:has(> .mr-i) { margin-left: 0.3em; }
.mr-i { position: absolute; right: calc(100% - 0.3em); bottom: calc(50% + 0.18em); font-size: 0.6em; line-height: 1; }
.mr-s { position: absolute; left: 0; top: 0.04em; bottom: 0; width: 0.56em; height: calc(100% - 0.04em); overflow: visible; fill: none; stroke: currentColor; stroke-width: 0.08em; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.mr-s path { vector-effect: non-scaling-stroke; }
.mr-b { display: inline-block; border-top: 0.08em solid currentColor; padding: 0.1em 0.06em 0 0.08em; line-height: 1.2; }
.mt-q-key .mf-f { font-size: 11px; }
.mt-q-expr .mf-f { font-size: 14px; }

/* ── тапсырма құрастырғыш ──
   Слева — настройки (уровни, темы, источники), справа — сам экзамен
   карточками: задачу видно целиком и её можно заменить, не уходя со
   страницы. На телефоне настройки уезжают наверх одной колонкой. */
.mt-build { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; background: #f5f5f7; font-family: var(--font); }
.mt-build-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: rgba(245, 245, 247, .82);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--mt-sep);
}
.mt-build-bar .mt-btn { flex: 0 0 auto; padding: 7px 14px; font-size: 13px; }
.mt-bstat { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.mt-bchip {
  padding: 3px 9px; border-radius: 8px; background: var(--mt-fill);
  font-size: 12px; font-style: normal; font-weight: 600; color: var(--mt-ink-2);
}
.mt-bchip.is-saved { background: rgba(44, 157, 98, .13); color: #1f7a4c; }
.mt-bchip.lv-A { background: rgba(44, 157, 98, .13); color: #1f7a4c; }
.mt-bchip.lv-B { background: rgba(0, 122, 255, .13); color: #0a63c9; }
.mt-bchip.lv-C { background: rgba(255, 149, 0, .16); color: #b26200; }
.mt-bchip.lv-D { background: rgba(175, 82, 222, .14); color: #7d3bb0; }
.mt-bmsg {
  margin: 10px 20px 0; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 149, 0, .12); color: #8a4b00; font-size: 13px;
}
.mt-build-body {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px;
  max-width: 1240px; margin: 18px auto 60px; padding: 0 20px;
  align-items: start;
}
.mt-bside { position: sticky; top: 72px; display: grid; gap: 12px; }
.mt-bblock {
  display: grid; gap: 9px; padding: 14px 16px;
  border-radius: 16px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-bblock > b { font-size: 13px; }
.mt-blevels { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.mt-blevel {
  display: grid; justify-items: center; gap: 3px; padding: 8px 6px;
  border-radius: 12px; background: var(--mt-fill-2);
}
.mt-blevel > span { font-weight: 700; font-size: 13px; }
.mt-blevel.lv-A > span { color: #1f7a4c; }
.mt-blevel.lv-B > span { color: #0a63c9; }
.mt-blevel.lv-C > span { color: #b26200; }
.mt-blevel.lv-D > span { color: #7d3bb0; }
.mt-blevel input {
  width: 64px; padding: 5px; border: 1px solid var(--mt-sep); border-radius: 8px;
  background: var(--mt-card); font: inherit; font-size: 15px; font-weight: 600; text-align: center; color: inherit;
}
.mt-blevel small { font-size: 11px; color: var(--mt-ink-3); }
.mt-bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-btag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border: 1px solid var(--mt-sep); border-radius: 999px;
  background: var(--mt-card); font: inherit; font-size: 12px; color: var(--mt-ink-2); cursor: pointer;
}
.mt-btag small { font-size: 11px; color: var(--mt-ink-3); }
.mt-btag.is-week { border-style: dashed; }
.mt-btag.is-on {
  border-color: transparent; background: var(--mt-accent-soft);
  color: var(--mt-accent); font-weight: 600;
}
.mt-btag.is-on small { color: inherit; opacity: .7; }
.mt-btag[disabled] { opacity: .45; cursor: default; }
.mt-bcheck { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.mt-bcheck input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mt-accent); }
.mt-bcheck > span { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; }
.mt-bcheck > span small { font-size: 11px; color: var(--mt-ink-3); }
.mt-bsrc { display: grid; gap: 7px; }
.mt-bquota {
  width: 58px; padding: 4px 6px; border: 1px solid var(--mt-sep); border-radius: 8px;
  background: var(--mt-card); font: inherit; font-size: 12px; text-align: center; color: inherit;
}
.mt-bnote { font-size: 11px; line-height: 1.4; color: var(--mt-ink-3); }
.mt-bsaved {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--mt-sep); font-size: 13px;
}
.mt-bsaved span { display: grid; min-width: 0; }
.mt-bsaved small { font-size: 11px; color: var(--mt-ink-3); }
.mt-blist { display: grid; gap: 10px; }
.mt-bq {
  display: grid; gap: 8px; padding: 14px 16px;
  border-radius: 16px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-bq.is-lock { box-shadow: 0 0 0 1.5px var(--mt-accent), var(--mt-shadow); }
.mt-bq header { display: flex; align-items: center; gap: 8px; }
.mt-bq-n { font-weight: 700; font-size: 13px; color: var(--mt-ink-3); min-width: 20px; }
.mt-bq-lvl {
  padding: 2px 8px; border-radius: 8px; background: var(--mt-fill);
  font-size: 11px; font-style: normal; font-weight: 700;
}
.mt-bq-lvl.lv-A { background: rgba(44, 157, 98, .13); color: #1f7a4c; }
.mt-bq-lvl.lv-B { background: rgba(0, 122, 255, .13); color: #0a63c9; }
.mt-bq-lvl.lv-C { background: rgba(255, 149, 0, .16); color: #b26200; }
.mt-bq-lvl.lv-D { background: rgba(175, 82, 222, .14); color: #7d3bb0; }
.mt-bq-meta { display: grid; min-width: 0; flex: 1; }
.mt-bq-meta b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-bq-meta small { font-size: 11px; color: var(--mt-ink-3); }
.mt-bq-btns { display: flex; gap: 4px; }
.mt-ib {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: var(--mt-fill-2); font: inherit; font-size: 13px; line-height: 1; color: var(--mt-ink-2); cursor: pointer;
}
.mt-ib:hover { background: var(--mt-fill); }
.mt-bq-t {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; font-size: 15px; line-height: 1.45; text-align: left; color: inherit; cursor: pointer;
}
.mt-bq-t:hover { color: var(--mt-accent); }
.mt-bq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; font-size: 13px; }
.mt-bq-opts b { color: var(--mt-ink-3); font-weight: 600; }
.mt-bq-opts .is-right { color: var(--mt-accent); font-weight: 600; }
.mt-bq-key { font-size: 12px; color: var(--mt-ink-2); }
.mt-badd { display: flex; gap: 8px; justify-content: center; padding: 4px 0 20px; }
.mt-bpick { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .28); }
.mt-bpick-in {
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  width: min(720px, 100%); max-height: 80vh; overflow: hidden;
  border-radius: 20px; background: var(--mt-card); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.mt-bpick-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--mt-sep); }
.mt-bpick-list { overflow-y: auto; padding: 8px; display: grid; gap: 6px; }
.mt-bpick-row {
  display: grid; gap: 4px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: var(--mt-fill-2); font: inherit; text-align: left; color: inherit; cursor: pointer;
}
.mt-bpick-row:hover { background: var(--mt-fill); }
.mt-bpick-t { font-size: 13px; line-height: 1.4; }

/* ── бумажный вариант недели ──
   Настройки под списком предметов, сам лист — та же вёрстка теста, но
   страниц несколько: каждый предмет каждого варианта с новой. */
.mt-pdf {
  display: grid; gap: 12px; padding: 16px;
  border-radius: 16px; background: var(--mt-card); box-shadow: var(--mt-shadow);
}
.mt-pdf-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mt-ink-2); }
.mt-pdf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-pdf-lbl { font-size: 13px; color: var(--mt-ink-2); }
.mt-pdf-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--mt-fill-2); }
.mt-pdf-seg button {
  min-width: 34px; padding: 5px 8px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--mt-ink-2); cursor: pointer;
}
.mt-pdf-seg button.is-on { background: var(--mt-card); color: var(--mt-ink); box-shadow: var(--mt-shadow); }
.mt-pdf .mt-btn { margin-left: auto; }
.mt-pdf-msg { margin: 0; font-size: 13px; color: var(--mt-ink-2); }
/* Листы A4 для файла. Страница складывается здесь же, в браузере: лист
   ровно 794×1123 точки (A4 при 96 dpi), две колонки с разделителем
   посередине, а задача, которая не влезла, целиком уезжает в следующую
   колонку — в файле не должно быть ни разрезанных задач, ни пустого низа.
   Сами листы стоят за краем экрана: их снимает html2canvas. */
.mt-a4-wrap { position: fixed; top: 0; left: -20000px; width: 794px; z-index: -1; }
.mt-a4 {
  display: flex; flex-direction: column;
  width: 794px; height: 1123px; padding: 40px 44px 20px; overflow: hidden;
  background: #fff; color: #1d1d1f; font-family: var(--font);
}
.mt-a4-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid #d9412b;
}
.mt-a4-head b { font-size: 20px; letter-spacing: -.02em; }
.mt-a4-head small { font-size: 12px; color: #6e6e73; white-space: nowrap; }
.mt-a4-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: #6e6e73; }
.mt-a4-meta i { padding: 2px 10px; border-radius: 8px; background: #d9412b; font-style: normal; font-weight: 700; color: #fff; }
/* Строка для заполнения стоит чуть ниже шапки: между ней и меткой
   варианта нужен воздух, иначе лист выглядит сжатым. */
/* Колонкам достаётся ровно остаток листа: flex-basis 0, иначе их
   содержимое считается «нужной» высотой, ряд раздаётся и залезает на
   подпись внизу — задача тогда печаталась поверх неё. */
.mt-a4 > * { flex: 0 0 auto; }
.mt-a4-cols { display: flex; flex: 1 1 0; min-height: 0; overflow: hidden; }

.mt-a4-col { flex: 1 1 0; min-width: 0; padding: 0 20px; }
.mt-a4-col:first-child { padding-left: 0; border-right: 1.5px solid #f1c3bb; }
.mt-a4-col:last-child { padding-right: 0; }
.mt-a4-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 6px; border-top: 1px solid #e5e5ea;
  font-size: 11px; color: #a1a1a6;
}
.mt-a4 .mt-q { margin-bottom: 16px; }
.mt-a4 .mt-q-fig svg, .mt-a4 .mt-q-fig img { max-width: 100%; max-height: 300px; height: auto; }
/* Полоса с инструкцией и текст для чтения на листе рисуются настоящей
   границей, а не внутренней тенью: html2canvas внутренние тени не умеет и
   заливал плашку целиком — лист начинался с оранжевого пятна. */
.mt-a4 .mt-test-instr {
  margin-bottom: 12px; padding: 7px 12px;
  border: 0; border-left: 3px solid #d9412b; border-radius: 0 8px 8px 0;
  background: #f5f5f7; box-shadow: none; font-size: 12px; color: #1d1d1f;
}
.mt-a4 .mt-test-instr b { font-weight: 600; }
.mt-a4 .mt-test-instr ul { gap: 2px 20px; margin-top: 4px; font-size: 11px; color: #6e6e73; }
.mt-a4 .mt-q-passage {
  border-left: 3px solid #d9b26a; border-radius: 0 8px 8px 0;
  background: #f5f5f7; box-shadow: none;
}
.mt-a4 .mt-q-block { margin-bottom: 16px; }
.mt-a4 .mt-q-block .mt-q:last-child { margin-bottom: 0; }

.mt-key { margin-bottom: 16px; break-inside: avoid; }
.mt-key b { display: block; margin-bottom: 6px; font-size: 14px; }
.mt-key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
.mt-key-grid i {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 3px 8px; border-radius: 8px; background: var(--mt-fill-2); font-style: normal; font-size: 13px; font-weight: 600;
}
.mt-key-grid s { text-decoration: none; color: var(--mt-ink-3); }

@media print {
  body > :not(.mt-test) { display: none !important; }
  .mt-test { position: static; overflow: visible; background: #fff; }
  .mt-test-bar { display: none; }
  .mt-test-page { max-width: none; margin: 0; padding: 0; box-shadow: none; }
}

/* ── телефон: список и содержимое по очереди ── */
@media (max-width: 860px) {
  .mt-tab { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .mt-tab small { display: none; }
  .mt-tab b { font-size: 12px; line-height: 1.2; white-space: normal; }
  .mt-tab { padding: 8px 2px; }
  .mt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-card { min-height: 104px; padding: 12px; }
  .mt-bar { gap: 10px 16px; }
  .mt-bar-note { width: 100%; margin-left: 0; }
  .mt-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mt-list { position: static; max-height: none; overflow: visible; padding: 0; }
  .mt-split.is-detail .mt-list,
  .mt-split:not(.is-detail) .mt-detail { display: none; }
  .mt-back {
    display: inline-flex; padding: 0 0 12px;
    border: 0; background: none; cursor: pointer;
    font-size: 15px; font-weight: 500; color: var(--mt-accent) !important;
  }
  .mt-hero { padding: 18px; border-radius: 16px; }
  .mt-hero h2 { font-size: 20px; }
  .mt-row--topic, .mt-row--lesson { grid-template-columns: auto minmax(0, 1fr); }
  .mt-row--topic .mt-levels, .mt-row--lesson .mt-slots { grid-column: 2; }
  .mt-sheet { place-items: end stretch; padding: 0; }
  .mt-sheet-panel {
    width: 100%; max-height: 88vh;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    opacity: 1; transform: translateY(100%);
  }

  .mt-build-body { grid-template-columns: minmax(0, 1fr); padding: 0 12px; margin-top: 12px; }
  .mt-bside { position: static; }
  .mt-build-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .mt-bstat { order: 3; width: 100%; margin-left: 0; }
  .mt-pdf .mt-btn { width: 100%; margin-left: 0; }
  .mt-test-page { margin: 0; padding: 20px 16px 40px; border-radius: 0; }
  .mt-test-cols { column-count: 1; }
  .mt-test-bar { gap: 8px; padding: 8px 12px; }
  .mt-test-bar .mt-print { display: none; }
  .mt-test-instr ul { grid-template-columns: 1fr; }
  .mt-q-opts.is-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-grab {
    display: block; width: 36px; height: 5px; margin: 0 auto 14px;
    border-radius: 4px; background: rgba(60, 60, 67, .3);
  }
}

/* ── лист A4 не зависит от окна ──
   Эти же правила есть в телефонной врезке, и раньше лист их подхватывал:
   на широком экране задачу мерили в три столбика ответов, а html2canvas
   рисовал её в узком окне — в два, то есть выше. Хвост задачи тогда
   обрезался. Лист всегда 794 точки шириной, окно тут ни при чём, поэтому
   его вид закреплён после врезки и одинаков везде. */
.mt-a4 .mt-q-opts.is-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-a4 .mt-test-instr ul { grid-template-columns: 1fr 1fr; }
.mt-a4 .mt-test-cols { column-count: 2; }

@media (prefers-reduced-motion: reduce) {
  .mt-thumb, .mt-sheet-panel, .mt-sheet-back, .mt-progress i { transition: none; }
  .mt-skel { animation: none; }
}
