/* List-first agent management; the existing canvas remains a separate workbench. */
.agent-list-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.agent-list-heading h2 { margin:4px 0 8px; color:var(--forest); font-size:25px; }
.agent-list-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.agent-list-heading > button { flex:0 0 auto; }
#agent-filters .search-box { flex:1 1 280px; }
#agent-filters .ghost-button { min-height:38px; }
.agent-list-message { margin:12px 0; padding:13px 16px; border:1px solid #e7c6a1; border-radius:10px; color:#795529; background:#fff7eb; font-size:13px; }
.agent-list-table-scroll { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:14px; background:#fff; }
.agent-list-table { width:100%; min-width:940px; border-collapse:separate; border-spacing:0; font-size:12px; }
.agent-list-table th { padding:15px 14px; color:#6d8077; background:#f5f8f6; font-size:12px; text-align:left; white-space:nowrap; }
.agent-list-table td { padding:18px 14px; border-top:1px solid #e4ece7; color:#355146; vertical-align:middle; }
.agent-list-table tbody tr:hover td { background:#f8fbf9; }
.agent-list-name { width:30%; min-width:225px; max-width:340px; }
.agent-name-button { max-width:100%; border:0; padding:0; color:#244d3c; background:transparent; font:inherit; font-size:14px; font-weight:650; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.agent-name-button:hover { text-decoration:underline; }
.agent-list-name > small { display:block; margin-top:7px; color:var(--muted); font-size:11px; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.agent-list-time { white-space:nowrap; color:var(--muted); font-size:11px; }
.agent-status { display:inline-flex; padding:5px 9px; border-radius:20px; font-size:11px; white-space:nowrap; }
.agent-status-draft { color:#6a715e; background:#eef1e9; }
.agent-status-published { color:#24694d; background:#e7f4ec; }
.agent-status-ready { color:#8a692a; background:#fff4dc; }
.agent-status-disabled { color:#8c514b; background:#f9eeeb; }
.agent-shared-note { display:inline-block; margin-top:7px; color:#7c786c; font-size:10px; }
.agent-row-actions { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.agent-row-actions .mini-button { min-height:32px; padding:6px 9px; font-size:12px; }
.agent-list-table td.agent-list-empty { padding:48px 20px; text-align:center; color:var(--muted); line-height:1.7; }
.agent-workspace-context { display:flex; align-items:center; gap:16px; min-width:0; }
.agent-workspace-context > button { flex:0 0 auto; }
#agent-editor-view .agent-studio { grid-template-columns:188px minmax(0,1fr) 286px; }
.agent-canvas-heading .agent-description-field { grid-column:1 / -1; }
.agent-description-field textarea { min-height:54px; max-height:180px; resize:vertical; }
#agent-editor-view input:disabled, #agent-editor-view select:disabled, #agent-editor-view textarea:disabled { opacity:1; color:#62756b; background:#f4f7f5; cursor:default; }
@media (max-width:1600px) {
  #agent-editor-view .agent-studio { grid-template-columns:160px minmax(0,1fr) 250px; }
}
@media (max-width:1050px) {
  #agent-editor-view .agent-studio { grid-template-columns:145px minmax(0,1fr); }
  #agent-editor-view .agent-inspector { grid-column:1 / -1; }
  #agent-editor-view .agent-node-form { max-height:none; }
}
@media (max-width:800px) {
  .agent-list-heading { align-items:flex-start; gap:12px; }
  .agent-list-heading h2 { font-size:22px; }
  .agent-list-heading > button { min-height:40px; padding:9px 12px; }
  #agent-filters { gap:8px; }
  #agent-filters select { flex:1 1 100%; }
  #agent-filters > button { flex:1; }
  .agent-list-table th:last-child, .agent-list-table td:last-child { position:sticky; right:0; background:#fff; box-shadow:-5px 0 8px #163c3010; }
  .agent-list-table th:last-child { background:#f5f8f6; }
  .agent-workspace-context { align-items:flex-start; }
  .agent-workspace-context h2 { font-size:20px; }
  #agent-editor-view .agent-studio { display:block; }
}
