/* The compact call card (it-180) — templates/calls/_call_line.html: one call in two short lines (direction · when, then
   outcome · who · duration · play). The full card is the contact Calls tab's (call-log.css). */

.call-lines { display: flex; flex-direction: column; gap: var(--space-2, 0.5rem); }

/* Columns: direction · what · duration · play — the play column is kept when a call has no recording, so the
   durations line up down a list. */
.call-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  min-height: 32px;
  font-size: 0.86rem;
  color: var(--md-sys-color-on-surface);
}
.call-line__dir { font-size: 18px; color: var(--md-sys-color-primary); }
.call-line--missed .call-line__dir { color: var(--md-sys-color-error); }
.call-line__what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.call-line__when { font-weight: 600; }
.call-line__sub {
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-line__dur {
  grid-column: 3;
  font-variant-numeric: tabular-nums;
  color: var(--md-sys-color-on-surface-variant);
}
.call-line__rec { grid-column: 4; display: inline-flex; justify-content: center; }
.call-line__rec .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.call-line__rec .material-symbols-rounded { font-size: 20px; }
.call-line__rec .icon-btn.is-failed { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }

/* it-580 (BPDGo#215): a call's AI notes in the dialer — under the call, in the AI accent: "Writing AI notes…" (the
   sparkle breathes), the brief clamped to two lines + the score (a button: opens the AI insights popup), or "No AI
   notes for this call". In a .call-line it spans the columns after the direction icon. */
.call-ai {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  color: var(--md-sys-color-on-surface-variant);
}
.call-ai .material-symbols-rounded { font-size: 1rem; color: var(--md-sys-color-primary); }
.call-ai__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.call-ai .ci-chip { flex: none; }
.call-ai--done { cursor: pointer; color: var(--md-sys-color-on-surface); border-radius: var(--r-sm, 6px); }
.call-ai--done:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.call-ai--none .material-symbols-rounded { color: var(--md-sys-color-on-surface-variant); }
.call-ai--pending .material-symbols-rounded { animation: call-ai-breathe 1.6s ease-in-out infinite; }
@keyframes call-ai-breathe { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .call-ai--pending .material-symbols-rounded { animation: none; } }
.call-line .call-ai { grid-column: 2 / -1; }
