/* Execution uses the same disclosure at every depth: text, then chevron. */
:root { --process-ink: #65615b; --process-hover: #37342f; }
:root[data-theme="dark"], :root[data-theme-mode="colorful"] {
  --process-ink: #aaa7a0; --process-hover: #e7e4df;
}
#messageList .process-node,
#messageList .process-node .process-node {
  display: block !important;
  width: auto !important;
  max-width: 100%;
  margin: 5px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  color: var(--process-ink) !important;
}
#messageList .process-node > summary {
  width: fit-content !important;
  max-width: 100%;
  min-height: 32px !important;
  height: auto !important;
  padding: 3px 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--process-ink) !important;
  font: inherit;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#messageList .process-node > summary::-webkit-details-marker { display: none; }
#messageList .process-node > summary::marker { content: ""; }
#messageList .process-label {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  color: inherit !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow-wrap: anywhere;
  white-space: normal;
}
#messageList .process-chevron {
  flex: 0 0 12px;
  width: 12px !important;
  height: 12px !important;
  align-self: center;
  margin: 0 !important;
  color: inherit !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg) !important;
  transition: transform 120ms ease;
}
#messageList .process-node[open] > summary > .process-chevron { transform: rotate(90deg) !important; }
#messageList .process-node > summary:hover { color: var(--process-hover) !important; }
#messageList .process-node > summary:focus-visible,
#messageList .process-retry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#messageList .process-body {
  display: block !important;
  padding: 0 0 2px 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--process-ink);
  min-width: 0;
}
#messageList .process-meta, #messageList .process-line {
  margin: 5px 0 !important;
  padding: 3px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--process-ink) !important;
  font-size: 13px !important;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#messageList .process-body .stream-message.commentary { color: var(--process-ink) !important; }
#messageList .process-output {
  max-width: 100%;
  margin: 4px 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--process-ink) !important;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  tab-size: 2;
}
#messageList .process-retry {
  margin-left: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (pointer: coarse) { #messageList .process-node > summary { min-height: 40px !important; } }
@media (prefers-reduced-motion: reduce) { #messageList .process-chevron { transition: none; } }

/* Running command text breathes in neutral gray; layout and arrows stay still. */
:root { --process-command-ink: #4b4b4b; }
:root[data-theme="dark"], :root[data-theme-mode="colorful"] { --process-command-ink: #bdbdbd; }
#messageList .stream-action.command.running > summary > .process-label,
#messageList .stream-action.command.running [data-process-key$=":command"] .process-output,
#messageList .stream-action-group.command-running > summary > .process-label,
#messageList .process-line.command.running {
  color: var(--process-command-ink) !important;
  animation: process-command-breathe 1.8s ease-in-out infinite;
}
@keyframes process-command-breathe {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}
.power-paused #messageList .process-label,
.power-paused #messageList .process-output,
.power-paused #messageList .process-line { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  #messageList .stream-action.command.running > summary > .process-label,
  #messageList .stream-action.command.running [data-process-key$=":command"] .process-output,
  #messageList .stream-action-group.command-running > summary > .process-label,
  #messageList .process-line.command.running { animation: none; opacity: 1; }
}
