Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/* Session controls: lists, toolbars, sort popover, project grouping, and
disclosure. Base thread row styles live in sidebar-threads.css. */
/* -------------------------------------------------------------------------
* Inline import workbenches inside their settings destinations.
*/
.import-inline-section[hidden],
.import-inline-workbench[hidden] {
display: none;
}
.import-inline-workbench {
min-width: 0;
padding: 10px 0;
}
.import-workbench {
display: flex;
min-width: 0;
flex-direction: column;
gap: 10px;
}
/* One action row per kind: both counts on the left, options and actions right. */
.import-toolbar {
display: flex;
min-width: 0;
flex-wrap: wrap;
align-items: center;
gap: 8px 12px;
padding: 0 1px;
}
.import-select-all {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 8px;
cursor: pointer;
}
.import-count {
display: inline-flex;
min-width: 0;
align-items: baseline;
gap: 8px;
color: var(--ds-text-primary);
font-size: var(--text-sm);
}
.import-count-selected {
color: var(--ds-text-muted);
font-variant-numeric: tabular-nums;
}
.import-count-selected::before {
color: var(--ds-text-faint);
content: "· ";
}
.import-toolbar-actions {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 8px;
margin-left: auto;
}
/*
The shared `.btn` runs a step larger than the selects beside it, so give it
toolbar geometry here rather than resizing every other page. `min-height`
instead of `height` so a wrapped label grows the button instead of spilling
out of it.
*/
.import-toolbar-actions > .btn {
min-height: 28px;
padding: 4px 11px;
font-size: var(--text-sm);
}
.import-option {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 7px;
}
.import-option-label {
color: var(--ds-text-muted);
font-size: var(--text-sm);
white-space: nowrap;
}
.import-option-select .settings-menu-select-trigger {
height: 28px;
}
/* D297: the list dissolves into the page — each row is its own tile. */
.settings-panel.import-panel {
gap: 6px;
background: transparent;
overflow: visible;
}
.import-groups {
display: flex;
min-width: 0;
flex-direction: column;
gap: 12px;
}
/* Quiet label line above its rows: which source, where it lives, how many. */
.import-group-header {
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
padding: 0 10px 6px;
}
.import-group-toggle {
display: flex;
min-width: 0;
flex: 1;
align-items: center;
gap: 8px;
border: 0;
background: transparent;
padding: 2px 0;
cursor: pointer;
color: inherit;
text-align: left;
}
.import-group-toggle:focus-visible {
outline: none;
box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 22%, transparent);
}
.import-group-chevron {
display: inline-flex;
flex-shrink: 0;
color: var(--ds-text-muted);
transform: rotate(-90deg);
transition: transform var(--motion-duration-fast) var(--motion-ease-out);
}
.import-group-chevron.collapsed {
transform: rotate(180deg);
}
.import-group-name {
flex: 0 0 auto;
color: var(--ds-text-secondary);
font-size: var(--text-2xs);
font-weight: var(--font-weight-strong);
letter-spacing: var(--tracking-wide);
text-transform: uppercase;
white-space: nowrap;
}
.import-group-path {
min-width: 0;
flex: 1;
overflow: hidden;
color: var(--ds-text-muted);
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-overflow: ellipsis;
white-space: nowrap;
}
.import-group-count {
flex: 0 0 auto;
border-radius: var(--radius-full);
background: color-mix(in oklab, var(--ds-text-primary) 8%, transparent);
padding: 1px 7px;
color: var(--ds-text-muted);
font-size: var(--text-3xs);
font-variant-numeric: tabular-nums;
line-height: var(--leading-normal);
}
.import-group-body {
display: flex;
min-width: 0;
flex-direction: column;
gap: 4px;
}
/* One candidate: checkbox, identity, badge. */
.import-row {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
border-radius: var(--radius-md);
background: var(--ds-tile);
padding: 6px 10px;
cursor: pointer;
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.import-row:hover {
background: var(--ds-tile-hover);
}
/* Selection is tonal, never a color: the checkbox already says which rows. */
.import-row:has(input:checked) {
background: var(--ds-tile-deep);
}
.import-row:has(input:focus-visible),
.import-group-checkbox:has(> input:focus-visible) {
outline: none;
box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 22%, transparent);
}
.import-row > input[type="checkbox"],
.import-group-checkbox > input[type="checkbox"] {
width: 14px;
height: 14px;
flex: 0 0 auto;
margin: 0;
}
.import-row > span {
display: flex;
min-width: 0;
flex: 1;
align-items: center;
gap: 10px;
}
.import-group-checkbox > span {
display: none;
}
.import-row-main {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 1px;
}
.import-row-title {
overflow: hidden;
color: var(--ds-text-primary);
font-size: var(--text-md);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact);
text-overflow: ellipsis;
white-space: nowrap;
}
.import-row-meta {
overflow: hidden;
color: var(--ds-text-muted);
font-size: var(--text-2xs);
line-height: var(--leading-normal);
text-overflow: ellipsis;
white-space: nowrap;
}
/* Pre-scan state: what the scan reads, then the action that starts it. */
.import-idle {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
border-radius: var(--radius-lg);
background: var(--ds-tile);
padding: 26px 20px;
text-align: center;
}
.import-idle-glyph {
display: inline-flex;
color: var(--ds-text-faint);
}
.import-idle-description {
max-width: 680px;
margin: 0;
color: var(--ds-text-muted);
font-size: var(--text-sm);
line-height: var(--leading-normal);
}
/* A scan that found nothing keeps its action in the toolbar above. */
.import-empty {
margin: 0;
border-radius: var(--radius-lg);
background: var(--ds-tile);
padding: 16px 14px;
color: var(--ds-text-muted);
font-size: var(--text-sm);
}
/* Sidebar session management controls */
.thread-item.archived,
.project-group.archived {
opacity: 0.68;
}
/*
Sidebar session status marks share one glyph language with the project
header badge (sidebar-threads.css):
running dot + ripple — work in flight, breathing halo
permission dot + halo — needs the user; the row is tinted too
selected accent bar — the session on screen
completed filled chip ✓ — settled
failed filled chip ! — settled, needs a look
Each shape stays legible with motion removed. Motion is bounded to a finite
cycle count (issue #1064): an idle window must stop submitting frames.
*/
.thread-item-status {
display: inline-flex;
width: 14px;
height: 14px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
color: var(--ds-text-muted);
position: absolute;
left: 3px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
.thread-item-status.running::before {
box-sizing: border-box;
width: 7px;
height: 7px;
border-radius: var(--radius-full);
background: var(--ds-warning);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ds-warning) 15%, transparent);
content: "";
animation: sidebar-status-breathe 1.6s ease-in-out 2;
}
.thread-item-status.permission::before {
width: 6px;
height: 6px;
border-radius: var(--radius-full);
background: var(--ds-purple);
box-shadow: 0 0 0 2.5px color-mix(in oklab, var(--ds-purple) 24%, transparent);
content: "";
animation: sidebar-status-ping 1.4s cubic-bezier(0, 0, 0.2, 1) 2;
}
.thread-item-status.selected::before {
width: 3px;
height: 14px;
border-radius: var(--radius-full);
background: var(--ds-accent);
content: "";
}
.thread-item-status.completed,
.thread-item-status.failed {
width: 13px;
height: 13px;
left: 3.5px;
border-radius: var(--radius-full);
}
.thread-item-status.completed {
background: color-mix(in oklab, var(--ds-success) 16%, transparent);
color: var(--ds-success);
}
.thread-item-status.failed {
background: color-mix(in oklab, var(--ds-error) 16%, transparent);
color: var(--ds-error);
}
.thread-item-status.completed svg {
width: 8px;
height: 8px;
stroke-width: 3.5;
}
/* The alert glyph draws its own circle; the chip already is one, so only the
exclamation mark is kept. */
.thread-item-status.failed svg {
width: 13px;
height: 13px;
stroke-width: 2.5;
}
.thread-item-status.failed svg circle {
stroke: none;
}
/* A running row lifts its title to primary ink so live work stands out from
history without adding another mark. */
.thread-item:has(> .thread-item-status.running) .thread-item-title {
color: var(--ds-text-primary);
}
/* A permission wait blocks the agent on the user, so the whole row carries a
faint purple wash in addition to the mark. Selection and hover keep their
own surfaces. */
.thread-item:not(.active):not(:hover):has(> .thread-item-status.permission) {
background: color-mix(in oklab, var(--ds-purple) 9%, transparent);
color: var(--ds-text-primary);
}
@keyframes sidebar-status-breathe {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.68;
transform: scale(0.78);
}
}
@keyframes sidebar-status-ping {
0% {
box-shadow: 0 0 0 0 color-mix(in oklab, var(--ds-purple) 55%, transparent);
}
70% {
box-shadow: 0 0 0 6px color-mix(in oklab, var(--ds-purple) 0%, transparent);
}
100% {
box-shadow: 0 0 0 2.5px color-mix(in oklab, var(--ds-purple) 24%, transparent);
}
}
@media (prefers-reduced-motion: reduce) {
.thread-item-status.running::before {
animation: none;
}
.thread-item-status.permission::before {
animation: none;
}
}
.thread-item-pin {
flex: 0 0 auto;
color: var(--ds-accent);
}
.sidebar-project-pin {
flex: 0 0 auto;
color: var(--ds-accent);
}
.sidebar-menu-wrap {
position: relative;
display: inline-flex;
align-items: center;
flex: 0 0 auto;
}
.thread-item-meta {
position: relative;
flex: 0 0 auto;
}
.thread-item-more {
display: inline-flex;
width: 24px;
height: 24px;
align-items: center;
justify-content: center;
border-radius: var(--radius-2xs);
color: var(--ds-text-muted);
opacity: 0;
/* The hidden control is not a pointer target until its row reveals it. */
pointer-events: none;
transition:
opacity var(--motion-duration-fast) var(--motion-ease-out),
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.thread-item:hover .thread-item-more,
.thread-item:focus-within .thread-item-more,
.sidebar-session-group-header:hover .thread-item-more,
.sidebar-session-group-header:focus-within .thread-item-more,
.thread-item.active .thread-item-more:hover,
.thread-item-more[aria-expanded="true"] {
opacity: 1;
pointer-events: auto;
}
.thread-item-more:focus-visible {
opacity: 1;
pointer-events: auto;
}
/* The header add control shares the same reveal, and stays click-through until
* the header is hovered or focused. */
.sidebar-session-group-add {
pointer-events: none;
}
/* Without hover there is nothing to reveal the row controls with, so a no-hover
* pointer gets them visible and tappable outright. */
@media (hover: none) {
.thread-item-meta .thread-item-more,
.sidebar-menu-wrap .thread-item-more,
.sidebar-session-group-add {
opacity: 1;
pointer-events: auto;
}
.thread-item-meta .thread-item-last-reply {
opacity: 0;
visibility: hidden;
}
}
.thread-item-more:hover,
.thread-item-more:focus-visible,
.thread-item-more[aria-expanded="true"] {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.sidebar-row-menu,
.sidebar-popover {
position: fixed;
top: 0;
left: 0;
right: auto;
bottom: auto;
z-index: 60;
min-width: 172px;
max-height: min(360px, calc(100vh - 16px));
overflow-y: auto;
padding: 5px;
border: 1px solid var(--ds-border-subtle);
border-radius: var(--radius-md-plus);
background: var(--ds-bg-elevated-opaque, var(--ds-bg-primary));
box-shadow: var(--ds-shadow-dialog);
}
.sidebar-floating-menu {
position: fixed;
top: auto;
right: auto;
z-index: 60; /* z-command-palette: body-level overlays above pane stacking */
min-width: 184px;
width: max-content;
max-width: calc(100vw - 16px);
}
.sidebar-submenu {
position: fixed;
z-index: 61;
width: max-content;
min-width: 184px;
max-width: calc(100vw - 16px);
max-height: min(360px, calc(100vh - 16px));
overflow-y: auto;
box-shadow: var(--ds-shadow-dialog);
}
.sidebar-row-menu .sidebar-menu-submenu-trigger[aria-expanded="true"] {
background: var(--ds-bg-hover);
}
.sidebar-menu-submenu-trigger .sidebar-menu-label {
flex: 1 1 auto;
}
.sidebar-menu-submenu-chevron {
margin-inline-start: auto;
color: var(--ds-text-muted);
}
.sidebar-row-menu button,
.sidebar-popover button {
display: flex;
width: 100%;
align-items: center;
gap: 8px;
border-radius: var(--radius-sm);
padding: 7px 8px;
color: var(--ds-text-primary);
font-size: var(--text-sm-plus);
text-align: left;
white-space: nowrap;
}
.sidebar-row-menu button:hover,
.sidebar-row-menu button:focus-visible,
.sidebar-row-menu button[aria-expanded="true"],
.sidebar-popover button:hover,
.sidebar-popover button:focus-visible,
.sidebar-popover button.selected {
background: var(--ds-bg-hover);
}
.sidebar-row-menu button:disabled {
background: transparent;
color: var(--ds-text-muted);
cursor: not-allowed;
opacity: 0.55;
}
.sidebar-row-menu button.danger {
color: var(--ds-error);
}
/* An armed delete item names its second click, so the swap stays obvious. */
.sidebar-row-menu button.danger.is-armed {
background: color-mix(in oklab, var(--ds-error) 14%, transparent);
}
.sidebar-row-menu button svg,
.sidebar-popover button svg {
flex: 0 0 auto;
color: var(--ds-text-muted);
}
.session-rename-dialog-overlay {
z-index: 65;
}
.session-rename-dialog {
width: min(100%, 420px);
}
.session-rename-dialog-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.session-rename-dialog-title {
display: flex;
align-items: center;
gap: 7px;
margin: 0;
color: var(--ds-text-primary);
font-size: var(--text-lg);
font-weight: var(--font-weight-strong);
line-height: var(--leading-heading);
}
.session-rename-dialog-heading {
min-width: 0;
flex: 1;
overflow-wrap: anywhere;
}
.session-rename-dialog-title svg {
flex-shrink: 0;
color: var(--ds-text-muted);
}
.session-rename-dialog-description {
margin: 5px 0 0;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
line-height: var(--leading-body);
}
.session-rename-dialog-close {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
color: var(--ds-text-secondary);
}
.session-rename-dialog-close:hover:not(:disabled) {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.session-rename-dialog-label {
display: block;
margin-bottom: 7px;
color: var(--ds-text-primary);
font-size: var(--text-sm-plus);
font-weight: var(--font-weight-medium);
}
.session-rename-dialog .field-input {
width: 100%;
}
.session-rename-dialog-meta {
display: flex;
justify-content: space-between;
gap: 12px;
margin-top: 6px;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
}
.session-rename-dialog-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 18px;
}
.sidebar-list-toolbar {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 24px;
/* The label opens a section, so its own top padding carries the 8px
section-to-section gap; the list below it supplies the 2px back. */
padding: 8px 4px 0;
border-radius: var(--radius-sm);
}
/* A section heading that lives inside the scrolling group list, used when a
second group set follows the first (host project groups). It carries the same
label styling and the same 8px section gap as `.sidebar-list-toolbar`, and
its 2px side padding lands on the toolbar's 4px label inset once the list's
own `px-0.5` is added. */
.sidebar-list-subheader {
display: flex;
flex: 0 0 auto;
align-items: center;
min-height: 24px;
padding: 8px 2px 0;
border-radius: var(--radius-sm);
}
.sidebar-list-label {
color: var(--ds-text-muted);
font-size: var(--text-sm); /* section labels less micro */
font-weight: var(--font-weight-medium);
letter-spacing: var(--tracking-wide);
text-transform: uppercase;
}
/* CJK has no case and wide tracking splits glyphs unnaturally. */
:lang(zh-CN) .sidebar-list-label,
:lang(zh-CN) .dest-section-label,
:lang(zh-CN) .shortcut-group-label,
:lang(zh-CN) .import-group-name,
:lang(zh-TW) .import-group-name {
letter-spacing: var(--tracking-normal);
text-transform: none;
}
.sidebar-toolbar-button {
display: inline-flex;
width: 22px;
height: 22px;
align-items: center;
justify-content: center;
border-radius: var(--radius-2xs);
color: var(--ds-text-muted);
opacity: 0;
transition:
opacity var(--motion-duration-fast) var(--motion-ease-out),
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-fast) var(--motion-ease-out);
}
.sidebar-list-toolbar:hover .sidebar-toolbar-button,
.sidebar-list-toolbar:focus-within .sidebar-toolbar-button,
.sidebar-toolbar-button:hover,
.sidebar-toolbar-button:focus-visible,
.sidebar-toolbar-button.active {
opacity: 1;
}
.sidebar-session-group-header:hover .sidebar-session-group-add,
.sidebar-session-group-header:focus-within .sidebar-session-group-add {
opacity: 1;
}
.sidebar-toolbar-button:hover,
.sidebar-toolbar-button.active,
.sidebar-toolbar-button:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.sidebar-list-toolbar-secondary {
padding-right: 2px;
padding-left: 2px;
}
.sidebar-toolbar-actions {
display: inline-flex;
align-items: center;
gap: 0;
}
.sidebar-section-menu {
min-width: min(176px, calc(100vw - 16px));
}
.sidebar-sort-menu {
min-width: min(210px, calc(100vw - 16px));
}
/* Keep the portaled sort surface content-sized instead of stretching to the
* viewport edge. */
.sidebar-popover.sidebar-floating-menu {
top: auto;
right: auto;
}
/* A group caption inside the panel: quiet, and never a pointer target. */
.sidebar-menu-section {
margin: 0;
padding: 6px 8px 4px;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
font-weight: var(--font-weight-medium);
}
.sidebar-menu-separator {
height: 1px;
margin: 4px 6px;
background: var(--ds-border-subtle);
}
.sidebar-menu-hint {
margin: 0;
padding: 2px 8px 6px;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
}
/* A note hangs under its own rule, so it reads as part of the row above. */
.sidebar-menu-note {
max-width: 260px;
margin: -2px 0 4px;
padding: 0 8px 0 30px;
color: var(--ds-error);
font-size: var(--text-sm);
white-space: normal;
overflow-wrap: anywhere;
}
.sidebar-popover button {
justify-content: space-between;
}
.sidebar-sort-check,
.sidebar-checkbox {
color: var(--ds-accent);
font-weight: var(--font-weight-medium);
}
.sidebar-checkbox {
display: inline-flex;
width: 15px;
height: 15px;
align-items: center;
justify-content: center;
border-radius: var(--radius-2xs);
background: var(--ds-tile-deep);
font-size: var(--text-xs);
}
/* A filled square is the box; the check and the accent tint are the state. */
.sidebar-checkbox.checked {
background: color-mix(in oklab, var(--ds-accent) 22%, transparent);
}
/* Compact hover card for session rows. Related-session references stay
real buttons so the card remains usable with a keyboard. */
.sidebar-session-hover-card {
position: fixed;
z-index: 71;
width: min(320px, calc(100vw - 16px));
max-height: calc(100vh - 16px);
overflow: auto;
padding: 10px 12px;
border: 1px solid var(--ds-border-default);
border-radius: var(--radius-md);
background: var(--ds-bg-elevated-opaque, var(--ds-bg-primary));
box-shadow: var(--ds-shadow-dialog);
color: var(--ds-text-secondary);
font-family: var(--font-sans);
font-size: var(--text-sm);
line-height: var(--leading-tight);
pointer-events: auto;
display: flex;
flex-direction: column;
gap: 8px;
animation: sidebar-hover-card-in var(--motion-duration-fast)
var(--motion-ease-out) both;
}
@keyframes sidebar-hover-card-in {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.sidebar-session-hover-card-title {
color: var(--ds-text-primary);
font-size: var(--text-md);
font-weight: var(--font-weight-semibold);
line-height: var(--leading-tight);
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.sidebar-session-hover-card-status {
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
color: var(--ds-text-secondary);
align-self: center;
}
.sidebar-session-hover-card-status[data-status="running"],
.sidebar-session-hover-card-status[data-status="queued"] {
color: var(--ds-accent);
}
.sidebar-session-hover-card-status[data-status="failed"] {
color: var(--ds-error);
}
.sidebar-session-hover-card-status[data-status="waiting_permission"] {
color: var(--ds-warning);
}
.sidebar-session-hover-card-section {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.sidebar-session-hover-card-section-label {
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
color: var(--ds-text-secondary);
}
.sidebar-session-hover-card-session-links {
display: flex;
flex-direction: column;
gap: 2px;
list-style: none;
margin: 0;
padding: 0;
}
.sidebar-session-hover-card-session-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
min-width: 0;
padding: 3px 5px;
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--ds-text-primary);
cursor: pointer;
font: inherit;
text-align: start;
}
.sidebar-session-hover-card-session-link:hover {
background: var(--ds-bg-hover);
}
.sidebar-session-hover-card-session-link:focus-visible {
outline: 2px solid var(--ds-accent);
outline-offset: 1px;
}
/* A reference the host marked gone keeps its identity but is not a link. */
.sidebar-session-hover-card-session-link-unavailable,
.sidebar-session-hover-card-session-link-unavailable:hover {
background: transparent;
color: var(--ds-text-muted);
cursor: default;
}
.sidebar-session-hover-card-session-link-title {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar-session-hover-card-session-link-trailing {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 6px;
}
.sidebar-session-hover-card-session-link-status {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 4px;
color: var(--ds-warning);
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
line-height: var(--leading-tight);
white-space: nowrap;
}
.sidebar-session-hover-card-session-link-status::before {
width: 6px;
height: 6px;
border-radius: var(--radius-full);
background: var(--ds-warning);
content: "";
animation: sidebar-status-breathe 1.6s ease-in-out 2;
}
.sidebar-session-hover-card-preview,
.sidebar-session-hover-card-peer {
color: var(--ds-text-primary);
font-size: var(--text-sm);
line-height: var(--leading-normal);
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.sidebar-session-hover-card-peer {
color: var(--ds-text-secondary);
font-size: var(--text-xs);
-webkit-line-clamp: 1;
}
.sidebar-session-hover-card-exchanges {
display: flex;
flex-direction: column;
gap: 6px;
list-style: none;
padding: 0;
margin: 0;
}
.sidebar-session-hover-card-exchanges li {
display: flex;
flex-direction: column;
gap: 2px;
}
@media (prefers-reduced-motion: reduce) {
.sidebar-session-hover-card {
animation: none;
}
.sidebar-session-hover-card-session-link-status::before {
animation: none;
}
}
.sidebar-session-hover-card-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.sidebar-session-hover-card-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: var(--radius-full);
background: var(--ds-bg-hover);
color: var(--ds-text-secondary);
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
line-height: var(--leading-tight);
white-space: nowrap;
}
.sidebar-session-hover-card-tag-accent {
background: color-mix(in oklab, var(--ds-accent) 14%, transparent);
color: var(--ds-text-primary);
}
.sidebar-session-hover-card-model {
color: var(--ds-text-primary);
font-size: var(--text-sm);
line-height: var(--leading-tight);
overflow-wrap: anywhere;
}
.sidebar-session-hover-card-meta {
display: flex;
flex-direction: column;
gap: 4px;
margin: 0;
}
.sidebar-session-hover-card-meta-row {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.sidebar-session-hover-card-meta-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 14px;
color: var(--ds-text-faint);
}
.sidebar-session-hover-card-meta-value {
color: var(--ds-text-secondary);
font-size: var(--text-xs);
overflow-wrap: anywhere;
min-width: 0;
}
.sidebar-disclosure-icon {
flex: 0 0 auto;
transition: transform var(--motion-duration-fast) var(--motion-ease-out);
}
.sidebar-disclosure-icon.collapsed {
transform: rotate(-90deg);
}
.sidebar-session-group-header:hover .sidebar-session-group-add,
.sidebar-session-group-header:focus-within .sidebar-session-group-add,
.sidebar-session-group-header:hover .sidebar-menu-wrap,
.sidebar-session-group-header:focus-within .sidebar-menu-wrap,
.sidebar-session-group-header:hover .sidebar-menu-wrap .thread-item-more,
.sidebar-session-group-header:focus-within .sidebar-menu-wrap .thread-item-more {
opacity: 1;
pointer-events: auto;
}
/* Keyboard focus paints the header actions like the other sidebar controls. */
.sidebar-session-group-add:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
/* A blurred window keeps :hover latched on the row or header under the cursor,
* so the hover reveals collapse back to their resting, pointer-inert state. */
.sidebar[data-window-blur="true"] .thread-item:hover .thread-item-more:not([aria-expanded="true"]),
.sidebar[data-window-blur="true"] .sidebar-session-group-header:hover .thread-item-more:not([aria-expanded="true"]),
.sidebar[data-window-blur="true"] .sidebar-session-group-header:hover .sidebar-session-group-add {
opacity: 0;
pointer-events: none;
}
/* An open menu trigger stays visible; its wrapper is inert while blurred. */
.sidebar[data-window-blur="true"] .sidebar-session-group-header:hover .sidebar-menu-wrap {
pointer-events: none;
}
.sidebar-project-active-dot {
width: 5px;
height: 5px;
flex: 0 0 auto;
margin-left: 2px;
border-radius: var(--radius-full);
background: var(--ds-accent);
}
.project-menu {
top: calc(100% + 3px);
}
/* Sidebar drag/drop: a session row moves between project groups. */
.thread-item.is-dragging {
opacity: 0.5;
}
.project-group.is-drop-target {
border-radius: var(--radius-sm);
outline: 1px solid var(--ds-accent);
outline-offset: -1px;
}
.sidebar-session-groups.is-drop-target {
border-radius: var(--radius-sm);
outline: 1px dashed var(--ds-border-strong);
outline-offset: -2px;
}