/* Chat process disclosures follow the incumbent Moro theme. */
.agent-chat-builder .chat-process {width:100%; max-width:none; min-width:0; margin:2px 0 6px; color:var(--muted); font-size:13px}
.agent-chat-builder .chat-process > summary,
.agent-chat-builder .chat-process-step > summary {display:flex; align-items:center; gap:9px; min-height:36px; padding:6px 0; border-radius:4px; list-style:none; cursor:pointer}
.agent-chat-builder .chat-process summary::-webkit-details-marker {display:none}
.agent-chat-builder .chat-process > summary:hover,
.agent-chat-builder .chat-process-step > summary:hover {background:transparent; color:var(--ink)}
.agent-chat-builder .chat-process summary:focus-visible {outline:2px solid var(--accent); outline-offset:3px}
.agent-chat-builder .chat-process summary > .ui-icon {flex:none; width:16px; height:16px; color:var(--muted)}
.agent-chat-builder .chat-process summary > .ui-icon:last-child {width:13px; height:13px; margin-inline-start:2px; transition:transform .15s}
.agent-chat-builder .chat-process details[open] > summary > .ui-icon:last-child,
.agent-chat-builder .chat-process[open] > summary > .ui-icon:last-child {transform:rotate(180deg)}
.agent-chat-builder .chat-process-title {font-weight:500}
.agent-chat-builder .chat-process-count {font-size:12px}
.agent-chat-builder .chat-process-count::before {content:'·'; margin-inline-end:6px; color:var(--subtle)}
.agent-chat-builder .chat-process:has(.agent-chat-progress[data-running="true"]):not([hidden]) + .agent-chat-reply > .agent-chat-pending {display:none}
.agent-chat-builder .chat-process :is(.agent-chat-progress,.agent-chat-execution-list,.chat-process-children) {display:grid; gap:2px; list-style:none; padding:0 0 0 18px; margin:3px 0 8px 7px; border-inline-start:1px solid var(--border)}
.agent-chat-builder .chat-process li {min-width:0}
.agent-chat-builder .chat-process-step {padding:0; border:0; margin:0; min-width:0}
.agent-chat-builder .chat-process-step > summary {display:grid; grid-template-columns:16px minmax(0,1fr) auto 13px; gap:9px}
.agent-chat-builder .chat-process-step > summary::before {display:none}
.agent-chat-builder .chat-process .agent-chat-execution-heading {display:flex; flex-wrap:nowrap; gap:8px; padding:0; min-width:0; font-weight:400}
.agent-chat-builder .chat-process .agent-chat-execution-heading strong {color:inherit; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
.agent-chat-builder .chat-process-preview {min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-family:var(--mono,monospace); font-size:12px}
.agent-chat-builder .chat-process-status {font-size:11px; white-space:nowrap; color:var(--muted)}
.agent-chat-builder .chat-process-status[data-status="running"] {color:var(--accent)}
.agent-chat-builder .chat-process-status:is([data-status="error"],[data-status="failed"],[data-status="blocked"],[data-status="budget_exhausted"]) {color:var(--error-text,#a23e3d)}
.agent-chat-builder .chat-process-body {min-width:0; border:1px solid var(--border); border-radius:10px; background:var(--canvas); margin:4px 0 10px; padding:12px 14px}
.agent-chat-builder .chat-process-body > .agent-chat-execution-payload {margin:0 0 12px}
.agent-chat-builder .chat-process-body .agent-chat-execution-payload > strong {display:block; color:var(--muted); font-weight:500; font-size:11px; margin-bottom:6px}
.agent-chat-builder .chat-process-body pre {background:transparent; border:0; border-radius:0; padding:0; margin:6px 0; font-size:12px; line-height:1.6}
.agent-chat-builder .chat-process-body .execution-code-header > strong {font-weight:500; font-size:12px}
.agent-chat-builder .chat-process-footer {display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px 12px; font-size:11px; color:var(--muted)}
.agent-chat-builder .chat-process-note {margin:0 0 10px; color:var(--muted)}
.agent-chat-builder .chat-process .agent-chat-progress-fields {font-size:11px; grid-template-columns:minmax(64px,25%) minmax(0,1fr)}
.agent-chat-builder .chat-process .agent-chat-progress-fields :is(dt,dd) {min-width:0; overflow-wrap:anywhere}
.agent-chat-builder .agent-runtime-explanation {border:0; padding:0; margin:0 0 8px; color:var(--muted); font-size:12px}
.agent-chat-builder .agent-runtime-explanation > summary {font-weight:400; cursor:pointer}
.agent-chat-builder .chat-process .session-task-panel {border:0; padding:0; margin:0; background:transparent}
.agent-chat-builder .chat-reply-actions {display:flex; align-items:center; gap:4px; min-height:24px; color:var(--muted); font-size:11px}
.shell .agent-chat-builder .chat-reply-actions .icon-button {flex:none; width:24px; min-height:24px; padding:4px; color:var(--muted)}
.shell .agent-chat-builder .chat-reply-actions .icon-button .ui-icon {width:14px; height:14px}
.shell .agent-chat-builder .chat-reply-actions .icon-button:hover {color:var(--ink)}
.agent-chat-builder .chat-reply-copy-status {min-width:0; overflow-wrap:anywhere}
.agent-chat-builder .chat-reply-actions .icon-button > span {display:none}
.agent-chat-builder .chat-reply-copy-status:empty {display:none}
@media(max-width:600px) {
  .agent-chat-builder .chat-process :is(.agent-chat-progress,.agent-chat-execution-list,.chat-process-children) {padding-inline-start:10px; margin-inline-start:6px}
  .agent-chat-builder .chat-process-step > summary {gap:6px}
  .agent-chat-builder .chat-process .agent-chat-execution-heading {flex-wrap:wrap; gap:2px}
  .agent-chat-builder .chat-process-preview {flex-basis:100%}
  .agent-chat-builder .chat-process-body {padding:10px}
  .shell .agent-chat-builder .chat-reply-actions .icon-button {width:44px; min-height:44px}
}
@media(pointer:coarse) {
  .agent-chat-builder .chat-process :is(summary,.button) {min-height:44px}
  .shell .agent-chat-builder .chat-reply-actions .icon-button {width:44px; min-height:44px}
}
@media(prefers-reduced-motion:reduce) {.agent-chat-builder .chat-process summary > .ui-icon:last-child {transition:none}}


/* Public model notes and plan progress share the recorded execution rail. */
.agent-chat-builder .chat-process-thought-line {display:grid; grid-template-columns:16px minmax(0,1fr) auto 13px; align-items:center; gap:9px; min-height:36px; padding:6px 0}
.agent-chat-builder .chat-process-thought-line > .ui-icon {width:16px; height:16px; color:var(--muted)}
.agent-chat-builder .chat-process-thought .chat-process-preview {font-family:inherit}
.agent-chat-builder .chat-process-thought-body {border:0; border-inline-start:1px solid var(--border); border-radius:0; background:transparent; padding:4px 12px; margin-inline-start:7px; max-height:280px; overflow:auto}
.agent-chat-builder .chat-process-thought-note {margin:4px 0 8px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6}
.agent-chat-builder .chat-process-plan {display:grid; gap:6px; margin:6px 0; padding-inline-start:20px}
.agent-chat-builder .chat-process-plan li {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; overflow-wrap:anywhere}
.agent-chat-builder .chat-process-plan small,.agent-chat-builder .chat-process-thought-count {font-size:11px; color:var(--muted); white-space:nowrap}
@media(max-width:600px){.agent-chat-builder .chat-process-thought-line {gap:6px}.agent-chat-builder .chat-process-plan li {grid-template-columns:minmax(0,1fr)} }

.agent-chat-builder .chat-process-status[data-status="unconfirmed"] {color:#8c5a13}

/* The current model stream is temporary; tool receipts and explicit plans stay below. */
.agent-chat-builder .chat-transient-thinking {max-height:200px; overflow:auto; margin:4px 0 10px 7px; padding:4px 12px; border-inline-start:1px solid var(--border); color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; font-size:13px}
.agent-chat-builder .chat-transient-thinking[hidden] {display:none}
.agent-chat-builder .chat-process[data-thinking="true"] + .agent-chat-reply > .agent-chat-pending {display:none}

/* File operations stay as one line; recorded content opens in the shared file tabs. */
.agent-chat-builder .chat-file-action {display:flex; align-items:center; gap:8px; min-height:36px; min-width:0; padding:4px 0}
.agent-chat-builder .chat-file-action > .ui-icon {flex:none; width:16px; height:16px}
.agent-chat-builder .chat-file-action-label {flex:none}
.agent-chat-builder .chat-file-action-name {min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:0; border-radius:3px; background:transparent; color:inherit; font:inherit; text-decoration:underline; text-decoration-color:var(--border); text-underline-offset:3px; padding:3px 0; cursor:pointer}
.agent-chat-builder .chat-file-action-name:hover {color:var(--ink); text-decoration-color:currentColor}
.agent-chat-builder .chat-file-action-name:focus-visible {outline:2px solid var(--accent); outline-offset:2px}
.agent-chat-builder .chat-file-action:is([data-status="error"],[data-status="failed"],[data-status="blocked"]) .chat-file-action-label {color:var(--error-text,#a23e3d)}
.studio-artifacts .chat-file-record {min-width:0; padding:12px; color:var(--ink); font-size:12px; overflow-wrap:anywhere}
.studio-artifacts .chat-file-record-heading {display:flex; align-items:center; gap:12px}
.studio-artifacts .chat-file-record-heading .chat-process-status {margin-inline-start:auto; color:var(--muted)}
.studio-artifacts .chat-file-record-path,.studio-artifacts .chat-file-record-notice {margin:6px 0 12px; color:var(--muted); line-height:1.6}
.studio-artifacts .chat-file-record-error {color:var(--error-text,#a23e3d); margin:8px 0; white-space:pre-wrap}
.studio-artifacts .chat-file-record-section {margin:12px 0}
.studio-artifacts .chat-file-record-section h3 {margin:0 0 6px; font-size:12px; font-weight:500; color:var(--muted)}
.studio-artifacts .chat-file-record-section pre {margin:0; padding:12px; border:1px solid var(--border); border-radius:6px; background:var(--rail); font-size:12px; line-height:1.6}
.studio-artifacts .chat-file-record-receipt {margin-top:12px; color:var(--muted)}
.studio-artifacts .chat-file-record-receipt > summary {cursor:pointer; padding:6px 0}
@media(pointer:coarse) {.agent-chat-builder .chat-file-action,.agent-chat-builder .chat-file-action-name {min-height:44px}}
