/* test-na-eruditsiyu: тест на шаблоне rd. Прежние стили страницы переведены в токены rd.css, ниже слой нового вида */
.rd #er-test { font-family: var(--f-ui); color: var(--ink); }
.rd #er-test p { display: block; font-size: inherit; opacity: 1; margin: 0; }
.rd #er-test ul li::before { display: none; }
.rd #er-test .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--f-ui); border-radius: 999px; padding: 16px 24px; margin: 0; width: auto; min-width: 0; height: auto; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: none; white-space: nowrap; }
.rd #er-test .button:hover { opacity: .85; color: var(--ink); }
.rd #er-test .button.black { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #er-test .button.black:hover { color: #fff; }
.rd #er-test .button:disabled { opacity: .4; cursor: default; }

/* ===== прежние правила ===== */
.rd #er-test .er-screen { width: 100%; }
.rd #er-test .er-lead, .rd #er-test .er-pool, .rd #er-test .er-disclaimer, .rd #er-test .er-qmeta, .rd #er-test .er-feedback, .rd #er-test .er-shared, .rd #er-test .er-verdict__text, .rd #er-test .er-prev, .rd #er-test .er-note, .rd #er-test .er-stat, .rd #er-test .er-rank, .rd #er-test .er-daylabel, .rd #er-test .er-day p, .rd #er-test .er-hist p, .rd #er-test .er-review p, .rd #er-test .er-math__body p { display: block; width: 100%; }
.rd #er-test .er-lead { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.rd #er-test .er-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.rd #er-test .er-facts li { border: 0; background: var(--tile); border-radius: 16px; padding: 12px 8px; text-align: center; }
@media (max-width: 560px) {
    .rd #er-test .er-facts { grid-template-columns: repeat(2, 1fr); }
}
.rd #er-test .er-facts b { display: block; font-family: var(--f-ui); font-weight: 600; font-size: 22px; line-height: 1; }
.rd #er-test .er-facts span { display: block; font-size: 14px; color: var(--mute); margin-top: 6px; }
.rd #er-test .er-block { width: 100%; margin: 0 0 14px; }
.rd #er-test .er-block__head { display: flex; justify-content: space-between; align-items: baseline; }
.rd #er-test .er-label { display: block; font-family: var(--f-ui); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.rd #er-test .er-links { font-size: 14px; color: var(--mute); }
.rd #er-test .er-link { display: inline; width: auto; height: auto; margin: 0; background: none; border: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.rd #er-test .er-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (max-width: 560px) {
    .rd #er-test .er-topics { grid-template-columns: 1fr; }
}
.rd #er-test .er-topic { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; font-size: 15px; line-height: 1.3; cursor: pointer; margin: 0; }
.rd #er-test .er-topic:has(input:checked) { border-color: var(--ink); }
.rd #er-test .er-topic input { -webkit-appearance: checkbox; appearance: auto; width: 16px; height: 16px; min-width: 0; padding: 0; border: none; border-radius: 3px; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.rd #er-test .er-topic i { font-style: normal; font-size: 13px; color: var(--mute); margin-left: 4px; }
.rd #er-test .er-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd #er-test .er-chip { display: inline-block; width: auto; height: auto; margin: 0; border: 1px solid var(--ink); border-radius: 20px; background: #fff; padding: 7px 14px; font-size: 15px; cursor: pointer; color: var(--ink); }
.rd #er-test .er-chip.is-sel { background: var(--ink); color: #fff; }
.rd #er-test .er-pool { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 12px; }
.rd #er-test #er-start:disabled { opacity: .4; cursor: default; }
.rd #er-test .er-resume { border: 0; background: var(--accent-soft); border-radius: 16px; padding: 12px; margin: 12px 0; text-align: center; }
.rd #er-test .er-resume p { display: block; margin: 0 0 8px; font-size: 15px; }
.rd #er-test .er-disclaimer { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 8px 0 0; }
.rd #er-test .er-day { border: 0; background: var(--tile); border-radius: 16px; padding: 12px; margin: 0 0 18px; }
.rd #er-test .er-day__text { font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.rd #er-test .er-day__res { font-size: 15px; line-height: 1.5; font-weight: 700; margin: 0 0 6px; }
.rd #er-test .er-day__stat { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 10px; }
.rd #er-test .er-day .button { margin: 0; }
.rd #er-test .er-label--own { margin-bottom: 12px; }
.rd #er-test .er-prog { margin-bottom: 14px; }
.rd #er-test .er-prog__bar { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; }
.rd #er-test .er-prog__fill { height: 100%; width: 0; background: var(--ink); border-radius: 5px; transition: width .25s; }
.rd #er-test .er-prog__meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; color: var(--mute); }
.rd #er-test .er-prog__meta span:first-child { font-family: var(--f-ui); font-weight: 600; opacity: 1; }
.rd #er-test .er-qmeta { font-size: 14px; color: var(--mute); text-align: center; margin: 0 0 6px; }
.rd #er-test .er-lvl--1 { color: var(--good); }
.rd #er-test .er-lvl--2 { color: #c47a1a; }
.rd #er-test .er-lvl--3 { color: var(--bad); }
.rd #er-test .er-qtext { display: block; width: 100%; font-size: 18px; line-height: 1.4; font-weight: 700; text-align: center; margin: 0 0 18px; }
@media (max-width: 560px) {
    .rd #er-test .er-qtext { font-size: 16px; }
}
.rd #er-test .er-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (max-width: 560px) {
    .rd #er-test .er-opts { grid-template-columns: 1fr; }
}
.rd #er-test .er-opt { display: block; width: 100%; height: auto; margin: 0; border: 1px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); padding: 12px 14px; font-size: 16px; line-height: 1.35; text-align: left; cursor: pointer; transition: background .12s; }
.rd #er-test .er-opt:hover:not(:disabled) { background: var(--tile); }
.rd #er-test .er-opt:disabled { cursor: default; opacity: .55; }
.rd #er-test .er-opt.is-ok { background: var(--good-soft); border-color: var(--good); opacity: 1; font-weight: 700; }
.rd #er-test .er-opt.is-bad { background: var(--bad-soft); border-color: var(--bad); opacity: 1; }
.rd #er-test .er-feedback { font-size: 15px; line-height: 1.55; border-left: 3px solid; padding: 4px 0 4px 10px; margin: 0 0 14px; }
.rd #er-test .er-feedback.is-ok { border-color: var(--good); }
.rd #er-test .er-feedback.is-bad { border-color: var(--bad); }
.rd #er-test .er-nav { display: flex; gap: 8px; }
.rd #er-test .er-nav .button { margin: 0; width: auto; flex: 1 1 auto; }
.rd #er-test .er-shared { font-size: 14px; border: 0; background: var(--accent-soft); border-radius: 16px; padding: 10px 12px; margin: 0 0 14px; }
.rd #er-test .er-verdict { text-align: center; margin: 4px 0 10px; }
.rd #er-test .er-verdict__score { font-family: var(--f-ui); font-weight: 600; font-size: 44px; line-height: 1.1; }
.rd #er-test .er-verdict__score span { font-size: 18px; color: var(--mute); }
.rd #er-test .er-verdict__name { font-family: var(--f-ui); font-weight: 600; font-size: 16px; margin-top: 4px; }
.rd #er-test .er-verdict--low .er-verdict__name { color: var(--bad); }
.rd #er-test .er-verdict--mid .er-verdict__name { color: #c47a1a; }
.rd #er-test .er-verdict--good .er-verdict__name, .rd #er-test .er-verdict--high .er-verdict__name { color: var(--good); }
.rd #er-test .er-verdict__text { font-size: 15px; line-height: 1.55; margin: 8px 0 10px; }
.rd #er-test .er-prev { font-size: 14px; line-height: 1.5; border: 0; background: var(--tile); border-radius: 16px; padding: 10px 12px; margin: 6px 0 14px; }
.rd #er-test .er-h3 { font-family: var(--f-ui); font-weight: 600; font-size: 15px; margin: 22px 0 9px; }
.rd #er-test .er-radarbox { text-align: center; }
.rd #er-test .er-radar { width: 100%; max-width: 440px; height: auto; }
.rd #er-test .er-bars { display: grid; gap: 8px; margin: 8px 0; }
.rd #er-test .er-bar { display: grid; grid-template-columns: minmax(0, 11em) 1fr 3em; align-items: center; gap: 8px; font-size: 14px; }
@media (max-width: 560px) {
    .rd #er-test .er-bar { grid-template-columns: minmax(0, 8.5em) 1fr 3em; font-size: 14px; }
}
.rd #er-test .er-bar__name { line-height: 1.25; }
.rd #er-test .er-bar__name i { display: block; font-style: normal; font-size: 13px; color: var(--mute); }
.rd #er-test .er-bar__track { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.rd #er-test .er-bar__fill { display: block; height: 100%; border-radius: 5px; }
.rd #er-test .er-bar__fill--low { background: var(--bad); }
.rd #er-test .er-bar__fill--mid { background: #c47a1a; }
.rd #er-test .er-bar__fill--good, .rd #er-test .er-bar__fill--high { background: var(--good); }
.rd #er-test .er-bar__val { font-family: var(--f-ui); font-weight: 600; text-align: right; }
.rd #er-test .er-note { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 10px 0 0; }
.rd #er-test .er-stat { font-size: 14px; line-height: 1.5; margin: -8px 0 16px; }
.rd #er-test .er-rank { font-size: 15px; line-height: 1.5; border: 0; background: var(--tile); border-radius: 16px; padding: 10px 12px; margin: 0 0 14px; }
.rd #er-test .er-review__stat { font-size: 13px; line-height: 1.4; color: var(--mute); margin: 4px 0 0; }
.rd #er-test .er-only { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; cursor: pointer; }
.rd #er-test .er-only input { -webkit-appearance: checkbox; appearance: auto; width: 16px; height: 16px; min-width: 0; padding: 0; border: none; margin: 0; accent-color: var(--ink); }
.rd #er-test .er-review { list-style: decimal; padding-left: 22px; margin: 0; }
.rd #er-test .er-review__item { border-top: 1px solid var(--line); padding: 10px 0; }
.rd #er-test .er-review.is-only-bad .er-review__item.is-ok { display: none; }
.rd #er-test .er-review__meta { font-size: 13px; color: var(--mute); margin: 0 0 2px; }
.rd #er-test .er-review__q { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
.rd #er-test .er-review__a { font-size: 15px; line-height: 1.5; margin: 0 0 4px; }
.rd #er-test .er-review__ex { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0; }
.rd #er-test .er-mark { font-weight: 700; }
.rd #er-test .er-mark--ok { color: var(--good); }
.rd #er-test .er-mark--bad { color: var(--bad); }
.rd #er-test .er-math { border: 0; background: var(--tile); border-radius: 16px; padding: 10px 12px; margin: 18px 0 0; }
.rd #er-test .er-math summary { cursor: pointer; font-family: var(--f-ui); font-weight: 600; font-size: 15px; }
.rd #er-test .er-math__body { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.rd #er-test .er-math__body p { margin: 0 0 8px; }
.rd #er-test .er-math__table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 14px; }
.rd #er-test .er-math__table th, .rd #er-test .er-math__table td { border-bottom: 1px solid var(--line); padding: 5px 4px; text-align: right; }
.rd #er-test .er-math__table th:first-child, .rd #er-test .er-math__table td:first-child { text-align: left; }
.rd #er-test .er-daylabel { font-size: 14px; text-align: center; color: var(--mute); margin: 0 0 4px; }
.rd #er-test .er-hist p { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.rd #er-test .er-sparkbox { margin: 4px 0 8px; }
.rd #er-test .er-spark { width: 100%; max-width: 480px; height: auto; display: block; }
.rd #er-test .er-hist__list { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; line-height: 1.7; }
.rd #er-test .er-hist .er-link { font-size: 14px; }
.rd #er-test .er-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.rd #er-test .er-actions .button { margin: 0; width: auto; flex: 1 1 auto; }

