/* Quizbot for Canvas - the look of the Moodle plugin ("Marking desk"), as a page of its own inside Canvas's frame.
 * Taken from local_quizbot/styles.css (the approved Moodle look, 7 Oct 2026); in Canvas the desk IS the page.
 * Colours: ink #101c19, paper #f6f4ee, ground #f2eee4, marker #e2452f (the one accent), highlighter #f4e05a,
 * correct #1c7a62, muted #5c6b65, hairline rgba(16, 28, 25, 0.13). Depth is a hard offset shadow, never a blur.
 * Fonts are served from here (SIL Open Font License 1.1, see fonts/OFL-*.txt): no call to Google from a school's Canvas.
 */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url(fonts/instrumentsans-400-600-latin.woff2) format("woff2");
    unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02dc, u+0304-0329, u+2000-2215, u+feff-fffd; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url(fonts/instrumentsans-400-600-latin-ext.woff2) format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02ff, u+1d00-1eff, u+2020-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url(fonts/bricolagegrotesque-600-700-latin.woff2) format("woff2");
    unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02dc, u+0304-0329, u+2000-2215, u+feff-fffd; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url(fonts/bricolagegrotesque-600-700-latin-ext.woff2) format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02ff, u+1d00-1eff, u+2020-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(fonts/ibmplexmono-400-latin.woff2) format("woff2");
    unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02dc, u+0304-0329, u+2000-2215, u+feff-fffd; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(fonts/ibmplexmono-400-latin-ext.woff2) format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02ff, u+1d00-1eff, u+2020-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
    src: url(fonts/ibmplexmono-500-latin.woff2) format("woff2");
    unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02dc, u+0304-0329, u+2000-2215, u+feff-fffd; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
    src: url(fonts/ibmplexmono-500-latin-ext.woff2) format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02ff, u+1d00-1eff, u+2020-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff; }

:root {
    --qb-ink: #101c19;
    --qb-ink-soft: #1b2b27;
    --qb-paper: #f6f4ee;
    --qb-ground: #f2eee4;
    --qb-marker: #e2452f;
    --qb-mark: #f4e05a;
    --qb-correct: #1c7a62;
    --qb-muted: #53615b;   /* 4.77:1 on the paper texture's darkest specks (WCAG 1.4.3), was #5c6b65 */
    --qb-danger: #b8301f;
    --qb-rule: rgba(16, 28, 25, 0.13);
    --qb-rule-strong: rgba(16, 28, 25, 0.28);
    --qb-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", arial, sans-serif;
    --qb-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --qb-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

/* ── the desk: in Canvas's frame it is the whole page ──────────────────────── */
body.qb-body {
    min-height: 100vh;
    background-color: var(--qb-ground);
    background-image: url(paper.jpg);
    background-size: 560px 560px;
    color: var(--qb-ink);
    font-family: var(--qb-sans);
    font-size: 15.5px;
    line-height: 1.5;
}

.qb-desk {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 640px) { .qb-desk { padding: 18px 16px 22px; } }

.qb-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--qb-muted);
    font-family: var(--qb-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.qb-brand::before {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--qb-rule);
    border-radius: 50%;
    background: #fff url(quizbothead.png) center / 19px 19px no-repeat;
}

