
.agent-view{max-width:1500px;margin:0 auto}.agent-page-head{align-items:center}.agent-status{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;font-weight:800;font-size:13px;background:#fff3f3;color:#a32626;border:1px solid #ffd5d5}.agent-status i{width:9px;height:9px;border-radius:50%;background:#df3e3e}.agent-status.online{background:#edfbf4;color:#16784b;border-color:#bcebd1}.agent-status.online i{background:#20a66a;box-shadow:0 0 0 4px #d4f6e3}.agent-layout{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:18px}.agent-guide{padding:22px;align-self:start}.agent-guide h3{margin:18px 0 14px}.agent-guide h3:first-child{margin-top:0}.agent-roles{display:grid;gap:8px}.agent-roles div{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--soft)}.agent-roles span{font-size:12px;color:var(--muted)}.agent-guide ol{margin:0;padding:0 22px 0 0;display:grid;gap:12px;color:var(--muted)}.agent-safety{display:grid;gap:5px;margin-top:22px;padding:14px;border-radius:14px;background:#f0fdf7;color:#176947}.agent-safety span{font-size:13px;line-height:1.55}.agent-chat{padding:0;overflow:hidden;min-height:620px;display:flex;flex-direction:column}.agent-messages{flex:1;min-height:460px;max-height:calc(100vh - 330px);overflow:auto;padding:24px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(180deg,#f8f8ff 0%,#fff 36%)}.agent-message{max-width:min(78%,780px);padding:14px 16px;border-radius:18px;border:1px solid #e8e9f3;background:#fff;box-shadow:0 4px 16px rgba(38,45,83,.06);align-self:flex-start}.agent-message.user{align-self:flex-end;background:#6742e8;color:#fff;border-color:#6742e8}.agent-message.system{align-self:center;background:#fff7e8;border-color:#f5d9a0;color:#805516}.agent-message header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:7px;font-size:12px}.agent-message header time{opacity:.65}.agent-message>div{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.agent-thinking>div{display:flex;align-items:center;gap:6px}.agent-thinking i{width:7px;height:7px;border-radius:50%;background:#7955ef;animation:agentPulse 1s infinite alternate}.agent-thinking i:nth-child(2){animation-delay:.2s}.agent-thinking i:nth-child(3){animation-delay:.4s}@keyframes agentPulse{to{opacity:.25;transform:translateY(-3px)}}.agent-empty{margin:auto;text-align:center;color:var(--muted);display:grid;gap:8px}.agent-empty b{font-size:20px;color:var(--text)}.agent-composer{border-top:1px solid var(--border);padding:16px;background:var(--panel)}.agent-composer textarea{width:100%;resize:vertical;min-height:86px;max-height:220px}.agent-composer>div{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:10px}.agent-composer small{color:var(--muted)}.dark .agent-messages{background:linear-gradient(180deg,#171827,#11121e 36%)}.dark .agent-message{background:#202235;border-color:#34374e}.dark .agent-message.user{background:#6742e8}.dark .agent-safety{background:#153326;color:#8be0b4}@media(max-width:850px){.agent-layout{grid-template-columns:1fr}.agent-guide{display:none}.agent-page-head{align-items:flex-start}.agent-page-head .page-actions{width:100%;display:flex;flex-wrap:wrap}.agent-status{margin-inline-end:auto}.agent-chat{min-height:0}.agent-messages{min-height:300px;max-height:52vh;padding:14px}.agent-message{max-width:92%}.agent-composer{position:sticky;bottom:0;padding:12px}.agent-composer>div small{display:none}.agent-composer>div button{width:100%}}