/* ===== новый вид: интро ===== */
.rd #er-test .er-lead { font: 400 17px/1.6 var(--f-text); margin: 0 0 24px; max-width: 760px; }
.rd #er-test .er-lead b { font-weight: 600; }
.rd #er-test .er-facts { grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; }
.rd #er-test .er-facts li { background: var(--tile); border: 0; border-radius: 20px; padding: 20px 16px; margin: 0; text-align: left; }
.rd #er-test .er-facts b { font: 700 32px/1 var(--f-ui); letter-spacing: -1px; }
.rd #er-test .er-facts span { font: 400 13px/1.3 var(--f-ui); color: var(--mute); margin-top: 8px; }
.rd #er-test .er-stat { font: 400 15px/1.5 var(--f-ui); margin: -8px 0 20px; }
.rd #er-test .er-hist p { font: 400 15px/1.5 var(--f-ui); }

.rd #er-test .er-day { background: transparent; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0 0 32px; }
.rd #er-test .er-day .er-label { font: 600 17px/1.3 var(--f-ui); margin: 0 0 8px; }
.rd #er-test .er-day__text { font: 400 15px/1.55 var(--f-text); margin: 0 0 16px; max-width: 760px; }
.rd #er-test .er-day__res { font: 600 17px/1.4 var(--f-ui); margin: 0 0 6px; }
.rd #er-test .er-day__stat { font: 400 14px/1.5 var(--f-ui); color: var(--mute); margin: 0 0 16px; }
.rd #er-test .er-day .button { padding: 14px 22px; }

