.session { --session-content-width: var(--agent-conversation-width); --session-card-width: 80%; --agent-fs-ui: calc(var(--fs-ui) + var(--agent-font-zoom, 0px)); --agent-fs-small: calc(var(--fs-small) + var(--agent-font-zoom, 0px)); --agent-fs-code: calc(var(--fs-code) + var(--agent-font-zoom, 0px)); flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--bg-app); color: var(--fg); font-size: var(--fs-ui); } .conversation { container-type: inline-size; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--border); } .conversation[hidden] { display: none; } .docked { grid-template-columns: minmax(0, 1fr); overflow: hidden; } .docked .conversation { border-right: 0; } /* The pane takes its width while the conversation keeps 240px (half of a narrower session); keep that minimum in step with ChangesResizer. */ .withChanges { grid-template-columns: minmax(min(240px, 50%), 1fr) minmax(0, var(--agent-changes-width, 280px)); } .fitWidth .stream > * { width: 100%; } .fitWidth .userMessage > .user { max-width: var(--session-card-width); } .fitWidth .composerArea { max-width: none; } /* Under the composer: where the task works on the left; changes, meters and terminal on the right. */ .statusBar { display: flex; align-items: center; gap: var(--space-2); min-width: 0; height: 24px; padding: 0 6px; overflow: hidden; color: var(--fg-subtle); font-size: var(--fs-small); } .where { display: inline-flex; flex: 0 1 auto; align-items: center; gap: var(--space-2); min-width: 0; overflow: hidden; } .fact { display: inline-flex; flex: 0 1 auto; align-items: center; gap: var(--space-1); min-width: 0; white-space: nowrap; } .factText { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .state { display: inline-flex; flex: none; align-items: center; height: 22px; white-space: nowrap; } /* The rest of the line: the changes at its start, the meter, time and terminal at its end. On a line of its own (a narrow session) the changes line up with the facts above. */ .statusEnd { display: inline-flex; flex: 1 1 auto; justify-content: flex-end; align-items: center; gap: var(--space-2); min-width: 0; } /* Shrinks before the terminal buttons do: in a narrow docked session the meters clip, not the controls. */ .statusMeters { display: inline-flex; flex: 0 1 auto; align-items: center; height: 22px; gap: var(--space-2); max-width: 100%; min-width: 0; overflow: hidden; } .statusActions { display: flex; flex: none; align-items: center; gap: var(--space-0-5); } /* What changed (files, commits) above the meters; both open the Changes pane. */ .statusChips { display: inline-flex; align-items: center; gap: var(--space-1); max-width: 100%; min-width: 0; } .statusChip { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 22px; max-width: 100%; min-width: 0; padding: 0 6px; overflow: hidden; border: none; border-radius: var(--radius-control); background: transparent; color: inherit; font: inherit; font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; } .statusChip:hover, .statusChip[aria-expanded="true"] { background: var(--bg-toolbar-hover); color: var(--fg-strong); } /* In a narrow docked session the chip is narrower than its text: the label ends in an ellipsis. */ .statusChipLabel { display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .muted { color: var(--fg-subtle); } /* The archived-task notice: an editor notification banner above the conversation. */ .banner { flex: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-1) var(--space-2); min-height: 36px; padding: 9px 12px; background: var(--bg-feedback-warning); border-bottom: 1px solid var(--border-feedback-warning); color: var(--fg-strong); } .bannerText { flex: 1 1 240px; min-width: 0; max-height: 33vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .bannerSpacer { flex: 1; } /* The conversation with its find bar. */ .streamArea { min-width: 0; position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; } .stream { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; padding: var(--space-3); display: flex; flex-direction: column; font-size: var(--agent-fs-ui, var(--fs-ui)); } /* Actual row heights keep WebKit's scrollbar and cross-message selections anchored. */ .stream > * { flex: none; min-width: 0; width: min(100%, var(--session-content-width)); max-width: 100%; margin-inline: auto; box-sizing: border-box; /* Each row paints into its own layer, leaving the stream's scrolled contents empty. WebKit never frees that layer's surfaces when its height keeps crossing 2048px (turns fold and unfold below the limit while a reply streams), and the app process grows by ~1 GB per 40 crossings. */ will-change: transform; } .conversationRow { min-width: 0; contain-intrinsic-size: auto 120px; } /* Laid out once, an off-screen row skips rendering at its remembered size (`useOffscreenRows`). */ .conversationRow[data-measured] { content-visibility: auto; } /* Keep turns distinct and the work within a turn close to its author. Not `* + *`: a universal adjacent-sibling rule makes Chromium restyle whole sibling subtrees on every DOM insertion anywhere in the window, which costs every editor scroll frame. */ .stream > :where(:not(:first-child)) { margin-top: var(--space-4); } .stream > [data-process] + [data-process] { margin-top: var(--space-2); } .stream:focus { outline: none; } /* Scrolled up: one click back to the latest message, centred over the stream's end like the conversation. */ .jumpToLatest { position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--space-2); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: var(--h-control-small); height: var(--h-control-small); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-toolbar-button); background: var(--bg-app); color: var(--fg-muted); cursor: pointer; } .jumpToLatest:hover { background: var(--bg-hover); } /* Your message with its actions, shown on hover. */ .message { position: relative; display: flex; flex-direction: column; align-items: stretch; } /* Keep the author attached to the message. */ .messageHead { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-2); min-height: var(--h-control-small); margin-bottom: calc(var(--space-2) / 2); } .messageTime { -webkit-user-select: none; user-select: none; color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); white-space: nowrap; } .messageHead > .role { margin-bottom: 0; } /* User cards and their footers share a right edge. */ .userMessage { display: flex; flex-direction: column; align-items: flex-end; } .userMessage > .user { width: fit-content; max-width: min(var(--session-card-width), 720px); } .userMessage > .messageHead { justify-content: flex-end; } /* The actions and time below a message, in flow so they never cover the next entry. */ .messageFooter { display: flex; align-items: center; gap: var(--space-2); min-height: var(--h-control-small); max-width: 100%; flex-wrap: wrap; } /* Who wrote the message. */ .role { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); -webkit-user-select: none; user-select: none; } .agentMessage { display: flex; flex-direction: column; align-items: flex-start; } .agentAuthor { display: flex; align-items: center; min-height: var(--h-control-small); } .agentAuthor > .role { margin-bottom: 0; } :where(.conversationRow[data-author]) > :nth-child(2) { margin-top: calc(var(--space-2) / 2); } .conversationRow > .process, .conversationRow > .permissionLine { max-width: 100%; } /* Replies read as plain text on the panel, like other tool-window content. */ .agentCard { box-sizing: border-box; max-width: 100%; min-width: 0; overflow-wrap: anywhere; } @container (max-width: 640px) { .stream { --session-card-width: 96%; } } /* A narrow docked session: where it works gives way first, the changes and meters stay readable. */ @container (max-width: 420px) { .where { flex-shrink: 2; } .processBody, .turnBody { padding-left: var(--space-2); } .processBody > .thoughtEntry ~ .toolEntry { padding-left: var(--space-3); } } .messageActions { display: inline-flex; gap: var(--space-1); max-width: 100%; flex-wrap: wrap; opacity: 0; pointer-events: none; -webkit-user-select: none; user-select: none; } .messageFooter > .messageTime, .messageHead > .messageTime { opacity: 0; } /* A turn's final reply keeps its time and actions in view; your messages show theirs on hover. */ .conversationRow:nth-last-child(1 of [data-message]) .agentMessage .messageTime, .conversationRow:nth-last-child(1 of [data-message]) .agentMessage .messageActions, .conversationRow:nth-last-child(1 of [data-message]) .reply .messageActions, .message:hover .messageTime, .agentMessage:hover .messageFooter > .messageTime, .message:focus-within .messageTime, .agentMessage:focus-within .messageFooter > .messageTime, .message:hover .messageActions, .reply:hover .messageActions, .agentMessage:hover .messageActions, .agentMessage:focus-within .messageActions, .message:focus-within .messageActions, .reply:focus-within .messageActions, .messageActions[data-copied], .messageActions:focus-within { opacity: 1; pointer-events: auto; } .reply { position: relative; } .replyFooter { position: absolute; top: 100%; left: 0; box-sizing: border-box; display: flex; min-height: 24px; padding-top: 2px; -webkit-user-select: none; user-select: none; } @media (hover: none) { .messageActions { opacity: 1; pointer-events: auto; } .replyFooter { position: static; margin-top: 4px; opacity: 1; pointer-events: auto; } } .findBar { flex: none; display: flex; align-items: center; gap: var(--space-0-5); padding: 4px 8px; border-bottom: 1px solid var(--border); } .findField { flex: 1; min-width: 0; } .findCount { color: var(--fg-subtle); font-size: var(--fs-small); white-space: nowrap; } ::highlight(agent-find) { background-color: var(--bg-text-search-result); } ::highlight(agent-find-current) { background-color: var(--bg-text-search-result-current); } .user { width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: var(--radius-tab); background: var(--bg-hover); color: var(--fg); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; } .editMessage { width: 100%; box-sizing: border-box; padding: 6px 8px; resize: vertical; font: inherit; color: var(--fg-strong); background: var(--bg-input); border: 1px solid var(--accent); border-radius: var(--radius-control); outline: none; } .editBar { display: flex; align-items: center; gap: var(--space-2); margin-top: 6px; font-size: var(--fs-small); } .editButtons { display: flex; gap: var(--space-1-5); margin-left: auto; } .markdown { line-height: 1.5; overflow-wrap: anywhere; } .markdown :global(p) { margin: 0 0 8px; } .markdown :global(p:last-child) { margin-bottom: 0; } .markdown { /* A tint of the text colour: reads as code on any background, and a selection over it doesn't leave light boxes the way an opaque near-white fill does. */ --md-code-bg: color-mix(in srgb, var(--fg) 7%, transparent); } .markdown :global(code) { font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); padding: 0 2px; border-radius: 3px; background: var(--md-code-bg); } .markdown :global(pre) { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--radius-small); background: var(--md-code-bg); overflow: auto; } .markdown :global(pre code) { display: block; padding: 0; background: none; } .codeBlock { position: relative; margin: 0 0 8px; } .codeBlock > :global(pre) { margin: 0; } .codeCopy { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: var(--radius-small); background: var(--bg-elev); color: var(--fg-secondary); cursor: pointer; opacity: 0; -webkit-user-select: none; user-select: none; } .codeBlock:hover > .codeCopy, .markdown :global([data-mermaid]:hover) .codeCopy, .codeCopy:focus-visible { opacity: 1; } /* A drawn diagram carries its own tools at the top-right; Copy moves aside. */ .markdown :global([data-mermaid][data-mermaid-state="ok"]) .codeCopy { right: 56px; } .codeCopy:hover { background: var(--bg-hover); } /* Mermaid diagrams: the source stays until the diagram is drawn (and next to an error), and the Copy button lives on the block — the drawn diagram hides the code block that would otherwise carry it. */ .markdown :global([data-mermaid]) { position: relative; margin: 0 0 8px; } .markdown :global([data-mermaid] > pre) { margin: 0; } .markdown :global([data-mermaid-state="ok"] > pre) { display: none; } .markdown :global([align="left" i]) { --mermaid-align: left; --mermaid-margin-left: 0; --mermaid-margin-right: auto; } .markdown :global([align="right" i]) { --mermaid-align: right; --mermaid-margin-left: auto; --mermaid-margin-right: 0; } .markdown :global([align="center" i]), .markdown :global(center) { --mermaid-align: center; --mermaid-margin-left: auto; --mermaid-margin-right: auto; } .markdown :global(.mermaid-output) { overflow-x: auto; overflow-y: hidden; text-align: var(--mermaid-align, center); /* Node labels are drawing, not text: selecting across a reply skips them. */ -webkit-user-select: none; user-select: none; } .markdown :global(.mermaid-output svg[data-natural-width]) { display: block; margin: 0 var(--mermaid-margin-right, auto) 0 var(--mermaid-margin-left, auto); width: calc(min(var(--diagram-width), 100%) * var(--markdown-zoom-scale, 1)); height: auto; } .markdown :global([data-mermaid-state="error"] > .mermaid-output) { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--danger); border-radius: var(--radius-small); background: var(--bg-elev); color: var(--danger); font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); text-align: left; white-space: pre-wrap; } .fileLink { color: var(--link); cursor: pointer; } .fileLink:hover { text-decoration: underline; } .markdown :global(ul), .markdown :global(ol) { --md-list-indent: 1.55em; margin: 0 0 8px; padding-left: var(--md-list-indent); list-style: none; } .markdown :global(ol) { --md-list-indent: 2.1em; } .markdown :global(ol:has(> li:nth-child(100))) { --md-list-indent: 2.75em; } /* Markers are drawn as pseudo-elements: WebKit paints a selection box around a native marker, leaving a broken stripe down the gutter when a list is selected. */ .markdown :global(li) { position: relative; } .markdown :global(li)::before { position: absolute; right: calc(100% + 0.45em); white-space: nowrap; -webkit-user-select: none; user-select: none; } .markdown :global(ul > li)::before { content: "•"; } .markdown :global(ul ul > li)::before { content: "◦"; } .markdown :global(ul ul ul > li)::before { content: "▪"; } .markdown :global(ol > li)::before { content: counter(list-item) "."; font-variant-numeric: tabular-nums; } .markdown :global(a) { color: var(--link); } .markdown :global(table) { display: block; margin: 0 0 8px; overflow: auto; border-collapse: collapse; } .markdown :global(th), .markdown :global(td) { /* `overflow-wrap: anywhere` from .markdown would otherwise squeeze a column to a few letters. */ min-width: 6em; border: 1px solid var(--border); padding: 4px 8px; } .markdown :global(h1), .markdown :global(h2), .markdown :global(h3), .markdown :global(h4), .markdown :global(h5), .markdown :global(h6) { margin: 12px 0 6px; color: var(--fg-strong); font-size: 1em; line-height: 1.3; } .markdown :global(h1) { font-size: 1.15em; } .markdown :global(h2) { font-size: 1.08em; } .markdown :global(blockquote) { margin: 0 0 8px; padding: 0 10px; border-left: 3px solid var(--border-strong); color: var(--fg-secondary); } .markdown :global(hr) { margin: 8px 0; border: 0; border-top: 1px solid var(--border); } .markdown :global(img) { max-width: calc(100% * var(--markdown-zoom-scale, 1)); } .markdown :global(img[data-natural-width]) { width: calc(min(var(--image-width), 100%) * var(--markdown-zoom-scale, 1)); height: auto; } .loadImage { padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--bg-elev); color: var(--fg-secondary); font: inherit; cursor: pointer; } .loadImage:hover { background: var(--bg-hover); } .markdown :global(li:has(> input[type="checkbox"])) { margin-left: calc(-1 * var(--md-list-indent)); } .markdown :global(li:has(> input[type="checkbox"]))::before { content: none; } .markdown > :global(:first-child) { margin-top: 0; } .markdown > :global(:last-child) { margin-bottom: 0; } .thoughtEntry, .toolEntry { min-width: 0; } .thought summary, .toolDetails > summary { cursor: pointer; list-style: none; } .thought summary::-webkit-details-marker, .toolDetails > summary::-webkit-details-marker { display: none; } .thought summary { display: flex; align-items: center; gap: var(--space-1-5); min-width: 0; min-height: var(--h-row); padding: 0 calc(var(--space-2) / 2); border-radius: var(--radius-row); color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); -webkit-user-select: none; user-select: none; } .thought summary:hover { background: var(--bg-hover); color: var(--fg); } .thoughtChevron { flex: none; } .thoughtPreview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .thought[open] .thoughtChevron { transform: rotate(90deg); } .thoughtBody { margin: var(--space-1-5) 0 var(--space-1) 10px; padding-left: var(--space-3); border-left: 1px solid var(--border); color: var(--fg-secondary); } .thoughtText { margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--border-strong); color: var(--fg-secondary); white-space: pre-wrap; } .tool { display: flex; align-items: center; gap: var(--space-1-5); min-width: 0; box-sizing: border-box; min-height: var(--h-row); padding: 0 calc(var(--space-2) / 2); border-radius: var(--radius-row); color: var(--fg-secondary); width: 100%; max-width: 100%; } .toolDetails > summary.tool:hover { background: var(--bg-hover); color: var(--fg); } .tool > svg { flex: none; } .toolTitle { min-width: 0; font-size: var(--agent-fs-small, var(--fs-small)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .toolChevron { flex: none; } .toolChevronSpacer { width: 12px; flex: none; } .toolDetails[open] > summary .toolChevron { transform: rotate(90deg); } .toolDiff { font: inherit; font-size: var(--agent-fs-small, var(--fs-small)); border: 0; background: none; padding: 0 4px; border-radius: var(--radius-small); cursor: pointer; white-space: nowrap; } .toolDiff:hover { background: var(--bg-hover); } /* Reasoning and tool calls between messages, folded as one block per turn. */ .processRun > summary { cursor: pointer; list-style: none; } .processRun > summary::-webkit-details-marker { display: none; } .processSummary { display: flex; align-items: center; gap: var(--space-1-5); width: 100%; max-width: 100%; box-sizing: border-box; min-height: var(--h-row); padding: 0 calc(var(--space-2) / 2); border-radius: var(--radius-row); color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); -webkit-user-select: none; user-select: none; } .processSummary:hover { background: var(--bg-hover); color: var(--fg); } .processChevron { flex: none; transition: transform 120ms ease; } .processRun[open] .processChevron { transform: rotate(90deg); } .processRun:not([open]) > .processBody { min-width: 0; display: none; } /* The counts keep their line; what runs now gives way and ellipsizes. */ .processParts { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* What the run is doing now, after its counts. */ .processCurrent { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--fg-subtle); text-overflow: ellipsis; white-space: nowrap; } /* An open run stays bounded and scrolls on its own, so a long one doesn't push the reply away. */ .processBody { display: flex; flex-direction: column; gap: var(--space-0-5); max-height: calc(var(--h-row) * 16); overflow-y: auto; margin: 2px 0 0 10px; padding-left: var(--space-3); border-left: 1px solid var(--border); } .processBody > .thoughtEntry ~ .toolEntry { padding-left: var(--space-4); } .output { margin: 4px 0 4px 22px; max-height: 240px; overflow: auto; padding: 8px 10px; border-radius: var(--radius-small); border: 1px solid var(--border); background: var(--bg-elev); font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg-secondary); } .plan { display: grid; gap: var(--space-0-5); } .planTitle { font-weight: 600; color: var(--fg-strong); } .planItem { display: flex; align-items: center; gap: var(--space-1-5); } .planDone { color: var(--fg-muted); text-decoration: line-through; } .permissionLine { box-sizing: border-box; display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0; padding: var(--space-2); border: 1px solid var(--border-feedback-warning); border-radius: var(--radius-small); background: var(--bg-feedback-warning); color: var(--fg-secondary); } .permissionLine > svg { flex: none; margin-top: calc(var(--space-2) / 4); } .permissionAsking > svg { color: var(--warning); } .permissionBody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); } .permissionTitle { color: var(--fg-strong); font-weight: 400; } .permissionCommand { min-width: 0; max-width: 100%; max-height: calc((var(--lh-code) + var(--agent-font-zoom, 0px) * 1.6) * 6); box-sizing: border-box; margin: 0; padding: var(--space-2); overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--bg-editor); color: var(--fg); font-family: var(--font-mono); font-size: var(--agent-fs-code, var(--fs-code)); line-height: calc(var(--lh-code) + var(--agent-font-zoom, 0px) * 1.6); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; } .permissionCommand:focus-visible, .permissionDone:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; } .permissionDetail { max-height: 33vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .permissionAnswers { min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); } .permissionOption { min-width: 0; max-width: 100%; padding-inline: var(--space-3); } .permissionOptionLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .permissionPrefix { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); } .permissionDone { padding: calc(var(--space-2) / 2) 0; border: 0; border-radius: var(--radius-small); background: none; color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); } .permissionRecord { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .error { display: flex; gap: var(--space-1-5); align-items: flex-start; color: var(--danger); white-space: pre-wrap; overflow-wrap: anywhere; } .working { display: flex; align-items: center; gap: var(--space-2); color: var(--fg-muted); } .retrying { color: var(--warning); } .composerArea { flex: none; display: flex; flex-direction: column; gap: var(--space-1-5); align-self: center; width: 100%; max-width: calc(var(--session-content-width) + var(--space-3) * 2); box-sizing: border-box; padding: var(--space-2) var(--space-3) var(--space-4); } .background { display: flex; flex-direction: column; gap: var(--space-0-5); } .backgroundTask { display: flex; align-items: center; gap: var(--space-1-5); min-height: 24px; padding: 0 4px 0 8px; border-radius: var(--radius-row); background: var(--bg-elev); color: var(--fg-muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; } .backgroundText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .queue { display: flex; flex-direction: column; gap: var(--space-0-5); } .queued { display: flex; align-items: center; gap: var(--space-1-5); min-height: 28px; padding: 0 4px 0 8px; border-radius: var(--radius-row); background: var(--bg-elev); font-size: var(--agent-fs-ui, var(--fs-ui)); } .queuedText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Meters that don't fit wrap onto a hidden second row instead of being cut in half. */ .meters { flex: 0 1 auto; min-width: 0; height: 22px; overflow: hidden; display: inline-flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 0 10px; color: var(--fg-subtle); font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; } .meter { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; height: 22px; gap: 5px; overflow: hidden; } .usageBar { width: 36px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; } .usageBar > span { display: block; height: 100%; background: var(--fg-muted); } .images { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin-top: 4px; } .imageItem { position: relative; display: inline-flex; } .imageButton { padding: 0; border: 0; background: none; cursor: zoom-in; } .image { display: block; max-width: 240px; max-height: 160px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-small); } .removeImage { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-popup); color: var(--fg); cursor: pointer; } .attachments { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-1-5); margin-top: 4px; font-size: var(--agent-fs-small, var(--fs-small)); } .attachment { display: inline-flex; align-items: center; gap: var(--space-1); } .changes { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; } /* On the conversation's border; the hit area reaches 3px either side of it. */ .changesResizer { position: absolute; z-index: 1; top: 0; bottom: 0; left: -1px; width: 0; outline: none; } .changesResizer::after { content: ""; position: absolute; inset: 0 -3px; cursor: col-resize; } .changesResizer:focus-visible::after { background: color-mix(in srgb, var(--focus-ring) 55%, transparent); } .changesHeader { min-width: 0; display: flex; align-items: center; gap: var(--space-1-5); height: 32px; flex: none; padding: 0 6px 0 10px; border-bottom: 1px solid var(--border); } .changesTitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--fg-strong); } .changesHeader > .muted { flex: none; white-space: nowrap; } .changesScope { flex: none; padding: 6px 10px 2px; } .changesSummary { flex: none; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; color: var(--fg-subtle); white-space: pre; } .changesList { flex: 1; min-height: 0; display: flex; flex-direction: column; } .changesList > * { flex: 1; min-height: 0; } .changesEmpty { padding: 8px 10px; color: var(--fg-muted); } .change { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-1); } .changeName { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .changeDir { flex: 1 1 0; min-width: 0; padding-left: 4px; color: var(--fg-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .changeStat { flex: none; padding-right: 8px; font-size: var(--fs-small); white-space: nowrap; font-variant-numeric: tabular-nums; } /* Group and commit rows of the grouped Changes pane. */ .changeGroup { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-1-5); } .changeGroupName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--fg-strong); } .changeCommit { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-1-5); } .changeCommitHash { flex: none; color: var(--fg-subtle); font-family: var(--font-mono); } .changeCommitSummary { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .changeCommitTime { flex: none; color: var(--fg-subtle); font-size: var(--fs-small); } .added { color: var(--vcs-added); } .removed { color: var(--danger); } /* Subagents: a card per subagent in its parent's conversation, and the way into its own. */ .subagent { display: flex; flex-direction: column; gap: var(--space-1); padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--bg-elev); } .subagentHead { display: flex; align-items: center; gap: var(--space-1); min-width: 0; } .subagentOpen { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-1-5); padding: 2px 4px; margin: -2px -4px; border: 0; border-radius: var(--radius-row); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; } .subagentOpen:hover { background: var(--bg-hover); } .subagentTitle { flex: none; max-width: 50%; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subagentDescription { flex: 1 1 0; min-width: 0; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subagentMeta { flex: none; margin-left: auto; color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); font-variant-numeric: tabular-nums; white-space: nowrap; } .subagentActivity { padding-left: 22px; color: var(--fg-muted); font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subagentSection > summary { padding-left: 22px; color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); cursor: pointer; list-style: none; } .subagentSection > summary::-webkit-details-marker { display: none; } .subagentSection > summary:hover { color: var(--fg); } .subagentSection > :not(summary) { margin: 4px 0 2px 22px; } .subagentReply { max-height: 320px; overflow: auto; } .done { color: var(--success); } .subagentBar { flex: none; display: flex; align-items: center; gap: var(--space-1-5); height: 30px; padding: 0 8px 0 6px; border-bottom: 1px solid var(--border); min-width: 0; } .crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-1); overflow: hidden; } .crumb { flex: 0 1 auto; min-width: 0; padding: 0; border: 0; background: none; color: var(--link); font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } .crumb:hover { color: var(--link-hover); text-decoration: underline; } .crumbCurrent { flex: 0 1 auto; min-width: 0; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .messageFrom { margin-bottom: 2px; color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); } .readOnly { flex: none; padding: 10px 16px 14px; border-top: 1px solid var(--border); color: var(--fg-muted); } .subagentStrip { display: flex; flex-wrap: wrap; gap: var(--space-1); } .subagentChip { display: inline-flex; align-items: center; gap: var(--space-1-5); max-width: 240px; height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-elev); color: var(--fg-secondary); font: inherit; font-size: var(--fs-small); cursor: pointer; } .subagentChip:hover { background: var(--bg-hover); color: var(--fg); } .subagentChipTitle { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* An open AskUserQuestion: every question with its options, answered at once in the conversation. */ .questionCard { display: flex; flex-direction: column; gap: var(--space-3); padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--bg-elev); font-size: var(--agent-fs-ui, var(--fs-ui)); container: question-card / inline-size; } /* A question that outlived its turn waits above the composer, at the composer's width. */ .questionCardPinned { flex: none; max-height: 50vh; overflow-y: auto; width: 100%; max-width: var(--session-content-width); margin: 0 auto 8px; } .fitWidth .questionCardPinned { width: calc(100% - var(--space-3) * 2); max-width: none; } .questionTabCheck { flex: none; color: var(--accent); } /* All questions share one grid cell: the card keeps the tallest question's height. */ .questionPanels { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; } .questionPanel { grid-area: 1 / 1; min-width: 0; } .questionPanelHidden { visibility: hidden; pointer-events: none; } /* The shown preview re-enables visibility, which would escape the hidden panel. */ .questionPanelHidden .questionPreviewActive { visibility: hidden; } .question { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; margin: 0; padding: 0; border: 0; } .questionText { margin-bottom: 6px; padding: 0; color: var(--fg-strong); white-space: pre-wrap; overflow-wrap: anywhere; } .questionTag { margin: 0 8px 0 0; padding: 1px 6px; border-radius: var(--radius-small); background: var(--bg-hover); color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); } .questionLabel .questionTag { margin: 0 0 0 8px; } .question .questionOption { display: flex; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-row); } /* Each option is a card of its own: separate targets, not one list with hairlines. */ .questionChoices { display: flex; flex-direction: column; gap: var(--space-1-5); } .question .questionChoices > * { border: 1px solid var(--border); border-radius: var(--radius-row); } .question .questionChoices > *:hover { border-color: var(--border-strong); } .question .questionChoices > *:has(input:checked) { border-color: var(--accent); background: var(--bg-hover); } .question .questionOption:hover { background: var(--bg-hover); } .questionOption > :first-child { margin-top: 1px; } .questionOption > :last-child { flex: 1; min-width: 0; } .questionChoice { display: flex; align-items: flex-start; gap: var(--space-2); } .questionOptionText { display: flex; flex: 1; flex-direction: column; min-width: 0; } .questionLabel { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--fg); } .questionDescription { color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); overflow-wrap: anywhere; } .questionKey { flex: none; color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); } .questionOther { margin: 2px 0 0 30px; } .questionBody { display: flex; flex-direction: column; gap: var(--space-1-5); } .questionChoices { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; } @container question-card (min-width: 640px) { .questionBodyWithPreview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; } .questionBodyWithPreview .questionPreview { margin: 0; } } .questionPreview { display: grid; min-width: 0; margin: 0 0 0 30px; } .questionPreviewItem { display: flex; flex-direction: column; grid-area: 1 / 1; gap: var(--space-1); min-width: 0; visibility: hidden; } .questionPreviewActive { visibility: visible; } .questionPreviewCaption { color: var(--fg-muted); font-size: var(--agent-fs-small, var(--fs-small)); } .questionPreviewBody { margin: 0; padding: 8px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--bg-editor); font-family: var(--font-mono); font-size: var(--agent-fs-code, var(--fs-code)); } .questionPreviewEmpty { padding: 8px; border: 1px dashed var(--border); border-radius: var(--radius-small); color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); } .questionActions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); } .questionPager { display: flex; align-items: center; gap: var(--space-1-5); } .questionPage { color: var(--fg-subtle); font-size: var(--agent-fs-small, var(--fs-small)); font-variant-numeric: tabular-nums; white-space: nowrap; } /* An agent's form (ACP elicitation): its message, then every field at once, in the question card. */ .formMessage { margin: 0; color: var(--fg-strong); white-space: pre-wrap; overflow-wrap: anywhere; } .formFields { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; margin: 0; padding: 0; border: 0; } /* Reasoning while it streams (auto): bounded, its tail in view. */ .thoughtLive .thoughtBody { max-height: calc(var(--h-row) * 4); overflow: hidden; display: flex; flex-direction: column-reverse; mask-image: linear-gradient(to bottom, transparent, black 40%); } /* A finished turn's work, folded under its message. */ .turnFold > summary { cursor: pointer; list-style: none; } .turnFold > summary::-webkit-details-marker { display: none; } .turnFold[open] .processChevron { transform: rotate(90deg); } .turnBody { display: flex; flex-direction: column; gap: var(--space-2); margin: 2px 0 0 10px; padding-left: var(--space-3); border-left: 1px solid var(--border); } /* Above the composer: what waits for the user, the plan and changes, what runs now. */ .tray { display: flex; flex-direction: column; gap: var(--space-0-5); } .tray:empty { display: none; } .trayAsk { min-width: 0; } .trayStrip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); } .trayChip { display: inline-flex; align-items: center; gap: var(--space-1-5); height: var(--h-row); padding: 0 var(--space-2); border: none; border-radius: var(--radius-row); background: none; color: var(--fg-secondary); font: inherit; font-size: var(--fs-small); cursor: pointer; } .trayChip:hover, .trayChip[aria-expanded="true"] { background: var(--bg-hover); color: var(--fg); } .trayPlan { display: flex; flex-direction: column; gap: var(--space-0-5); padding: 2px var(--space-2) 4px calc(var(--space-2) * 2); font-size: var(--fs-small); } .planCurrent { color: var(--fg); } /* Work in progress: a light sweeps across its label. The conversation's one spinner is the working row at its end. */ .shimmer { background: linear-gradient(90deg, var(--fg-muted) 40%, var(--fg) 50%, var(--fg-muted) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2s linear infinite; } @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } } @media (prefers-reduced-motion: reduce) { .shimmer { animation: none; background: none; color: var(--fg-muted); } } /* Tool calls: an accent by what the call does, a pulse while it runs, its end and time on the right. */ .toolEntry { --tool-accent: var(--fg-subtle); animation: entryIn 180ms ease-out; } .kind-read, .kind-search { --tool-accent: var(--info); } .kind-edit, .kind-delete, .kind-move { --tool-accent: var(--warning); } .kind-execute { --tool-accent: var(--success); } .kind-fetch { --tool-accent: var(--accent); } .toolKindIcon { flex: none; color: var(--tool-accent); } .toolLive .toolKindIcon { animation: toolPulse 1.2s ease-in-out infinite; } .toolPath { flex: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; border: none; border-radius: var(--radius-small); background: none; color: var(--link); font: inherit; font-size: var(--agent-fs-small, var(--fs-small)); cursor: pointer; } .toolPath:hover { text-decoration: underline; } .toolEnd { display: inline-flex; flex: none; align-items: center; gap: var(--space-1-5); margin-left: auto; font-size: var(--agent-fs-small, var(--fs-small)); } .toolDone { color: var(--success); } .toolSpinner { color: var(--tool-accent); } .exitCode { flex: none; padding: 0 5px; border-radius: var(--radius-small); background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); } .exitFailed { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); } .terminalBlock { margin: 4px 0 4px 22px; border: 1px solid var(--border); border-left: 2px solid var(--tool-accent); border-radius: var(--radius-small); background: var(--bg-elev); overflow: hidden; } .terminalCommand, .terminalOutput { margin: 0; padding: 6px 10px; font-family: var(--font-mono); font-size: var(--agent-fs-small, var(--fs-small)); white-space: pre-wrap; word-break: break-word; } .terminalOutput { max-height: 240px; overflow: auto; border-top: 1px solid var(--border); color: var(--fg-muted); } .prompt { color: var(--tool-accent); user-select: none; } .thoughtEntry { animation: entryIn 180ms ease-out; } .thoughtTook { flex: none; margin-left: 6px; color: var(--fg-subtle); } @keyframes entryIn { from { opacity: 0; transform: translateY(4px); } } @keyframes toolPulse { 50% { opacity: 0.35; } } @media (prefers-reduced-motion: reduce) { .toolEntry, .thoughtEntry, .toolLive .toolKindIcon { animation: none; } } .meterButton { composes: meter; cursor: pointer; color: inherit; font: inherit; border: 0; background: transparent; padding: 0 var(--space-1); } .contextPopover { max-width: calc(100vw - 24px); } .contextPopover[data-positioned], .contextClosing[data-positioned] { animation: none; transition: opacity 100ms ease; } .contextClosing { composes: contextPopover; pointer-events: none; } .contextClosing.contextPopover[data-positioned] { opacity: 0; } @starting-style { .contextPopover[data-positioned] { opacity: 0; } } @media (prefers-reduced-motion: reduce) { .contextPopover[data-positioned] { transition: none; } } .contextDetails { display: grid; gap: var(--space-2); width: min(330px, 80vw); padding: var(--space-3); color: var(--fg-secondary); font-size: var(--fs-ui); font-variant-numeric: tabular-nums; } .contextHeading, .contextDetails li { display: flex; align-items: center; gap: var(--space-2); } .contextHeading { justify-content: space-between; color: var(--fg); } .contextBar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--border); } .contextBar span { flex-basis: 0; } .contextDetails summary { cursor: pointer; color: var(--fg); } .contextDetails ul { margin: var(--space-2) 0 0; padding: 0; max-height: 220px; overflow: auto; } .contextDetails li { padding: var(--space-1) 0; } .contextDetails li i { width: 8px; height: 8px; border-radius: 2px; } .contextDetails li span:last-child { margin-left: auto; } .contextCompact { justify-self: end; cursor: pointer; color: var(--fg); background: var(--bg-button); border: 1px solid var(--border); border-radius: 4px; padding: var(--space-1) var(--space-2); }