/* Calls (canvas 16A to 16C): the call list shared by the Conversations page and
   an agent's Conversations tab, and one call in the drawer. Prefix cl-.
   Builds on the conversations table (tab-conversations.css, cv-*) and the
   Agents list's parts (agents.css, ag-*). Only values from tokens.css. */

/* ---------- the list ---------- */
.cl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cl-search {
  flex: 0 1 300px;
}
.cl-count {
  margin-inline-start: 7px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}
.cl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cl-bar .cv-filter[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.cl-reset {
  height: 38px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cl-reset:hover {
  color: var(--ag-ink);
}
.cl-reset[hidden] {
  display: none;
}

/* arriving from an alert: which alert, with a way back to every call */
.cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--ag-btn-line);
  background: var(--ag-card);
  font-size: 13.5px;
  color: var(--ag-ink);
}
.cl-chip > svg {
  color: var(--ag-muted);
}
.cl-chip__label {
  color: var(--ag-muted);
}
.cl-chip__x {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ag-muted);
}
.cl-chip__x:hover {
  background: var(--ag-hover);
  color: var(--ag-ink);
}

/* the table sits in a white card on the page; inside an agent section it stays flat */
.cl-frame {
  overflow-x: auto;
  padding: 8px 12px 4px;
  border-radius: 18px;
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
}
.section .cl-frame {
  margin: 2px -12px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.cl-table th {
  padding-top: 12px;
}
.section .cl-table th {
  padding-top: 0;
}

/* two lines in one cell: the agent and its version, the channel and its direction */
.cl-two {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cl-two__main {
  font-weight: 500;
}
.cl-two__sub {
  font-size: 12.5px;
  color: var(--ag-muted);
}
.cv-channel .cl-two {
  line-height: 1.25;
}

/* outcome: a small dot carries the colour, the word stays ink */
.cl-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cl-outcome__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
}
.cl-outcome__dot--solved {
  background: var(--ag-live);
}
.cl-outcome__dot--person {
  background: var(--ag-i-blue);
}
.cl-outcome__dot--hungup {
  background: var(--ag-faint);
}
.cl-outcome__dot--failed {
  background: var(--ag-red);
}
.cl-muted {
  color: var(--ag-muted);
}

/* no match: what happened and the way out */
.cl-none__title {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ag-muted);
}
.ap-skin .cl-none__btn {
  height: 34px;
}
.cl-foot {
  margin-top: 0;
}
.cl-link {
  font-weight: 500;
  color: var(--ag-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
}
.cl-link:hover {
  text-decoration-thickness: 2px;
}

/* nothing yet */
.cl-empty {
  padding: 56px 24px;
}
.ag-page .cl-empty {
  border-radius: 18px;
  background: var(--ag-card);
  border-color: var(--ag-line);
}
.cl-empty__btn {
  margin-top: 10px;
}

/* the page head's Export */
.cl-export {
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14.5px;
}

/* ---------- one call (drawer) ---------- */
.cl-drawer {
  max-width: 600px;
}
.cl-drawer .drawer__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 22px 18px;
  padding-inline: 28px 24px;
  border-bottom: 0;
}
.cl-drawer__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.cl-drawer .drawer__title {
  padding-inline-end: 0;
  font-size: 20px;
  line-height: 1.3;
}
.cl-drawer__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ag-muted);
}
.cl-drawer__sub .cv-channel {
  color: var(--ag-ink);
  font-weight: 500;
}
.cl-drawer__dot {
  color: var(--ag-faint);
}
.cl-drawer__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cl-dl {
  gap: 6px;
  padding-block: 0;
  padding-inline: 12px 14px;
}
.ap-skin .cl-drawer .cl-drawer__close,
.cl-drawer .cl-drawer__close {
  position: static;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--ag-btn-line);
  background: var(--ag-card);
  color: var(--ag-ink);
  opacity: 1;
}
.cl-drawer .cl-drawer__close:hover {
  background: var(--ag-hover);
}
.cl-drawer__tabs {
  flex: none;
  padding: 0 28px 14px;
  border-bottom: 1px solid var(--ag-line);
}
.cl-drawer__tabs .ag-tab {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
}
.cl-drawer__body {
  padding: 22px 28px 28px;
}
.cl-panel {
  display: flex;
  flex-direction: column;
}
.cl-outcome-row {
  font-size: 15px;
  font-weight: 600;
}
.cl-meta {
  margin-top: 10px;
}
.cl-meta .cl-link {
  font-weight: 500;
}
.cl-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ag-line);
}
.cl-sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ag-ink-2);
}

