/* ==========================================================================
   /p2/: the booklet's look on the web (Dakota's brief, 18 Oct 2026).
   Arial; black linework; one red, #d0312d; greys #1a1a1a text, #555
   secondary, #f4f4f2 panels; white. No shadows, no gradients, corners at
   most 2 px. Nothing under 16 px. Section heads in italic bold caps.

   Loaded after ../css/site.css, whose shared drawing viewer (lightbox) this
   page uses; its colour tokens are re-pointed here so it matches.
   ========================================================================== */

:root, :root[data-theme] {
  --bg: #FFFFFF;
  --surface: #F4F4F2;
  --ink: #1A1A1A;
  --dim: #555555;
  --faint: #D6D6D2;
  --rule: #1A1A1A;
  --accent: #D0312D;
  --accent-fg: #FFFFFF;
  --red: #D0312D;
}
body.p2, body.p2 * { font-family: Arial, "Liberation Sans", Helvetica, sans-serif !important; }
body.p2 {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}
.p2 a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.p2 a:hover { color: var(--red); }
.p2 :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.p2 ::selection { background: var(--red); color: #FFFFFF; }
.p2 .skip { font-size: 16px; }

.p2-top, .p2 main, .p2-foot { max-width: 1440px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Section heads: italic bold caps, as in the booklet. */
.p2-head {
  margin: 0 0 8px;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---- header ------------------------------------------------------------ */
.p2-top { padding-top: 20px; padding-bottom: 8px; }
.p2-home { display: inline-block; min-height: 44px; line-height: 44px; font-size: 16px; font-weight: 700; text-decoration: none; }
.p2-kicker { margin: 16px 0 0; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.p2-title { margin: 6px 0 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; }
.p2-question { margin: 12px 0 0; max-width: 46ch; font-size: clamp(18px, 1.8vw, 21px); color: #333333; }
.p2-jump { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 18px 0 0; padding: 0 0 14px; border-bottom: 1.5px solid var(--rule); }
.p2-jump a { min-height: 44px; line-height: 44px; font-size: 16px; text-decoration: none; color: var(--dim); }
.p2-jump a:hover { color: var(--red); }

/* ---- the catalogue ----------------------------------------------------- */
.cat { padding: 22px 0 36px; scroll-margin-top: 8px; }
.cat-toggle { display: inline-flex; margin-bottom: 14px; }
.cat-toggle button {
  min-width: 132px; min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  margin-left: -1px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.cat-toggle button:first-child { margin-left: 0; }
.cat-toggle button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.cat-toggle button:hover:not([aria-pressed="true"]) { color: var(--red); }
.cat-toggle__list { display: none; }

.cat-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 24px; align-items: start; }
.cat-rooms { display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
/* Side by side only when each room gets about 460 px or more (the rooms
   column is 940 px from a 1412 px window: page padding 48, card 400, gap
   24). Narrower, tags crowd off the edges (11 clipped at 1024 wide), so
   the two rooms stack, Westminster above Binion's. */
@media (min-width: 1412px) {
  .cat-rooms[data-view="both"] { grid-template-columns: 1fr 1fr; }
}
.cat-rooms[data-view="both"] .cat-note { grid-column: 1 / -1; }
.cat-note { margin: 0; font-size: 16px; color: var(--dim); }

.room { margin: 0; min-width: 0; }
.room__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 72vh;
  background: #FFFFFF;
  border: 1px solid var(--faint);
  touch-action: pan-y;               /* the page still scrolls past it on a phone */
  -webkit-user-select: none;
  user-select: none;
}
.room__stage[data-zoomed="yes"] { cursor: grab; touch-action: none; }
.room__stage[data-panning="yes"] { cursor: grabbing; }
.room__canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
/* Cached as one image while it moves, redrawn sharp once it settles. */
.room__stage.is-moving .room__canvas { will-change: transform; }
.room__canvas svg { display: block; width: 100%; height: 100%; }
/* Dakota's own labels are drawn again as buttons (catalogue.js); the
   leader and the dot stay in the drawing. */
.room__canvas [id^="tag_"] rect, .room__canvas [id^="tag_"] text { display: none; }
.room__canvas .is-sel line { stroke: var(--red) !important; stroke-width: 1.4px !important; }
.room__canvas .is-sel circle { r: 4px; }
.room__hits { position: absolute; inset: 0; pointer-events: none; }

/* A tag: the printed label, at a size that can be read and tapped. */
.axo-tag {
  position: absolute;
  top: 0; left: 0;
  translate: -50% -100%;             /* sits on top of its leader */
  padding: 2px 7px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
/* At least 44 x 44 px to touch, whatever the label's size. */
.axo-tag::before { content: ""; position: absolute; inset: -12px min(-4px, calc((100% - 44px) / 2)); }
/* A lifted label's leader, drawn longer to reach it (catalogue.js sets --lift). */
.axo-tag::after { content: ""; position: absolute; left: var(--lx, 50%); top: 100%; width: 1px; height: var(--lift, 0px); background: var(--ink); }
.axo-tag:hover { background: #555555; z-index: 2; }
.axo-tag.is-sel { background: var(--red); z-index: 3; }
.axo-tag.is-sel::after { background: var(--red); }
.axo-tag:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; z-index: 3; }

.room__tools { display: flex; gap: 6px; margin-top: 8px; }
.room__btn {
  min-width: 44px; min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--faint);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.room__btn--wide { font-size: 16px; }

.room__hint, .apanel__touchhint {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 4;
  margin: 0;
  padding: 10px 14px;
  translate: -50% -50%;
  background: rgba(26, 26, 26, .86);
  color: #FFFFFF;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.room__hint.is-on, .apanel__touchhint.is-on { opacity: 1; }
.room__btn:hover:not(:disabled) { border-color: var(--ink); color: var(--red); }
.room__btn:disabled { opacity: .35; cursor: default; }
.room__cap { margin-top: 6px; font-size: 16px; color: var(--dim); }
.room__cap strong { color: var(--ink); }

/* ---- the card: right-hand panel on a desktop ---------------------------- */
.card {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px 20px 20px;
  border: 1.5px solid var(--ink);
  background: #FFFFFF;
  box-sizing: border-box;
}
.card[hidden] { display: none; }
.card__grip { display: none; }
.card__close {
  float: right;
  width: 44px; height: 44px;
  margin: -10px -12px 0 8px;
  border: 0; background: none;
  color: var(--dim);
  font-size: 28px; line-height: 1;
  cursor: pointer;
}
.card__close:hover { color: var(--red); }
.card__hint { margin: 0; font-size: 17px; color: var(--dim); }
.card:not(.is-open) .card__close { display: none; }      /* nothing to close yet */
.card__sys { margin: 0 0 12px; font-size: 16px; font-style: italic; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.card__fig { display: block; margin: 0 0 14px; border: 1px solid var(--faint); background: #FFFFFF; }
/* Capped so the whole card fits a 720 px projector screen. */
.card__fig img { display: block; width: 100%; height: auto; max-height: 30vh; object-fit: contain; }
.card__title { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 700; outline: none; }
.card__code {
  display: inline-block;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  vertical-align: 2px;
}
.card__room { margin: 0 0 12px; font-size: 16px; color: var(--dim); }
.card__caption { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.card__source { margin: 0 0 4px; font-size: 16px; color: var(--dim); }
.card__nonaxo { margin: 8px 0 0; font-size: 16px; color: var(--dim); font-style: italic; }
.card__other { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--faint); }
.card__label { margin: 0 0 8px; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.card__pair {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--faint);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}
.card__pair img { width: 96px; height: auto; background: #FFFFFF; border: 1px solid var(--faint); }
.card__pair-text strong { display: block; font-size: 16px; line-height: 1.35; }
.card__pair-go { display: block; margin-top: 4px; color: var(--red); }
.card__pair:hover { border-color: var(--ink); }
/* Pinned to the bottom of the card, so Previous and Next are always in
   reach even when a long caption makes the card scroll. */
.card__nav {
  position: sticky;
  bottom: -20px;                      /* the card's bottom padding */
  display: flex; gap: 8px;
  margin: 16px -20px -20px;
  padding: 10px 20px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--faint);
}
.card__step {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.card__step:hover { background: var(--ink); color: #FFFFFF; }

/* ---- fourteen systems ------------------------------------------------- */
.systems { padding: 30px 0 40px; border-top: 1.5px solid var(--rule); scroll-margin-top: 8px; }
.systems__note { margin: 0 0 14px; font-size: 16px; color: var(--dim); }
.systems__list { margin: 0; padding: 0; list-style: none; }
.sys {
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}
.sys:last-child { border-bottom: 1px solid var(--ink); }
.sys__name { margin: 4px 0 0; font-size: 17px; font-style: italic; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.sys__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}
.sys__item img { width: 120px; height: auto; border: 1px solid var(--faint); background: #FFFFFF; }
.sys__item:hover { border-color: var(--faint); background: var(--surface); }
.sys__item.is-sel { border-color: var(--red); }
.sys__item.is-sel .sys__title { color: var(--red); }
.sys__text { display: flex; flex-direction: column; gap: 4px; }
.sys__room { font-size: 16px; color: var(--dim); }
.sys__title { font-size: 16px; line-height: 1.4; }
.sys__flag { font-size: 16px; font-style: italic; color: var(--dim); }

/* ---- the three panels (js/p2.js) ---------------------------------------- */
.panels { padding: 30px 0 40px; border-top: 1.5px solid var(--rule); scroll-margin-top: 8px; }
.p2-scale { padding: 26px 0 18px; scroll-margin-top: 8px; }
.p2-scale + .p2-scale { border-top: 1px solid var(--faint); }
.p2-scale__title { margin: 0; font-size: 20px; font-style: italic; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.p2-scale__caption { margin: 8px 0 18px; max-width: 72ch; font-size: 17px; color: #333333; }

.apanel { margin: 0; }
.apanel__viewer { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.apanel__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #FFFFFF;
  border: 1px solid var(--faint);
  cursor: zoom-in;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.apanel__stage[data-zoomed="yes"] { cursor: grab; touch-action: none; }
.apanel__stage[data-panning="yes"] { cursor: grabbing; }
.apanel__canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.apanel__img, .apanel__tiles, .apanel__tile { position: absolute; max-width: none; }
.apanel__img { inset: 0; width: 100%; height: 100%; }
.apanel__tiles { inset: 0; }
.apanel__tile { display: block; opacity: 0; transition: opacity .25s; }
.apanel__tile.is-loaded { opacity: 1; }
.apanel__pins { position: absolute; inset: 0; pointer-events: none; }
.apanel__pin {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 14px; margin: -7px 0 0 -8px;
  border: 2px solid transparent; border-radius: 2px;
  background: transparent;
  cursor: pointer; pointer-events: auto;
  transition: border-color .15s, box-shadow .15s;
}
.apanel__pin::before { content: ""; position: absolute; inset: -8px; }
.apanel__pin:hover { border-color: var(--ink); }
.apanel__pin.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px var(--red); }
.apanel__pin.is-lit { border-color: var(--c, var(--ink)); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--c, var(--ink)); }
.apanel__pin:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.apanel__stage[data-tags="small"] .apanel__pin { pointer-events: none; }
.apanel__veil { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); opacity: 0; transition: opacity .2s; pointer-events: none; }
.apanel__stage[data-spot="on"] .apanel__veil { opacity: 1; }

.apanel__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.apanel__btn {
  min-width: 44px; min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--faint);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.apanel__btn--wide { font-size: 16px; }
.apanel__btn:hover:not(:disabled) { border-color: var(--ink); color: var(--red); }
.apanel__btn:disabled { opacity: .35; cursor: default; }
.apanel__sep { width: 1px; height: 24px; margin: 0 6px; background: var(--faint); }
.apanel__nav { display: inline-flex; align-items: center; gap: 6px; }
.apanel__count { min-width: 64px; text-align: center; font-size: 16px; color: var(--dim); }
.apanel__short { display: none; }
.apanel__pick { margin-left: auto; font-size: 16px; color: var(--red); }

.apanel--drawing .apanel__stage { max-height: calc(100vh - 120px); }
@media (min-width: 601px) { .apanel--drawing .apanel__stage { min-height: 280px; } }
.apanel__hint { margin: 0 0 10px; font-size: 16px; color: var(--dim); }

/* Legend filters. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--faint);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip__swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
.chip[aria-pressed="true"] .chip__swatch { box-shadow: 0 0 0 1.5px #FFFFFF; }
.chip__n { color: inherit; opacity: .75; }

/* The callout on the drawing, joined to its tag by a leader line. */
.apanel__callout {
  position: absolute;
  z-index: 6;
  width: min(320px, 46%);
  overflow-y: auto;
  padding: 14px 16px 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
.apanel__callout.is-peek { pointer-events: none; border-style: dashed; }
.apanel__callout-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.apanel__callout p { margin: 0 0 6px; color: var(--dim); }
.apanel__callout-x { min-width: 44px; min-height: 44px; margin: -12px -14px 0 0; border: 0; background: none; color: var(--dim); font-size: 26px; line-height: 1; cursor: pointer; }
.apanel__callout-x:hover { color: var(--red); }
.apanel__leader { position: absolute; z-index: 5; height: 0; border-top: 1.5px solid var(--ink); transform-origin: 0 0; pointer-events: none; }
.apanel__num--code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 24px;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--c, var(--ink));
  color: #FFFFFF;
  font-size: 16px; font-weight: 700;
}
.apanel__group, .apanel__flag { font-size: 16px; font-style: italic; }
.apanel__flag { color: var(--ink) !important; }
.apanel__label { font-style: italic; }
.apanel__todo a { color: var(--red); }

/* Catalogue and "From the panel": closed until asked for. */
.apanel__catalogue, .p2-extras { margin-top: 18px; border-top: 1px solid var(--ink); }
.apanel__catalogue > summary, .p2-extras > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  min-height: 44px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px; font-style: italic; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.apanel__catalogue > summary::-webkit-details-marker, .p2-extras > summary::-webkit-details-marker { display: none; }
.apanel__catalogue > summary::before, .p2-extras > summary::before { content: "+"; width: 14px; font-style: normal; color: var(--red); }
.apanel__catalogue[open] > summary::before, .p2-extras[open] > summary::before { content: "\2212"; }
.apanel__catalogue > summary:hover, .p2-extras > summary:hover { color: var(--red); }
.p2-extras > summary .p2-block__title { display: inline; margin: 0; font: inherit; color: inherit; }
.p2-extras__list { font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--dim); }
.apanel__search { width: 100%; max-width: 380px; min-height: 44px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--faint); background: #FFFFFF; color: var(--ink); font-size: 16px; box-sizing: border-box; }
.apanel__empty { margin: 0; font-size: 16px; color: var(--dim); }
.apanel__list { position: relative; margin: 0; padding: 0; list-style: none; columns: 3 260px; column-gap: 28px; }
.apanel__item { break-inside: avoid; }
.apanel__item-head {
  display: grid; grid-template-columns: minmax(44px, auto) 1fr; gap: 10px; align-items: start;
  width: 100%; min-height: 44px; padding: 6px 2px;
  border: 0; background: none; color: var(--ink); text-align: left;
  font-size: 16px; line-height: 1.35; cursor: pointer;
}
.apanel__item-head:hover .apanel__item-title, .apanel__item.is-active .apanel__item-title { color: var(--red); }
.plates--extras { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding-bottom: 8px; }
.p2 .plate__cap, .p2 .plate__name { font-size: 16px; }

/* The shared drawing viewer (site.css), in this page's type sizes. */
.p2 .lb__caption, .p2 .lb__count, .p2 .lb__hint, .p2 .lb__btn { font-size: 16px; }

/* ---- sources and footer ---------------------------------------------- */
.sources { padding: 30px 0 40px; border-top: 1.5px solid var(--rule); scroll-margin-top: 8px; }
.sources__head { margin: 22px 0 8px; font-size: 17px; font-style: italic; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.sources__list { margin: 0; padding: 0; list-style: none; columns: 2 520px; column-gap: 40px; }
.sources__list li { break-inside: avoid; margin: 0 0 10px; padding-left: 1.2em; text-indent: -1.2em; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.sources__list a { color: var(--dim); }
.sources__note { font-style: italic; color: var(--dim); }
.sources__foot { margin: 18px 0 0; font-size: 16px; color: var(--dim); }

.p2-foot { padding-top: 22px; padding-bottom: 40px; border-top: 1.5px solid var(--rule); font-size: 16px; color: var(--dim); }
.p2-foot p { margin: 0 0 6px; }
.p2-noscript { max-width: 1440px; margin: 0 auto; padding: 0 24px; font-size: 16px; }

/* ---- phones: Westminster | Binion's | List, the card as a bottom sheet -- */
/* Phones, upright or turned sideways (a short touch screen). */
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .p2-top, .p2 main, .p2-foot { padding-left: 16px; padding-right: 16px; }
  .cat-toggle { display: flex; }
  .cat-toggle button { flex: 1; min-width: 0; padding: 0 8px; }
  .cat-toggle__both { display: none; }
  .cat-toggle__list { display: block; }
  .cat-main { grid-template-columns: 1fr; }
  .cat-rooms[data-view="both"] { grid-template-columns: 1fr; }
  /* Taller than the drawing on a phone: room for close tags, stacked. */
  .room__stage { aspect-ratio: 4 / 5 !important; max-height: 62vh; }

  /* Half height, so the tag stays in view above it; the handle (or a swipe
     up) gives the whole card. */
  .card {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    z-index: 60;
    max-height: 52vh;
    padding: 0 16px 22px;
    border: 0;
    border-top: 1.5px solid var(--ink);
    transition: max-height .2s;
  }
  .card.is-tall { max-height: 88vh; }
  .card__grip {
    display: block;
    position: sticky; top: 0; z-index: 1;
    height: 28px;
    margin: 0 -16px 6px;
    background: #FFFFFF;
    cursor: pointer;
  }
  .card__grip::after { content: ""; display: block; width: 48px; height: 5px; margin: 11px auto 0; border-radius: 2px; background: #BBBBBB; }
  .card__close { position: relative; z-index: 2; margin-top: -6px; }
  .card__nav { bottom: -22px; margin: 16px -16px -22px; padding: 10px 16px 22px; }
  body.has-sheet { padding-bottom: 54vh; }

  .sys { grid-template-columns: 1fr; gap: 6px; }
  .sys__item { grid-template-columns: 96px 1fr; }
  .sys__item img { width: 96px; }

  .apanel__tools { gap: 4px; flex-wrap: nowrap; }
  .apanel__btn { min-width: 44px; padding: 0 8px; }
  .apanel__long { display: none; }
  .apanel__short { display: inline; }
  .apanel__sep { margin: 0 2px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .apanel__callout { position: static; width: auto; max-height: none !important; }
  .apanel__leader { display: none; }
  .sources__list { columns: 1; }
}

/* Touch screens: one finger always scrolls the page, even over a zoomed
   drawing; two fingers move and zoom it (catalogue.js, js/p2.js). Last in
   the file so it outranks the zoomed-stage rules above. */
@media (pointer: coarse) {
  .room__stage[data-zoomed="yes"], .apanel__stage[data-zoomed="yes"] { touch-action: pan-y; }
}

@media (prefers-reduced-motion: reduce) {
  .apanel__pin, .apanel__veil { transition: none; }
  .apanel__tile { transition: none; }
}
