Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/*
Composer menus — the dark composer box treatment (DARK_COMPOSER_BOX), the
permission-mode chip menu, the model × reasoning picker and its
provider/model groups, and the composer plus menu.
*/
/* DARK_COMPOSER_BOX — Codex elevated-primary + elevation-prominent */
:root[data-theme="dark"] .composer-shell {
/* Codex elevated-primary: #212121f5 / gray-800 96% (not flat solid) */
background: var(--ds-bg-elevated-primary);
box-shadow: var(--ds-shadow-composer);
border: 0;
outline: 0;
}
:root[data-theme="dark"] .composer-input::placeholder,
:root[data-theme="dark"] .composer-placeholder {
/* Codex dark placeholder ink (--ds-placeholder-ink). */
color: var(--ds-placeholder-ink);
-webkit-text-fill-color: var(--ds-placeholder-ink);
opacity: 1;
}
:root[data-theme="dark"] .composer-input {
color: var(--ds-text-primary);
}
:root[data-theme="dark"] .composer-toolbar .icon-btn,
:root[data-theme="dark"] .mode-chip {
color: color-mix(in oklab, var(--ds-text-primary) 78%, transparent);
}
:root[data-theme="dark"] .empty-hero-icon {
color: var(--ds-text-primary);
opacity: 1;
}
.composer-model-thinking {
position: relative;
/* Keep the label-sized trigger inside its shrinking toolbar slot. */
display: flex;
min-width: 0;
flex: 0 1 auto;
}
/* Permission-mode chip menu (D115): anchored left above the mode chips. */
.composer-permission {
position: relative;
}
.composer-permission-menu,
.composer-mode-menu {
position: fixed;
top: 0;
left: 0;
right: auto;
bottom: auto;
z-index: 40;
width: min(120px, calc(100vw - 24px));
max-height: min(520px, calc(100vh - 92px));
overflow-y: auto;
padding: 6px;
border-radius: var(--radius-lg);
background: var(--ds-bg-elevated-opaque);
box-shadow: var(--ds-shadow-dialog);
border: 1px solid var(--ds-border-subtle);
color: var(--ds-text-primary);
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.composer-model-menu {
position: fixed;
top: 0;
left: 0;
right: auto;
bottom: auto;
z-index: 40;
width: min(240px, calc(100vw - 24px));
max-height: min(520px, calc(100vh - 92px));
overflow-y: auto;
padding: 5px;
border-radius: var(--radius-xl);
background: color-mix(in oklab, var(--ds-bg-elevated-opaque) 82%, transparent);
backdrop-filter: saturate(1.6) blur(40px);
-webkit-backdrop-filter: saturate(1.6) blur(40px);
box-shadow:
0 0 0 0.5px var(--ds-elevation-stroke),
var(--ds-shadow-dialog);
border: none;
color: var(--ds-text-primary);
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.composer-permission-menu.is-open,
.composer-mode-menu.is-open,
.composer-model-menu.is-open {
opacity: 1;
pointer-events: auto;
visibility: visible;
}
.composer-model-thinking-menu {
z-index: 60;
/*
Wide enough for a full model row plus six reasoning stops under the slider;
narrower values ellipsized the "medium" label into "medi…".
*/
width: min(320px, calc(100vw - 24px));
padding: 6px;
border-radius: var(--radius-lg);
}
/* With several sources the menu becomes two panes: a text-only source rail on
the left and the selected source's models on the right. */
.composer-model-thinking-menu.has-rail {
width: min(420px, calc(100vw - 24px));
}
/* Rises from the trigger: a short lift and a near-imperceptible scale, so the
surface feels anchored rather than popping in. */
.composer-model-thinking-menu.is-open {
animation: composer-menu-in var(--motion-duration-normal) var(--motion-ease-out);
transform-origin: bottom right;
}
.composer-model-thinking-chip {
max-width: min(320px, calc(100vw - 24px));
min-width: 0;
/*
One quiet label, one badge, one caret. The model name is the only element
asking for attention; the reasoning level rides along as metadata.
*/
padding: 0 6px 0 10px !important;
gap: 6px !important;
border-radius: var(--radius-full) !important;
color: var(--ds-text-secondary) !important;
font-size: var(--text-sm);
line-height: var(--leading-none);
overflow: hidden;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-model-thinking-chip:hover {
background: var(--ds-bg-hover) !important;
color: var(--ds-text-primary) !important;
}
/* The menu measures this button on release. A press-scale transition would
cache a transient anchor rect until the first selection repositions it. */
.composer-model-thinking-chip:active:not(:disabled) {
transform: none;
}
/*
The glyph belongs to the collapsed form only. At the 450px floor the chip
drops its labels and keeps this icon as the trigger; at full width the model
name already says what the control is, so the icon only added noise.
*/
.composer-model-thinking-icon {
display: none;
flex: 0 0 auto;
align-items: center;
justify-content: center;
color: var(--ds-text-muted);
}
.composer-model-thinking-model,
.composer-model-thinking-level {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-model-thinking-model {
max-width: 170px;
color: var(--ds-text-primary);
font-weight: var(--font-weight-medium);
}
/*
The level badge is tonal rather than accented: it sits next to the name, so
it must read as metadata without competing with the primary ink.
*/
.composer-model-thinking-level {
flex: 0 0 auto;
display: inline-block;
max-width: 96px;
padding: 1px 6px;
border-radius: var(--radius-full);
background: var(--ds-bg-chip);
color: var(--ds-text-secondary);
font-size: var(--text-2xs);
line-height: var(--leading-compact);
}
/* Fast mode stays visible at every width: it changes what each turn costs. */
.composer-model-thinking-fast {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
color: var(--ds-text-secondary);
}
.composer-model-thinking-chevron {
flex: 0 0 auto;
color: var(--ds-text-faint);
transition:
color var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-normal) var(--motion-ease-out);
}
.composer-model-thinking-chip:hover .composer-model-thinking-chevron,
.composer-model-thinking-chip.active .composer-model-thinking-chevron {
color: var(--ds-text-secondary);
}
/* The caret turns toward the open menu, which sits above the trigger. */
.composer-model-thinking-chip.active .composer-model-thinking-chevron {
transform: rotate(180deg);
}
.composer-model-thinking-menu .composer-menu-root {
display: flex;
flex-direction: column;
gap: 0;
}
.composer-menu-entry,
.composer-menu-back {
display: flex;
width: 100%;
min-width: 0;
min-height: 30px;
align-items: center;
gap: 7px;
border-radius: var(--radius-sm);
padding: 0 8px;
color: var(--ds-text-primary);
font-size: var(--text-sm-plus);
line-height: var(--leading-compact);
text-align: left;
cursor: pointer;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-menu-entry:hover,
.composer-menu-entry:focus-visible,
.composer-menu-back:hover,
.composer-menu-back:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.composer-menu-entry > svg,
.composer-menu-back > svg {
flex: 0 0 auto;
color: var(--ds-text-secondary);
}
.composer-menu-entry-label {
flex: 0 0 auto;
}
.composer-menu-entry-value {
min-width: 0;
margin-left: auto;
overflow: hidden;
color: var(--ds-text-muted);
font-size: var(--text-sm);
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-menu-entry > svg:last-child {
color: var(--ds-text-muted);
}
/* Menu groups are separated by a breath of space, not a rule (D297). */
.composer-menu-separator {
height: 1px;
margin: 2px 8px;
background: var(--ds-border-subtle);
}
/* Search is the menu's header: flush with the surface, closed by a hairline
that runs edge to edge. */
.composer-model-thinking-menu .composer-model-search {
margin: 0 -6px 6px;
}
.composer-model-thinking-menu .composer-menu-root > .composer-model-search:first-child {
margin-top: -6px;
}
/* Rows are compact and quiet. Selection is a weight change plus a drawn
check, not a filled slab, so hover and keyboard focus own the only fill. */
.composer-model-thinking-menu .composer-plus-item {
min-height: 28px;
gap: 8px;
padding: 0 8px;
border-radius: var(--radius-2xs);
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-model-thinking-menu .composer-model-option.active,
.composer-model-thinking-menu .composer-model-option.active.kb-active {
background: transparent;
}
.composer-model-thinking-menu .composer-model-option.active:hover,
.composer-model-thinking-menu .composer-model-option.active.kb-active {
background: var(--ds-bg-hover);
}
.composer-model-thinking-menu .composer-model-option.active .composer-model-label {
font-weight: var(--font-weight-medium);
}
.composer-model-thinking-menu .composer-model-group-label {
padding: 8px 8px 3px;
font-size: var(--text-2xs);
}
.composer-model-thinking-menu .composer-model-group:first-child .composer-model-group-label {
padding-top: 2px;
}
.composer-model-thinking-menu .composer-model-empty {
padding: 28px 8px;
color: var(--ds-text-faint);
}
/* Two-pane body: rail | models. One hairline separates the panes; both keep
one height so switching sources never resizes the menu. */
.composer-model-body {
display: flex;
min-height: 0;
}
.composer-model-body[data-rail] {
display: grid;
grid-template-columns: 116px minmax(0, 1fr);
}
.composer-model-body[data-rail] .composer-model-list,
.composer-model-body[data-rail] .composer-model-rail {
height: min(264px, calc(var(--model-pane-rows, 8) * 30px + 4px));
max-height: none;
}
.composer-model-body[data-rail] .composer-model-list {
padding-left: 6px;
}
.composer-model-rail {
position: relative;
display: flex;
flex-direction: column;
gap: 2px;
padding-right: 6px;
border-right: 1px solid var(--ds-border-subtle);
overflow-y: auto;
}
/* The rail scrolls only with many sources; its bar stays out of the way. */
.composer-model-rail::-webkit-scrollbar {
width: 0;
}
.composer-model-rail-item {
display: flex;
flex: 0 0 auto;
min-width: 0;
height: 28px;
align-items: center;
gap: 6px;
padding: 0 8px;
border-radius: var(--radius-2xs);
color: var(--ds-text-muted);
font-size: var(--text-sm);
text-align: left;
cursor: pointer;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out),
opacity var(--motion-duration-normal) var(--motion-ease-out);
}
.composer-model-rail-item:hover,
.composer-model-rail-item:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.composer-model-rail-item.active {
color: var(--ds-text-primary);
font-weight: var(--font-weight-medium);
}
/* While searching, sources without a match step back instead of vanishing,
so the rail never reflows under the pointer. */
.composer-model-rail-item[data-empty] {
opacity: 0.38;
}
/* One hairline marker travels between sources instead of each item switching
its own state: the eye follows the move. Rows are 28px + a 2px gap. */
.composer-model-rail-indicator {
position: absolute;
top: 8px;
left: 0;
width: 2px;
height: 12px;
border-radius: var(--radius-full);
background: var(--ds-text-primary);
transform: translateY(calc(var(--rail-index, 0) * 30px));
transition:
transform var(--motion-duration-normal) var(--motion-ease-out),
opacity var(--motion-duration-fast) var(--motion-ease-out);
pointer-events: none;
}
.composer-model-rail-indicator[data-hidden] {
opacity: 0;
}
.composer-model-rail-label {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-model-rail-count {
flex: 0 0 auto;
color: var(--ds-text-faint);
font-size: var(--text-2xs);
font-weight: var(--font-weight-normal);
font-variant-numeric: tabular-nums;
}
/* A new source's rows drift in from the side the rail moved toward. */
.composer-model-pane[data-step] {
animation: composer-model-pane-in var(--motion-duration-normal) var(--motion-ease-out);
}
.composer-model-pane[data-step="back"] {
--pane-shift: -6px;
}
@keyframes composer-model-pane-in {
from {
opacity: 0;
transform: translateY(var(--pane-shift, 6px));
}
}
/* Narrow windows keep both panes and narrow the rail; counts give way first. */
@media (max-width: 480px) {
.composer-model-body[data-rail] {
grid-template-columns: 92px minmax(0, 1fr);
}
.composer-model-rail-count {
display: none;
}
}
.composer-model-check-slot {
display: inline-flex;
flex: 0 0 13px;
justify-content: center;
}
/* The check is drawn, short stroke first, the moment a row becomes current. */
.composer-model-check path {
stroke-dasharray: 24;
animation: composer-model-check-draw var(--motion-duration-slow) var(--motion-ease-out) both;
}
@keyframes composer-model-check-draw {
from {
stroke-dashoffset: -24;
}
to {
stroke-dashoffset: 0;
}
}
.composer-model-option-provider {
color: var(--ds-text-faint);
font-size: var(--text-2xs);
}
/* Reasoning is a footer setting for the selected model, under one hairline. */
.composer-model-reasoning {
display: flex;
align-items: center;
gap: 10px;
margin: 6px -6px -6px;
padding: 8px 8px 8px 14px;
border-top: 1px solid var(--ds-border-subtle);
}
.composer-model-reasoning-label {
flex: 0 0 auto;
color: var(--ds-text-muted);
font-size: var(--text-2xs);
}
.composer-model-reasoning .composer-thinking-slider {
min-width: 0;
flex: 1;
}
@media (max-width: 480px) {
.composer-model-reasoning-label {
display: none;
}
}
/* Reasoning control (issue #417): a segmented track with a raised pill.
Column contract: the labels are a full-width n-column grid, and the pill is
one column wide (minus a 2px gutter each side) offset by index/n, so pill i
and label i share the column center W/(2n) + i·W/n. The native range
overlays the track at full width, inset on both sides by half a column minus
its (invisible) thumb radius, which puts each native stop on the same
center. The range owns keyboard, drag and accessibility; the pill and the
labels underneath it are decoration. */
.composer-thinking-slider {
--thinking-thumb-radius: 7px;
--thinking-gutter: 2px;
--thinking-inset: calc(100% / (2 * var(--stop-count, 1)) - var(--thinking-thumb-radius));
}
.composer-thinking-rail {
position: relative;
height: 24px;
border-radius: var(--radius-xs);
background: color-mix(in oklab, var(--ds-text-primary) 6%, transparent);
}
.composer-thinking-thumb {
z-index: 1;
position: absolute;
top: var(--thinking-gutter);
bottom: var(--thinking-gutter);
left: calc(var(--composer-thinking-progress, 0%) + var(--thinking-gutter));
width: calc(100% / var(--stop-count, 1) - 2 * var(--thinking-gutter));
border-radius: var(--radius-2xs);
background: var(--ds-raised);
box-shadow: var(--ds-raised-shadow);
pointer-events: none;
transition:
left var(--motion-duration-normal) var(--motion-ease-out),
transform var(--motion-duration-fast) var(--motion-ease-out);
}
/* Pressing gives the pill a slight give before it travels. */
.composer-thinking-slider:has(.composer-thinking-range:active) .composer-thinking-thumb {
transform: scale(0.96);
}
.composer-thinking-slider[data-dragging] .composer-thinking-thumb {
transform: none;
transition: none;
}
.composer-thinking-ticks {
z-index: 2;
position: absolute;
inset: 0;
display: grid;
grid-template-columns: repeat(var(--stop-count, 1), minmax(0, 1fr));
pointer-events: none;
}
.composer-thinking-tick {
min-width: 0;
overflow: hidden;
padding: 0 2px;
color: var(--ds-text-muted);
font-size: var(--text-2xs);
line-height: var(--leading-compact);
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-thinking-tick[data-hovered],
.composer-thinking-tick:focus-visible {
color: var(--ds-text-primary);
}
.composer-thinking-tick.active {
color: var(--ds-text-primary);
font-weight: var(--font-weight-medium);
}
.composer-thinking-range {
z-index: 3;
-webkit-appearance: none;
appearance: none;
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0 var(--thinking-inset);
background: transparent;
cursor: pointer;
}
.composer-thinking-range:focus-visible {
border-radius: var(--radius-xs);
outline: 2px solid var(--ds-accent);
outline-offset: 2px;
}
.composer-thinking-range::-webkit-slider-runnable-track {
height: 100%;
background: transparent;
}
.composer-thinking-range::-webkit-slider-thumb {
-webkit-appearance: none;
width: calc(2 * var(--thinking-thumb-radius));
height: 100%;
border: 0;
background: transparent;
}
.composer-thinking-range::-moz-range-track {
height: 100%;
background: transparent;
}
.composer-thinking-range::-moz-range-thumb {
width: calc(2 * var(--thinking-thumb-radius));
height: 100%;
border: 0;
background: transparent;
}
@keyframes composer-menu-in {
from {
opacity: 0;
transform: translateY(4px) scale(0.985);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.composer-model-thinking-menu,
.composer-model-pane[data-step],
.composer-model-check path,
.composer-model-search-clear {
animation: none;
}
.composer-thinking-thumb,
.composer-thinking-tick,
.composer-model-rail-indicator,
.composer-model-thinking-chevron,
.composer-model-settings svg {
transition: none;
}
}
/* Light mode: the glassmorphism layer needs an opaque white base because
82% white-on-white is invisible. Use a solid background with a subtle
border and a stronger shadow instead of backdrop-filter translucency. */
:root[data-theme="light"] .composer-model-menu {
background: var(--ds-bg-elevated-opaque);
backdrop-filter: none;
-webkit-backdrop-filter: none;
box-shadow: var(--ds-shadow-model-menu);
}
:root[data-theme="light"] .composer-model-group-label {
background: var(--ds-bg-elevated-opaque);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.composer-model-heading {
display: flex;
flex-direction: column;
gap: 2px;
padding: 8px 10px 6px;
}
/* Provider→models groups: the list scrolls on its own so the search field and
provider headings stay reachable with many discovered models. */
.composer-model-list {
min-width: 0;
flex: 1;
max-height: 264px;
overflow-y: auto;
}
.composer-model-group-label {
position: sticky;
top: 0;
z-index: 1;
padding: 6px 8px 2px;
background: color-mix(in oklab, var(--ds-bg-elevated-opaque) 82%, transparent);
backdrop-filter: saturate(1.6) blur(40px);
-webkit-backdrop-filter: saturate(1.6) blur(40px);
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
font-weight: var(--font-weight-strong);
letter-spacing: var(--tracking-wide);
text-transform: uppercase;
}
:lang(zh-CN) .composer-model-group-label {
letter-spacing: var(--tracking-normal);
text-transform: none;
}
/* Model rows share the provider heading's compact inset. Normal-weight option
text stays distinct from the stronger provider heading. */
.composer-model-group .composer-model-option {
padding-left: 8px;
font-size: var(--text-sm);
font-weight: var(--font-weight-normal);
}
/*
One row per model, and it stays one row: the friendly name takes the space it
needs up to the row's trailing markers (provider, capability icons, context
window), and anything longer than that is truncated with an ellipsis instead
of wrapping the row onto a second line. The full name and the wire id remain
reachable as the button's title, so identity is still one hover away.
*/
.composer-model-option-main {
display: flex;
min-width: 0;
flex: 1;
flex-direction: row;
flex-wrap: nowrap;
align-items: baseline;
gap: 2px 8px;
}
/*
One label, never the wire id and a name together: the user's alias when the
binding carries one, the catalog's name otherwise. Which of the two is on
screen is visible in the label's own shape, and a long name wraps instead of
hiding the part that distinguishes two configured models. The wire id stays
the row's title.
*/
.composer-model-label {
min-width: 0;
flex: 0 1 auto;
max-width: 100%;
color: var(--ds-text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* A name the user set is a label of its own, and reads as one: the catalog name
stays plain text while an alias carries its own chip. Colour cannot tell the
two apart here — the app's accent is the text colour itself — so the shape
carries the meaning. */
.composer-model-label.is-alias {
padding: 1px 6px;
border-radius: var(--radius-full);
background: var(--ds-tile-deep);
}
.composer-model-option-meta {
display: flex;
flex: 0 1 auto;
min-width: 0;
/* Pinned to the row's trailing edge: the provider, the capability icons and
the window are what a row shows on the right. The provider name gives way
first, so a long model name keeps its own space. */
margin-left: auto;
align-items: center;
gap: 4px;
}
/* The provider trailing a row is supporting text on a shared line: it yields
width before the model name and never wraps the row. */
.composer-model-option-meta > span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Capability markers are icons, not words: a row carries up to two of them, and
the spelled-out labels were the widest thing in it. The accessible name stays
the translated label, so nothing is lost to a screen reader. */
.composer-model-option-badge {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
color: var(--ds-text-faint);
}
.composer-model-option-ctx {
color: var(--ds-text-faint);
font-size: var(--text-2xs);
font-variant-numeric: tabular-nums;
}
.composer-plus-item.active {
background: var(--ds-bg-active);
border-radius: var(--radius-sm);
}
.composer-plus-item.active span:last-child:not(.composer-ac-path) {
color: var(--ds-text-primary);
}
/* Keyboard highlight mirrors hover; both can coexist with .active. */
.composer-plus-item.kb-active {
background: var(--ds-bg-hover);
}
.composer-plus-item.active.kb-active {
background: var(--ds-bg-active);
}
.composer-model-check {
flex: 0 0 auto;
color: var(--ds-accent) !important;
}
.composer-model-search {
display: flex;
align-items: center;
gap: 8px;
height: 38px;
padding: 0 10px 0 14px;
border-bottom: 1px solid var(--ds-border-subtle);
color: var(--ds-text-faint);
transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-model-search:focus-within {
color: var(--ds-text-secondary);
}
.composer-model-search svg {
flex: 0 0 auto;
}
.composer-model-search-clear {
display: inline-flex;
flex: 0 0 auto;
width: 18px;
height: 18px;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
background: var(--ds-tile-deep);
color: var(--ds-text-secondary);
cursor: pointer;
animation: composer-model-clear-in var(--motion-duration-fast) var(--motion-ease-out);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-model-search-clear:hover {
background: var(--ds-bg-active);
color: var(--ds-text-primary);
}
/* The way out to Models settings: a quiet glyph at the header's trailing
edge, so it never competes with the search field for attention. */
.composer-model-settings {
display: inline-flex;
flex: 0 0 auto;
width: 24px;
height: 24px;
align-items: center;
justify-content: center;
border-radius: var(--radius-2xs);
color: var(--ds-text-faint);
cursor: pointer;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-model-settings:hover,
.composer-model-settings:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.composer-model-settings svg {
transition: transform var(--motion-duration-normal) var(--motion-ease-out);
}
.composer-model-settings:hover svg {
transform: rotate(45deg);
}
@keyframes composer-model-clear-in {
from {
opacity: 0;
transform: scale(0.6);
}
}
.composer-model-search input {
min-width: 0;
flex: 1;
height: 100%;
border: 0;
background: transparent;
outline: none;
color: var(--ds-text-primary);
font-size: var(--text-sm-plus);
}
.composer-model-search input::placeholder {
color: var(--ds-text-faint);
}
.composer-model-empty {
padding: 12px 8px;
color: var(--ds-text-muted);
font-size: var(--text-sm);
text-align: center;
}
/* Plan approval mode menu. The split trigger lives in composer.css; this
partial owns the floating menu surface and its keyboard-highlight states. */
.plan-approval-menu {
position: fixed;
top: 0;
left: 0;
right: auto;
bottom: auto;
z-index: 25;
width: max-content;
min-width: 150px;
max-width: min(220px, calc(100vw - 32px));
padding: 4px;
border: 1px solid var(--ds-border-default);
border-radius: var(--radius-sm);
background: var(--ds-bg-elevated-opaque);
box-shadow: var(--ds-shadow-dialog);
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.plan-approval-menu.is-open {
opacity: 1;
pointer-events: auto;
visibility: visible;
}
.plan-approval-menu-item {
display: flex;
width: 100%;
min-width: 0;
align-items: center;
gap: 10px;
padding: 7px 8px;
border-radius: var(--radius-3xs);
color: var(--ds-text-secondary);
font-size: var(--text-sm-plus);
line-height: var(--leading-compact);
text-align: left;
overflow-wrap: anywhere;
}
.plan-approval-menu-item:hover:not(:disabled),
.plan-approval-menu-item:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.plan-approval-menu-item svg {
flex: 0 0 auto;
margin-left: auto;
}