/* the player: play, where we are, the bar, the speed */
.cl-player {
  position: sticky;
  top: -22px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ag-well);
  border: 1px solid var(--ag-well-line);
  backdrop-filter: blur(6px);
}
.cl-play {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ag-dark);
  color: var(--ag-dark-ink);
  transition: opacity 0.15s ease;
}
.cl-play:hover {
  opacity: 0.88;
}
.cl-time {
  flex: none;
  min-width: 92px;
  font-size: 13px;
  color: var(--ag-ink-2);
}
.cl-seek {
  --p: 0%;
  flex: 1;
  min-width: 0;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--ag-dark) var(--p), var(--ag-track) var(--p));
  cursor: pointer;
}
[dir="rtl"] .cl-seek {
  background: linear-gradient(to left, var(--ag-dark) var(--p), var(--ag-track) var(--p));
}
.cl-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ag-card);
  border: 2px solid var(--ag-dark);
}
.cl-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ag-card);
  border: 2px solid var(--ag-dark);
}
.cl-speed {
  flex: none;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ag-btn-line);
  background: var(--ag-card);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cl-speed:hover {
  background: var(--ag-hover);
}

/* the lines, each with its time on the start side; the one being spoken lights up */
.cl-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.cl-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 4px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.cl-line.is-now {
  background: var(--ag-hover);
}
.cl-at {
  margin-top: 22px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ag-muted);
  text-align: start;
}
.cl-line--event .cl-at {
  margin-top: 9px;
}
.cl-at:hover {
  color: var(--ag-ink);
  background: var(--ag-hover);
}
.cl-line .cv-msg {
  max-width: 92%;
}
.cl-line--caller .cv-msg {
  margin-inline-start: auto;
}
.cl-line.is-now .cv-msg--agent .cv-msg__bubble {
  border-color: var(--ag-btn-line);
}

@media (max-width: 767px) {
  .cl-search {
    flex-basis: 100%;
  }
  .cl-drawer .drawer__head,
  .cl-drawer__body,
  .cl-drawer__tabs {
    padding-inline: 18px;
  }
  .cl-drawer .drawer__head {
    flex-wrap: wrap;
  }
  .cl-time {
    min-width: 0;
  }
}

/* ---------- alerts on the calls they affect (board 18F, 18G) ---------- */
/* the red mark is the bell and the edge; the words stay in ink */
/*
 * The problem tag on a call (3 Oct 2026, Ameer: the red outlined pill "doesn't look nice"):
 * the setup chips' quiet look (soft grey, 6px corners, ink words) with the colour on a
 * small red mark before the words only. Every page draws it with this one class.
 */
.cl-alert-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  height: 22px;
  margin-top: 4px;
  padding-block: 0;
  padding-inline: 7px 8px;
  border-radius: 6px;
  border: 1px solid var(--ag-set-line);
  background: var(--ag-set);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--ag-ink-2);
  white-space: nowrap;
}
.cl-alert-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ag-red);
}
/* a tag that carries its own icon (Customer 360's "Alert"): the icon is the mark */
.cl-alert-tag:has(svg)::before {
  display: none;
}
.cl-alert-tag svg {
  flex: none;
  color: var(--ag-red);
}
.cl-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ag-card);
  border: 1px solid color-mix(in srgb, var(--ag-red) 40%, var(--ag-line));
}
.cl-alert-banner__icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ag-red);
  background: color-mix(in srgb, var(--ag-red) 9%, var(--ag-card));
}
.cl-alert-banner__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ag-ink);
}
.cl-alert-banner .cl-link {
  flex: none;
  font-size: 13.5px;
  font-weight: 500;
}
.cl-alert-banner--drawer {
  margin: 0 28px 12px;
}


/* ---------- Conversations list (2 Oct 2026): the ID and date lead; channel as its icon ---------- */
.cl-idcell .cl-id {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cl-when {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}
.cl-chan {
  gap: 10px;
}
.cl-chan__disc {
  position: relative;
  display: inline-flex;
}
.cl-drawer__id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ag-ink-2);
}

/* ======================================================================
   One call, redesigned (3 Oct 2026): .cd on the call drawer only (the Live
   calls Watch drawer keeps the cl-drawer look). Prefix cd-.
   ====================================================================== */