.rd #er-test .er-label { font: 600 15px/1.3 var(--f-ui); margin: 0 0 10px; }
.rd #er-test .er-label--own { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.4px; margin: 0 0 20px; }
.rd #er-test .er-block { margin: 0 0 24px; }
.rd #er-test .er-block__head { margin: 0 0 10px; }
.rd #er-test .er-block__head .er-label { margin: 0; }
.rd #er-test .er-links { font: 400 14px/1.3 var(--f-ui); }
.rd #er-test .er-link { color: var(--accent); }
.rd #er-test .er-topics { gap: 8px; background: var(--tile); border-radius: 20px; padding: 8px; }
.rd #er-test .er-topic { gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 500 15px/1.3 var(--f-ui); }
.rd #er-test .er-topic:hover { border-color: var(--accent-mid); }
.rd #er-test .er-topic:has(input:checked) { border-color: var(--line); }
.rd #er-test .er-topic:not(:has(input:checked)) { background: transparent; border-color: transparent; color: var(--mute); }
.rd #er-test .er-topic input { width: 18px; height: 18px; border-radius: 4px; accent-color: var(--ink); cursor: pointer; }
.rd #er-test .er-topic i { font: 400 13px/1 var(--f-mono); margin-left: 4px; }
.rd #er-test .er-chips { gap: 8px; }
.rd #er-test .er-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font: 500 15px/1 var(--f-ui); color: var(--ink); }
.rd #er-test .er-chip:hover { border-color: var(--accent-mid); }
.rd #er-test .er-chip.is-sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #er-test .er-pool { font: 400 14px/1.5 var(--f-ui); margin: 0 0 16px; }
.rd #er-test #er-start { width: 100%; height: 60px; font-size: 17px; margin: 0 0 16px; }
.rd #er-test .er-resume { align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border: 0; border-radius: 20px; padding: 16px 20px; margin: 0 0 16px; text-align: left; }
.rd #er-test .er-resume:not([style*="none"]) { display: flex; }
.rd #er-test .er-resume p { font: 400 15px/1.4 var(--f-ui); margin: 0; }
.rd #er-test .er-resume .button { flex: none; padding: 14px 22px; }
.rd #er-test .er-disclaimer { font: 400 13px/1.5 var(--f-ui) !important; color: var(--mute); margin: 0; }

