/* Vellionix · AI agents demo (agents.js): mission control for a team of AI agents, and the services-list card preview (.ag-pv). */
.ag, .ag-pv {
  --bg: #0b0c0f; --panel: #121318; --line: rgba(255, 255, 255, 0.08); --tx: #f1efea; --tx2: #a9a69f; --tx3: #6f6d68; --bub: #1b1c22; --e: cubic-bezier(0.16, 1, 0.3, 1);
  font: 400 13.5px/1.45 "Instrument Sans", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; color: var(--tx); text-align: left;
}
.ag *, .ag-pv * { box-sizing: border-box; }
.ag svg, .ag-pv svg { display: block; flex: 0 0 auto; }
.ag button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.ag button:focus-visible { outline: 2px solid #8b6cff; outline-offset: 2px; }
:where(.ag) :where(p, ul, blockquote) { margin: 0; padding: 0; list-style: none; }

.ag { position: absolute; inset: 0; display: grid; grid-template-columns: clamp(220px, 21cqw, 290px) minmax(0, 1fr) clamp(240px, 23cqw, 320px); gap: 10px; padding: 10px; font-size: clamp(13.5px, 1.08cqw, 15.5px); overflow: hidden; container-type: inline-size;
  background: radial-gradient(60% 70% at 0% 0%, rgba(139, 108, 255, 0.22), transparent 60%), radial-gradient(50% 60% at 100% 100%, rgba(31, 179, 127, 0.18), transparent 60%), var(--bg); }
.ag-side, .ag-main, .ag-in { min-height: 0; border-radius: 18px; background: rgba(18, 19, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }

/* avatars: a lit orb in the agent's colour, a small spark for the AI agents */
.ag-av { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 62%, color-mix(in srgb, var(--c) 70%, #000)); color: #0e0f11; }
.ag-av b { font: 800 15px/1 "Archivo", "Helvetica Neue", Arial, sans-serif; }
.ag-ai { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #0e0f11; color: var(--c); }
.ag-ai svg { width: 9px; height: 9px; }
.ag-av.ag-sm { width: 24px; height: 24px; margin-left: -7px; box-shadow: 0 0 0 2px var(--panel); }
.ag-av.ag-sm b { font-size: 10.5px; }
.ag-av.ag-sm .ag-ai { display: none; }
.ag-av.is-cust { background: #1d1e23; }
.ag-ch { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ag-ch svg { width: 13px; height: 13px; }
.ag-ch.is-wa { background: #25d366; }
.ag-ch.is-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.ag-av.is-cust .ag-ch { width: 38px; height: 38px; }
.ag-av.is-cust .ag-ch svg { width: 19px; height: 19px; }
.ag-lbl { display: flex; justify-content: space-between; padding: 0 6px; font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx3); }
.ag-lbl span { color: var(--tx2); }

/* left: the team */
.ag-side { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; }
.ag-ws { display: flex; align-items: center; gap: 11px; padding: 2px 6px 12px; border-bottom: 1px solid var(--line); }
.ag-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #f0a32a, #e2572b); color: #1a0d05; font: 800 18px/1 "Archivo", sans-serif; }
.ag-ws > span:nth-child(2) { display: grid; min-width: 0; }
.ag-ws b { font: 700 1.12em/1.2 "Archivo", sans-serif; letter-spacing: -0.01em; }
.ag-ws small { font-size: 0.82em; color: var(--tx2); }
.ag-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(31, 179, 127, 0.14); color: #4be0a6; font: 500 10px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; }
.ag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ag-blink 1.6s infinite; }
.ag-team { display: grid; gap: 4px; }
.ag-mem { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 14px; transition: background 0.5s, box-shadow 0.5s; }
.ag-mem .ag-av { --c: inherit; }
.ag-mt { display: grid; min-width: 0; flex: 1; }
.ag-mt b { display: flex; align-items: baseline; gap: 7px; font-weight: 600; font-size: 1em; white-space: nowrap; }
.ag-mt em { font-style: normal; font-weight: 400; font-size: 0.8em; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; }
.ag-mt small { font-size: 0.84em; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.ag-eq { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 2.5px; height: 16px; opacity: 0; transition: opacity 0.4s; }
.ag-eq i { width: 3px; height: 100%; border-radius: 3px; background: var(--c); transform-origin: 50% 100%; transform: scaleY(0.25); }
.ag-mem.is-on { background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent); }
.ag-mem.is-on .ag-mt small { color: var(--c); }
.ag-mem.is-on .ag-eq { opacity: 1; }
.ag-mem.is-on .ag-eq i { animation: ag-eq 0.9s ease-in-out infinite; }
.ag-mem.is-on .ag-eq i:nth-child(2) { animation-delay: -0.3s; } .ag-mem.is-on .ag-eq i:nth-child(3) { animation-delay: -0.6s; } .ag-mem.is-on .ag-eq i:nth-child(4) { animation-delay: -0.15s; }
.ag-mem.is-on .ag-av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--c); animation: ag-ring 1.5s var(--e) infinite; }
.ag-rule { margin-top: auto; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.86em; color: var(--tx2); }
.ag-rule b { display: block; margin-bottom: 3px; color: var(--tx); font-weight: 600; }

/* centre: the handoff line and the conversation */
.ag-main { display: flex; flex-direction: column; }
.ag-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 13px 18px 0; }
.ag-ht { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ag-ht b { display: inline-flex; align-items: center; gap: 5px; font: 700 1.2em/1 "Archivo", sans-serif; letter-spacing: -0.015em; }
.ag-ht svg { width: 16px; height: 16px; opacity: 0.55; }
.ag-ht small { font-size: 0.84em; color: var(--tx3); white-space: nowrap; }
.ag-faces { margin-left: auto; display: flex; padding-left: 7px; }
.ag-flow { position: relative; flex: 0 0 auto; display: flex; justify-content: space-between; margin: 12px 18px 0; padding: 12px 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.ag-flow::before { content: ""; position: absolute; left: 34px; right: 34px; top: 27px; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 5px, transparent 5px 10px); }
.ag-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; width: 54px; font-size: 0.74em; color: var(--tx3); transition: color 0.4s; }
.ag-node > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1c1d23; box-shadow: 0 0 0 4px #14151a, inset 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); font: 800 12px/1 "Archivo", sans-serif; font-style: normal; transition: background 0.4s, color 0.4s, transform 0.6s var(--e), box-shadow 0.4s; }
.ag-node > i svg { width: 14px; height: 14px; }
.ag-node.on { color: var(--tx); }
.ag-node.on > i { background: var(--c); color: #0e0f11; transform: scale(1.18); box-shadow: 0 0 0 4px #14151a, 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); }
.ag-node.was > i { background: color-mix(in srgb, var(--c) 26%, #1c1d23); }
.ag-pulse { position: absolute; z-index: 2; left: 0; top: 21px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 18px #fff; opacity: 0; pointer-events: none; }
.ag-feed { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 8px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 26px); -webkit-mask-image: linear-gradient(transparent, #000 26px); }
.ag-feed::-webkit-scrollbar { display: none; }
.ag-list { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: 100%; }
.ag-day { align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx2); }
.ag-msg { display: flex; gap: 12px; align-items: flex-start; max-width: min(100%, 760px); }
.ag-body { min-width: 0; display: grid; justify-items: start; gap: 6px; }
.ag-who { display: flex; align-items: baseline; gap: 8px; }
.ag-who b { font-weight: 700; font-size: 0.98em; }
.ag-who span { font-size: 0.8em; color: var(--tx3); }
.ag-bub { padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--bub); font-size: 1.04em; line-height: 1.5; }
.ag-cust .ag-bub { background: #12261b; box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.28); }
.ag-you { align-self: flex-end; flex-direction: row-reverse; }
.ag-you .ag-body { justify-items: end; }
.ag-you .ag-bub { border-radius: 16px 4px 16px 16px; background: #ecebe7; color: #111; font-weight: 500; }
.ag-att { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); font: 400 0.8em/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--tx2); }
.ag-att svg { width: 14px; height: 14px; }
.ag-at { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); font-weight: 600; }
.ag-dots { display: flex; gap: 5px; padding: 13px 15px; border-radius: 4px 16px 16px 16px; background: var(--bub); }
.ag-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx2); animation: ag-dot 1s ease-in-out infinite; }
.ag-dots i:nth-child(2) { animation-delay: 0.15s; } .ag-dots i:nth-child(3) { animation-delay: 0.3s; }
.ag-card { min-width: min(100%, 330px); padding: 12px 14px; border-radius: 14px; background: linear-gradient(160deg, #1e2027, #16171c); box-shadow: inset 0 0 0 1px var(--line); }
.ag-ct { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ag-ct svg { width: 17px; height: 17px; color: var(--tx2); }
.ag-ct b { font-weight: 600; }
.ag-ct i { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1fb37f; color: #06140e; }
.ag-ct i svg { width: 13px; height: 13px; color: inherit; }
.ag-card.is-ok { box-shadow: inset 0 0 0 1px rgba(31, 179, 127, 0.4); }
.ag-row { display: flex; justify-content: space-between; gap: 24px; padding: 4px 0; font-size: 0.92em; }
.ag-row span { color: var(--tx2); }
.ag-row b { font-weight: 500; }
.ag-q { max-width: 460px; padding: 10px 13px 11px; border-radius: 4px 14px 14px 14px; background: #0f3d2c; color: #e9fff4; font-size: 1em; line-height: 1.45; }
.ag-q span { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font: 500 0.72em/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #6ee7ad; }
.ag-q svg { width: 13px; height: 13px; }
.ag-ask { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(139, 108, 255, 0.3), rgba(139, 108, 255, 0.1)); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, 0.6), 0 20px 50px -24px rgba(139, 108, 255, 0.8); }
.ag-ask p { display: grid; gap: 2px; }
.ag-ask p b { font: 700 1.12em/1.2 "Archivo", sans-serif; letter-spacing: -0.01em; }
.ag-ask small { font-size: 0.86em; color: #cfc6ff; }
.ag-ask-b { display: flex; gap: 8px; }
.ag-yes, .ag-no { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 0.98em; transition: transform 0.3s var(--e), background 0.3s; }
.ag .ag-yes { background: #fff; color: #17122e; animation: ag-call 1.8s var(--e) infinite; }
.ag-yes svg { width: 15px; height: 15px; }
.ag .ag-no { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.ag-yes:hover, .ag-no:hover { transform: translateY(-2px); }
.ag-ask.is-yes, .ag-ask.is-no { opacity: 0.6; }
.ag-ask.is-yes .ag-yes, .ag-ask.is-no .ag-yes { animation: none; }
.ag-ask.is-yes .ag-no, .ag-ask.is-no .ag-yes { display: none; }
.ag-foot { flex: 0 0 auto; padding: 8px 18px 16px; }
.ag-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.ag .ag-chip { height: 34px; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); font-size: 0.92em; color: var(--tx2); transition: background 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.ag .ag-chip:hover { background: #fff; color: #111; box-shadow: none; }
.ag .ag-chip:disabled { opacity: 0.35; pointer-events: none; }
.ag.is-free .ag-chip:not(:disabled) { color: var(--tx); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, 0.7); }
.ag-input { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 8px 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--tx3); }
.ag-input i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #8b6cff; color: #fff; }
.ag-input svg { width: 15px; height: 15px; }

/* right: today, and who is writing in */
.ag-in { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; }
.ag-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ag-kpi { padding: 11px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.5s, box-shadow 0.5s; }
.ag-kpi b { display: block; font: 700 clamp(22px, 2.1cqw, 30px)/1 "Archivo", sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ag-kpi b small { font-size: 0.5em; font-weight: 500; margin-left: 2px; color: var(--tx2); }
.ag-kpi span { display: block; margin-top: 5px; font-size: 0.8em; color: var(--tx2); }
.ag-kpi.is-hit { background: rgba(139, 108, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, 0.6); }
.ag-inbox { display: grid; gap: 2px; }
.ag-inbox li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; }
.ag-inbox li > span { display: grid; min-width: 0; flex: 1; }
.ag-inbox b { font-weight: 600; font-size: 0.96em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-inbox small { font-size: 0.82em; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-inbox em { flex: 0 0 auto; height: 22px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: rgba(139, 108, 255, 0.2); color: #b9a6ff; font: 500 10px/1 "IBM Plex Mono", ui-monospace, monospace; font-style: normal; }
.ag-inbox em.ok { background: rgba(31, 179, 127, 0.16); color: #4be0a6; }
.ag-inbox li.is-new { animation: ag-new 1.6s var(--e); }

@keyframes ag-dot { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ag-ring { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes ag-eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes ag-blink { 50% { opacity: 0.3; } }
@keyframes ag-new { 0% { background: rgba(37, 211, 102, 0.3); } 100% { background: transparent; } }
@keyframes ag-call { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

@container (max-width: 980px) { .ag { grid-template-columns: 210px minmax(0, 1fr); } .ag-in { display: none; } }
@container (max-width: 640px) {
  .ag { grid-template-columns: minmax(0, 1fr); padding: 0; font-size: 14px; }
  .ag-side { display: none; }
  .ag-main { border-radius: 0; }
  .ag-head { padding: 10px 12px 0; }
  .ag-ht small { display: none; }
  .ag-flow { margin: 10px 12px 0; padding: 10px 6px 8px; }
  .ag-flow::before { left: 26px; right: 26px; top: 24px; }
  .ag-node { width: 40px; font-size: 9.5px; }
  .ag-node > i { width: 28px; height: 28px; }
  .ag-pulse { top: 18px; }
  .ag-feed { padding: 12px 12px 6px; }
  .ag-list { gap: 13px; }
  .ag-msg { gap: 9px; }
  .ag-av { width: 30px; height: 30px; }
  .ag-av.is-cust .ag-ch { width: 30px; height: 30px; }
  .ag-foot { padding: 6px 10px 10px; }
  .ag-input { height: 42px; }
  .ag-yes, .ag-no { height: 40px; padding: 0 15px; }
}

/* ---------------- services-list card ---------------- */
.ag-pv { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 16px 0; background: radial-gradient(120% 80% at 80% 0%, #1b1730, #0e0f11 60%); pointer-events: none; overflow: hidden; }
.ag-pv-head { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ag-pv-head i { width: 15px; height: 15px; opacity: 0.6; }
.ag-pv-head svg { width: 15px; height: 15px; }
.ag-pv-faces { display: flex; margin-left: auto; padding-left: 6px; }
.ag-pv .ag-av.ag-sm { box-shadow: 0 0 0 2px #15131f; }
.ag-pv-list { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 10px 0 18px; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.ag-pv-msg, .ag-pv-typing { display: flex; gap: 9px; align-items: flex-start; }
.ag-pv .ag-av { width: 28px; height: 28px; }
.ag-pv .ag-av b { font-size: 12px; }
.ag-pv .ag-av.is-cust .ag-ch { width: 28px; height: 28px; }
.ag-pv .ag-who { margin-bottom: 2px; }
.ag-pv .ag-who b { font-size: 12px; }
.ag-pv .ag-who span { font-size: 10.5px; }
.ag-pv .ag-bub { padding: 6px 10px; font-size: 12.5px; }
.ag-pv-msg.is-cust .ag-bub { background: #17241c; box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.22); }
.ag-pv .ag-dots { padding: 9px 11px; }
@media (prefers-reduced-motion: reduce) { .ag-dots i, .ag-mem.is-on .ag-av::after { animation: none; } }
.ag-pv-live { display: none; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; background: rgba(31, 179, 127, 0.14); color: #5fe0b0; font-size: 11px; font-weight: 600; }
.ag-pv-live i { width: 6px; height: 6px; border-radius: 50%; background: #1fb37f; opacity: 1; }
.ag-pv-side { display: none; }
/* a wide card has room for the team beside the chat */
@container (min-width: 520px) {
  .ag-pv { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 31cqw, 280px); grid-template-rows: auto minmax(0, 1fr); column-gap: 16px; padding: 18px 18px 0 22px; background: radial-gradient(70% 60% at 100% 0%, rgba(124, 92, 255, 0.34), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(31, 179, 127, 0.2), transparent 70%), #0d0e13; }
  .ag-pv-head { grid-column: 1 / -1; padding-bottom: 14px; font-size: 14.5px; }
  .ag-pv-live { display: inline-flex; margin-left: 4px; }
  .ag-pv-list { grid-column: 1; gap: 13px; padding: 14px 0 22px; }
  .ag-pv .ag-av { width: 34px; height: 34px; }
  .ag-pv .ag-av b { font-size: 14px; }
  .ag-pv .ag-av.is-cust .ag-ch { width: 34px; height: 34px; }
  .ag-pv .ag-who b { font-size: 13.5px; }
  .ag-pv .ag-who span { font-size: 11.5px; }
  .ag-pv .ag-bub { padding: 8px 13px; font-size: 14.5px; }
  .ag-pv-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 6px; margin: 14px 0 18px; padding: 14px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); min-height: 0; overflow: hidden; }
  .ag-pv-lb { padding: 0 4px 4px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
  .ag-pv-mem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; transition: background-color 0.35s, box-shadow 0.35s; }
  .ag-pv-mem .ag-av { width: 28px; height: 28px; }
  .ag-pv-mem .ag-av b { font-size: 12px; }
  .ag-pv-mt { flex: 1; min-width: 0; display: block; }
  .ag-pv-mt b { display: block; font-size: 13px; font-weight: 600; line-height: 1.15; }
  .ag-pv-mt small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.52); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ag-pv-eq { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; opacity: 0; transition: opacity 0.3s; }
  .ag-pv-eq i { width: 3px; height: 100%; border-radius: 3px; background: var(--c); transform-origin: 50% 100%; transform: scaleY(0.25); }
  .ag-pv-mem.is-on { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent); }
  .ag-pv-mem.is-on .ag-pv-eq { opacity: 1; }
  .ag-pv-mem.is-on .ag-pv-eq i { animation: ag-eq 0.9s ease-in-out infinite; }
  .ag-pv-mem.is-on .ag-pv-eq i:nth-child(2) { animation-delay: -0.3s; } .ag-pv-mem.is-on .ag-pv-eq i:nth-child(3) { animation-delay: -0.6s; } .ag-pv-mem.is-on .ag-pv-eq i:nth-child(4) { animation-delay: -0.15s; }
  .ag-pv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 6px; }
  .ag-pv-kpis > span { display: block; padding: 9px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
  .ag-pv-kpis small { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
  .ag-pv-kpis b { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
}
@container (min-width: 520px) and (max-height: 400px) { .ag-pv-kpis { display: none; } }
/* narrow cards (two-up on phones) */
.ag-pv { container-type: size; }
@container (max-width: 260px) {
  .ag-pv-head { padding-bottom: 7px; font-size: 11.5px; }
  .ag-pv-faces { display: none; }
  .ag-pv-list { gap: 7px; padding-bottom: 10px; }
  .ag-pv .ag-av { width: 20px; height: 20px; }
  .ag-pv .ag-av b { font-size: 9.5px; }
  .ag-pv .ag-av.is-cust .ag-ch { width: 20px; height: 20px; }
  .ag-pv .ag-who span { display: none; }
  .ag-pv .ag-who b { font-size: 10.5px; }
  .ag-pv .ag-bub { padding: 5px 8px; font-size: 10.5px; line-height: 1.3; }
  .ag-pv-msg, .ag-pv-typing { gap: 6px; }
}
