/* Part 2 slides: bottleneck (s05), reconstruction loss (s06), PCA vs autoencoder (s07),
   uses and the live anomaly detector (s08). Shared bits first. */

figure {
  margin: 0;
}
figure > figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--text-soft);
}

/* Error heatmap legend (viz.js) */
.heat-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.heat-bar {
  width: 110px;
  height: 10px;
  border-radius: 5px;
}

/* Histogram (viz.js) */
.histogram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hist-bar {
  fill: color-mix(in srgb, var(--text) 32%, transparent);
}
.hist-axis {
  stroke: var(--line);
  stroke-width: 2;
}
.hist-tick {
  fill: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}
.hist-line {
  stroke: var(--sunflower);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.hist-line-label {
  fill: var(--sunflower);
  font-family: var(--font-mono);
  font-size: 14px;
}
.hist-marker {
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) linear;
}
.hist-marker line {
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linecap: round;
}
.hist-marker circle {
  fill: var(--coral);
}
.hist-marker-label {
  fill: var(--coral);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

/* ================================================================ s05 bottleneck */

.s05-body {
  flex-direction: column;
  gap: var(--gap);
}
.bn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.bn-img .cat-canvas {
  --cat-size: 300px;
}
.bn-out {
  position: relative;
}

/* A tapered hourglass. The neck width is drawn in JS from the bottleneck slider. */
.bn-diagram {
  width: 280px;
  height: 200px;
  flex-shrink: 0;
}
.bn-glass {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bn-enc-shape,
.bn-dec-shape {
  stroke: var(--line);
  stroke-width: 4;
  stroke-linejoin: round;
}
.bn-enc-shape { fill: var(--accent); }
.bn-dec-shape { fill: var(--sky); }
.bn-z-label {
  fill: var(--line);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.bn-copier {
  position: absolute;
  right: -165px;
  bottom: -20px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bn-copier .mascot {
  width: 120px;
}
.bn-copier .sticker {
  font-size: var(--fs-label);
  text-align: center;
  margin-top: -14px;
}
.bn-copier:not([hidden]) {
  animation: stamp-in 320ms var(--ease);
}

.bn-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gap) * 2.5);
  width: 100%;
}
.bn-slider {
  width: min(560px, 100%);
}
.bn-readouts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bn-numbers {
  font-size: var(--fs-body);
}
.bn-numbers strong {
  color: var(--accent);
}
.bn-ratio {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--accent);
}

/* ================================================================ s06 reconstruction loss */

.s06-body {
  gap: calc(var(--gap) * 2.5);
}
.s06-left {
  flex: 0 1 auto;
}
.loss-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.loss-row .cat-canvas {
  --cat-size: 240px;
}
.s06-right {
  flex: 0 1 520px;
  align-items: flex-start;
}
.loss-readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
}
.readout {
  transition: opacity var(--t-fast) linear;
}
.readout.dim {
  opacity: 0.35;
}
.labels-used {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.labels-count {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.labels-count.pulse {
  animation: count-pulse 500ms var(--ease);
}
@keyframes count-pulse {
  40% { transform: scale(1.3); }
}

/* ================================================================ s07 PCA vs autoencoder */

.s07-body {
  gap: calc(var(--gap) * 3);
}
.pca-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px 34px;
  justify-items: center;
}
.pca-row {
  display: contents;
}
.pca-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--accent);
}
.pca-cell .cat-canvas {
  --cat-size: 132px;
}
.pca-cell figcaption {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}
.pca-cell.better figcaption,
.better-key {
  color: var(--mint);
  font-weight: 700;
}
.pca-cell.better .cat-canvas {
  border-color: var(--mint);
}
.s07-side {
  flex: 0 1 460px;
  align-items: flex-start;
}
.pca-key {
  font-size: var(--fs-label);
  color: var(--text-soft);
}
.pca-avg {
  font-size: var(--fs-small);
  min-height: 1.5em;
}

/* ================================================================ s08 uses + anomaly detector */

