/* =============================================================================
   Agent Meeko Phone > Outbound calls > Chasers, and the built in Call task
   type (16 Nov 2026)

   The Chasers tab is drawn with the Phone page kit (meeko-phone-pages.css);
   this adds only what is its own: the numbered "how to give Meeko a task"
   steps and the read only list of upcoming chasers. Tokens only; everything
   wraps, so nothing is wider than the screen.
   ============================================================================= */

/* ---- how to give Meeko a task ---------------------------------------------- */

.mch-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.mch-step { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.mch-step__badge {
    flex: none; display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: var(--radius-chip); background: var(--am-blue-soft, var(--accent-tint)); color: var(--am-blue, var(--accent));
}
/* The list sits outside the kit's rows, so it inherits the page's larger
   default size unless it is set here to match the row text around it. */
.mch-step__text {
    flex: 1 1 auto; min-width: 0; padding-top: 5px; color: var(--text-primary);
    font-size: var(--font-size-base); line-height: 1.45; overflow-wrap: anywhere;
}
.mch-steps + .gs-hint { margin-top: 12px; }

/* A fixed rule shows its "Always on" tag beside the name. */
.mch-card .gs-event__head > .mpp-tag { margin-left: auto; }

.mch-escalate-picker:empty { display: none; }

/* ---- upcoming chasers -------------------------------------------------------- */

.mch-upcoming { list-style: none; margin: 10px 0 0; padding: 0; }
.mch-upcoming__item {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
    padding: 10px 0; border-top: 1px solid var(--border-subtle);
}
.mch-upcoming__item:first-child { border-top: 0; padding-top: 4px; }
.mch-upcoming__main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mch-upcoming__name { font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.mch-upcoming__who, .mch-upcoming__problem { margin: 0; overflow-wrap: anywhere; }
.mch-upcoming__side { flex: none; display: flex; align-items: center; gap: 8px; max-width: 100%; }
.mch-upcoming__when { font-size: var(--font-size-small); color: var(--text-secondary); white-space: nowrap; }
.mch-upcoming__when:empty { display: none; }

/* ---- the built in Call type on Tasks > Settings > Types ------------------------ */

.task-type-built-in {
    display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 5px;
    background: var(--status-neutral-tint); color: var(--status-neutral);
    font-size: var(--font-size-small); font-weight: 500; line-height: 1.5; vertical-align: middle;
}

@media (max-width: 560px) {
    .mch-upcoming__side { width: 100%; justify-content: space-between; }
}
