/* "Build a quiz from real facts" (/uses/quiz). The test sheet is the interface: the choices sit on its band, it is
   taken and graded on screen in two inks (green for right, wine for wrong), and it prints as a test or as its answer key.
   Built from the approved design (version 4), scoped under .qz so nothing reaches the rest of the site. The state classes
   mode-build, mode-take, mode-graded and print-key sit on the .qz root. */

.qz { --ink:#18202b; --soft:#586170; --line:#dde2e9; --line-strong:#c3cad4;
  --blue:#2454eb; --blue-dark:#1b42c0; --orange:#ff7957;
  --pen:#7a1f2b; --wrong:#7a1f2b; --right:#14764a; --band:#f6f7f9; --canvas:#f3f5f8; --paper:#ffffff;
  --bubble:#7a8492;
  --font:"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.qz { background:var(--canvas);color:var(--ink);font:16px/1.5 var(--font); }
.qz button, .qz input, .qz select { font:inherit;color:inherit }
.qz a { color:var(--blue) }
.qz .sr { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap }
.qz :focus-visible { outline:2px solid var(--blue);outline-offset:2px }
.qz [hidden] { display:none!important }
.qz .wrap { max-width:1232px;margin:0 auto;padding:28px 24px 0 }
.qz .layout { display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:start }
.qz .qhero { position:sticky;top:20px }
.qz .crumb { margin:0;color:var(--soft);font-size:14px }
.qz h1 { font-size:32px;line-height:1.1;font-weight:600;letter-spacing:-0.035em;margin:4px 0 12px }
.qz .lede { margin:0 0 10px;color:var(--ink);font-size:16px }
.qz .for { margin:0 0 22px;color:var(--soft);font-size:15px }
.qz .qspec { margin:0;position:relative }
.qz .spec-paper { position:relative;background:var(--paper);border:1px solid var(--line);box-shadow:0 1px 2px rgba(24,32,43,.05),0 10px 26px -18px rgba(24,32,43,.25);padding:16px 16px 14px 48px;font-size:14px }
.qz .spec-q { position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);margin:0 0 12px }
.qz .spec-q:last-of-type { margin-bottom:4px }
.qz .spec-q .n { font-weight:600 }
.qz .spec-q p { margin:0 0 6px;line-height:1.35 }
.qz .spec-q .tf { display:flex;gap:18px }
.qz .spec-q .o { display:inline-flex;align-items:center;gap:7px;color:var(--ink) }
.qz .spec-q .bb { position:relative;display:grid;place-items:center;width:20px;height:20px;border:1.5px solid var(--bubble);border-radius:50%;font-size:10px;font-weight:600;color:var(--soft) }
.qz .spec-q .bb.f { background:var(--ink);border-color:var(--ink);color:#fff }
.qz .spec-q .bb svg { position:absolute;left:-7px;top:-7px;width:34px;height:34px;overflow:visible }
.qz .spec-q .rt { color:var(--right);font-weight:600 }
.qz .spec-q .mk { position:absolute;left:-44px;top:-4px;width:30px;height:30px;overflow:visible }
.qz .spec-top { display:flex;justify-content:space-between;align-items:center;margin:-2px 0 14px -32px;padding:0 4px 10px 0;border-bottom:2px solid var(--ink) }
.qz .spec-top .st { font-size:13px;font-weight:600 }
.qz .spec-score { position:relative;width:62px;height:40px;display:flex;align-items:baseline;justify-content:center;padding-top:6px;font-variant-numeric:tabular-nums }
.qz .spec-score b { font-size:22px;color:var(--right);font-weight:700;line-height:1 }
.qz .spec-score span { font-size:12px;color:var(--soft);margin-left:3px }
.qz .spec-score svg { position:absolute;left:-8px;top:-8px;width:78px;height:58px;overflow:visible }
.qz .qspec figcaption { margin:12px 0 0;font-size:14.5px;color:var(--soft) }
.qz .qspec figcaption b { color:var(--ink);font-weight:600 }
.qz .qbtn { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:6px;background:var(--paper);font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;color:var(--ink) }
.qz .qbtn.primary { background:var(--blue);border-color:var(--blue);color:#fff }
.qz .qbtn:disabled { opacity:.5;cursor:default }
@media (hover:hover) {
    .qz .qbtn:not(:disabled):hover, .qz .custom-btn:hover { border-color:var(--ink) }
    .qz .qbtn.primary:not(:disabled):hover { background:var(--blue-dark);border-color:var(--blue-dark) }
    .qz .tog:hover span { background:#eceff3 }
    .qz.mode-take .opt:hover .bub, .qz.mode-take .mb:hover .bub, .qz.mode-take .oitem:not(:disabled):hover .obox { border-color:var(--ink) }
}
.qz .chk { position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;cursor:pointer }
.qz .chk input, .qz .tog input, .qz .seg input { position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer }
.qz .chk span, .qz .tog span { display:inline-flex;align-items:center;gap:9px }
.qz .chk span::before, .qz .tog span::before { content:"";flex:none;display:inline-block;width:16px;height:16px;border:1.5px solid var(--bubble);border-radius:3px;background:var(--paper) no-repeat center/12px 12px }
.qz .chk input:checked+span::before, .qz .tog input:checked+span::before { border-color:var(--ink);background-color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") }
.qz .chk input:focus-visible+span, .qz .tog input:focus-visible+span { outline:2px solid var(--blue);outline-offset:3px }
.qz .chk.green input:checked+span::before { border-color:var(--right);background-color:var(--right) }
.qz .hint { display:block;font-size:13px;color:var(--soft);line-height:1.35;margin:0 0 0 29px }
.qz .seg { display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line-strong);border-radius:4px;background:var(--paper) }
.qz .seg label { position:relative;display:block }
.qz .seg label+label span { border-left:1px solid var(--line-strong) }
.qz .seg span { display:flex;align-items:center;justify-content:center;min-height:44px;font-size:15px }
.qz .seg label:first-child span { border-radius:3px 0 0 3px }
.qz .seg label:last-child span { border-radius:0 3px 3px 0 }
.qz .seg input:checked+span { background:var(--ink);color:#fff }
.qz .seg input:focus-visible+span { outline:2px solid var(--blue);outline-offset:2px;position:relative;z-index:1 }
.qz .warn::before { content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-right:8px;vertical-align:1px }
.qz .text { width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:4px;background:var(--paper);font-size:15px }
.qz .paper-col { min-width:0 }
.qz .status { margin:0 auto 0 0;font-size:15px;color:var(--soft);font-variant-numeric:tabular-nums;min-width:0 }
.qz .status b { color:var(--ink);font-weight:600 }
.qz .sheet { position:relative;max-width:816px;margin:0 auto;background:var(--paper);border:1px solid var(--line);box-shadow:0 1px 2px rgba(24,32,43,.05),0 12px 32px -18px rgba(24,32,43,.22);padding:0 64px 36px 84px;container-type:inline-size;scroll-margin-top:96px;-webkit-print-color-adjust:exact;print-color-adjust:exact }
.qz .band { position:relative;margin:0 -64px 30px -84px;padding:20px 64px 0 84px;background:var(--band);border-bottom:1px dashed var(--line-strong) }
.qz .bfaces { display:grid }
.qz .bface { grid-area:1/1;min-width:0;padding-bottom:16px }
.qz .bface.off, .qz #fBuild.off { display:none }
.qz .brow { display:grid;grid-template-columns:92px minmax(0,1fr);gap:4px 12px;align-items:start;margin:0 0 10px }
.qz .bl { font-size:14px;font-weight:600;padding-top:11px }
.qz .togs { display:flex;flex-wrap:wrap;gap:0 2px;margin-left:-6px }
.qz .tog { position:relative;display:block }
.qz .tog span { min-height:44px;padding:0 10px 0 6px;border-radius:4px;font-size:15px;color:var(--soft) }
.qz .tog input:checked+span { color:var(--ink) }
.qz .countwrap { display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px }
.qz .sel { position:relative;display:inline-block }
.qz .sel select { appearance:none;-webkit-appearance:none;min-height:44px;padding:0 38px 0 14px;border:1px solid var(--line-strong);border-radius:6px;background:var(--paper);font-size:15px;font-weight:600;cursor:pointer }
.qz .sel::after { content:"";position:absolute;right:15px;top:16px;width:7px;height:7px;border-right:2px solid var(--soft);border-bottom:2px solid var(--soft);transform:rotate(45deg);pointer-events:none }
.qz .count-note { margin:0;flex:1 1 200px;height:44px;display:flex;align-items:center;font-size:14px;line-height:1.4;color:var(--soft) }
.qz .count-note .warn { color:var(--ink) }
/* Options: a settings button in the style of the tools' Options, with a chevron that turns while its panel is open. */
.qz .custom-btn { display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 11px 0 13px;border:1px solid var(--line-strong);border-radius:6px;background:var(--paper);cursor:pointer;text-align:left;max-width:100%;color:var(--ink) }
.qz .custom-btn .t { font-weight:600;font-size:15px }
.qz .custom-btn .site-icon { width:18px;height:18px;flex:none }
.qz .custom-btn .site-icon:last-child { width:15px;height:15px;margin-left:2px;color:var(--soft);transition:transform .15s ease }
.qz .custom-btn[aria-expanded=true] { border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink) }
.qz .custom-btn[aria-expanded=true] .site-icon:last-child { transform:rotate(180deg) }
.qz .custom-btn .s { font-size:13.5px;color:var(--soft);line-height:1.35 }
.qz .cutline { margin:6px 0 0;padding:8px 0 10px;font-size:12.5px;color:var(--soft) }
.qz .bt-h { margin:0 0 6px;font-size:20px;font-weight:600;letter-spacing:-0.02em }
.qz .bface p.b { margin:0 0 8px;color:var(--soft);font-size:15px;max-width:60ch }
.qz .bface p.b b { color:var(--ink);font-weight:600 }
.qz .parts-res { display:flex;flex-wrap:wrap;gap:6px 24px;margin:6px 0 4px;font-size:14.5px;color:var(--soft) }
.qz .parts-res b { color:var(--pen);font-weight:700;font-variant-numeric:tabular-nums }
.qz .legend3 { display:flex;flex-wrap:wrap;gap:8px 22px;margin:12px 0 0;font-size:14px;color:var(--soft) }
.qz .legend3>span { display:inline-flex;align-items:center;gap:8px }
.qz .legend3 span.m-only { display:none }
.qz .legend3 svg { width:22px;height:22px;overflow:visible }
.qz .legend3 i { display:inline-block;width:18px;height:18px;border-radius:50%;background:var(--ink) }
.qz .mob-only { display:none }
.qz .bface { align-self:center }
.qz .hstack { display:grid }
.qz .hstack>* { grid-area:1/1;min-width:0 }
.qz .fbpanel { visibility:hidden;background:var(--paper);border:1px solid var(--line);box-shadow:0 1px 2px rgba(24,32,43,.05),0 10px 26px -18px rgba(24,32,43,.25);padding:16px 18px;display:flex;flex-direction:column }
.qz.mode-take.check-on .fbpanel { visibility:visible }
.qz.mode-take.check-on .qspec { visibility:hidden }
.qz .fp-body { flex:1 1 auto }
.qz .fp-actions { display:none;padding-top:10px }
.qz .fbpanel.has .fp-actions { display:block }
.qz .fp-q { display:flex;align-items:center;gap:10px;margin:0 0 6px;font-weight:600 }
.qz .fp-q svg { width:30px;height:30px;overflow:visible;flex:none }
.qz .fp-q .n { font-variant-numeric:tabular-nums }
.qz .fp-k { margin:0 0 8px;font-size:13px;color:var(--soft) }
.qz .fp-wait h2 { margin:0 0 8px;font-size:18px;font-weight:600;letter-spacing:-0.02em }
.qz .fp-wait p { margin:0 0 10px;color:var(--soft);font-size:15px }
.qz .fp-wait p b { color:var(--ink);font-weight:600 }
.qz .fbpanel .fb-h { font-size:16px }
.qz .q.current::before { content:"";position:absolute;left:-14px;top:3px;bottom:3px;width:3px;border-radius:2px;background:var(--blue) }
.qz .fcols { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px 28px;align-items:center }
.qz .tally { display:block;margin:0;padding:8px 14px 6px;border:1.5px solid var(--ink);border-radius:4px;background:var(--paper);font-size:14px;color:var(--soft);font-variant-numeric:tabular-nums }
.qz .tally::before { content:"Score by part";display:block;font-size:12.5px;color:var(--soft);margin-bottom:2px }
.qz .tally span { display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:3px 0;border-top:1px solid var(--line) }
.qz .tally span:first-child { border-top:0 }
.qz .tally span b { display:inline-block;min-width:24px;text-align:right;border-bottom:1px solid var(--ink);color:var(--right);font-weight:700;height:19px;line-height:19px }
.qz.mode-graded .tally span b { border-bottom-color:transparent }
.qz .ph-block { display:none }
.qz .qmap { display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 2px }
.qz .qm { position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line-strong);border-radius:4px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums }
.qz .qm.ans { background:var(--ink);border-color:var(--ink);color:#fff }
.qz .qm svg { position:absolute;right:-6px;top:-8px;width:22px;height:22px;overflow:visible }
.qz .qm .pen path { stroke-width:3.4 }
.qz .more-menu { display:none }
.qz .trow { display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px }
.qz .tsum { display:none }
.qz .pop { position:absolute;left:84px;right:64px;top:0;z-index:30;background:var(--paper);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 24px 52px -20px rgba(24,32,43,.4),0 2px 6px rgba(24,32,43,.06);padding:14px 20px 6px;display:none }
.qz .pop.open { display:block }
.qz .pop .grp { margin:0 0 14px }
.qz .pop .gl { display:block;font-size:14px;font-weight:600;margin:0 0 6px }
.qz .pop .togs { margin-left:-6px }
.qz .pop .row2 { display:flex;flex-wrap:wrap;gap:6px 18px;align-items:flex-start }
.qz .pop .done-row { display:flex;justify-content:flex-end;gap:8px }
.qz .ph-h { display:none }
.qz .scrim { display:none }
.qz .fields { display:flex;flex-wrap:wrap;gap:12px 28px;font-size:14px;color:var(--soft);margin-bottom:28px }
.qz .field { display:flex;align-items:flex-end;gap:10px;flex:1 1 260px }
.qz .field i { flex:1;min-width:0;height:22px;border-bottom:1px solid var(--ink);font-style:normal;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:clip }
/* The name line takes a typed name on screen, which prints on a marked test; on a blank printed test it is a line. */
.qz .fname { flex:1;min-width:0;height:34px;padding:8px 6px 2px;border:0;border-bottom:1px solid var(--ink);border-radius:0;background:transparent;font:inherit;font-size:15px;color:var(--ink) }
.qz .fname:focus, .qz .fname:focus-visible { outline:none;border-bottom-color:var(--blue);box-shadow:0 1.5px 0 var(--blue);background:#e9effe;border-radius:4px 4px 0 0 }
.qz .field.date { flex:0 1 190px }
.qz .fields { position:relative }
.qz .titlerow { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;margin:0 0 16px }
.qz .ttl { margin:0;font-size:30px;line-height:1.12;min-height:2.24em;font-weight:600;letter-spacing:-0.035em;overflow-wrap:anywhere }
.qz .meta { margin:8px 0 0;font-size:14px;color:var(--soft);font-variant-numeric:tabular-nums }
.qz .scorebox { position:relative;width:132px;height:84px;border:1.5px solid var(--ink);border-radius:4px;padding:6px 10px 0 }
.qz .scorebox .lbl { font-size:12.5px;color:var(--soft) }
.qz .scorebox .pct { margin-left:6px;font-size:12.5px;font-weight:700;color:var(--right);font-variant-numeric:tabular-nums }
.qz .sv { display:flex;align-items:baseline;justify-content:center;gap:5px;margin-top:4px;font-variant-numeric:tabular-nums }
.qz .earned { display:inline-block;min-width:44px;height:36px;text-align:right;font-size:32px;line-height:36px;font-weight:700;color:var(--right);border-bottom:1px solid var(--ink) }
.qz.mode-graded .earned { border-bottom-color:transparent }
.qz .sv .of { font-size:16px;color:var(--soft) }
.qz .loop { position:absolute;left:-16px;top:-12px;width:164px;height:108px;overflow:visible;pointer-events:none;display:none }
.qz .heavy { height:0;border:0;border-top:3px solid var(--ink);margin:0 }
.qz .stack { display:grid }
.qz .stack>span { grid-area:1/1 }
.qz .directions { margin:12px 0 0;font-size:14px;color:var(--soft) }
@media screen {
    .qz .v-take, .qz .v-graded { visibility:hidden }
    .qz.mode-take .v-paper, .qz.mode-graded .v-paper { visibility:hidden }
    .qz.mode-take .v-take { visibility:visible }
    .qz.mode-graded .directions .v-take { visibility:hidden }
    .qz.mode-graded .directions .v-graded, .qz.mode-graded .part-h .v-take { visibility:visible }
}
.qz .part { margin-top:30px }
.qz .part-h { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding-top:10px;border-top:1.5px solid var(--ink);margin-bottom:18px }
.qz .part-h h3 { margin:0;font-size:16px;font-weight:600;letter-spacing:-0.01em }
.qz .part-h .inst { margin:0;grid-column:1;font-size:14px;color:var(--soft) }
.qz .sub { grid-row:1/3;grid-column:2;font-size:14px;color:var(--soft);white-space:nowrap;font-variant-numeric:tabular-nums;padding-top:2px }
.qz .subv { display:inline-block;min-width:30px;text-align:right;border-bottom:1px solid var(--ink);color:var(--right);font-weight:700;font-size:15px;line-height:18px;height:20px }
.qz.mode-graded .subv { border-bottom-color:transparent }
.qz .q { position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);margin:0 0 26px;break-inside:avoid }
.qz .q.enter { animation:fade .22s ease-out }
@keyframes fade { from{opacity:0}to{opacity:1} }
.qz .num { font-weight:600;font-variant-numeric:tabular-nums;line-height:1.5 }
.qz .qb { min-width:0 }
.qz .qtext { margin:0 0 8px;overflow-wrap:break-word }
.qz .q[data-type=fill] .qtext { margin-bottom:4px }
.qz .mark { position:absolute;left:-62px;top:-8px;width:46px;height:58px;pointer-events:none;display:flex;flex-direction:column;align-items:center }
.qz .mark svg { width:40px;height:40px;overflow:visible }
.qz .mark .frac { font-size:15px;font-weight:700;color:var(--pen);line-height:1;margin-top:10px;font-variant-numeric:tabular-nums;white-space:nowrap }
.qz .pen path { fill:none;stroke:var(--wrong);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round }
.qz .pen.ok path, .qz .loop path { stroke:var(--right) }
/* The right answer, written in where it was missed, is in the green of a right answer. */
.qz .fix { color:var(--right);font-weight:600 }
.qz .fb-h .ok { color:var(--right) }
.qz .ring path, .qz .ring-k path { stroke:var(--right) }
.qz .opts { display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px }
@container (min-width:540px) { .qz .opts.mc{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} }
.qz .opts.tf { display:flex;flex-wrap:wrap;gap:0 36px }
.qz .opt { position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:2px 8px 2px 0;cursor:pointer;min-width:0 }
.qz.mode-build .opt, .qz.mode-build .mb, .qz.mode-build .oitem { cursor:default }
.qz .opt input, .qz .mb input { position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none }
.qz .bub { position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;border:1.5px solid var(--bubble);border-radius:50%;font-size:13px;font-weight:600;color:var(--soft);background:var(--paper);-webkit-print-color-adjust:exact;print-color-adjust:exact }
.qz input:checked+.bub { background:var(--ink);border-color:var(--ink);color:#fff }
.qz input:focus-visible+.bub { outline:2px solid var(--blue);outline-offset:3px }
.qz .otext { min-width:0;overflow-wrap:break-word;line-height:1.35 }
.qz .ring { position:absolute;left:-10px;top:-10px;width:50px;height:50px;overflow:visible;display:none;pointer-events:none }
.qz .keyview .is-key .ring, .qz .q.done.miss .opt.is-key .ring, .qz .q.done .mrow.miss .is-key .ring { display:block }
.qz .keyview .is-key .otext, .qz .q.done.miss .opt.is-key .otext { color:var(--right);font-weight:600 }
.qz .blank { display:inline-block;width:11em;max-width:100%;height:40px;padding:10px 6px 3px;margin:-14px 3px -4px;border:0;border-bottom:1.5px solid var(--ink);border-radius:0;background:transparent;font-weight:500;color:var(--ink);-webkit-text-fill-color:var(--ink);opacity:1;vertical-align:baseline }
.qz .blank.keyval { color:var(--right);-webkit-text-fill-color:var(--right);font-weight:600 }
.qz .blank:focus, .qz .blank:focus-visible { outline:none;border-bottom-color:var(--blue);box-shadow:0 1.5px 0 var(--blue);background:#e9effe;border-radius:4px 4px 0 0 }
.qz .olist { display:grid;grid-template-columns:minmax(0,1fr);gap:2px 24px }
@container (min-width:540px) { .qz .olist{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} }
.qz .oitem { display:flex;align-items:center;gap:14px;width:100%;min-height:44px;padding:2px 8px 2px 0;border:0;background:none;text-align:left;cursor:pointer;border-radius:4px;color:var(--ink) }
.qz .oitem:disabled { cursor:default;color:var(--ink) }
.qz .obox { position:relative;flex:none;display:grid;place-items:center;width:34px;height:34px;border:1.5px solid var(--bubble);border-radius:3px;font-weight:600;font-size:17px;font-variant-numeric:tabular-nums;background:var(--paper) }
.qz .oitem.has .obox { border-color:var(--ink) }
.qz .oitem:focus-visible { outline:none }
.qz .oitem:focus-visible .obox { outline:2px solid var(--blue);outline-offset:3px }
.qz .keyview .onum { color:var(--right) }
.qz .fix-num { position:absolute;top:-12px;right:-15px;font-style:normal;font-weight:700;font-size:15px;color:var(--right);display:none;line-height:1 }
.qz .q.done .oitem.miss .fix-num { display:block }
.qz .match { display:grid;grid-template-columns:minmax(0,1fr);gap:14px 28px }
@container (min-width:540px) { .qz .match{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.qz .mright{order:2;align-self:start} }
.qz .mright { list-style:none;margin:0;padding:8px 14px;border:1px solid var(--line-strong);border-radius:4px }
.qz .mright li { padding:4px 0;line-height:1.35 }
.qz .mright b { display:inline-block;width:24px;font-weight:600 }
.qz .rowx { position:absolute;left:-31px;top:50%;width:20px;height:20px;margin-top:-10px;display:none;overflow:visible }
.qz .q.done .mrow.miss .rowx { display:block }
.qz .rowx path { stroke-width:4 }
.qz .mrow { position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;border-bottom:1px solid var(--line) }
.qz .mrow:last-child { border-bottom:0 }
.qz .mlabel { min-width:0;line-height:1.3;overflow-wrap:break-word }
.qz .mn { font-weight:600;font-variant-numeric:tabular-nums;margin-right:4px }
.qz .mbubs { display:flex;flex:none }
.qz .mb { position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer }
.qz .mb .bub { width:28px;height:28px;font-size:12.5px }
.qz .mb .ring { left:-11px;top:-11px }
@container (max-width:300px) { .qz .mrow{flex-wrap:wrap;padding:6px 0}.qz .mlabel{flex:1 1 100%} }
.qz .act { display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-height:44px;margin-top:8px }
.qz.mode-build .act { visibility:hidden }
.qz .act .qbtn { font-size:14.5px }
.qz .chk-btn { display:none }
.qz .checking .chk-btn { display:inline-flex }
.qz .q.done .chk-btn { display:none }
.qz .msg.fix { font-style:italic }
.qz .msg { flex:1 1 200px;font-size:14px;line-height:1.4;min-width:0 }
@container (max-width:480px) { .qz .q[data-type=fill] .act .msg{flex-basis:100%;min-height:40px} }
.qz .fb { display:none;margin-top:12px;padding:2px 0 2px 16px;border-left:2px solid var(--line-strong);animation:fade .2s ease-out }
.qz.mode-graded .q.done .fb { display:block }
.qz .fb:focus { outline:none }
.qz .fb-h { margin:0 0 4px;font-weight:600 }
.qz .right { color:var(--right);font-weight:600 }
.qz .fb-why { margin:0;font-size:15px;max-width:62ch }
.qz .fb-why b { font-weight:700 }
.qz .fb-l { margin:10px 0 2px;font-size:13px;color:var(--soft) }
.qz .fb-src { margin:2px 0 0;font-size:14px;color:var(--soft) }
.qz .fb-src a { display:inline-flex;align-items:center;min-height:44px;font-weight:600 }
.qz .pairs { margin:4px 0 6px;padding:0;list-style:none;font-size:15px }
.qz .pairs li { padding:1px 0 }
.qz .rows-btn { display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 2px;border:0;background:none;color:var(--blue);font-weight:600;font-size:14.5px;cursor:pointer }
.qz .rows-btn .sw { display:inline-grid }
.qz .rows-btn .sw>span { grid-area:1/1 }
.qz .rows-btn[aria-expanded=true] .s1, .qz .rows-btn[aria-expanded=false] .s2 { visibility:hidden }
.qz .rows-btn::before { content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s }
.qz .rows-btn[aria-expanded=true]::before { transform:rotate(45deg) }
.qz .rows { padding:2px 0 8px }
.qz .fb-note { margin:8px 0 0;font-size:14px;color:var(--soft);max-width:62ch }
.qz .fb-note b { color:var(--ink);font-weight:600 }
.qz .bars { display:grid;grid-template-columns:minmax(0,max-content) minmax(60px,1fr) auto;gap:6px 12px;align-items:center;margin:4px 0 2px;font-size:14px;max-width:560px }
.qz .bars .bl2 { min-width:0;overflow-wrap:break-word }
.qz .bars .bt { position:relative;height:10px }
.qz .bars .bt i { position:absolute;left:0;top:0;bottom:0;background:var(--ink);border-radius:1px }
.qz .bars .bt.time::before { content:"";position:absolute;left:0;right:0;top:4.5px;height:1px;background:var(--line-strong) }
.qz .bars .bt.time i { width:10px;height:10px;border-radius:50%;margin-left:-5px;bottom:auto }
.qz .bars .bv { font-variant-numeric:tabular-nums;color:var(--soft);text-align:right;white-space:nowrap }
.qz table.src { border-collapse:collapse;font-size:13.5px;width:100%;margin-top:4px }
.qz table.src caption { text-align:left;font-size:13px;color:var(--soft);padding:2px 0 4px }
.qz table.src th { text-align:left;font-weight:600;font-size:12.5px;color:var(--soft);padding:4px 14px 4px 0;border-bottom:1px solid var(--line-strong) }
.qz table.src td { padding:5px 14px 5px 0;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere }
.qz table.src td.dist { color:var(--soft) }
.qz table.src tr.out td { color:var(--soft) }
.qz table.src tr.out .v { text-decoration:line-through }
.qz table.src td b { font-weight:700 }
@container (max-width:520px) { .qz table.src thead{display:none}
  .qz table.src,.qz table.src tbody,.qz table.src tr,.qz table.src td{display:block;width:100%}
  .qz table.src tr{padding:6px 0;border-bottom:1px solid var(--line)}
  .qz table.src td{display:grid;grid-template-columns:minmax(0,9.5em) minmax(0,1fr);gap:10px;padding:2px 0;border:0}
  .qz table.src td::before{content:attr(data-label);color:var(--soft);font-size:12.5px;padding-top:1px;text-decoration:none}
  .qz table.src td:empty{display:none} }
.qz .sheet-foot { display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:34px;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;color:var(--soft) }
.qz .empty { margin:40px 0 20px;color:var(--soft) }
.qz .keypage { display:none }
.qz .kp-h { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;padding-bottom:8px;border-bottom:2.5px solid var(--ink);margin-bottom:10px }
.qz .kp-h h2 { margin:0;font-size:20px;font-weight:600;letter-spacing:-0.03em }
.qz .kp-h p { margin:0;font-size:12px;color:var(--soft) }
.qz .klist { list-style:none;margin:0;padding:0;columns:2;column-gap:28px;font-size:10pt;line-height:1.3 }
.qz .kitem { display:grid;grid-template-columns:24px minmax(0,1fr);padding:4px 0;border-bottom:1px solid var(--line);break-inside:avoid }
.qz .kitem .num { font-size:10pt }
.qz .kans { margin:0;font-weight:600 }
.qz .kans .pts { font-weight:400;color:var(--soft) }
.qz .ksrc { margin:1px 0 0;font-size:8.5pt;color:var(--soft) }
.qz .kwhy { margin:1px 0 0;font-size:8.5pt;line-height:1.3 }
.qz .kwhy b { font-weight:600 }
.qz .drawn path { stroke-dasharray:1;stroke-dashoffset:1;animation:draw .38s ease-out forwards;animation-delay:calc(var(--d,0) * 45ms + 120ms) }
.qz .loop.drawn path { animation-duration:.6s;animation-delay:.05s }
@keyframes draw { to{stroke-dashoffset:0} }
@media (prefers-reduced-motion:reduce) {
    .qz .drawn path { animation:none;stroke-dashoffset:0 }
    .qz .q.enter, .qz .fb { animation:none }
}
.qz .about { max-width:1184px;margin:48px auto 0;padding:28px 0 64px;border-top:1px solid var(--line) }
.qz .about-in { margin-left:340px;max-width:816px }
.qz .about h2 { margin:0 0 10px;font-size:20px;font-weight:600;letter-spacing:-0.03em }
.qz .about p { margin:0 0 12px;color:var(--soft);max-width:62ch }
.qz .about p b { color:var(--ink);font-weight:600 }
@media (min-width:641px) {
}
@media (max-width:999px) {
    .qz .layout { grid-template-columns:minmax(0,1fr);gap:20px }
    .qz .qhero { position:static;max-width:816px;margin:0 auto;width:100%;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:0 32px;align-items:start }
    .qz .qhero > * { grid-column:1 }
    .qz .qhero > .hstack { grid-column:2;grid-row:1/6 }
    .qz.mode-take.check-on .qspec { visibility:visible }
    .qz .about-in { margin-left:0 }
}
@media (max-width:999px) {
    .qz .fbpanel { visibility:visible;display:none;position:fixed;left:0;right:0;bottom:0;z-index:32;height:auto;max-height:62vh;border:0;border-top:1px solid var(--line-strong);border-radius:12px 12px 0 0;box-shadow:0 -16px 40px -16px rgba(24,32,43,.45);padding:16px 18px calc(14px + env(safe-area-inset-bottom)) }
    .qz .fbpanel.open { display:flex }
    /* A long explanation scrolls inside the sheet, so the button under it stays on screen. */
    .qz .fp-body { min-height:0;overflow-y:auto;overscroll-behavior:contain }
    .qz .fbpanel .fp-wait { display:none }
    .qz .fp-actions { display:flex;justify-content:flex-end }
    .qz .fp-actions .qbtn { min-width:160px }
}
@media (max-width:640px) {
    .qz .lede .d-only, .qz .qhero .for, .qz .qhero .qspec { display:none }
    .qz .lede { margin-bottom:0 }
    .qz .qmap { display:none }
    .qz #editBtn1 { display:none }
    .qz #fBuild { display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start;align-self:start }
    .qz #fBuild .brow { display:contents }
    .qz #fBuild .bl { order:9 }
    .qz .tsum.mob-only { order:1;display:grid;grid-template-columns:1fr auto;align-items:center;width:100%;min-height:44px;padding:6px 34px 6px 12px;position:relative;border:1px solid var(--line-strong);border-radius:4px;background:var(--paper);text-align:left;cursor:pointer }
    .qz .tsum::after { content:"";position:absolute;right:15px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid var(--soft);border-bottom:2px solid var(--soft);transform:rotate(45deg) }
    .qz .tsum .tl { grid-column:1;font-size:12.5px;color:var(--soft);line-height:1.2 }
    .qz .tsum .tv { grid-column:1;font-size:15px;font-weight:600;line-height:1.3;min-height:2.6em;display:flex;align-items:center }
    .qz #fBuild .sel { order:2 }
    .qz #fBuild .cwrap { order:3 }
    .qz .fcols { grid-template-columns:minmax(0,1fr) }
    .qz #tallyT, .qz #tallyG { display:none }
    .qz .ph-block { display:block }
    .qz .fields { margin-bottom:14px }
    .qz .directions { margin-top:8px }
    .qz .tally { display:block;padding:0;border:0;background:none;font-size:13.5px;max-width:300px }
    .qz .tally span { padding:1px 0;line-height:20px }
    .qz .tally::before { display:none }
    .qz .tally span { border:0;padding:2px 0;justify-content:flex-start }
    .qz #fBuild .count-note { order:4;flex:1 1 100%;height:38px;margin:0;font-size:13px }
    .qz #fBuild .cutline { order:5;flex:1 1 100%;padding:0 0 10px }
    .qz .legend3 { font-size:13.5px;gap:6px 16px;margin-top:8px }
    .qz .m-only, .qz .legend3 span.m-only { display:inline }
    .qz .legend3 span.d-only { display:none }
    .qz .bt-h { font-size:18px }
    .qz #fBuild .cutline { display:none }
    .qz .bfaces .bface { padding-bottom:12px }
}
@media (max-width:640px) {
    .qz .wrap { padding:18px 16px 0 }
    .qz .crumb { display:none }
    .qz .qhero { display:block }
    .qz h1 { font-size:26px;margin:0 0 8px }
    .qz .lede { font-size:15px;margin-bottom:6px }
    .qz .for { font-size:14px;margin-bottom:14px }
    .qz .qspec { margin-bottom:4px }
    .qz .spec-paper { padding:12px 92px 10px 42px;font-size:13.5px }
    .qz .spec-top { position:absolute;right:10px;top:8px;margin:0;padding:0;border:0 }
    .qz .spec-top .st, .qz .d-only { display:none }
    .qz .spec-q .mk { left:-38px }
    .qz .spec-q.second { display:none }
    .qz .qspec figcaption { font-size:14px;margin-top:8px }
    .qz .layout { gap:14px }
    .qz .sheet { margin:0 -16px;border-left:0;border-right:0;padding:0 18px 28px 50px;scroll-margin-top:8px }
    .qz .band { margin:0 -18px 24px -50px;padding:14px 18px 0 18px }
    .qz .bl { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%) }
    .qz .brow.count-row .countwrap { display:contents }
    .qz .cutline { margin:0 }
    .qz .mob-only { display:inline-flex }
    .qz .done-row.mob-only { display:flex;justify-content:flex-end }
    .qz .tsheet, .qz .pop { display:none;position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;z-index:40;max-height:50vh;overflow:auto;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--paper);border:0;border-top:1px solid var(--line-strong);border-radius:10px 10px 0 0;box-shadow:0 -14px 36px -16px rgba(24,32,43,.4) }
    .qz .tsheet.open, .qz .pop.open { display:block }
    .qz .tsheet .togs { margin-left:-6px }
    .qz .ph-h { display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 4px;font-weight:600 }
    .qz .ph-h span { font-weight:400;font-size:13px;color:var(--soft) }
    .qz .scrim.open { display:block;position:fixed;inset:0;z-index:35;background:rgba(24,32,43,.12) }
    .qz .mark { left:-48px;width:40px }
    .qz .mark svg { width:34px;height:34px }
    .qz .ttl { font-size:22px;min-height:3.36em }
    .qz .fields { flex-wrap:nowrap;gap:16px }
    .qz .field { flex:1 1 0;min-width:0 }
    .qz .field.date { flex:0 0 auto }
    .qz .field.date i { flex:0 0 auto;min-width:6.8em }
    .qz .titlerow { gap:12px }
    .qz .scorebox { width:104px;height:78px;padding:5px 8px 0 }
    .qz .loop { width:136px;height:102px;left:-16px;top:-12px }
    .qz .earned { font-size:28px;min-width:36px }
    .qz .wrap { padding-top:16px }
    .qz .fb { padding-left:12px }
    .qz .about { padding-bottom:40px }
}
@media (min-width:641px) {
    .qz .tsheet { display:block }
    .qz .done-row.mob-only, .qz .tsheet .ph-h { display:none }
}
@media print {
    .qz { background:#fff;padding:0;font-size:11pt }
    .qz .qhero, .qz .toolbar, .qz .about, .qz .band, .qz .act, .qz .fb, .qz .scrim { display:none!important }
    .qz .wrap { padding:0;max-width:none }
    .qz .layout { display:block }
    .qz .sheet { max-width:none;margin:0;border:0;box-shadow:none;padding:0 0 0 0.45in;container-type:inline-size }
    .qz .mark { left:-0.47in;width:0.42in }
    .qz .mark svg { width:28px;height:28px }
    .qz .keyview .is-key .ring { display:none }
    .qz .keyview .is-key .otext { color:var(--ink);font-weight:400 }
    .qz .blank.keyval { color:transparent;-webkit-text-fill-color:transparent }
    .qz .keyview .onum { color:transparent }
    .qz .v-take, .qz .v-graded { display:none }
    .qz .q, .qz .kitem { break-inside:avoid;page-break-inside:avoid }
    .qz .part-h { break-after:avoid;page-break-after:avoid }
    .qz .part:last-of-type .q:nth-last-of-type(2) { break-after:avoid;page-break-after:avoid }
    .qz .drawn path { animation:none;stroke-dashoffset:0 }
    .qz .q.enter { animation:none }
    .qz .q { margin-bottom:12px }
    .qz .part { margin-top:14px }
    .qz .part-h { margin-bottom:10px;padding-top:6px }
    .qz .fields { margin-bottom:16px }
    .qz .titlerow { margin-bottom:10px }
    .qz .ttl { font-size:22pt }
    .qz .opt { min-height:28px;padding:1px 8px 1px 0 }
    .qz .bub { width:22px;height:22px;font-size:10px }
    .qz .ring { left:-13px;top:-13px }
    .qz .oitem { min-height:30px }
    .qz .obox { width:26px;height:26px;font-size:13px }
    .qz .fix-num { top:50%;right:-15px;transform:translateY(-50%);font-size:10pt }
    .qz .q.done .oitem.miss .otext { margin-left:10px }
    .qz .mrow { min-height:30px }
    .qz .mb { width:30px;height:30px }
    .qz .mb .bub { width:22px;height:22px }
    .qz .mright li { padding:2px 0 }
    .qz .sheet-foot { margin-top:14px;break-before:avoid;page-break-before:avoid }
    .qz .ttl { min-height:0 }
    .qz.print-key .sheet:not(.keypage) { display:none!important }
    .qz.print-key .keypage { display:block!important;padding:0 }
}

/* ---- Fitting the design into the site ---- */
/* The paper sits on a soft gray desk that runs the full width of the window behind the tool. */
/* A border image paints past the sides without widening the page, and unlike a clip it leaves the phone's feedback
   sheet (fixed to the bottom of the screen) whole and above what follows. */
.qz { position: relative; margin: 8px 0 0; padding: 28px 0 40px; background: var(--canvas); border-image: conic-gradient(var(--canvas) 0 0) fill 0 / 0 / 0 100vmax; }
.qz-guide .site-breadcrumb { position: relative; z-index: 1; }
.qz h1 { margin-top: 0; }
/* The test as the server drew it, before the script takes over (and without JavaScript). */
.qz .static-opts { margin: 6px 0 0; padding-left: 1.4em; color: var(--ink); }
.qz .static-opts li { margin: 2px 0; }
.qz-about { max-width: 760px; }

@media print {
    body:has(.qz) > :not(main) { display: none !important; }
    body:has(.qz) main { padding: 0 !important; max-width: none !important; }
    .qz-guide > :not(.qz) { display: none !important; }
    .qz { margin: 0; border-image: none; }
}
/* The blank of a fill-in question, as it reads in the feedback panel. */
.qz .pblank { display:inline-block;width:3.2em;border-bottom:1.5px solid var(--soft);vertical-align:baseline;margin:0 2px }
/* Chemical formulas: H2O with its 2 written small. */
.qz sub { font-size:0.72em;line-height:0;vertical-align:-0.25em }
/* The mark a punctuation question asks about, large in its own box. */
.qz .glyph { display:inline-grid;place-items:center;min-width:1.9em;height:1.9em;padding:0 0.3em;margin:0 0.2em;border:1.5px solid var(--line-strong);border-radius:4px;background:var(--paper);font-size:1.5em;font-weight:600;line-height:1;vertical-align:middle;font-family:Georgia,"Times New Roman",serif }
/* A link that names its questions without the teacher's key: no way to show or print the answers. */
.qz.no-key #printKeyBtn, .qz.no-key #mPrintKey, .qz.no-key .key-grp { display:none }
/* A shared test starts with the test: the choices are not part of it. */
.qz.shared #fBuild, .qz.shared .qhero .for, .qz.shared .qhero .qspec { display:none }
/* The band fits the face in use (hand-in scrolls to the score, so the change is not felt). */
.qz.shared .bface.off { display:none }
/* While a shared test is taken, the lede says how it is marked: the band and the directions would only repeat it. */
.qz.shared.mode-take .band, .qz.shared.mode-take .directions { display:none }
.qz.shared.mode-take .part:first-of-type { margin-top:18px }
.qz.shared .ttl { min-height:0 }
@media (max-width:640px) {
    .qz.shared h1 { margin-bottom:4px }
    .qz.shared .fields { margin-bottom:8px }
    .qz.shared .titlerow { margin-bottom:10px }
}
@media (max-width:640px) {
    .qz.shared h1 { font-size:20px }
    .qz.shared .lede { font-size:14px }
    .qz.shared.mode-take .band { padding-top:10px }
    .qz.shared.mode-take .bt-h { display:none }
}
/* A score below half the points is circled in wine, the color for "look again". */
.qz.low-score .loop path { stroke:var(--wrong) }
.qz.low-score .earned, .qz.low-score .scorebox .pct { color:var(--wrong) }
.qz #printMarkedBtn { margin-top:4px }
@media print {
    /* Print my marked test: the marks, the score and each answer's why line. */
    .qz.mode-graded .q.done .fb { display:block !important;border-left-width:1px;margin-top:6px }
    .qz.mode-graded .fb .rows-btn, .qz.mode-graded .fb .rows, .qz.mode-graded .fb .bars { display:none !important }
    .qz.mode-graded .fb .fb-src a { min-height:0 }
    .qz.mode-graded .fb-why, .qz.mode-graded .fb-h, .qz.mode-graded .fb-src { font-size:9.5pt }
    .qz.mode-graded .v-graded { display:inline !important }
    .qz.mode-graded .directions .v-paper { display:none !important }
}
/* "Marked June 3, 2027. Attempt 2." under the title of a marked test, on screen and in print. */
.qz .meta.attempt { margin-top:2px }
.qz .meta.attempt:empty { display:none }

/* ---- Options: under its button, as wide as the test, in two columns like the tools' Options panel ---- */
.qz .pop-h { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line) }
.qz .pop .pt { margin:0;font-size:16px;font-weight:600 }
.qz .pop .pt span { margin-left:8px;font-size:13px;font-weight:400;color:var(--soft) }
.qz .pop-x { flex:none;display:grid;place-items:center;width:40px;height:40px;margin:-6px -10px -6px 0;border:0;border-radius:8px;background:none;color:var(--soft);cursor:pointer }
.qz .pop-x .site-icon { width:18px;height:18px }
/* Reset sits beside Close, as quiet as it: it appears only when a choice differs from the starting ones. */
.qz .pop-tools { flex:none;display:flex;align-items:center;gap:6px }
.qz .pop-reset { display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:-6px 0;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--soft);font:inherit;font-size:14px;font-weight:600;cursor:pointer }
.qz .pop-reset[hidden] { display:none }
.qz .pop-reset .site-icon { width:16px;height:16px }
.qz .pcols { display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0 32px }
@container (max-width:620px) { .qz .pcols { grid-template-columns:minmax(0,1fr) } }
.qz .pop .grp { margin:0 0 16px }
.qz .pop .gl { font-size:13px;font-weight:600;margin:0 0 4px }
.qz .pop .tog span, .qz .pop .chk { min-height:38px;font-size:14px }
.qz .pop .chk span { font-size:14px }
.qz .pop .seg { border-radius:6px }
.qz .pop .seg span { min-height:38px;font-size:14px }
.qz .pop .seg label:first-child span { border-radius:5px 0 0 5px }
.qz .pop .seg label:last-child span { border-radius:0 5px 5px 0 }
.qz .pop .text { min-height:40px;font-size:14px;border-radius:6px }
.qz .pop .qbtn { min-height:40px;padding:0 13px 0 11px;font-size:14px;font-weight:500 }
.qz .pop .hint { font-size:12.5px;margin:0 0 6px 29px }
.qz .pop .qbtn + .hint { margin:6px 0 10px }
.qz .pop .key-grp { margin-top:4px }
@media (max-width:640px) {
    .qz .pop { padding:12px 16px calc(12px + env(safe-area-inset-bottom)) }
    .qz .pop .pt span { display:block;margin:2px 0 0 }
}

/* ---- Versions in Options: every version made so far, a click away, and New version at the end ---- */
.qz .vers { display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px }
.qz .ver, .qz .ver-new { display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--paper);font-size:14px;font-weight:500;color:var(--ink);cursor:pointer;font-variant-numeric:tabular-nums }
.qz .ver[aria-pressed=true] { border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:700 }
.qz .ver-new { color:var(--soft) }
.qz .ver-new svg { width:16px;height:16px }
@media (hover:hover) { .qz .ver:hover, .qz .ver-new:hover { border-color:var(--ink);color:var(--ink) } }
.qz .pop .vers + .hint { margin:4px 0 10px }



/* ---- The dock: one white bar of actions, centered over the paper. Nothing in it is filled, so nothing reads as the
   page you are on; the main action is marked by a small ink tile behind its icon. Each button's box is 44 pixels tall
   with its 34-pixel shape drawn inside. Hover is a soft gray wash; no border ever darkens. ---- */
.qz .toolbar { position:relative;z-index:5;max-width:864px;margin:0 auto;padding:0 0 16px;background:var(--canvas) }
.qz .tbar { display:flex;justify-content:center;min-width:0 }
.qz .tface { display:inline-flex;align-items:center;max-width:100%;height:44px;padding:0 4px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(24,32,43,.04),0 10px 24px -16px rgba(24,32,43,.28) }
.qz .tface.off { display:none }
.qz .tb { position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;margin:-1px 0;padding:0 11px;border:0;background:none;color:var(--ink);font:500 13px/1.2 var(--font);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent }
.qz .tb[hidden] { display:none }
.qz .tb::before { content:"";position:absolute;z-index:-1;inset:5px 0;border-radius:8px;transition:background-color .16s ease,box-shadow .16s ease }
.qz .tb .site-icon { width:16px;height:16px;flex:none;color:var(--soft);transition:color .16s ease }
.qz .tb.main { gap:9px;padding:0 13px 0 6px;font-weight:600 }
.qz .tb.main .site-icon { box-sizing:content-box;width:14px;height:14px;padding:4px;border-radius:6px;background:var(--ink);color:var(--paper);stroke-width:1.7 }
@media (hover:hover) {
    .qz .tb:not(:disabled):hover::before { background:var(--canvas) }
    .qz .tb:not(:disabled):hover .site-icon { color:var(--ink) }
    .qz .tb.main:not(:disabled):hover .site-icon { color:var(--paper) }
}
.qz .tb:not(:disabled):active::before { background:var(--line) }
.qz .tb:focus-visible { outline:none }
.qz .tb:focus-visible::before { box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--blue) }
.qz .tb:disabled { cursor:default;opacity:.45 }
.qz .tb.more { display:none }
.qz .tb.more .site-icon:last-child { width:14px;height:14px;transition:transform .16s ease }
.qz .tb.more[aria-expanded=true] .site-icon:last-child { transform:rotate(180deg) }
.qz .tsep { flex:none;width:1px;height:20px;margin:0 5px;background:var(--line) }
/* A separator with nothing shown after it goes too (a shared test, once graded, has only its score). */
.qz .tsep:not(:has(~ .tb:not([hidden]))) { display:none }
.qz .tstat { display:inline-flex;align-items:center;gap:9px;height:44px;margin:0;padding:0 10px 0 12px;font-size:13px;color:var(--soft);font-variant-numeric:tabular-nums;white-space:nowrap }
.qz .tstat:empty { display:none }
.qz .tstat b { color:var(--ink);font-weight:600 }
.qz .meter { position:relative;width:48px;height:4px;border-radius:2px;background:var(--line);overflow:hidden }
.qz .meter i { position:absolute;inset:0 auto 0 0;width:0;border-radius:2px;background:var(--ink);transition:width .3s ease }
.qz #copyBtn.copied .site-icon { color:var(--ink) }
/* Buttons elsewhere on the page with an icon (Options panel, Print my graded test). */
.qz .qbtn .site-icon { width:18px;height:18px;flex:none }
.qz .pop .qbtn .site-icon { color:var(--soft) }
@media (hover:hover) { .qz .pop .qbtn:hover .site-icon { color:var(--ink) } .qz .pop-x:hover, .qz .pop-reset:hover { background:#eff2f6;color:var(--ink) } }

/* Stuck: a solid desk-gray strip under the dock, ending in a hairline, so nothing shows through. Where the column is
   narrow (windows of about 1000 to 1250 pixels), the buttons after the main one show their icons and name themselves
   in a small label on hover or keyboard focus. */
@media (min-width:641px) {
    .qz .toolbar { position:sticky;top:0;padding-top:12px;margin-top:-12px;container-type:inline-size }
    .qz .toolbar.stuck { box-shadow:0 1px 0 var(--line),0 14px 20px -20px rgba(24,32,43,.5) }
    .qz .toolbar.stuck .tface { box-shadow:0 1px 2px rgba(24,32,43,.05) }
    @container (max-width:600px) {
        .qz .tb.sec[data-tip] { width:44px;padding:0 }
        .qz .tb.sec[data-tip] > span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap }
        .qz .tb.sec[data-tip]:is(:hover,:focus-visible)::after { content:attr(data-tip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:5px 9px;border-radius:6px;background:var(--ink);color:#fff;font-size:12.5px;white-space:nowrap;pointer-events:none;z-index:10 }
    }
}

/* ---- Notes, at the foot of the test column and centered on it. A question before hand-in keeps its buttons until
   it is answered; a note that just says something leaves by itself. Green stays for right answers. ---- */
.qz .qtoasts { position:sticky;bottom:24px;z-index:20;height:0;display:flex;justify-content:center;align-items:flex-end;pointer-events:none }
.qz .qtoast { position:relative;pointer-events:auto;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:5px 4px 5px 16px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(24,32,43,.06),0 18px 40px -14px rgba(24,32,43,.34);font-size:14px;line-height:1.4;animation:qz-toast-in .24s ease-out }
.qz .qtoast[hidden] { display:none }
.qz .qt-msg { margin:0;min-width:0;color:var(--ink) }
.qz .qt-msg b { font-weight:600 }
.qz .qt-icon { flex:none;width:8px;height:8px;border-radius:50%;background:var(--orange) }
.qz .qt-icon .site-icon { display:none }
.qz .qtoast.done { padding:7px 4px 7px 12px }
.qz .qtoast.done .qt-icon { display:grid;place-items:center;width:22px;height:22px;background:var(--ink);color:#fff }
.qz .qtoast.done .qt-icon .site-icon { display:block;width:13px;height:13px;stroke-width:2.2 }
.qz .qt-acts { display:flex;align-items:center;gap:2px;margin-left:4px }
.qz .qt-acts[hidden] { display:none }
.qz .qt-acts .tb { padding:0 10px }
.qz .qt-acts .tb.main { padding-left:5px }
.qz .qt-x { flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:none;color:var(--soft);cursor:pointer }
.qz .qt-x .site-icon { width:15px;height:15px }
@media (hover:hover) { .qz .qt-x:hover { background:var(--canvas);color:var(--ink) } }
@keyframes qz-toast-in { from { opacity:0;transform:translateY(12px) } to { opacity:1;transform:none } }
@media (prefers-reduced-motion:reduce) { .qz .qtoast { animation:none } }
@media print { .qz .qtoasts { display:none !important } }

/* ---- Phones: the dock becomes the bar at the foot of the screen ---- */
@media (max-width:640px) {
    .qz .toolbar { position:fixed;inset:auto 0 0 0;z-index:25;max-width:none;margin:0;padding:6px 12px calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -12px 28px -20px rgba(24,32,43,.4) }
    .qz .tbar { display:block }
    .qz .tface { display:flex;flex-wrap:wrap;gap:4px 8px;width:100%;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none }
    .qz .tface.off { display:none }
    .qz .tstat { flex:1 1 100%;justify-content:center;height:24px;padding:0;font-size:12.5px }
    .qz .tsep, .qz .tb.ph-hide { display:none }
    .qz .tb.more { display:inline-flex }
    .qz .tb { flex:1 1 0;min-width:0;height:46px;margin:0;padding:0 10px;font-size:14px;line-height:1.15;white-space:normal;text-align:center }
    .qz .tb::before { inset:0;border-radius:11px;box-shadow:inset 0 0 0 1px var(--line-strong) }
    .qz .tb.main { padding:0 12px 0 8px;white-space:nowrap }
    .qz #tfGraded .tb.sec .site-icon { display:none }
    .qz .tb.ph-icon { flex:0 0 46px;padding:0 }
    .qz #tfGraded .tb.ph-icon .site-icon { display:block;width:20px;height:20px }
    .qz .tb.ph-icon span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap }
    .qz .more-menu.open { display:block;position:fixed;left:12px;right:12px;bottom:calc(74px + env(safe-area-inset-bottom));z-index:26;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(24,32,43,.06),0 20px 44px -16px rgba(24,32,43,.42) }
    .qz .more-menu .mi { display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;border:0;border-radius:9px;background:none;font:500 15px/1.2 var(--font);color:var(--ink);text-align:left;cursor:pointer }
    .qz .more-menu .mi .site-icon { width:20px;height:20px;color:var(--soft) }
    .qz .more-menu .mi:active { background:var(--canvas) }
    .qz .more-menu .mnote { margin:4px 12px 8px;min-height:0;font-size:13px;color:var(--soft);line-height:1.45 }
    .qz .more-menu .mnote:not(:empty) { padding-top:10px;border-top:1px solid var(--line) }
    .qz .more-menu .mnote b { color:var(--ink) }
    .qz .qtoasts { position:fixed;left:12px;right:12px;bottom:calc(112px + env(safe-area-inset-bottom));height:auto }
    .qz .qtoast { flex-wrap:wrap;width:100%;max-width:none;gap:6px 10px;padding:12px 6px 6px 14px }
    .qz .qt-msg { flex:1 1 0 }
    .qz .qt-x { order:1;margin-top:-6px }
    .qz .qt-acts { order:2;flex:1 1 100%;justify-content:flex-end;margin:0 }
    .qz .qt-acts .tb { flex:0 0 auto;height:44px;padding:0 12px;white-space:nowrap }
    .qz .qt-acts .tb::before { inset:4px 0 }
    .qz .qt-acts .tb.sec::before { box-shadow:none }
    .qz .qtoast.done { padding:10px 6px 10px 12px }
}
@media (max-width:360px) { .qz #tfGraded .tb.main .site-icon { display:none } .qz #tfGraded .tb.main { padding:0 10px } }

/* ---- Review fixes (2026-11-18) ---- */
/* Part scores are in ink; green only for full marks. */
.qz .subv, .qz .tally span b { color:var(--ink) }
.qz .subv.full, .qz .tally span b.full { color:var(--right) }
/* Score by part: label, score and out-of in columns, so they line up. */
.qz .tally span { display:grid;grid-template-columns:minmax(0,1fr) 28px 34px;gap:0 6px;align-items:baseline }
.qz .tally span i { font-style:normal;min-width:0 }
.qz .tally span em { font-style:normal;text-align:right }
/* While a test is taken or graded, the sample of a graded test and its caption go: the panel says how this one works. */
.qz:is(.mode-take,.mode-graded) .qhero .qspec { display:none }
/* No reserved writing space under a typed answer on screen while it holds no message. */
.qz.mode-graded .act:has(.msg:empty) { display:none }
.qz.mode-take:not(.check-on) .act:has(.msg:empty), .qz.mode-take:not(.check-on) .act:has(.msg:empty) .msg { min-height:0;margin-top:0 }
/* Show me: the question it found keeps the blue rule for a moment. */
.qz .q.shown::before { content:"";position:absolute;left:-14px;top:3px;bottom:3px;width:3px;border-radius:2px;background:var(--blue) }
/* The title balances its lines ("facts" is never alone). */
.qz h1 { text-wrap:balance }
/* A shared test opens on its questions: one rule above them, not two. */
.qz.shared.mode-take .part:first-of-type .part-h { border-top:0;padding-top:0 }
/* Options' summary beside the button stays one line. */
.qz .count-note #countNote { display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis }
.qz .count-note #countNote.warn { white-space:normal }
.qz .tb .sh { display:none }
@media (max-width:640px) {
    /* A typed answer's box never covers the line above it. */
    .qz .q[data-type=fill] .qtext, .qz .q[data-type=fill] .num { line-height:2.1 }
    .qz .blank { height:34px;padding:7px 6px 2px;margin:-9px 3px -3px }
    .qz .tb { white-space:nowrap }
    .qz .tb .lg { display:none }
    .qz .tb .sh { display:inline }
    .qz .scorebox .loop { left:-12px;top:-6px;width:128px;height:96px }
    /* A shared test: the score box and the title share the first lines, so question 1 is on the first screen. */
    .qz.shared .qhero .lede { font-size:13.5px;margin-bottom:0 }
    .qz.shared .wrap, .qz.shared.qz { padding-top:16px }
    .qz.shared .ttl { font-size:19px }
    .qz.shared .meta { margin-top:4px }
}
@media (max-width:360px) { .qz #moreBtn .site-icon:first-child { display:none } }
@media print {
    /* The circle around the score reaches about 18 pixels past the score box; on paper the box sits in from the right
       margin so the whole circle prints. */
    .qz .scorebox { margin-right:22px }
    /* The ring around a right answer, sized to the smaller printed bubble, so it clears the answer's first letter. */
    .qz .ring, .qz .mb .ring { left:-8px;top:-8px;width:38px;height:38px }
}

/* ---- Second review fixes ---- */
/* On screen, a test being built shows no answer rows: they come with taking it. */
.qz.mode-build .act { display:none }
/* Focus is never hidden behind the toolbar: under the strip at the top, or the bar at the foot on phones. */
/* (On wide screens the offset sits on the test's own controls, not the page: a page-wide offset made the browser scroll
   whenever a button in the sticky toolbar itself took focus.) */
/* The end of the test, while it is being taken: Hand it in, where the last question leaves the reader. On phones the
   bar at the foot of the screen already holds it. Once every question has an answer, Hand it in is marked as the next
   step: here in blue, and in the bar with a ring that pulses three times and stays. */
.qz .endact { display:none }
@media screen and (min-width:641px) { .qz.mode-take .endact { display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:34px } .qz.mode-take .endact + .sheet-foot { margin-top:22px } }
.qz .endact p { margin:0;font-size:14px;color:var(--soft) }
.qz .qbtn.primary .site-icon { color:#fff }
.qz.all-in #handBtn .site-icon { background:var(--blue) }
.qz.all-in #handBtn:not(:focus-visible)::before { box-shadow:0 0 0 1.5px var(--blue);animation:qz-ready 1.2s ease-out 3 }
@keyframes qz-ready { from { box-shadow:0 0 0 1.5px var(--blue),0 0 0 0 rgba(36,84,235,.5) } to { box-shadow:0 0 0 1.5px var(--blue),0 0 0 12px rgba(36,84,235,0) } }
@media (prefers-reduced-motion:reduce) { .qz.all-in #handBtn::before { animation:none !important } }
@media (min-width:641px) { .qz .sheet :is([type=text], [type=radio], [type=checkbox], [type=button], [type=submit], #countSel, [href], [tabindex]) { scroll-margin-top:84px } }
@media (max-width:640px) { html:has(.qz) { scroll-padding-bottom:110px } }
/* The narrowest phones: the name gets its own full line, the date the next. */
@media (max-width:360px) {
    .qz .fields { flex-wrap:wrap;gap:10px }
    .qz .field, .qz .field.date { flex:1 1 100% }
    .qz .field.date i { flex:1 1 auto }
}
@media print {
    /* The timeline of a put-in-order answer does not print, and neither does its caption. */
    .qz.mode-graded .fb .fb-l { display:none !important }
}

/* ---- Final items ---- */
/* The key's points never wrap away from their answer; the box numbers for put in order are quieter. */
.qz .kans .pts { white-space:nowrap }
.qz .kboxes { font-weight:400;color:var(--soft) }
/* "For a class, a homeschool lesson..." speaks to whoever builds a test, so it shows only while building. */
.qz:is(.mode-take,.mode-graded) .qhero .for { display:none }
@media print {
    /* Matching corrections print at the size of the rest of the feedback. */
    .qz.mode-graded .fb .pairs { font-size:9.5pt }
}
