/* Plasmid Map Reader: the cloning-core bench inside the practice shell's stage (about 1066 × 628 at 1366 × 768). */
html { --pm-ink: #1d2733; --pm-soft: #4d5b6b; --pm-card: #ffffff; --pm-card2: #f3f7fa; --pm-line: #c3d0da; --pm-bench: #dfe9ef; --pm-bench2: #c9d8e1;
  --pm-accent: #1d6a85; --pm-accent-bg: #e0f0f6; --pm-ok: #17683a; --pm-ok-bg: #e2f5e8; --pm-bad: #b42318; --pm-bad-bg: #fde8e5; --pm-sel: #b5590e; --pm-sel-bg: #fff1e0;
  --pm-ring: #8d99a8; --pm-tick: #7b8796; --pm-plateglass: #e8eef3; }
html[data-theme="dark"] { --pm-ink: #eef2f7; --pm-soft: #c3cedb; --pm-card: #1a2430; --pm-card2: #141c26; --pm-line: #3f5163; --pm-bench: #0f161d; --pm-bench2: #0a1016;
  --pm-accent: #7cc7e3; --pm-accent-bg: #12303c; --pm-ok: #86e0a6; --pm-ok-bg: #153a25; --pm-bad: #ffb4a8; --pm-bad-bg: #4a1e1a; --pm-sel: #ffb067; --pm-sel-bg: #3c2510;
  --pm-ring: #9fb0c3; --pm-tick: #8fa0b2; --pm-plateglass: #2b3745; }

.pm { position: absolute; inset: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; font-size: 17px; line-height: 1.3; color: var(--pm-ink);
  background: radial-gradient(120% 90% at 20% 0%, var(--pm-bench), var(--pm-bench2)); }
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
.pm p { margin: 0; }

/* top strip */
.pm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; }
.pm-plaque { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 14px; border-radius: 8px; background: linear-gradient(180deg, #2a86a6, #1d6a85 60%, #165469); color: #fff; border: 2px solid #0f4354; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.pm-plaque-k { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.pm-plaque-t { font-size: 18px; font-weight: 800; }
.pm-level { font-size: 16px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--pm-accent-bg); color: var(--pm-accent); border: 1px solid var(--pm-accent); }
.pm-about { margin-left: auto; }
.pm-about summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--pm-ink); min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; list-style: none; }
.pm-about summary::-webkit-details-marker { display: none; }
.pm-about summary::before { content: 'ⓘ'; margin-right: 6px; }
.pm-about[open] { flex: 1 1 100%; margin-left: 0; order: 5; }
.pm-about[open] summary { margin-left: auto; width: max-content; }
.pm-about[open] p { padding: 10px 14px; background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 10px; font-size: 16px; }
.pm-about summary:focus-visible { outline: 3px solid var(--tlg-focus, #b84c00); }

/* bench */
.pm-bench { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 12px; }
.pm-card { position: relative; min-width: 0; min-height: 0; border-radius: 14px; background: linear-gradient(180deg, var(--pm-card), var(--pm-card2)); border: 1px solid var(--pm-line); box-shadow: 0 6px 16px rgba(20, 40, 60, .16), inset 0 1px 0 rgba(255,255,255,.6); }
html[data-theme="dark"] .pm-card { box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.pm-fig { display: flex; flex-direction: column; padding: 8px; overflow: hidden; }
.pm-maphost { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pm-maphost > svg { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; overflow: visible; }
.pm-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; overflow: auto; }
.pm-panel-k { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-accent); }
.pm-sub { font-size: 16px; font-weight: 700; color: var(--pm-soft); }
.pm-rule { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 16px; padding: 6px 10px; border-radius: 8px; background: var(--pm-accent-bg); border-left: 4px solid var(--pm-accent); }
.pm-rule-k { font-weight: 800; color: var(--pm-accent); }

/* scenes: the gel / gene / plates sit in the panel and take its room */
.pm-scene--map-gel .pm-bench, .pm-scene--map-gel-steps .pm-bench { grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); }
.pm-gelbox { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; }
.pm-gelbox > svg { display: block; height: 100%; width: auto; max-width: 100%; max-height: 520px; }
.pm-scene--map-gel-steps .pm-gelbox > svg { max-height: 300px; }
.pm-insbox > svg { display: block; width: 100%; height: auto; }
.pm-scene--plate .pm-bench { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }

/* the map */
.pm-map .pm-ring { stroke: var(--pm-ring); }
.pm-map .pm-tick { stroke: var(--pm-tick); }
.pm-map .pm-ticklab, .pm-map .pm-c3, .pm-map .pm-pos { fill: var(--pm-soft); }
.pm-map .pm-c1, .pm-map .pm-c2, .pm-map .pm-sitetext, .pm-map .pm-cut { fill: var(--pm-ink); }
.pm-map .pm-cut { stroke: var(--pm-ink); }
.pm-map .pm-leader { stroke: var(--pm-tick); }
.pm-map .pm-mcsbr { stroke: var(--pm-ink); }
html[data-theme="dark"] .pm-map .pm-labchip[fill="#2b2f36"] { fill: #5d6875; }
html[data-theme="dark"] .pm-map .pm-ring-hi { stroke-opacity: .12; }
.pm-map--tap [role="button"] { cursor: pointer; outline: none; }
.pm-map [role="button"]:hover .pm-fband, .pm-map [role="button"]:hover .pm-labchip { filter: brightness(1.12); }
.pm-map [role="button"]:focus-visible .pm-labhit, .pm-map [role="button"]:focus-visible .pm-candhit { stroke: var(--tlg-focus, #b84c00); stroke-width: 3; }
.pm-map [role="button"]:focus-visible .pm-hit { stroke: var(--tlg-focus, #b84c00); stroke-opacity: .25; }
.pm-map .is-picked .pm-labhit, .pm-map .is-picked .pm-candhit { fill: var(--pm-sel-bg); stroke: var(--pm-sel); stroke-width: 3; }
.pm-map .pm-feat.is-picked .pm-hit { stroke: var(--pm-sel); stroke-opacity: .3; }
.pm-map .pm-feat.is-picked .pm-fband { stroke: var(--pm-sel); stroke-width: 3; }
.pm-map .is-ok .pm-labhit, .pm-map .pm-cand.is-ok .pm-candhit { fill: var(--pm-ok-bg); stroke: var(--pm-ok); stroke-width: 3.5; }
.pm-map .pm-feat.is-ok .pm-fband { stroke: #17683a; stroke-width: 4; }
.pm-map .pm-lab.is-ok .pm-labchip { stroke: #17683a; stroke-width: 3.5; }
.pm-map .is-bad .pm-labhit, .pm-map .pm-cand.is-bad .pm-candhit { fill: var(--pm-bad-bg); stroke: var(--pm-bad); stroke-width: 3; stroke-dasharray: 6 4; }
.pm-map .pm-feat.is-bad .pm-fband { stroke: #b42318; stroke-width: 3; stroke-dasharray: 6 4; }
.pm-map .pm-lab.is-bad .pm-labchip { stroke: #b42318; stroke-width: 3; stroke-dasharray: 5 3; }
.pm-map .pm-feat.is-focus .pm-fband { stroke: var(--pm-sel); stroke-width: 3; }
.pm-map .pm-candc { fill: var(--pm-sel-bg); stroke: var(--pm-sel); }
.pm-map .pm-candt { fill: var(--pm-sel); }
.pm-map .pm-badgec[fill="#ffffff"] { fill: var(--pm-card); stroke: var(--pm-ink); }
.pm-map .pm-badget[fill="#1d2733"] { fill: var(--pm-ink); }
.pm-map .pm-badge.is-picked .pm-badgec { stroke: var(--pm-sel); stroke-width: 4; }
.pm-map .pm-badge.is-ok .pm-badgec { stroke: #17683a; stroke-width: 4.5; }
.pm-map .pm-badge.is-bad .pm-badgec { stroke: #b42318; stroke-width: 4; stroke-dasharray: 5 3; }
.pm-map .pm-lab--site.is-new text { fill: var(--pm-ok); }
.pm-map .pm-patharc, .pm-map .pm-patharrow { stroke: var(--pm-sel); } .pm-map .pm-pathdot { fill: var(--pm-sel); }
.pm-map .pm-feats, .pm-map .pm-sites, .pm-map .pm-lab, .pm-map .pm-leader, .pm-map .pm-ringg, .pm-map .pm-badge, .pm-map .pm-center { transition: opacity .5s ease; }
.pm-map.is-cut .pm-feat, .pm-map.is-cut .pm-feats, .pm-map.is-cut .pm-patharc, .pm-map.is-cut .pm-sites, .pm-map.is-cut .pm-lab, .pm-map.is-cut .pm-leader, .pm-map.is-cut .pm-ringg, .pm-map.is-cut .pm-badge, .pm-map.is-cut .pm-center, .pm-map.is-cut .pm-cand, .pm-map.is-cut .pm-candline { opacity: 0; }
.pm-map .pm-fraglab { fill: var(--pm-ink); }

/* compact key (phones) */
.pm-key { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; flex: none; }
.pm-key[hidden] { display: none; }
.pm-keyrow, .pm-keyli { display: flex; align-items: center; gap: 8px; font-size: 16px; min-height: 30px; }
.pm-keyli { display: block; }
.pm-keyrow--tap { width: 100%; min-height: 44px; border: 1px solid var(--pm-line); border-radius: 10px; background: var(--pm-card); color: var(--pm-ink); font: inherit; font-size: 16px; padding: 4px 8px; cursor: pointer; text-align: left; }
.pm-keyrow--tap.is-picked { border-color: var(--pm-sel); background: var(--pm-sel-bg); box-shadow: inset 0 0 0 2px var(--pm-sel); }
.pm-keyrow--tap.is-ok { border-color: var(--pm-ok); background: var(--pm-ok-bg); box-shadow: inset 0 0 0 2px var(--pm-ok); }
.pm-keyrow--tap.is-bad { border-color: var(--pm-bad); background: var(--pm-bad-bg); border-style: dashed; }
.pm-keyn { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pm-ink); font-weight: 800; font-size: 16px; }
.pm-keyn.is-feat { border-color: transparent; color: #fff; }

/* gel */
.pm-gel .pm-lanelab, .pm-gel .pm-ladlab, .pm-gel .pm-gel-neg { fill: var(--pm-ink); }
.pm-gel .pm-ladhead, .pm-gel .pm-gel-note { fill: var(--pm-soft); }
.pm-gel [role="button"] { cursor: pointer; outline: none; }
.pm-gel [role="button"]:hover .pm-lanebox { fill: rgba(127, 190, 220, .12); }
.pm-gel [role="button"]:focus-visible .pm-lanebox { stroke: var(--tlg-focus, #b84c00); stroke-width: 3; }
.pm-gel .is-picked .pm-lanebox { stroke: var(--pm-sel); stroke-width: 3.5; fill: rgba(255, 160, 60, .1); }
.pm-gel .is-ok .pm-lanebox { stroke: #2fa35a; stroke-width: 4; }
.pm-gel .is-bad .pm-lanebox { stroke: #d6453a; stroke-width: 3.5; stroke-dasharray: 8 5; }
.pm-gel .is-ok .pm-lanelab { fill: var(--pm-ok); }

/* plates */
.pm-plates { display: grid; gap: 10px; flex: 1 1 auto; min-height: 0; align-items: start; }
.pm-plates--1 { grid-template-columns: 1fr; justify-items: center; }
.pm-plates--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-platecard, .pm-platebtn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; width: 100%; padding: 8px; border-radius: 14px; font: inherit; color: var(--pm-ink); background: transparent; border: 2px solid transparent; }
.pm-platebtn { cursor: pointer; background: var(--pm-card); border-color: var(--pm-line); }
.pm-platebtn:hover { border-color: var(--pm-accent); }
.pm-platebtn:focus-visible { outline: 3px solid var(--tlg-focus, #b84c00); outline-offset: 2px; }
.pm-platebtn.is-on, .pm-platebtn.is-picked { border-color: var(--pm-sel); background: var(--pm-sel-bg); box-shadow: inset 0 0 0 2px var(--pm-sel); }
.pm-platebtn.is-ok { border-color: var(--pm-ok); background: var(--pm-ok-bg); box-shadow: inset 0 0 0 2px var(--pm-ok); }
.pm-platebtn.is-bad { border-color: var(--pm-bad); border-style: dashed; background: var(--pm-bad-bg); }
.pm-plate-art { display: block; width: 100%; }
.pm-plates--1 .pm-plate-art { max-width: min(100%, 470px); }
.pm-plate-art > svg { display: block; width: 100%; height: auto; }
.pm-plate-cap { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 16px; gap: 2px; }
.pm-plate-cells { color: var(--pm-soft); }
.pm-panel .pm-plates--1 .pm-plate-art { max-width: 160px; }
.pm-plate .pm-dish { fill: var(--pm-plateglass); }
.pm-plate [role="button"] { cursor: pointer; outline: none; }
.pm-plate .pm-colring { stroke: transparent; stroke-width: 3.5; }
.pm-plate [role="button"]:focus-visible .pm-colring { stroke: var(--tlg-focus, #b84c00); }
.pm-plate .is-picked .pm-colring { stroke: #e07b13; stroke-width: 4; }
.pm-plate .is-ok .pm-colring { stroke: #1f9a4f; stroke-width: 4; }
.pm-plate .is-bad .pm-colring { stroke: #d6453a; stroke-width: 4; stroke-dasharray: 5 3; }
.pm-scene--plate .pm-fig { padding: 10px; overflow: auto; }

/* chips, cards, steps */
.pm-chips { display: grid; gap: 8px; }
.pm-chips--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pm-chips--col { grid-template-columns: 1fr; }
.pm-chip, .pm-card, .pm-step, .pm-slot { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--pm-line); background: var(--pm-card); color: var(--pm-ink); font: inherit; font-size: 17px; text-align: left; cursor: pointer; width: 100%; }
.pm-chip:hover, .pm-card:hover, .pm-step:hover, .pm-slot:hover { border-color: var(--pm-accent); }
.pm-chip:focus-visible, .pm-card:focus-visible, .pm-step:focus-visible, .pm-slot:focus-visible, .pm-input:focus-visible, .pm-btn:focus-visible, .pm-del:focus-visible, .pm-keyrow--tap:focus-visible { outline: 3px solid var(--tlg-focus, #b84c00); outline-offset: 2px; }
.pm-chip-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pm-soft); }
.pm-chip-box { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--pm-soft); }
.pm-chip.is-on, .pm-card.is-on, .pm-step.is-on { border-color: var(--pm-sel); background: var(--pm-sel-bg); box-shadow: inset 0 0 0 1px var(--pm-sel); }
.pm-chip.is-on .pm-chip-dot { border-color: var(--pm-sel); background: radial-gradient(circle, var(--pm-sel) 0 45%, transparent 50%); }
.pm-chip.is-on .pm-chip-box { border-color: var(--pm-sel); background: var(--pm-sel); box-shadow: inset 0 0 0 3px var(--pm-card); }
.pm-chip.is-ok, .pm-card.is-ok, .pm-step.is-ok, .pm-slot.is-ok { border-color: var(--pm-ok); background: var(--pm-ok-bg); }
.pm-chip.is-bad, .pm-card.is-bad, .pm-step.is-bad, .pm-slot.is-bad { border-color: var(--pm-bad); border-style: dashed; background: var(--pm-bad-bg); }
.pm-chip.is-ok::after, .pm-card.is-ok::after, .pm-slot.is-ok::after { content: '✓'; margin-left: auto; font-weight: 800; color: var(--pm-ok); }
.pm-chip.is-bad::after, .pm-card.is-bad::after, .pm-slot.is-bad::after { content: '✗'; margin-left: auto; font-weight: 800; color: var(--pm-bad); }
.pm-chip:disabled, .pm-card:disabled, .pm-step:disabled, .pm-slot:disabled, .pm-platebtn:disabled { cursor: default; opacity: 1; }
.pm-card-letter { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--pm-accent); color: #fff; font-weight: 800; }
html[data-theme="dark"] .pm-card-letter { color: #0b1a20; }
.pm-card-main { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.pm-card-t { font-weight: 700; }
.pm-card-bars { display: flex; flex-direction: column; gap: 3px; }
.pm-card-bar { display: block; height: 6px; border-radius: 3px; }
.pm-c0 { background: #2f6fd0; } .pm-c1 { background: #d8961c; } .pm-c2 { background: #25945a; } .pm-c3 { background: #c63d4e; } .pm-c4 { background: #7a55b3; }
.pm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-step { align-items: flex-start; }
.pm-step-n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pm-accent-bg); color: var(--pm-accent); font-weight: 800; border: 1px solid var(--pm-accent); }
.pm-step.is-ok .pm-step-n { background: var(--pm-bad); color: #fff; border-color: var(--pm-bad); }
.pm-step.is-ok { border-color: var(--pm-bad); background: var(--pm-bad-bg); }
.pm-step.is-ok::after { content: '✗ the error'; margin-left: auto; white-space: nowrap; font-weight: 800; color: var(--pm-bad); font-size: 16px; }
.pm-step.is-bad { border-color: var(--pm-ok); border-style: dashed; background: var(--pm-ok-bg); }
.pm-step.is-bad::after { content: '✓ holds up'; margin-left: auto; white-space: nowrap; font-weight: 800; color: var(--pm-ok); font-size: 16px; }

/* number + sizes */
.pm-num { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.pm-num-row, .pm-sizes-row { display: flex; align-items: center; gap: 8px; }
.pm-input { width: 140px; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 20px; font-variant-numeric: tabular-nums; border-radius: 10px; border: 2px solid var(--pm-line); background: var(--pm-card); color: var(--pm-ink); }
.pm-input:disabled { opacity: 1; }
.pm-unit { font-weight: 700; color: var(--pm-soft); }
.pm-sizes { display: flex; flex-direction: column; gap: 8px; }
.pm-sizes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-sizes-n { min-width: 96px; font-weight: 700; font-size: 16px; }
.pm-del { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--pm-line); background: var(--pm-card); color: var(--pm-soft); font: inherit; font-size: 18px; cursor: pointer; }
.pm-del[hidden] { display: none; }
.pm-btn { align-self: flex-start; min-height: 44px; padding: 6px 16px; border-radius: 10px; border: 2px dashed var(--pm-accent); background: transparent; color: var(--pm-accent); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.pm-btn:disabled { opacity: .5; cursor: default; }

/* ends + MCS strip + table */
.pm-ends { display: flex; flex-direction: column; gap: 10px; }
.pm-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-slot { flex-direction: column; align-items: flex-start; gap: 2px; }
.pm-slot-k { font-size: 16px; font-weight: 700; color: var(--pm-soft); }
.pm-slot-v { font-weight: 800; }
.pm-slot.is-active { border-color: var(--pm-sel); box-shadow: inset 0 0 0 2px var(--pm-sel); }
.pm-slot:not(.is-set) .pm-slot-v { font-weight: 600; color: var(--pm-soft); font-style: italic; }
.pm-mcsstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px; border-radius: 10px; background: var(--pm-card2); border: 1px solid var(--pm-line); font-size: 16px; }
.pm-mcs-prom { font-weight: 800; color: #25945a; }
html[data-theme="dark"] .pm-mcs-prom { color: #7fd6a2; }
.pm-mcs-site { padding: 2px 8px; border-radius: 6px; background: var(--pm-card); border: 1px solid var(--pm-ink); font-weight: 700; }
.pm-mcs-arr { color: var(--pm-soft); font-weight: 800; }
.pm-table { border-collapse: collapse; width: 100%; font-size: 17px; }
.pm-table caption { text-align: left; font-weight: 700; color: var(--pm-soft); font-size: 16px; padding-bottom: 4px; }
.pm-table th, .pm-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--pm-line); }
.pm-table th { font-size: 16px; color: var(--pm-soft); }
.pm-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }

.pm-status { font-size: 16px; font-weight: 700; color: var(--pm-soft); padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--pm-line); }
.pm-status.is-set { color: var(--pm-sel); border-color: var(--pm-sel); border-style: solid; background: var(--pm-sel-bg); }
.pm-revealnote { font-size: 16px; font-weight: 700; color: var(--pm-ok); }
.pm-revealnote { min-height: 1.3em; } .pm-revealnote[hidden] { display: block; visibility: hidden; }   /* the line is reserved so the reveal never shrinks the gel */

/* Briefing example + Start art */
.pm-ex { display: flex; flex-direction: column; align-items: center; gap: 0; }
.pm-ex > svg { display: block; width: 100%; height: auto; }
.pm-ex .pm-map .pm-ring { stroke: var(--pm-ring); }
.pm-ex .pm-c1, .pm-ex .pm-c2, .pm-ex .pm-sitetext, .pm-ex .pm-fraglab { fill: var(--tlg-text, #1d2733); }
.pm-ex .pm-ticklab, .pm-ex .pm-c3, .pm-ex .pm-pos { fill: var(--tlg-text-muted, #4d5b6b); }
.pm-ex .pm-cut { stroke: var(--tlg-text, #1d2733); }
.pm-start { display: block; width: 100%; height: auto; }
html[data-theme="dark"] .pm-start .pm-start-bg { fill: #16222c; }
html[data-theme="dark"] .pm-start .pm-c1, html[data-theme="dark"] .pm-start .pm-c2, html[data-theme="dark"] .pm-start .pm-sitetext, html[data-theme="dark"] .pm-start .pm-ladlab, html[data-theme="dark"] .pm-start .pm-lanelab { fill: #eef2f7; }
html[data-theme="dark"] .pm-start .pm-cut { stroke: #eef2f7; }

/* narrow stages: stack figure and panel; the stage scrolls */
@media (max-width: 1180px) {
  .pm-bench, .pm-scene--map-gel .pm-bench, .pm-scene--map-gel-steps .pm-bench, .pm-scene--plate .pm-bench { grid-template-columns: 1fr; }
  .pm-fig { min-height: 0; }
  .pm-maphost { aspect-ratio: 780 / 560; flex: none; }
  .pm-panel { overflow: visible; }
  .pm-bench { flex: none; }
  .pm-gelbox { flex: none; height: 540px; }
  .pm-gelbox > svg, .pm-scene--map-gel-steps .pm-gelbox > svg { height: 100%; width: auto; max-width: 100%; max-height: none; }
  .pm-fig--gel .pm-gelbox { height: 560px; }
}
@media (max-width: 1180px) and (max-width: 560px) { .pm-maphost { aspect-ratio: 1 / 1; } }
@media (max-width: 900px) { .pm { position: static; overflow: visible; min-height: 100%; } .pm-plates--3 { grid-template-columns: 1fr; } .pm-plates--3 .pm-plate-art { max-width: 260px; } }
@media (prefers-reduced-motion: reduce) { .pm-map .pm-feats, .pm-map .pm-sites, .pm-map .pm-lab, .pm-map .pm-leader, .pm-map .pm-ringg, .pm-map .pm-badge, .pm-map .pm-center { transition: none; } }

.pm-plate-grow { font-weight: 700; color: var(--pm-accent); }
.pm-fig--gel { align-items: center; justify-content: center; }
.pm-fig--gel .pm-gelbox > svg { max-height: 100%; }
/* decoration never steals a tap from a label, an arc or a marker */
.pm-map .pm-leader, .pm-map .pm-cut, .pm-map .pm-tick, .pm-map .pm-ticklab, .pm-map .pm-candline, .pm-map .pm-patharc, .pm-map .pm-patharrow, .pm-map .pm-pathdot, .pm-map .pm-center, .pm-map .pm-ringg, .pm-map .pm-frags, .pm-gel .pm-bandg, .pm-gel .pm-well, .pm-gel .pm-lanelab { pointer-events: none; }

.pm-panel .pm-plates { flex: none; }
.pm-fig .pm-insbox { flex: none; max-width: 400px; width: 100%; align-self: center; }
.pm-ex-key { width: 100%; margin: 4px 0 8px; }
.pm-ex > svg.pm-map--compact { max-width: 460px; }
/* the gene figure follows the theme */
.pm-insert .pm-ins-title, .pm-insert .pm-sitetext { fill: var(--pm-ink); }
.pm-insert .pm-pos { fill: var(--pm-soft); }
.pm-insert .pm-ins-cut { stroke: var(--pm-ink); }
.pm-insert .pm-ins-end { fill: #0c6a62; }
html[data-theme="dark"] .pm-insert .pm-ins-end { fill: #6fe0d3; }
.pm-keyt { min-width: 0; overflow-wrap: anywhere; }
.pm-key { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pm-keyrow:has(.pm-keyt:not(:empty)) { align-items: flex-start; }
