/* Mock Exams - website styles */
:root {
  --navy: #14213d; --navy-2: #1d2f57; --ink: #1c2433; --muted: #5d6677; --line: #e3e6ee; --bg: #fff; --bg-alt: #f5f7fb;
  --primary: #2a5bd7; --primary-d: #1d46b3; --accent: #f2a516; --green: #17895c; --green-bg: #e3f5ec; --amber-bg: #fff3d9;
  --red: #c8363b; --red-bg: #fde8e8; --radius: 14px; --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-alt); padding: .1em .35em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(560px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.strong { font-weight: 700; }
.empty { color: var(--muted); padding: 18px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.stack > * + * { margin-top: 22px; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: #b9c1d3; }
.btn-ghost.danger, .danger { color: var(--red); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* header */
.announce { background: var(--accent); color: #2a1d00; text-align: center; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.08rem; text-decoration: none !important; letter-spacing: -.01em; }
.brand-light { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav > a:not(.btn), .main-nav > .linklike { color: var(--ink); font-weight: 600; font-size: .96rem; white-space: nowrap; }
.main-nav > a.active { color: var(--primary); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none !important; }
.lang-switch a.on { background: var(--navy); color: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2f4f9b 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0f1a33 100%); color: #e7ecf7; padding: 72px 0 80px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge { display: inline-block; background: rgba(242, 165, 22, .16); color: #ffcf6e; border: 1px solid rgba(242, 165, 22, .4); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: inherit; opacity: .92; max-width: 640px; }
.page-head .lead { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 34px; margin: 34px 0 0; justify-content: start; }
.stats div { margin: 0; }
.stats dt { font-size: 1.45rem; font-weight: 800; color: #fff; }
.stats dd { margin: 0; font-size: .86rem; opacity: .75; }

.hero-mock { background: #fff; color: #222; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); font-size: 12px; }
.hm-top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 2px dashed #c9d2e8; font-weight: 600; }
.hm-top b { font-size: 15px; }
.hm-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 230px; }
.hm-left { padding: 18px; border-right: 4px solid #eef1f7; }
.hm-right { padding: 18px; }
.hm-left i, .hm-right > i, .hm-choice i { display: block; height: 7px; background: #e5e9f2; border-radius: 4px; margin: 0 0 11px; }
.hm-q { display: flex; align-items: center; gap: 8px; background: #f1f3f8; padding: 4px; margin-bottom: 12px; border-bottom: 2px dashed #c9d2e8; }
.hm-q span { background: #111; color: #fff; padding: 2px 7px; font-weight: 700; }
.hm-q em { font-style: normal; color: #555; }
.hm-choice { display: flex; align-items: center; gap: 8px; border: 1.5px solid #c4c9d4; border-radius: 9px; padding: 7px 9px; margin-bottom: 8px; }
.hm-choice b { width: 20px; height: 20px; border: 1.5px solid #333; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.hm-choice i { flex: 1; margin: 0; }
.hm-choice.on { border-color: #2a5bd7; box-shadow: 0 0 0 1px #2a5bd7; }
.hm-choice.on b { background: #2a5bd7; color: #fff; border-color: #2a5bd7; }
.hm-bottom { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 2px dashed #c9d2e8; }
.hm-pill { background: #111; color: #fff; padding: 5px 12px; border-radius: 7px; font-weight: 600; margin: 0 auto; }
.hm-btn { background: #2a5bd7; color: #fff; padding: 5px 14px; border-radius: 999px; font-weight: 700; }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.page-head { padding: 48px 0 30px; background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); }
.h-sub { font-size: 1.2rem; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: #e9efff; color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-bottom: 22px; }
.test-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.test-card h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.test-card h3 a { color: var(--navy); }
.test-card p { color: var(--muted); }
.test-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.test-card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.best { font-weight: 700; color: var(--green); }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e8edf8; color: var(--navy-2); letter-spacing: .01em; font-style: normal; }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-amber { background: var(--amber-bg); color: #9a6300; }
.test-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink); font-size: .93rem; }
.test-meta li { display: inline-flex; align-items: center; gap: 6px; }
.test-meta svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.test-meta.big { font-size: 1.05rem; margin-top: 8px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--bg-alt); position: relative; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; }
.struct th, .struct td, .data th, .data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.struct thead th, .data thead th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.struct tbody th { color: var(--navy); }
.struct tr:last-child td, .data tr:last-child td { border-bottom: 0; }
.row-break td { background: #fffaf0; color: #8a5a00; font-weight: 600; }
.data td.num, .data th.num { text-align: right; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; margin-bottom: 12px; }
.ticks svg { flex: 0 0 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-box { text-align: center; background: var(--navy); color: #fff; border-radius: 20px; padding: 40px 24px; }
.contact-box h2 { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h1 { font-size: 1.7rem; }
.form label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 16px; color: var(--navy); }
.form input:not([type=checkbox]):not([type=file]), .inline-form input:not([type=file]), .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid #cfd5e2; border-radius: 10px; font: 400 1rem var(--font); color: var(--ink); background: #fff; }
.form input:focus, .inline-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42, 91, 215, .15); }
.form input.invalid { border-color: var(--red); }
.form small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0 0 16px; }
.form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.form-error { color: var(--red); background: var(--red-bg); padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: .94rem; }
.form-error ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.form-ok { color: var(--green); background: var(--green-bg); padding: 10px 12px; border-radius: 9px; font-weight: 600; }
.auth-section { min-height: 70vh; background: var(--bg-alt); }
.danger-zone { border-color: #f1c2c2; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.inline-form input:not([type=file]) { width: auto; flex: 1 1 240px; margin: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p { color: #3c4555; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.best-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 24px; text-align: center; }
.best-box span { display: block; font-size: .85rem; opacity: .8; }
.best-box b { font-size: 2rem; }
.progress-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border: 2px solid #f6d48a; background: #fffbf1; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.progress-card h3 { margin: 8px 0 2px; }
.progress-card p { margin: 0; }
.progress-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--navy); color: #c9d2e6; padding: 48px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.muted-light { color: #9fb0d1; margin-top: 10px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #e3e9f7; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 20px; font-size: .82rem; color: #8ea0c4; }
.footer-bottom p { margin: 0 0 6px; }

/* admin */
.admin-body { background: var(--bg-alt); }
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a { color: #cfd8ec; padding: 10px 12px; border-radius: 9px; font-weight: 600; text-decoration: none; }
.admin-side nav a.on, .admin-side nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.admin-side-foot a, .admin-side-foot button { color: #cfd8ec; text-align: left; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-main .card { margin-bottom: 22px; }
.admin-main h1 { font-size: 1.8rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi span { display: block; color: var(--muted); font-weight: 600; font-size: .88rem; }
.kpi b { display: block; font-size: 2rem; color: var(--navy); }
.kpi small { color: var(--muted); }
.admin-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; text-decoration: none !important; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip span { opacity: .7; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { width: 18px; height: 18px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.format-doc { white-space: pre-wrap; font-size: .9rem; line-height: 1.5; margin: 0; }

/* ---- account menu, sign-up account type, shared bits ---- */
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .96rem; color: var(--ink); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.acct-menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.acct-menu > summary.active, .acct-menu > summary:hover { border-color: #b9c1d3; }
.acct-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.acct-list a, .acct-list .linklike { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-align: left; font-size: .95rem; }
.acct-list a:hover, .acct-list .linklike:hover { background: var(--bg-alt); text-decoration: none; }
.role-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.role-pick legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.role-opt { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; margin: 0 !important; }
.role-opt input { width: auto !important; margin: 0; }
.role-note { flex-basis: 100%; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.notice-bar { background: var(--amber-bg); border: 1px solid #f3dca5; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.notice-card { background: var(--amber-bg); border-color: #f3dca5; }
.notice-card p { margin: 0; }
.copy-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.copy-row input { flex: 1; min-width: 0; font: 500 .9rem var(--font); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt); color: var(--ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* My tests: classes and tests set by tutors */
.dash-asg, .dash-classes { margin: 0 0 26px; padding: 22px 24px; }
.dash-asg h2, .dash-classes h2 { font-size: 1.2rem; margin: 0; }
.dash-classes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.asg-list, .cls-mine-list { list-style: none; margin: 10px 0 0; padding: 0; }
.asg-item, .cls-mine { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.asg-item:first-child, .cls-mine:first-child { border-top: 0; }
.asg-item > div:first-child, .cls-mine > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.dash-classes p { margin: 6px 0 0; }

@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .hero-mock { transform: none; max-width: 560px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav > a:not(.btn), .main-nav > .linklike { padding: 10px 0; text-align: left; }
  .main-nav .btn { margin-top: 8px; }
  .nav-open .main-nav { display: flex; }
  .acct-menu > summary { border: 0; padding: 10px 0; border-radius: 0; }
  .acct-list { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0 0 0 10px; margin: 0 0 6px; }
  .lang-switch { margin-left: auto; }
  .header-row { gap: 12px; }
}
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { flex-direction: row; margin: 0; }
  .admin-main { padding: 22px 16px; }
}
@media (max-width: 620px) {
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 52px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: .95rem; }
  .hero-mock { font-size: 10px; }
  .hm-body { min-height: 180px; }
  .card { padding: 22px 18px; }
  .test-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
/* ---- topic practice: topic list and home page teaser ---- */
.pr-cta { align-items: center; }
.pr-domains { display: grid; gap: 22px; }
.pr-domain { padding: 22px 26px 10px; scroll-margin-top: 90px; }
.pr-domain-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 6px; }
.pr-domain-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.pr-domain-head p { margin: 0; }
.pr-topics { list-style: none; margin: 0; padding: 0; }
.pr-topic { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.pr-topic:first-child { border-top: 0; }
.pr-topic-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-topic-main small { font-size: .84rem; }
.pr-meta { font-size: .88rem; color: var(--muted); }
.pr-bar { display: block; height: 6px; width: min(240px, 100%); background: #e6ebf4; border-radius: 99px; overflow: hidden; margin-top: 5px; }
.pr-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.pr-locked { align-self: flex-start; margin-top: 6px; font-size: .82rem; color: #8a5a00; background: var(--amber-bg); border-radius: 6px; padding: 2px 8px; }
.pr-topic .btn { flex: none; }

/* home page teaser */
.pr-domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 24px; }
.pr-domain-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.pr-domain-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.pr-domain-card b { color: var(--navy); line-height: 1.3; }
.pr-domain-card span { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) { .pr-domain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .pr-domain { padding: 18px 16px 6px; }
  .pr-topic { flex-direction: column; align-items: stretch; gap: 10px; }
  .pr-topic .btn { align-self: flex-start; }
}
@media (max-width: 520px) { .pr-domain-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .announce, .rp-actions, .rp-filters { display: none !important; }
  .section { padding: 0; }
}
