/* Global live feed — "agent chat" shared by the home page and the dashboard */
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 0; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.agent-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.chat-h b { display: block; font-size: 15px; }
.chat-h small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: livepulse 1.8s infinite; flex: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chat-h .feed-count { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.chat-h .feed-count b { font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); scroll-behavior: smooth; min-height: 0; }
.chat-f { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-f .fake-input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--faint); display: flex; align-items: center; padding: 0 16px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg { display: flex; gap: 10px; align-items: flex-start; animation: msgin .45s ease both; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px); } }
.msg .agent-av { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; box-shadow: none; }
.msg-main { flex: 1; min-width: 0; }
.msg-meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.msg-meta b { color: var(--ink); font-weight: 700; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--c, var(--primary)); }
.pcard.mine { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); border-left-color: var(--success); }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; background: var(--c, var(--primary)); }
.pc-who { min-width: 0; flex: 1; }
.pc-who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-score { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 7px; color: var(--success); background: var(--success-soft); flex: none; }
.pc-score.mid { color: var(--warn); background: var(--warn-soft); }
.pc-text { margin: 10px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; word-break: break-word; max-height: 9.3em; overflow: hidden; }
.pc-text .bl { filter: blur(4.5px); user-select: none; color: var(--muted); }
.pc-text .lk { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 12px; filter: none; }
.pc-text .lk::before { content: 'Pro: '; font-weight: 600; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags .chip { height: 24px; font-size: 12px; }
.pc-tags .chip.cat { color: color-mix(in srgb, var(--c) 75%, var(--ink)); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: transparent; }
.chip.hot { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip.ok { color: var(--success); background: var(--success-soft); border-color: transparent; }
.pc-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.lockpill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.pc-lock .btn { margin-left: auto; }
.contact-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--success-soft); color: var(--success); cursor: pointer; border: 0; font-family: var(--font); }
.contact-pill.link { background: var(--primary-soft); color: var(--primary-text); text-decoration: none; }
.typing { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.typing .dots { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface); border: 1px solid var(--border); }
.typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .2s; }
.typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 10px; }

.cdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; font-style: normal; }
.pc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-acts .act { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font: 600 12px var(--font); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.pc-acts .act.primary { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.pc-acts .act.on { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pc-acts [data-report] { margin-left: auto; }
.pc-howto { margin-top: 10px; }
.pc-fake { margin: -2px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12.5px; font-weight: 700; }
.pc-warn { margin: -2px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.msg.is-fake .pc-text, .msg.is-fake .pc-top { opacity: .55; }
.fs-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font: 600 12.5px var(--font); cursor: pointer; flex-shrink: 0; }
.fs-btn:hover { background: var(--bg-soft); color: var(--ink); }
.chat.is-full { position: fixed; inset: 0; z-index: 900; border-radius: 0; border: 0; height: 100vh !important; }
.chat.is-full .chat-body { padding: 24px max(16px, calc((100vw - 1040px) / 2)); }
body.no-scroll { overflow: hidden; }
@media (max-width: 600px) { .fs-btn span { display: none; } .fs-btn { padding: 0 9px; } }
/* compact post cards */
.pcard { padding: 10px 12px; }
.pc-av { width: 32px; height: 32px; font-size: 12px; }
.pc-who b { font-size: 13.5px; }
.pc-who small { font-size: 11.5px; }
.pc-text { margin: 8px 0 4px; font-size: 13.5px; line-height: 1.5; max-height: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pc-text.open { display: block; -webkit-line-clamp: unset; }
.pc-more { border: 0; background: none; padding: 0; margin: 0 0 6px; color: var(--primary-text); font: 700 12px var(--font); cursor: pointer; }
.pc-more[hidden] { display: none; }
.pc-tags { margin-top: 4px; }
.pc-tags .chip { height: 24px; font-size: 11.5px; padding: 0 9px; }
.pc-lock { margin-top: 8px; padding-top: 8px; gap: 5px; }
.contact-pill { height: 26px; font-size: 11.5px; padding: 0 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-pill.find { background: transparent; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); }
.pc-acts { margin-top: 8px; }
.pc-acts .act { height: 28px; font-size: 11.5px; }
.msg-meta { font-size: 11.5px; }
.chat-body { gap: 10px; }
/* compact agent header */
.chat-h { padding: 8px 12px; gap: 10px; }
.chat-h > .agent-av { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; box-shadow: none; }
.chat-h b { font-size: 14px; line-height: 1.2; }
.chat-h small { font-size: 11.5px; }
.chat-h .feed-count { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; font-size: 11.5px; }
.chat-h .feed-count br { display: none; }
.chat-h .feed-count b { font-size: 15px; }
.fs-btn { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.fs-btn svg { width: 14px; height: 14px; }
.chat-h > div:nth-child(2) { min-width: 0; flex: 1; }
.chat-h small { white-space: nowrap; overflow: hidden; }
.chat-h small #feedSub { overflow: hidden; text-overflow: ellipsis; }

/* ---- v1.0: blurred global leads (Free), 6 PM release (Pro), Agent ---- */
.pcard.is-blurred{position:relative}
.pcard.is-blurred .pc-text,.pcard.is-blurred .pc-who{filter:blur(4px);user-select:none;pointer-events:none}
.pcard.is-blurred .pc-text .bl{filter:none}
.blur-cta{position:absolute;inset:auto 12px 50% 12px;transform:translateY(50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px;
  margin:0 auto;max-width:260px;padding:10px 14px;border-radius:12px;background:var(--surface,#fff);box-shadow:0 6px 24px rgba(0,0,0,.14);
  border:1px solid var(--border,#e5e5ea);text-decoration:none;color:inherit;text-align:center}
.blur-cta b{font-size:14px}.blur-cta span{font-size:12.5px;color:var(--primary-text,#714b67);font-weight:600}
.lockpill.time{background:var(--warn-soft);color:var(--warn);border-color:transparent}

.rel-note{font-size:12.5px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.rel-note::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--warn);display:inline-block}
.pc-acts .act.in-leads{cursor:default;color:var(--success);background:var(--success-soft);border-color:transparent}
