/* Execution surface inherits the shared shell and theme; activity stays borderless. */
.local-responses #attach,.local-responses #task-settings-open,.local-responses #tools-open,.local-responses #voice-button,.local-foundry-no-voice #voice-button,.voice-unavailable #voice-button{display:none!important}
#execution-pane{display:flex;flex:1;flex-direction:column;min-height:0;position:relative;width:100%;max-width:960px;margin-inline:auto;padding:0 28px}
#execution-pane[hidden]{display:none!important}
.execution-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 8px}
.execution-heading h1{font-size:18px;letter-spacing:-.015em;line-height:28px}
.execution-heading a{font-size:12px;min-height:44px;display:flex;align-items:center;color:var(--muted)}
.execution-heading a[aria-disabled=true]{opacity:.65;cursor:not-allowed}
#execution-status,.execution-connection{font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.execution-connection{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#execution-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:24px 4px 24px 0}
#execution-content{min-width:0;max-width:100%}
.execution-task{font:15px/24px var(--font-sans);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px}
.execution-empty{max-width:540px;margin:12dvh auto;color:var(--muted);font-size:15px;line-height:26px;text-align:center}
#execution-nodes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.execution-node{min-width:0;overflow-wrap:anywhere;padding:0}
.execution-child{margin-left:20px}
.execution-row{position:relative;cursor:pointer;min-height:28px;font-size:13px;line-height:20px;color:var(--secondary);padding:3px 0 3px 22px;list-style:none;border-radius:4px}
.execution-row::-webkit-details-marker{display:none}
.execution-row:hover{background:var(--hover)}
.execution-row:focus-visible{outline-offset:1px}
.execution-icon{position:absolute;left:0;top:3px;display:inline-block;width:16px;text-align:center;font-size:14px;color:var(--muted)}
.execution-node[data-kind=thought] .execution-label{font-variant-numeric:tabular-nums}
.execution-node details[open]>.execution-row{color:var(--text)}
.execution-node[data-status=working] .execution-icon{animation:execution-spin 1.8s linear infinite}
.execution-node[data-status=failed] .execution-icon,.execution-error{color:var(--error)}
.execution-outcome{color:var(--muted);font-size:12px;margin-left:8px;white-space:nowrap}
.execution-detail{padding:8px 0 12px 22px;color:var(--secondary);white-space:pre-wrap;font:13px/22px var(--font-code)}
.execution-node>.execution-detail,.execution-node:has(.execution-label) .message-content:has(p){font:14px/21px var(--font-sans);white-space:normal}
.execution-node>.execution-detail{padding:12px 0;color:var(--text)}
.execution-detail.message-content p{font-size:14px;line-height:21px}
.execution-source{font:400 13px/20px var(--font-sans);color:var(--muted);margin-left:6px;overflow-wrap:anywhere}
.execution-meta{display:block;font-size:11px;line-height:18px;color:var(--muted);margin-left:22px}
.execution-meta:empty{display:none}
.execution-error{font-size:13px;padding-left:24px}
#execution-context{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px;color:var(--muted);font-size:11px}
#execution-context>span:not(#execution-model){border:1px solid var(--line);border-radius:20px;padding:3px 8px}
#execution-context button,#execution-pane button,#execution-inspector button{min-height:32px;font-size:12px;line-height:18px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--secondary);padding:6px 10px}
#execution-context button:hover:not(:disabled),#execution-pane button:hover{background:var(--hover)}
#execution-context #execution-background{border-radius:20px}
#execution-controls{grid-column:2;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;min-width:0;align-self:center}
#execution-controls select,#execution-controls button{min-height:32px;padding:4px 6px;border:0;border-radius:6px;background:transparent;font-size:12px;line-height:20px;color:var(--secondary)}
#execution-controls button:hover{background:var(--hover)}
#execution-controls label{flex-shrink:0}
#execution-model{font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
#execution-controls:has(#execution-model-retry:not([hidden])) #execution-model{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#execution-jump{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);background:var(--panel)!important;box-shadow:var(--shadow)}
#execution-inspector{width:min(680px,calc(100vw - 24px))}
#execution-inspector-content{margin-top:16px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/22px var(--font-code)}
.execution-screen.execution-has-run #scroll-area,.execution-screen.execution-has-run #jump-latest,html:not(.voice-available) .execution-screen #voice-button{display:none!important}
.execution-screen #stop:disabled{width:auto;padding-inline:10px;border-radius:16px}
.execution-screen #execution-open[aria-current=page]{background:var(--hover);color:var(--text)}
.local-responses .composer-left-action{display:none}
.local-responses #execution-controls{grid-column:1/3}
#execution-controls label{display:block}
#execution-controls select{width:94px;border-radius:12px;background:var(--hover)}
#execution-controls{flex-wrap:nowrap;overflow:hidden}
#execution-model{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#execution-controls #execution-model-retry{white-space:normal;line-height:16px}
#execution-pane{max-width:none;padding-inline:var(--conversation-inset)}
.execution-heading{padding:4px 0;gap:8px}.execution-heading h1{font-size:14px;line-height:22px}.execution-heading a{min-height:28px}
#execution-scroll{padding:12px 4px 12px 0}
.execution-task{font-size:13px;line-height:21px;margin-bottom:16px}
.execution-task>:first-child{margin-top:0}.execution-task>:last-child{margin-bottom:0}
.execution-task :is(p,ul,ol){margin:0 0 8px}.execution-task :is(ul,ol){padding-inline-start:20px}
.execution-task :is(h1,h2,h3,h4,h5,h6){font-size:14px;line-height:22px;margin:16px 0 8px}
.execution-task blockquote{margin:12px 0;padding-inline-start:12px;border-inline-start:1px solid var(--line);color:var(--secondary)}
.execution-task pre{position:relative;max-width:100%;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:44px 12px 12px;font:12px/20px var(--font-code)}
.execution-task code{font-family:var(--font-code)}.execution-task :not(pre)>code{padding:2px 4px;border-radius:4px;background:var(--hover);font-size:.9em}
.execution-empty{font-size:13px;line-height:21px;margin:20px 0;max-width:none;text-align:left}
.execution-detail{font-size:13px;line-height:21px}
.execution-node>.execution-detail,.execution-node:has(.execution-label) .message-content:has(p),.execution-detail.message-content p,.execution-prose,.execution-prose p{font:400 14px/21px var(--font-sans)}
.execution-source{color:var(--muted)}
@media(pointer:coarse){.execution-row,#execution-controls select,#execution-controls button,#execution-context button{min-height:44px}.execution-screen .composer-options :is(.task-trigger,.tools-button),.execution-screen #attach,.execution-screen #send,.execution-screen #stop{min-width:44px;width:44px;min-height:44px;height:44px}}
@media(max-width:640px){#execution-controls{gap:0 4px}.execution-screen .composer-right-actions{align-items:flex-end}}
@media(max-height:480px){.execution-screen .composer-footer>#prompt{min-height:32px;max-height:64px}.execution-screen .disclaimer{display:none}}
@keyframes execution-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.execution-node[data-status=working] .execution-icon{animation:none}}
@media(max-width:640px){.execution-heading{padding-top:0}.execution-child{margin-left:12px}#execution-scroll{padding-top:12px}.execution-empty{margin-block:20px}#execution-context{gap:4px}#execution-context>button[disabled]{display:none}.execution-detail{padding-left:16px}}
.tool-approval-surface:empty{display:none}
.tool-approval-card{margin:10px 28px;padding:12px;border:1px solid var(--border,#d0d7de);border-radius:10px;background:var(--surface,#fff)}
.tool-approval-card pre{max-height:160px;overflow:auto;white-space:pre-wrap;font:12px/1.45 ui-monospace,monospace}
.tool-approval-card div{display:flex;justify-content:flex-end;gap:8px}.tool-approval-card button{min-height:32px;padding:0 12px;border:1px solid var(--border,#d0d7de);border-radius:6px;background:transparent}.tool-approval-card button:last-child{background:#1f883d;color:#fff;border-color:#1f883d}
@media(max-width:640px){.tool-approval-card{margin-inline:0}}
@media(pointer:coarse){.tool-approval-card button{min-height:44px}}
