.agent-panel { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.agent-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.agent-panel li.agent-card { display: block; padding: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 35px rgba(36,31,20,.05); }
.agent-panel li .agent-card-head { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 22px; }
.agent-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #211f1b; color: #fff; font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.agent-panel li .agent-identity { display: block; min-width: 0; }
.agent-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; letter-spacing: -.02em; }
.agent-identity small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.active { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.active i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,125,85,.1); }
.agent-panel li .agent-reference { display: block; margin: 0 22px; padding: 13px 14px; border-radius: 10px; background: #f2eee5; }
.agent-reference span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.agent-reference code { display: block; overflow: hidden; color: #4e4b43; font: 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.agent-panel li .agent-card-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 62px; margin-top: 18px; padding: 12px 22px; border-top: 1px solid var(--line); }
.rename-menu { position: relative; }
.rename-menu summary { color: var(--ink); font-size: 13px; font-weight: 750; cursor: pointer; list-style: none; }
.rename-menu summary::-webkit-details-marker { display: none; }
.rename-menu summary:after { content: " ↗"; color: var(--muted); }
.rename-form { position: absolute; z-index: 2; left: 0; bottom: 30px; display: flex; gap: 7px; width: 310px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 45px rgba(36,31,20,.16); }
.rename-form input { min-width: 0; padding: 9px 10px; font-size: 13px; }
.small-button { border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 750; padding: 9px 12px; cursor: pointer; }
.agent-actions { margin: 0; }
.agent-actions input { display: none; }
.danger-button { border: 0; background: transparent; color: #9b432f; font: inherit; font-size: 12px; font-weight: 750; padding: 8px 0; cursor: pointer; }
.danger-button:hover { color: #d83f1c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 800px) { .agent-panel ul { grid-template-columns: 1fr; } .agent-card-head { grid-template-columns: 42px minmax(0,1fr); } .agent-avatar { width: 42px; height: 42px; } .active { grid-column: 2; justify-self: start; } .rename-form { width: min(310px, calc(100vw - 72px)); } }
