  .embed-table {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.65rem;
  }
  .matrix-shape-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-2xs);
    color: #1a2050;
    margin-top: 0.55rem;
    margin-bottom: 0.05rem;
  }
  .embed-row {
    display: grid;
    grid-template-columns: 8.2rem 1fr;
    gap: 0.6rem;
    align-items: center;
  }
  .embed-row.selected-row {
    padding: 0.3rem 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42,79,214,0.34);
    background: rgba(42,79,214,0.08);
  }
  .embed-row.matrix-ellipsis-row {
    opacity: 1;
  }
  .embed-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-2xs);
    color: #0d1020;
    border: 1px solid rgba(42,79,214,0.42);
    background: rgba(42,79,214,0.12);
    border-radius: var(--radius-sm);
    padding: 0.32rem 0.45rem;
    text-align: center;
  }
  .embed-key.dim {
    color: #3a4a70;
    border-color: rgba(42,79,214,0.26);
    background: rgba(42,79,214,0.06);
  }
  .vec-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .vec-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-2xs);
    color: #084020;
    border: 1px solid rgba(15,110,47,0.45);
    background: rgba(15,110,47,0.12);
    border-radius: 0.4rem;
    padding: 0.24rem 0.38rem;
  }
  .vec-chip.dim {
    color: #2a3560;
    border-color: rgba(42,79,214,0.55);
    background: rgba(42,79,214,0.08);
  }
  .vec-chip.token-label {
    color: #4a3000;
    border-color: rgba(106,79,0,0.48);
    background: rgba(106,79,0,0.18);
  }
  .projection-card {
    border-color: rgba(42,79,214,0.34);
    background:
      radial-gradient(circle at 15% 12%, rgba(42,79,214,0.1), transparent 40%),
      radial-gradient(circle at 85% 85%, rgba(90,48,200,0.08), transparent 45%),
      var(--surface);
  }
  .projection-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
  }
  .lens-btn {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-2xs);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.68rem;
    background: var(--surface2);
    color: #0d1020;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }
  .lens-btn:hover {
    border-color: rgba(42,79,214,0.6);
    background: rgba(42,79,214,0.14);
    transform: translateY(-1px);
  }
  .lens-btn.active {
    border-color: rgba(15,110,47,0.6);
    background: rgba(15,110,47,0.18);
    color: #084020;
  }
  .projection-body {
    display: grid;
    grid-template-columns: 1fr 20rem;
    gap: var(--sp-3);
    margin-top: 0.7rem;
    align-items: start;
  }
  .projection-body-canvas {
    min-width: 0;
  }
  .projection-body-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .projection-body-info .projection-readout {
    margin-top: 0;
  }
  .projection-body-info .projection-note {
    margin-top: 0.4rem;
  }
  .projection-body-info .math-note {
    margin-top: 0.5rem;
  }
  .projection-stage {
    border: 1px solid rgba(42,79,214,0.3);
    border-radius: var(--radius-md);
    background:
      linear-gradient(0deg, rgba(42,79,214,0.06) 1px, transparent 1px) 0 0 / 1.65rem 1.65rem,
      linear-gradient(90deg, rgba(42,79,214,0.06) 1px, transparent 1px) 0 0 / 1.65rem 1.65rem,
      rgba(232,236,252,0.95);
    min-height: 15rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
  }
  .projection-canvas {
    width: 100%;
    height: 100%;
    display: block;
  }
  .projection-readout {
    margin-top: 0.7rem;
    padding: 0.65rem 0.72rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42,79,214,0.28);
    background: rgba(42,79,214,0.1);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .projection-readout.updating {
    opacity: 1;
    transform: translateY(2px);
  }
  .projection-neighbors {
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .neighbor-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-2xs);
    border: 1px solid rgba(15,110,47,0.45);
    border-radius: var(--radius-sm);
    padding: 0.23rem 0.42rem;
    color: #084020;
    background: rgba(15,110,47,0.12);
  }
  .projection-note {
    margin-top: 0.6rem;
    font-size: var(--fs-xs);
    color: #1a2050;
    line-height: 1.5;
  }
  .math-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-2xs);
    color: #0d1020;
    padding: 0.48rem 0.56rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42,79,214,0.34);
    background: rgba(42,79,214,0.1);
    margin-top: 0.55rem;
  }

  /* Slide 14: keep the two comparison cards content-sized instead of stage-sized. */
  #slide-14 .slide-body {
    justify-content: flex-start;
  }

  #slide-14 .slide-body > .grid-2 {
    flex: 0 0 auto;
    align-items: start;
    margin-top: 0.75rem;
  }

  #slide-14 .card {
    height: fit-content;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #slide-14 .callout.info {
    margin-top: 0.8rem !important;
  }

  /* Projector-safe compaction for slide 16 */
  #slide-16 h2 {
    margin-bottom: 0.7rem;
  }

  #slide-16 .slide-header .small-text {
    line-height: 1.42;
  }

  #slide-16 .projection-card {
    margin-top: 0 !important;
    padding: 0.9rem 1rem;
  }

  #slide-16 .projection-card h3 {
    margin-bottom: 0.45rem;
  }

  #slide-16 .projection-toolbar {
    gap: 0.35rem;
    margin-top: 0.25rem;
  }

  #slide-16 .lens-btn {
    padding: 0.32rem 0.58rem;
  }

  #slide-16 .projection-body {
    grid-template-columns: minmax(0, 42.5rem) 18rem;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.55rem;
  }

  #slide-16 .projection-stage {
    min-height: 13.4rem;
  }

  #slide-16 .projection-readout {
    padding: 0.54rem 0.62rem;
  }

  #slide-16 .projection-neighbors {
    gap: 0.34rem;
    margin-top: 0.36rem;
  }

  #slide-16 .neighbor-chip {
    padding: 0.18rem 0.34rem;
  }

  #slide-16 .math-note {
    padding: 0.38rem 0.48rem;
    margin-top: 0.38rem !important;
  }

  #slide-16 .projection-note {
    margin-top: 0.32rem !important;
    font-size: var(--fs-2xs);
    line-height: 1.42;
  }

  #slide-13 .slide-body {
  gap: 0rem; 
}