/* ---------- head: disc, the caller, one quiet line; icon actions on the end ---------- */
.cd .drawer__head {
  align-items: flex-start;
  gap: 14px;
  padding-block: 22px 14px;
  padding-inline: 28px 24px;
  border-bottom: 0;
}
.cd-head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cd-disc {
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.cd-disc .cv-dot {
  width: 40px;
  height: 40px;
}
.cd-disc .cv-dot svg {
  width: 17px;
  height: 17px;
}
.cd-head__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd .cd-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.cd-caller {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ag-ink);
  direction: ltr;
  unicode-bidi: isolate;
  border-radius: 4px;
  text-decoration: none;
}
a.cd-caller:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cd-count {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ag-well);
  border: 1px solid var(--ag-well-line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ag-ink-2);
}
.cd-repeat {
  font-size: 12px;
  letter-spacing: 0;
}
.cd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0;
  font-size: 13px;
  color: var(--ag-muted);
}
.cd-meta [translate="no"] {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.cd-sep {
  color: var(--ag-dot);
}
.cd-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-skin .cd .cd-actions .ag-icon-btn,
.cd .cd-actions .ag-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.cd .cl-alert-banner--drawer {
  margin-block: 0 10px;
  margin-inline: 28px 24px;
}
.cd-tabs {
  padding-inline: 28px 24px;
}

/* ---------- body ---------- */
.cd .cd-body {
  padding: 20px 28px 32px;
}
.cd-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* the outcome and four facts, in one soft card */
.cd-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ag-well);
  border: 1px solid var(--ag-well-line);
}
.cd-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ag-ink);
}
.cd-outcome .cl-outcome__dot {
  width: 8px;
  height: 8px;
}
.cd-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.cd-stat {
  min-width: 0;
}
.cd-stat dt {
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--ag-muted);
}
.cd-stat dd {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-ink);
}
.cd-stat__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ag-muted);
}
.cd-stat__link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ag-ink);
  border-radius: 4px;
  text-underline-offset: 3px;
}
.cd-stat__link:hover {
  text-decoration: underline;
}

/* sections: a title, then the content; no boxes inside boxes */
.cd-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cd-h {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ag-ink);
}
.cd-sec__link {
  font-size: 13px;
  font-weight: 500;
}
.cd-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ag-ink-2);
}
.cd-muted {
  margin: 0;
  font-size: 13px;
  color: var(--ag-muted);
}
.cd-ins {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.cd-ins__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ag-line);
}
.cd-ins__row:last-child {
  border-bottom: 0;
}
.cd-ins dt {
  font-size: 13.5px;
  color: var(--ag-muted);
}
.cd-ins dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-ink);
  text-align: end;
}
.cd-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ag-live) 10%, var(--ag-card));
  font-size: 12px;
  font-weight: 500;
  color: color-mix(in srgb, var(--ag-live) 70%, var(--ag-ink));
}
.cd-pill--bad {
  background: color-mix(in srgb, var(--ag-red) 9%, var(--ag-card));
  color: var(--ag-red);
}
.cd-rules {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cd-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.cd-rule__mark {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--ag-live);
  background: color-mix(in srgb, var(--ag-live) 12%, var(--ag-card));
}
.cd-rule--fail .cd-rule__mark {
  color: var(--ag-red);
  background: color-mix(in srgb, var(--ag-red) 10%, var(--ag-card));
}
.cd-rule__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cd-rule__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-ink);
}
.cd-rule__note {
  font-size: 12.5px;
  color: var(--ag-muted);
}
.cd-others {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--ag-line);
  overflow: hidden;
}
.cd-others li + li {
  border-top: 1px solid var(--ag-line);
}
.cd-other {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: start;
  font-size: 13px;
  color: var(--ag-ink);
}
.cd-other:hover {
  background: var(--ag-hover);
}
.cd-other__when {
  font-variant-numeric: tabular-nums;
  color: var(--ag-muted);
  white-space: nowrap;
}
.cd-other__agent {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-other__go {
  color: var(--ag-faint);
}

/* ---------- Transcript ---------- */
.cd-panel--tr {
  gap: 18px;
}
/* the player stays on top while the lines scroll under it */
.cd .cd-player {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -20px -28px 0;
  padding: 12px 28px;
  background: color-mix(in srgb, var(--ag-card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ag-line);
  border-radius: 0;
}
.cd .cd-play {
  width: 36px;
  height: 36px;
  flex: none;
}
.cd .cd-seek {
  flex: 1;
}
.cd-time {
  flex: none;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.cd-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cd .cd-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.cd .cd-line--caller {
  justify-content: flex-end;
}
.cd-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ag-well);
  border: 1px solid var(--ag-well-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ag-ink-2);
}
.cd-msg {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-line--caller .cd-msg {
  align-items: flex-end;
}
.cd-who {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ag-muted);
}
.cd-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  border-end-start-radius: 6px;
  background: var(--ag-well);
  border: 1px solid var(--ag-well-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ag-ink);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.cd-line--caller .cd-bubble {
  border-radius: 16px;
  border-end-end-radius: 6px;
  background: var(--ag-dark);
  border-color: var(--ag-dark);
  color: var(--ag-dark-ink);
}
/* the line being spoken */
.cd .cd-line.is-now .cd-bubble {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-ink) 14%, transparent);
}
.cd-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11.5px;
  color: var(--ag-faint);
}
.cd .cd-at {
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ag-faint);
  border-radius: 4px;
}
.cd .cd-at:hover {
  color: var(--ag-ink);
  text-decoration: underline;
}
.cd-replied {
  border-radius: 4px;
  cursor: default;
}
/* an action the agent took: one quiet line in the middle */
.cd .cd-line--event {
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.cd-event {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ag-card);
  border: 1px dashed var(--ag-btn-line);
  font-size: 12.5px;
  color: var(--ag-ink-2);
}
.cd-event__icon {
  flex: none;
  color: var(--ag-live);
}
.cd-event--fail .cd-event__icon {
  color: var(--ag-red);
}
.cd-event__name {
  font-weight: 500;
  color: var(--ag-ink);
}
.cd-event__detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ag-muted);
}
.cd .cd-line--event.is-now .cd-event {
  border-style: solid;
  border-color: var(--ag-ink-2);
}

