.slide {
  width: var(--page-w);
  height: var(--page-h);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  background: var(--slide-bg);
  color: #f8fafc;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 40px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.slide-left,
.slide-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slide-title {
  font-size: var(--title-size);
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  max-height: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-code {
  flex: 1;
  margin: 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.85);
  font-family: var(--font-mono);
  font-size: var(--code-base);
  line-height: 1.4;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.slide-code code {
  display: block;
  max-height: 100%;
  overflow: hidden;
  white-space: pre;
}

.slide-right {
  padding: 1rem 0;
  gap: 1rem;
  justify-content: center;
}

.slide-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  font-size: var(--points-base);
  line-height: 1.5;
  overflow: hidden;
}

.slide-points li {
  position: relative;
  padding-left: 1.5rem;
  max-height: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-points li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  top: 0;
  color: rgba(96, 165, 250, 0.9);
  font-size: 1.2em;
}

.slide-points li[data-hl-active="true"] {
  color: rgba(191, 219, 254, 0.95);
}

.slide-points li[data-hl-active="true"]::before {
  color: rgba(250, 204, 21, 0.9);
}

/* Inline code emphasis inside bullet items */
.slide-points code {
  font-family: var(--font-mono);
  background: rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

@media print {
  .slide-points code {
    background: rgba(148, 163, 184, 0.12);
  }
}

.slide[data-hit-min="true"] {
  border-color: rgba(250, 204, 21, 0.7);
}

.slide[data-overflow="true"] {
  border-color: rgba(248, 113, 113, 0.8);
}

@page {
  size: 1280px 720px;
  margin: 0;
}

@media print {
  body {
    margin: 0;
  }
  .slide {
    box-shadow: none;
    break-after: page;
  }
}

/* Preview interactions */
.slide-code code .hl-line {
  display: block;
  width: 100%;
  background: rgba(96, 165, 250, 0.25);
  border-radius: 0.25rem;
}

@media print {
  .slide-code code .hl-line {
    background: transparent !important;
  }
}

