/* Outreach Call Center cabinet (cc-*). Tokens only. */
.cc-layout { align-items: start; }
.cc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cc-muted { color: var(--muted); font-weight: 500; }

.cc-tabs { margin-bottom: 14px; max-width: 100%; }
.cc-table { min-width: 680px; }
.cc-table th:nth-child(n+3):nth-child(-n+5) { white-space: normal; min-width: 72px; line-height: 1.3; }
.cc-table td { transition: background 0.4s ease; }
.cc-nowrap { white-space: nowrap; }
.cc-phone { color: var(--text-2); font-variant-numeric: tabular-nums; }
.cc-flag { font-size: 16px; }
.cc-call-btn { height: 32px; padding: 0 14px; font-size: 13px; }

.cc-person { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.cc-name { font-weight: 600; line-height: 1.25; white-space: nowrap; }
.cc-id { font-size: 12px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-table td, .cc-table th { padding-left: 8px; padding-right: 8px; }

.cc-ava {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cc-ava-sm { width: 28px; height: 28px; font-size: 11px; }
.cc-ava-lg { width: 72px; height: 72px; font-size: 24px; }
.cc-tone-0 { background: var(--accent-soft); color: var(--accent); }
.cc-tone-1 { background: color-mix(in srgb, var(--accent-2) 16%, var(--surface)); color: var(--accent-2); }
.cc-tone-2 { background: color-mix(in srgb, var(--accent-3) 16%, var(--surface)); color: var(--accent-3); }
.cc-tone-3 { background: var(--warning-soft); color: var(--warning-text); }
.cc-tone-me { background: var(--accent); color: var(--accent-ink); }

.dm-badge.cc-promised { background: color-mix(in srgb, var(--accent-3) 15%, var(--surface)); color: var(--accent-3); }

.cc-flash td { animation: cc-flash 1.6s ease; }
@keyframes cc-flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }

/* Recent calls */
.cc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cc-log-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cc-log-item:last-child { border-bottom: 0; }
.cc-log-item.cc-new { animation: dm-rise 0.35s ease; }
.cc-log-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
.cc-log-main { flex: 1; min-width: 0; }
.cc-log-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-log-meta { font-size: 12px; color: var(--muted); }

/* Leaderboard */
.cc-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-board-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.cc-board-row.cc-me { background: var(--accent-soft); }
.cc-rank { width: 16px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; flex: none; }
.cc-board-main { flex: 1; min-width: 0; }
.cc-board-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bar { height: 6px; border-radius: 999px; background: var(--surface-3); margin-top: 5px; overflow: hidden; }
.cc-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.6s ease; }
.cc-board-num { font: 650 18px/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }

/* Call modal */
.cc-call { position: relative; }
.cc-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cc-x:hover { background: var(--surface-2); color: var(--text); }
.cc-call-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.cc-ring { position: relative; border-radius: 50%; margin-bottom: 8px; }
.cc-ring::before,
.cc-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: cc-pulse 1.6s ease-out infinite;
}
.cc-ring::after { animation-delay: 0.8s; }
.cc-ring.is-live::before,
.cc-ring.is-live::after { border-color: var(--good); animation-duration: 2.4s; }
@keyframes cc-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }
.cc-call-name { font: 650 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.cc-call-phone { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-call-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.cc-call-state.is-live { background: var(--good-soft); color: var(--good-text); }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: cc-blink 1s ease-in-out infinite; }
.cc-call-state.is-live .cc-dot { animation: none; }
@keyframes cc-blink { 50% { opacity: 0.25; } }
.cc-timer { font-variant-numeric: tabular-nums; opacity: 0.85; }

.cc-script { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.cc-script-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.cc-script p { font-size: 14px; line-height: 1.55; color: var(--text-2); }

.cc-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cc-outcome {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cc-outcome:hover { border-color: var(--accent); }
.cc-outcome[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cc-out-lost[aria-pressed="true"] { border-color: var(--critical); background: var(--critical-soft); color: var(--critical-text); }
.cc-out-promised[aria-pressed="true"] { border-color: var(--good); background: var(--good-soft); color: var(--good-text); }

.cc-notes { min-height: 72px; font-family: var(--font); font-size: 14px; }
.cc-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Phones: drop secondary columns so the Call button stays on screen without sideways scrolling. */
@media (max-width: 600px) {
  .cc-table { min-width: 0; }
  .cc-table th:nth-child(2), .cc-table td:nth-child(2),
  .cc-table th:nth-child(4), .cc-table td:nth-child(4),
  .cc-table th:nth-child(5), .cc-table td:nth-child(5) { display: none; }
  .cc-person { min-width: 0; }
  .cc-name { white-space: normal; }
}
@media (max-width: 420px) {
  .cc-table th:nth-child(3), .cc-table td:nth-child(3) { display: none; }
  .cc-table td, .cc-table th { padding-left: 5px; padding-right: 5px; }
  .cc-table .cc-ava { display: none; }
  .cc-table .dm-badge { white-space: normal; }
  .cc-call-btn { padding: 0 10px; }
}
@media (max-width: 480px) {
  .cc-outcomes { grid-template-columns: 1fr; }
  .cc-tabs { display: flex; }
  .cc-tabs .dm-tab { flex: 1 1 auto; justify-content: center; }
}
