.tests-page .test-catalog{padding-top:36px}
.tests-page .test-catalog-head{gap:32px;padding-bottom:32px;align-items:center}
.tests-page .test-catalog h1{font-size:clamp(2.5rem,4vw,4.2rem);line-height:1.05;margin:12px 0}
.tests-page .test-toolbar{padding:30px 0 20px}
.tests-page .test-toolbar h2{font-size:1.9rem}
.tests-page .test-filter{border-radius:6px}
.tests-page .test-filter button{border-radius:4px}
.class6-browser{border:1px solid var(--test-line);background:#fff;border-radius:8px;overflow:hidden}
.class6-browser[hidden],.test-grid[hidden]{display:none}
.class6-browser-head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px 25px;background:#eaece7;border-bottom:1px solid var(--test-line)}
.class6-browser-head>div:first-child>span{font:500 .68rem 'DM Mono',monospace;color:#856523;letter-spacing:.1em}
.class6-browser-head p{margin:5px 0 0;color:#3b5047;font-size:.88rem;line-height:1.45}
.subject-filter{display:flex;gap:6px;flex-wrap:wrap}
.subject-filter button{border:1px solid #cbd4cc;background:#fff;color:var(--test-green);padding:9px 13px;min-width:126px;text-align:left;border-radius:5px;font-weight:700;white-space:nowrap}
.subject-filter button small{display:block;margin-top:2px;font-size:.68rem;font-weight:500;opacity:.75}
.subject-filter button.active{background:var(--test-green);color:#fff;border-color:var(--test-green)}
.chapter-list{padding:8px 25px 22px}
.chapter-item{border-bottom:1px solid #e4e1d9}
.chapter-item:last-child{border-bottom:0}
.chapter-item>summary{list-style:none;display:flex;align-items:center;gap:16px;min-height:76px;cursor:pointer;padding:12px 2px;color:var(--test-green)}
.chapter-item>summary::-webkit-details-marker{display:none}
.chapter-index{font:500 .75rem 'DM Mono',monospace;color:var(--test-gold);width:35px;flex:none}
.chapter-title{flex:1;min-width:0}
.chapter-title strong{display:block;font:600 1.18rem/1.25 'Playfair Display',serif}
.chapter-title small{display:block;color:#69746d;font-size:.74rem;margin-top:3px}
.chapter-toggle{width:29px;height:29px;border:1px solid #c6ccbf;display:grid;place-items:center;border-radius:50%;font-size:1.15rem;flex:none}
.chapter-item[open] .chapter-toggle{transform:rotate(45deg)}
.chapter-body{padding:0 2px 18px 50px}
.topic-list{border:1px solid #e4e1d9;border-radius:6px;overflow:hidden}
.topic-row-choice{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;background:#faf9f6;border-bottom:1px solid #e8e4dc}
.topic-row-choice:last-child{border-bottom:0}
.topic-index{font:500 .68rem 'DM Mono',monospace;color:#a47b38}
.topic-row-choice strong{display:block;color:#213b31;font-size:.9rem;font-weight:700;line-height:1.3}
.topic-row-choice small{display:block;color:#79817b;font-size:.7rem;margin-top:3px}
.topic-row-choice button{border:1px solid #d0d8d0;background:#fff;color:var(--test-green);border-radius:4px;padding:9px 12px;font-weight:700;font-size:.78rem;white-space:nowrap}
.topic-row-choice button:hover,.topic-row-choice button:focus-visible{background:var(--test-green);color:#fff}
.chapter-test-button{margin-top:13px;border:0;background:var(--test-green);color:#fff;padding:11px 16px;border-radius:4px;font-size:.82rem;font-weight:700}
.chapter-test-button:hover,.chapter-test-button:focus-visible{background:#27634f}
.rank-note{margin:10px 0 0;padding:12px 18px;border:1px solid #e3ddce;border-top:0;color:#686d66;background:#fff;font-size:.8rem}
.personal-leaderboard{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:18px;background:#fff;border:1px solid var(--test-line);border-radius:8px;padding:18px 22px}
.personal-leaderboard h2{font:600 1.3rem 'Playfair Display',serif;color:var(--test-green);margin:4px 0 0}
.personal-leaderboard ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.personal-leaderboard li{display:flex;gap:8px;align-items:center;border:1px solid #d9ddd4;background:#f8f8f4;border-radius:4px;padding:9px 11px;color:#335045;font-size:.76rem}
.personal-leaderboard li span{color:#a57e3c;font:500 .68rem 'DM Mono',monospace}
.personal-leaderboard li b{color:#153a2f}
.tests-page .result-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.tests-page .result-metrics>div{padding:16px 14px}
.tests-page .result-metrics strong{font-size:1.22rem;overflow-wrap:anywhere}
.tests-page .report-actions{flex-wrap:wrap}
.tests-page .report-actions button:last-child{background:var(--test-green);color:#fff}
.tests-page .report-actions button:nth-child(2){background:transparent;color:var(--test-green)}
.tests-page button:focus-visible,.tests-page summary:focus-visible{outline:3px solid var(--test-gold);outline-offset:2px}
@media(max-width:1080px){.class6-browser-head{align-items:start;flex-direction:column}.tests-page .result-metrics{grid-template-columns:repeat(3,1fr)}.tests-page .result-metrics>div:nth-child(3){border-right:0}}
@media(max-width:760px){.tests-page .test-catalog-head{gap:18px}.class6-browser-head{padding:18px}.subject-filter{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.subject-filter button{min-width:0;padding:9px 7px;font-size:.78rem;white-space:normal}.chapter-list{padding:4px 16px 16px}.chapter-body{padding-left:0}.topic-row-choice{grid-template-columns:24px minmax(0,1fr);padding:11px 10px}.topic-row-choice button{grid-column:2;justify-self:start}.tests-page .result-metrics{grid-template-columns:repeat(2,1fr)}.tests-page .result-metrics>div:nth-child(3){border-right:1px solid var(--test-line)}.tests-page .result-metrics>div:nth-child(even){border-right:0}.tests-page .report-actions button{flex:1 1 auto}.personal-leaderboard{display:block}.personal-leaderboard ol{margin-top:13px}}
@media(max-width:430px){.tests-page .test-catalog{padding-top:22px}.tests-page .test-catalog-head{padding-bottom:20px;gap:14px}.tests-page .test-catalog h1{font-size:2.35rem;line-height:1.03;margin:8px 0}.tests-page .test-catalog-head>div:first-child>p{font-size:.88rem;line-height:1.42}.tests-page .marking-card{display:grid;grid-template-columns:repeat(3,1fr)}.tests-page .marking-card>span{padding:8px 10px}.tests-page .marking-card>div{display:block;padding:7px 9px;border-right:1px solid var(--test-line);border-bottom:0}.tests-page .marking-card>div:last-child{border-right:0}.tests-page .marking-card strong{font-size:1.1rem}.tests-page .marking-card small{font-size:.62rem}.tests-page .test-toolbar{gap:9px;padding:18px 0 14px}.tests-page .test-toolbar h2{font-size:1.48rem}.subject-filter{grid-template-columns:1fr}.subject-filter button{display:flex;justify-content:space-between;align-items:center}.subject-filter button small{margin:0}.chapter-item>summary{gap:8px}.chapter-title strong{font-size:1rem}}
@media print{.class6-browser,.rank-note{display:none!important}.tests-page .result-metrics{grid-template-columns:repeat(3,1fr)}}
