.execution-controls{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.execution-controls select{max-width:100%;flex:1 1 14rem;font:inherit;min-height:2.75rem}
.execution-controls button{min-height:2.75rem;font-size:.875rem}
.execution-status{font-size:1.125rem;font-weight:600;line-height:1.45}
.execution-progress,.execution-metadata{font-size:.8125rem;color:var(--b1x-muted,var(--muted));line-height:1.5}
.execution-events{overflow:auto;max-height:36vh;min-height:6rem;padding:0 1.5rem;overscroll-behavior:contain;overflow-anchor:none}
.execution-events li{margin:.75rem 0}
:root[data-theme] .execution-events summary{font-size:.9375rem;font-weight:550;line-height:1.55;cursor:pointer}
.execution-events pre,.execution-completion pre{font-family:var(--font-code,Consolas,monospace);font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;max-height:22rem;overflow:auto}
.execution-completion{border-top:1px solid var(--line,#4a5568);margin-top:1rem;padding-top:.75rem}
.execution-completion p{font-weight:400;line-height:1.6}
.execution-stop-outcomes p{font-size:.875rem;overflow-wrap:anywhere}
.task-window-scrim{pointer-events:none!important;background:transparent!important;backdrop-filter:none!important}
.task-activity-window .task-window-heading strong{font-size:1.25rem;line-height:1.4}
.task-window-monitor .activity-log{padding:.5rem;overflow:visible}
.task-activity-window .task-window-content{min-height:0;overflow:auto}
@media(max-width:650px){
 .task-activity-window .task-window-header{flex:0 0 auto;padding:.5rem;gap:.5rem;min-height:0}
 .task-activity-window .task-window-heading strong{font-size:1rem;line-height:1.25;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .task-activity-window .task-window-heading small{font-size:.75rem;line-height:1.3}
 .task-activity-window .task-window-context{display:none}
 .task-activity-window .task-window-content{display:block;flex:1 1 0%;min-height:3rem}
 .task-activity-window .task-window-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;flex-shrink:0;min-height:max(44px,1.75em);gap:.35rem}
 .task-activity-window .task-window-tabs .task-window-tool{flex:0 0 auto;min-width:max-content;font-size:.8125rem;white-space:nowrap}
 .execution-events{max-height:30dvh}
 .task-activity-window .task-window-composer{flex:0 1 32%;max-height:32%;min-height:0;overflow:auto}
 .execution-controls button{flex:1 1 8rem}
 .execution-controls select{flex-basis:100%}
}

/* Shared compact task typography across chat, code, research and studio jobs. */
:root[data-density=compact] .task-activity-window .task-window-header{min-height:40px;padding:8px 10px;gap:8px}
:root[data-density=compact] .task-activity-window .task-window-heading strong{font-size:13px;line-height:1.4}
:root[data-density=compact] .task-activity-window .task-window-heading small{font-size:11px}
:root[data-density=compact] .task-window-tabs .task-window-tool{font-size:11px;min-height:30px;padding:5px 8px}
:root[data-density=compact] .execution-status{font-size:13px;line-height:1.5}
:root[data-density=compact] :is(.execution-progress,.execution-metadata,.execution-stop-outcomes p){font-size:11px;line-height:1.5}
:root[data-density=compact] .execution-controls{gap:5px}
:root[data-density=compact] .execution-controls :is(button,select){font-size:11px;min-height:30px;padding:4px 8px}
:root[data-density=compact] .execution-events{padding:0 16px;max-height:28vh}
:root[data-density=compact] .execution-events li{margin:6px 0}
:root[data-density=compact] .execution-events summary{font-size:12px;line-height:1.5}
:root[data-density=compact] :is(.execution-events pre,.execution-completion pre,.execution-completion p){font-size:12px;line-height:1.5}
@media(pointer:coarse){:root[data-density=compact] :is(.execution-controls button,.execution-controls select,.task-window-tabs .task-window-tool){min-height:36px}}

.task-window-header .task-window-cortex.neural-orb{width:26px;height:26px;flex:0 0 26px}
:root[data-density=compact] .execution-summary-cards{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0;padding:8px 0;border-block:1px solid var(--b1x-border)}
:root[data-density=compact] .execution-summary-cards article{display:flex;align-items:baseline;gap:6px;padding:0;border:0;background:transparent;border-radius:0}
:root[data-density=compact] .execution-summary-cards small{font-size:11px}
:root[data-density=compact] .execution-summary-cards strong{font-size:12px}
