/* Per-agent demo screens inside the stage. */

/* Channel: content calendar, follower counter, sparkline */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal span { aspect-ratio: 2.6; border-radius: 0; background: var(--surface); transition: background 0.4s; }
.cal span.t { background: var(--block-2); }
.cal span.y { background: rgba(248, 113, 113, 0.7); }
.cal span.f { background: var(--block-4); }
.legend { display: flex; gap: 14px; margin-top: 10px; font: 400 11px var(--mono); color: var(--text-3); }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.big { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.up { color: var(--green); font: 400 12px var(--mono); }
svg.spark { width: 100%; height: 70px; margin-top: 6px; }
svg.spark path.l { fill: none; stroke: url(#gl); stroke-width: 2.5; stroke-dasharray: 600; }
.screen.on svg.spark path.l { animation: draw 2.4s ease; }
@keyframes draw { from { stroke-dashoffset: 600; } }

/* Ads: ROAS bars + budget allocation */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars span { flex: 1; height: 10%; border-radius: 0; background: linear-gradient(180deg, var(--block-2), var(--block-4)); transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.alloc div { display: flex; align-items: center; gap: 10px; margin: 8px 0; font: 400 12px var(--mono); color: var(--text-2); }
.alloc em { font-style: normal; width: 62px; }
.alloc i { flex: 1; position: relative; overflow: hidden; height: 6px; border-radius: 0; background: var(--line); }
.alloc i::after { content: ""; position: absolute; inset: 0; width: var(--w, 10%); border-radius: 0; background: linear-gradient(90deg, var(--block-4), var(--block-2)); transition: width 1.2s; }

/* Sales: unified inbox + chat */
.inbox { display: grid; grid-template-columns: 150px 1fr; gap: 14px; flex: 1; min-height: 0; }
.threads { display: flex; flex-direction: column; gap: 6px; }
.th { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: var(--r); font-size: 12px; color: var(--text-2); }
.th.cur { border-color: var(--line-2); background: var(--surface); color: var(--text); }
.ch { font: 500 9.5px var(--mono); padding: 2px 5px; border-radius: var(--r); }
.ch.fb { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.ch.zl { background: rgba(143, 184, 255, 0.15); color: var(--block-2); }
.ch.tt { background: rgba(244, 114, 182, 0.13); color: #f9a8d4; }
.chat { display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: var(--r); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: 0.35s; }
.msg.show { opacity: 1; transform: none; }
.msg.c { align-self: flex-start; background: var(--ink-3); }
.msg.a { align-self: flex-end; background: var(--block-4); color: #fff; }
.msg small { display: block; margin-bottom: 2px; font: 400 10px var(--mono); color: var(--text-3); }
.toast { align-self: center; padding: 6px 12px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: var(--r); background: rgba(52, 211, 153, 0.08); font: 400 11.5px var(--mono); color: var(--green); opacity: 0; transition: 0.4s; }
.toast.show { opacity: 1; }

/* KOL: virtual avatar + profile chips + generation progress */
.kol { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; flex: 1; }
.kol-side { display: flex; flex-direction: column; gap: 12px; }
.avatar { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r); background: radial-gradient(circle at 50% 35%, rgba(79, 134, 240, 0.35), transparent 60%), var(--bg-2); }
.avatar svg { width: 78%; }
.avatar .scan { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(143, 184, 255, 0.25), transparent); animation: scan 2.6s linear infinite; }
@keyframes scan { from { top: -40%; } to { top: 100%; } }
.avatar .ai { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(10, 15, 26, 0.7); font: 400 10px var(--mono); color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 12px; color: var(--text-2); transition: 0.3s; }
.chip.on { border-color: var(--block-3); color: var(--text); background: rgba(79, 134, 240, 0.18); }
.prog { height: 6px; margin-top: 8px; border-radius: 0; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--block-4), var(--block-2)); transition: width 0.3s linear; }

/* Ops: module tiles + task checklist */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mod { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mod span { font: 400 10.5px var(--mono); color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.mod b { display: block; margin-top: 4px; font-size: 22px; font-weight: 400; }
.mod small { font: 400 11.5px var(--mono); color: var(--green); }
.mod small.w { color: var(--amber); }
.tasks div { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--text-2); }
.tasks div:last-child { border: 0; }
.tasks i { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 0; font: normal 11px var(--sans); color: var(--ink); transition: 0.3s; }
.tasks div.done i { background: var(--green); border-color: var(--green); }
.tasks div.done span { color: var(--text-3); text-decoration: line-through; }

@media (max-width: 400px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .inbox { grid-template-columns: 1fr; }
  .threads { display: none; }
  .kol { grid-template-columns: 120px 1fr; }
}
