.ops-agent-controls{display:flex;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin:.75rem 0}
.ops-agent-controls .field-label{margin:0;min-width:10rem}
#agent-dispatch .ops-agent-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem;margin:1.1rem 0}
#agent-dispatch .ops-agent-controls>.field-label{min-width:0}
#agent-dispatch .ops-agent-mode{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;min-width:0;min-height:0;margin:0;padding:.45rem .65rem .55rem;border:1px solid var(--border,#dce3ec);border-radius:.6rem}
#agent-dispatch .ops-agent-mode legend{padding:0 .25rem;font-weight:600}
#agent-dispatch .ops-agent-mode label{display:inline-flex;align-items:center;gap:.35rem;white-space:normal}
#agent-dispatch .ops-agent-task{grid-column:1/-1}
#agent-dispatch .ops-agent-task textarea{min-height:4.5rem;resize:vertical}
#agent-dispatch .ops-agent-help{margin:1rem 0;padding:.8rem 1rem;border:1px solid var(--border,#dce3ec);border-radius:.6rem;background:var(--surface-subtle,#f7f9fc);line-height:1.55}
#agent-dispatch .ops-agent-help p{margin:.25rem 0 .55rem}
#agent-dispatch .ops-agent-help p:last-child{margin-bottom:.25rem}
#agent-dispatch .ops-agent-help strong{color:var(--text,#243244)}
#agent-dispatch .ops-editor-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0}
#agent-dispatch .ops-editor-actions .btn{margin:0}
#agent-dispatch>p.muted.small{line-height:1.6}
.ops-agent-token{margin:1rem 0}
#dispatch-prompt{white-space:pre-wrap;overflow-wrap:anywhere}
#agent-generation-results li{padding:.6rem 0;border-bottom:1px solid var(--border,#dce3ec);overflow-wrap:anywhere}
#agent-generation-results p{margin:.3rem 0;color:var(--muted,#68788a)}
#agent-generation-count{max-width:10rem}
@media(max-width:900px){#agent-dispatch .ops-agent-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ops-agent-controls{display:block}.ops-agent-controls .field-label{display:block;margin:.6rem 0}.ops-agent-controls button{margin:.6rem 0}#agent-dispatch .ops-agent-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}#agent-dispatch .ops-agent-task{grid-column:auto}#agent-dispatch .ops-agent-mode{justify-content:flex-start}#agent-dispatch .ops-editor-actions .btn{flex:1 1 100%}}