/* ===== новый вид: экран вопроса ===== */
.rd #er-test #er-test-screen:not([style*="none"]) { display: flex; flex-direction: column; gap: 24px; }
.rd #er-test .er-prog { margin: 0; }
.rd #er-test .er-prog__bar { height: 8px; border-radius: 4px; }
.rd #er-test .er-prog__fill { border-radius: 4px; }
.rd #er-test .er-prog__meta { margin-top: 10px; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #er-test .er-prog__meta span:first-child { font: 600 13px/1.3 var(--f-mono); color: var(--ink); }
.rd #er-test .er-qmeta { font: 400 14px/1.4 var(--f-ui); text-align: left; margin: 0 0 -12px; }
.rd #er-test .er-lvl { font-weight: 500; }
.rd #er-test .er-qtext { font: 600 30px/1.25 var(--f-ui); letter-spacing: -.5px; text-align: left; margin: 0; }

.rd #er-test .er-opts { gap: 8px; background: var(--tile); border-radius: 20px; padding: 8px; margin: 0; }
.rd #er-test .er-opt { min-height: 64px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font: 500 16px/1.35 var(--f-ui); color: var(--ink); }
.rd #er-test .er-opt:hover:not(:disabled), .rd #er-test .er-opt:focus-visible { background: #fff; border-color: var(--accent-mid); outline: none; }
.rd #er-test .er-opt:disabled { opacity: 1; color: var(--mute); }
.rd #er-test .er-opt.is-ok { background: var(--good-soft); border-color: var(--good); color: var(--ink); font-weight: 600; }
.rd #er-test .er-opt.is-bad { background: var(--bad-soft); border-color: var(--bad); color: var(--ink); }
.rd #er-test .er-feedback { font: 400 15px/1.55 var(--f-text); border: 0; border-radius: 14px; padding: 14px 16px; margin: 0; }
.rd #er-test .er-feedback b { font: 600 15px/1.55 var(--f-ui); }
.rd #er-test .er-feedback.is-ok { background: var(--good-soft); }
.rd #er-test .er-feedback.is-bad { background: var(--bad-soft); }
.rd #er-test .er-nav { justify-content: flex-end; gap: 12px; margin: 0; }
.rd #er-test .er-nav .button { flex: none; padding: 14px 22px; }

