/* Phase 7: number insight card, intro clip control, sleeping lines, line lifecycle. Same tokens and conventions as
   the rest: hairlines, small radii, state never colour-only, no motion beyond the shared spinner. */

/* ---------- number insight (dialer) ---------- */
.ins-slot { width: 100%; min-width: 0; margin-top: 8px; }
.ins { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r); background: var(--sunken); font-size: var(--fs-sm); line-height: 1.45; text-align: left; color: var(--ink-2); max-height: 190px; overflow-y: auto; }
.ins[data-refused="1"] { border-left-color: var(--err); }
.ins-r { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; align-items: start; }
.ins-i { display: grid; place-items: center; height: 18px; color: var(--ink-3); }
.ins-t { min-width: 0; overflow-wrap: anywhere; }
.ins-t strong { color: var(--ink); font-weight: 600; }
.ins-r[data-k="refused"] .ins-i, .ins-r[data-k="refused"] strong { color: var(--err); }
.ins-r[data-k="hours"] .ins-i, .ins-r[data-k="spam"] .ins-i, .ins-r[data-k="today"] .ins-i, .ins-r[data-k="missed"] .ins-i { color: var(--ring); }
.ins-r[data-k="callback"] .ins-i { color: var(--info); }
.ins-note { white-space: pre-wrap; color: var(--ink); }
.ins-more { padding: 0; border: 0; background: none; color: var(--info); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; border-radius: 2px; }
.ins-more:hover { color: var(--ink); }
.ins-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.display-call .ins-slot { margin-top: 10px; }
@media (max-width: 640px) { .ins { max-height: 150px; } }

/* ---------- intro clip ---------- */
.intro-ctl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.intro-st { font-size: var(--fs-xs); color: var(--live); }
.intro-rec { font-size: var(--fs-xs); min-height: 24px; }
/* touch: both text buttons are full-size targets */
@media (pointer: coarse) { .ins-more, .intro-rec { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; } }

/* ---------- sleeping lines ---------- */
.pill[data-s="asleep"] { --s: var(--info); background: transparent; border-style: dashed; }
.pill[data-s="waking"] { --s: var(--info); border-style: dashed; }
.pill[data-s="waking"] .ic { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pill[data-s="waking"] .ic { animation: none; } }

/* ---------- line lifecycle (Line health) ---------- */
.lh-life { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.lh-lk { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.lh-lk > div { display: flex; flex-direction: column; min-width: 0; }
.lh-lk dt { font-size: var(--fs-xs); color: var(--ink-3); }
.lh-lk dd { margin: 0; }
.lh-lk dd.num { font-size: var(--fs-md); font-weight: 600; }
.lh-life p { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; overflow-wrap: anywhere; }
.lh-life p .ic { flex: none; align-self: center; }
.lh-ban { color: var(--err); font-size: var(--fs-sm); font-weight: 550; }
.lh-ban .muted { font-weight: 400; }
.lh-banned { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.lh-banned h2 { font-size: var(--fs-md); margin: 0 0 2px; }
.lh-banned header p { margin: 0; max-width: 70ch; }
