/* SharpStep v12 agents panel: replaces the white .hero-banner card. Tokens: brand/site-kit/wow/tokens-wow.css (fallbacks inline).
   Transform + opacity only. Fixed height (CLS 0). Static composed frame = server HTML (also the reduced-motion frame). */
[data-ss-agents-panel] {
  --ap-navy: var(--w-navy, #0A1230); --ap-surface: var(--w-navy-surface, #131D47); --ap-line: rgba(110,155,255,.18);
  --ap-label: var(--w-electric-on-dark, #6E9BFF); --ap-sky: var(--w-sky, #38BDF8); --ap-body: var(--w-on-dark-body, #CBD5E1);
  --ap-muted: var(--w-on-dark-muted, #A9B4CC); --ap-fill: var(--w-electric, #1E40FF); --ap-h: 264px; --ap-row: 52px;
  position: relative; isolation: isolate; overflow: hidden; height: var(--ap-h); border-radius: 24px; background: var(--ap-navy); color: var(--ap-body);
  font-size: 14px; line-height: 1.3; contain: layout paint; border: 1px solid var(--ap-line);
}
[data-ss-agents-panel] .ss-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-stage { position: absolute; inset: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; padding: 20px 24px; }
/* soft brand light: blue→sky with pink tail, very low intensity */
.ap-stage::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30,64,255,.38), rgba(56,189,248,.12) 60%, rgba(255,79,163,.06) 82%, transparent); }
.ap-spot { position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(56,189,248,.14), transparent 62%); opacity: 0; transition: opacity 300ms ease; will-change: transform; }
[data-ss-agents-panel].is-hot .ap-spot { opacity: 1; }
.ap-head { position: absolute; left: 24px; top: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ap-muted); letter-spacing: .02em; }
.ap-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-sky); }
.ap-tag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ap-line); color: var(--ap-label); }

/* pipeline */
.ap-pipe { position: relative; align-self: center; height: 128px; margin: 18px 28px 0 4px; will-change: transform; }
.ap-rail { position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--ap-line); border-radius: 2px; }
.ap-rail::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--ap-prog, .62));
  background: linear-gradient(90deg, rgba(56,189,248,0), rgba(56,189,248,.55)); }
.ap-stations { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.ap-st { position: relative; display: grid; justify-items: center; gap: 8px; width: 64px; transition: transform 300ms cubic-bezier(.25,1,.5,1); }
.ap-node { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--ap-surface); border: 1px solid var(--ap-line); color: var(--ap-label); }
.ap-node svg { width: 26px; height: 26px; }
.ap-node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--w-glow-ring, 0 0 0 1px rgba(56,189,248,.55), 0 0 0 6px rgba(56,189,248,.14), 0 12px 40px -12px rgba(56,189,248,.55)); opacity: 0; transition: opacity 360ms ease; }
.ap-st.is-active .ap-node::after { opacity: 1; } /* only the active agent glows */
.ap-st.is-active .ap-node { color: var(--ap-sky); }
.ap-st b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.ap-st small { font-size: 12px; color: var(--ap-muted); white-space: nowrap; margin-top: -6px; }
.ap-packet { position: absolute; left: 32px; top: 27px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ap-sky);
  box-shadow: 0 0 14px 2px rgba(56,189,248,.55); will-change: transform, opacity; }

/* feed */
.ap-feed { position: relative; margin: 30px 0 0; padding: 0; list-style: none; will-change: transform; }
.ap-card { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--ap-row) - 8px); display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 14px; background: var(--ap-surface); border: 1px solid var(--ap-line); color: var(--ap-body); font-size: 13px;
  transform: translateY(calc(var(--slot, 0) * var(--ap-row))); transition: transform 560ms cubic-bezier(.16,1,.3,1), opacity 420ms ease; }
.ap-card svg { flex: none; width: 18px; height: 18px; color: var(--ap-label); }
.ap-card .ap-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ap-muted); }
.ap-card .ap-ok svg { width: 14px; height: 14px; color: var(--ap-sky); }
.ap-card.is-done .ap-ok svg { color: var(--w-yellow, #FFD60A); } /* single tiny "done" check: newest booking only */
.ap-card.is-new { opacity: 0; transform: translateY(calc(var(--ap-row) * -.5)) scale(.96); }
.ap-card.is-gone { opacity: 0; }
.ap-card[data-slot="0"] { box-shadow: 0 0 0 1px rgba(110,155,255,.28), 0 10px 24px -14px rgba(30,64,255,.6); }

@media (max-width: 640px) {
  [data-ss-agents-panel] { --ap-h: 236px; --ap-row: 46px; border-radius: 20px; font-size: 13px; }
  .ap-stage { grid-template-columns: 1fr; grid-template-rows: 100px 1fr; gap: 6px; padding: 14px 16px; }
  .ap-head { left: 16px; top: 12px; }
  .ap-pipe { height: 72px; margin: 28px 4px 0; align-self: start; }
  .ap-node { width: 48px; height: 48px; border-radius: 14px; } .ap-node svg { width: 22px; height: 22px; }
  .ap-st { width: 48px; gap: 4px; } .ap-st small { display: none; }
  .ap-rail { left: 24px; right: 24px; top: 23px; } .ap-packet { left: 24px; top: 19px; }
  .ap-feed { margin-top: 6px; } .ap-card { font-size: 12.5px; }
  .ap-card[data-slot="2"] { opacity: 0; } /* two rows on mobile */
}
@media (prefers-reduced-motion: no-preference) {
  [data-ss-agents-panel].is-running .ap-live { animation: ap-breathe 2s ease-in-out infinite; }
}
@keyframes ap-breathe { 50% { opacity: .35; transform: scale(.8); } }