@media (max-width: 639px) {
  .cd .drawer__head {
    padding-inline: 18px;
  }
  .cd .cd-body {
    padding-inline: 18px;
  }
  .cd .cd-player {
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .cd-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cd-disc {
    display: none;
  }
}

/* fixes: Close sits in the row (not on top of ⋮); a line's time stays under its bubble */
.cd .drawer__close {
  position: static;
  opacity: 1;
}
.cd .cd-at {
  margin: 0;
  background: none;
}
.cd .cd-meta .cv-channel {
  gap: 6px;
  font-size: 13px;
  color: var(--ag-muted);
}
.cd .cd-meta .cv-dot {
  width: 18px;
  height: 18px;
}
.cd .cd-meta .cv-dot svg {
  width: 9px;
  height: 9px;
}

/* a call in a list: the channel disc and a direction arrow (Calls.callMark) */
.cl-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cl-call__dir {
  display: grid;
  place-items: center;
}
.cl-call__dir svg {
  width: 16px;
  height: 16px;
}
.cl-call__dir--in {
  color: var(--ag-live);
}
.cl-call__dir--out {
  color: var(--ag-i-blue);
}
/* in Calls.channelMark the arrow sits between the disc and the word */
.cl-chan .cl-call__dir {
  margin-inline: -4px -2px;
}

/* ---------- the list in one card (3 Oct 2026, Ameer's Conversations reference) ----------
   tabs (underlined, a count chip) · search and filters · the table grouped by day · the foot */
.cl-card {
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  overflow: hidden;
}
.cl-card .cl-tabs {
  padding-inline: 16px;
  border-bottom: 1px solid var(--ag-line);
}
.cl-card .ag-tabs {
  gap: 4px;
}
.cl-card .ag-tab,
.ap .cl-card .ag-tab {
  height: auto;
  padding: 14px 8px 12px;
  margin-bottom: -1px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 13.5px;
  color: var(--ag-muted);
  background: none;
}
.cl-card .ag-tab {
  white-space: nowrap;
  flex: none;
}
.cl-card .ag-tab:hover {
  background: none;
  color: var(--ag-ink);
}
.cl-card .ag-tab[aria-selected="true"] {
  background: none;
  color: var(--ag-ink);
  font-weight: 600;
  border-bottom-color: var(--ag-ink);
}
.cl-card .cl-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-inline-start: 7px;
  border-radius: 6px;
  background: var(--ag-track);
  color: var(--ag-ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  opacity: 1;
}
.cl-card .ag-tab[aria-selected="true"] .cl-count {
  background: var(--ag-dark);
  color: var(--ag-dark-ink);
}
.cl-card .cl-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ag-line);
}
.cl-card .cl-search {
  flex: 0 1 280px;
}
.cl-card .cl-frame {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.cl-card .cv-table th {
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.cl-card .cv-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  color: var(--ag-ink-2);
  border-bottom-color: var(--ag-rule);
}
.cl-card th.cl-c-call,
.cl-card td.cl-c-call {
  width: 72px;
}
.cl-card td.cl-c-reason {
  width: 30%;
  color: var(--ag-ink);
  white-space: normal;
}
.cl-card th.cl-c-len,
.cl-card td.cl-c-len {
  text-align: end;
}
.cl-card td.cl-c-len .cv-mono,
.cl-card td.cl-c-rules .cv-mono {
  color: var(--ag-ink-2);
  font-variant-numeric: tabular-nums;
}
.cl-card td.cl-c-rules .cl-rules--bad {
  color: var(--ag-red);
  font-weight: 600;
}
.cl-faint {
  color: var(--ag-faint);
}
.cl-time,
.ap-skin .cl-time {
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  text-align: start;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ag-ink);
  border-radius: 4px;
}
.cl-agent {
  color: var(--ag-ink);
  font-weight: 500;
}
.cl-v {
  margin-inline-start: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ag-faint);
}
.cl-callerlink {
  color: var(--ag-ink-2);
  border-radius: 4px;
}
.cv-row:hover .cl-callerlink,
.cl-callerlink:focus-visible {
  color: var(--ag-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* a call in an open alert: a red bar on the start edge */
.cl-row--alert td:first-child {
  box-shadow: inset 2px 0 0 var(--ag-red);
}
[dir="rtl"] .cl-row--alert td:first-child {
  box-shadow: inset -2px 0 0 var(--ag-red);
}
.cl-dayrow th {
  padding: 16px 14px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ag-muted);
  text-align: start;
  background: var(--ag-card);
  border-bottom: 1px solid var(--ag-line);
}
.cl-card .cv-row:last-child td {
  border-bottom-color: transparent;
}
.cl-cardfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 8px;
  padding-inline: 16px 12px;
  border-top: 1px solid var(--ag-line);
  font-size: 13px;
  color: var(--ag-muted);
}
.cl-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cl-pager[hidden] {
  display: none;
}
.cl-pager [data-page] {
  margin-inline-end: 6px;
}
.ap-skin .cl-pager__btn,
.cl-pager__btn {
  width: 32px;
  height: 32px;
}
.cl-pager__btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
/* the open alert, one quiet line above the card */
.cl-alertline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ag-ink-2);
}
.cl-alertline:empty {
  display: none;
}
.cl-alertline__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ag-red);
}
.cl-alertline .cl-link {
  margin-inline-start: 4px;
  font-size: 13.5px;
}
/* inside an agent's tab the list sits in a section card already */
.section .cl-card {
  margin-inline: -12px;
}
@media (max-width: 639px) {
  .cl-card .cl-tabs {
    padding-inline: 8px;
    overflow-x: auto;
  }
  .cl-card .ag-tabs {
    flex-wrap: nowrap;
  }
  .cl-card .cl-search {
    flex-basis: 100%;
  }
}

