/* 智能体编辑器 */
.agents-page { display: flex; gap: 16px; min-height: 380px; }
.agent-side { width: 190px; flex-shrink: 0; display: flex; flex-direction: column; }
.agent-side-head { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.agent-list { flex: 1; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 4px; background: var(--glass-2); }
.agent-item {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.agent-item:hover { background: var(--glass-2); color: var(--text); }
.agent-item.selected { background: var(--primary-soft); color: var(--primary-deep); }
.agent-item .agent-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-badge {
  font-size: 10px;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.active-badge { font-size: 11px; align-self: center; }
.agent-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 20px 0; line-height: 1.7; }
.agent-new { margin-top: 10px; width: 100%; }

.agent-editor { flex: 1; min-width: 0; }
.agent-form .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  background: var(--glass-2);
  outline: none;
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}
.agent-form .field textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 3px var(--a1-0); }
.agent-form .row2 { display: flex; gap: 12px; }
.agent-form .row2 .field { flex: 1; }
.persona details summary { font-size: 12px; color: var(--text-3); cursor: pointer; margin-bottom: 8px; user-select: none; }
.persona details[open] summary { color: var(--primary-deep); }


.mount-line { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.mount-line input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--a1); cursor: pointer; }
