
/* Transcript panel — right column, full height */
.transcript-panel {
  flex: 1;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}

.transcript-header h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


.transcript-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.transcript-body::-webkit-scrollbar { width: 4px; }
.transcript-body::-webkit-scrollbar-track { background: transparent; }
.transcript-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.transcript-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0.5;
}

.transcript-empty .t-icon { font-size: 1.5rem; opacity: 0.4; }


/* Paragraphs within a speaker block */
.transcript-para {
  margin-bottom: 0.65rem;
  text-align: justify;
}

/* Individual word segments — each row is a clickable span */
.t-seg {
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s, color 0.1s;
  line-height: 1.7;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.35em 0;
}

.t-seg:hover {
  color: var(--text);
}

.t-seg.active  { color: var(--text); }
.t-seg.hovered { color: var(--text); }

.t-seg-hl {
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}

.t-seg.active .t-seg-hl {
  background: rgba(232, 255, 71, 0.12);
}

.t-seg.hovered .t-seg-hl {
  background: rgba(255, 255, 255, 0.07);
}

.t-seg.active.hovered .t-seg-hl {
  background: rgba(232, 255, 71, 0.2);
}

.t-seg.selected .t-seg-hl {
  outline: 1px solid rgba(232, 255, 71, 0.5);
  background: var(--accent-subtle);
}

.t-seg.editing {
  outline: 1px solid rgba(232, 255, 71, 0.8);
  background: var(--accent-faint);
  border-radius: 2px;
  padding: 0.35em 2px;
  margin: 0 -2px;
  white-space: pre-wrap;
  min-width: 2px;
  color: var(--text);
  caret-color: var(--accent);
}


.transcript-drop {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent2);
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.transcript-drop:hover {
  background: var(--accent2-faint);
  color: var(--accent2);
}

.transcript-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