/* ---------- a call's problem tag inside a sentence or a cell (3 Oct 2026, actionable alerts) ---------- */
/* the same red tag as .cl-alert-tag, sitting in the line instead of under it */
.cl-alert-tag--inline {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
  white-space: nowrap;
}
/* Missed: nobody answered (a problem, so red like Call failed) */
.cl-outcome__dot--missed {
  background: var(--ag-red);
}
/* the table's screen-reader words (position: absolute) stay inside its scrolling frame,
   or the page scrolls sideways on phones */
.cl-card .cl-frame {
  position: relative;
}

/* ---------- alerts around the agent (3 Oct 2026): the agent page's bars, a call's Issue,
   Live calls' What's happening, the test result line, a done call's grey tag ---------- */
/* a call whose issue is marked as done: the same words, grey */
.cl-alert-tag--done {
  color: var(--ag-muted);
}
.cl-alert-tag--done::before {
  background: var(--ag-dot);
}

/* the agent page: one bar per open alert, under the header (every tab) */
.al-abars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.al-abars[hidden] {
  display: none;
}
.al-abar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  transition: box-shadow 0.3s;
}
.al-abar--red {
  border-color: color-mix(in srgb, var(--ag-red) 38%, var(--ag-line));
}
.al-abar--amber {
  border-color: color-mix(in srgb, var(--ag-test) 55%, var(--ag-line));
}
.al-abar.is-lit {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag-red) 18%, transparent);
}
.al-abar .al-ico {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.al-abar .al-ico--red {
  color: var(--ag-red);
  background: color-mix(in srgb, var(--ag-red) 9%, var(--ag-card));
}
.al-abar .al-ico--amber {
  color: color-mix(in srgb, var(--ag-test) 78%, var(--ag-ink));
  background: color-mix(in srgb, var(--ag-test) 11%, var(--ag-card));
}
.al-abar__text {
  flex: 1;
  min-width: 0;
}
.al-abar__what {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ag-ink);
}
.al-abar__how {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ag-ink-2);
}
.al-abar__acts,
.al-issue__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
/* no button the person can use (a Viewer): no empty row, no gap */
.al-abar__acts:empty,
.al-issue__acts:empty {
  display: none;
}
.ap-skin .al-abar__acts .ag-btn,
.ap-skin .al-issue__acts .ag-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
}

