/* =========================================================================
   Live call — Scrolling transcript log
   ========================================================================= */

.call-log-panel {
  max-height: 450px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  /* Force wrap of long URLs / unbreakable customer utterances so the panel
     never widens the parent card past its column budget. */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.call-log-panel::-webkit-scrollbar { width: 4px; }
.call-log-panel::-webkit-scrollbar-thumb {
  background: var(--border-emph);
  border-radius: 2px;
}

.log-entry {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeSlide 0.25s var(--ease);
}
.log-entry:last-child { border-bottom: none; }

/* Timestamp */
.log-ts {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-right: 0.5rem;
}

/* Speaker label */
.log-speaker { font-weight: 700; margin-right: 0.3rem; }
.log-speaker-customer { color: var(--blue); }
.log-speaker-agent    { color: var(--teal); }
.log-speaker-rta      { color: var(--yellow); }
.log-speaker-system   { color: var(--text-muted); }

/* Dropped RTA entry */
.log-entry-rta-dropped,
.log-entry-rta-dropped .log-speaker {
  color: var(--text-faint);
  font-style: italic;
}

/* Interrupted (barged-in) entry — the AI line was cut off at the heard point.
   The trailing " —" cue is added in the text node; this dims the line a touch
   so it reads as truncated. Not color-only: the em-dash + aria-label carry the
   meaning for screen readers / low-vision users. */
.log-entry-interrupted .log-text {
  opacity: 0.82;
}
.log-entry-interrupted .log-text::after {
  content: "";
}

/* System / separator entry */
.log-entry-system {
  text-align: center;
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.75rem;
  border-bottom: none;
  padding: 0.5rem 0;
}
