/* Slide filmstrip (P7.D) — PowerPoint-style left rail inside the canvas.
   slide-filmstrip.js keeps #slide-canvas-root as flex-column [toolbar, sc-body]
   and turns .sc-body into the horizontal [rail | stage] row (critical flex is
   set inline by the JS; this file adds the visual skin). */

.sc-body > .sc-stage { min-width: 0; }

#slide-filmstrip {
  flex: 0 0 160px;
  width: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary, #ffffff);
  border-right: 1px solid var(--border, #e5e7eb);
  padding: 8px 0;
}

.sf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px;
}

.sf-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
  padding: 2px;
}
.sf-num {
  flex: 0 0 15px;
  font-size: 11px;
  color: var(--text-hint, #9ca3af);
  text-align: right;
  padding-top: 2px;
  user-select: none;
}
.sf-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 2px;
  background: #ffffff;
  pointer-events: none;   /* clicks belong to the item, not the shapes */
  flex: 0 0 auto;
}
.sf-item:hover .sf-thumb { border-color: var(--accent-blue, #079d9d); }
.sf-item-active .sf-thumb {
  outline: 2px solid var(--accent-blue, #079d9d);
  outline-offset: 0;
  border-color: transparent;
}

.sf-thumb-legacy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.sf-thumb-title {
  font-size: 8px;
  line-height: 1.2;
  color: var(--text-secondary, #6b7280);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.sf-dragging { opacity: 0.4; }
.sf-drop-target { box-shadow: inset 0 3px 0 -1px var(--accent-blue, #079d9d); }

.sf-add {
  margin: 4px 10px 2px;
  height: 30px;
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  color: var(--text-secondary, #6b7280);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sf-add:hover {
  background: var(--bg-hover, #ececec);
  color: var(--text-primary, #1a1a1a);
}

/* Mobile: the canvas is view-only — no filmstrip. */
@media (max-width: 899px) {
  #slide-filmstrip { display: none !important; }
}