/* the result of Test <action>, under the buttons */
.al-testres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ag-ink-2);
}
.al-testres[hidden] {
  display: none;
}
.al-testres--bad svg {
  color: var(--ag-red);
}
.al-testres--ok svg {
  color: var(--ag-live);
}
.al-spin {
  animation: al-spin 0.9s linear infinite;
}
@keyframes al-spin {
  to {
    transform: rotate(360deg);
  }
}
.ap-skin .al-testres__done {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

/* a call's Issue (the call pop-up) and Live calls' What's happening */
.al-issue {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ag-card);
  border: 1px solid color-mix(in srgb, var(--ag-red) 35%, var(--ag-line));
}
.al-issue__h {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ag-ink);
}
.al-issue__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.al-issue__row dt {
  font-size: 12.5px;
  color: var(--ag-muted);
}
.al-issue__row dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ag-ink);
}
/* done: one quiet line with Undo */
.al-issue--done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-color: var(--ag-line);
}
.al-issue__doneline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ag-ink-2);
}
.al-issue__doneline svg {
  color: var(--ag-live);
  flex: none;
}
.al-issue--done .cl-link {
  font-size: 13.5px;
  font-weight: 500;
}
/* the call pop-up: the Issue sits inside the side pane, above its tabs, with the pane's spacing */
.vw-pane--side > .al-issue {
  margin: 16px 22px 2px;
}

/* the keep time under the list (Security & data, P0 Part 4) */
.cl-keep {
  margin: 0;
  font-size: 12.5px;
  color: var(--ag-muted);
}
.cl-keep .cl-link {
  font-size: inherit;
}
/* the agent's picture in place of its initial (5 Oct 2026, Shell.agentThumb) */
.cd-avatar--pic {
  padding: 0;
  border: 0;
  object-fit: cover;
  background: none;
}

/* ---------- the call table fits its card, no sideways scroll (10 Oct 2026, Ameer) ----------
   Inside the card the table is not pulled past its edges (the agent page's section rule), long agent
   names wrap, and the red problem tag under the time wraps onto a second line instead of widening Time. */
.section .cl-card .cl-frame {
  margin: 0;
}
.cl-card .cl-agent {
  white-space: normal;
}
.cl-card td.cl-c-time .cl-alert-tag {
  height: auto;
  min-height: 22px;
  max-width: 220px;
  padding-block: 4px;
  line-height: 1.3;
  white-space: normal;
}
/* wrapped onto two lines, its red mark stays on the first */
.cl-card td.cl-c-time .cl-alert-tag {
  align-items: flex-start;
}
.cl-card td.cl-c-time .cl-alert-tag::before {
  flex: none;
  margin-top: 0.38em;
}
/* narrower screens: tighter cells, the outcome may wrap, Reason takes what is left */
@media (max-width: 1279px) {
  .cl-card .cv-table th,
  .cl-card .cv-table td {
    padding-inline: 8px;
  }
  .cl-card .cv-table th:first-child,
  .cl-card .cv-table td:first-child {
    padding-inline-start: 16px;
  }
  .cl-card .cv-table th:last-child,
  .cl-card .cv-table td:last-child {
    padding-inline-end: 16px;
  }
  .cl-card th.cl-c-call,
  .cl-card td.cl-c-call {
    width: 56px;
  }
  .cl-card td.cl-c-reason {
    width: auto;
  }
  .cl-card .cl-outcome {
    white-space: normal;
    align-items: flex-start;
  }
  .cl-card .cl-outcome__dot {
    flex: none;
    margin-top: 0.45em;
  }
  /* a missed call's "Waited 47 s" may take two lines */
  .cl-card td.cl-c-len {
    white-space: normal;
  }
}
