/* Your agents (right panel) and the add-agent sheet. One tinted action per screen; glass only on the sheet. */

.av.gen { background: var(--fill-2); color: var(--label-2); }
.av.gen svg, .av.gen .ico { width: 52%; height: 52%; }
.av.bot svg { color: #111; } /* the OpenAI mark is currentColor: dark on its white disc */
.av.gen.pend { background: transparent; border: 1.5px dashed var(--label-3); }

#agent .atop .icon-btn[hidden] { display: none; }
.aempty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); text-align: center; padding: 0 var(--s3) 15%; }
.aempty[hidden] { display: none; }
.aempty p { margin: 0; color: var(--label-2); font-size: var(--fs-subhead); line-height: 1.45; }
.cap.abig { height: 46px; font-size: var(--fs-body); font-weight: 600; }

.achips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.achips[hidden] { display: none; }
.achip { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 3px; border-radius: 999px; border: 0; background: var(--fill); color: var(--label-2); font: inherit; font-size: var(--fs-subhead); font-weight: 600; cursor: pointer; white-space: nowrap; }
.achip .av { width: 32px; height: 32px; }
.achip[aria-pressed="true"] { background: var(--fill-2); color: var(--label); }
.acount { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--attention); color: #000; font-size: var(--fs-caption); display: grid; place-items: center; }

.awho { position: relative; display: flex; align-items: center; gap: var(--s3); padding: 2px 4px; }
.awho[hidden] { display: none; }
.awho > .av { width: 44px; height: 44px; }
.awt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.awt b { font-size: var(--fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awt small { display: flex; align-items: center; gap: 6px; font-size: var(--fs-footnote); color: var(--label-3); }
.adot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); flex: none; }
.adot.off { background: var(--label-3); }
.amore { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill-2); color: var(--label-2); display: grid; place-items: center; cursor: pointer; }
.amore .ico, .amore svg { width: 16px; height: 16px; }
.amenu { position: absolute; right: 4px; top: 46px; z-index: 30; min-width: 190px; border-radius: 16px; padding: 6px; display: flex; flex-direction: column; animation: enter var(--med) var(--spring) both; }
.amenu button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: var(--fs-subhead); color: var(--label); cursor: pointer; }
.amenu button:hover { background: var(--fill); }
.amenu .danger { color: var(--danger); }

.await { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; padding: var(--s5) var(--s2); }
.await[hidden] { display: none; }
.await b { font-size: var(--fs-body); font-weight: 600; }
.await > span:not(.sspin) { color: var(--label-2); font-size: var(--fs-footnote); line-height: 1.4; }
.queue[hidden], .thread[hidden] { display: none; }

.sspin { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--label-3); border-top-color: transparent; animation: aspin 1s linear infinite; }
@keyframes aspin { to { transform: rotate(360deg); } }
.srow { display: flex; gap: var(--s2); width: 100%; }
.srow .cap { flex: 1; }

/* the sheet */
.addsheet { position: fixed; inset: 0; z-index: 60; }
.sscrim { position: absolute; inset: 0; background: rgb(0 0 0 / .28); animation: afade var(--med) var(--ease) both; }
@keyframes afade { from { opacity: 0; } }
.ssheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 380px; max-width: calc(100vw - 32px); border-radius: 32px; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: var(--s4); animation: arise var(--slow) var(--spring) both; }
@keyframes arise { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.shead { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.shead h3 { margin: 0; text-align: center; font-size: var(--fs-title); font-weight: 600; }
.sicon { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill-2); color: var(--label-2); cursor: pointer; display: grid; place-items: center; }
.sicon .ico, .sicon svg { width: 15px; height: 15px; }
.sicon.r { justify-self: end; }
.slist { display: flex; flex-direction: column; }
.sitem { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border: 0; background: none; font: inherit; color: var(--label); cursor: pointer; text-align: left; border-radius: 14px; }
.sitem:hover { background: var(--fill); }
.sitem + .sitem { box-shadow: 0 -1px 0 var(--sep); }
.sitem .av { width: 36px; height: 36px; }
.sitem b { flex: 1; font-weight: 500; font-size: var(--fs-body); }
.sitem > svg, .sitem > .ico { width: 16px; height: 16px; color: var(--label-3); }
.sone { display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; }
.sone > b { font-size: var(--fs-body); font-weight: 600; }
.sbig { width: 64px; height: 64px; }
.sline { color: var(--label-2); font-size: var(--fs-subhead); line-height: 1.45; }
.show { border: 0; background: none; color: var(--label-2); font: inherit; font-size: var(--fs-footnote); font-weight: 600; cursor: pointer; }
.ssteps { width: 100%; text-align: left; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-footnote); color: var(--label-2); line-height: 1.45; }
.ssteps > div { padding: 6px 2px; }
.ssteps > div + div { box-shadow: 0 -1px 0 var(--sep); }
.ssteps b { color: var(--label); font-weight: 600; }
.ssteps code { font-family: var(--mono); font-size: 11px; color: var(--label); word-break: break-all; }

/* the panel's status line: neutral until something connects, green when connected, orange only when something waits */
#agent .state.off { color: var(--label-3); }
#agent .state.off::before { background: var(--label-3); }

/* the top bar's small stack: logos only (no owner badge), each ringed so overlaps stay readable */
.stack .av .owner { display: none; }
.stack .av { box-shadow: 0 0 0 2px var(--ring); }
/* chips wrap instead of running off the panel */
.achips { flex-wrap: wrap; overflow: visible; }
