/* Hartley Exam Guides — palette aligned with the covers (navy night + gold). */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --ink: #11213f;
    --surface: #f2f4f8;
    --line: #dde2ea;
    --muted: #4e5a6e;
    --input: #b6c0d0;
    --accent: #23508f;
    --accent-hover: #173a6b;
    --gold: #f2c14e;
    --gold-soft: #fdf6e3;
    --on-dark: #c8d1e0;
    --on-dark-strong: #e2e8f2;
    --cover-shadow: #e6ebf3;
    --ok: #1e7a4c;
    --ok-bg: #e3f2ec;
    --bad: #b3261e;
    --bad-bg: #fdecea;
    --display: "Inter Display", "Inter", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
p { margin: 0; }
p + p { margin-top: 8px; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: 32px; line-height: 1.1; }
h2 + p, h2 + .muted { margin-top: 14px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 860px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section--tight-top { padding-top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 16px; }
.mark { background: linear-gradient(transparent 58%, var(--gold) 58%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer__text { flex: 1 1 480px; min-width: 0; }
.site-footer__name { font-weight: 600; color: var(--ink); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 15px 24px; border-radius: 8px; font-weight: 600; font-size: 16px; font-family: inherit; line-height: 1.2; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: #e6b23a; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--surface); color: var(--ink); }
.btn--dark { background: var(--ink); color: #ffffff; }
.btn--dark:hover { background: var(--accent-hover); color: #ffffff; }
.btn--small { padding: 11px 18px; font-size: 15px; }
.btn:disabled, fieldset:disabled .btn { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero__title { max-width: 15em; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.02em; }
.hero__title--small { font-size: clamp(34px, 4.4vw, 52px); }
.hero__lead { margin-top: 24px; max-width: 36em; font-size: 19px; color: var(--muted); }

/* Layout helpers */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: #ffffff; }
.dark__muted { color: var(--on-dark); }
.dark__list { color: var(--on-dark-strong); margin: 0; }
.dark a { color: var(--gold); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split--center { align-items: center; justify-content: space-between; }
.split__aside { flex: 1 1 300px; min-width: 0; }
.split__main { flex: 2 1 520px; min-width: 0; }

.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--articles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 0; }
.plain { list-style: none; padding: 0; }

.panel { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature { border-top: 3px solid var(--ink); padding-top: 16px; }
.feature .muted { margin-top: 8px; }
.empty { border: 1px dashed var(--input); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }

/* Guide cards */
.guide-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #ffffff; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.guide-card:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(17, 33, 63, 0.12); transform: translateY(-2px); }
.guide-card__cover { background: var(--surface); padding: 28px 24px 24px; display: flex; justify-content: center; }
.guide-card__cover img { width: 62%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 30px rgba(17, 33, 63, 0.25); }
.guide-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card__body p + p { margin-top: 0; }
.guide-card__state { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.guide-card__cta { margin-top: auto !important; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Quiz */
.quiz__question { font-weight: 600; font-size: 19px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.quiz__option { text-align: left; font: inherit; font-size: 16px; color: var(--ink); background: #ffffff; border: 2px solid var(--input); border-radius: 10px; padding: 14px 16px; min-height: 48px; cursor: pointer; }
.quiz__option:hover { border-color: var(--ink); }
.quiz__option.is-correct { background: var(--ok-bg); border-color: var(--ok); }
.quiz__option.is-wrong { background: var(--bad-bg); border-color: var(--bad); }
.quiz__feedback { margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: var(--surface); }
.quiz__feedback .muted { margin-top: 6px; }
@media (max-width: 560px) { .quiz__options { grid-template-columns: 1fr; } }

/* "How these guides are made" */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps p + p { margin-top: 6px; }
.steps__n { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1.1; }

/* Articles */
.article-card { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.article-card h3 { margin-top: 8px; }
.article-card h3 + p { margin-top: 8px; }

/* Forms */
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form label { font-weight: 600; font-size: 15px; }
.form select, .form input[type="email"] { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--input); border-radius: 8px; background: #ffffff; color: var(--ink); }
.form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.form__row input { flex: 1 1 220px; min-width: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.note { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); font-size: 15px; }

/* Product page */
.breadcrumb { padding-top: 20px; font-size: 14px; color: var(--muted); }
.product { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.product__cover { flex: 1 1 320px; min-width: 0; max-width: 400px; }
.product__cover img { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; box-shadow: 18px 22px 0 var(--cover-shadow); }
.product__info { flex: 2 1 480px; min-width: 0; }
.product__title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; }
.badges li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.callout { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--gold-soft); font-weight: 600; }
.price-box { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price { font-family: var(--display); font-size: 34px; font-weight: 700; }
.price-box .muted { margin-top: 8px; }
.price-box .actions { margin-top: 18px; }

.list { margin: 18px 0 0; padding-left: 18px; }
.list li { padding: 6px 0; }
.list + .small { margin-top: 12px; }

.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; background: var(--surface); border-radius: 16px; padding: 16px; }
.parts__item { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.parts__item h3 { font-family: var(--body); font-size: 17px; font-weight: 600; }
.parts__item ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.parts__item li { padding: 3px 0; }

.faq { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

.table-wrap { overflow-x: auto; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 12px; border-bottom: 2px solid var(--ink); }
td { padding: 14px 12px; }

/* About */
.about-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-bottom: 64px; }
.about-hero > div:first-child { flex: 2 1 520px; min-width: 0; }
.about-hero .panel { flex: 1 1 320px; min-width: 0; }

/* Simple pages */
.page-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.prose h2 { font-size: 22px; margin-top: 36px; margin-bottom: 10px; }
.prose p { color: var(--ink); }
.draft { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.errata-title { font-size: 22px; margin-top: 40px; margin-bottom: 14px; }

@media (max-width: 640px) {
    .section { padding-top: 56px; padding-bottom: 56px; }
    .hero { padding-top: 48px; }
    .main-nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-card { transition: none; }
    .guide-card:hover { transform: none; }
}

/* Articles */
.article-card--link { display: block; color: var(--ink); text-decoration: none; transition: box-shadow 0.15s ease; }
.article-card--link:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(17, 33, 63, 0.12); }
.article-card__title { font-size: 19px; line-height: 1.3; letter-spacing: 0; margin-top: 8px; }
.article-card p + h3, .article-card p + h2 { margin-top: 8px; }
.more { margin-top: 20px; font-weight: 600; }
.article__meta { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.article__body { margin-top: 32px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose table { margin: 20px 0; border: 1px solid var(--line); }
.prose td { padding: 10px 12px; border-top: 1px solid var(--line); }
.prose blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.prose code { background: var(--surface); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 22px; }
.sources ul { margin: 12px 0; padding-left: 20px; }
.related { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.preview-bar { margin-top: 16px; padding: 12px 16px; background: var(--gold-soft); border-left: 4px solid var(--gold); font-weight: 600; }

/* Admin */
.admin-narrow { max-width: 520px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-card { display: block; color: var(--ink); text-decoration: none; }
.admin-card:hover { color: var(--ink); border-color: var(--ink); }
.admin-card h2, .grid--three .panel h2 { font-size: 24px; }
.admin-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px 24px; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin-form legend { font-family: var(--display); font-weight: 700; font-size: 19px; padding: 0 6px; }
.admin-form label { font-weight: 600; font-size: 15px; margin-top: 6px; }
.admin-form input:not([type="checkbox"]):not([type="file"]), .admin-form textarea, .admin-form select {
    font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 8px; background: #ffffff; color: var(--ink); width: 100%;
}
.admin-form input[type="file"] { font: inherit; font-size: 14px; }
.admin-form textarea { resize: vertical; line-height: 1.5; }
.admin-form .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; }
.admin-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.admin-form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.admin-form .check--strong { font-weight: 600; margin-top: 12px; padding: 12px 14px; background: var(--gold-soft); border-left: 4px solid var(--gold); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
.form-grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-error { color: var(--bad); font-size: 14px; }
.admin-cover { display: block; width: 120px; margin-top: 10px; border-radius: 4px; border: 1px solid var(--line); }
.alert { padding: 12px 16px; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--accent); }
.alert--ok { background: var(--ok-bg); border-left-color: var(--ok); }
.alert--error { background: var(--bad-bg); border-left-color: var(--bad); }
.alert--error.validation-summary-valid { display: none; }
.alert--error ul { margin: 0; padding-left: 18px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.tag--ok { background: var(--ok-bg); border-color: var(--ok); color: #14532d; }
.inline-form { display: inline; margin: 0; }
td { vertical-align: top; }
.admin-form + .actions, .admin-form .actions { margin-top: 8px; }

/* Reviews */
.stars { color: #b7791f; letter-spacing: 1px; }
.rating-summary { margin-top: 16px; }
.reviews { display: flex; flex-direction: column; gap: 16px; }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #ffffff; }
.review p + p { margin-top: 6px; }
.review__body { white-space: pre-line; }
.review__reply { margin-top: 14px; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 6px; }
.rating { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rating legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }

/* Admin extras */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent-hover); }
td .inline-form + .inline-form { margin-left: 10px; }
.review-admin { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.reject-form select { font: inherit; font-size: 14px; padding: 7px 8px; border: 1px solid var(--input); border-radius: 6px; }
.reply-form { margin-top: 0; }
.notify-panel { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.notify-panel h2 { font-size: 22px; }
.email-preview { margin-top: 16px; overflow-x: auto; }

/* Library */
.library-card { display: flex; gap: 20px; align-items: flex-start; }
.library-card img { flex: none; width: 96px; height: auto; border-radius: 4px; box-shadow: 0 6px 16px rgba(17, 33, 63, 0.2); }
.library-card__title { font-size: 20px; margin: 4px 0 6px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; margin-top: 28px; }
.library-layout h2 { font-size: 24px; margin-bottom: 14px; }
.library-layout aside h2 + * { margin-top: 0; }
.library-layout aside h2:not(:first-child) { margin-top: 36px; }
.toc { margin: 0; padding-left: 22px; }
.toc li { padding: 6px 0; }
.exam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.exam-list .panel { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.exam-list .panel p { flex-basis: 100%; margin: 0; }
@media (max-width: 820px) { .library-layout { grid-template-columns: 1fr; } }

/* Reader: personal licence mark over the page */
.reader { position: relative; }
.reader::before {
    content: attr(data-watermark);
    position: fixed; inset: 40% -10% auto -10%;
    transform: rotate(-24deg);
    text-align: center; font-size: 22px; font-weight: 600;
    color: rgba(17, 33, 63, 0.06);
    pointer-events: none; user-select: none; z-index: 5; white-space: nowrap;
}
.reader__body { font-size: 18px; line-height: 1.7; }
.reader__body img { display: block; margin: 20px auto; }
.reader__body table { display: block; overflow-x: auto; }
.reader__body th, .reader__body td { border: 1px solid var(--line); padding: 8px 10px; }
.reader__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.reader__licence { margin-top: 20px; text-align: center; }
.print-note { display: none; }
@media print {
    .reader > *:not(.print-note) { display: none !important; }
    .print-note { display: block; font-size: 16px; }
    .site-header, .site-footer, .breadcrumb { display: none !important; }
}

/* Practice exams */
.exam { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.question { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; margin: 0; background: #ffffff; }
.question legend { font-weight: 600; padding: 0 4px; line-height: 1.45; }
.question__n { color: var(--muted); }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.option:hover { background: var(--surface); }
.option input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.option__letter { font-weight: 600; }
.score-bar { height: 12px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.score-bar__fill { display: block; height: 100%; background: var(--gold); }
.score-0 { width: 0; } .score-10 { width: 10%; } .score-20 { width: 20%; } .score-30 { width: 30%; } .score-40 { width: 40%; }
.score-50 { width: 50%; } .score-60 { width: 60%; } .score-70 { width: 70%; } .score-80 { width: 80%; } .score-90 { width: 90%; } .score-100 { width: 100%; }
.topic-stats { list-style: none; padding: 0; margin: 12px 0 0; }
.topic-stats li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.review-q { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); border-left-width: 5px; }
.review-q--ok { border-left-color: var(--ok); }
.review-q--bad { border-left-color: var(--bad); }
.review-q__options { list-style: none; padding: 0; margin: 10px 0; }
.review-q__options li { padding: 4px 8px; border-radius: 6px; }
.review-q__options .is-correct { background: var(--ok-bg); font-weight: 600; }
.review-q__options .is-wrong { background: var(--bad-bg); }

/* Analytics */
.range-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #ffffff; }
.stat__label { font-size: 14px; color: var(--muted); }
.stat__value { font-size: 28px; font-weight: 600; margin-top: 4px !important; font-variant-numeric: tabular-nums; }
.stat__delta { font-size: 13px; color: var(--muted); margin-top: 4px !important; }
.stat__delta--good { color: var(--ok); }
.stat__delta--bad { color: var(--bad); }
.chart-title { font-size: 22px; margin: 40px 0 12px; }
.chart-panel { padding: 16px; }
.chart { display: block; width: 100%; height: auto; }
.table-view { margin-top: 12px; }
.table-view summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.analytics-two { margin-top: 8px; }
.analytics-two h2, .analytics-two h3 { margin-top: 32px; margin-bottom: 12px; }
.export-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 16px; }
.export-form input { font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--input); border-radius: 6px; }
.tag--bad { background: var(--bad-bg); border-color: var(--bad); color: #7f1d1d; }
.buy-form { margin-top: 16px; }
.buy-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.buy-form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

/* Support */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report { margin-top: 28px; }
.report summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.report .admin-form { margin-top: 10px; }
.review-q .report { margin-top: 10px; }
.message-body { white-space: pre-line; }
.audit-table td { font-size: 14px; }
.audit-failed td { color: var(--bad); }
.todo ul { margin: 6px 0 0; padding-left: 18px; }

/* Go-live checklist */
.status { display: inline-block; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.status--ok { color: #1f6b3a; }
.status--todo { color: #8a4b00; }

/* Free quiz */
.quiz-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.quiz-list h2 { margin-top: 0; }
.quiz-panel { margin-top: 24px; }
.status--bad { color: #9b1c1c; }