/* ===== новый вид: результат ===== */
.rd #er-test #er-result:not([style*="none"]) { display: flex; flex-direction: column; gap: 16px; }
.rd #er-test .er-shared { font: 400 14px/1.5 var(--f-ui); border-radius: 14px; padding: 14px 16px; margin: 0; }
.rd #er-test .er-daylabel { font: 400 13px/1.3 var(--f-ui); text-align: left; margin: 0; }
.rd #er-test .er-verdict { text-align: left; background: var(--tile); border-radius: 20px; padding: 28px; margin: 0; }
.rd #er-test .er-verdict__score { font: 700 56px/1 var(--f-mono); letter-spacing: -1px; }
.rd #er-test .er-verdict__score span { font: 600 24px/1 var(--f-mono); color: var(--mute); letter-spacing: 0; }
.rd #er-test .er-verdict__name { font: 600 20px/1.3 var(--f-ui); margin-top: 8px; }
.rd #er-test .er-verdict__text { font: 400 17px/1.6 var(--f-text); max-width: 760px; margin: 0; }
.rd #er-test .er-rank, .rd #er-test .er-prev { font: 400 15px/1.5 var(--f-ui); background: var(--tile); border-radius: 16px; padding: 14px 16px; margin: 0; }
.rd #er-test .er-rank b, .rd #er-test .er-prev b { font-weight: 600; }
.rd #er-test .er-h3 { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.4px; margin: 16px 0 0; }

.rd #er-test .er-radarbox { background: var(--tile); border-radius: 20px; padding: 24px; margin: 0; }
.rd #er-test .er-radar { display: block; max-width: 460px; margin: 0 auto; overflow: visible; }
.rd #er-test .er-radar polygon[stroke="#3874cc"], .rd #er-test .er-radar circle, .rd #er-test .er-spark circle { fill: var(--accent); stroke: var(--accent); }
.rd #er-test .er-radar polygon[stroke="#e2e6ee"], .rd #er-test .er-radar line, .rd #er-test .er-spark line { stroke: var(--line); }
.rd #er-test .er-radar text, .rd #er-test .er-spark text { fill: var(--mute); font-family: var(--f-ui); }
.rd #er-test .er-spark polyline { stroke: var(--accent); }

.rd #er-test .er-bars { gap: 12px; margin: 0; }
.rd #er-test .er-bar { grid-template-columns: minmax(0, 14em) 1fr 3.5em; gap: 12px; font: 500 14px/1.3 var(--f-ui); }
.rd #er-test .er-bar__name i { font: 400 12px/1.3 var(--f-mono); margin-top: 2px; }
.rd #er-test .er-bar__track { height: 8px; border-radius: 4px; }
.rd #er-test .er-bar__fill { border-radius: 4px; }
.rd #er-test .er-bar__val { font: 600 14px/1 var(--f-mono); }
.rd #er-test .er-note { font: 400 13px/1.5 var(--f-ui) !important; color: var(--mute); margin: 0; }

.rd #er-test .er-only { font: 400 15px/1.3 var(--f-ui); margin: 0; }
.rd #er-test .er-only input { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.rd #er-test .er-review { padding-left: 28px; }
.rd #er-test .er-review__item { padding: 16px 0; }
.rd #er-test .er-review__item::marker { font: 600 14px/1 var(--f-mono); color: var(--mute); }
.rd #er-test .er-review__meta { font: 400 13px/1.3 var(--f-ui); margin: 0 0 6px; }
.rd #er-test .er-review__q { font: 600 16px/1.4 var(--f-ui); margin: 0 0 8px; }
.rd #er-test .er-review__a { font: 400 15px/1.55 var(--f-ui); margin: 0 0 6px; }
.rd #er-test .er-review__ex { font: 400 14px/1.55 var(--f-text); margin: 0; }
.rd #er-test .er-review__stat { font: 400 13px/1.4 var(--f-ui); margin: 6px 0 0; }
.rd #er-test .er-mark { font-weight: 600; }

