/* ── Stage panel ── */
.stage {
  width: 0;
  flex-shrink: 0;
  align-self: stretch;
  background: var(--bg-el);
  border-left: 1px solid transparent;
  overflow: hidden;
  transition: width 280ms cubic-bezier(0.4,0,0.2,1), border-color 280ms;
  display: flex;
  flex-direction: column;
}
.stage.open {
  width: 310px;
  border-left-color: var(--border);
}
.stage-inner {
  width: 310px;
  height: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stage-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.stage-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stage-preview {
  flex: 1;
  min-height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
}
.stage-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.stage-preview video { max-width: 100%; max-height: 100%; display: block; }
.stage-preview audio { width: 90%; }
.stage-preview embed, .stage-preview iframe { width: 100%; height: 100%; border: none; }
.stage-preview pre {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--border-h) transparent;
}
.stage-info {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: fit-content;
}
.stage-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-1);
  word-break: break-all;
  line-height: 1.35;
}
.stage-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-3);
}
.stage-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-actions .btn { flex: 1; min-width: 0; font-size: 0.78rem; padding: 6px 8px; }
