/* Agents page only: the live cards, the Competitor Activities section and the two pop-ups. Shared tokens come from ctrl.css. */
.team-label{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin:14px 0 8px}

/* a running job has no percentage, so the bar breathes instead of lying */
.bar.live-bar span{width:40%; animation:ctrl-breathe 1.6s ease-in-out infinite alternate}
@keyframes ctrl-breathe{from{width:25%; opacity:.6} to{width:85%; opacity:1}}
@media (prefers-reduced-motion: reduce){ .bar.live-bar span{animation:none; width:60%} }
.live.off i{background:var(--grey, #7f8493); box-shadow:none; animation:none}
.status.offline i, .status.idle i{background:var(--grey, #7f8493)}
.card.agent{position:relative}
.card.agent .cover{position:absolute; inset:0; border-radius:inherit}
.card.agent .run{position:relative; z-index:1; margin-top:10px; align-self:flex-start}

/* task queue: ten rows tall, the rest scrolls inside the card; the header stays put */
.table-wrap.queue{max-height:498px; overflow-y:auto; overscroll-behavior:contain}
.table-wrap.queue thead th{position:sticky; top:0; padding-top:12px; background:var(--surface); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); z-index:1}   /* same glass as the card, so no grey band */
.table-wrap.queue::after{content:""; position:sticky; bottom:0; display:block; height:22px; margin-top:-22px; background:linear-gradient(to bottom, transparent, var(--surface)); pointer-events:none}

/* competitor cards */
.card.comp{cursor:pointer; position:relative; transition:transform .15s ease, box-shadow .15s ease}
.card.comp:hover, .card.comp:focus-visible{transform:translateY(-2px); box-shadow:var(--glow-strong); outline:none}
.card.comp.has-dot::after{content:""; position:absolute; top:12px; right:12px; width:9px; height:9px; border-radius:50%; background:var(--red); box-shadow:0 0 8px var(--red)}
.others{margin-top:10px; display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.others .tag{text-decoration:none}

/* ads inside the competitor pop-up */
.ad-list{display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:12px}
.ad-list .ad{display:grid; grid-template-columns:96px 1fr; gap:10px; padding:10px; border:1px solid var(--line-soft); border-radius:var(--r-md, 12px); background:var(--surface)}
.ad-list .ad.new{border-color:var(--teal)}
.ad-list .ad img, .ad-list .ad .ph{width:96px; height:96px; object-fit:cover; border-radius:8px; background:var(--line-soft)}
.ad-list .ad p{margin:4px 0; max-height:7.5em; overflow:hidden}

/* review pop-up */
.rev-script{padding:14px 0; border-top:1px solid var(--line-soft)}
.rev-script:first-child{border-top:0; padding-top:0}
.rev-head .sub{display:block; color:var(--text-3); font-size:12px}
.rev-options{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:12px; margin-top:10px}
.rev-opt{padding:10px; border:1px solid var(--line-soft); border-radius:var(--r-md, 12px); background:var(--surface); display:flex; flex-direction:column; gap:6px}
.rev-opt.kept{border-color:var(--green); box-shadow:0 0 0 1px var(--green) inset}
.rev-opt.dropped{opacity:.55}
.rev-imgs{display:flex; gap:6px; overflow-x:auto; padding-bottom:4px}
.rev-imgs img{height:220px; border-radius:8px; border:1px solid var(--line-soft); background:#fff}
.rev-scores{display:flex; flex-wrap:wrap; gap:4px}
.rev-scores .sc{font-size:11px; padding:2px 7px; border-radius:999px; background:var(--line-soft); color:var(--text-2)}
.rev-scores .sc b{color:var(--text)}
.rev-scores .sc.low{background:var(--red); color:#fff}
.rev-scores .sc.low b{color:#fff}
.modal.wide .script-body{max-height:calc(92vh - 220px)}