.rd #er-test .er-hist { display: flex; flex-direction: column; gap: 12px; }
.rd #er-test .er-hist .er-h3 { margin: 16px 0 0; }
.rd #er-test .er-hist p { margin: 0; }
.rd #er-test .er-sparkbox { background: var(--tile); border-radius: 20px; padding: 20px; margin: 0; }
.rd #er-test .er-spark { max-width: 560px; margin: 0 auto; overflow: visible; }
.rd #er-test .er-hist__list { font: 400 14px/1.7 var(--f-ui); margin: 0; }

.rd #er-test .er-math { background: var(--tile); border-radius: 16px; padding: 16px 18px; margin: 16px 0 0; }
.rd #er-test .er-math summary { font: 600 15px/1.3 var(--f-ui); }
.rd #er-test .er-math__body { font: 400 14px/1.55 var(--f-text); margin-top: 12px; }
.rd #er-test .er-math__table { font: 400 14px/1.4 var(--f-ui); margin: 12px 0; }
.rd #er-test .er-math__table th, .rd #er-test .er-math__table td { padding: 8px 4px; background: transparent; }
.rd #er-test .er-math__table th { font: 600 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #er-test .er-math__table td:not(:first-child) { font-family: var(--f-mono); }
.rd #er-test .er-math__table tr:last-child td { border-bottom: 0; }
.rd #er-test .er-actions { gap: 10px; margin: 8px 0 0; }
.rd #er-test .er-actions .button { flex: none; padding: 14px 22px; text-align: center; }
.rd #er-test .er-actions .button--gray { background: var(--tile); border-color: var(--tile); }

@media (max-width: 639px) {
    .rd #er-test .er-facts { grid-template-columns: 1fr 1fr; }
    .rd #er-test .er-facts b { font-size: 28px; }
    .rd #er-test .er-day { padding: 18px 16px; margin-bottom: 28px; }
    .rd #er-test .er-day .button { width: 100%; }
    .rd #er-test .er-label--own { font-size: 20px; }
    .rd #er-test .er-topics { grid-template-columns: 1fr; }
    .rd #er-test .er-chip { padding: 12px 16px; }
    .rd #er-test #er-start { height: auto; min-height: 60px; padding: 16px 20px; white-space: normal; line-height: 1.3; }
    .rd #er-test .er-resume:not([style*="none"]) { flex-direction: column; align-items: stretch; }
    .rd #er-test #er-test-screen:not([style*="none"]) { gap: 20px; }
    .rd #er-test .er-qmeta { margin-bottom: -10px; }
    .rd #er-test .er-qtext { font-size: 22px; letter-spacing: -.3px; }
    .rd #er-test .er-opts { grid-template-columns: 1fr; }
    .rd #er-test .er-opt { min-height: 52px; padding: 14px 16px; }
    .rd #er-test .er-nav .button { flex: 1 1 100%; }
    .rd #er-test .er-verdict { padding: 20px; }
    .rd #er-test .er-verdict__score { font-size: 44px; }
    .rd #er-test .er-verdict__name { font-size: 18px; }
    .rd #er-test .er-verdict__text { font-size: 16px; }
    .rd #er-test .er-h3 { font-size: 20px; }
    .rd #er-test .er-radarbox { padding: 16px 8px; }
    .rd #er-test .er-radar text { font-size: 14px; }
    .rd #er-test .er-bar { grid-template-columns: minmax(0, 8.5em) 1fr 3em; gap: 8px; font-size: 13px; }
    .rd #er-test .er-review { padding-left: 24px; }
    .rd #er-test .er-sparkbox { padding: 16px 12px; }
    .rd #er-test .er-actions .button { flex: 1 1 100%; white-space: normal; }
}
@media (max-width: 359px) {
    .rd #er-test .er-radarbox { padding: 12px 10px; }
    .rd #er-test .er-radar text { font-size: 16px; }
    .rd #er-test .er-bar { grid-template-columns: minmax(0, 7.5em) 1fr 2.8em; }
}
