/* Serial Dilution Practice: a micro lab bench. Cool white page, safranin-red accent (the Gram stain counterstain),
   amber agar plates with cream colonies on screen, condensed label-maker headings, and black-on-white plates on paper. */
:root {
  --bg: #f4f5f2;
  --paper: #ffffff;
  --ink: #1b1d22;
  --muted: #4d535c;
  --line: #d4d8dc;
  --edge: #8b939c;
  --accent: #a3204a;
  --accent-ink: #ffffff;
  --accent-soft: #f7e3ea;
  --info: #1f5f7a;
  --ok: #17663a;
  --ok-soft: #dff1e6;
  --close: #7a5300;
  --close-soft: #f7ecd4;
  --bad: #a2261f;
  --bad-soft: #f8e1de;
  --focus: #1b5fd0;
  --agar: #ecd08a;
  --agar-edge: #c9a959;
  --rim: #aab4bb;
  --colony: #fff8e6;
  --colony-edge: #9c7424;
  --lawn-bg: #f2e2b8;
  --lawn-dot: #fffaf0;
  --liq: #b88a1c;
  --glass: #69737c;
  --head: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --r: 4px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --paper: #1c1f24;
    --ink: #e6e8ec;
    --muted: #a9b0b9;
    --line: #2f343b;
    --edge: #5f6872;
    --accent: #ff8fb0;
    --accent-ink: #2a0a15;
    --accent-soft: #3a1823;
    --info: #7cc7e6;
    --ok: #8adca6;
    --ok-soft: #142c1e;
    --close: #f0c56b;
    --close-soft: #352a12;
    --bad: #ff9c8f;
    --bad-soft: #3a1c18;
    --focus: #8ab8ff;
    --rim: #6d7780;
    --glass: #a9b3bc;
    --liq: #e0b54a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.hero { padding: 22px 0 2px; max-width: 800px; border-left: 6px solid var(--accent); padding-left: 14px; margin-top: 14px; }
h1 { font: 700 clamp(1.8rem, 5.2vw, 2.7rem)/1.05 var(--head); font-stretch: condensed; margin: 0 0 8px; letter-spacing: -0.005em; }
.lede { margin: 0 0 4px; color: var(--muted); max-width: 66ch; }
h2 { font: 700 1.4rem/1.2 var(--head); font-stretch: condensed; margin: 0 0 10px; }

/* layout: on wide screens a bench of settings across the top with the ranges card beside it, and the sheet at full
   width below, so a whole dilution series fits on one row; on phones the ranges panel follows the sheet */
.tool { display: flex; flex-direction: column; }
.setup { order: 1; margin: 14px 0 4px; }
.work-area { order: 2; min-width: 0; }
.ranges { order: 3; }
@media (min-width: 1020px) {
  .tool { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; align-items: start; }
  .setup { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 24px; margin-top: 18px; }
  .tool:not(:has(.ranges)) .setup { grid-column: 1 / -1; }
  .setup .topics { flex: 1 1 100%; }
  .setup .levels { flex: 0 0 330px; margin: 0; }
  .setup .check { margin: 0; }
  .ranges { grid-column: 2; grid-row: 1; margin-top: 18px; }
  .work-area { grid-column: 1 / -1; grid-row: 2; }
}
fieldset { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1020px) { .toggles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }
.tg { position: relative; display: block; cursor: pointer; }
.tg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tg span { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 5px 12px 5px 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--muted); line-height: 1.2; }
.tg span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border: 2px solid var(--edge); border-radius: 2px; }
.tg b { font-size: 0.95rem; font-weight: 600; }
.tg small { display: none; color: var(--muted); font-size: 0.84rem; }
@media (min-width: 1200px) { .tg small { display: block; } }
.tg input:checked + span { color: var(--ink); border-color: var(--edge); }
.tg input:checked + span::before { border-color: var(--accent); background: var(--accent); }
.tg input:checked + span::after { content: ""; position: absolute; left: 15px; top: 50%; width: 4px; height: 8px; margin-top: -7px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (min-width: 1200px) { .tg:has(small) span::before { top: 9px; margin-top: 0; } .tg:has(small) input:checked + span::after { top: 10px; margin-top: 0; } }
.tg input:focus-visible + span, .sg input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.sg { position: relative; display: block; cursor: pointer; }
.sg + .sg { border-left: 1px solid var(--edge); }
.sg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sg .nw { white-space: nowrap; }
.sg > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; text-align: center; font-size: 0.92rem; font-weight: 600; background: var(--paper); line-height: 1.15; }
.sg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; cursor: pointer; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.setrow { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
label.inline { display: flex; align-items: center; gap: 8px; font-weight: 600; }
select, input { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r); min-height: 44px; padding: 6px 10px; }
select { max-width: 100%; }
.btn { font: inherit; font-weight: 650; min-height: 44px; padding: 8px 16px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { padding: 6px 14px; }
.btn:hover { filter: brightness(0.95); }
.link { font: inherit; background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.ranges { margin: 18px 0 6px; padding: 10px 0 4px; border-top: 3px solid var(--ink); font-size: 0.95rem; max-width: 520px; }
.ranges h2 { font-size: 1.15rem; margin: 0 0 6px; }
.ranges table { border-collapse: collapse; width: 100%; }
.ranges th, .ranges td { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ranges th { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.ranges td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.ranges p { margin: 8px 0 0; color: var(--muted); }

.note { margin: 12px 0; padding: 10px 12px; border-left: 5px solid var(--close); background: var(--close-soft); }
.note.info { border-left-color: var(--info); background: var(--paper); }
.note .link { min-height: 0; padding: 0; font-weight: 600; }

/* the sheet */
.sheet { margin: 12px 0 0; }
.sheet:focus { outline: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 4px; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.code { font-family: var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.score { margin: 0; font-size: 0.95rem; color: var(--muted); }
.practice { margin: 6px 0 0; font-size: 0.93rem; color: var(--muted); }
.qs { list-style: none; margin: 0; padding: 0; }
.q { border-bottom: 1px solid var(--line); padding: 20px 0 10px; }
.q h3 { font: 700 1.2rem/1.25 var(--head); font-stretch: condensed; margin: 0 0 4px; }
.q h3 .qn { color: var(--accent); margin-right: 6px; }
.q .scen { margin: 0 0 10px; max-width: 70ch; }

/* the dilution series: every tube says what went into it */
.fig { margin: 0 0 14px; }
.series { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 4px; }
.series li { position: relative; width: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.86rem; line-height: 1.25; }
/* screen: tubes share the row (no lone tube on a line of its own) with an arrow from each tube to the next */
@media screen {
  .series li { width: auto; flex: 1 1 0; min-width: 88px; max-width: 116px; }
  .series li + li::before { content: ""; position: absolute; left: calc(-50% + 14px); top: 50px; width: calc(100% - 39px); border-top: 2px solid var(--edge); }
  .series li + li::after { content: ""; position: absolute; left: calc(50% - 25px); top: 46px; border-left: 7px solid var(--edge); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
}
.series .tn { font-size: 0.92rem; font-weight: 700; }
.series .xf { color: var(--muted); }
.series .pl { margin-top: 2px; font-weight: 600; color: var(--accent); }
.tube-ic { width: 30px; height: 56px; margin: 2px 0; }
.tube-ic .glass { fill: none; stroke: var(--glass); stroke-width: 1.4; stroke-linejoin: round; }
.tube-ic .liq { fill: var(--liq); stroke: var(--liq-edge); stroke-width: 0.6; }
.tube-ic .liq.s0 { --liq: #a87a12; --liq-edge: #7d5a0c; }
.tube-ic .liq.s1 { --liq: #c99a2e; --liq-edge: #9a7420; }
.tube-ic .liq.s2 { --liq: #dcb85c; --liq-edge: #ab8a3a; }
.tube-ic .liq.s3 { --liq: #e8cf8e; --liq-edge: #b39a5c; }
.tube-ic .liq.s4 { --liq: #f0dfb2; --liq-edge: #b9a678; }
.tube-ic .liq.s5 { --liq: #f5e9cb; --liq-edge: #bdae8a; }
.tube-ic .liq.s6 { --liq: #f8f0dc; --liq-edge: #c2b698; }
/* dark page: the liquid stays a lit amber-to-cream, never fades into the background */
@media (prefers-color-scheme: dark) {
  .tube-ic .liq.s0 { --liq: #e2a92c; --liq-edge: #f1c35a; }
  .tube-ic .liq.s1 { --liq: #e8bb52; --liq-edge: #f3cf78; }
  .tube-ic .liq.s2 { --liq: #eec977; --liq-edge: #f5d993; }
  .tube-ic .liq.s3 { --liq: #f2d699; --liq-edge: #f7e2b0; }
  .tube-ic .liq.s4 { --liq: #f5e1b6; --liq-edge: #f9eac8; }
  .tube-ic .liq.s5 { --liq: #f7e9cc; --liq-edge: #fbf0db; }
  .tube-ic .liq.s6 { --liq: #f9efdc; --liq-edge: #fdf6ea; }
}

/* plates: amber agar, cream colonies; tap for a larger view */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-width: 860px; }
.pf { margin: 0; min-width: 0; }
.pf figcaption { font-size: 0.9rem; line-height: 1.3; margin-top: 2px; }
.pf .pc { color: var(--muted); }
.pf .cnt { display: block; font-weight: 600; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 50%; }
svg.plate { display: block; width: 100%; height: auto; }
.plate .rim { fill: #f6f8f9; stroke: var(--rim); stroke-width: 1.2; }
.plate .agar { fill: var(--agar); stroke: var(--agar-edge); stroke-width: 0.5; }
.plate .quad { fill: none; stroke: #7c6a3c; stroke-width: 0.3; stroke-dasharray: 1.5 1.2; opacity: 0.6; }
.plate .col { fill: var(--colony); stroke: var(--colony-edge); stroke-width: 0.35; }
.plate.k-dense .col { stroke-width: 0.25; }
.lawn-bg { fill: var(--lawn-bg); }
.lawn-dot { fill: var(--lawn-dot); }
.zplate .lawn-bg { fill: #f5ecd4; }
.zplate .lawn-dot { fill: #d9c48f; }

/* zone plates: a 90 mm dish on a 5 mm grid */
.zfig { display: grid; gap: 10px; }
.zf { margin: 0; max-width: 440px; }
.zf figcaption { font-size: 0.9rem; color: var(--muted); }
.zf .zoom { border-radius: var(--r); }
svg.zplate { display: block; width: 100%; height: auto; }
.zplate .rim { fill: #f6f8f9; stroke: var(--rim); stroke-width: 0.8; }
.zplate .zclear { fill: var(--agar); stroke: #b39443; stroke-width: 0.25; }
.zplate .zgrid { fill: none; stroke: #3c4f5c; stroke-width: 0.14; opacity: 0.55; }
.zplate .disc { fill: #ffffff; stroke: #59616a; stroke-width: 0.35; }
.zplate .dl { font: 700 3.1px var(--sans); text-anchor: middle; fill: #1b1d22; }
.zplate .rule, .zplate .tick { fill: none; stroke: var(--ink); stroke-width: 0.2; }
.zplate .rn, .zplate .ru { font: 3px var(--sans); fill: var(--ink); text-anchor: middle; }
.ztab { border-collapse: collapse; font-size: 0.95rem; }
.ztab th, .ztab td { border: 1px solid var(--line); padding: 4px 10px; text-align: center; }
.ztab th[scope="row"] { text-align: left; }

/* questions */
.qparts { max-width: 760px; }
.part { margin: 0 0 14px; min-width: 0; }
.part > .prompt, .part legend { display: block; font-weight: 600; margin: 0 0 6px; }
.opts { display: grid; gap: 4px; }
.opt { position: relative; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.opt input { margin: 3px 0 0; min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt .ot { min-width: 0; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ain { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.ain input { width: 8.5em; font-family: var(--mono); }
.ain input.wide { width: 13em; max-width: 100%; }
.ain .unit { color: var(--muted); }
.qfoot { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.fbwrap:empty { display: none; }
.fb { margin: 6px 0 0; padding: 6px 10px; border-radius: var(--r); max-width: 70ch; }
.fb.right { background: var(--ok-soft); color: var(--ok); }
.fb.close { background: var(--close-soft); color: var(--close); }
.fb.wrong, .fb.unread { background: var(--bad-soft); color: var(--bad); }
.part.is-right .ain input { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.part.is-wrong .ain input { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.part.is-close .ain input { border-color: var(--close); box-shadow: inset 0 0 0 1px var(--close); }
.work { margin-top: 4px; }
.work > summary { cursor: pointer; color: var(--muted); font-size: 0.93rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; list-style: none; }
.work > summary::-webkit-details-marker { display: none; }
.work > summary::before { content: "+"; margin-right: 6px; font-weight: 700; font-family: var(--mono); }
.work[open] > summary::before { content: "−"; }
.work .ans { margin: 0 0 2px; }
.steps { margin: 2px 0 10px; padding-left: 1.4em; font-size: 0.94rem; overflow-wrap: anywhere; }
.sheet-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; }

.share { margin: 10px 0 8px; }
.print-row { display: flex; align-items: flex-end; gap: 8px 10px; flex-wrap: wrap; }
.print-row label, .share-out label { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; font-weight: 600; }
.share-out input { width: 100%; }
.recent { margin-top: 12px; border-top: 1px solid var(--line); }
.recent summary { cursor: pointer; padding: 11px 0; font-weight: 600; min-height: 44px; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 4px 0; }
.recent small { display: block; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 8px 0 10px; }

/* the large plate view */
.zoom-dlg { width: min(94vw, 680px); max-height: 94vh; padding: 12px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.zoom-dlg::backdrop { background: rgba(10, 12, 16, 0.6); }
.zoom-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.zoom-top p { margin: 0; font-size: 0.95rem; }
.zoom-body svg { display: block; width: 100%; height: auto; max-height: calc(94vh - 90px); margin: 8px auto 0; }

.toast { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 160%); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); max-width: calc(100% - 32px); transition: transform 0.2s; z-index: 20; }
.toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* content */
.content { padding: 22px 0 8px; max-width: 820px; }
.content h2 { margin-top: 30px; }
.content p { max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 11px 0; font-weight: 600; min-height: 44px; }
.faq details p { margin: 0 0 12px; }
.sources { font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 22px; }
.crumb { font-size: 0.92rem; margin: 12px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 16px 0 28px; color: var(--muted); font-size: 0.92rem; }
.indep { margin: 0 0 10px; }
.sb-footer p { margin: 6px 0; }
.sb-more { line-height: 1.8; }
.sb-footer a { color: var(--ink); }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 600px) {
  .hero { padding-top: 6px; }
  .toggles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .tg .long { display: none; }
  .tg span { padding: 5px 2px; text-align: center; align-items: center; font-size: 0.88rem; }
  .tg span::before, .tg input:checked + span::after { display: none; }
  .tg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .series li { min-width: 92px; font-size: 0.82rem; }
  .series li + li::before, .series li + li::after { display: none; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tg .short { display: none; }
@media (max-width: 600px) { .tg .short { display: block; } }

/* print: worksheet and key only; plates in black on white */
.print-root { display: none; }
@page { margin: 0.45in 0.5in; }
@media print {
  :root { --ink: #000; --muted: #333; --line: #999; --paper: #fff; --edge: #555; }
  body { background: #fff; color: #000; font: 10.5pt/1.38 var(--sans); }
  main, footer, .toast, .skip, .zoom-dlg { display: none !important; }
  .print-root { display: block; }
  svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  table.pt { width: 100%; border-collapse: collapse; }
  table.pt > tbody > tr > td, table.pt > thead > tr > td { padding: 0; }
  .prun { font: 8.5pt var(--sans); color: #444; text-align: right; padding-bottom: 6pt !important; }
  .ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2pt solid #000; margin-bottom: 6pt; }
  .ph h2 { font: 700 15pt var(--head); font-stretch: condensed; margin: 0; }
  .ph p { margin: 0; }
  .pmeta { display: flex; justify-content: space-between; gap: 12pt; margin: 4pt 0 6pt; }
  .plabel { margin: 0 0 6pt; font-size: 9pt; font-style: italic; }
  .pq { list-style: none; margin: 0; padding: 0; }
  .pq > li { padding: 6pt 0 4pt; border-bottom: 0.75pt solid #999; }
  .pq > li { break-inside: avoid; page-break-inside: avoid; }
  .pqh { break-after: avoid; page-break-after: avoid; }
  .pq h3 { font: 700 11.5pt var(--head); font-stretch: condensed; margin: 0 0 2pt; }
  .pq .pscen { margin: 0 0 4pt; }
  .pq .fig { break-inside: avoid; page-break-inside: avoid; margin: 0 0 6pt; }
  .pq .series { flex-wrap: nowrap; gap: 0 1.5mm; margin: 0 0 4pt; }
  .pq .series li { width: 25mm; font-size: 7.6pt; line-height: 1.2; }
  .pq .series .tn { font-size: 8pt; }
  .pq .series .pl { color: #000; }
  .pq .series li + li::before { content: ""; position: absolute; top: 9.4mm; left: -9mm; width: 15.6mm; border-top: 0.8pt solid #555; }
  .pq .series li + li::after { content: ""; position: absolute; top: calc(9.4mm - 1.05mm + 0.4pt); left: 6.6mm; border-left: 1.9mm solid #555; border-top: 1.05mm solid transparent; border-bottom: 1.05mm solid transparent; }
  .pq .tube-ic { width: 7mm; height: 13mm; }
  .tube-ic .glass { stroke: #000; stroke-width: 1.2; }
  .tube-ic .liq { stroke: #000; stroke-width: 0.5; }
  .tube-ic .liq.s0 { fill: #555; } .tube-ic .liq.s1 { fill: #777; } .tube-ic .liq.s2 { fill: #999; } .tube-ic .liq.s3 { fill: #b5b5b5; }
  .tube-ic .liq.s4 { fill: #cdcdcd; } .tube-ic .liq.s5 { fill: #e0e0e0; } .tube-ic .liq.s6 { fill: #eeeeee; }
  .pq .plates { display: flex; flex-wrap: wrap; gap: 3mm 4mm; max-width: none; }
  .pq .plates .pf { width: 41mm; break-inside: avoid; }
  .pq .plates.n3 .pf, .pq .plates.n6 .pf { width: 52mm; }
  .pq .pf figcaption { font-size: 8.5pt; }
  .plate .rim { fill: #fff; stroke: #000; stroke-width: 0.9; }
  .plate .agar { fill: #fff; stroke: #666; stroke-width: 0.4; }
  .plate .quad { stroke: #555; stroke-width: 0.35; opacity: 1; }
  .plate .col { fill: #000; stroke: none; }
  .lawn-bg { fill: #fff; }
  .lawn-dot { fill: #6a6a6a; }
  .pq > li.pq-zone { display: flex; flex-wrap: wrap; gap: 0 7mm; align-items: flex-start; }
  .pq > li.pq-zone .pqh { flex: 0 0 100%; }
  .pq > li.pq-zone .fig { flex: 0 0 62mm; }
  .pq > li.pq-zone .pparts .pp { margin-bottom: 5pt; }
  .pq > li.pq-zone .pparts .pline { margin-top: 8pt !important; }
  .pq > li.pq-zone .pparts { flex: 1 1 0; min-width: 0; columns: 1; }
  .pq .zfig { display: block; margin: 0; }
  .pq .zf { width: 62mm; max-width: none; }
  .pq .ztab { margin-top: 3pt; }
  .zplate .lawn-bg { fill: #fff; }
  .zplate .lawn-dot { fill: #7a7a7a; }
  .pq .zf figcaption { font-size: 8.5pt; color: #000; }
  .zplate .rim { fill: #fff; stroke: #000; stroke-width: 0.5; }
  .zplate .zclear { fill: #fff; stroke: #000; stroke-width: 0.3; }
  .zplate .zgrid { stroke: #777; stroke-width: 0.12; opacity: 1; }
  .zplate .disc { stroke: #000; }
  .zplate .dl, .zplate .rn, .zplate .ru { fill: #000; }
  .zplate .rule, .zplate .tick { stroke: #000; }
  .ztab { font-size: 9pt; }
  .ztab th, .ztab td { border-color: #555; }
  .pparts { columns: 2; column-gap: 8mm; }
  .pparts .pp { margin: 0 0 8pt; break-inside: avoid; page-break-inside: avoid; }
  .pparts .pp p { margin: 0 0 3pt; }
  .pparts ol.popts { margin: 0; padding-left: 15pt; list-style: upper-alpha; }
  .pparts ol.popts li { margin: 0 0 2pt; }
  .pparts .pline { margin-top: 12pt !important; }
  .pkey { break-before: page; page-break-before: always; }
  .pk { margin: 0; padding-left: 18pt; }
  .pk > li { padding: 4pt 0 5pt; border-bottom: 0.75pt solid #bbb; }
  .pk .pkp { break-inside: avoid; page-break-inside: avoid; }
  .pk h3 { font: 700 10.5pt var(--head); font-stretch: condensed; margin: 0; break-after: avoid; page-break-after: avoid; }
  .pk p { margin: 1pt 0 0; }
  .pk .pka { font-weight: 700; }
  .pk ul { margin: 1pt 0 0; padding-left: 13pt; font-size: 9pt; line-height: 1.35; }
}