h1.qb-title {
    margin: 8px 0 6px;
    font-family: var(--qb-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.qb-desk h2, .qb-desk h3 {
    margin: 0;
    font-family: var(--qb-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.qb-desk h2 { font-size: 21px; }
.qb-desk h3 { font-size: 18px; }
.qb-desk p { margin: 0; }
.qb-lead { color: var(--qb-muted); max-width: 780px; }
.qb-muted { color: var(--qb-muted); }
.qb-small { font-size: 14px; }

.qb-desk a.qb-u {
    color: var(--qb-ink);
    text-decoration: underline;
    text-decoration-color: rgba(226, 69, 47, 0.55);
    text-underline-offset: 3px;
}

.qb-desk a.qb-u:hover { color: var(--qb-marker); }

/* ── the three steps: numbered squares joined by a rule ────────────────────── */
.qb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qb-step { display: flex; align-items: center; gap: 10px; color: var(--qb-muted); font-weight: 500; }
.qb-step + .qb-step::before { content: ""; width: 28px; height: 1px; background: var(--qb-rule-strong); }
.qb-stepnum {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 1px solid var(--qb-rule-strong); border-radius: 7px; background: #fff;
    color: var(--qb-ink); font-family: var(--qb-mono); font-size: 11.5px; font-weight: 500;
}
.qb-step.is-current { color: var(--qb-ink); font-weight: 600; }
.qb-step.is-current .qb-stepnum { border-color: var(--qb-ink); background: var(--qb-ink); color: var(--qb-paper); box-shadow: 2px 2px 0 var(--qb-marker); }
.qb-step.is-done { color: var(--qb-ink-soft); }
.qb-step.is-done .qb-stepnum { border-color: var(--qb-correct); color: var(--qb-correct); }

/* ── cards and notes: white, hairline, no blur ─────────────────────────────── */
.qb-card { padding: 22px 24px; border: 1px solid var(--qb-rule); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.qb-card.is-stamped { border-color: var(--qb-ink); box-shadow: 4px 4px 0 var(--qb-marker); }
.qb-note { padding: 14px 18px; border: 1px solid var(--qb-rule); border-radius: 12px; background: #fbfaf6; display: flex; flex-direction: column; gap: 6px; }
.qb-note.is-problem { border-color: var(--qb-danger); background: #fdf0ed; }
.qb-note.is-good { border-color: var(--qb-correct); background: rgba(28, 122, 98, 0.06); }
.qb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.qb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.qb-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ── badges: small mono capitals ──────────────────────────────────────────── */
.qb-badge {
    display: inline-block; padding: 3px 7px; border: 1px solid var(--qb-rule-strong); border-radius: 6px; background: #fff;
    font-family: var(--qb-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.qb-badge.is-mark { border-color: rgba(16, 28, 25, 0.18); background: var(--qb-mark); }
.qb-badge.is-done { border-color: var(--qb-correct); background: var(--qb-correct); color: #fff; }
.qb-label { font-family: var(--qb-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qb-muted); }

/* ── buttons: ink with a red stamp; quiet ones are hairline outlines ────────── */
.qb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 18px; border: 1px solid var(--qb-rule-strong); border-radius: 9px; background: #fff;
    color: var(--qb-ink); font-family: var(--qb-sans); font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.qb-btn.is-ink { border-color: var(--qb-ink); background: var(--qb-ink); color: var(--qb-paper); box-shadow: 3px 3px 0 var(--qb-marker); font-size: 16px; min-height: 46px; padding: 0 20px; }
.qb-btn.is-ink:hover, .qb-btn.is-ink:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--qb-marker); }
.qb-btn.is-ink:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--qb-marker); }
.qb-btn:focus-visible { outline: 2px solid var(--qb-marker); outline-offset: 3px; }
.qb-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ── form fields ─────────────────────────────────────────────────────────── */
.qb-field { display: flex; flex-direction: column; gap: 4px; }
.qb-field label { font-size: 13px; color: var(--qb-muted); }
.qb-input, .qb-select {
    width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #7d8884; border-radius: 9px; background: #fff;
    color: var(--qb-ink); font-family: var(--qb-sans); font-size: 15px;
}
.qb-input.is-mono { font-family: var(--qb-mono); }
.qb-input:focus, .qb-select:focus { border-color: var(--qb-ink); outline: 0; box-shadow: 0 0 0 3px rgba(226, 69, 47, 0.2); }
.qb-input.is-invalid { border-color: var(--qb-danger); }
.qb-error { color: var(--qb-danger); font-size: 13.5px; }

/* ── facts: a row of labelled values ──────────────────────────────────────── */
.qb-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); border: 1px solid var(--qb-rule); border-radius: 11px; overflow: hidden; }
.qb-facts > div { padding: 12px 14px; background: var(--qb-paper); }
.qb-facts dd { margin: 4px 0 0; font-weight: 600; }

/* ── tables ──────────────────────────────────────────────────────────────── */
.qb-tablebox { overflow-x: auto; }
.qb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.qb-table th { padding: 10px 12px; border-bottom: 1px solid var(--qb-rule); text-align: left; font-family: var(--qb-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qb-muted); }
.qb-table td { padding: 12px; border-bottom: 1px solid var(--qb-rule); }

/* ── numbered setup steps ─────────────────────────────────────────────────── */
.qb-setupstep { display: flex; gap: 16px; align-items: flex-start; }
.qb-setupstep > .qb-stepnum { flex: 0 0 30px; width: 30px; height: 30px; }
.qb-setupstep > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qb-code { font-family: var(--qb-mono); font-size: 14px; word-break: break-all; }

.qb-contact { text-align: center; color: var(--qb-muted); font-size: 14px; }

/* ── the making pages (sources, questions, review): from local_quizbot/styles.css ── */
.qb-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.qb-cols > .qb-main { flex: 999 1 520px; min-width: 0; }
.qb-cols > .qb-side { flex: 1 1 300px; min-width: 0; }

.qb-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; border-bottom: 1px solid var(--qb-rule); }
.qb-tab {
    margin-bottom: -1px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
    border: 0; border-bottom: 2px solid transparent; background: none; color: var(--qb-muted);
    font-family: var(--qb-sans); font-size: 15.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.qb-tab:hover { border-bottom-color: var(--qb-rule-strong); color: var(--qb-ink); }
.qb-tab.is-active { border-bottom-color: var(--qb-marker); color: var(--qb-ink); }
.qb-count { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--qb-ink); color: var(--qb-paper); font-family: var(--qb-mono); font-size: 10.5px; font-weight: 500; text-align: center; }

.qb-group { margin: 22px 0 8px; }
.qb-list { overflow: hidden; border: 1px solid var(--qb-rule); border-radius: 11px; background: #fff; }
.qb-pick { min-height: 60px; padding: 10px 14px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--qb-rule); border-inline-start: 3px solid transparent; cursor: pointer; }
.qb-pick:first-child { border-top: 0; }
.qb-pick:hover { background: #fbfaf6; }
.qb-pick:has(input:checked) { border-inline-start-color: var(--qb-marker); background: #fffcf2; }
.qb-pick input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--qb-ink); }
.qb-pick .qb-badge { flex: 0 0 82px; text-align: center; }
.qb-pick .qb-name { display: block; font-weight: 600; }
.qb-pick .qb-detail { display: block; font-size: 13.5px; color: var(--qb-muted); }

.qb-chosen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qb-chosen li { padding: 9px 12px; border: 1px solid var(--qb-rule); border-radius: 10px; background: var(--qb-paper); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.qb-x { border: 0; background: none; color: var(--qb-muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 2px; }

.qb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qb-tile { padding: 14px 15px; border: 1px solid var(--qb-rule); border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; transition: border-color 120ms ease, box-shadow 120ms ease; }
.qb-tile:focus-within { border-color: var(--qb-ink); box-shadow: 4px 4px 0 var(--qb-marker); }
.qb-tile label { display: block; font-weight: 600; font-size: 16px; }
.qb-tile .qb-num { flex: none; align-self: flex-start; }
@media (max-width: 760px) { .qb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .qb-tiles { grid-template-columns: 1fr; } .qb-tile { flex-direction: row; align-items: center; } }
.qb-num { flex: 0 0 96px; width: 96px; min-height: 52px; padding: 0 10px; border: 1px solid #7d8884; border-radius: 9px; text-align: center; font-family: var(--qb-mono); font-size: 18px; font-weight: 500; }
.qb-num.is-small { flex-basis: 80px; width: 80px; min-height: 44px; font-size: 16px; }
.qb-panel { padding: 20px 22px; border: 1px solid var(--qb-rule); border-radius: 14px; background: #fbfaf6; display: flex; flex-direction: column; gap: 10px; }
.qb-levels { overflow: hidden; border: 1px solid var(--qb-rule); border-radius: 11px; background: #fff; }
.qb-levels > div { padding: 10px 14px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--qb-rule); }
.qb-levels > div:first-child { border-top: 0; }
.qb-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--qb-rule-strong); border-radius: 9px; background: #fff; font-family: var(--qb-sans); font-weight: 600; font-size: 14px; cursor: pointer; }

.qb-q { padding: 20px 24px; border: 1px solid var(--qb-rule); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease; }
.qb-q:hover { border-color: var(--qb-ink); box-shadow: 4px 4px 0 var(--qb-marker); }
.qb-q:not(:has(input[name="tick[]"]:checked)) { opacity: 0.62; }
.qb-q .qb-qhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qb-q .qb-qhead label { display: flex; align-items: center; gap: 8px; font-family: var(--qb-display); font-size: 18px; font-weight: 700; }
.qb-q .qb-qhead input { width: 18px; height: 18px; accent-color: var(--qb-ink); }
.qb-qtext { font-size: 17px; font-weight: 500; }
.qb-line { padding: 9px 12px; border: 1px solid var(--qb-rule); border-radius: 9px; background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.qb-line.is-correct { border-color: var(--qb-correct); background: rgba(28, 122, 98, 0.06); font-weight: 600; }
.qb-line .qb-sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--qb-muted); }
.qb-correctmark { color: var(--qb-correct); font-family: var(--qb-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.qb-btn.is-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.qb-dest { padding: 16px 18px; border: 1px solid var(--qb-rule); border-radius: 12px; }
.qb-dest:has(input[type="radio"]:checked) { border-color: var(--qb-ink); background: #fffcf2; }
.qb-dest > label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; cursor: pointer; }
.qb-dest input[type="radio"] { width: 18px; height: 18px; accent-color: var(--qb-marker); }
.qb-dest .qb-destbody { margin-top: 14px; display: none; }
.qb-dest:has(input[type="radio"]:checked) .qb-destbody { display: block; }
.qb-state { display: inline-block; min-width: 92px; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; text-align: center; font-family: var(--qb-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.qb-state.is-done { background: var(--qb-correct); color: #fff; }
.qb-state.is-now { background: var(--qb-ink); color: var(--qb-paper); }
.qb-state.is-problem { background: var(--qb-marker); color: #fff; }
.qb-state.is-waiting { border-color: var(--qb-rule-strong); background: #fff; color: var(--qb-muted); }
.qb-input::placeholder { font-family: var(--qb-sans); }
textarea.qb-input { min-height: 240px; padding: 10px 12px; line-height: 1.5; }

/* Bloom's: the quick choices and the skill rows only once "Choose how many questions test each skill" is ticked */
.qb-bloombody { display: none; flex-direction: column; gap: 10px; }
.qb-panel:has(input[name="bloomon"]:checked) .qb-bloombody { display: flex; }

/* the step Quizbot is on: a turning ring in its "Now" badge (as in the Moodle plugin) */
.qb-spin { display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qb-spin 0.8s linear infinite; }
@keyframes qb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qb-spin { animation-duration: 2.4s; } }

/* selling (11 Oct 2026): the buy page's plan cards (a radio inside each label), the key on the thank-you page, and
   the two choices of setup step 3 */
.qb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.qb-plan { position: relative; padding: 18px 20px; border: 1px solid #7d8884; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.qb-plan:hover { border-color: var(--qb-ink); }
.qb-plan input { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--qb-ink); }
.qb-plan:has(input:checked) { border-color: var(--qb-ink); outline: 1px solid var(--qb-ink); box-shadow: 4px 4px 0 var(--qb-marker); }
.qb-plan:has(input:focus-visible) { outline: 2px solid var(--qb-marker); outline-offset: 3px; }
.qb-price { font-family: var(--qb-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.qb-keybox { padding: 12px 14px; border: 1px dashed rgba(16, 28, 25, 0.4); border-radius: 9px; background: var(--qb-paper); font-family: var(--qb-mono); font-size: 16px; word-break: break-all; user-select: all; }
.qb-choice { padding: 18px 20px; border: 1px solid var(--qb-rule); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.qb-choice.is-trial { border-color: var(--qb-correct); background: rgba(28, 122, 98, 0.05); }
.qb-choice ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.qb-badge.is-trial { border-color: var(--qb-correct); background: #fff; color: #14604d; }

/* 11 Oct 2026: "Delete" beside a question; and a pressed button that shows Quizbot is working (set by the layout's script) */
.qb-btn.is-danger { border-color: rgba(184, 48, 31, 0.45); color: var(--qb-danger); }
.qb-btn.is-danger:hover, .qb-btn.is-danger:focus-visible { border-color: var(--qb-danger); background: #fdf0ed; }
.qb-btn.is-busy { pointer-events: none; opacity: 0.75; }
.qb-btn.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qb-spin 0.8s linear infinite; }

/* Quizbot Analysis (11 Oct 2026): the teacher's tabs, figures, bars and tables */
.qb-tabs2 { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--qb-rule); border-radius: 11px; background: #fff; }
.qb-tabs2 a { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--qb-ink); text-decoration: none; font-weight: 600; }
.qb-tabs2 a:hover { background: var(--qb-paper); }
.qb-tabs2 a[aria-current="page"] { background: var(--qb-ink); color: var(--qb-paper); }
.qb-tiles5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.qb-tile2 { padding: 14px 16px; border: 1px solid var(--qb-rule); border-radius: 12px; background: #fff; }
.qb-big { font-family: var(--qb-mono); font-size: 26px; font-weight: 500; line-height: 1.3; }
.qb-big span { font-family: var(--qb-sans); font-size: 13px; font-weight: 400; color: var(--qb-muted); }
.qb-big.is-low, .qb-warn { color: var(--qb-danger); }
.qb-desk h2.qb-h { font-size: 18px; }
.qb-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; align-items: end; height: 150px; padding: 0 6px; border-bottom: 1px solid var(--qb-rule-strong); }
.qb-bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.qb-bar { width: 46%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--qb-ink); }
.qb-bar.is-low, .qb-key.is-low { background: var(--qb-marker); }
.qb-barlabels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; padding: 0 6px; font-family: var(--qb-mono); font-size: 11px; color: var(--qb-muted); text-align: center; }
.qb-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--qb-ink); }
.qb-meterhead { display: flex; justify-content: space-between; gap: 10px; }
.qb-meter { height: 6px; margin-top: 4px; border-radius: 3px; background: #ebe7dc; }
.qb-meter > * { display: block; height: 6px; border-radius: 3px; background: var(--qb-ink); }
.qb-meter > .is-low { background: var(--qb-marker); }
.qb-meter.is-inline { display: inline-block; width: 60px; margin: 0; vertical-align: middle; }
.qb-scroll { overflow-x: auto; }
.qb-scroll:focus-visible { outline: 2px solid var(--qb-marker); outline-offset: 2px; }   /* keyboard users can scroll wide tables (axe scrollable-region-focusable) */
.qb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qb-table th { padding: 6px 8px; text-align: left; font-family: var(--qb-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qb-muted); }
.qb-table td { padding: 9px 8px; border-top: 1px solid var(--qb-rule); vertical-align: top; }
.qb-table th:first-child, .qb-table td:first-child { padding-left: 0; }
.qb-table th:last-child, .qb-table td:last-child { padding-right: 0; }
.qb-sr { position: absolute; left: -9999px; }
.qb-details > summary { display: inline-flex; list-style: none; cursor: pointer; }
.qb-details > summary::-webkit-details-marker { display: none; }
/* an element a script hides stays hidden, whatever its class says about display (the "Show" and "Count again" buttons) */
.qb-desk [hidden] { display: none !important; }
.qb-badge.is-revise { border-color: var(--qb-danger); color: var(--qb-danger); }

/* remedial quizzes (11 Oct 2026): the three steps, a topic's students, the dark bar with the next step */
.qb-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.qb-pills li { padding: 6px 14px; border: 1px solid var(--qb-rule-strong); border-radius: 999px; color: var(--qb-muted); }
.qb-pills li[aria-current="step"] { border-color: var(--qb-ink); background: var(--qb-ink); color: #fff; font-weight: 600; }
.qb-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qb-people li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--qb-rule); }
.qb-people input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--qb-ink); }
.qb-bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-radius: 14px; background: var(--qb-ink); color: #fff; }
.qb-bar2 .qb-small { color: #c9d1ce; }
.qb-bar2 .qb-btn:not(.is-ink) { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.qb-bar2 .qb-btn.is-ink { background: var(--qb-paper); color: var(--qb-ink); border-color: var(--qb-paper); }
.qb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-chips span { padding: 3px 10px; border: 1px solid var(--qb-rule-strong); border-radius: 999px; font-size: 13px; background: #fff; }
