/* Lyra lifecycle.css v3: compact owner receipts and the live agent-side bubble. */

/* Owner receipts: Sending…, one check (server), two checks (agent read), plus quiet actions. */
.receipt { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .15rem .5rem;
  margin-top: .3rem; font-size: .74rem; color: var(--muted, #5f6368); }
.rc-status { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.rc-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-checks { flex: none; }
.receipt.tone-ok .rc-checks { color: var(--accent, #1a73e8); }
.receipt.tone-warn { color: var(--warn, #a35a00); font-weight: 600; }
.receipt.tone-bad { color: var(--bad, #c5221f); font-weight: 600; }
.rc-spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent;
  animation: lyra-spin .8s linear infinite; }
@keyframes lyra-spin { to { transform: rotate(360deg); } }
.rc-btn { font: inherit; font-size: .74rem; font-weight: 600; color: var(--accent, #1a73e8); background: transparent;
  border: 0; border-radius: 6px; padding: .1rem .35rem; min-height: 26px; cursor: pointer; }
.rc-btn:hover { background: var(--hover, rgba(0, 0, 0, .06)); }
.rc-quiet { color: var(--muted, #5f6368); font-weight: 500; }
.rc-btn:focus-visible { outline: 2px solid var(--focus, #1a73e8); outline-offset: 1px; }
@media (pointer: coarse), (max-width: 959px) { .rc-btn { min-height: 44px; padding: 0 .6rem; } }

/* Live agent-side bubble content. */
.live-status { display: grid; gap: .45rem; font-size: .86rem; }
.live-head { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.live-label { flex: 1; min-width: 0; color: var(--text, #1f2328); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-timer { flex: none; font-variant-numeric: tabular-nums; font-size: .74rem; color: var(--muted, #5f6368);
  padding: 0 .4rem; border-radius: 999px; background: var(--code, #f1f3f4); }
.live-status.is-input_required .live-label { color: var(--accent, #1a73e8); font-weight: 600; }
.live-status.is-stale .live-label { color: var(--warn, #a35a00); font-weight: 600; }
.live-status.is-stalled .live-label { color: var(--bad, #c5221f); }

.thinking-dots { display: inline-flex; gap: 3px; flex: none; }
.thinking-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #1a73e8);
  animation: lyra-think 1.2s ease-in-out infinite; }
.thinking-dots span:nth-child(2) { animation-delay: .15s; }
.thinking-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes lyra-think { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .thinking-dots span, .rc-spinner { animation: lyra-think-fade 1.6s ease-in-out infinite; }
  @keyframes lyra-think-fade { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
}

.work-card { border: 1px solid var(--line, #e3e5e8); border-radius: 8px; padding: .45rem .6rem;
  background: var(--card, #fff); color: var(--text, #1f2328); font-size: .8rem; }
.work-bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.work-bullet { display: flex; gap: .45rem; align-items: baseline; }
.work-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px);
  border: 1.5px solid var(--muted, #80868b); box-sizing: border-box; }
.work-bullet.is-done .work-mark { background: var(--ok, #188038); border-color: var(--ok, #188038); }
.work-bullet.is-done .work-text { color: var(--muted, #5f6368); }
.work-bullet.is-active .work-mark { border-color: var(--accent, #1a73e8); background: var(--accent, #1a73e8); }
.work-bullet.is-active .work-text { font-weight: 600; }
.work-more { font-size: .72rem; color: var(--muted, #5f6368); margin: .1rem 0; }

.lc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
