/* The swarm (terminal-swarm.js): agents running over the terminal, the mark on the coin they read, their notes and the header switch. */
.sw-layer{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden;contain:strict}
.sw-layer[hidden]{display:none}
.sw-bot{position:absolute;left:0;top:0;width:38px;height:38px;margin:-19px 0 0 -19px;padding:0;border:0;background:none;color:var(--sw);cursor:pointer;pointer-events:auto;will-change:transform;-webkit-tap-highlight-color:transparent}
.sw-bot:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:12px}
.sw-body{display:block;width:100%;height:100%;filter:drop-shadow(0 6px 10px #000c);transform-origin:50% 92%;transition:scale .18s}
.sw-body svg,.sw-art{display:block;width:100%;height:100%;overflow:visible}.sw-art{object-fit:contain}
.sw-bot:hover .sw-body{scale:1.18}
.sw-eyes{transform:translate(calc(var(--ex,0) * 1.5px),0);transition:transform .2s;animation:sw-blink 5.2s infinite;transform-box:fill-box;transform-origin:center}
.sw-bot:nth-child(4n) .sw-eyes{animation-delay:-1.7s}.sw-bot:nth-child(6n) .sw-eyes{animation-delay:-3.1s}
@keyframes sw-blink{0%,94%,100%{scale:1 1}96.5%{scale:1 .12}}
.sw-feet rect{transform-box:fill-box;transform-origin:50% 0}
.is-running .sw-body{animation:sw-run .24s ease-in-out infinite alternate}
.is-running .sw-feet rect{animation:sw-step .24s ease-in-out infinite alternate}.is-running .sw-feet rect:last-child{animation-direction:alternate-reverse}
@keyframes sw-run{from{transform:rotate(calc(var(--ex,1) * 7deg)) scaleY(.92)}to{transform:rotate(calc(var(--ex,1) * 11deg)) scaleY(1.06)}}
@keyframes sw-step{from{transform:translateY(-2.5px)}to{transform:translateY(1.5px)}}
.is-looking .sw-body{animation:sw-look 1.5s ease-in-out infinite}
@keyframes sw-look{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg) translateY(-1.5px)}}
/* What the agent says about the coin under it. */
.sw-say{position:absolute;left:50%;bottom:calc(100% + 5px);translate:-50% 0;max-width:230px;padding:6px 10px;border-radius:999px;background:var(--sw);color:var(--sw-ink,#fff);font:800 11px/1.15 Manrope,"Segoe UI",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 10px 24px -8px #000;animation:sw-pop .3s cubic-bezier(.2,1.4,.3,1) both;pointer-events:none}
.sw-say[hidden]{display:none}
.sw-say.is-left{left:auto;right:-4px;translate:none}.sw-say.is-right{left:-4px;translate:none}.sw-say.is-below{bottom:auto;top:calc(100% + 5px)}
@keyframes sw-pop{from{opacity:0;scale:.6}}
/* The coin being read: an outline in the agent's color and one sweep of light. */
.sw-target{outline:1.5px solid var(--sw-c,#fff)!important;outline-offset:-1px;animation:sw-mark 1.3s ease-out}
@keyframes sw-mark{from{outline-offset:5px;outline-color:transparent}}
.sw-scan{position:absolute;border-radius:16px;overflow:hidden;pointer-events:none;opacity:0;animation:sw-scan 1.1s ease-out}
.sw-scan[hidden]{display:none}
.sw-scan:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--sw) 34%,transparent) 50%,transparent 70%);translate:-100% 0;animation:sw-sweep 1.1s ease-out}
@keyframes sw-scan{0%{opacity:1}80%{opacity:1}100%{opacity:0}}
@keyframes sw-sweep{to{translate:100% 0}}
/* Notes of one agent, opened by a click on it. */
.sw-panel,.sw-roster{position:fixed;z-index:120;display:grid;gap:10px;padding:14px;border:1px solid color-mix(in srgb,var(--sw,#2a2a31) 55%,#2a2a31);border-radius:20px;background:#08080af5;color:#d6d6dd;font-family:Manrope,"Segoe UI",Arial,sans-serif;box-shadow:0 30px 70px -20px #000;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.sw-panel{left:0;top:0;width:min(304px,calc(100vw - 20px))}
.sw-panel[hidden],.sw-roster[hidden]{display:none}
.sw-panel header,.sw-roster header{display:flex;align-items:center;gap:10px}
.sw-panel header div{flex:1;min-width:0;display:grid;gap:2px}
.sw-panel header strong,.sw-roster header strong{font:800 15px/1.1 Manrope,sans-serif;color:#fff}
.sw-roster header strong{flex:1}
.sw-panel header small{font:600 11.5px/1.25 Manrope,sans-serif;color:#9b9ba7}
.sw-face{flex:none;display:block;width:34px;height:34px;color:var(--sw)}.sw-face svg,.sw-face img{display:block;width:100%;height:100%;overflow:visible}
.sw-x{flex:none;width:28px;height:28px;border:0;border-radius:50%;background:#17171b;color:#fff;font-size:16px;line-height:1;cursor:pointer}
.sw-on{margin:0;font:600 12px/1.35 Manrope,sans-serif;color:#9b9ba7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sw-on b{color:#fff;font-weight:800}
.sw-verdict{justify-self:start;margin:0;padding:6px 11px;border-radius:999px;background:var(--sw);color:var(--sw-ink,#fff);font:800 12px/1.15 Manrope,sans-serif}
.sw-lines{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.sw-lines li{position:relative;padding:0 0 0 16px;font:600 12.5px/1.4 Manrope,sans-serif;color:#d6d6dd;animation:sw-line .35s ease-out both;animation-delay:calc(var(--i) * 140ms)}
.sw-lines li:before{content:"";position:absolute;left:2px;top:.52em;width:6px;height:6px;border-radius:50%;background:#6c6c78}
.sw-lines li.is-good:before{background:#3fc77a}.sw-lines li.is-warn:before{background:#ffb21e}.sw-lines li.is-bad:before{background:#ff4a4a}
@keyframes sw-line{from{opacity:0;transform:translateY(5px)}}
.sw-actions{display:flex;gap:6px}
.sw-actions a,.sw-actions button{flex:1;display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:0;border-radius:999px;font:800 12px/1 Manrope,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.sw-actions a{background:#fff;color:#000}.sw-actions button{background:#17171b;color:#fff;box-shadow:inset 0 0 0 1px #2a2a31}
.sw-actions a:hover{background:#e6e6ec}.sw-actions button:hover{background:#202026}
.sw-foot{margin:0;font:500 11px/1.4 Manrope,sans-serif;color:#6c6c78}
.sw-panel :focus-visible,.sw-roster :focus-visible{outline:2px solid #fff;outline-offset:2px}
/* The list behind the header switch. */
.sw-roster{width:min(292px,calc(100vw - 20px))}
.sw-roster header button{min-width:48px;height:28px;border:0;border-radius:999px;background:#3fc77a;color:#04210f;font:800 12px/1 Manrope,sans-serif;cursor:pointer}
.sw-roster header button[aria-pressed=false]{background:#17171b;color:#9b9ba7;box-shadow:inset 0 0 0 1px #2a2a31}
.sw-roster ul{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.sw-roster li button{width:100%;display:flex;align-items:center;gap:10px;padding:6px 8px;border:0;border-radius:12px;background:none;color:inherit;text-align:left;font-family:inherit;cursor:pointer}
.sw-roster li button:hover:not(:disabled){background:#17171b}.sw-roster li button:disabled{opacity:.45;cursor:default}
.sw-roster li .sw-face{width:28px;height:28px}
.sw-roster li span:last-child{min-width:0;display:grid;gap:1px}
.sw-roster li b{font:800 12.5px/1.2 Manrope,sans-serif;color:#fff}
.sw-roster li small{font:600 11px/1.25 Manrope,sans-serif;color:#9b9ba7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Header switch. */
.tb-swarm-toggle{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 13px;border:1px solid #2a2a31;border-radius:999px;background:#0b0b0d;color:#fff;font:800 12px/1 Manrope,sans-serif;cursor:pointer;white-space:nowrap}
.tb-swarm-toggle:hover{background:#17171b}
.tb-swarm-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tb-swarm-dots{display:inline-flex;gap:3px}
.tb-swarm-dots i{width:7px;height:7px;border-radius:50%;background:#3fc77a;animation:sw-dot 1.2s ease-in-out infinite}
.tb-swarm-dots i:nth-child(2){background:#ffb21e;animation-delay:.15s}.tb-swarm-dots i:nth-child(3){background:#ff3f9e;animation-delay:.3s}
@keyframes sw-dot{0%,60%,100%{translate:0 0}30%{translate:0 -3px}}
.tb-swarm-toggle.is-off .tb-swarm-dots i{background:#6c6c78;animation:none}
@media(max-width:1279px){.tb-swarm-label{display:none}.tb-swarm-toggle{padding:0 11px}}
@media(max-width:700px){.tb-header .tb-brand{grid-row:1}.tb-swarm-toggle{grid-column:1;grid-row:1;justify-self:end;min-height:44px}.terminal-page .tb-nav button,.terminal-page .tb-nav .tb-nav-link{padding-inline:4px}.sw-bot{width:32px;height:32px;margin:-16px 0 0 -16px}.sw-say{max-width:170px}}
@media(prefers-reduced-motion:reduce){.sw-eyes,.is-running .sw-body,.is-running .sw-feet rect,.is-looking .sw-body,.sw-say,.sw-target,.sw-lines li,.tb-swarm-dots i{animation:none}.sw-scan{display:none}}
