1201 lines
40 KiB
CSS
1201 lines
40 KiB
CSS
/* ---------------------------------------------------------------------------
|
||
Chat (C1/C3/C4/C7/C14): the session list, the conversation and its rendered
|
||
markdown transcript. Hand-written, on the app's dark palette; the transcript
|
||
is untrusted model output, so every node is built with textContent.
|
||
--------------------------------------------------------------------------- */
|
||
|
||
.chat-list { display: flex; flex-direction: column; min-height: 0; }
|
||
.chat-rows { flex: 1 1 auto; min-height: 0; align-content: start; padding-bottom: 180px; }
|
||
/* A row's Chat actions menu hangs below the button. `.list` clips its children
|
||
for the rounded corners, which cut the panel off at the list's bottom edge and
|
||
made the final rows' Hide/Rename items unclickable. Unclip only while a menu is
|
||
open, mirroring `.list.runs`' filter-menu treatment. */
|
||
.chat-list.menu-open { overflow: visible; }
|
||
.chat-search { flex: 1 1 auto; min-width: 0; }
|
||
.chat-toolbar {
|
||
padding: 10px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
flex-wrap: nowrap;
|
||
}
|
||
.chat-toolbar .chat-search { min-height: 38px; }
|
||
.chat-new {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 7px;
|
||
flex: none;
|
||
min-height: 38px;
|
||
padding: 0 13px;
|
||
border: 1px solid var(--color-accent);
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
font-weight: 600;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-new:hover,
|
||
.chat-new:focus-visible {
|
||
background: var(--color-accent-strong);
|
||
border-color: var(--color-accent-strong);
|
||
color: var(--color-on-accent);
|
||
}
|
||
.chat-new-glyph { font-size: 18px; line-height: 1; font-weight: 500; }
|
||
.chat-new-label { font-size: 13px; }
|
||
|
||
/* C2: the create pane — the directory picker, the model note and the footer that
|
||
names the value chat_create will send. */
|
||
.chat-create { gap: 12px; }
|
||
.chat-bar.chat-create-bar { align-items: center; justify-content: flex-start; gap: 10px; }
|
||
.chat-create-back { flex: none; }
|
||
.detail .chat-create-title { margin: 0; }
|
||
.chat-create-loading { padding: 18px 4px; }
|
||
.chat-create-prompt { padding: 2px 2px 0; font-size: 13px; }
|
||
.chat-create-choices {
|
||
display: flex;
|
||
flex-direction: column;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
overflow: hidden;
|
||
}
|
||
.chat-create-choice { cursor: pointer; }
|
||
.chat-create-choice-path {
|
||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||
font-size: 11px;
|
||
}
|
||
.chat-create-directories-error { color: var(--bad); }
|
||
.chat-create-error { color: var(--bad); font-size: 13px; }
|
||
.chat-create-instructions { display: grid; gap: 6px; }
|
||
.chat-create-instructions-label { font-size: 13px; font-weight: 600; }
|
||
.chat-create-instructions-input {
|
||
width: 100%;
|
||
min-height: 96px;
|
||
padding: 10px 12px;
|
||
resize: vertical;
|
||
background: var(--color-surface-2);
|
||
color: var(--color-text);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-control);
|
||
font: inherit;
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
}
|
||
.chat-create-instructions-helper { margin: 0; font-size: 12px; line-height: 1.5; max-width: 64ch; }
|
||
.chat-create-model-note { margin: 0; font-size: 12px; line-height: 1.5; max-width: 64ch; }
|
||
.chat-create-footer {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: center;
|
||
margin-top: auto;
|
||
padding: 12px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
}
|
||
.chat-create-start {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 13px;
|
||
}
|
||
.chat-create-confirm {
|
||
min-width: 88px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
font-weight: 600;
|
||
}
|
||
.chat-create-confirm:disabled,
|
||
.chat-create-cancel:disabled { opacity: 0.55; }
|
||
.chat-create-spinner { width: 14px; height: 14px; border-width: 2px; }
|
||
|
||
/* A directory or Closed section is a full-width band, not a small label over
|
||
the rows: a distinct surface, centred text and (for both) one expand toggle.
|
||
The band is square so it reads as a divider rather than a floating chip. */
|
||
.chat-group-header,
|
||
.chat-group-toggle {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 100%;
|
||
min-height: 34px;
|
||
margin: 0;
|
||
padding: 8px 42px;
|
||
border: 0;
|
||
border-top: 1px solid var(--border);
|
||
border-radius: 0;
|
||
background: var(--color-elevated);
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 11px;
|
||
letter-spacing: 0.05em;
|
||
text-transform: uppercase;
|
||
text-align: center;
|
||
}
|
||
.chat-group-toggle { cursor: pointer; }
|
||
.chat-group-toggle:hover { background: var(--color-elevated-2); color: var(--color-text); }
|
||
.chat-group-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
||
.chat-group-title {
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-group-directory .chat-group-title {
|
||
color: var(--color-text);
|
||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||
font-size: 11.5px;
|
||
letter-spacing: 0;
|
||
text-transform: none;
|
||
}
|
||
.chat-group-starred .chat-group-title { color: var(--accent); }
|
||
.chat-group-toggle .chevron {
|
||
position: absolute;
|
||
right: 14px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
text-transform: none;
|
||
}
|
||
.chat-row {
|
||
position: relative;
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr);
|
||
gap: 2px;
|
||
align-items: start;
|
||
cursor: pointer;
|
||
}
|
||
/* M6: the session title/meta area is the button; the row is a plain container
|
||
and the Chat actions menu is a sibling of this button. */
|
||
.chat-session-button {
|
||
grid-column: 1;
|
||
grid-row: 1 / span 3;
|
||
display: grid;
|
||
gap: 2px;
|
||
width: 100%;
|
||
min-width: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
border: 0;
|
||
background: none;
|
||
color: inherit;
|
||
font: inherit;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
.chat-session-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
||
/* The inner session button must never take the generic button hover fill: on a
|
||
selected row it read as a darker rectangle inside the row's own padding. */
|
||
.chat-session-button:hover { background: none; }
|
||
.chat-row .row-head {
|
||
grid-column: 1;
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
/* The star is an absolute top-right overlay; reserve its corner so it never
|
||
covers the Streaming/New/Idle word on a touch screen where it is always on. */
|
||
padding-right: 26px;
|
||
}
|
||
.chat-row .row-title { min-width: 0; }
|
||
.chat-row .row-meta { grid-column: 1; }
|
||
.chat-row .chat-row-meta {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-row-model { font-size: 11px; }
|
||
/* Star (top-right) and the more menu (bottom-right) sit over the row's own
|
||
corners on hover/focus, so they never become an extra row or reserve width. */
|
||
.chat-row-actions {
|
||
position: absolute;
|
||
inset: 0;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 100ms ease-out;
|
||
}
|
||
.chat-row-actions > .chat-star,
|
||
.chat-row-actions > .chat-menu-button,
|
||
.chat-row-actions > .chat-menu-panel { pointer-events: auto; }
|
||
.chat-row:hover .chat-row-actions,
|
||
.chat-row:focus-within .chat-row-actions,
|
||
.chat-row.menu-open .chat-row-actions { opacity: 1; }
|
||
|
||
/* An open menu paints above the rows below it, not under their content. */
|
||
.chat-row.menu-open { z-index: 30; }
|
||
@media (hover: none) {
|
||
.chat-row-actions { opacity: 1; }
|
||
.chat-row-actions > .chat-star,
|
||
.chat-row-actions > .chat-menu-button,
|
||
.chat-row-actions > .chat-menu-panel { pointer-events: auto; }
|
||
}
|
||
.chat-row-actions .chat-menu-item { padding: 3px 10px; font-size: 12px; }
|
||
/* The local star: outline when unstarred, filled and accented when starred. */
|
||
.chat-star {
|
||
position: absolute;
|
||
top: 5px;
|
||
right: 6px;
|
||
width: 20px;
|
||
height: 20px;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
padding: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: var(--radius-control);
|
||
background: var(--color-surface);
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
}
|
||
.chat-star:hover { color: var(--color-text); }
|
||
.chat-star.starred { color: var(--color-accent); }
|
||
.chat-row .chat-menu-button {
|
||
position: absolute;
|
||
right: 6px;
|
||
bottom: 5px;
|
||
width: 20px;
|
||
height: 20px;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
padding: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--color-surface);
|
||
border-radius: var(--radius-control);
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
}
|
||
/* The row menu opens below the bottom-right button; the open row stacks above
|
||
its neighbours so the panel is not covered by the next row. */
|
||
.chat-row .chat-menu-panel { top: calc(100% + 4px); bottom: auto; right: 8px; }
|
||
.chat-menu-wrap { position: relative; }
|
||
.chat-row-actions.chat-menu-wrap { position: absolute; inset: 0; }
|
||
.chat-menu-button { min-width: 30px; font-size: 15px; line-height: 1; }
|
||
.chat-menu-panel {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
right: 0;
|
||
z-index: 25;
|
||
display: grid;
|
||
min-width: 190px;
|
||
padding: 4px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
||
}
|
||
.chat-menu-item {
|
||
justify-content: flex-start;
|
||
padding: 7px 10px;
|
||
text-align: left;
|
||
font-size: 13px;
|
||
border: none;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-menu-item:hover { background: var(--surface); }
|
||
.chat-menu-close { color: var(--warn); }
|
||
.chat-menu-reopen { color: var(--accent); }
|
||
.chat-closed-chip { opacity: 0.8; }
|
||
|
||
/* The Rename chat dialog (C13): a name kept on this device only. */
|
||
.chat-rename-field { display: grid; gap: 4px; }
|
||
.chat-rename-label { font-size: 12px; color: var(--muted); }
|
||
.chat-rename-helper { margin: 0; line-height: 1.5; font-size: 13px; color: var(--muted); }
|
||
.chat-rename-save:disabled { opacity: 0.5; }
|
||
|
||
/* The one hide report (C13): fixed above the pane, replaced rather than queued. */
|
||
.chat-snackbar {
|
||
position: fixed;
|
||
left: 50%;
|
||
bottom: 20px;
|
||
z-index: 35;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
gap: 16px;
|
||
align-items: center;
|
||
max-width: min(560px, calc(100vw - 32px));
|
||
padding: 12px 16px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
|
||
font-size: 13px;
|
||
}
|
||
.chat-snackbar-message { line-height: 1.4; }
|
||
.chat-snackbar-undo {
|
||
flex: none;
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.chat-activity { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
|
||
.chat-activity-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
||
.chat-activity-streaming { color: var(--accent); }
|
||
.chat-activity-new { color: #7fb2f0; }
|
||
.chat-activity-closed { color: var(--muted); }
|
||
|
||
.chat-detail {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-xs);
|
||
padding: var(--space-s);
|
||
overflow: hidden;
|
||
}
|
||
.chat-create { overflow-y: auto; overscroll-behavior: contain; }
|
||
.chat-bar { flex: 0 0 auto; display: flex; gap: var(--space-s); align-items: center; justify-content: space-between; }
|
||
.chat-bar-titles { display: grid; gap: 2px; min-width: 0; }
|
||
.chat-bar-title {
|
||
margin: 0;
|
||
font-size: 16px;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-bar-meta { font-size: 12px; }
|
||
.chat-context { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
|
||
.chat-load-older { white-space: nowrap; font-size: 12px; }
|
||
.chat-model-button {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
flex: none;
|
||
max-width: 150px;
|
||
min-width: 0;
|
||
padding: 4px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface-2);
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
}
|
||
.chat-model-button:hover { background: var(--color-elevated); color: var(--text); }
|
||
.chat-model-button-label {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-model-button .chevron { flex: none; font-size: 10px; }
|
||
/* Model picker: a bounded list of the current harness's models. */
|
||
.chat-model-panel { width: min(480px, 100%); max-height: calc(100dvh - 48px); }
|
||
.chat-model-helper { margin: 0; font-size: 12px; }
|
||
.chat-model-search { width: 100%; min-height: 38px; }
|
||
.chat-model-loading { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
|
||
.chat-model-error { margin: 0; color: var(--bad); font-size: 12px; }
|
||
.chat-model-empty { margin: 0; font-size: 13px; }
|
||
.chat-model-list {
|
||
display: grid;
|
||
gap: 2px;
|
||
max-height: min(50vh, 420px);
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
padding: 4px;
|
||
}
|
||
.chat-model-option {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-height: 38px;
|
||
padding: 7px 9px;
|
||
border: 1px solid transparent;
|
||
border-radius: var(--radius-control);
|
||
background: transparent;
|
||
text-align: left;
|
||
}
|
||
.chat-model-option:hover { background: var(--tint-hover); color: var(--text); }
|
||
.chat-model-option.selected { border-color: var(--accent); background: var(--tint-selected); color: var(--text); }
|
||
.chat-model-option-name {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-model-option-provider { flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
|
||
.chat-model-check { flex: none; color: var(--accent); }
|
||
.chat-transcript-empty { padding: 24px 12px; }
|
||
|
||
.chat-transcript-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
|
||
.chat-transcript {
|
||
position: relative;
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-xs);
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
padding: var(--space-xs);
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-divider);
|
||
border-radius: var(--radius-card);
|
||
}
|
||
.chat-turn { display: flex; }
|
||
.chat-turn-user { justify-content: flex-end; }
|
||
.chat-turn-agent { justify-content: flex-start; }
|
||
.chat-bubble { max-width: min(560px, 100%); padding: 8px 12px; border-radius: var(--radius-card); }
|
||
/* The operator's turns are accent-tinted and right-aligned; the agent's are the
|
||
neutral page surface with a quiet accent edge, so the two never look alike. */
|
||
.user-bubble {
|
||
background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
|
||
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
|
||
border-bottom-right-radius: 6px;
|
||
}
|
||
.agent-bubble {
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-left: 2px solid color-mix(in srgb, var(--accent) 48%, var(--border));
|
||
border-bottom-left-radius: 6px;
|
||
}
|
||
.chat-client { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
|
||
.chat-user-text { white-space: pre-wrap; overflow-wrap: anywhere; }
|
||
.chat-user-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
||
.chat-user-file {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
padding: 4px 8px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
|
||
border-radius: var(--radius-control);
|
||
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
||
font-size: 12px;
|
||
}
|
||
.chat-user-file-glyph { flex: none; font-size: 13px; line-height: 1; }
|
||
.chat-user-file-name {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-turn-agent { flex-direction: column; align-items: flex-start; }
|
||
|
||
.chat-reasoning { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
|
||
/* Thinking sits outside and above the answer bubble, like the tool summary
|
||
outside and below it; it is a quiet evidence line, not message content. */
|
||
.chat-turn-agent > .chat-reasoning {
|
||
margin: 0 0 2px;
|
||
padding: 0 2px;
|
||
border-bottom: 0;
|
||
}
|
||
.chat-activity-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
min-height: 22px;
|
||
white-space: nowrap;
|
||
}
|
||
.chat-activity-spinner { width: 12px; height: 12px; border-width: 2px; flex: none; }
|
||
.chat-activity-phase,
|
||
.chat-activity-elapsed {
|
||
color: var(--muted);
|
||
font-size: 11.5px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.chat-activity-elapsed { flex: none; }
|
||
.chat-activity-sep { color: var(--muted); flex: none; }
|
||
.chat-activity-head > .chat-tool-chip { min-width: 0; overflow: hidden; }
|
||
|
||
.chat-jump { position: absolute; right: 14px; bottom: 14px; border-color: var(--accent); color: var(--accent); }
|
||
|
||
/* The tool-call chip and its panel (C6). The panel is a fixed overlay, so it
|
||
never joins the transcript's flow and opening it cannot re-flow or scroll it. */
|
||
/* Thinking and tools are sibling controls on the same line, so they share one
|
||
hover/focus box: identical padding, radius, height and background. */
|
||
.chat-reasoning-toggle,
|
||
.chat-tool-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex: none;
|
||
min-height: 24px;
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
margin: 0;
|
||
padding: 2px 7px;
|
||
border: 1px solid transparent;
|
||
border-radius: var(--radius-control);
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 12px;
|
||
line-height: 16px;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
.chat-reasoning-toggle:hover,
|
||
.chat-tool-chip:hover {
|
||
background: var(--tint-hover);
|
||
color: var(--color-text);
|
||
}
|
||
.chat-reasoning-toggle:focus-visible,
|
||
.chat-tool-chip:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.chat-tool-chip-failed { border-color: var(--bad); color: var(--bad); }
|
||
.chat-tool-icon { font-size: 12px; line-height: 1; }
|
||
.chat-tool-icon-failed { color: var(--bad); }
|
||
.chat-tool-long { color: var(--bad); }
|
||
.chat-tool-chevron { color: var(--muted); }
|
||
|
||
/* C5: the in-flight turn's indicator, under the transcript after the last agent
|
||
turn — a spinner, the phase headline, the turn's elapsed and one line per
|
||
running tool. A call over the long threshold is tinted and marked `.chat-tool-long`. */
|
||
.chat-running { display: flex; flex-direction: column; gap: 4px; padding: 6px 2px 2px; color: var(--muted); font-size: 12px; }
|
||
.chat-running-head { display: flex; align-items: center; gap: 8px; }
|
||
.chat-running-spinner { width: 12px; height: 12px; border-width: 2px; }
|
||
.chat-running-label { color: var(--text); }
|
||
.chat-running-elapsed { color: var(--muted); }
|
||
.chat-running-tool { display: flex; align-items: center; gap: 8px; padding-left: 20px; min-width: 0; }
|
||
.chat-running-tool-text {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 420px;
|
||
}
|
||
.chat-running-tool-elapsed { font-size: 11px; }
|
||
.chat-running-tool-long { color: var(--bad); }
|
||
|
||
/* C10: the permission/approval card — the transcript's last item. A pending card
|
||
wears an amber hairline border, echoing ChatApprovalCard.kt's 50%-alpha amber
|
||
border; the amber RISK REVIEW box is the app's 12%-alpha amber panel. */
|
||
.chat-approval {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 12px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
}
|
||
/* Background tasks (C11): running shells only, three visible rows then scroll. */
|
||
.chat-bg-tasks { display: grid; gap: 6px; }
|
||
.chat-bg-tasks-head { display: flex; align-items: baseline; gap: 8px; }
|
||
.chat-bg-tasks-title { font-size: 13px; font-weight: 600; }
|
||
.chat-bg-tasks-count { font-size: 12px; }
|
||
.chat-bg-tasks-list {
|
||
display: grid;
|
||
gap: 4px;
|
||
/* Exactly BACKGROUND_TASK_VISIBLE_ROWS (3) rows of 40px + their 2 gaps of 4px
|
||
(the Android derivation `(minTouch + SPACING_XS) * 3`); past that it scrolls. */
|
||
max-height: 128px;
|
||
overflow-y: auto;
|
||
padding-right: 2px;
|
||
}
|
||
.chat-bg-task {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-height: 40px;
|
||
padding: 4px 10px;
|
||
text-align: left;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
}
|
||
.chat-bg-task:hover { background: var(--surface-2); }
|
||
.chat-bg-task.selected { border-color: var(--accent); }
|
||
.chat-bg-task:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
||
.chat-bg-task-glyph {
|
||
flex: 0 0 auto;
|
||
width: 0;
|
||
height: 0;
|
||
border-left: 7px solid var(--accent);
|
||
border-top: 5px solid transparent;
|
||
border-bottom: 5px solid transparent;
|
||
}
|
||
.chat-bg-task-status { flex: 0 0 auto; color: var(--accent); }
|
||
.chat-bg-task-command {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
color: var(--muted);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.chat-bg-task-details { flex: 0 0 auto; font-size: 11px; }
|
||
.chat-bg-task-detail {
|
||
display: grid;
|
||
gap: 4px;
|
||
margin-top: 4px;
|
||
padding: 10px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
}
|
||
.chat-approval-pending { border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
|
||
.chat-approval-head { display: flex; gap: 10px; align-items: center; }
|
||
.chat-approval-shield { flex: 0 0 auto; width: 16px; height: 16px; color: var(--warn); }
|
||
.chat-approval-titles { display: grid; gap: 2px; min-width: 0; }
|
||
.chat-approval-headline { font-weight: 600; }
|
||
.chat-approval-status { font-size: 12px; }
|
||
/* The resources box is a padded frame around a padding-free clamp block. The
|
||
clamp must sit on an element with no bottom padding: `overflow:hidden` clips at
|
||
the padding box, so clamping the padded element itself still paints the top of
|
||
the seventh line into that 8px strip. The inner block clips at its own content
|
||
edge, so no seventh glyph is visible. */
|
||
.chat-approval-resources {
|
||
padding: 8px 10px;
|
||
background: var(--bg);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
font-size: 12px;
|
||
line-height: 18px;
|
||
}
|
||
.chat-approval-resources-text {
|
||
margin: 0;
|
||
font: inherit;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
/* The six-visible-line cap (ChatApprovalCard.kt maxLines = 6, Ellipsis): -webkit
|
||
-line-clamp counts *rendered* lines, so a long resource that wraps is elided
|
||
on the sixth line instead of spilling past it, exactly like the app. */
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
-webkit-line-clamp: 6;
|
||
overflow: hidden;
|
||
}
|
||
.chat-approval-risk {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 8px 10px;
|
||
border-radius: var(--radius-control);
|
||
background: color-mix(in srgb, var(--warn) 12%, transparent);
|
||
}
|
||
.chat-approval-risk-head { display: flex; gap: 4px; align-items: center; }
|
||
.chat-approval-risk-shield { flex: 0 0 auto; width: 12px; height: 12px; color: var(--warn); }
|
||
.chat-approval-risk-label { color: var(--warn); font-size: 11px; letter-spacing: 0.06em; }
|
||
.chat-approval-risk-text { font-size: 12px; }
|
||
.chat-approval-controls { display: flex; gap: 10px; }
|
||
.chat-approval-control { padding: 6px 12px; }
|
||
/* The app renders Allow once as a filled Button and the other two as
|
||
TextButtons (ChatApprovalCard.kt:98-100); the browser matches that hierarchy
|
||
with the filled accent treatment on the primary control. */
|
||
.chat-approval-control.primary {
|
||
background: var(--accent);
|
||
border-color: var(--accent);
|
||
color: var(--bg);
|
||
font-weight: 600;
|
||
}
|
||
.chat-approval-control.primary:hover {
|
||
background: color-mix(in srgb, var(--accent) 88%, white);
|
||
border-color: color-mix(in srgb, var(--accent) 88%, white);
|
||
}
|
||
.chat-approval-jump { white-space: nowrap; font-size: 12px; border-color: var(--warn); color: var(--warn); }
|
||
.chat-bg-task-label { font-size: 11px; }
|
||
.chat-bg-task-command-full { font-size: 12px; overflow-wrap: anywhere; }
|
||
.chat-bg-task-id { font-size: 12px; }
|
||
.chat-bg-task-status-line { font-size: 12px; }
|
||
.chat-bg-task-output {
|
||
margin: 0;
|
||
max-height: 220px;
|
||
overflow: auto;
|
||
padding: 8px;
|
||
font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
background: var(--bg);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
}
|
||
.chat-bg-task-note { font-size: 11px; }
|
||
.chat-bg-task-spinner { width: 12px; height: 12px; border-width: 2px; }
|
||
.chat-bg-task-error-row { display: flex; align-items: center; gap: 8px; }
|
||
.chat-bg-task-error { font-size: 12px; color: var(--bad); }
|
||
.chat-bg-task-retry,
|
||
.chat-bg-task-refresh { align-self: flex-start; padding: 2px 10px; font-size: 12px; }
|
||
|
||
.chat-tool-panel {
|
||
position: fixed;
|
||
z-index: 40;
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(420px, calc(100vw - 16px));
|
||
max-height: 440px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-card);
|
||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
|
||
overflow: hidden;
|
||
}
|
||
.chat-tool-panel[hidden] { display: none; }
|
||
.chat-tool-panel-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 8px 8px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.chat-tool-panel-count { flex: 1 1 auto; font-size: 13px; font-weight: 600; }
|
||
.chat-tool-close { padding: 2px 8px; font-size: 14px; line-height: 1; }
|
||
.chat-tool-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
|
||
|
||
.chat-tool-row { border-bottom: 1px solid var(--border); }
|
||
.chat-tool-row:last-child { border-bottom: 0; }
|
||
.chat-tool-row-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
padding: 7px 12px;
|
||
background: transparent;
|
||
border: 0;
|
||
border-radius: 0;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
.chat-tool-row-head:hover { background: var(--surface); }
|
||
.chat-tool-row-titles { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 1px; }
|
||
.chat-tool-name { font-size: 12px; }
|
||
.chat-tool-detail {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 100%;
|
||
}
|
||
.chat-tool-stat { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
|
||
.chat-tool-duration { font-size: 11px; color: var(--muted); }
|
||
.chat-tool-row-chevron { color: var(--muted); font-size: 11px; }
|
||
|
||
.chat-tool-body { display: grid; gap: 8px; padding: 0 12px 10px 32px; }
|
||
.chat-tool-section { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
||
.chat-tool-section-label {
|
||
padding: 3px 10px;
|
||
font-size: 10px;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--muted);
|
||
background: var(--surface);
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.chat-tool-section-body {
|
||
margin: 0;
|
||
padding: 8px 10px;
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
font-size: 12px;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
max-height: 220px;
|
||
overflow: auto;
|
||
}
|
||
.chat-tool-diff {
|
||
padding: 6px 10px;
|
||
background: var(--bg);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
font-size: 12px;
|
||
max-height: 220px;
|
||
overflow: auto;
|
||
}
|
||
.chat-tool-diff-note { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
|
||
.chat-tool-diff-line { white-space: pre-wrap; overflow-wrap: anywhere; }
|
||
|
||
/* A clearly-labelled overlay for the UI smoke's page-rendered tool-row samples
|
||
(a failed row and an edit diff the live history does not carry). */
|
||
.chat-tool-sample {
|
||
position: fixed;
|
||
top: 70px;
|
||
left: 24px;
|
||
right: 24px;
|
||
z-index: 60;
|
||
max-height: calc(100vh - 140px);
|
||
overflow: auto;
|
||
padding: 10px 12px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--accent);
|
||
border-radius: var(--radius-card);
|
||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
||
}
|
||
.chat-tool-sample-note {
|
||
margin-bottom: 8px;
|
||
padding-bottom: 6px;
|
||
border-bottom: 1px dashed var(--border);
|
||
font-size: 11px;
|
||
color: var(--accent);
|
||
}
|
||
|
||
/* The composer at the foot of a conversation (C8/C9). The field grows 1–6 rows;
|
||
the primary control turns from Send to Stop while a turn is in flight. */
|
||
.chat-composer { flex: 0 0 auto; display: grid; gap: var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--color-divider); }
|
||
.chat-queued { font-size: 12px; color: var(--muted); }
|
||
|
||
.chat-attachment-strip { display: flex; flex-wrap: wrap; gap: 8px; }
|
||
.chat-attachment-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 4px 6px 4px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface-2);
|
||
}
|
||
.chat-attachment-chip-failed {
|
||
border-color: var(--bad);
|
||
background: color-mix(in srgb, var(--bad) 18%, var(--surface-2));
|
||
}
|
||
.chat-attachment-thumb { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
|
||
.chat-attachment-glyph { width: 28px; text-align: center; font-size: 18px; line-height: 1; }
|
||
.chat-attachment-body { display: grid; gap: 1px; min-width: 0; max-width: 220px; }
|
||
.chat-attachment-name { font-size: 12px; }
|
||
.chat-attachment-meta { font-size: 11px; color: var(--muted); }
|
||
.chat-attachment-error { color: var(--bad); }
|
||
.chat-attachment-remove { padding: 1px 6px; font-size: 12px; line-height: 1; }
|
||
|
||
.chat-command-palette {
|
||
max-height: 176px;
|
||
overflow-y: auto;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface-2);
|
||
}
|
||
.chat-command-palette[hidden] { display: none; }
|
||
.chat-command-row {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: baseline;
|
||
padding: 6px 10px;
|
||
cursor: pointer;
|
||
}
|
||
.chat-command-row.selected { background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
|
||
.chat-command-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
||
.chat-command-summary { flex: 1 1 auto; font-size: 12px; color: var(--muted); }
|
||
|
||
.chat-command-notice {
|
||
display: grid;
|
||
gap: 4px;
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface-2);
|
||
}
|
||
.chat-command-notice-failed {
|
||
border-color: var(--bad);
|
||
background: color-mix(in srgb, var(--bad) 16%, var(--surface-2));
|
||
}
|
||
.chat-command-notice-head { display: flex; gap: 6px; align-items: center; }
|
||
.chat-command-notice-glyph {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
color: var(--muted);
|
||
}
|
||
.chat-command-notice-failed .chat-command-notice-glyph { color: var(--bad); }
|
||
.chat-command-notice-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
|
||
.chat-command-notice-failed .chat-command-notice-label { color: var(--bad); }
|
||
.chat-command-notice-text { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||
.chat-command-notice-actions { display: flex; gap: 8px; }
|
||
.chat-command-notice-actions button { padding: 3px 10px; font-size: 12px; }
|
||
|
||
.chat-composer-row { display: flex; gap: 8px; align-items: flex-end; }
|
||
.chat-file-input { display: none; }
|
||
.chat-attach { padding: 6px 10px; font-size: 16px; line-height: 1; }
|
||
.chat-composer-input {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
resize: none;
|
||
padding: 8px 12px;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
font: inherit;
|
||
line-height: 20px;
|
||
max-height: 132px;
|
||
overflow-y: hidden;
|
||
}
|
||
.chat-composer-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
|
||
.chat-composer-primary { display: inline-flex; align-items: flex-end; gap: 6px; }
|
||
.chat-send, .chat-stop {
|
||
padding: 8px 12px;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
cursor: pointer;
|
||
}
|
||
.chat-send:not(:disabled) { border-color: var(--accent); color: var(--accent); }
|
||
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
|
||
.chat-stop { border-color: var(--bad); color: var(--bad); }
|
||
|
||
/* The rendered markdown subset. Every node is created, never parsed from HTML. */
|
||
.markdown { display: grid; gap: 8px; min-width: 0; max-width: 100%; }
|
||
.markdown > * { margin: 0; min-width: 0; }
|
||
.md-heading { font-size: 15px; }
|
||
.md-paragraph { line-height: 1.55; overflow-wrap: anywhere; }
|
||
.md-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
|
||
.md-code-block { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); }
|
||
.md-code-label {
|
||
padding: 4px 10px;
|
||
font-size: 11px;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: var(--muted);
|
||
background: var(--surface-2);
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.md-pre { margin: 0; padding: 10px; overflow-x: auto; }
|
||
.md-pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
||
.md-quote { display: grid; gap: 6px; padding-left: 10px; border-left: 3px solid var(--border); color: var(--muted); }
|
||
.md-list { display: grid; gap: 4px; margin: 0; padding-left: 20px; }
|
||
.md-table-wrap {
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
overflow-x: auto;
|
||
overscroll-behavior-x: contain;
|
||
}
|
||
.md-table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 13px; }
|
||
.md-table th, .md-table td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
|
||
.md-table th { background: var(--surface-2); }
|
||
.md-rule { border: 0; border-top: 1px solid var(--border); }
|
||
.md-link { color: var(--accent); }
|
||
.md-link-plain { color: var(--muted); }
|
||
|
||
/* Tool calls open in a modal, not an inline popover beside the message. */
|
||
.chat-tools-viewer {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 70;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px;
|
||
background: rgba(0, 0, 0, 0.78);
|
||
}
|
||
.chat-tools-modal-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(760px, 100%);
|
||
max-height: min(80vh, 900px);
|
||
min-height: 0;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 14px;
|
||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
|
||
overflow: hidden;
|
||
}
|
||
.chat-tools-modal-panel .chat-tool-panel {
|
||
position: static;
|
||
width: 100%;
|
||
max-height: none;
|
||
border: 0;
|
||
box-shadow: none;
|
||
background: transparent;
|
||
}
|
||
.chat-tools-modal-panel .chat-tool-list { overflow: auto; overscroll-behavior: contain; }
|
||
.chat-reasoning-modal-body {
|
||
min-height: 0;
|
||
overflow: auto;
|
||
overscroll-behavior: contain;
|
||
padding: 12px;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
@media (max-width: 599px) {
|
||
.chat-composer-input, .chat-toolbar .chat-search, .chat-create-instructions-input { font-size: 16px; }
|
||
}
|
||
|
||
/* Code in agent replies keeps the terminal's colour grammar: comments muted,
|
||
strings green, numbers amber, keywords blue, literals pink. */
|
||
.tok-comment { color: var(--color-muted); font-style: italic; }
|
||
.tok-string { color: #9ecb8f; }
|
||
.tok-number { color: #d8b46a; }
|
||
.tok-keyword { color: #93add0; font-weight: 600; }
|
||
.tok-literal { color: #c58fb0; }
|
||
|
||
/* The agent's structured question (OpenCode form kind=question): the transcript's
|
||
last item while the tool call is paused. Same surface as an approval card, with
|
||
an accent hairline and one block per form field. */
|
||
.chat-question {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 12px;
|
||
background: var(--surface-2);
|
||
border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
|
||
border-radius: var(--radius-card);
|
||
}
|
||
.chat-question-head { display: grid; gap: 2px; }
|
||
.chat-question-title { font-weight: 600; }
|
||
.chat-question-status { font-size: 12px; }
|
||
.chat-question-field { display: grid; gap: 6px; }
|
||
.chat-question-label { font-weight: 600; }
|
||
.chat-question-desc { font-size: 12px; }
|
||
.chat-question-options { display: grid; gap: 6px; }
|
||
.chat-question-option {
|
||
display: grid;
|
||
gap: 2px;
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
text-align: left;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
}
|
||
.chat-question-option:hover { background: var(--surface-2); }
|
||
.chat-question-option.selected {
|
||
border-color: var(--accent);
|
||
background: var(--tint-selected);
|
||
}
|
||
.chat-question-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||
.chat-question-option-desc { color: var(--muted); font-size: 12px; }
|
||
.chat-question-input {
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control);
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
font: inherit;
|
||
}
|
||
.chat-question-error { color: var(--bad); font-size: 12px; }
|
||
.chat-question-controls { display: flex; gap: 10px; }
|
||
.chat-question-submit { padding: 6px 12px; }
|
||
|
||
/* The conversation's own compact Back control, matching the create pane. The
|
||
narrow layout is where the chat list is covered; wide keeps the two panes. */
|
||
.chat-bar-lead { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
|
||
.chat-back { display: none; }
|
||
@media (max-width: 599px) {
|
||
.chat-back { display: inline-flex; }
|
||
}
|
||
|
||
/* The running detail is one ellipsised line for the whole turn; changing tools
|
||
must not change the transcript's height or bounce the text. */
|
||
.chat-running-tool { min-height: 18px; }
|
||
.chat-running-tool-text {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* ---- Phone comfort ------------------------------------------------------ */
|
||
@media (max-width: 599px) {
|
||
.chat-toolbar { padding: 10px 12px; }
|
||
.chat-toolbar .chat-search { min-height: 44px; font-size: 16px; }
|
||
.chat-new { min-height: 44px; padding: 0 14px; }
|
||
.chat-new-label { font-size: 14px; }
|
||
.chat-group-header,
|
||
.chat-group-toggle { min-height: 40px; padding: 10px 42px; font-size: 12px; }
|
||
.chat-group-directory .chat-group-title { font-size: 12px; }
|
||
.chat-row { min-height: 96px; }
|
||
.chat-row .row-head { padding-right: 50px; }
|
||
.chat-backend-logo { width: 22px; height: 22px; }
|
||
.chat-backend-logo svg { width: 20px; height: 20px; }
|
||
.chat-star {
|
||
top: 2px;
|
||
right: 2px;
|
||
width: 44px;
|
||
height: 44px;
|
||
font-size: 18px;
|
||
}
|
||
.chat-row .chat-menu-button {
|
||
right: 2px;
|
||
bottom: 2px;
|
||
width: 44px;
|
||
height: 44px;
|
||
font-size: 18px;
|
||
}
|
||
.chat-row-actions .chat-menu-item { padding: 8px 12px; font-size: 14px; }
|
||
.back-button .back-chevron { width: 24px; height: 24px; }
|
||
.chat-bar-title { font-size: 18px; }
|
||
.chat-model-button { max-width: 118px; min-height: 36px; }
|
||
.chat-activity { font-size: 12px; }
|
||
.chat-send,
|
||
.chat-stop { min-width: 44px; min-height: 44px; font-size: 18px; }
|
||
.chat-attach { min-width: 44px; min-height: 44px; }
|
||
.chat-composer-input { padding: 10px 12px; font-size: 16px; }
|
||
.chat-turn { font-size: 15px; }
|
||
}
|
||
|
||
/* Chat harness selection and the row's non-OpenCode backend chip. */
|
||
.chat-create-backends { display: flex; flex-wrap: wrap; gap: 8px; }
|
||
.chat-create-backend { padding: 6px 12px; border: 1px solid var(--border); color: var(--muted); }
|
||
.chat-create-backend.selected { border-color: var(--accent); background: var(--tint-selected); color: var(--text); }
|
||
.chat-backend-logo {
|
||
position: absolute;
|
||
top: 12px;
|
||
right: 54px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex: none;
|
||
width: 20px;
|
||
height: 20px;
|
||
color: var(--color-text);
|
||
pointer-events: none;
|
||
}
|
||
.chat-backend-logo svg { width: 18px; height: 18px; display: block; }
|
||
.chat-backend-logo[data-activity="streaming"] { color: var(--accent); }
|
||
.chat-backend-logo[data-activity="new"] { color: var(--ok); }
|
||
.chat-row .row-head { padding-right: 86px; }
|
||
.chat-backend-chip {
|
||
flex: 0 0 auto;
|
||
padding: 1px 6px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-pill);
|
||
color: var(--muted);
|
||
font-size: 10px;
|
||
line-height: 16px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
/* The current tool call shares the count line. It is the one live element on
|
||
that row, so tool handoffs do not add or remove a second status line. */
|
||
.chat-tool-current {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--muted);
|
||
font-weight: var(--weight-regular);
|
||
}
|
||
|
||
/* Input capability, not just screen width, selects touch-sized controls. */
|
||
@media (any-pointer: coarse) {
|
||
.chat-reasoning-toggle, .chat-tool-chip, .chat-group-toggle,
|
||
.chat-send, .chat-stop, .chat-attach, .chat-model-button, .chat-model-option,
|
||
.chat-new { min-height: 48px; }
|
||
.chat-row .chat-star, .chat-row .chat-menu-button { width: 48px; height: 48px; }
|
||
.chat-row .row-head { padding-right: 86px; }
|
||
}
|