/* Task controls: one semantic status, one view toolbar, one model selector. */
.task-detail__head { min-height:36px; padding:5px 10px; }
.task-detail__title h2 { font-size:12px; }
.task-detail__goal { min-height:28px; padding:5px 10px; }
.task-detail__goal > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-settings-menu,.runtime-controls details { position:relative; }
.task-settings-menu > summary,.runtime-controls details > summary { list-style:none; cursor:pointer; }
.task-settings-menu > summary::-webkit-details-marker,.runtime-controls details > summary::-webkit-details-marker { display:none; }
.task-settings-popover,.runtime-menu-panel { position:absolute; z-index:30; right:0; top:calc(100% + 4px); box-sizing:border-box; width:300px; max-width:calc(100vw - 24px); max-height:60vh; overflow:auto; padding:10px; border:1px solid var(--border,#30363d); border-radius:6px; background:#161b22; box-shadow:0 10px 30px #0005; color:#d9e2ef; font:11px/1.5 var(--font,system-ui); }
.task-settings-popover > b { display:block; margin-bottom:8px; }
.task-settings-popover p,.runtime-menu-panel p { color:var(--text2,#89939e); overflow-wrap:anywhere; }
.task-inspection-facts { display:grid; grid-template-columns:auto 1fr; gap:5px 12px; font-size:10px; }
.task-inspection-facts dt { color:var(--text2,#89939e); }.task-inspection-facts dd { margin:0; overflow-wrap:anywhere; }
.runtime-head,.task-runtime--inline .runtime-head { min-height:36px; gap:8px; padding:4px 10px; flex-wrap:wrap; position:relative; z-index:6; }
.runtime-team { display:flex; align-items:center; gap:10px; flex:1 1 320px; min-width:0; flex-wrap:wrap; color:#aab7c7; font:10px/1.4 var(--font,system-ui); }
.runtime-team b { color:#d9e2ef; font-weight:500; }
.runtime-node-counts { white-space:nowrap; }.runtime-node-counts .is-failing { color:var(--red,#f85149); }
.runtime-controls { flex:0 1 auto; width:auto; margin-left:auto; flex-wrap:wrap; overflow:visible; gap:4px; }
.runtime-controls .runtime-btn { height:25px; padding:0 7px; font:10px var(--font,system-ui); border-radius:4px; }
.runtime-menu-panel { display:flex; flex-direction:column; gap:8px; }
.runtime-controls details:not([open]) > .runtime-menu-panel,.task-settings-menu:not([open]) > .task-settings-popover { display:none; }
.runtime-spacing { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }.runtime-spacing input { width:100%; }.runtime-spacing span { color:var(--text2,#89939e); font-size:10px; }
.runtime-authority[hidden] { display:none; }
.runtime-controls .runtime-adaptive { font-size:10px; }.runtime-controls .runtime-adaptive__head { flex-wrap:wrap; }
#agent-chat-mount .ai-header-controls { overflow:visible!important; justify-content:flex-start; }
#agent-chat-mount .ai-window-controls { margin-left:auto; display:flex; align-items:center; gap:3px; }
#agent-chat-mount .ai-window-controls .chat-collapse-btn { margin-left:0; }
#agent-chat-mount .ai-header .ca-btn { border-radius:4px; padding:4px 6px; }
#agent-chat-mount .assistant-scope-tabs { padding:0 7px; gap:2px; }
#agent-chat-mount .assistant-scope-tab { padding:6px 6px; font-size:11px; }
#agent-chat-mount .mx-resource-fact { display:flex; gap:8px; justify-content:space-between; margin:5px 0; font-size:10px; }
#agent-chat-mount .mx-resource-fact > span { color:var(--text2); flex:0 0 70px; }
#agent-chat-mount .mx-resource-fact > b { font-weight:500; text-align:right; overflow-wrap:anywhere; }
#agent-chat-mount .mx-resource-facts p { margin:6px 0; font-size:10px; color:var(--text2); line-height:1.5; }
#agent-chat-mount .mx-resource-facts details { margin:8px 0; font-size:10px; }
#agent-chat-mount .mx-resource-facts summary { cursor:pointer; color:var(--text2); }
#agent-chat-mount .mx-next-role { display:block; border-top:1px solid var(--border); padding-top:8px; margin-top:8px; font-size:11px; }
#agent-chat-mount .chat-input-row textarea { min-height:32px; }
#agent-chat-mount .chat-input-row button.send-btn,#agent-chat-mount .chat-input-row button.stop-btn { min-width:52px; padding:6px 9px; }
@media (max-width:800px) { .runtime-team { flex-basis:100%; }.runtime-controls { order:initial; width:auto; }.runtime-menu-panel { position:fixed; top:auto; right:10px; } }

#agent-chat-mount .mx-chat-recipient { display:block; font-size:10px; color:var(--text2); }