.s08-body {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
}
.use-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
}
.use-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.use-panel .cat-canvas { --cat-size: min(180px, 28vh); }
.uc-mid { width: min(360px, 100%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.uc-ratio { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-h3); text-align: center; }
.uf-map { --map-size: min(260px, 34vh); }
.uf-neighbours { display: flex; gap: 8px; }
.use-caption { margin: 0; max-width: 78ch; text-align: center; color: var(--text-soft); font-size: var(--fs-small); }
.kind-lead { margin: 0; max-width: 70ch; color: var(--text); }
.history {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history li {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.hy {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--accent);
}
.uses {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  justify-content: center;
}
.card.use {
  padding: 16px 20px;
  gap: 10px;
}
.card.use h3 {
  font-size: var(--fs-small);
}
.use-vis {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}
.use-vis .arrow {
  color: var(--text-soft);
  font-size: 22px;
}
.use-compress .sq {
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  font-size: 13px;
}
.use-compress .sq.big {
  width: 72px;
  height: 72px;
}
.use-compress .sq.small {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.use-denoise canvas {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  image-rendering: pixelated;
}
.use-features .box {
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-size: 13px;
  font-family: var(--font-head);
  font-weight: 600;
}
.use-features .box.other {
  border-color: var(--sky);
}
.use-features .z {
  color: var(--lilac);
  font-weight: 700;
}

.card.anomaly {
  flex: 1 1 auto;
  min-width: 0;
  border-color: var(--accent);
  gap: 14px;
}
.live-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: var(--mint);
  border: 2px solid var(--line);
  color: var(--bg);
  font-size: 14px;
  vertical-align: middle;
}
.anomaly-main {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 28px;
  align-items: center;
}
.draw-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cat-canvas.draw {
  --cat-size: 260px;
  cursor: crosshair;
}
.draw-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 3px solid var(--line);
  background: var(--swatch);
  cursor: pointer;
}
.swatch[aria-pressed="true"] {
  border-color: var(--text);
  box-shadow: 3px 3px 0 var(--accent);
}
.btn.tool {
  min-height: 38px;
  padding: 4px 14px;
  font-size: var(--fs-label);
}
.recon-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recon-col .cat-canvas.small {
  --cat-size: 110px;
}
.verdict-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.verdict {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 48px;
}
.verdict-chip[data-level="warn"] {
  background: var(--sunflower);
}
.verdict-chip[data-level="bad"] {
  background: var(--coral);
  animation: count-pulse 500ms var(--ease);
}
.verdict-reason {
  font-size: var(--fs-label);
  color: var(--text-soft);
}
.anomaly-picker .cat-pick canvas {
  width: 52px;
  height: 52px;
}
.anomaly-caption {
  font-size: var(--fs-label);
  color: var(--text-soft);
}

/* ================================================================ 1366x768 and smaller laptops */

@media (max-height: 900px), (max-width: 1500px) {
  .bn-img .cat-canvas {
    --cat-size: 220px;
  }
  .bn-diagram {
    width: 220px;
    height: 170px;
  }
  .bn-copier {
    right: -140px;
    width: 125px;
  }
  .bn-copier .mascot {
    width: 96px;
  }
  .loss-row .cat-canvas {
    --cat-size: 170px;
  }
  .pca-cell .cat-canvas {
    --cat-size: 92px;
  }
  .uses {
    flex-basis: 250px;
  }
  .use-vis {
    min-height: 56px;
  }
  .use-compress .sq.big,
  .use-denoise canvas {
    width: 56px;
    height: 56px;
  }
  .cat-canvas.draw {
    --cat-size: 190px;
  }
  .recon-col .cat-canvas.small {
    --cat-size: 84px;
  }
  .anomaly-picker .cat-pick canvas {
    width: 42px;
    height: 42px;
  }
}

/* Between a phone and a full laptop, the three loss pictures plus the readouts
   otherwise run off the left edge of the slide. */
@media (max-width: 1200px) {
  .loss-row .cat-canvas {
    --cat-size: 150px;
  }
  .s06-right {
    flex-basis: 320px;
    min-width: 0;
  }
}
@media (max-width: 1000px) {
  .s06-body {
    flex-wrap: wrap;
  }
  .s06-left,
  .s06-right {
    flex-basis: 100%;
  }
  .loss-row {
    justify-content: center;
  }
}

/* ================================================================ phones (portrait) */

@media (max-width: 760px) {
  .bn-row {
    gap: 10px;
  }
  .bn-img .cat-canvas {
    --cat-size: 112px;
  }
  .bn-diagram {
    width: 84px;
    height: 100px;
  }
  .bn-z {
    width: 16px;
    margin: 0 2px;
  }
  .bn-copier {
    position: static;
    width: 112px;
    margin-top: 6px;
  }
  /* No room for the mascot beside a phone-sized cat: just the sticker. */
  .bn-copier .mascot {
    display: none;
  }
  .bn-copier .sticker {
    margin-top: 0;
    font-size: 12px;
    padding: 4px 8px;
  }
  .bn-picker .image-picker,
  .s06-picker .image-picker {
    --picker-cols: 4 !important;
  }
  .bn-controls {
    flex-direction: column;
    gap: var(--gap);
  }
  .bn-readouts {
    align-items: center;
  }

  .loss-row {
    gap: 10px;
    justify-content: center;
  }
  .loss-row .cat-canvas {
    --cat-size: 100px;
  }
  .heat-bar {
    width: 50px;
  }
  .s06-right {
    flex-basis: auto;
    align-items: stretch;
  }
  .loss-readouts {
    gap: 12px 22px;
  }

  .s07-body {
    gap: var(--gap);
  }
  .pca-grid {
    gap: 4px 16px;
    align-self: center;
  }
  .pca-cell .cat-canvas {
    --cat-size: 76px;
  }
  .s07-side {
    flex-basis: auto;
  }

  .uses {
    flex-basis: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .card.use {
    padding: 8px;
    align-items: center;
    text-align: center;
  }
  .card.use h3 {
    font-size: 13px;
  }
  .use-vis {
    min-height: 40px;
    gap: 4px;
    justify-content: center;
  }
  .use-vis .arrow {
    font-size: 14px;
  }
  .use-compress .sq.big,
  .use-denoise canvas {
    width: 34px;
    height: 34px;
  }
  .use-compress .sq {
    font-size: 8px;
  }
  .use-compress .sq.small {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }
  .use-features .box {
    padding: 2px 4px;
    font-size: 9px;
  }
  .anomaly-main {
    grid-template-columns: auto auto;
    gap: 14px;
    justify-content: center;
  }
  .verdict-col {
    grid-column: 1 / -1;
  }
  .use-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .use-panel .cat-canvas {
    --cat-size: 118px;
  }
  .uf-map {
    --map-size: 140px;
  }
  .uf-neighbours .cat-canvas {
    --cat-size: 48px;
  }
  .cat-canvas.draw {
    --cat-size: 132px;
  }
  .recon-col .cat-canvas.small {
    --cat-size: 64px;
  }
  .uc-picker .image-picker,
  .ud-picker .image-picker,
  .uf-picker .image-picker,
  .anomaly-picker .image-picker {
    --picker-cols: 4 !important;
  }
}

/* ================================================================ s07 a cat is 12,288 numbers */

.num-body {
  flex-direction: column;
  align-items: center;
  gap: calc(var(--gap) * 0.6);
}
.num-question {
  max-width: 90ch;
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: var(--fs-small);
}
svg.num-stage {
  width: min(1500px, 100%);
  height: auto;
  max-height: calc(100dvh - 330px);
  overflow: visible;
  cursor: pointer;
}
.num-step {
  opacity: 0;
  transition: opacity var(--t-med) linear;
}
.num-step.on {
  opacity: 1;
}
.num-frame {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}
.num-grid {
  stroke: var(--bg-raised);
  stroke-width: 1;
  opacity: 0.7;
}
.num-pick {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
}
.num-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  fill: var(--text);
}
.num-small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  fill: var(--text-soft);
}
.num-big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  fill: var(--accent);
}
.num-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  fill: var(--text);
}
.num-value {
  font-size: 26px;
  fill: var(--accent);
}
.num-dots {
  font-size: 34px;
  fill: var(--text-soft);
}
.num-neuron {
  stroke: var(--line);
  stroke-width: 2.5;
}
.num-brace,
.num-axis {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.num-arrowhead {
  fill: var(--line);
}
.num-encoder {
  fill: color-mix(in srgb, var(--accent) 14%, var(--bg-raised));
  stroke: var(--line);
  stroke-width: 3;
}
.num-wire {
  stroke: var(--line);
  stroke-width: 1.2;
  opacity: 0.35;
}
.num-code {
  fill: var(--bg-raised);
  stroke: var(--accent);
  stroke-width: 4;
}
.num-cat {
  stroke: rgba(36, 23, 15, 0.35);
  stroke-width: 0.6;
}
.num-cloud.on .num-cat {
  animation: num-pop var(--t-med) ease-out both;
}
@keyframes num-pop {
  from { opacity: 0; }
  to { opacity: 0.85; }
}
.num-dot {
  fill: var(--accent);
  stroke: var(--line);
  stroke-width: 3;
}
.num-flyer {
  stroke: var(--line);
  stroke-width: 1;
}
@media (max-width: 760px) {
  .num-question {
    font-size: 15px;
  }
}

/* ================================================================ s09 more numbers, more room */

.size-body {
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--gap) * 1.2);
  width: min(1280px, 100%);
  cursor: pointer;
}
.size-col {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity var(--t-med) linear;
}
.size-col:not(.shown) {
  opacity: 0.12;
}
.size-col figcaption {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
}
.size-col figcaption strong {
  color: var(--accent);
}
.size-map {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 1;
  background: var(--bg-sunken);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.size-note {
  margin: 0;
  font-size: var(--fs-label);
  color: var(--text-soft);
  text-align: center;
}
.size-cat {
  --cat-size: 110px;
}
@media (max-height: 900px), (max-width: 1500px) {
  .size-map { max-width: 220px; }
  .size-cat { --cat-size: 84px; }
}
@media (max-width: 760px) {
  .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-cat { --cat-size: 64px; }
}

/* ================================================================ s11 / s22 watch it learn */

.learn-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: calc(var(--gap) * 1.4);
}
.learn-svg {
  width: 100%;
  height: auto;
  background: var(--bg-raised);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.learn-axis { stroke: var(--line); stroke-width: 2.5; }
.learn-tick { font-family: var(--font-mono); font-size: 21px; fill: var(--text-soft); }
.learn-line { fill: none; stroke-width: 3.5; }
.learn-line.recon, .learn-dot.recon { stroke: var(--coral); }
.learn-line.kl, .learn-dot.kl { stroke: var(--sky); }
.learn-dot { fill: var(--bg-raised); stroke-width: 4; }
.learn-read { font-family: var(--font-mono); font-weight: 700; font-size: 21px; }
.learn-read.recon { fill: var(--coral); }
.learn-read.kl { fill: var(--sky); }
.learn-cursor { stroke: var(--text-soft); stroke-width: 1.5; stroke-dasharray: 4 4; }
.learn-middle {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.learn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.learn-row .cat-canvas {
  --cat-size: 88px;
}
.learn-row-label {
  margin: 6px 0 2px;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--text-soft);
}
.learn-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.learn-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.learn-canvas {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background: var(--bg-sunken);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.learn-map-label {
  margin: 0;
  font-size: var(--fs-label);
}
@media (max-height: 900px), (max-width: 1500px) {
  .learn-row .cat-canvas { --cat-size: 70px; }
  .learn-canvas { max-width: 300px; }
}
@media (max-width: 760px) {
  .learn-body { grid-template-columns: 1fr; }
  .learn-row .cat-canvas { --cat-size: 60px; }
  .learn-canvas { max-width: 260px; }
}

/* s07 encoder blocks: front = the feature map, top/side = its depth (channels) */
.num-block { stroke: var(--line); stroke-width: 2; }
.num-block.front { fill: color-mix(in srgb, var(--sky) 55%, var(--bg-raised)); }
.num-block.top { fill: color-mix(in srgb, var(--sky) 30%, var(--bg-raised)); }
.num-block.side { fill: color-mix(in srgb, var(--sky) 75%, var(--bg-raised)); }
.num-flow { stroke: var(--line); stroke-width: 2.5; fill: none; }
.num-tiny { font-family: var(--font-mono); font-weight: 700; font-size: 17px; fill: var(--text-soft); }
.num-wire.strong { opacity: 0.6; stroke-width: 2; }
.num-step.on .num-layer { animation: num-pop var(--t-med) ease-out both; animation-delay: var(--delay); }

/* s08 overcomplete: live loss, the under/overcomplete tag, and the copier's stamps */
.bn-loss { margin: 0; font-size: var(--fs-body); }
.bn-loss .readout { display: inline; }
.bn-loss .readout-value { color: var(--accent); font-weight: 700; }
.bn-loss-unit { color: var(--text-soft); font-size: var(--fs-label); }
.bn-kind { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bn-kind-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.bn-kind-tag.is-over { background: var(--coral); border-color: var(--line); color: var(--bg); }
.bn-illus { font-size: var(--fs-label); color: var(--text-soft); font-style: italic; }
/* The stamps land across the "copy" itself: a perfect score, nothing learned. */
.bn-stamps {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14% 0;
  pointer-events: none;
}
.bn-stamp {
  background: var(--coral);
  color: var(--bg);
  white-space: nowrap;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--line);
}
.bn-stamp-2 { transform: rotate(5deg); }
.bn-stamps:not([hidden]) .bn-stamp { animation: stamp-in 320ms var(--ease) both; }
.bn-stamps:not([hidden]) .bn-stamp-2 { animation-delay: 180ms; }
@media (max-height: 900px), (max-width: 1500px) {
  .bn-copier { bottom: 16px; }
  .bn-stamp { font-size: var(--fs-label); padding: 4px 10px; }
}
@media (max-width: 760px) {
  .bn-stamp { font-size: 11px; padding: 3px 6px; white-space: normal; text-align: center; max-width: 100%; }
}

/* #s07: the two code neurons keep their names, z1 and z2; the picked cat's dot is big and haloed. */
.num-zname { font-size: 24px; fill: var(--accent); dominant-baseline: auto; }
.num-dot { stroke-width: 3.5; }
.num-halo { fill: none; stroke: var(--accent); stroke-width: 3; stroke-opacity: 0.55; }
