Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
@import '@xterm/xterm/css/xterm.css';
@import '@xyflow/react/dist/style.css';
:root {
/* macOS dark-mode palette (NSColor / HIG). The LIGHT overrides live in the
`:root[data-theme='light']` block below — everything here is the dark default, which is what
an install with no appearance choice keeps rendering, byte for byte. */
/* The one triple every overlay in this stylesheet is mixed from. Nearly 300 rules lighten a dark
surface with `rgba(255,255,255,α)` — text, borders, hover fills, gradient stops alike — and on
a LIGHT surface every one of them has to darken instead. Routing them through a single RGB
triple means the flip is one declaration rather than three hundred edits, and every alpha the
designers chose survives untouched. */
--tint-rgb: 255, 255, 255;
/* The inverse: text/icons that must read as "maximum contrast against the app surface". In dark
that is white; on light it has to become near-black, so `#fff` cannot be written literally.
(A white that sits on a saturated ACCENT fill is a different thing and stays `#fff`.) */
--text-strong: #fff;
/* Working (agent mid-turn) accent: the clay spinner/glow color, shared by every "working"
indicator (node glow, sidebar dot, project-header badge) so it only has to be edited once. */
--agent-working: #d97757;
--bg: #1e1e1e; /* content / canvas / terminal (controlBackground) */
--panel: #282828; /* bars, panels, node chrome (underPage) */
--panel-header: #323232; /* elevated / hover (windowBackground) */
--panel-2: #323232;
/* Surfaces that were spelled as one-off hexes all over the sheet — nine slightly different
darks, which was already drift before a second theme existed. Named by ELEVATION, so the light
palette can invert the ramp instead of guessing what each hex meant. */
--surface-black: #0a0a0c; /* the onboarding scenes' near-black backdrop */
--surface-sunken: #141416; /* below the page: wells, empty states, code blocks */
--surface-deep: #1a1a1a; /* deepest chrome: dock, modal shells */
--surface-raised: #242424; /* above the panel: cards, popovers */
--surface-overlay: #2c2c2e; /* menus and floating layers */
--border: rgba(var(--tint-rgb), 0.1); /* separator */
--text: rgba(var(--tint-rgb), 0.85); /* label */
--muted: rgba(var(--tint-rgb), 0.55); /* secondaryLabel */
--muted-2: rgba(var(--tint-rgb), 0.25); /* tertiaryLabel */
--accent: #0a84ff; /* systemBlue */
--accent-hover: #3a9bff;
/* Accent as TEXT on a surface — lighter than the fill accent so it reads on a dark panel, and
the light theme has to go the other way. Was `#6cb0ff`/`#a9c0ff` at ~14 hover/link sites. */
--accent-text: #6cb0ff;
/* Status hues, named so the light theme can darken them for a white field in one place. */
--danger: #ff453a;
--warn: #ff9f0a;
--caution: #ffd60a;
--success: #30d158;
/* The Apple system colours (HIG color.md), dark values; the light block restates them with the
light values. `lib/palette.ts` holds the same table for the JS that needs a literal (xterm
search decorations) and `styles.palette.test.ts` pins the two together. */
--sys-red: #ff453a;
--sys-orange: #ff9f0a;
--sys-yellow: #ffd60a;
--sys-green: #30d158;
--sys-mint: #63e6e2;
--sys-teal: #40cbe0;
--sys-cyan: #64d2ff;
--sys-blue: #0a84ff;
--sys-indigo: #5e5ce6;
--sys-purple: #bf5af2;
--sys-pink: #ff375f;
--sys-brown: #ac8e68;
--sys-gray: #98989d;
/* Semantic roles: ONE colour per meaning. Rules name a role, never a hue, so an appearance
re-maps a meaning in one place (Liquid Glass does, at the end of the sheet). These are the
FILL values — glows, dots, strokes, chip washes via color-mix. Text in a status hue uses the
text-safe tokens above (--danger, --warn, --caution, --success, --agent-working), which the
light theme darkens for a pale field. */
--state-working: #d97757; /* the default look keeps the working clay */
--state-attention: var(--sys-red); /* needs you */
--state-unread: var(--accent); /* finished, not yet seen */
--state-error: var(--sys-red); /* error, deny, destructive, failed */
--state-success: var(--sys-green); /* done, approve, passed, added */
--state-warning: var(--sys-orange); /* non-blocking warning, caution */
--state-queued: var(--sys-gray); /* queued, idle, disarmed */
--state-automation: var(--sys-purple); /* loop / schedule / trigger status */
/* Text-safe hues for the "needs you" LABEL, which an appearance re-maps with its role, and the
readable orange Liquid Glass labels it with (dark: the system orange; light: darkened). */
--attention-text: var(--danger);
--orange-text: var(--sys-orange);
/* Kanban priority "High": orange in the default look; under Liquid Glass orange means only
"needs you", so High takes pink (--pink-text is its readable form per theme). */
--priority-high: var(--warn);
--pink-text: var(--sys-pink);
/* Git file status, read by `lib/gitStatusColors.ts` (the ONE table both git panels draw). */
--git-modified: var(--caution);
--git-added: var(--success);
--git-deleted: var(--danger);
--git-renamed: var(--sys-purple);
--git-conflict: var(--sys-teal);
/* Minimap status strokes. The default look keeps its own map language — amber working, red needs
you, clay unread — because an uncoloured node's fallback stroke is the accent blue, and an
accent-blue "unread" would vanish among them (see nodeStrokeColor in Canvas.tsx). Liquid Glass
maps them to the state roles: its node fills are neutral ink, so there is nothing to clash with. */
--mm-working: #ffd60a;
--mm-attention: #ff453a;
--mm-unread: #d97757;
/* THE CANVAS. Deliberately blacker than `--bg` in dark — the nodes are the content and the
field behind them recedes. In light it has to go the other way, off-white and slightly
greyer than a node, or the nodes lose their edges. */
--canvas-bg: #000000;
/* Floating surfaces, each written as a triple so every per-use alpha survives (same idea as
--tint-rgb). Menus/dock/banners, popovers, and cards sit at three different depths. */
--menu-rgb: 40, 40, 42;
--popover-rgb: 20, 20, 22;
--card-rgb: 28, 28, 30;
/* Drop-shadow weight multiplier. A shadow is black in BOTH themes — what changes is how hard it
may land: 0.55 black reads as depth over a dark field and as mud over a white one. Every
box-shadow alpha is multiplied by this, so the light theme turns them all down at once
without touching 54 rules. Scrims are excluded: darkening IS a scrim's job. */
--shadow-k: 1;
/* One distance between every floating overlay and the edge it hugs (the dock's, historically):
the dock, the pill cluster, the minimap, the sidebars and the top-right cluster each used to
carry their own 14 to 22px, which read as a ragged margin. Top-anchored chrome adds the tab bar's
height (`--tabbar-h`) on top of it. */
--float-gap: 22px;
/* The tab bar's height. Every dependant reads this token (the kanban overlay's top, the floating
panels' offsets, the usage popover's cap) and main derives the macOS traffic-light `y` from the
SAME number via `@shared/window-chrome-metrics` (`TABBAR_HEIGHT_PX`), so the bar and the lights
cannot drift apart — `styles.tabbar.test.ts` pins this literal to that constant. */
--tabbar-h: 40px;
/* Chrome-style tab geometry (see the tab bar block). `--tab-inset` is the gap between the bar's
top edge and a tab; the hover pill also keeps it at the bottom, the active tab does not.
`--tab-flare` is the radius of the active tab's concave bottom corners AND the strip's side
padding that keeps them from being clipped. */
--tab-inset: 4px;
--tab-radius: 8px;
--tab-flare: 8px;
/* The only limit on a tab's width. A tab is otherwise as wide as its own name, so the strip
scrolls instead of shortening anything; this stops a project named after a whole sentence
from taking the strip on its own, and is the ONLY case in which a name ellipsises. */
--tab-max: 260px;
--tab-divider-h: 16px;
/* The strip behind the tabs. In dark it is the panel colour (#282828 over a #000 canvas, the
active tab reads as a hole). In LIGHT the panel and the canvas are one value apart (#f3efe7 vs
#f4efe6) and a canvas-coloured active tab would vanish, so the strip steps back to the deeper
surface — Chrome's own light strip is a grey behind a paler active tab. Themed per block. */
--tabbar-bg: var(--panel);
/* Outer width of the bottom-left controls column: one button plus the column's 1px border on
each side. The pill cluster clears the column by reading this, so resizing the buttons cannot
silently drop the pills back on top of them. */
--controls-w: 30px;
/* Canvas chrome that lives on React Flow props rather than in a rule. */
--canvas-dot: #303030;
--minimap-mask: rgba(10, 12, 18, 0.6);
--git-graph-ref: var(--accent);
--git-graph-remote-ref: var(--sys-purple);
--git-graph-base-ref: var(--sys-orange);
--git-graph-lane-1: var(--sys-green);
--git-graph-lane-2: var(--sys-yellow);
--git-graph-lane-3: var(--sys-teal);
--git-graph-lane-4: var(--sys-red);
--git-graph-lane-5: var(--sys-brown);
--radius: 8px;
--radius-sm: 6px;
--radius-lg: 12px;
/* The rendered-Markdown views' font (Settings → Appearance). App.tsx overrides these on <html>
from settings; these are the defaults (@shared/markdown-font) for an un-hydrated store. */
--md-font-family: -apple-system, BlinkMacSystemFont, sans-serif;
--md-font-size: 13px;
--md-code-font-family: Menlo, Monaco, "Courier New", monospace;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue',
sans-serif;
font-size: 13px;
-webkit-font-smoothing: antialiased;
/* Tells the engine which way its OWN chrome should go — scrollbars, form controls, the
`<select>` popups the settings panel is full of. Without it those stay dark on a light page. */
color-scheme: dark;
}
/* ---- Idle-window animation gate --------------------------------------------------------------
Every `infinite` animation in this file is a STATUS or DECORATION — a pulsing dot, a glow, a
spinner, a walking mascot. None of them settles, so none of them carries state that is lost by
being held still; they exist to catch the eye of somebody who is looking at this window.
While nobody is (the window is not focused, or the page is hidden), they are pure battery. A
running CSS animation obliges the compositor to produce a frame every vsync — 120/s on a
ProMotion display — for as long as it runs, and each of those frames re-rasters and re-composites
the window. MEASURED on the Server Edition with a 40-terminal canvas, idling for 25 s under
headless Chrome: 1.5 % total browser CPU with nothing animating, 33 % with ONE node pulsing,
101 % with twenty. The same twenty with `animation-play-state: paused`: 1.6 %. The step happens
at the FIRST animation — what costs is that frames are produced at all — which is why this is
applied to every infinite animation in the file rather than to the worst few: one that keeps
running holds the frame loop open and the rest of the fix buys nothing. `lib/windowActivity.ts`
sets the attribute; `styles.animation-gate.test.ts` fails if a new `infinite` animation is added
without joining in.
`paused` is deliberately not `none`: it freezes each animation where it stands instead of
snapping it to its resting frame, so nothing MOVES at the moment the window loses focus, and
refocusing resumes rather than restarts. The three node glows below are the one exception. */
:root {
--nt-anim-state: running;
}
:root[data-nt-window='idle'] {
--nt-anim-state: paused;
}
/* React Flow's own infinite animation joins the gate here. `@xyflow/react/dist/style.css`
(imported at the top of this file) runs `dashdraw 0.5s linear infinite` on every `animated`
edge — working subagent and loop edges, and the driven-browser rope — and on an animated
connection line. That sheet never reads `--nt-anim-state`, so inheriting the variable did
nothing and both the idle gate and the covered-canvas gate missed it. MEASURED (dev build, one
synthetic edge with React Flow's real classes on a silent 12-terminal canvas, idle gate set,
3 alternating 30 s rounds): Liquid Glass 79 % of a core in the GPU process + 36 % renderer and
+340 MB GPU footprint; dark 31.5 % + 29 %; with this rule both fell to the no-edge baseline
(0.5 % GPU, 3.3 % renderer). The selectors are copied verbatim from xyflow's sheet, so the
specificity is identical and this wins on order alone (it comes after the @import); it sets ONLY
the play-state, so the shorthand, the dash and the interaction path's `animation: none` are
untouched. `styles.animation-gate.test.ts` scans xyflow's sheet too, and fails if an upgrade adds
an infinite animation under a selector not listed here.
That covers idle and covered. A FOCUSED window is the rule below. */
.react-flow__edge.animated path,
.react-flow__connection .animated {
animation-play-state: var(--nt-anim-state);
}
/* Working edges flow for ~4 s (8 × xyflow's 0.5 s), then hold the dash (issue #1454). A focused
window has no gate, and a working subagent or loop edge — or the driven-browser rope — kept the
frame loop open by itself for as long as its work ran (measured in the issue: four edges, two
sidebar checks and four subagent dots held a focused window at 120 frames/s, renderer 108 % and
GPU 38 %; 64 % / 3 % with them stopped). Only the FLOW is bounded: xyflow's `stroke-dasharray`
stays, so dashed still means working and solid means done, and the driven rope keeps its clay
colour and weight. An edge that turns `animated` again flows again. Same selector as xyflow's rule,
later in order, so this longhand wins. The connection line a person is dragging keeps flowing. */
.react-flow__edge.animated path {
animation-iteration-count: 8;
}
/* ---- Light appearance ----------------------------------------------------------------------
Set by App.tsx from `settings.appTheme` (see lib/appTheme.ts); absent = dark, so an install
that never picks one is byte-for-byte unchanged.
Almost all of this is `--tint-rgb`. Flipping it to black turns every one of the ~280
lighten-the-surface overlays into darken-the-surface, at the exact alpha each already used —
text, borders, hover fills and gradient stops together. What is left is the handful of opaque
surfaces, whose ELEVATION RAMP INVERTS: in dark, further back is darker; in light, further back
is greyer and what comes forward goes white. */
:root[data-theme='light'] {
color-scheme: light;
/* WARM, not white. The first light palette was pure #fff surfaces with pure black ink — the
brightest thing a screen can do — which reads as glare in a full-window canvas app somebody
sits in front of all day. Two changes fix it TOGETHER, and neither works alone:
1. every surface carries a cream cast and none of them reaches 255; the brightest thing
here is #fdfbf7, and the canvas behind the nodes is darker still;
2. the INK is a warm near-black, not #000 — which is what stops the contrast reading like
print on paper.
`--tint-rgb` does the second job for the entire sheet at once: text, borders, hover fills and
gradient stops are all mixed from it (see the dark block's note). */
--tint-rgb: 58, 48, 38;
--text-strong: #2b241c;
/* Warmth costs contrast — brown on cream is a shorter range than black on white — so the
secondary alphas are raised to buy it back rather than left at the dark theme's values.
`--muted` at 0.55 measured 3.2:1 against `--bg`, under the 4.5:1 floor for body text; 0.7
puts it at 4.9:1, and `--text` at 0.85 is 7.7:1. These floors are asserted, not assumed —
see the contrast block in styles.theme.test.ts. */
--border: rgba(var(--tint-rgb), 0.14);
--muted: rgba(var(--tint-rgb), 0.7);
--muted-2: rgba(var(--tint-rgb), 0.4);
--bg: #fbf8f3; /* content / canvas */
--panel: #f3efe7; /* bars, panels, node chrome */
--panel-header: #eae5db; /* elevated / hover */
--panel-2: #eae5db;
--surface-black: #f5f1ea;
--surface-sunken: #efeae1; /* wells stay DARKER than the page */
--surface-deep: #e6e0d4;
--surface-raised: #fdfbf7; /* …while raised surfaces come up, but never to pure white */
--surface-overlay: #fdfbf7;
/* systemBlue's light-mode value — the dark one is deliberately lighter for a dark field and
loses contrast against a pale one. Kept BLUE on a warm field: the accent is the product's
identity across both themes and is user-configurable (Settings → Appearance), so it is not
the palette's job to change it. */
--accent: #007aff;
--accent-hover: #0a6ed1;
/* Accent as text has to DARKEN here, where the dark theme's lightened blue disappears. */
--accent-text: #0060df;
/* The canvas sits BELOW every node, so it is the one surface that must be darker than the
panels — otherwise the nodes dissolve into the field and the layout loses its edges. */
--canvas-bg: #f4efe6;
/* The tab strip steps back one surface so the canvas-coloured active tab comes forward (see the
dark block's `--tabbar-bg` note). */
--tabbar-bg: var(--surface-deep);
/* Floating surfaces come UP the ramp (see the elevation note above) without going white. */
--menu-rgb: 253, 251, 247;
--popover-rgb: 253, 251, 247;
--card-rgb: 253, 251, 247;
/* macOS light-mode shadows are about a third of the weight of its dark ones. */
--shadow-k: 0.35;
/* The status hues are tuned for a dark field: on a pale one, yellow and orange fall under any
reasonable contrast floor. Darkened here rather than at each of their ~50 call sites, and
warmed a little so they belong to this palette. */
--danger: #c62a1f;
--warn: #a85c00;
--caution: #806100;
--success: #1f7a38;
/* Same story for the working clay: #d97757 is tuned for a dark field and measures 2.7:1 against
these surfaces — under this palette's 4.3 floor, and it is rendered as TEXT (the badge count),
not just a dot. Darkened at the same hue (15°) into the band the other status hues occupy,
so "working" still reads as the same colour in both themes. */
--agent-working: #b04a28;
/* Apple's light-mode system colours (see the dark block). */
--sys-red: #ff3b30;
--sys-orange: #ff9500;
--sys-yellow: #ffcc00;
--sys-green: #34c759;
--sys-mint: #00c7be;
--sys-teal: #30b0c7;
--sys-cyan: #32ade6;
--sys-blue: #007aff;
--sys-indigo: #5856d6;
--sys-purple: #af52de;
--sys-pink: #ff2d55;
--sys-brown: #a2845e;
--sys-gray: #8e8e93;
--orange-text: #a85c00;
--mm-working: #ffd60a;
--mm-attention: #ff453a;
--mm-unread: #d97757;
--pink-text: #d30f45;
/* The glows always drew the dark clay, in both themes. */
--state-working: #d97757;
/* Dots must read as a grid, not as noise: the dark-mode grey is far too heavy on a pale field,
and a neutral one would be the only cold thing on screen. */
--canvas-dot: #eae3d6;
--minimap-mask: rgba(251, 248, 243, 0.6);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
margin: 0;
height: 100%;
width: 100%;
background: var(--bg);
color: var(--text);
overflow: hidden;
}
.canvas-root {
width: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
}
/* ---- Top project tab bar (Chrome-style strip) ----
Three states, exactly as a browser draws them:
- INACTIVE tabs have no fill. They sit on the strip, told apart only by a 1px divider at each
tab's left edge, and that divider is dropped on BOTH sides of a hovered or active tab.
- HOVER is a soft rounded pill lighter than the strip, inset from the bar's top and bottom. It
is a hover state, not a selection: it connects to nothing.
- ACTIVE takes the colour of the surface UNDER the bar (`--canvas-bg`, which the kanban overlay
shares) and merges into it: rounded top corners, square bottom, and a concave flare at each
bottom corner that curves out into the page. No line between the tab and the canvas.
Every tab is as wide as its own NAME (capped at `--tab-max`), so the strip scrolls rather than
shortening anything, and the actions stay pinned to the tab's right edge. */
.tabbar {
position: relative;
display: flex;
align-items: center;
gap: 10px;
height: var(--tabbar-h);
padding: 0 10px;
background: var(--tabbar-bg);
/* Above the canvas and the menu backdrop so tabs/inputs stay interactive. */
z-index: 30;
flex-shrink: 0;
/* The bar itself is the window drag region. */
-webkit-app-region: drag;
}
/* Leave room for the macOS traffic lights on the left — ONLY where they are drawn inside the web
contents (Electron `titleBarStyle: 'hiddenInset'`, darwin desktop). The attribute is stamped by
`lib/windowChrome.ts` at boot; without it the reservation applied on Windows and Linux too,
pushing the logo in by 86px and taking the same 86px off the tab strip (issue #564). The lights
themselves are centred on the bar by main (`trafficLightY` in `@shared/window-chrome-metrics`),
from the same height `--tabbar-h` is pinned to. */
:root[data-window-chrome='inset'] .tabbar {
padding-left: 86px;
}
/* The separator between the bar and the canvas, as a pseudo-element rather than the bar's own
`border-bottom`: the ACTIVE tab has to break that line to read as a tab whose body IS the
canvas. It is z-index:auto, so the active tab's `z-index: 1` paints over the pixels it and its
flares cover, and the line still runs under every inactive tab and the bar's empty stretch. */
.tabbar::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1px;
background: var(--border);
pointer-events: none;
}
/* Only the stationary strip viewport excludes window dragging. Electron includes explicit
no-drag rectangles from scrolled-out descendants without clipping them to the viewport
(issue #847), so tab/button/input rectangles would cover the wordmark after scrolling.
Children need no region of their own: the viewport already keeps them interactive. */
.tabbar button:not(.tabbar__tabs *),
.tabbar input:not(.tabbar__tabs *),
.tabbar__tabs {
-webkit-app-region: no-drag;
}
/* Title-bar "Update" button (Figma-style): right after the traffic lights, deliberately loud and
not dismissible, shown from the moment a newer version is known until it is installed
(state/pendingUpdate.ts). */
.tabbar__update {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
height: 28px;
padding: 0 12px 0 10px;
background: var(--accent);
border: none;
border-radius: 7px;
color: #fff;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
}
.tabbar__update:hover {
background: var(--accent-hover);
}
.tabbar__update svg {
width: 15px;
height: 15px;
stroke-width: 2.2;
}
/* Brand: gradient app-tile + wordmark */
.brand {
display: flex;
align-items: center;
gap: 7px;
white-space: nowrap;
-webkit-app-region: drag;
}
.brand__mark {
flex-shrink: 0;
}
.brand__name {
font-size: 13px;
font-weight: 700;
color: var(--text);
letter-spacing: 0.2px;
}
/* The + is a sibling of the strip so it cannot scroll away with the tabs (issue #375). The
wrapper is flex:1 and is NOT in the no-drag list — it is the remaining title-bar drag region. */
.tabbar__projects {
display: flex;
align-items: stretch;
/* The bar centers its items, so without this the wrapper is only as tall as its content and the
tabs stretch to THAT — they have to reach the bar's own bottom to merge into the canvas. */
align-self: stretch;
gap: 0;
flex: 1;
/* Load-bearing (issue #375): a flex item's min-width defaults to `auto`, which resolves against
the strip's full content width — so with many tabs the wrapper refuses to shrink and shoves
the + past the window edge. Measured: 1280 px / 12 projects, + at x=1382 without this. */
min-width: 0;
}
.tabbar__tabs {
display: flex;
align-items: stretch;
/* No gap: the dividers ARE the seams, and the active tab's flares reach into its neighbours. */
gap: 0;
align-self: stretch;
/* Room for the active tab's flares, which reach `--tab-flare` past the tab on each side: this
is a scroll container and would clip the first and last tab's flare without it. */
padding: 0 var(--tab-flare);
/* Content-sized until the bar runs out of room, then it shrinks (min-width 0, as a scroller
may) and the tabs inside shrink with it — evenly, since they share one flex basis. */
flex: 0 1 auto;
min-width: 0;
overflow-x: auto;
/* Scrollable but without the native scrollbar (foreign-looking in a title-bar tab strip);
trackpad swipe / wheel still scroll, and the active tab is scrolled into view. */
scrollbar-width: none;
/* One more divider at the strip's end, between the last tab and the +. A background rather than
a border so it is the same 16px stroke as the dividers between tabs, and so `:has` below can
drop it when the last tab is hovered or active, as every other divider is dropped. */
background: linear-gradient(var(--border), var(--border)) right 50% / 1px var(--tab-divider-h)
no-repeat;
}
.tabbar__tabs:has(> .tab:last-of-type:hover),
.tabbar__tabs:has(> .tab.active:last-of-type) {
background-image: none;
}
.tabbar__tabs::-webkit-scrollbar {
display: none;
}
.tab {
position: relative;
display: flex;
align-items: center;
gap: 6px;
/* A tab is as wide as its own NAME, capped, and never shrinks: the project name is the thing
the strip exists to show, so the strip SCROLLS when the tabs stop fitting rather than
squeezing every name towards its floor. That is the deliberate departure from Chrome, which
shrinks because it must keep every tab reachable without scrolling; here the sessions sidebar
and Cmd+1..9 both reach a project without touching the strip, so a readable name is worth
more than a visible tab edge.
`max-width` is the one limit: a project whose folder is named after a whole sentence would
otherwise take the strip on its own — past it, and only past it, the name ellipsises. */
max-width: var(--tab-max);
flex: 0 0 auto;
/* Inset from the bar's top and bottom: the hover pill floats, it does not touch the edges. */
margin: var(--tab-inset) 0;
/* Asymmetric on purpose: the right edge ends in the options button, whose three dots are a far
narrower glyph than the name on the left, so an equal padding reads as a gap there. */
padding: 0 4px 0 10px;
border-radius: var(--tab-radius);
color: var(--muted);
font-size: 12.5px;
/* One weight for every tab: a heavier active tab shifts the whole strip's metrics as you switch,
and the fill already says which one is active. */
font-weight: 500;
cursor: pointer;
white-space: nowrap;
/* The divider, at this tab's LEFT edge: a 1px stroke, `--tab-divider-h` tall, centred. It is a
background image so a hover or active FILL replaces it in the same declaration. */
background: linear-gradient(var(--border), var(--border)) 0 50% / 1px var(--tab-divider-h)
no-repeat;
}
/* No divider before the first tab, nor to the right of a hovered or active one (the next tab's
left edge). The hover rule sits below these so a hovered tab that FOLLOWS an active one still
gets its pill. */
.tab:first-child,
.tab:hover + .tab,
.tab.active + .tab {
background-image: none;
}
.tab:not(.active):hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.tab.active {
/* THE tab look: the active tab is the page's own surface, reaching down into it. */
background: var(--canvas-bg);
/* Neutral, never the project colour: the fill alone says which tab is active and `.tab__dot`
says which project it is, so tinting the label would say the same thing twice. */
color: var(--text);
/* Square bottom, sitting ON the bar's bottom edge, so the fill runs straight into the canvas. */
margin-bottom: 0;
border-radius: var(--tab-radius) var(--tab-radius) 0 0;
/* Above `.tabbar::after` and the neighbouring tabs, so the tab's own bottom pixels and its
flares replace the separator line, and the flares paint over the neighbours' edges. */
z-index: 1;
}
/* The two concave flares. One pseudo-element a flare wider than the tab on each side, painted
with a radial gradient in each corner: the quarter-disc nearest the tab stays transparent (the
strip shows through) and everything past `--tab-flare` from that corner is the surface colour,
which is the inverted curve that runs the tab out into the page. The half-pixel between the two
stops is the anti-aliasing. The middle of the pseudo is transparent — the tab's own fill is
there. `::before` is taken by the drop-reorder insertion line. */
.tab.active::after {
content: '';
position: absolute;
left: calc(-1 * var(--tab-flare));
right: calc(-1 * var(--tab-flare));
bottom: 0;
height: var(--tab-flare);
pointer-events: none;
background:
radial-gradient(
circle at 0 0,
transparent calc(var(--tab-flare) - 0.5px),
var(--canvas-bg) calc(var(--tab-flare) + 0.5px)
)
left / var(--tab-flare) var(--tab-flare) no-repeat,
radial-gradient(
circle at 100% 0,
transparent calc(var(--tab-flare) - 0.5px),
var(--canvas-bg) calc(var(--tab-flare) + 0.5px)
)
right / var(--tab-flare) var(--tab-flare) no-repeat;
}
/* In the all-projects board the highlighted tab follows the selected swimlane, not necessarily
the project whose canvas is mounted underneath. Keep that selection visible in the tab strip. */
.tab.tab--swimlane-highlight {
background: rgba(var(--tint-rgb), 0.16);
box-shadow: inset 0 -2px 0 currentColor;
font-weight: 600;
}
/* Project whose folder/ref is missing or unreachable — greyed and not switchable. */
.tab.unavailable {
opacity: 0.45;
cursor: default;
}
.tab.unavailable .tab__name {
text-decoration: line-through;
}
/* Marks a project whose terminals run on another machine. Deliberately a text chip rather than
an icon: the only remote-ish glyph in icons.tsx (IconRemote) already means "web view" on this
canvas, and reusing it would conflate a browser node with an SSH host. */
.tab__ssh {
flex-shrink: 0;
font-size: 9px;
font-weight: 600;
letter-spacing: 0.06em;
line-height: 1;
padding: 2px 4px;
border: 1px solid var(--border);
border-radius: 4px;
color: var(--muted);
opacity: 0.85;
}
.tab__dot {
width: 9px;
height: 9px;
border-radius: 50%;
flex-shrink: 0;
background: rgba(var(--tint-rgb), 0.3);
}
/* When the project has a real icon (emoji / lucide / image) the glyph replaces the plain 9px
fallback dot: a larger box (an emoji is ~13px and would overflow 9px, and a lucide/image glyph
would be clipped) with NO baked-in tint background (that tint circle only belongs to the fallback
dot). Applied by TabBar only when `p.icon` is set; the plain `.tab__dot` fallback is untouched.
16px matches the other project-glyph surfaces; the exact px wants a live Mac look, so it's tunable. */
.tab__dot--icon {
width: 16px;
height: 16px;
border-radius: 0;
background: none;
}
/* Bulk pause: "⏸ 3 · 1 pending" after the tab name. Muted text, no fill — a paused project is a
resting state, not something asking for attention like the unread badge beside it. */
.tab__paused {
flex-shrink: 0;
color: var(--muted);
font-size: 10.5px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
/* Unread-completion count badge on a project tab. */
.tab__badge {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-width: 17px;
height: 17px;
padding: 0 5px;
border-radius: 9px;
background: var(--accent);
color: #fff;
font-size: 10.5px;
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1;
}
/* The project name is shown WHOLE. Two earlier rounds tried to keep every tab on screen and ration
the name between them — a shared basis (#789: three letters per tab at 8 tabs), then a floor
plus shed furniture (#790) — and both spent the one thing the strip is for. The strip scrolls
now, which it could always do, and nothing here shortens a name except `--tab-max`. */
.tab__name {
/* Its own width, so the tab is sized by the name rather than the name by the tab. It only ever
shortens because the TAB hit `--tab-max`, and that case ellipsises rather than fading: a mask
gradient is unconditional — it would fade the last characters of a name that fits perfectly —
while `text-overflow` is self-conditioning by construction. */
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.tab__edit {
flex: 1 1 0;
width: 0;
min-width: 48px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 5px;
color: var(--text);
font-size: 12.5px;
padding: 2px 6px;
outline: none;
}
/* The two tab actions read as one cluster pinned to the tab's right edge: a hair between them,
and a step from the name (which stops at the fade) wider than the tab's own 6px gap. */
.tab__actions {
display: inline-flex;
align-items: center;
flex-shrink: 0;
gap: 1px;
margin-left: 2px;
}
.tab__board-toggle,
.tab__caret {
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: currentColor;
cursor: pointer;
line-height: 1;
/* A fixed box, not padding around the glyph: these two sit side by side and their glyphs fill
very different amounts of a 14px square — the board's bars run edge to edge, the three dots
stand alone in the middle — so a padded box would give them hover plates of two widths and
read as two kinds of control. */
width: 22px;
height: 22px;
padding: 0;
border-radius: 5px;
/* Reachable on every tab, not only the active one, so it is never hidden: an affordance that
appears on hover cannot be found by someone who does not already know it is there. */
opacity: 0.45;
transition: background 0.12s ease, opacity 0.12s ease;
}
.tab:hover .tab__board-toggle,
.tab:hover .tab__caret {
opacity: 0.7;
}
/* Same answer a node's header buttons give (`.term-node__refresh` and friends): a tinted plate
under the glyph, not just a brighter glyph. */
.tab__board-toggle:hover,
.tab__caret:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
opacity: 1;
}
.tab__add {
display: inline-flex;
align-items: center;
justify-content: center;
align-self: center;
/* Load-bearing: without this a squeezed bar shrinks the + instead of scrolling the tabs. */
flex-shrink: 0;
/* The strip's end divider already separates the + from the last tab; this is only the step
between that divider and the glyph. */
margin-left: 2px;
width: 28px;
height: 28px;
background: transparent;
border: none;
border-radius: 8px;
color: var(--muted);
cursor: pointer;
}
.tab__add:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.tab-backdrop {
position: fixed;
inset: 0;
/* Below the tab bar (so tabs stay clickable) but above the canvas. */
z-index: 25;
}
.tab-menu {
position: fixed;
z-index: 40;
min-width: 150px;
display: flex;
flex-direction: column;
gap: 2px;
padding: 6px;
background: rgba(var(--menu-rgb), 0.98);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.tab-menu button {
display: flex;
align-items: center;
padding: 8px 10px;
background: transparent;
border: none;
border-radius: 7px;
color: var(--text);
font-size: 13px;
text-align: left;
cursor: pointer;
}
.tab-menu button:hover:not(:disabled) {
background: var(--panel-header);
}
.tab-menu button.danger {
color: var(--danger);
}
.tab-menu button:disabled {
color: var(--muted);
cursor: not-allowed;
}
/* A menu row whose disabled reason lives on a wrapper: a disabled button takes no pointer events
in Chromium, so neither its own `title` nor the cursor would ever show. */
.tab-menu__reason {
display: block;
cursor: not-allowed;
}
.tab-menu__reason > button:disabled {
pointer-events: none;
}
.tab-menu button.danger:hover:not(:disabled) {
background: color-mix(in srgb, var(--state-error) 15%, transparent);
}
/* "Default Claude account" inline expandable group inside the caret menu. */
.tab-menu__group .tab-menu__caret {
margin-left: auto;
opacity: 0.5;
transition: transform 0.12s ease;
}
.tab-menu__group.open .tab-menu__caret {
transform: rotate(90deg);
}
.tab-menu__sub {
display: flex;
flex-direction: column;
gap: 2px;
}
/* Scrollable body of a quick-pick menu (branch picker): the filter input above it stays
pinned while only the list scrolls (pair with .tab-menu--scroll for the height cap). */
.tab-menu__list {
display: flex;
flex-direction: column;
gap: 2px;
}
/* The pinned filter input of a quick-pick menu: full menu width (overrides .tab__edit's
fixed 120px, which is sized for inline tab renames). */
.tab-menu__filter {
width: auto;
align-self: stretch;
margin: 2px 2px 6px;
padding: 6px 8px;
}
.tab-menu__sub button {
padding-left: 8px;
}
.tab-menu__check {
display: inline-flex;
justify-content: center;
width: 16px;
flex-shrink: 0;
margin-right: 6px;
color: var(--accent);
}
/* ---- Bottom-center dock ---- */
.dock-backdrop {
position: fixed;
inset: 0;
z-index: 19;
}
.dock {
position: absolute;
bottom: var(--float-gap);
left: 50%;
transform: translateX(-50%);
z-index: 20;
display: flex;
align-items: center;
gap: 4px;
padding: 7px;
background: rgba(var(--menu-rgb), 0.92);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: 0 10px 32px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
}
.dock-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
background: transparent;
color: var(--text);
border: none;
border-radius: 10px;
cursor: pointer;
}
.dock-btn:hover:not(:disabled) {
background: var(--panel-header);
}
.dock-btn:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.dock-add {
background: var(--accent);
color: #fff;
}
.dock-btn.dock-add:hover:not(:disabled) {
background: color-mix(in srgb, var(--accent) 85%, black);
}
.dock-btn.dock-add.active:not(:disabled) {
background: color-mix(in srgb, var(--accent) 72%, black);
color: #fff;
}
.dock-btn.active {
background: color-mix(in srgb, var(--accent) 22%, transparent);
color: var(--accent-hover);
}
.dock-sep {
width: 1px;
height: 22px;
background: var(--border);
margin: 0 4px;
}
.dock-zoom-wrap {
position: relative;
display: inline-flex;
}
.dock-zoom {
min-width: 52px;
padding: 5px 6px;
text-align: center;
font-size: 12px;
font-variant-numeric: tabular-nums;
color: var(--muted);
background: transparent;
border: none;
border-radius: 8px;
user-select: none;
cursor: pointer;
}
.dock-zoom:hover {
background: var(--panel-header);
color: var(--text);
}
.dock-zoom.active {
background: var(--panel-header);
color: var(--text);
}
/* Zoom presets, anchored to the readout instead of the dock's left edge like the add-menu. */
.dock-zoom-menu {
left: 50%;
transform: translateX(-50%);
min-width: 168px;
}
.dock-zoom-menu button {
gap: 8px;
padding: 7px 10px;
font-variant-numeric: tabular-nums;
}
/* The generic `.dock-menu svg` rule paints every menu glyph muted; the tick is a state marker,
not a leading icon, so it keeps the accent that says "this is where you are". */
.dock-zoom-menu .dock-menu__check svg {
color: inherit;
}
.dock-zoom-menu button.is-current {
color: var(--accent);
}
.dock-menu__check {
display: inline-flex;
align-items: center;
justify-content: center;
width: 13px;
flex-shrink: 0;
color: var(--accent);
}
.dock-menu__chord {
margin-left: auto;
padding-left: 12px;
font-size: 11px;
color: var(--muted);
}
.dock-menu__rule {
height: 1px;
margin: 4px 6px;
background: var(--border);
}
.dock-dirty {
position: absolute;
top: 7px;
right: 7px;
width: 7px;
height: 7px;
border-radius: 50%;
background: transparent;
}
.dock-dirty.dirty {
background: var(--caution);
}
/* Add-node menu above the dock */
.dock-menu {
position: absolute;
bottom: calc(100% + 10px);
left: 0;
min-width: 190px;
display: flex;
flex-direction: column;
gap: 2px;
padding: 6px;
background: rgba(var(--menu-rgb), 0.98);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
/* The add menu lists every node kind and agent (860px+ on a stock setup), so on a short window its
top ran up under the tab bar and off the screen, where those rows could not be clicked. It is
capped to the space between the tab bar and the dock, and its rows scroll inside an inner list:
scrolling the menu box itself would scroll its glass `::before` layer away with the rows. 54px
is the dock's measured height, 16px the menu's gap above the dock plus a margin below the tab
bar. The agent flyouts are portaled out of the list (Dock.tsx). */
.dock-add-menu {
max-height: calc(100vh - var(--tabbar-h) - var(--float-gap) - 54px - 16px);
}
.dock-menu__list {
display: flex;
flex-direction: column;
gap: 2px;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
.dock-menu button {
display: flex;
align-items: center;
gap: 12px;
padding: 9px 12px;
background: transparent;
color: var(--text);
border: none;
border-radius: 8px;
font-size: 14px;
text-align: left;
cursor: pointer;
}
.dock-menu button:hover:not(:disabled) {
background: var(--panel-header);
}
/* Inert hint rows (e.g. "No accounts on this host yet" in an SSH project). */
.dock-menu button:disabled {
color: var(--muted);
cursor: not-allowed;
}
.dock-menu svg {
color: var(--muted);
flex-shrink: 0;
}
/* Saved layouts, anchored to their own button like the zoom presets rather than to the dock's left
edge. Wider than the add menu because each row carries a name plus its subtitle. */
.dock-layouts-wrap {
position: relative;
display: inline-flex;
}
.dock-layouts-menu {
left: 50%;
transform: translateX(-50%);
min-width: 260px;
max-width: 340px;
}
/* A row is a container, not a button: the restore action and the two per-row actions are separate
buttons, and a button cannot legally nest inside another one. */
.dock-menu__row {
display: flex;
align-items: center;
border-radius: 8px;
}
.dock-menu__row:hover,
.dock-menu__row:focus-within {
background: var(--panel-header);
}
/* Qualified with `button` throughout this group: the generic `.dock-menu button` rules above are
(0,1,1) and would otherwise out-specify a bare class whatever the source order. */
.dock-menu button.dock-menu__row-main {
flex: 1;
min-width: 0;
}
/* The row already carries the hover background; a second one on the button would sit on top of it
with square corners at the trailing edge. */
.dock-menu button.dock-menu__row-main:hover:not(:disabled) {
background: transparent;
}
.dock-menu__row-text {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.dock-menu__row-name,
.dock-menu__row-sub {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dock-menu__row-sub {
font-size: 11px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
/* Revealed on hover or keyboard focus. Kept in the layout at all times (opacity, not display) so a
row's width does not jump as the pointer crosses it. */
.dock-menu__row-actions {
display: flex;
align-items: center;
gap: 2px;
padding-right: 6px;
opacity: 0;
}
.dock-menu__row:hover .dock-menu__row-actions,
.dock-menu__row:focus-within .dock-menu__row-actions {
opacity: 1;
}
.dock-menu button.dock-menu__row-act {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
background: transparent;
border: none;
border-radius: 6px;
color: var(--muted);
cursor: pointer;
}
.dock-menu button.dock-menu__row-act:hover {
background: var(--surface-overlay);
color: var(--text);
}
.dock-menu button.dock-menu__row-act:hover svg {
color: inherit;
}
/* One level of flyout submenu — for a builtin harness that has inheriting custom agents (e.g. a
* claude-compatible proxy). The parent button carries a ▸ chevron; hovering/focusing it opens the
* flyout to the right of the menu. Reused only when there is something to nest, so a menu with no
* inheriting customs is byte-identical to before. */
.dock-menu__has-sub {
position: relative;
}
.dock-menu__chevron {
margin-left: auto;
font-size: 12px;
color: var(--muted);
}
.dock-menu__sub {
position: absolute;
left: 100%;
top: -6px;
min-width: 190px;
display: flex;
flex-direction: column;
gap: 2px;
padding: 6px;
background: rgba(var(--menu-rgb), 0.98);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.dock-menu__sub button {
display: flex;
align-items: center;
gap: 12px;
padding: 9px 12px;
background: transparent;
color: var(--text);
border: none;
border-radius: 8px;
font-size: 14px;
text-align: left;
cursor: pointer;
}
.dock-menu__sub button:hover:not(:disabled) {
background: var(--panel-header);
}
.dock-menu__sub-label {
padding: 4px 12px 2px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
/* ---- Dictation overlay: bottom-center floating card above the Dock ---- */
.dictation {
position: fixed;
bottom: calc(var(--float-gap) + 52px + var(--float-gap));
left: 50%;
transform: translateX(-50%);
z-index: 60; /* above the kanban board (25) and the card modal scrim (55) — the mic works there too */
width: 420px;
max-width: 92vw;
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px 14px;
background: rgba(var(--menu-rgb), 0.98);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 20px 56px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.dictation__head {
display: flex;
align-items: center;
gap: 8px;
}
.dictation__title {
font-size: 13px;
font-weight: 600;
}
.dictation__target {
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
font-size: 12px;
}
.dictation__close {
flex-shrink: 0;
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 6px;
color: var(--muted);
font-size: 16px;
line-height: 1;
cursor: pointer;
}
.dictation__close:hover {
background: var(--panel-header);
color: var(--text);
}
.dictation__body {
display: flex;
align-items: center;
justify-content: center;
min-height: 56px;
}
.dictation__mic {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 16px;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text);
font-size: 13px;
cursor: pointer;
}
.dictation__mic:hover {
border-color: rgba(var(--tint-rgb), 0.25);
}
.dictation__mic--active {
background: color-mix(in srgb, var(--state-error) 18%, transparent);
border-color: color-mix(in srgb, var(--state-error) 50%, transparent);
color: var(--danger);
animation: dictation-pulse 1.4s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.dictation__mic--small {
flex-shrink: 0;
padding: 8px;
}
@keyframes dictation-pulse {
0%,
100% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--state-error) 40%, transparent);
}
50% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--state-error) 0%, transparent);
}
}
.dictation__recording {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
}
.dictation__meter {
flex: 1 1 auto;
height: 6px;
border-radius: 3px;
background: rgba(var(--tint-rgb), 0.1);
overflow: hidden;
}
.dictation__meter-fill {
height: 100%;
background: var(--danger);
border-radius: 3px;
transition: width 80ms linear;
}
.dictation__elapsed {
flex-shrink: 0;
min-width: 40px;
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--muted);
font-size: 12px;
}
.dictation__transcribing {
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 13px;
}
/* Generic inline "working…" spinner for buttons and rows. Sized to sit on a 13px label without
changing its line height. (The dictation overlay's own spinner below predates this and keeps
its class so its larger, overlay-specific sizing stays independent.) */
.ui-spinner {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid currentColor;
border-top-color: transparent;
opacity: 0.85;
animation: ui-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes ui-spin {
to {
transform: rotate(360deg);
}
}
.dictation__spinner {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid var(--border);
border-top-color: var(--accent);
animation: dictation-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes dictation-spin {
to {
transform: rotate(360deg);
}
}
.dictation__text-row {
display: flex;
align-items: flex-end;
gap: 8px;
width: 100%;
}
.dictation__textarea {
flex: 1 1 auto;
min-height: 60px;
max-height: 180px;
resize: vertical;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
font-family: inherit;
padding: 8px 10px;
}
.dictation__textarea:focus {
outline: none;
border-color: var(--accent);
}
.dictation__error {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 7px 10px;
border-radius: 8px;
font-size: 12px;
color: var(--danger);
background: color-mix(in srgb, var(--state-error) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--state-error) 35%, transparent);
}
.dictation__error-action {
flex-shrink: 0;
background: transparent;
border: none;
color: var(--accent);
font-size: 12px;
font-weight: 500;
cursor: pointer;
padding: 0;
text-decoration: underline;
}
.dictation__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.dictation__btn {
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
padding: 7px 14px;
cursor: pointer;
}
.dictation__btn:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
}
.dictation__btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.dictation__btn--primary {
background: var(--accent);
border-color: transparent;
color: #fff;
font-weight: 600;
}
.dictation__btn--primary:hover:not(:disabled) {
background: var(--accent-hover);
}
/* ---- Press-to-talk recording pill (warning / recording / transcribing / error) ----
Compact capsule variants of the `.dictation` shell above — used instead of the rectangular
card for every phase except the chat-only editable card (`.dictation--card` keeps the
rectangular sizing, i.e. the plain `.dictation` defaults above). */
.dictation--pill,
.dictation--warning {
width: auto;
min-width: 220px;
max-width: min(92vw, 420px);
flex-direction: row;
align-items: center;
border-radius: 999px;
padding: 10px 18px;
}
.dictation--pill {
min-width: 260px;
}
.dictation__warning-text {
flex: 1 1 auto;
color: var(--text);
font-size: 13px;
}
.dictation__pill {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
}
/* Mobile-matched capsule: equalizer · "Dictating..." · elapsed · red pause.
Bars are CENTERED (align-items: center) so they grow up and down from the
middle — livelier than baseline-anchored bars at small sizes. */
.dictation__bars {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 3px;
height: 26px;
}
.dictation__bar {
width: 4px;
min-height: 4px;
border-radius: 2px;
background: var(--danger);
transition: height 70ms ease-out;
}
.dictation__label {
color: var(--text);
font-size: 14px;
}
.dictation__spacer {
flex: 1 1 auto;
}
.dictation__pause {
flex-shrink: 0;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--danger);
border: none;
border-radius: 50%;
color: #fff;
cursor: pointer;
}
.dictation__pause:hover {
background: #ff5f55;
}
/* ---- Terminal node ---- */
.term-node {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--border);
border-top-width: 3px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
/* Glass terminal nodes (Settings → Appearance → Glass terminals). The node fill is the terminal
theme's background at an alpha computed per theme (`--term-glass-bg`, set inline by
TerminalNode from lib/glassContrast.ts) so the theme foreground keeps 4.5:1 over ANY backdrop —
the blur makes the wallpaper legible as colour, the alpha is what keeps text readable. xterm
paints no background in this mode (terminal-config.ts `glassTheme`), so the body must not
either. Declared BEFORE .selected/.unread so their border and glow still win. The top border
keeps the node's colour; the specular highlight rides the header (the header's own fill would
cover an inset shadow on the node). */
.term-node.term-node--glass {
background: var(--term-glass-bg);
-webkit-backdrop-filter: blur(28px) saturate(170%);
backdrop-filter: blur(28px) saturate(170%);
border-color: rgba(255, 255, 255, 0.18);
border-radius: 14px;
box-shadow:
0 12px 40px rgba(0, 0, 0, calc(0.35 * var(--shadow-k))),
0 1px 3px rgba(0, 0, 0, calc(0.25 * var(--shadow-k)));
}
.term-node--glass .term-node__header {
/* The header sits on the TERMINAL theme's tint, so its text takes the terminal's foreground:
with the app's own --text, a light app theme over a dark terminal theme measured 1.31:1.
Redefined as tokens so every header child that reads them (title, session chip, icons)
follows; the header layer only adds tint, so --text (the foreground) keeps its 4.5:1 here
too. --muted is a 75% mix of it and carries no such guarantee. */
--text: var(--term-glass-fg);
--muted: color-mix(in srgb, var(--term-glass-fg) 75%, transparent);
color: var(--term-glass-fg);
background: var(--term-glass-header-bg);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.28),
inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.term-node--glass .term-node__body {
background: transparent;
}
/* NO `will-change: transform` on `.react-flow__viewport`, not even while the camera moves. It was
tried (00c9c5fc) to let the compositor scale an already-rastered layer through a pan/zoom, and
on a real canvas it does the opposite of saving work: the viewport layer spans the WHOLE canvas,
and Chromium rasters it at a scale it ratchets up during a zoom and never lowers. MEASURED on a
46-node SSH canvas (41 terminals, 1470x923 @2x, CDP-driven wheel zoom 0.8 <-> 0.12 and pans):
with it, 41-252 "tile memory limits exceeded, some content may not draw" warnings per gesture
round (blank tiles = the canvas flickering) and no CPU gain (~170% during the gesture either
way, the scripted gesture 36 s vs 28 s); without it, 0. camera-moving.test.ts pins its absence. */
/* The blur is re-rasterised for every glass node on every frame of a pan/zoom (their backdrop
moves under them). With Keep blur while moving OFF (settings.glassBlurWhileMoving), Canvas marks
the flow wrapper while the camera moves; the tint stays, plus left of the Readable tick the
backdrop squeeze (Liquid Glass block), so text keeps 4.5:1 and only the frosting pauses. With it on (the default) the class is never set. */
.canvas-moving .term-node.term-node--glass {
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
.term-node.selected {
border-color: var(--accent);
}
/* Unread (agent finished while unfocused): a blue glow around the whole node so it's
obvious at a glance, not just the small header badge. Pulses gently to draw the eye.
Selecting the node clears unread, so this never fights the selection ring.
The pulse animates OPACITY on a pseudo-element, never box-shadow: shadow animation forces
a repaint of every glowing node each frame, which adds up with several unread agents. The
pseudo lives on the React Flow wrapper (via :has) because .term-node is overflow:hidden
and would clip its own ::after. */
.term-node.unread {
border-color: var(--state-unread);
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-unread) 50%, transparent),
0 0 16px 1px color-mix(in srgb, var(--state-unread) 35%, transparent),
0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.react-flow__node:has(.term-node.unread)::after {
content: '';
position: absolute;
inset: 0;
border-radius: 10px;
pointer-events: none;
z-index: -1;
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-unread) 80%, transparent),
0 0 26px 4px color-mix(in srgb, var(--state-unread) 60%, transparent);
opacity: 0.85;
animation: nt-unread-glow 2s ease-in-out 4;
will-change: opacity;
}
/* Bounded like the working glow (4 cycles, ~8 s) and resting LIT at 0.85, the value the idle gate
and Reduce Motion already hold it at, so the glow still says "finished while you were away" after
the pulse ends. It used to run forever: an unread node stays unread until someone looks at it,
which on a busy canvas is many nodes for hours, and one running animation keeps the compositor at
display rate for the whole window. MEASURED (46-node SSH canvas, 14 unread nodes, focused window,
dev build): pausing every status animation took idle renderer+GPU CPU from ~120% to ~26%, and no
single family alone got there — see styles.animation-gate.test.ts. */
@keyframes nt-unread-glow {
0%,
100% {
opacity: 0.85;
}
40% {
opacity: 0.1;
}
75% {
opacity: 1;
}
}
/* Working (agent mid-turn): a soft clay glow — the spinner's #d97757 — behind the node.
Same opacity-pulse-on-wrapper-pseudo technique as the unread glow above (never animate
box-shadow), but calmer: lower intensity, slower cycle, and it never fully disappears so
the node reads "alive" rather than "blinking". Unlike its two siblings the pulse is BOUNDED:
four cycles mark "it just started working", then it rests lit at 0.7 for the rest of the turn.
Mutually exclusive with .unread (isUnread is false while working). Shadows only — the top
border keeps the node's own color. */
.term-node.working {
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-working) 35%, transparent),
0 0 14px 1px color-mix(in srgb, var(--state-working) 22%, transparent),
0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.react-flow__node:has(.term-node.working)::after {
content: '';
position: absolute;
inset: 0;
border-radius: 10px;
pointer-events: none;
z-index: -1;
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-working) 45%, transparent),
0 0 22px 3px color-mix(in srgb, var(--state-working) 35%, transparent);
opacity: 0.7;
animation: nt-working-glow 2.6s ease-in-out 4;
will-change: opacity;
}
/* Bounded (4 cycles, ~10 s) and resting at 0.7 — the static-lit value the idle gate and Reduce
Motion use. An infinite pulse kept the compositor at display rate for the whole turn (measured
+3 points CPU per visible working node, focused). A new turn re-adds `.working` and restarts it. */
@keyframes nt-working-glow {
0%,
100% {
opacity: 0.7;
}
35% {
opacity: 0.25;
}
70% {
opacity: 1;
}
}
/* Needs-you (waiting/blocked): the red twin of the glows above — same badge/bell red,
a touch more insistent than working (deeper pulse, faster cycle): it's asking for you. */
.term-node.attention {
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-attention) 40%, transparent),
0 0 14px 1px color-mix(in srgb, var(--state-attention) 25%, transparent),
0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.react-flow__node:has(.term-node.attention)::after {
content: '';
position: absolute;
inset: 0;
border-radius: 10px;
pointer-events: none;
z-index: -1;
box-shadow:
0 0 0 1px color-mix(in srgb, var(--state-attention) 55%, transparent),
0 0 22px 3px color-mix(in srgb, var(--state-attention) 40%, transparent);
opacity: 0.15;
animation: nt-attention-glow 1.8s ease-in-out infinite;
will-change: opacity;
}
@keyframes nt-attention-glow {
0%,
100% {
opacity: 0.15;
}
50% {
opacity: 1;
}
}
/* The three glows above, while the window is idle (see the animation gate near the top of the
file). They do NOT take the shared `--nt-anim-state: paused`, because pausing freezes an
animation wherever its clock happened to stop and `nt-unread-glow` rests at `opacity: 0` — a
coin flip on whether the glow that says "this agent finished while you were away" is still on
screen when you come back to look for it. So each one goes STATIC-LIT instead: no frames, and
the state reads at a glance from across the room, which is the whole job of a glow you are not
in front of. The value sits between each keyframe's floor and its peak, so the node neither
flashes brighter nor drops out at the moment focus leaves.
`will-change` is dropped with the animation: it is a promise about a property that is about to
change, and nothing is about to change any more — holding the compositor layer for every idle
working/unread/attention node on a 100-node canvas is exactly the cost this block is removing. */
:root[data-nt-window='idle'] .react-flow__node:has(.term-node.unread)::after {
animation: none;
opacity: 0.85;
will-change: auto;
}
:root[data-nt-window='idle'] .react-flow__node:has(.term-node.working)::after {
animation: none;
opacity: 0.7;
will-change: auto;
}
:root[data-nt-window='idle'] .react-flow__node:has(.term-node.attention)::after {
animation: none;
opacity: 0.8;
will-change: auto;
}
/* ---- Covered-canvas animation gate -----------------------------------------------------------
The kanban board is an opaque overlay and the canvas stays MOUNTED underneath it, because
`display: none` would resize every terminal to 0x0 and fire a tmux SIGWINCH. So every glow and
pulse on that canvas keeps the compositor producing frames for something nobody can see through.
MEASURED with twenty pulsing nodes: 101 % total browser CPU uncovered, 12.8 % under an opaque
full-screen div (Chromium culls a lot of it, but not the frame loop), 1.5 % with this rule.
`--nt-anim-state` INHERITS, so overriding it on the canvas subtree is the whole gate for every
animation that reads it — no second list of selectors to keep in step. The three node glows are
not in that scheme (see the idle rules above) and take an explicit pause here; under an opaque
board there is no readability argument for freezing them lit, so they simply stop.
A SEPARATE attribute from `data-nt-window` on purpose: the two facts are independent (a board on
a focused window, an unfocused window with no board), and one attribute with two writers is a
race over who clears it. Scoped to what the board hides and nothing else — the controls cluster
and the pills sit ABOVE the board (z 26) and are genuinely on screen, so they keep animating.
The sessions sidebar (z 12) is BELOW it: pinned, it stays mounted and laid out under the opaque
board, and its working spinners and unread pulses kept the frame loop open there (measured:
GPU 4.5 % + renderer 5.7 % with 20 working agents, ~0 % paused). Nothing raises it over a board,
so whenever the attribute is set it is out of sight. */
:root[data-nt-canvas='covered'] .react-flow {
--nt-anim-state: paused;
}
:root[data-nt-canvas='covered'] .sessions-sidebar {
--nt-anim-state: paused;
}
:root[data-nt-canvas='covered'] .react-flow__node:has(.term-node.unread)::after,
:root[data-nt-canvas='covered'] .react-flow__node:has(.term-node.working)::after,
:root[data-nt-canvas='covered'] .react-flow__node:has(.term-node.attention)::after {
animation-play-state: paused;
}
/* A glass node is rounder (14px) than the 10px the status glows above are drawn at, so the ring
would sit off the corners. Declared after them: same specificity, later wins. */
.react-flow__node:has(.term-node.term-node--glass)::after {
border-radius: 14px;
}
/* Bridge link handles (Claude nodes): dots on the header row, on top of the node so they're
never buried under the terminal body. Subtle until you hover the node, then prominent.
Never set `transform` on a React Flow handle: the side classes (.react-flow__handle-left/right/
top/bottom) POSITION the dot with translate(±50%, ±50%), so any transform override replaces
that and shifts the dot away from the cursor mid-hover. Hover feedback is a ring, not a scale. */
.react-flow__handle.bridge-handle {
width: 13px;
height: 13px;
background: var(--accent);
border: 2px solid var(--panel);
box-shadow: 0 1px 4px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
opacity: 0.4;
z-index: 20;
transition: opacity 0.12s ease, box-shadow 0.12s ease;
}
.react-flow__node:hover .react-flow__handle.bridge-handle,
.react-flow__node.selected .react-flow__handle.bridge-handle {
opacity: 1;
}
.react-flow__handle.bridge-handle:hover {
opacity: 1;
box-shadow:
0 1px 4px rgba(0, 0, 0, calc(0.5 * var(--shadow-k))),
0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Hover explanation for the bridge handles (CSS tooltip via the data-tip attribute). */
.react-flow__handle.bridge-handle[data-tip]::after {
content: attr(data-tip);
position: absolute;
bottom: calc(100% + 8px);
white-space: nowrap;
padding: 5px 9px;
border-radius: 6px;
background: var(--surface-black);
border: 1px solid var(--border);
color: var(--text);
font-size: 11px;
font-weight: 500;
line-height: 1;
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
opacity: 0;
pointer-events: none;
transition: opacity 0.12s ease;
z-index: 50;
}
/* Grow inward over the node so the label never runs off-screen. */
.react-flow__handle.bridge-handle--out[data-tip]::after {
right: 50%;
}
.react-flow__handle.bridge-handle--in[data-tip]::after {
left: 50%;
}
.react-flow__handle.bridge-handle:hover[data-tip]::after {
opacity: 1;
}
.term-node__header {
display: flex;
align-items: center;
gap: 8px;
padding: 6px;
background: var(--panel-header);
cursor: grab;
user-select: none;
}
.term-node__color {
width: 12px;
height: 12px;
border-radius: 50%;
border: none;
cursor: pointer;
flex-shrink: 0;
}
.term-node__title {
flex: 1;
background: transparent;
border: none;
color: var(--text);
font-size: 13px;
font-weight: 600;
outline: none;
min-width: 0;
}
.term-node__title:focus {
background: rgba(var(--tint-rgb), 0.06);
border-radius: 4px;
padding: 2px 4px;
}
/* Title shown as text; only the name itself is clickable to rename. */
.term-node__title-text {
font-size: 13px;
font-weight: 600;
color: var(--text);
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 2px 5px;
border-radius: 4px;
cursor: text;
}
.term-node__title-text:hover {
background: rgba(var(--tint-rgb), 0.06);
}
/* Pushes the AI / close buttons to the far right. */
.term-node__spacer {
flex: 1;
}
/* Claude session name shown beside the editable terminal title. */
.term-node__session {
margin-left: 8px;
max-width: 180px;
padding: 1px 8px;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--muted);
background: rgba(var(--tint-rgb), 0.06);
border-radius: 6px;
}
/* SSH-bound terminal: user@host chip beside the title. Mirrors the session chip. */
.term-ssh-chip {
margin-left: 8px;
max-width: 180px;
padding: 1px 8px;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--muted);
background: rgba(var(--tint-rgb), 0.06);
border-radius: 6px;
}
/* Account-bound node: which managed Claude account this node runs under. Mirrors the session
chip with a distinct accent-tinted background so it reads apart from the plain session chip. */
.node-account-chip {
margin-left: 8px;
max-width: 120px;
padding: 1px 8px;
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--muted);
background: color-mix(in srgb, var(--accent) 14%, transparent);
border-radius: 6px;
}
/* Account folder missing at spawn → session fell back to the system account (orange warning). */
.node-account-chip--warning {
color: var(--warn);
background: color-mix(in srgb, var(--state-warning) 16%, transparent);
}
/* Observed-account variants. The base chip is the managed-account look; these keep the three
other cases distinguishable at a glance, before anyone hovers for the tooltip. */
/* The system account (~/.claude). Shown only when a second identity is in play, so it must read
as "the ordinary one" next to the account that is the exception. */
.node-account-chip--system {
background: rgba(var(--tint-rgb), 0.08);
}
/* A config dir the user linked: theirs, not one nodeterm minted — a hairline instead of a fill. */
.node-account-chip--linked {
background: transparent;
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
/* A config dir nodeterm has no record of. Dashed = provisional: the tooltip says to link it in
Settings → Accounts. The padding drops by the border's width so the chip keeps the height of
the filled chips beside it. */
.node-account-chip--unlinked {
background: transparent;
border: 1px dashed var(--border);
padding: 0 7px;
}
/* Claude Code status: RUNNING badge while working, unread dot when finished. */
.term-node__status {
display: inline-flex;
align-items: center;
gap: 5px;
margin-left: 8px;
flex-shrink: 0;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--success);
}
.term-node__status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
/* RUNNING matches the working spinner + node glow (clay #d97757), not the base green. */
.term-node__status--busy {
color: var(--agent-working);
}
.term-node__status--busy .term-node__status-dot {
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
/* DRIVING: an agent holds a control lease on this browser node (S8 PR 6). Same clay as RUNNING so
it reads as agent activity, but it carries a label + a Stop button, so it is wider than the plain
status badges. Always on — no setting hides it (decision 4). */
.term-node__status--driven {
color: var(--agent-working);
max-width: 100%;
min-width: 0;
}
.term-node__status--driven .term-node__status-dot {
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.browser-driving__label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
/* The one obvious Stop. Quiet by default, clay on hover — it is a deliberate act, so it should read
as available without shouting. */
.browser-driving__stop {
flex-shrink: 0;
margin-left: 2px;
padding: 0 6px;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--muted);
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid transparent;
border-radius: 5px;
cursor: pointer;
}
.browser-driving__stop:hover {
color: var(--agent-working);
border-color: color-mix(in srgb, var(--state-working) 50%, transparent);
}
/* The dot's pulse is decoration; the state still reads frozen at the lit end (matches the mascot
pulse contract above). */
@media (prefers-reduced-motion: reduce) {
.term-node__status--driven .term-node__status-dot {
animation: none;
}
}
/* Walking mascot (docs/mascot-sprites.md): sits where the pulsing dot would, INSIDE the RUNNING
badge, pure CSS spritesheet stepping — no per-node JS timers. Sizes come from lib/mascot.ts via
the inline CSS vars so the animation and the rendered sheet can never desync. Fixed heights ≤
the other header controls (≈18px), so the mascot never changes header height. */
.term-node__mascot {
display: inline-block;
flex-shrink: 0;
background-repeat: no-repeat;
image-rendering: pixelated;
will-change: background-position, transform;
}
/* Claude: coral pixel critter, 2-frame walk (~2.5 steps/s ⇒ 0.8s/cycle) + an alternating bob.
steps(1) holds each keyframe's value across its segment, giving two discrete frame+bob states. */
.term-node__mascot--claude {
width: var(--mascot-w);
height: var(--mascot-h);
background-size: calc(var(--mascot-w) * 2) var(--mascot-h);
animation: mascot-walk-claude 0.8s steps(1) infinite;
animation-play-state: var(--nt-anim-state);
}
/* Grok, gemini and opencode have no critter: their RUNNING indicator is the brand mark itself,
breathing. Deliberately NOT a sprite. For grok the glyph is an inline SVG painted in
`currentColor`, so the bloom is a drop-shadow of that same colour and needs no ink of its own —
that is what makes it correct in both themes: the halo is light-on-dark and dark-on-light, exactly
like the mark. A fixed glow colour would have vanished into one of the two backgrounds. The other
two are multi-colour ASSETS wrapped in a span, so their bloom is the badge's label colour rather
than their own ink — approximate, accepted, and cheaper than an ink table (see lib/brandPulse.ts).
Agent-neutral by design: no rule below names an agent. */
.term-node__mascot--pulse {
animation: mascot-pulse-brand 1.6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes mascot-pulse-brand {
0%,
100% {
opacity: 0.55;
filter: none;
}
50% {
opacity: 1;
/* Two shadows, tight + wide: the tight one keeps the thin diagonal strokes from washing out at
16px, the wide one is the actual bloom. */
filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 4px currentColor);
}
}
/* Same contract the presence chip follows: motion is decoration, the state must still read without
it. Frozen at the lit end of the cycle, so a working node looks awake rather than dimmed. */
@media (prefers-reduced-motion: reduce) {
.term-node__mascot--pulse {
animation: none;
opacity: 1;
filter: drop-shadow(0 0 1px currentColor);
}
}
@keyframes mascot-walk-claude {
0% {
background-position-x: 0;
transform: translateY(0);
}
50% {
background-position-x: calc(var(--mascot-w) * -1);
transform: translateY(-1.5px);
}
100% {
background-position-x: calc(var(--mascot-w) * -2);
transform: translateY(0);
}
}
/* Codex: the first row has six populated frames and two empty cells. Keep 120ms per frame
and loop before the empty cells; the sheet itself remains eight columns wide. */
.term-node__mascot--codex {
width: var(--cmascot-w);
height: var(--cmascot-h);
background-position: 0 0;
background-size: var(--cmascot-sheet-w) var(--cmascot-sheet-h);
animation: mascot-walk-codex 0.72s steps(6) infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes mascot-walk-codex {
to {
background-position-x: calc(var(--cmascot-w) * -6);
}
}
/* NEEDS YOU is red everywhere (same as the sidebar attention dot). */
.term-node__status--attention {
color: var(--attention-text);
}
/* TURN FAILED: the last turn ended on an API/model error (issue #521). Red like NEEDS YOU —
something did go wrong — but the dot does NOT pulse: nothing is happening and nothing is being
waited for, it is a verdict on a turn that is already over. */
.term-node__status--errored {
color: var(--danger);
}
.term-node__status--loop {
color: var(--state-automation);
}
/* STATION FAILED: a station this agent opened has stopped and the agent was told
(station-notice.ts). On the ORCHESTRATOR, in the danger colour like TURN FAILED — a station's
work did not happen — and like DROPPED a <button> (click = go to the station), so it needs the
same base-chip reset. No pulse: it is a verdict, not a wait. */
.term-node__status--station-failed {
color: var(--danger);
background: none;
border: none;
padding: 0;
font: inherit;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.06em;
cursor: pointer;
}
.term-node__status--station-failed:hover {
color: var(--text);
}
/* DROPPED: the agent process is gone and nothing accounted for it (see agent-liveness.ts). Warn
colour, not danger — the conversation is intact on disk and one click brings it back — and the
dot does NOT pulse: nothing is happening, this is a verdict about a process that already died.
A <button> like SLEEPING/PAUSED, so it needs the same base-chip reset. */
.term-node__status--dropped {
color: var(--warn);
background: none;
border: none;
padding: 0;
font: inherit;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.06em;
cursor: pointer;
}
.term-node__status--dropped:hover {
color: var(--text);
}
/* SLEEPING: the agent CLI was exited to reclaim its RAM (Eco); the session itself is fine, so
this is the quietest chip on the header — grey, no pulse. It is a <button> (click = resume),
which the base chip's styling does not cover. */
.term-node__status--sleeping {
color: var(--muted);
background: none;
border: none;
padding: 0;
font: inherit;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.06em;
cursor: pointer;
}
.term-node__status--sleeping:hover {
color: var(--text);
}
/* SLEEPING, but the wake refused: the pane is no longer the one this session was exited in, so
nothing was typed into it (see wake-identity.ts). Warning-coloured like DROPPED rather than
muted like plain SLEEPING, because this one needs the user — the conversation will not come back
on its own. Still the same button; its click re-checks the pane. */
.term-node__status--wake-blocked {
color: var(--warn);
}
.term-node__status--wake-blocked:hover {
color: var(--warn);
opacity: 0.85;
}
/* PAUSED: same quiet treatment as SLEEPING (a click resumes) — distinct label because a paused
node will NOT auto-resume when reopened, which SLEEPING does. */
.term-node__status--paused {
color: var(--muted);
background: none;
border: none;
padding: 0;
font: inherit;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.06em;
cursor: pointer;
}
.term-node__status--paused:hover {
color: var(--text);
}
.term-node__status--attention .term-node__status-dot {
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.term-node__status--unread {
color: var(--state-unread);
}
/* QUEUED: a node armed with canvas-control `--after`, holding its launch until the stations it
waits on go idle. Grey — it is not an alert, it is "not started yet". */
.term-node__status--queued {
color: var(--state-queued);
gap: 4px;
}
/* …and the same chip once the delivery loop has something to report about that launch: it has been
ready to run for a long time with no terminal to run in, or its delivery was refused for good.
Amber rather than the NEEDS-YOU red: nothing is broken in the user's work, but the session they
were told would start has not, and that must not be discoverable only in a console.warn. */
.term-node__status--queued-warn {
color: var(--warn);
}
/* Copy receipt (1.6 s) — green like the base chip, and deliberately quieter than RUNNING /
NEEDS YOU: this is a receipt, not an alert. */
.term-node__queued-run {
background: none;
border: none;
padding: 0 2px;
margin-left: 2px;
color: inherit;
cursor: pointer;
font-size: 10px;
line-height: 1;
opacity: 0.7;
}
.term-node__queued-run:hover {
opacity: 1;
color: var(--accent);
}
/* Deterministic hook-reply approvals: compact Approve/Deny buttons beside the NEEDS YOU badge. */
.term-node__approve {
display: inline-flex;
gap: 4px;
align-items: center;
}
.term-node__approve-btn {
font-size: 10px;
font-weight: 600;
line-height: 1;
padding: 3px 7px;
border-radius: 6px;
border: 1px solid transparent;
cursor: pointer;
white-space: nowrap;
}
.term-node__approve-btn--allow {
color: var(--success);
border-color: color-mix(in srgb, var(--state-success) 50%, transparent);
background: color-mix(in srgb, var(--state-success) 12%, transparent);
}
.term-node__approve-btn--allow:hover {
background: color-mix(in srgb, var(--state-success) 22%, transparent);
}
.term-node__approve-btn--deny {
color: var(--danger);
border-color: color-mix(in srgb, var(--state-error) 50%, transparent);
background: color-mix(in srgb, var(--state-error) 12%, transparent);
}
.term-node__approve-btn--deny:hover {
background: color-mix(in srgb, var(--state-error) 22%, transparent);
}
@keyframes nt-pulse {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.35;
transform: scale(0.7);
}
}
.tooltip-trigger {
display: inline-flex;
}
.tooltip {
position: fixed;
transform: translateX(-50%);
z-index: 90;
background: var(--panel-header);
color: var(--text);
font-size: 11px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
padding: 5px 9px;
border-radius: 7px;
border: 1px solid var(--border);
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
pointer-events: none;
white-space: nowrap;
}
/* Opens upward: the anchor y is the trigger's TOP edge, so the bubble is pulled fully above it. */
.tooltip--top {
transform: translate(-50%, -100%);
}
/* Opens sideways: the anchor x is the trigger's RIGHT edge and is already the bubble's left edge,
so the base rule's horizontal pull is dropped and the centering moves to the other axis. */
.tooltip--right {
transform: translateY(-50%);
}
/* Icon sizing for the boxes that are smaller than the shared 16px glyph. The icon set is one
family on one viewBox (see icons.tsx); where a button is tight, the BUTTON scales it down
rather than the icon carrying a second size of its own. */
.tab__board-toggle svg,
.tab__caret svg,
.sessmem-row__kill svg,
.welcome__recent-del svg {
width: 14px;
height: 14px;
}
.loop-node__expand svg,
.subagent-node__expand svg,
.ex-dls__dismiss svg,
.term-node__stalecwd-dismiss svg,
.node-tag button svg {
width: 12px;
height: 12px;
}
/* Boxes smaller than the shared 16px glyph, scaled by the BUTTON (see icons.tsx: one family,
one viewBox). */
.scm-iconbtn svg,
.ss-row__close svg,
.account-identity-check svg,
.kanban-modal__action svg {
width: 13px;
height: 13px;
}
/* ---- Node header actions ----
ONE recipe for every icon-only button in a node header (terminal, editor, diff, video, web,
browser, sticky, dino). Each of these used to carry its own copy of the same six declarations
plus a hand-typed hover colour; the copies had already drifted (collapse hovered grey where its
neighbours hovered blue, and the close button's red was not the --danger hue).
Buttons carrying TEXT (approve, queued-run, Save/Preview, the status pills, the title) keep
their own shape: a word needs room a 22px square does not have. */
.term-node__collapse,
.term-node__ai,
.term-node__chat,
.term-node__mic,
.term-node__search,
.term-node__refresh,
.term-node__remote-control,
.term-node__external,
.term-node__maximize,
.term-node__close,
.term-node__move-worktree,
.term-node__hide-fanout,
.term-node__tidy-fanout {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 22px;
height: 22px;
padding: 0;
background: transparent;
border: none;
border-radius: 4px;
color: var(--muted);
line-height: 1;
cursor: pointer;
}
/* A neutral wash, not the accent: a header full of blue-on-hover buttons competes with the
status badges and the project colour, which are the things in that row that carry meaning.
Only the destructive action below answers in colour. */
.term-node__collapse:hover,
.term-node__ai:hover:not(:disabled),
.term-node__chat:hover,
.term-node__mic:hover,
.term-node__search:hover,
.term-node__refresh:hover,
.term-node__remote-control:hover:not(:disabled),
.term-node__external:hover,
.term-node__maximize:hover,
.term-node__move-worktree:hover,
.term-node__hide-fanout:hover,
.term-node__tidy-fanout:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
/* Closing a node ends its session, so it is the one header action that answers in --danger. */
.term-node__close:hover {
background: color-mix(in srgb, var(--danger) 20%, transparent);
color: var(--danger);
}
.term-node__ai:disabled {
opacity: 0.6;
cursor: default;
}
/* Claude Remote Control: green while the session is reachable from another device. */
.term-node__remote-control[aria-pressed='true'],
.kanban-modal__remote-control[aria-pressed='true'] {
color: var(--success);
}
.term-node__remote-control:disabled {
opacity: 0.6;
cursor: default;
}
.term-node__hide-fanout[aria-pressed='true'] {
color: var(--accent-text);
}
.term-node__find {
display: flex;
flex-direction: column;
gap: 4px;
padding: 6px 8px;
background: var(--surface-raised);
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.term-node__find-row {
display: flex;
align-items: center;
gap: 6px;
}
.term-node__find-input {
flex: 1;
min-width: 0;
background: var(--bg);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 4px;
color: var(--text);
font-size: 12px;
padding: 3px 6px;
outline: none;
}
.term-node__find-input:focus {
border-color: var(--accent);
}
.term-node__find-count {
color: var(--muted);
font-size: 11px;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}
.term-node__find-btn {
background: transparent;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 12px;
line-height: 1;
border-radius: 4px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
}
.term-node__find-btn:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.term-node__find-btn:disabled {
opacity: 0.4;
cursor: default;
}
.term-node__find-snippet {
display: flex;
align-items: baseline;
gap: 6px;
font-size: 11px;
color: var(--muted);
overflow: hidden;
}
.term-node__find-snippet-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-family: monospace;
}
.term-node__find-tag {
flex-shrink: 0;
text-transform: uppercase;
font-size: 9px;
letter-spacing: 0.4px;
padding: 1px 5px;
border-radius: 3px;
background: rgba(var(--tint-rgb), 0.1);
color: var(--muted);
}
.term-node__find-tag--claude {
background: color-mix(in srgb, var(--accent) 22%, transparent);
color: var(--accent-text);
}
.term-node__body {
position: relative;
flex: 1;
min-height: 0;
/* The TERMINAL's background, not the app's: `.term-node__xterm` insets the xterm by a few px and
* a co-attach letterbox leaves unpainted space around it, so both bands show THIS rather than the
* theme — a mismatched frame around every terminal the moment a non-default theme is picked. Set
* from the active theme in App.tsx; the fallback is the app background, which is exactly what the
* default theme carries anyway. */
background: var(--term-bg, var(--bg));
}
/* Upload progress while dropped files scp to an SSH host (and a brief failure flash). */
.term-node__upload {
position: absolute;
inset: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 12px;
font-weight: 600;
color: var(--accent);
background: color-mix(in srgb, var(--bg) 60%, transparent);
border-radius: 6px;
pointer-events: none;
}
/* Copy receipt / selection hint, shared by BOTH terminal surfaces (the canvas node's
`.term-node__body` and the kanban card modal's `.kanban-modal__termwrap`, which are both
`position: relative`). One class, so a session seen twice cannot speak in two voices.
Bottom-RIGHT is deliberate: every agent CLI writes its input line bottom-LEFT, and this used to
live in the node header, where one more chip pushed the × under `.term-node`'s overflow on a
narrow node.
`pointer-events: none` is load-bearing here in a way it was not in the header: the receipt now
sits ON the terminal and fires on EVERY copy, so without it each copy would eat clicks in that
corner for its whole dwell. */
.term-copy-pill {
position: absolute;
right: 10px;
bottom: 8px;
z-index: 5;
pointer-events: none;
font-size: 11px;
font-weight: 600;
line-height: 1;
padding: 5px 9px;
border-radius: 7px;
color: var(--success);
background: color-mix(in srgb, var(--bg) 82%, transparent);
border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
animation: nt-copy-pill-in 120ms ease-out;
}
/* Image-paste receipt (terminal/image-paste-confirm.ts): "Image attached" once the agent's pane
shows the image, or a warning that only the path went in. Same chrome as the copy receipt, in the
TOP-right corner so the two can never cover each other or the agent's bottom-left input line. */
.term-paste-pill {
position: absolute;
right: 10px;
top: 8px;
z-index: 5;
pointer-events: none;
font-size: 11px;
font-weight: 600;
line-height: 1;
padding: 5px 9px;
border-radius: 7px;
color: var(--success);
background: color-mix(in srgb, var(--bg) 82%, transparent);
border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
animation: nt-copy-pill-in 120ms ease-out;
}
.term-paste-pill--warn {
color: var(--caution);
border-color: color-mix(in srgb, var(--caution) 35%, transparent);
}
/* The hint is instruction, not status: quieter border, neutral text. */
.term-copy-pill--hint {
color: var(--text);
border-color: var(--border);
}
/* Hovering a terminal link names what a click opens — the resolved path + the gestures
(terminal/link-hover.ts). Lives INSIDE the xterm element (`.xterm` is position:relative), so it
scales with the terminal text like the copy pill; same quiet chrome as the pill's hint variant.
`pointer-events: none`: it must never take a click, wheel or hover from the terminal under it. */
.term-link-hint {
position: absolute;
z-index: 10;
max-width: calc(100% - 8px);
pointer-events: none;
font-size: 11px;
line-height: 1.35;
padding: 4px 8px;
border-radius: 7px;
color: var(--text);
background: color-mix(in srgb, var(--bg) 92%, transparent);
border: 1px solid var(--border);
box-shadow: 0 4px 14px rgb(0 0 0 / 35%);
overflow-wrap: anywhere;
white-space: normal;
}
/* Downloads started from a terminal link's right-click menu (terminal/link-menu.ts): the shared
`.ex-dls` strip, floated over the terminal's bottom-right like the copy receipt above — one
notch higher so the two never cover each other — instead of docked under a file tree. */
.ex-dls.term-node__dls {
position: absolute;
right: 10px;
bottom: 34px;
z-index: 6;
max-width: min(320px, 70%);
max-height: 40%;
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in srgb, var(--bg) 92%, transparent);
box-shadow: 0 4px 14px rgb(0 0 0 / 35%);
}
@keyframes nt-copy-pill-in {
from {
opacity: 0;
transform: translateY(3px);
}
to {
opacity: 1;
transform: none;
}
}
.term-node__upload.failed {
color: var(--danger);
}
.term-node__upload-spin {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid var(--border);
border-top-color: var(--accent);
animation: dictation-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
/* Drop-target hint while dragging a file from Finder into the terminal. */
.term-node__body.dropping::after {
content: 'Drop to insert path';
position: absolute;
inset: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
border: 2px dashed var(--accent);
border-radius: 6px;
pointer-events: none;
}
.term-node__xterm {
position: absolute;
inset: 0;
/* FitAddon reads the host's computed height/width and only subtracts padding on the
* xterm child. With the global border-box rule it counts this host's padding as cells,
* allowing the last row to extend under the node's clip (#671). For this auto-sized,
* absolutely inset host, content-box keeps the same outer rect while exposing the actual
* content dimensions to FitAddon. Keep the padding here: wheel hit testing and the shared
* glyph renderer's plate both use the host's full body-sized rect.
* The modal already puts its inset on a separate wrapper, outside its fit host. */
box-sizing: content-box;
padding: 4px 2px 6px 6px;
}
.term-node__xterm .xterm {
height: 100%;
}
/* Renderer parity, macOS: the app sets `-webkit-font-smoothing: antialiased` on :root (grayscale
AA — the right call for the chrome's UI font), and the DOM renderer's rows INHERIT it, while the
WebGL renderer never sees it: its glyphs are rasterized into a canvas atlas, which uses the
platform default. So the same text renders thinner/paler the moment a terminal falls back to the
DOM renderer, and a budget swap flashes that difference. Terminal rows opt back out to the
platform default so both renderers lay down comparable ink. Scoped to the rows only — the app
chrome keeps its grayscale AA — and inert on Linux/Windows Chromium, which ignores this property
(measured: DOM ink coverage unchanged there), so it is a macOS-targeted correction by
construction. */
.xterm-rows {
-webkit-font-smoothing: auto;
}
/* xterm's DOM renderer sets an INLINE `width` (the grid) and `overflow: hidden` on every row. A
glyph's ink runs a fraction past its advance (Menlo's `m`, `w`), so the last column of a full row
lost its right edge — measured at DPR 1, canvas zoom 1.38: a 616px row held a 617px span and the
`m` of "t/m" was cut. Only the HORIZONTAL clip is lifted: the vertical one keeps underlines and
descenders out of the next row (`clip`, unlike `hidden`, does not turn the other axis's `visible`
into `auto`). The overhang lands in the host's right padding; `.term-node` still clips, so nothing
paints outside the node. !important because an inline style beats any selector. */
.xterm-rows > div {
overflow-x: visible !important;
overflow-y: clip !important;
}
/* Shared glyph renderer (experimental, `glyphgrid`): a glyph-attached terminal becomes a
transparent WINDOW onto the one GPU canvas, which sits between the React Flow background and the
nodes (z-index 0 against the renderer's 4 — it cannot simply be raised above them, or a
terminal's glyphs would paint over any sticky / editor / subagent chrome that overlaps its body
rect; the plate only orders terminals among themselves). So the node root and its body give up
their backgrounds, and the grid's own opaque PLATE — the packed theme background, sized to the
BODY's own rect — becomes the terminal body's background. That is precisely what the plate is
for.
The class is on the root only while a grid is ACTUALLY attached, so collapse, the ⌘M view, a
failed attach and every default renderer mode leave the node opaque exactly as today.
Every child that covers ground outside the plate must therefore paint its OWN background:
`.term-node__header` var(--panel-header), `.term-node__labelrow` var(--panel),
`.term-node__find` #2a2a2a, plus the body's own overlays. That list is a contract, not an
observation — the label row was missing from it (it replaced the old `.node-tags`, which had a
background) and the strip under the header showed the raw canvas through the node. The selection
ring and the unread glow are border-color + box-shadow, both independent of the background.
The plate is the BODY rect (`lib/glyphGridNode.ts` `bodyPlateRect`, pushed on the
ResizeObserver's settled tick and carried along by the position effect during a drag). It is
deliberately NOT derived from the grid: cols×cellW rarely divides a body exactly, xterm
letterboxes the remainder, and nothing else paints it — a grid-sized plate is what left a band of
raw dot grid at the bottom and right of every terminal, and tens of pixels of it on a letterboxed
co-attach node. Being body-sized it also swallows the host's asymmetric `4px 2px 2px 6px`
padding on all four sides.
THIS FILE OWNS THE INVARIANT BEHIND THAT. What TerminalNode actually measures is
`.term-node__xterm` (the host), NOT `.term-node__body` — see `measurePlateRect` for the full
statement. The host's box equals the body's only because the rule below is `position: absolute;
inset: 0` and `.term-node__body` has NO padding and NO border. Add padding or a border to the
body, or stop the host being inset:0, and the plate silently under-covers again — the exact band
this design removed. Change either and the measurement must move to `.term-node__body`.
THE PLATE'S SHAPE FOLLOWS THIS RULE'S SET, and that is now a live invariant rather than an
accepted degradation. The node's `overflow: hidden` clips DOM children and the canvas is not one,
so the plate cannot be clipped by `border-radius` — it draws its own: as of Phase 2 it is a
rounded quad whose BOTTOM two corners carry the node's own radius (read at register time from
this element's computed `border-bottom-left-radius` minus its border width, since the body is the
padding box — see `measurePlateRadius`), while its TOP two stay square.
Square on top is deliberate and load-bearing. `.term-node__body` is the node root's LAST child,
so its bottom edge IS the node's rounded bottom with nothing behind it but canvas, while its top
edge is an interior seam against opaque chrome (`.term-node__header`, the labels row,
`.term-node__find`, all of which paint their own `var(--panel)`). Rounding the top corners would
not shape a visible corner at all — it would carve two wedges of canvas OUT of the body, inside
the host's `6px`/`4px` padding where no cell quad covers them. **If the body ever stops being the
last child, or anything transparent is placed below it, that rule inverts and
`GridDrawParams.plateRadius` has to become a per-corner pair.** */
.term-node--glyphgrid,
.term-node--glyphgrid .term-node__body {
background: transparent;
}
/* xterm paints its own opaque background on the SCROLL VIEWPORT — `.xterm-viewport` in its
stylesheet, and `Viewport._handleThemeChange` re-asserts it as an INLINE
`style.backgroundColor = theme.background.css` on every theme change. Inline beats any selector,
which is the only reason `!important` appears here: a stylesheet rule cannot otherwise win, and
without it the viewport covers the whole transparent body and the shared canvas is invisible
again — the exact failure this whole Option-B change exists to fix. */
.term-node__xterm .xterm.glyphgrid-mode .xterm-viewport {
background-color: transparent !important;
}
/* …and xterm's own text layers must not paint over the canvas now showing through. This class is
added to the `.xterm` element only while a glyph grid is actually attached, and removed
the moment it detaches — no default renderer mode ever matches this rule.
`visibility: hidden`, NOT `display: none`: these elements still have to be LAID OUT. xterm
measures selection geometry and the scroll area off them, and taking them out of the layout
would change the very cell metrics the grid was registered with. Hidden here:
- `.xterm-rows` — the DOM renderer's glyph spans, which carry the cursor span with them;
- `.xterm-selection` — its selection rectangles.
Both are drawn by the glyph feed instead. NOT hidden, deliberately: `.xterm-helpers` (the helper
textarea and the composition view — hiding those breaks IME composition, which renders in place
while the user types), `.xterm-accessibility` (the screen-reader tree) and
`.xterm-decoration-container` (decorations the glyph renderer does not draw). */
.term-node__xterm .xterm.glyphgrid-mode .xterm-rows,
.term-node__xterm .xterm.glyphgrid-mode .xterm-selection {
visibility: hidden;
}
/* FitAddon subtracts the viewport's measured scrollbar width from the grid when scrollback > 0
(FitAddon.ts availableWidth math), leaving a dead ~14px band on the RIGHT of every terminal —
"the terminal isn't centered" field report. tmux owns the wheel, so the emulator scrollbar is
pure reserve: zero its width and the measurement — and the band — disappear. Wheel scrolling
is untouched (tmux history in tmux sessions; xterm buffer still wheel-scrolls in the
plain-shell fallback, just without a visible bar). */
.term-node__xterm .xterm-viewport {
scrollbar-width: none;
}
.term-node__xterm .xterm-viewport::-webkit-scrollbar {
width: 0;
height: 0;
}
/* Co-attach: the pty runs at the SMALLEST subscriber's grid, so the terminal can be smaller than
this node's body. Center the leftover space instead of stretching — letterboxing, not
distortion. Only applied while a smaller peer is actually clamping us: a solo user's grid IS the
effective size, so their terminal keeps the plain (stretched, top-left) layout it always had. */
.term-node__xterm.letterboxed {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.term-node__xterm.letterboxed .xterm {
height: auto;
}
/* Offscreen dispose (terminal/offscreen-policy.ts): this node's view was released after sitting
out of the viewport; the tmux session keeps running and re-entering the viewport reattaches.
Same geometry as `.term-node__closed` — it covers the (now empty) terminal body — but a quieter
fill and no action, because there is nothing for the user to do and nothing has gone wrong. */
.term-node__offscreen {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
text-align: center;
font-size: 12px;
color: var(--muted);
background: rgba(var(--card-rgb), 0.94);
}
/* Another client permanently destroyed this node's session (tmux kill-session): the terminal is
dead and must never respawn — say so over the last screen. */
.term-node__closed {
position: absolute;
inset: 0;
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
text-align: center;
font-size: 12px;
color: var(--muted);
background: rgba(var(--card-rgb), 0.88);
flex-direction: column;
gap: 10px;
}
/* "Session ended — reopen to restart": the ONLY way a terminal whose session was recycled without
a replacement gets a shell back. Deliberately a manual action — an automatic respawn would use
this client's stale cwd and silently undo the worktree move (see CoState.ended). */
.term-node__reopen {
padding: 4px 12px;
border: 1px solid var(--border);
border-radius: 6px;
background: rgba(var(--tint-rgb), 0.06);
color: var(--text);
font-size: 12px;
cursor: pointer;
}
.term-node__reopen:hover {
background: rgba(var(--tint-rgb), 0.12);
}
/* Stale working directory (issue #464): the project folder was deleted (or replaced) while this
node's tmux session kept running, so the shell sits on a dead inode. A slim TOP banner — never
a covering overlay, the terminal underneath is alive — offering the explicit recycle-respawn
("Restart in folder") plus a dismiss. Top edge: shells and agent CLIs write their input line at
the bottom, and covering the prompt would be worse than covering the oldest output row. */
.term-node__stalecwd {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 4;
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
font-size: 11px;
color: #ffd9a8;
background: rgba(120, 70, 10, 0.92);
border-bottom: 1px solid rgba(255, 180, 80, 0.35);
/* Issue #767. The canvas routes a wheel packet by HIT TEST — `closest('.nowheel')` in
`Canvas.tsx` and React Flow's own `noWheelClassName` — so whatever element sits under the
pointer decides whether the wheel scrolls the terminal or pans the canvas. `.nowheel` lives on
`.term-node__xterm`, which is `position: absolute; inset: 0` and therefore owns the WHOLE body
including its own inset padding and a co-attach letterbox band (measured; see
`terminal-wheel-boundary.test.ts`). This banner was the one thing that broke that: it is a
strip laid OVER a terminal that is still alive and still scrollable, outside the `.nowheel`
subtree, so two rows of live output answered the wheel with a canvas pan.
`pointer-events: none` hands those pixels back to the host underneath — the same trick, and
the same reasoning, as `.term-node__upload` and `.term-copy-pill` above. Its two BUTTONS opt
back in below; nothing else in here is interactive. */
pointer-events: none;
}
.term-node__stalecwd-text {
flex: 1;
min-width: 0;
}
/* The interactive halves opt back in — see the `pointer-events: none` note on the banner. */
.term-node__stalecwd-restart,
.term-node__stalecwd-dismiss {
pointer-events: auto;
}
.term-node__stalecwd-restart {
padding: 2px 10px;
border: 1px solid rgba(255, 200, 120, 0.45);
border-radius: 6px;
background: rgba(255, 255, 255, 0.1);
color: inherit;
font-size: 11px;
cursor: pointer;
white-space: nowrap;
}
.term-node__stalecwd-restart:hover {
background: rgba(255, 255, 255, 0.2);
}
.term-node__stalecwd-dismiss { border: none;
background: none;
color: inherit;
line-height: 1;
cursor: pointer;
opacity: 0.7;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
}
.term-node__stalecwd-dismiss:hover {
opacity: 1;
}
/* "Reconnect" in the SSH connection banner. The banner paints its own dark-red background, so this
sits on a light translucent fill rather than the card tint the node buttons use. */
.ssh-banner__retry {
padding: 3px 10px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 6px;
background: rgba(255, 255, 255, 0.12);
color: inherit;
font-size: 11px;
cursor: pointer;
white-space: nowrap;
}
.ssh-banner__retry:hover {
background: rgba(255, 255, 255, 0.22);
}
/* Markdown view overlay (Cmd/Ctrl+M) */
.term-md {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
flex-direction: column;
background: var(--bg);
}
.term-md__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 5px 10px;
font-size: 11px;
color: var(--muted);
border-bottom: 1px solid var(--border);
background: var(--panel);
}
.term-md__hint {
opacity: 0.8;
}
.term-md__title {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.term-md__actions {
display: inline-flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
/* ↻ re-capture — same shape as the node header's small icon buttons. */
.term-md__refresh {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
cursor: pointer;
}
.term-md__refresh svg {
width: 13px;
height: 13px;
}
.term-md__refresh:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.term-md__refresh:disabled {
opacity: 0.45;
cursor: default;
}
/* "Capturing…" / "Nothing captured…" / a failed capture or render — a sentence, not rendered output. */
.term-md__content--placeholder {
color: var(--muted);
}
/* The kanban card modal lays the same ⌘M face over its live viewer (the pane anchors it). z 5, NOT
higher: the pane is flush with the sheet's edges and shares its stacking context with the resize
handles (`.kanban-modal__resize`, z 6 edge strips / z 7 corners, issue #389) — anything above 6
covers them and resize dies while the view is open. 5 still covers the viewer's floating bits:
the copy pill (z 5) loses to this later DOM sibling, the upload note is z 4, and the FindBar is
closed while the view covers the terminal. */
.kanban-modal__pane > .term-md,
.kanban-modal__pane > .term-chat {
z-index: 5;
}
.term-md__content {
flex: 1;
min-height: 0;
overflow: auto;
padding: 12px 16px;
font-family: var(--md-font-family);
font-size: var(--md-font-size);
line-height: 1.6;
color: var(--text);
/* Allow text selection / copy (React Flow nodes are non-selectable by default). */
user-select: text;
-webkit-user-select: text;
cursor: auto;
}
.term-md__content h1,
.term-md__content h2,
.term-md__content h3 {
margin: 14px 0 8px;
line-height: 1.3;
}
/* Heading sizes are proportions of the body size (20 / 17 / 15 px at the default 13), so they
follow the Markdown font size setting. */
.term-md__content h1 {
font-size: 1.54em;
}
.term-md__content h2 {
font-size: 1.31em;
}
.term-md__content h3 {
font-size: 1.15em;
}
.term-md__content p,
.term-md__content ul,
.term-md__content ol {
margin: 0 0 10px;
}
.term-md__content a {
color: var(--accent);
}
.term-md__content code {
/* The terminal's font, at 0.92 of the Markdown size (12px at the default 13). */
font-family: var(--md-code-font-family);
font-size: 0.92em;
background: rgba(var(--tint-rgb), 0.08);
padding: 1px 5px;
border-radius: 5px;
}
.term-md__content pre {
background: var(--canvas-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
overflow: auto;
}
.term-md__content pre code {
background: none;
padding: 0;
}
.term-md__content blockquote {
margin: 0 0 10px;
padding-left: 12px;
border-left: 3px solid var(--border);
color: var(--muted);
}
.term-md__content img {
max-width: 100%;
}
/* Tables in rendered Markdown — the ⌘M output view, the editor preview and the ⌘M chat view (its
messages and plan/question cards all render through `.term-chat__text`). Gridlines strong enough
to read (`--border` is a 10% separator, which made cells blur together), a tinted header row,
and a horizontal scroll inside the table for one wider than the view, so the thread never
scrolls sideways. A column's `:---:` alignment arrives as an `align` attribute, which an author
`text-align` would override — so only a header WITHOUT one is set (to the start edge, matching
its cells, instead of the browser's centred default). Sticky notes (on the canvas and in the
kanban card modal — both render through `.sticky-node__md`) share the group (issue #1179). */
.term-md__content table,
.term-chat__text table,
.sticky-node__md table {
display: block;
width: max-content;
max-width: 100%;
overflow-x: auto;
border-collapse: collapse;
margin: 0 0 10px;
}
.term-md__content th,
.term-md__content td,
.term-chat__text th,
.term-chat__text td,
.sticky-node__md th,
.sticky-node__md td {
border: 1px solid rgba(var(--tint-rgb), 0.22);
padding: 4px 10px;
vertical-align: top;
}
.term-md__content th,
.term-chat__text th,
.sticky-node__md th {
background: rgba(var(--tint-rgb), 0.06);
font-weight: 600;
}
.term-md__content th:not([align]),
.term-chat__text th:not([align]),
.sticky-node__md th:not([align]) {
text-align: start;
}
/* Chat panel — replaces the markdown overlay on chat-capable agent nodes (Cmd+M). */
.term-chat {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
background: var(--bg, var(--bg));
z-index: 5;
}
.term-chat__bar {
display: flex;
justify-content: space-between;
align-items: center;
flex: 0 0 auto;
padding: 4px 8px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.term-chat__hint {
opacity: 0.6;
}
/* The view is reading the node's persisted launch id, not a hook-confirmed one (ChatPanel
`sessionFallback`): one quiet line, never an alarm — it is usually the right conversation. */
.term-chat__fallback-note {
flex: 0 0 auto;
padding: 4px 12px;
font-size: 11px;
line-height: 1.4;
color: var(--muted);
border-bottom: 1px solid rgba(var(--tint-rgb), 0.06);
}
/* Holds the scroller and the floating "scroll to latest" button, which must not scroll with it. */
.term-chat__thread {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}
/* The "N new messages ↓" pill. */
.term-chat__thread .confirm__btn.term-chat__to-latest {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
padding: 3px 12px;
border-radius: 999px;
font-size: 12px;
white-space: nowrap;
}
.term-chat__msgs {
flex: 1 1 auto;
overflow-y: auto;
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 14px;
/* Allow text selection / Cmd+C (React Flow nodes are non-selectable by default). */
user-select: text;
-webkit-user-select: text;
cursor: auto;
}
.term-chat__empty {
margin: auto;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.4);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
text-align: center;
padding: 0 16px;
}
.term-chat__empty-detail {
font-size: 11px;
color: rgba(var(--tint-rgb), 0.28);
max-width: 34ch;
line-height: 1.4;
}
.term-chat__retry {
margin-top: 2px;
padding: 3px 10px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 6px;
cursor: pointer;
}
.term-chat__retry:hover {
background: rgba(var(--tint-rgb), 0.12);
}
/* Progressive loading (chat paging): the top-of-thread rows. Their spinner is the shared
`.nt-spinner` (`components/Spinner.tsx`) — never a local one. */
.term-chat__older {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 22px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.35);
}
.term-chat__older .term-chat__retry {
margin-top: 0;
}
.term-chat__older--start {
color: rgba(var(--tint-rgb), 0.22);
}
/* The thread, claude.ai-style: the USER's message is a neutral rounded bubble on the right (a lift
of whatever the panel sits on, so it reads on every terminal theme — never the blue accent); the
ASSISTANT's is plain full-width text on the panel with no bubble, roomy line height and paragraph
spacing, and a quiet action row under each turn (ChatTurnActions). */
.term-chat__msg {
font-family: var(--md-font-family);
font-size: var(--md-font-size);
line-height: 1.5;
word-break: break-word;
min-width: 0;
}
.term-chat__msg--user {
align-self: flex-end;
max-width: 80%;
padding: 8px 12px;
border-radius: 14px;
background: rgba(var(--tint-rgb), 0.09);
color: var(--text-strong);
}
/* Sent while the agent was working: it sits in the CLI's own queue until the transcript shows it
(ChatPanel's queuedRef). A dashed outline on the same bubble, dimmed, with a "Queued" caption. */
.term-chat__msg--queued {
background: none;
border: 1px dashed rgba(var(--tint-rgb), 0.35);
color: var(--muted);
}
.term-chat__queued-label {
margin-top: 4px;
font-size: 11px;
color: var(--muted);
}
.term-chat__msg--assistant {
align-self: stretch;
max-width: none;
padding: 0 2px;
background: none;
color: rgba(var(--tint-rgb), 0.92);
line-height: 1.6;
}
.term-chat__msg--assistant .term-chat__text p {
margin: 0 0 0.75em;
}
.term-chat__msg--assistant .term-chat__text > p:last-child {
margin-bottom: 0;
}
/* Consecutive lines of one assistant turn (text, each tool call, more text) sit close together:
they are one answer, and the thread's gap is for the space BETWEEN turns. */
.term-chat__msg--assistant + .term-chat__msg--assistant {
margin-top: -8px;
}
/* Every part of this message is drawn in a tool block above it (ChatPanel): it is only its turn's
action row, with no body of its own to pad. */
.term-chat__msg--folded {
padding: 0;
min-height: 0;
}
.term-chat__actions {
display: flex;
align-items: center;
gap: 4px;
margin-top: 6px;
min-height: 22px;
font-size: 11px;
color: var(--muted);
opacity: 0;
transition: opacity 0.12s ease;
}
.term-chat__msg:hover .term-chat__actions,
.term-chat__actions:focus-within,
.term-chat__actions--latest {
opacity: 1;
}
.term-chat__action {
display: inline-flex;
align-items: center;
gap: 4px;
height: 22px;
min-width: 22px;
padding: 0 4px;
color: inherit;
background: none;
border: none;
border-radius: 5px;
cursor: pointer;
}
.term-chat__action svg {
width: 14px;
height: 14px;
}
.term-chat__action:hover {
color: var(--text-strong);
background: rgba(var(--tint-rgb), 0.08);
}
.term-chat__action:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.term-chat__time {
padding: 0 4px;
white-space: nowrap;
}
/* The clock time under a user message (its bubble's last line), quiet like the action row's. */
.term-chat__time--user {
display: block;
margin-top: 4px;
padding: 0;
font-size: 11px;
color: var(--muted);
text-align: right;
}
/* A day divider (lib/chatThread.ts `dayDividers`): a quiet centered caption before the first
message of each local calendar day. */
.term-chat__day {
flex: 0 0 auto;
text-align: center;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.35);
}
.term-chat__text > :first-child {
margin-top: 0;
}
.term-chat__text > :last-child {
margin-bottom: 0;
}
.term-chat__text code {
font-family: var(--md-code-font-family);
font-size: 0.92em;
}
.term-chat__text pre {
background: rgba(0, 0, 0, 0.35);
padding: 8px;
border-radius: 6px;
overflow-x: auto;
}
/* A code block with its Copy button (nodes/CodeBlockCopy.tsx): the wrapper is the positioned box,
because the <pre> scrolls sideways and would carry the button with it. The wrapper takes the
<pre>'s block margin so the thread's first/last-child margin rules still apply. */
.term-chat__code {
position: relative;
margin: 1em 0;
}
.term-chat__code > pre {
margin: 0;
}
/* A syntax-colored block (nodes/CodeHighlight.tsx): its text is split across Monaco's token spans,
which must not collapse the code's spaces or line breaks. */
.term-chat__text pre code[data-highlighted] {
white-space: pre;
}
/* Same control as the per-turn Copy (.term-chat__action), in the block's top-right corner. Hidden
until the block is hovered or the button is keyboard-focused, and kept while it says "Copied".
A solid backing so the code underneath does not show through it. */
.term-chat__code-copy {
position: absolute;
top: 4px;
right: 4px;
font-size: 11px;
color: var(--muted);
background: var(--bg);
border: 1px solid var(--border);
opacity: 0;
transition: opacity 0.12s ease;
user-select: none;
-webkit-user-select: none;
}
.term-chat__code:hover .term-chat__code-copy,
.term-chat__code-copy:focus-visible,
.term-chat__code-copy[data-copied] {
opacity: 1;
}
.term-chat__code-copy:hover {
background: var(--bg);
border-color: rgba(var(--tint-rgb), 0.3);
}
.term-chat__text a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 2px;
}
/* Same treatment as the markdown view's quotes (.term-md__content blockquote); without it a quote
in the thread was only the browser's default indent. */
.term-chat__text blockquote {
margin: 6px 0;
padding-left: 10px;
border-left: 3px solid var(--border);
color: var(--muted);
}
/* A tool call in the unbubbled assistant flow: a quiet chip on the panel itself (a light tint and a
hairline), not a dark box nested in a bubble that is no longer there. */
.term-chat__tool {
margin: 4px 0;
padding: 4px 8px;
font-size: 12px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 8px;
}
.term-chat__tool summary {
display: flex;
gap: 6px;
align-items: baseline;
cursor: pointer;
list-style: none;
}
/* The summary is a flex row, and a flex item's automatic minimum width is its min-content width.
Before these two sizings, a long argument (a `Bash` command line) could not shrink below its
unbroken nowrap text, so the row's overflow was taken out of the NAME instead — whose
min-content is one character — and "Bash" rendered one letter per line. The name is fixed at its
own width and never wraps; the argument takes the rest and is allowed (`min-width: 0`) to shrink
below its content, so its own ellipsis does the truncating. */
.term-chat__tool-name {
flex: 0 0 auto;
white-space: nowrap;
font-weight: 600;
color: var(--accent);
}
.term-chat__tool-arg {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.7;
font-family: ui-monospace, monospace;
}
.term-chat__tool-result {
margin: 6px 0 0;
white-space: pre-wrap;
font-family: ui-monospace, monospace;
font-size: 11px;
opacity: 0.85;
}
/* An interrupted turn (an `interrupt` part): Claude's own TUI line, quiet and hanging off what came
before it, never a user bubble. */
.term-chat__interrupt {
display: flex;
align-items: baseline;
gap: 6px;
margin-top: -2px;
padding-left: 4px;
font-size: 12px;
color: var(--muted);
}
.term-chat__interrupt-hook {
font-family: ui-monospace, monospace;
}
/* A `!` shell command the user ran (nodes/ChatShellCommand.tsx), as Claude Code's TUI draws it: the
command after a pink `!`, and under it, behind a `⎿`, its output's first line. Opened, the first
line gives way to the whole output. No chip: it is the user's own line, not an agent tool call. */
.term-chat__shell {
margin: 4px 0;
font-size: 12px;
}
.term-chat__shell summary {
display: block;
cursor: pointer;
list-style: none;
}
.term-chat__shell summary::-webkit-details-marker {
display: none;
}
.term-chat__shell-line,
.term-chat__shell-out {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
font-family: ui-monospace, monospace;
}
.term-chat__shell-bang {
flex: 0 0 auto;
font-weight: 600;
color: var(--sys-pink);
}
.term-chat__shell-cmd {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-strong);
}
.term-chat__shell-out {
padding-left: 12px;
color: var(--muted);
}
.term-chat__shell-hook {
flex: 0 0 auto;
}
.term-chat__shell-first .term-chat__shell-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* More than one line: say there is more, the way a cut-off line would. */
.term-chat__shell-first--more .term-chat__shell-text::after {
content: ' …';
}
.term-chat__shell[open] .term-chat__shell-first {
display: none;
}
.term-chat__shell pre.term-chat__shell-text {
margin: 0;
min-width: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
font: inherit;
}
/* An Edit / Write call (nodes/ChatToolDiff.tsx): the chip's summary ends in the `+N −M` counts, and
it opens to the line diff. The block is a one-column grid sized to its widest line (at least the
chip's width), so a line's tint spans the whole row even while the block is scrolled sideways;
code keeps its indentation (`pre`, never wrapped), and a long Write scrolls inside its own box. */
.term-chat__diff-counts {
flex: 0 0 auto;
white-space: nowrap;
font-family: ui-monospace, monospace;
color: var(--muted);
}
.term-chat__diff {
display: grid;
grid-template-columns: minmax(max-content, 1fr);
margin: 6px 0 0;
padding: 4px 0;
max-height: 360px;
overflow: auto;
white-space: pre;
font-family: ui-monospace, monospace;
font-size: 11px;
line-height: 1.45;
background: var(--surface-sunken);
border-radius: 6px;
}
.term-chat__diff-line {
padding: 0 8px;
}
.term-chat__diff-line--ctx {
color: var(--muted);
}
.term-chat__diff-line--add {
color: var(--success);
background: color-mix(in srgb, var(--state-success) 12%, transparent);
}
.term-chat__diff-line--del {
color: var(--danger);
background: color-mix(in srgb, var(--state-error) 12%, transparent);
}
/* A run of consecutive tool calls folded into one block (nodes/ChatToolGroup.tsx), closed by
default. Closed, it is one chip-sized line: a chevron, the count, the tools used. Open, the same
chips follow, indented under a hairline so they read as belonging to the line above. */
.term-chat__tool-group {
margin: 4px 0;
font-size: 12px;
}
.term-chat__tool-group > summary {
display: flex;
gap: 6px;
align-items: baseline;
padding: 4px 8px;
cursor: pointer;
list-style: none;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 8px;
}
.term-chat__tool-group > summary::-webkit-details-marker {
display: none;
}
/* The chevron is drawn, not a glyph: '▸' at this size renders as a dot. */
.term-chat__tool-group > summary::before {
content: '';
flex: 0 0 auto;
align-self: center;
width: 5px;
height: 5px;
margin: 0 2px 0 1px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: rotate(-45deg);
transition: transform 0.12s ease;
}
.term-chat__tool-group[open] > summary::before {
transform: rotate(45deg);
}
/* Same sizing rule as the chip's name/argument pair: the count never wraps, the names take the rest
and ellipsize. */
.term-chat__tool-group-count {
flex: 0 0 auto;
white-space: nowrap;
font-weight: 600;
color: var(--accent);
}
.term-chat__tool-group-names {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
}
.term-chat__tool-group-body {
margin: 4px 0 0 10px;
padding-left: 8px;
border-left: 1px solid rgba(var(--tint-rgb), 0.12);
}
/* The agent's OWN dialog is on the pane's screen (ChatPanel's `screenBlock`): the sentence saying
where to answer it, then the dialog's lines as the terminal shows them. Shaped like a tool card
so it reads as part of the thread; monospace because the options are laid out in columns. */
.term-chat__screen-block {
margin: 6px 0;
padding: 10px 12px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-left: 2px solid var(--warn);
border-radius: 8px;
min-width: 0;
}
.term-chat__screen-block-title {
font-size: 12px;
font-weight: 600;
color: var(--text-strong);
}
.term-chat__screen-block-text {
margin: 8px 0 0;
white-space: pre-wrap;
font-family: ui-monospace, monospace;
font-size: 11px;
color: var(--muted);
}
/* An expanded tool card: a tool part with a readable `body` (an ExitPlanMode plan, an
AskUserQuestion question). Same tint as the chip so it still reads as "the agent's tool call",
but open and full-width; no max-height, so a long plan scrolls with the thread. */
.term-chat__tool-card {
margin: 6px 0;
padding: 10px 12px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-left: 2px solid var(--accent);
border-radius: 8px;
min-width: 0;
}
.term-chat__tool-card-title {
margin-bottom: 6px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--accent);
}
.term-chat__tool-card .term-chat__tool-result {
padding-top: 6px;
border-top: 1px solid rgba(var(--tint-rgb), 0.1);
}
/* Answer controls under a held Plan / Question card (nodes/ChatAnswerControls.tsx). Plain rows in
the card's own flow: no fill of their own, so they read the same on every appearance. */
.term-chat__answer {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(var(--tint-rgb), 0.1);
}
.term-chat__answer-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.term-chat__answer-btn {
padding: 4px 10px;
font-size: 12px;
color: var(--text);
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 6px;
cursor: pointer;
}
.term-chat__answer-btn:hover:not([aria-disabled='true']) {
background: rgba(var(--tint-rgb), 0.12);
}
.term-chat__answer-btn--primary {
color: #fff;
background: var(--accent);
border-color: transparent;
}
.term-chat__answer-btn--primary:hover:not([aria-disabled='true']) {
background: var(--accent);
filter: brightness(1.1);
}
.term-chat__answer-btn[aria-disabled='true'] {
opacity: 0.5;
cursor: default;
}
.term-chat__answer-q[aria-disabled='true'] {
opacity: 0.7;
}
.term-chat__answer-hint {
font-size: 11px;
color: var(--danger);
}
.term-chat__answer-btn:focus-visible,
.term-chat__answer-option input:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.term-chat__answer-revise {
display: flex;
flex-direction: column;
gap: 6px;
}
.term-chat__answer-q {
display: flex;
flex-direction: column;
gap: 4px;
margin: 0;
padding: 0;
border: 0;
min-width: 0;
}
.term-chat__answer-label {
margin-bottom: 2px;
padding: 0;
font-size: 12px;
font-weight: 600;
color: var(--text);
}
.term-chat__answer-option {
display: flex;
align-items: baseline;
gap: 6px;
font-size: 12px;
color: var(--text);
cursor: pointer;
}
.term-chat__answer-desc {
color: var(--muted);
}
.term-chat__answer-text {
font-size: 12px;
padding: 5px 8px;
}
/* Always rendered (a live region that appears is not reliably announced); empty = no height. */
.term-chat__answer-status {
font-size: 11px;
color: var(--muted);
}
.term-chat__answer-status--error {
color: var(--danger);
}
/* "Updating…" in place of the controls while the thread is re-read for a newly held request. */
.term-chat__answer-updating {
font-size: 11px;
color: var(--muted);
}
/* Shared loading spinner (`components/Spinner.tsx`). CSS-only: a ring with one transparent
quarter, rotated. It inherits `currentColor` and scales with the surrounding font size, so the
same element sits beside 11px bar text and 12px placeholder text without per-site sizing.
`--nt-anim-state` is the app-wide pause every looping animation honours. */
.nt-spinner {
display: inline-block;
flex: 0 0 auto;
box-sizing: border-box;
width: 1em;
height: 1em;
border-radius: 50%;
border: 2px solid currentColor;
border-top-color: transparent;
opacity: 0.7;
vertical-align: -0.15em;
animation: nt-spinner-rotate 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes nt-spinner-rotate {
to {
transform: rotate(360deg);
}
}
/* Reduced motion: a STATIC indicator, not an absent one — the frozen ring (with its gap) plus the
text beside it still says "working"; hiding it would make a slow load read as a blank panel. */
@media (prefers-reduced-motion: reduce) {
.nt-spinner {
animation: none;
}
}
/* ⌘M chat panel "Loading conversation…" row (`ChatLoadingStatus`, `nodes/ChatPanelFallback.tsx`):
the lazy-chunk fallback AND ChatPanel's own initial load render it, so the handover is seamless. */
.term-chat__status {
margin: auto;
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.45);
}
/* The ⌘M chat panel's live-progress row, closing the thread while the agent works (or waits for
an answer in the terminal). Left-aligned under the last message, unlike the centred loading row. */
.term-chat__activity {
display: flex;
align-items: center;
gap: 8px;
padding: 2px 4px;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.55);
}
/* The ⌘M output view's initial "Capturing…" placeholder, spinner beside the text. */
.term-md__capturing {
display: inline-flex;
align-items: center;
gap: 6px;
}
.term-chat__compose {
position: relative;
flex: 0 0 auto;
padding: 8px;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}
/* The composer's `/` and `@` completion menu (ChatComposer), floating ABOVE the composer box. A solid
token, not a glass fill: it sits inside a glass node, which is a backdrop root (Liquid Glass).
`--chat-complete-max` is set by the composer to the room above it (lib/chatComposerHeight.ts
`completeMenuMax`), so a tall composer in a short panel cannot push the menu under the header. */
.term-chat__complete {
position: absolute;
left: 8px;
right: 8px;
bottom: calc(100% - 4px);
z-index: 8;
max-height: min(240px, var(--chat-complete-max, 240px));
overflow-y: auto;
padding: 4px;
background: var(--panel);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.term-chat__complete-item {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
padding: 4px 8px;
font-size: 12px;
border-radius: 6px;
cursor: pointer;
}
.term-chat__complete-item.is-active {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text-strong);
}
.term-chat__complete-name {
flex: 0 0 auto;
max-width: 60%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: ui-monospace, monospace;
color: var(--text-strong);
}
.term-chat__complete-desc {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
}
.term-chat__complete-tag {
flex: 0 0 auto;
font-size: 10px;
color: var(--muted);
}
/* The claude.ai-style composer (ChatPanel): ONE rounded box holding the textarea on top and a
compact toolbar under it — "+" attach on the left; model label, muted effort label and the mic
on the right. The focus ring belongs to the BOX, so the textarea itself draws no border. */
.term-chat__composer {
position: relative;
display: flex;
flex-direction: column;
gap: 2px;
padding: 6px 6px 4px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 12px;
transition: border-color 0.12s ease;
}
.term-chat__composer:focus-within {
border-color: var(--accent);
}
/* The grip on the composer box's top edge: drag it up or down to set the message box's height,
double-click to let it grow with the draft again (ChatComposer, lib/chatComposerHeight.ts). The
hit area straddles the border; the visible pill shows while the pointer is over the box. */
.term-chat__composer-grip {
position: absolute;
top: -6px;
left: 24px;
right: 24px;
height: 12px;
z-index: 1;
cursor: ns-resize;
touch-action: none;
}
.term-chat__composer-grip::after {
content: '';
position: absolute;
top: 4px;
left: 50%;
width: 36px;
height: 4px;
margin-left: -18px;
border-radius: 2px;
background: rgba(var(--tint-rgb), 0.35);
opacity: 0;
transition: opacity 0.12s ease;
}
.term-chat__composer:hover .term-chat__composer-grip::after,
.term-chat__composer-grip:focus-visible::after {
opacity: 1;
}
.term-chat__composer-grip:hover::after {
background: var(--accent);
}
.term-chat__composer-grip:focus-visible {
outline: none;
}
.term-chat__composer-grip:focus-visible::after {
background: var(--accent);
}
.term-chat__composer--drop {
border-color: var(--accent);
border-style: dashed;
}
/* Shell mode (lib/chatShellMode.ts): a draft starting with `!` is drawn as Claude Code's TUI draws
it — the `!` beside the text instead of in it, the box's border in the TUI's shell-mode pink, and
its "! for shell mode" hint under the box. The textarea and its highlight layer share one row with
the mark, so their own layout is unchanged. */
.term-chat__composer-row {
display: flex;
align-items: flex-start;
min-width: 0;
}
.term-chat__composer-row > .term-chat__composer-field {
flex: 1 1 auto;
min-width: 0;
}
.term-chat__shell-mark {
flex: 0 0 auto;
padding: 4px 0 4px 6px;
font-family: var(--md-code-font-family, ui-monospace, monospace);
font-size: var(--md-font-size);
font-weight: 600;
line-height: normal;
color: var(--sys-pink);
}
.term-chat__composer--shell,
.term-chat__composer--shell:focus-within {
border-color: var(--sys-pink);
}
.term-chat__shell-hint {
padding: 3px 8px 0;
font-size: 11px;
color: var(--sys-pink);
}
/* A text field in the ⌘M view: the plan "Revise…" textarea and the question "Other" input
(ChatAnswerControls) — a visible, bordered field with an accent border on focus. */
.term-chat__input {
box-sizing: border-box;
width: 100%;
resize: none;
padding: 8px;
font-family: inherit;
font-size: 13px;
color: var(--text-strong);
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 8px;
}
.term-chat__input:focus {
outline: none;
border-color: var(--accent);
}
.term-chat__input:disabled {
opacity: 0.5;
}
/* The COMPOSER's textarea only (its own class): borderless inside the rounded box, which owns the
focus ring (`.term-chat__composer:focus-within`). Scoped so the answer fields above keep theirs. */
.term-chat__composer-input {
box-sizing: border-box;
width: 100%;
resize: none;
padding: 4px 6px;
font-family: var(--md-font-family);
font-size: var(--md-font-size);
color: var(--text-strong);
background: transparent;
border: none;
border-radius: 0;
}
.term-chat__composer-input:focus {
outline: none;
}
/* The command highlight (lib/chatComposerHighlight.ts): while the draft holds a known `/command`, the
textarea's text goes transparent (its caret, selection and input stay) and a layer behind it draws
the same text, with the command in the accent color, as Claude Code's TUI colors it. The layer must
lay text out exactly like the textarea: same box, font, padding and wrapping, and nothing that
changes a glyph's width (no bold, no padding on the command). */
.term-chat__composer-field {
position: relative;
}
.term-chat__composer-highlight {
position: absolute;
inset: 0;
box-sizing: border-box;
padding: 4px 6px;
overflow: hidden;
white-space: pre-wrap;
overflow-wrap: break-word;
font-family: var(--md-font-family);
font-size: var(--md-font-size);
line-height: normal;
color: var(--text-strong);
pointer-events: none;
}
.term-chat__composer-command {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 14%, transparent);
border-radius: 3px;
}
.term-chat__composer-input--over {
position: relative;
color: transparent;
caret-color: var(--text-strong);
}
.term-chat__composer-input:disabled {
opacity: 0.5;
}
.term-chat__toolbar {
display: flex;
align-items: center;
gap: 2px;
min-width: 0;
min-height: 26px;
}
.term-chat__toolbar-spacer {
flex: 1 1 auto;
min-width: 4px;
}
.term-chat__tool-btn {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
color: var(--muted);
background: none;
border: none;
border-radius: 6px;
cursor: pointer;
}
.term-chat__tool-btn svg {
width: 15px;
height: 15px;
}
.term-chat__tool-btn:hover:not(:disabled),
.term-chat__model:hover:not(:disabled),
.term-chat__effort:hover:not(:disabled) {
color: var(--text-strong);
background: rgba(var(--tint-rgb), 0.08);
}
.term-chat__tool-btn:disabled,
.term-chat__model:disabled,
.term-chat__effort:disabled {
opacity: 0.45;
cursor: default;
}
/* The model name reads as the primary label, effort beside it muted — the reference's
"Fable 5.1 Medium". Both are buttons: a click opens the agent's own picker in the terminal. */
.term-chat__model,
.term-chat__effort {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 3px 6px;
font-family: inherit;
font-size: 12px;
background: none;
border: none;
border-radius: 6px;
cursor: pointer;
}
.term-chat__model {
color: var(--text);
}
.term-chat__effort {
color: var(--muted);
}
/* Why a terminal draft stayed in the terminal on the last ⌘M flip (lib/chatDraftCarry.ts): its own
row under the text box, wrapping, since the reason is a sentence. */
.term-chat__carry-note {
padding: 0 6px 2px;
font-size: 11px;
line-height: 1.35;
color: var(--muted);
}
.term-chat__attach-note {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 11px;
color: var(--muted);
}
.term-chat__attach-note--failed {
color: var(--danger);
}
.term-chat__bar-end {
display: flex;
align-items: center;
gap: 8px;
}
.term-chat__refresh {
padding: 0 4px;
font-size: 12px;
line-height: 1;
color: inherit;
background: none;
border: none;
border-radius: 4px;
cursor: pointer;
}
.term-chat__refresh:hover {
background: rgba(var(--tint-rgb), 0.1);
}
/* The latest todo list (a TodoWrite card): its disabled checkboxes are the markers, so no bullets. */
.term-chat__todo ul {
list-style: none;
padding-left: 0;
margin: 0;
}
.term-chat__todo li {
margin: 2px 0;
}
.term-chat__todo input[type='checkbox'] {
margin: 0 6px 0 0;
vertical-align: -1px;
accent-color: var(--accent);
}
/* Claude's thinking summary between tool calls (a <details>, closed by default): a dimmed line —
chevron + "Thought for 12s" — so it never reads as the answer; open, the text stays dimmed too. */
.term-chat__thinking {
margin: 4px 0;
color: var(--muted);
}
.term-chat__thinking > summary {
display: flex;
gap: 6px;
align-items: baseline;
font-size: 12px;
color: var(--muted);
cursor: pointer;
list-style: none;
}
.term-chat__thinking > summary::-webkit-details-marker {
display: none;
}
/* Drawn like the tool block's chevron: '▸' at this size renders as a dot. */
.term-chat__thinking > summary::before {
content: '';
flex: 0 0 auto;
align-self: center;
width: 5px;
height: 5px;
margin: 0 2px 0 1px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: rotate(-45deg);
transition: transform 0.12s ease;
}
.term-chat__thinking[open] > summary::before {
transform: rotate(45deg);
}
.term-chat__thinking > .term-chat__text {
margin-top: 4px;
}
/* A teammate's message to the lead (nodes/ChatTeammate.tsx), drawn as Claude Code's TUI draws it: a
quiet line on the assistant side, never a bubble. An idle notification is "✓ Teammate @x finished"
with a one-line preview of its report; a plain message is "› Message from @x". Both open to the
full text. The sender's TUI color is a dot, not the name's color (yellow text is unreadable on the
light theme). */
.term-chat__teammate {
margin: 4px 0;
font-size: 12px;
color: var(--muted);
}
.term-chat__teammate > summary,
.term-chat__teammate--line {
display: flex;
gap: 6px;
align-items: baseline;
min-width: 0;
}
.term-chat__teammate > summary {
cursor: pointer;
list-style: none;
}
.term-chat__teammate > summary::-webkit-details-marker {
display: none;
}
.term-chat__teammate-pointer {
flex: 0 0 auto;
}
/* The status text keeps its width and ends in an ellipsis only when the row itself is too narrow;
the preview (basis 0) takes what is left. */
.term-chat__teammate-head {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.term-chat__teammate-from {
font-weight: 600;
color: var(--text);
}
.term-chat__teammate-dot {
display: inline-block;
width: 7px;
height: 7px;
margin-right: 4px;
border-radius: 50%;
vertical-align: 1px;
}
.term-chat__teammate-icon {
flex: 0 0 auto;
}
.term-chat__teammate-icon--available {
color: var(--state-success);
}
.term-chat__teammate-icon--interrupted {
color: var(--state-warning);
}
.term-chat__teammate-icon--failed {
color: var(--state-error);
}
/* The one-line preview (a plain message's summary, or the first line of an idle report): shrinks
first and ends in an ellipsis. The report's preview goes once the row is open, since the full
report is right under it; a summary is a title and stays. */
.term-chat__teammate-preview {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.8;
}
.term-chat__teammate[open] > summary .term-chat__teammate-preview--result {
display: none;
}
.term-chat__teammate-body {
margin: 4px 0 0 14px;
color: var(--text);
}
.term-chat__teammate-summary {
color: var(--muted);
}
/* An image the user attached to a prompt (ChatImage): a height-capped thumbnail in the bubble; a click
drops the cap to show it at full size, still never wider than the bubble. */
.term-chat__image {
display: block;
max-width: 100%;
max-height: 240px;
margin: 4px 0;
border-radius: 8px;
cursor: zoom-in;
}
.term-chat__image--full {
max-height: none;
cursor: zoom-out;
}
/* Transparent overlay that lets you pan across a terminal until you dwell/click. */
.term-hover-guard {
position: absolute;
inset: 0;
z-index: 2;
cursor: grab;
}
.term-hover-guard:active {
cursor: grabbing;
}
.term-node.collapsed {
border-bottom-width: 1px;
}
.term-node.collapsed .term-node__body,
.term-node.collapsed .node-tags,
.term-node.collapsed .run-bar {
display: none;
}
/* ── Run node toolbar (nodes/RunBar.tsx) ─────────────────────────────────────────────
A flex-none strip between the header and the terminal body; the body (flex: 1) shrinks under
it and the xterm refits through its ResizeObserver. No fill of its own, so it reads as part of
the node in every appearance (and paints nothing translucent under Liquid Glass). */
.run-bar {
flex: none;
display: flex;
flex-direction: column;
gap: 4px;
padding: 5px 8px;
border-bottom: 1px solid var(--border);
font-size: 11.5px;
color: var(--text);
}
/* A simulator inside a run node (SimulatorView under the control rows). It fills what the node has
left, so resizing the node scales the screen (letterboxed, like a Simulator node): the bar stops
being a fixed strip and takes the space, and the panel takes the bar's. With the terminal shown
the two share the node. Positioned so the view's toasts, prompts and dialogs sit over the panel. */
.run-bar--sim {
flex: 1 1 0;
min-height: 0;
}
.run-sim-host {
flex: 1 1 0;
min-height: 80px;
display: flex;
margin: 2px -8px -5px;
border-top: 1px solid var(--border);
}
.run-web {
position: relative;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.run-web__waiting {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
text-align: center;
font-size: 12px;
color: var(--muted);
pointer-events: none;
}
.run-sim {
position: relative;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Terminal hidden (the default): the node is just the control rows. Same `display: none` path a
collapsed node takes, so xterm and the tmux client stay alive underneath. */
.term-node:has(.run-bar--compact) .term-node__body {
display: none;
}
.run-bar--compact {
border-bottom: none;
}
.run-bar__row {
display: flex;
align-items: center;
gap: 5px;
flex-wrap: wrap;
min-width: 0;
}
.run-bar__select {
max-width: 190px;
min-width: 0;
height: 22px;
padding: 0 4px;
font: inherit;
color: var(--text);
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 5px;
text-overflow: ellipsis;
}
.run-bar__select--folder {
font-weight: 600;
}
.run-bar__select--warn {
border-color: var(--warn);
}
.run-bar__pinned {
padding: 0 6px;
height: 22px;
line-height: 20px;
border: 1px dashed var(--border);
border-radius: 5px;
color: var(--muted);
}
.run-bar__sep {
width: 1px;
height: 16px;
background: var(--border);
margin: 0 2px;
}
.run-bar__spacer {
flex: 1;
}
.run-bar__btn,
.run-bar__icon {
display: inline-flex;
align-items: center;
gap: 4px;
height: 22px;
padding: 0 8px;
font: inherit;
color: var(--text);
background: transparent;
border: 1px solid var(--border);
border-radius: 5px;
cursor: pointer;
white-space: nowrap;
}
.run-bar__icon {
padding: 0 6px;
}
.run-bar__btn svg {
width: 12px;
height: 12px;
}
.run-bar__btn:hover:not(:disabled),
.run-bar__icon:hover {
background: color-mix(in srgb, var(--text) 10%, transparent);
}
.run-bar__btn:disabled {
opacity: 0.45;
cursor: default;
}
.run-bar__btn--run {
color: #fff;
background: var(--accent);
border-color: transparent;
}
.run-bar__btn--run:hover:not(:disabled) {
background: var(--accent);
filter: brightness(1.12);
}
.run-bar__btn--stop {
color: var(--danger);
border-color: color-mix(in srgb, var(--danger) 50%, transparent);
}
.run-bar__stop-glyph {
width: 8px;
height: 8px;
border-radius: 1px;
background: currentColor;
}
.run-bar__btn--accent {
color: var(--accent);
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.run-bar__icon--on {
color: var(--accent);
}
.run-bar__toggle {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--muted);
cursor: pointer;
white-space: nowrap;
}
.run-bar__status {
min-width: 52px;
text-align: right;
color: var(--muted);
white-space: nowrap;
}
.run-bar__status--running {
color: var(--success);
}
.run-bar__status--busy {
color: var(--accent);
}
.run-bar__status--failed {
color: var(--danger);
}
.run-bar__select--config {
max-width: 240px;
}
.run-bar__check {
display: flex;
align-items: center;
gap: 4px;
flex: none;
font-size: 11px;
color: var(--muted);
white-space: nowrap;
cursor: pointer;
}
.run-bar__args {
flex: 1;
min-width: 0;
height: 22px;
padding: 0 6px;
font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
color: var(--text);
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 5px;
}
.run-bar__note {
font-size: 11px;
}
.run-bar__note--error {
color: var(--danger);
}
.run-bar__note--info {
color: var(--muted);
}
/* ---- Node tags ---- */
.node-tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: var(--panel);
border-top: 1px solid var(--border);
}
.node-tag {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 4px 1px 7px;
font-size: 11px;
color: var(--text);
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 10px;
}
.node-tag button {
background: transparent;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 12px;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
}
.node-tag button:hover {
color: var(--danger);
}
.node-tag-add {
background: transparent;
border: 1px dashed var(--border);
color: var(--muted);
border-radius: 10px;
font-size: 11px;
padding: 1px 7px;
cursor: pointer;
}
.node-tag-add:hover {
color: var(--text);
border-color: var(--muted);
}
.node-tag-input {
width: 70px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
font-size: 11px;
padding: 1px 7px;
outline: none;
}
/* Color picker popover */
.color-popover {
position: absolute;
top: 26px;
left: 6px;
z-index: 5;
/* Sections stack; the swatches inside each one keep the old 4-up grid via --swatch-cols. */
display: flex;
flex-direction: column;
gap: 6px;
--swatch-cols: 4;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px;
}
.color-popover button {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid rgba(var(--tint-rgb), 0.15);
cursor: pointer;
}
.react-flow {
background: var(--canvas-bg);
}
/* A desktop wallpaper (Settings → Appearance) is set inline on this element by Canvas. The dot grid
stays — it is what snapping aligns to — but faded, so the picture reads as the background. */
.react-flow.has-wallpaper {
background: transparent;
}
.react-flow.has-wallpaper .react-flow__background {
opacity: 0.3;
}
/* An aerial wallpaper's layer (AerialWallpaper.tsx). The canvas layer is a fixed SIBLING before
`.canvas-root` with z-index auto: it creates no stacking context, and the root (positioned, later
in tree order) paints all of its content over it, exactly as over its own background. The board
layer sits inside `.kanban-overlay` (a stacking context already: fixed, z 25) at z-index -1, above
the overlay's still and below its content, fixed to the viewport like the board's still. */
.aerial-wallpaper {
position: fixed;
inset: 0;
pointer-events: none;
}
.aerial-wallpaper--board {
z-index: -1;
}
.aerial-wallpaper > video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.flow-wrap {
flex: 1;
min-height: 0;
position: relative;
}
/* ---- Remote access dialog (from the project caret menu) ---- */
.remote-dialog {
width: 440px;
max-width: calc(100vw - 32px);
background: var(--bg, var(--panel));
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 12px;
padding: 18px 20px 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
color: var(--text-strong);
}
.remote-dialog__head {
display: flex;
align-items: center;
justify-content: space-between;
}
.remote-dialog__head h3 {
margin: 0;
font-size: 15px;
font-weight: 600;
}
.remote-dialog__x {
background: transparent;
border: none;
color: rgba(var(--tint-rgb), 0.55);
line-height: 1;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
}
.remote-dialog__x:hover {
color: var(--text-strong);
}
.remote-dialog__desc {
margin: 6px 0 14px;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.55);
}
.remote-dialog__head4 {
margin: 14px 0 8px;
font-size: 13px;
font-weight: 600;
}
.remote-dialog__block {
display: flex;
flex-direction: column;
gap: 8px;
}
.remote-dialog__row {
display: flex;
gap: 8px;
}
.remote-dialog__hint {
margin: 0;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.55);
}
.remote-dialog__err {
margin: 12px 0 0;
font-size: 12px;
color: var(--warn);
}
/* ---- Welcome / empty state ---- */
.welcome {
/* The card row's width — four 150px cards and three 14px gaps. The lists below take exactly
this width so their outer edges line up with the first and last card. */
--welcome-row: calc(4 * 150px + 3 * 14px);
position: absolute;
inset: 0;
z-index: 5;
display: flex;
flex-direction: column;
align-items: center;
/* `safe`: when the content is taller than the window (stacked lists on a phone), start at the
top and scroll instead of centering the overflow off both edges where nothing can reach it. */
justify-content: safe center;
gap: 6px;
padding: 24px 16px;
box-sizing: border-box;
overflow-y: auto;
background: var(--canvas-bg);
}
/* Opened via "+" while a project is in kanban view: the board overlay (z 25) is opaque and would
hide the default z-5 welcome screen. Lift it above the board + controls (26) + banners (27), but
keep it below the tab bar (30) so tabs stay reachable — same relative stacking as on the canvas. */
.welcome--over-board {
z-index: 28;
}
.welcome__brand {
display: flex;
align-items: center;
gap: 12px;
}
.welcome__name {
font-size: 30px;
font-weight: 800;
letter-spacing: -0.5px;
color: var(--text);
}
.welcome__tagline {
margin: 4px 0 28px;
font-size: 13px;
color: var(--muted);
}
.welcome__cards {
display: flex;
gap: 14px;
}
.welcome__card {
width: 150px;
height: 92px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
color: var(--text);
font-size: 13px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
}
.welcome__card svg {
width: 22px;
height: 22px;
color: var(--muted);
}
.welcome__card:hover {
background: var(--panel-header);
border-color: rgba(var(--tint-rgb), 0.18);
}
.welcome__card:hover svg {
color: var(--accent);
}
/* ---- The lists under the cards: Recent conversations | Recently closed ----
ONE container as wide as the card row, centered with it (the page's flex column centers it).
Each section used to be its own centered max-width box, so the two lists had different widths
and neither lined up with the cards. Two equal columns; a lone section spans both. */
.welcome__lists {
width: 100%;
max-width: var(--welcome-row);
margin-top: 28px;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
column-gap: 14px;
row-gap: 28px;
align-items: start;
}
.welcome__lists:empty {
display: none;
}
.welcome__lists > :only-child {
grid-column: 1 / -1;
}
/* Below the card row's own width (642px + the 16px page gutters) the four cards no longer fit
on one line: they become a 2×2 grid as wide as the lists, and the lists stack in reading order
— Recent conversations, then Recently closed. Above it two ~314px columns always fit, because
the container IS the card row. */
@media (max-width: 700px) {
.welcome__cards {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
width: 100%;
max-width: var(--welcome-row);
}
.welcome__card {
width: auto;
min-width: 0;
}
.welcome__lists {
grid-template-columns: minmax(0, 1fr);
}
}
/* ---- "Recently closed" projects list on the start screen ----
Every line in a section — title, folder headers, rows, "Show all" — puts its text 10px in from
the column edge, and trailing bits (age, action, ×) sit 10px in from the right edge. */
.welcome__recent {
min-width: 0;
}
.welcome__recent-title {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 8px;
padding: 0 10px;
}
/* Issue #506: shown only past RECENT_FILTER_THRESHOLD rows, where the list is already
scrolling. Same shape as the sessions sidebar's own "Filter sessions…" box — this is the
same idea applied to the other list, so it should not look like a different control. */
.welcome__recent-filter {
width: 100%;
box-sizing: border-box;
margin-bottom: 6px;
font-size: 12px;
/* 9px + the 1px border = the shared 10px text inset. */
padding: 5px 9px;
background: var(--panel);
color: var(--text);
border: 1px solid var(--border);
border-radius: 7px;
}
.welcome__recent-list {
display: flex;
flex-direction: column;
gap: 4px;
max-height: 220px;
overflow-y: auto;
}
.welcome__recent-empty {
padding: 10px 10px;
font-size: 12px;
color: var(--muted);
}
.welcome__recent-item {
display: flex;
align-items: center;
gap: 8px;
/* 9px + the 1px (hover) border = the shared 10px text inset. */
padding: 8px 9px;
border-radius: 8px;
border: 1px solid transparent;
color: var(--text);
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
}
.welcome__recent-item:hover {
background: var(--panel);
border-color: var(--border);
}
.welcome__recent-item svg {
color: var(--muted);
flex: none;
}
.welcome__recent-mark {
width: 15px;
height: 15px;
border-radius: 4px;
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 9px;
font-weight: 600;
color: #fff;
overflow: hidden;
}
.welcome__recent-name {
font-size: 13px;
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.welcome__recent-path {
font-size: 11px;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
/* Live-session badge on a "Recently closed" row (issue #442): a closed project keeps its tmux
sessions running, and this is the one place that says so. Green = the RUNNING vocabulary. */
.welcome__recent-sessions {
flex: none;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.02em;
padding: 1px 7px;
border-radius: 999px;
color: var(--success);
background: color-mix(in srgb, var(--state-success) 14%, transparent);
}
.welcome__recent-del {
margin-left: auto;
flex: none;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
font-size: 16px;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.12s, background 0.12s, color 0.12s;
}
.welcome__recent-item:hover .welcome__recent-del {
opacity: 1;
}
.welcome__recent-del:hover {
background: color-mix(in srgb, var(--state-error) 15%, transparent);
color: var(--danger);
}
/* ---- "Recent conversations" on the start screen (core/recent-conversations.ts) ---- */
.welcome__convs-list {
max-height: 300px;
gap: 2px;
}
.welcome__convs-group + .welcome__convs-group {
margin-top: 6px;
}
.welcome__convs-folder {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
padding: 2px 10px;
font-size: 11px;
font-weight: 600;
color: var(--muted);
}
.welcome__convs-folder-name {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.welcome__convs-folder .welcome__recent-path {
flex: 1 1 0;
min-width: 0;
font-weight: 400;
}
.welcome__conv-title {
flex: 1;
min-width: 0;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Age and action share ONE slot at the row's right edge: the age at rest, the action on hover /
focus. An invisible-but-present action used to reserve its width after the age, so every
timestamp stopped short of the edge by a different amount ("Resume" vs "Go to node"). */
.welcome__conv-age {
flex: none;
margin-left: auto;
font-size: 11px;
color: var(--muted);
}
.welcome__conv-action {
display: none;
flex: none;
margin-left: auto;
font-size: 11px;
color: var(--accent);
}
.welcome__conv:hover .welcome__conv-age,
.welcome__conv:focus-visible .welcome__conv-age {
display: none;
}
.welcome__conv:hover .welcome__conv-action,
.welcome__conv:focus-visible .welcome__conv-action {
display: inline;
}
.welcome__conv--disabled {
cursor: default;
opacity: 0.55;
}
.welcome__conv--disabled .welcome__conv-action {
color: var(--muted);
}
.welcome__convs-more {
display: block;
margin: 4px 0 0;
padding: 2px 10px;
text-align: left;
font-size: 11px;
color: var(--muted);
background: transparent;
border: none;
cursor: pointer;
}
.welcome__convs-more:hover {
color: var(--text);
}
/* ---- Right-click context menu ---- */
.ctx-backdrop {
position: fixed;
inset: 0;
z-index: 45;
}
.ctx-menu {
position: fixed;
z-index: 46;
min-width: 180px;
display: flex;
flex-direction: column;
gap: 1px;
padding: 6px;
background: rgba(var(--menu-rgb), 0.98);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.ctx-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
background: transparent;
border: none;
border-radius: 7px;
color: var(--text);
font-size: 13px;
text-align: left;
cursor: pointer;
}
.ctx-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--muted);
}
.ctx-item.danger .ctx-icon {
color: inherit;
}
.ctx-item:hover:not(:disabled) {
background: var(--panel-header);
}
.ctx-item:disabled {
color: var(--muted);
cursor: not-allowed;
}
.ctx-item.danger {
color: var(--danger);
}
.ctx-item.danger:hover:not(:disabled) {
background: color-mix(in srgb, var(--state-error) 15%, transparent);
}
/* Submenu row + its flyout. The flyout nests inside the row so moving the cursor across
the overlap doesn't fire the row's mouseleave (hover bridge). */
.ctx-item--submenu {
position: relative;
}
.ctx-item--submenu::after {
content: '▸';
margin-left: auto;
opacity: 0.5;
}
.ctx-submenu {
position: absolute;
/* Default side. `useSubmenuFlip` measures the open flyout and stamps `data-side` — the rule
below opens it leftwards when the row sits too close to the viewport's right edge. The
4px is the overlap that keeps the cursor on a hovered surface the whole way across
(SUBMENU_OVERLAP_PX). */
left: calc(100% - 4px);
top: -6px;
/* Absolutely positioned inside a ~menu-width row, shrink-to-fit would clamp the flyout to
the row's remaining width — size it to its content so long account labels don't wrap. */
width: max-content;
max-width: 320px;
max-height: min(70vh, 520px);
overflow-y: auto;
}
.ctx-submenu[data-side='left'] {
left: auto;
right: calc(100% - 4px);
}
/* A flyout that holds submenu rows of its own must not scroll: `overflow-y: auto` would clip
the nested (absolutely positioned) flyout to nothing. Only short action lists host submenus;
long data lists (models, accounts) are leaves and keep the scroll cap above. */
.ctx-submenu--host {
overflow: visible;
max-height: none;
}
.ctx-submenu .ctx-item {
/* Keep the label and its default ✓ on one line (labels ellipsize past max-width). */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* …except a submenu row inside a flyout: its own flyout is an absolutely positioned CHILD of the
row, and `overflow: hidden` would clip it away entirely. */
.ctx-submenu .ctx-item--submenu {
overflow: visible;
}
.ctx-sep {
height: 1px;
background: var(--border);
margin: 4px 2px;
}
.ctx-label {
padding: 4px 10px;
font-size: 11px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.4px;
}
.ctx-colors {
display: flex;
flex-direction: column;
gap: 5px;
--swatch-cols: 7;
padding: 6px 8px;
}
/* Shared by every palette surface (NodeColorSwatches). The heading is what tells the user which
circle is Claude's — an agent brand color is unidentifiable as a bare dot. */
.swatch-section__label {
font-size: 9.5px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--muted);
}
.swatch-section__grid {
display: grid;
grid-template-columns: repeat(var(--swatch-cols, 7), 1fr);
gap: 5px;
}
.color-popover button[data-selected='true'],
.ctx-colors button[data-selected='true'] {
outline: 1.5px solid var(--text);
outline-offset: 1.5px;
}
.ctx-colors button {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid rgba(var(--tint-rgb), 0.15);
cursor: pointer;
}
/* ---- Editor (Monaco) node ---- */
.editor-node__body {
position: relative;
flex: 1;
min-height: 0;
overflow: hidden;
background: var(--bg);
}
.editor-node__monaco {
position: absolute;
inset: 0;
/* Keep Monaco's internal layers below the sibling markdown preview without unmounting
the editor (and losing its selection, scroll position or undo history). */
isolation: isolate;
}
.editor-node__toggle {
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--muted);
font-size: 11px;
padding: 3px 9px;
cursor: pointer;
flex-shrink: 0;
}
.editor-node__toggle:hover {
background: var(--panel-header);
color: var(--text);
}
.editor-node__save {
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--muted);
font-size: 11px;
padding: 3px 9px;
cursor: pointer;
flex-shrink: 0;
}
.editor-node__save:not(:disabled) {
color: #fff;
background: var(--accent);
border-color: transparent;
}
.editor-node__save:disabled {
cursor: default;
opacity: 0.6;
}
/* Image preview (shown instead of Monaco for image files). */
.editor-node__image {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
overflow: auto;
/* checkerboard so transparency in the image is visible */
background-color: var(--surface-deep);
background-image: linear-gradient(45deg, var(--surface-raised) 25%, transparent 25%),
linear-gradient(-45deg, var(--surface-raised) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, var(--surface-raised) 75%),
linear-gradient(-45deg, transparent 75%, var(--surface-raised) 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.editor-node__image img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
}
/* PDF: the viewer fills the node body — it brings its own toolbar, scrollbars and page chrome,
so no padding or checkerboard here, and centering only applies to the loading/error text. */
.editor-node__pdf {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-deep);
}
.editor-node__pdf iframe {
width: 100%;
height: 100%;
border: 0;
}
.editor-node__loading {
color: var(--muted);
font-size: 12px;
}
.editor-node__dims {
color: var(--muted);
font-size: 11px;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}
/* Per-node error boundary fallback (keeps one bad node from blanking the app). */
.node-error {
display: flex;
flex-direction: column;
gap: 6px;
width: 280px;
padding: 16px;
background: var(--panel, var(--panel));
border: 1px solid var(--danger);
border-radius: 10px;
color: var(--text);
}
.node-error__title {
font-size: 13px;
font-weight: 600;
color: var(--danger);
}
.node-error__msg {
font-size: 11.5px;
color: var(--muted);
word-break: break-word;
}
/* ---- Sticky note node ---- */
.sticky-node {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
border: 1px solid;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
.sticky-node.selected {
box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.sticky-node__header {
display: flex;
align-items: center;
gap: 8px;
padding: 5px;
cursor: grab;
user-select: none;
}
.sticky-node__body {
flex: 1;
min-height: 0;
resize: none;
background: transparent;
border: none;
outline: none;
color: var(--text);
font-family: inherit;
font-size: 13px;
line-height: 1.45;
padding: 8px 10px;
}
.sticky-node__body::placeholder {
color: rgba(192, 202, 245, 0.4);
}
/* Rendered-markdown twin of the textarea body: same box, click flips into the textarea. */
.sticky-node__view {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 8px 10px;
font-size: 13px;
line-height: 1.45;
color: var(--text);
cursor: text;
user-select: text;
-webkit-user-select: text;
}
.sticky-node__placeholder {
color: rgba(192, 202, 245, 0.4);
}
.sticky-node__md > :first-child {
margin-top: 0;
}
.sticky-node__md > :last-child {
margin-bottom: 0;
}
.sticky-node__md p,
.sticky-node__md ul,
.sticky-node__md ol {
margin: 0 0 6px;
}
.sticky-node__md ul,
.sticky-node__md ol {
padding-left: 18px;
}
.sticky-node__md h1,
.sticky-node__md h2,
.sticky-node__md h3,
.sticky-node__md h4 {
margin: 8px 0 4px;
font-size: 13px;
}
.sticky-node__md h1 {
font-size: 15px;
}
.sticky-node__md h2 {
font-size: 14px;
}
.sticky-node__md pre {
background: rgba(0, 0, 0, calc(0.25 * var(--shadow-k) + 0.08));
padding: 6px 8px;
border-radius: 6px;
overflow-x: auto;
}
.sticky-node__md code {
font-size: 12px;
}
.sticky-node__md a {
color: var(--accent);
}
/* "↻ <agent> · 5m ago" — present only while the body is the untouched agent-synced text. */
.sticky-node__stamp {
flex: 0 0 auto;
padding: 3px 10px 5px;
font-size: 10px;
color: var(--muted);
user-select: none;
}
.sticky-node.collapsed .sticky-node__body,
.sticky-node.collapsed .sticky-node__view,
.sticky-node.collapsed .sticky-node__stamp {
display: none;
}
/* ---- Top-right controls cluster ---- */
.controls-cluster {
position: absolute;
top: calc(var(--tabbar-h) + var(--float-gap));
right: var(--float-gap);
z-index: 26; /* above the kanban overlay (25) — the view toggle must stay reachable on the board */
display: flex;
align-items: center; /* center the presence facepile (26px) against the 34px toolbar buttons */
gap: 6px;
}
/* Empty-canvas guidance — non-interactive, sits under every panel/dialog. */
.empty-canvas-hint {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
pointer-events: none;
user-select: none;
z-index: 1;
color: rgba(var(--tint-rgb), 0.28);
font-size: 14px;
text-align: center;
}
.empty-canvas-hint .kbd {
opacity: 0.7;
}
/* Stack of notification strips (update + announcements), just below the tab bar. */
.top-banners {
position: absolute;
top: calc(var(--tabbar-h) + var(--float-gap));
left: 50%;
transform: translateX(-50%);
z-index: 27; /* above the kanban overlay (25) and the cluster (26), below the tab bar (30) */
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
-webkit-app-region: no-drag;
pointer-events: none;
}
.top-banners > * {
pointer-events: auto;
}
/* Bottom-right auto-update card (download progress + restart). */
.update-card {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 40;
width: 340px;
display: flex;
flex-direction: column;
gap: 10px;
padding: 18px 20px;
background: rgba(var(--card-rgb), 0.98);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 14px;
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
color: var(--text);
-webkit-app-region: no-drag;
}
.update-card__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.update-card__title {
font-size: 15px;
font-weight: 600;
}
.update-card__icon {
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.6);
font-size: 13px;
cursor: pointer;
}
.update-card__icon:hover {
background: rgba(var(--tint-rgb), 0.08);
}
.update-card__body {
margin: 0;
font-size: 13.5px;
color: rgba(var(--tint-rgb), 0.75);
}
.update-card__link {
align-self: flex-start;
padding: 0;
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.7);
font-size: 13px;
text-decoration: underline;
cursor: pointer;
}
.update-card__link:hover {
color: var(--text);
}
.update-card__bar {
height: 6px;
border-radius: 3px;
background: rgba(var(--tint-rgb), 0.12);
overflow: hidden;
}
.update-card__bar-fill {
height: 100%;
background: var(--text, #fff);
border-radius: 3px;
transition: width 0.2s ease;
}
.update-card__pct {
margin: 0;
font-size: 12.5px;
color: rgba(var(--tint-rgb), 0.6);
}
.update-card__btn {
align-self: flex-start;
padding: 6px 14px;
background: var(--accent);
border: none;
border-radius: 8px;
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.update-card__btn:hover {
background: var(--accent-hover);
}
/* Preparing / restarting: the click was taken, the button says so and cannot be pressed twice. */
.update-card__btn:disabled {
display: inline-flex;
align-items: center;
gap: 8px;
opacity: 0.7;
cursor: default;
}
.update-card__btn:disabled:hover {
background: var(--accent);
}
.update-card__spinner {
width: 11px;
height: 11px;
border: 2px solid rgba(255, 255, 255, 0.35);
border-top-color: #fff;
border-radius: 50%;
animation: nt-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
.update-card__actions {
display: flex;
align-items: center;
gap: 14px;
}
.update-card__actions .update-card__link {
align-self: center;
}
.update-card__notes {
margin: 0;
padding-left: 18px;
font-size: 12.5px;
color: rgba(var(--tint-rgb), 0.7);
}
.update-card__notes li + li {
margin-top: 2px;
}
.update-card__hint {
margin: 0;
font-size: 12.5px;
color: rgba(var(--tint-rgb), 0.6);
}
.update-card--pill {
flex-direction: row;
align-items: center;
gap: 8px;
width: auto;
padding: 8px 14px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.update-card__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.set-value {
font-size: 13px;
color: rgba(var(--tint-rgb), 0.6);
}
.set-btn {
align-self: flex-start;
margin-top: 4px;
padding: 6px 14px;
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 8px;
color: var(--text);
font-size: 13px;
cursor: pointer;
}
.set-btn:hover {
background: rgba(var(--tint-rgb), 0.14);
}
/* The top-banner strip: the website news feed, the tmux notice, and every in-app message the
canvas raises (worktree results, restart outcomes, sync/copy errors). Those messages are
SENTENCES, not headlines — several of them explain what to go and look at — so this must be
able to show more than one line (see __body). */
.announce-banner {
display: flex;
align-items: center;
gap: 10px;
max-width: min(680px, calc(100vw - 40px));
padding: 6px 8px 6px 14px;
background: rgba(var(--menu-rgb), 0.96);
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
border-radius: 10px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
font-size: 13px;
color: var(--text);
}
.announce-banner--success {
border-left-color: var(--success);
}
.announce-banner--warning {
border-left-color: var(--warn);
}
/* One step past --warning, for a strip whose condition is already breaking things (the machine is
out of pty devices, so new terminals fail) rather than about to. */
.announce-banner--danger {
border-left-color: var(--danger);
}
.announce-banner__dot {
width: 8px;
height: 8px;
flex: none;
border-radius: 50%;
background: var(--accent);
}
.announce-banner--success .announce-banner__dot {
background: var(--success);
}
.announce-banner--warning .announce-banner__dot {
background: var(--warn);
}
.announce-banner--danger .announce-banner__dot {
background: var(--danger);
}
.announce-banner__content {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.announce-banner__title {
font-weight: 600;
/* Wraps rather than clipping: a headline is short, but it is not OUR text — it comes off the
website feed, and a long one used to end in an ellipsis with nowhere to read the rest. */
overflow-wrap: anywhere;
}
/* The message itself. It used to be `white-space: nowrap` + `text-overflow: ellipsis`, i.e. one
line and no more: "Restart skipped: this session is busy, already restarting, not attached
(closed, en…" — with no tooltip, no expand, and nothing to click, the rest was unreadable. The
sentence that names the failure is usually the half that got cut. So it wraps, and the height
cap (with its own scroll) is what keeps a long one from swallowing the canvas — the cap is a
scrollbar, never a truncation, so every message stays readable to the end.
`overflow-wrap: anywhere` is for the paths and session ids these messages carry: a single
unbreakable token would otherwise push the banner past its max-width. */
.announce-banner__body {
color: rgba(var(--tint-rgb), 0.6);
white-space: pre-wrap;
overflow-wrap: anywhere;
max-height: 7.4em;
overflow-y: auto;
}
/* Same thin thumb the menus use — the default one is a chunky light bar that reads as a foreign
control dropped into the banner. */
.announce-banner__body::-webkit-scrollbar {
width: 8px;
}
.announce-banner__body::-webkit-scrollbar-thumb {
background: rgba(var(--tint-rgb), 0.18);
border-radius: 4px;
border: 2px solid transparent;
background-clip: content-box;
}
.announce-banner__body::-webkit-scrollbar-track {
background: transparent;
}
.announce-banner__btn {
flex: none;
padding: 4px 12px;
background: transparent;
border: 1px solid var(--accent);
border-radius: 7px;
color: var(--accent);
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.announce-banner__btn:hover {
background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.announce-banner__close {
width: 24px;
height: 24px;
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.6);
font-size: 12px;
cursor: pointer;
}
.announce-banner__close:hover {
background: rgba(var(--tint-rgb), 0.08);
}
/* Active project's .nodeterm file changed on disk while there are unsaved local edits. */
.conflict-bar {
display: flex;
align-items: center;
gap: 12px;
max-width: 560px;
padding: 6px 12px;
background: color-mix(in srgb, var(--state-warning) 15%, transparent);
border: 1px solid color-mix(in srgb, var(--state-warning) 40%, transparent);
border-radius: 10px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
font-size: 12.5px;
color: var(--text);
}
.conflict-bar button {
flex: none;
padding: 2px 10px;
background: transparent;
border: 1px solid color-mix(in srgb, var(--state-warning) 60%, transparent);
border-radius: 7px;
color: var(--text);
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.conflict-bar button:hover {
background: color-mix(in srgb, var(--state-warning) 18%, transparent);
}
/* The whole-workspace save did not land. Red, not amber: the conflict bar asks a question, this
one reports that the canvas on screen is not the canvas on disk. */
.save-failure-bar {
background: color-mix(in srgb, var(--state-error) 15%, transparent);
border-color: color-mix(in srgb, var(--state-error) 45%, transparent);
}
.save-failure-bar button {
border-color: color-mix(in srgb, var(--state-error) 60%, transparent);
}
.save-failure-bar button:hover {
background: color-mix(in srgb, var(--state-error) 18%, transparent);
}
/* Direct children only — the presence facepile's face buttons are nested inside .presence-facepile
and must keep their own round, peer-colored styling, not the toolbar button chrome. */
.controls-cluster > button {
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(var(--menu-rgb), 0.92);
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text);
font-size: 15px;
cursor: pointer;
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.3 * var(--shadow-k)));
}
.controls-cluster > button:hover {
background: var(--panel-header);
}
/* Icons read as 15px glyphs before — too small/ambiguous (field report). 18px for every
SVG in the cluster (Explorer, Source Control, Phone, Gear) keeps the 34px buttons. */
.controls-cluster > button svg {
width: 18px;
height: 18px;
}
.sessions-icon-cluster > button svg {
width: 18px;
height: 18px;
}
/* Search button shows the ⌘K shortcut so its purpose is obvious */
.cluster-search {
width: auto !important;
gap: 10px;
padding: 0 10px;
}
.kbd {
font-size: 11px;
font-weight: 600;
color: var(--muted);
background: rgba(var(--tint-rgb), 0.07);
border: 1px solid var(--border);
border-radius: 5px;
padding: 1px 6px;
line-height: 1.4;
}
/* ---- Right-side drawer (settings / source control) ---- */
.drawer-overlay {
position: fixed;
inset: 0;
z-index: 55;
background: rgba(10, 12, 18, 0.4);
display: flex;
justify-content: flex-end;
}
/* Overlays/menus that can overlap the macOS title-bar strip must opt out of window-drag,
otherwise clicks on their top controls (×, ↻, …) drag the window instead. */
.drawer-overlay,
.drawer--pinned,
.palette-overlay,
.sc-overlay,
.confirm-overlay,
.ctx-menu,
.ctx-backdrop,
.tab-menu,
.controls-cluster,
.dock,
.dictation,
.kanban-overlay {
-webkit-app-region: no-drag;
}
.drawer {
width: 360px;
max-width: 92vw;
height: 100%;
background: var(--panel);
border-left: 1px solid var(--border);
box-shadow: -16px 0 48px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
display: flex;
flex-direction: column;
}
.drawer.scm {
width: 460px;
}
/* Pinned explorer: no scrim, clicks pass through to the canvas. The drawer is a floating
card on the right — same shape as the sessions sidebar on the left — so the controls
cluster (one --float-gap below the tab bar, 34px tall) stays reachable. z 26 sits with that cluster
above the kanban board (25) and below the tab bar (30) / dialogs (55+). pointer-events
on the overlay is load-bearing: a transparent overlay that still captures would freeze
the canvas even with the click-to-close handler removed. */
.drawer-overlay--pinned {
background: transparent;
pointer-events: none;
z-index: 26;
}
.drawer-overlay--pinned .drawer--pinned {
pointer-events: auto;
position: absolute;
/* Below the cluster: its own top + its 34px height + a gap. Same stack as .resume-card. */
top: calc(var(--tabbar-h) + var(--float-gap) + 34px + 12px);
right: var(--float-gap);
bottom: var(--float-gap);
height: auto;
max-height: none;
width: 320px;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
}
.drawer__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid var(--border);
}
.drawer__head h2 {
margin: 0;
font-size: 15px;
}
.drawer__close {
background: transparent;
border: none;
color: var(--muted);
line-height: 1;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
}
.drawer__close:hover {
color: var(--text);
}
.drawer__body {
flex: 1;
overflow-y: auto;
padding: 8px 16px 24px;
}
.drawer__body section {
padding: 12px 0;
border-bottom: 1px solid var(--border);
}
.drawer__body h3 {
margin: 0 0 8px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--muted);
}
.set-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 5px 0;
font-size: 13px;
}
.set-row input[type='text'],
.set-row input[type='number'] {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
padding: 5px 8px;
font-size: 12px;
width: 160px;
outline: none;
}
.set-row input[type='number'] {
width: 80px;
}
.set-row select {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
padding: 5px 8px;
font-size: 12px;
outline: none;
}
.set-col {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px 0;
font-size: 13px;
}
.set-agent {
border: 1px solid var(--border);
border-radius: 8px;
padding: 4px 10px 8px;
margin: 8px 0;
}
.set-textarea {
width: 100%;
min-height: 54px;
resize: vertical;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-family: inherit;
font-size: 12px;
padding: 7px 9px;
outline: none;
}
.set-swatches {
display: flex;
gap: 5px;
}
.set-swatches button {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid rgba(var(--tint-rgb), 0.15);
cursor: pointer;
}
.set-swatches button.active {
outline: 2px solid var(--text);
outline-offset: 1px;
}
.set-note {
margin: 0 0 8px;
font-size: 11px;
color: var(--muted);
}
.set-subhead {
margin: 12px 0 6px;
font-size: 12px;
font-weight: 600;
color: var(--text);
}
/* ---- Source control ---- */
.sc-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
font-size: 12px;
color: var(--muted);
}
.sc-branch {
color: var(--text);
font-weight: 600;
}
.sc-message {
width: 100%;
min-height: 60px;
resize: vertical;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-family: inherit;
font-size: 13px;
padding: 8px 10px;
outline: none;
margin-bottom: 8px;
}
.sc-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.sc-btn {
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 7px;
color: var(--text);
font-size: 12px;
padding: 7px 11px;
cursor: pointer;
}
.sc-btn:hover:not(:disabled) {
background: var(--panel-2);
}
.sc-btn.primary {
background: var(--accent, var(--accent));
color: #fff;
border-color: transparent;
font-weight: 600;
}
.sc-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.sc-graph {
margin: 0;
font-family: Menlo, Monaco, 'Courier New', monospace;
font-size: 11px;
line-height: 1.5;
color: var(--text);
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 10px;
max-height: 260px;
overflow: auto;
white-space: pre;
}
/* ---- Source control (VS Code style) ---- */
.scm-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
font-family: Menlo, Monaco, monospace;
font-size: 13px;
}
.scm-repo {
color: var(--text);
}
/* Scope chip: which checkout (main or a bound worktree) the panel acts on. */
.scm-scope {
background: rgba(var(--tint-rgb), 0.06);
color: var(--text);
border: 1px solid var(--border);
border-radius: 7px;
padding: 3px 9px;
font-family: inherit;
font-size: 12px;
cursor: pointer;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.scm-scope:hover {
background: rgba(var(--tint-rgb), 0.12);
}
.scm-branch {
background: rgba(122, 162, 247, 0.15);
color: var(--accent-text);
border: 1px solid rgba(122, 162, 247, 0.3);
border-radius: 7px;
padding: 3px 9px;
font-family: inherit;
font-size: 12px;
cursor: pointer;
}
.scm-branch:hover {
background: rgba(122, 162, 247, 0.25);
}
.scm-spacer {
flex: 1;
}
.scm-ahead {
color: var(--success);
}
.scm-behind {
color: var(--muted);
}
.scm-sync {
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 7px;
color: var(--text);
font-size: 12px;
padding: 4px 11px;
cursor: pointer;
}
.scm-sync:hover:not(:disabled) {
background: var(--panel-2);
}
.scm-sync:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.scm-body {
font-family: Menlo, Monaco, monospace;
}
.scm-section {
padding: 14px 0 6px;
}
.scm-section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2px 8px;
font-size: 11px;
letter-spacing: 0.5px;
color: var(--muted);
}
.scm-section-head b {
color: var(--text);
background: var(--panel-header);
border-radius: 8px;
padding: 0 7px;
margin-left: 2px;
}
.scm-section-head button {
background: transparent;
border: none;
color: var(--accent-text);
font-size: 12px;
cursor: pointer;
font-family: inherit;
}
.scm-section-head button:hover {
text-decoration: underline;
}
.scm-file {
display: flex;
align-items: center;
gap: 9px;
padding: 5px 2px;
font-size: 13px;
}
.scm-row-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
opacity: 0;
}
.scm-file:hover .scm-row-actions,
.scm-file.open .scm-row-actions {
opacity: 1;
}
.scm-iconbtn {
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
font-size: 15px;
line-height: 1;
cursor: pointer;
}
.scm-iconbtn:hover {
background: var(--panel-header);
color: var(--text);
}
.scm-letter {
width: 12px;
text-align: center;
font-weight: 700;
flex-shrink: 0;
}
.scm-path {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: var(--text);
font-family: inherit;
font-size: 13px;
text-align: left;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.scm-path:hover {
color: var(--accent-text);
text-decoration: underline;
}
.scm-file.open .scm-path {
color: var(--accent-text);
}
.scm-discard {
background: transparent;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 13px;
padding: 0 4px;
flex-shrink: 0;
}
.scm-discard:hover {
color: var(--danger);
}
.scm-diff {
margin: 2px 0 8px 26px;
padding: 8px 10px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
font-family: Menlo, Monaco, monospace;
font-size: 11px;
line-height: 1.5;
max-height: 280px;
overflow: auto;
white-space: pre;
}
.scm-diff > div {
min-height: 1em;
}
.scm-diff .d-add {
color: var(--success);
background: color-mix(in srgb, var(--state-success) 8%, transparent);
}
.scm-diff .d-del {
color: var(--danger);
background: color-mix(in srgb, var(--state-error) 8%, transparent);
}
.scm-diff .d-hunk {
color: var(--accent-text);
}
.scm-diff .d-meta {
color: var(--muted);
}
.scm-diff .d-ctx {
color: var(--text);
}
.scm-stat {
flex-shrink: 0;
display: flex;
gap: 6px;
}
.scm-add {
color: var(--success);
}
.scm-del {
color: var(--danger);
}
.scm-commit {
padding: 14px 0 16px;
}
/* Composer: a single rounded message box with the ✦ AI-generate action
tucked into its top-right corner (label/footer rows removed for a cleaner,
editor-like compose surface). */
.scm-compose {
position: relative;
}
.scm-message {
width: 100%;
min-height: 76px;
resize: vertical;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 14px;
line-height: 1.45;
padding: 11px 42px 11px 13px; /* right padding clears the ✦ corner button */
outline: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scm-message::placeholder {
color: var(--muted);
}
.scm-message:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.scm-gen {
position: absolute;
top: 8px;
right: 8px;
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--accent) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
color: var(--accent-text);
border-radius: 7px;
font-size: 13px;
line-height: 1;
cursor: pointer;
transition: background 0.15s ease, transform 0.12s ease;
}
.scm-gen:hover:not(:disabled) {
background: color-mix(in srgb, var(--accent) 26%, transparent);
}
.scm-gen:active:not(:disabled) {
transform: scale(0.92);
}
.scm-gen:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.scm-gen.is-generating {
animation: scm-gen-pulse 0.9s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes scm-gen-pulse {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.5;
transform: scale(0.86);
}
}
.scm-commit-btn {
width: 100%;
margin-top: 10px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 9px;
padding: 11px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.1px;
cursor: pointer;
transition: filter 0.15s ease, opacity 0.15s ease;
}
.scm-commit-btn:hover:not(:disabled) {
filter: brightness(1.08);
}
.scm-commit-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* ---- Explorer (file tree) ---- */
.ex-head-actions {
display: flex;
align-items: center;
gap: 8px;
}
.ex-head-actions button {
background: transparent;
border: none;
color: var(--muted);
font-size: 16px;
line-height: 1;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 4px;
}
.ex-head-actions button:hover {
color: var(--text);
}
.ex-head-actions button.is-on {
color: var(--accent);
}
.ex-head-actions button svg {
display: block;
}
.ex-body {
padding: 6px 4px 20px;
font-size: 13px;
}
.ex-row {
display: flex;
align-items: center;
gap: 6px;
height: 26px;
padding-right: 8px;
border-radius: 6px;
color: var(--text);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
}
.ex-row:hover {
background: var(--panel-header);
}
.ex-row.selected {
background: color-mix(in srgb, var(--accent) 26%, transparent);
}
.ex-row.selected:hover {
background: color-mix(in srgb, var(--accent) 32%, transparent);
}
/* Git-ignored entries: dimmed + italic. */
.ex-row.ignored .ex-name,
.ex-row.ignored .ex-icon {
opacity: 0.4;
font-style: italic;
}
.ex-chevron {
flex-shrink: 0;
width: 12px;
text-align: center;
color: var(--muted);
transition: transform 0.1s;
}
.ex-chevron.open {
transform: rotate(90deg);
}
.ex-chevron.hidden {
visibility: hidden;
}
.ex-icon {
width: 15px;
height: 15px;
flex-shrink: 0;
color: var(--muted);
}
.ex-name {
overflow: hidden;
text-overflow: ellipsis;
}
/* Per-row download button. Hidden until the row is hovered/selected (and always reachable by
keyboard focus) so the tree stays a tree — the context menu carries the same action. */
.ex-dl {
margin-left: auto;
flex-shrink: 0;
padding: 0 4px;
background: transparent;
border: none;
border-radius: 4px;
color: var(--muted);
font-size: 14px;
line-height: 1;
cursor: pointer;
opacity: 0;
}
.ex-row:hover .ex-dl,
.ex-row.selected .ex-dl,
.ex-dl:focus-visible,
/* A transfer's own feedback must not depend on the pointer still being over the row — the user
may click and immediately look elsewhere, and that is exactly when "did it start?" is asked. */
.ex-dl.running,
.ex-dl.done,
.ex-dl.error {
opacity: 1;
}
.ex-dl:hover:not(:disabled) {
color: var(--text);
background: color-mix(in srgb, var(--text) 12%, transparent);
}
.ex-dl.running {
cursor: default;
}
.ex-dl.done {
color: var(--success);
}
.ex-dl.error {
color: var(--danger, var(--danger));
font-weight: 700;
}
/* Same spinner as the strip below, sized for a 26px row. */
.ex-dl__spin {
display: block;
width: 10px;
height: 10px;
border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
border-top-color: var(--accent);
border-radius: 50%;
animation: ex-dls-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
/* Download strip: pinned under the tree, one row per transfer. */
.ex-dls {
flex-shrink: 0;
border-top: 1px solid var(--border);
padding: 6px 8px;
display: flex;
flex-direction: column;
gap: 4px;
max-height: 30%;
overflow-y: auto;
}
.ex-dls__row {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--muted);
}
.ex-dls__row.done {
color: var(--text);
}
.ex-dls__row.error {
color: var(--danger, var(--danger));
}
.ex-dls__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ex-dls__act {
margin-left: auto;
background: transparent;
border: none;
color: var(--accent);
cursor: pointer;
font-size: 12px;
padding: 0 2px;
}
/* The dismiss half of the download row: `.ex-dls__act` is shared with the text "Reveal" button,
so the icon box lives here rather than on the shared class. */
.ex-dls__dismiss {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
}
/* The `+ .ex-dls__act` sibling is the dismiss ×: only the FIRST action pushes right. */
.ex-dls__act + .ex-dls__act {
margin-left: 0;
color: var(--muted);
}
.ex-dls__spin {
flex-shrink: 0;
width: 10px;
height: 10px;
border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
border-top-color: var(--accent);
border-radius: 50%;
animation: ex-dls-spin 0.8s linear infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes ex-dls-spin {
to {
transform: rotate(360deg);
}
}
/* ---- Confirm dialog ---- */
.confirm-overlay {
position: fixed;
inset: 0;
z-index: 70;
display: flex;
align-items: center;
justify-content: center;
background: rgba(10, 12, 18, 0.55);
}
.confirm {
width: 420px;
max-width: 90vw;
/* Cap the height so a long message (e.g. an agent control-write preview) can
never grow the box past the viewport — the message area scrolls instead. */
max-height: 85vh;
display: flex;
flex-direction: column;
background: rgba(var(--menu-rgb), 0.99);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 24px 64px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
padding: 18px;
}
/* ---- Bind-to-worktree dialog (reuses .confirm shell) ---- */
.confirm.bind-dialog {
width: 420px;
}
.bind-field {
display: flex;
flex-direction: column;
gap: 5px;
margin: 0 0 12px;
font-size: 12px;
color: var(--muted);
}
.bind-field input {
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
padding: 7px 10px;
}
.bind-field input:focus {
outline: none;
border-color: var(--accent);
}
/* Custom-dropdown trigger (BranchSelect) — matches `.bind-field input` so it reads as the same kind
* of field, with a chevron and a muted placeholder. The popover reuses the app's `.tab-menu`. */
.bind-select {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
padding: 7px 10px;
cursor: pointer;
text-align: left;
}
.bind-select:hover {
border-color: rgba(var(--tint-rgb), 0.2);
}
.bind-select__val {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bind-select__ph {
color: var(--muted);
}
.bind-select__chev {
flex-shrink: 0;
color: var(--muted);
}
/* A branch list can be long — the app's menus don't cap height, so this instance does. */
.bind-select__menu {
max-height: 280px;
overflow-y: auto;
}
/* Repo root, resolved from the project cwd — read-only context, not a field. */
.bind-repo {
margin: 0 0 12px;
padding: 6px 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--panel-header);
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bind-existing {
margin: 0 0 12px;
}
/* A repository may have hundreds of worktrees. Keep the dialog controls reachable and scroll only
the repeated rows; viewport-relative height still fits on short displays. */
.bind-existing__list {
max-height: min(260px, 32vh);
overflow-y: auto;
overscroll-behavior: contain;
padding-right: 3px;
}
.bind-existing__title {
margin: 0 0 6px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
.bind-existing__search {
width: 100%;
height: 30px;
margin: 0 0 6px;
padding: 0 9px;
border: 1px solid var(--border);
border-radius: 6px;
outline: none;
background: var(--bg);
color: var(--text);
font-size: 12px;
}
.bind-existing__search:focus {
border-color: var(--accent);
}
.bind-existing__empty {
padding: 10px 8px;
color: var(--muted);
font-size: 12px;
text-align: center;
}
.bind-existing__row {
display: flex;
align-items: baseline;
gap: 8px;
width: 100%;
padding: 6px 8px;
border: 1px solid var(--border);
border-radius: 6px;
margin-bottom: 4px;
background: transparent;
color: var(--text);
font-size: 12px;
text-align: left;
cursor: pointer;
}
.bind-existing__row:hover:not(:disabled) {
background: var(--panel-header);
border-color: var(--accent);
}
.bind-existing__row:disabled {
opacity: 0.45;
cursor: default;
}
.bind-existing__branch {
flex: none;
}
.bind-existing__path {
flex: 1;
min-width: 0;
color: var(--muted);
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Inline creation error (same red as .scm-error) — worktree paths never use window.alert. */
.bind-error {
margin: 0 0 12px;
padding: 8px 10px;
border: 1px solid color-mix(in srgb, var(--state-error) 40%, transparent);
border-radius: 6px;
background: color-mix(in srgb, var(--state-error) 12%, transparent);
color: var(--danger);
font-size: 11px;
line-height: 1.4;
white-space: pre-wrap;
word-break: break-word;
}
.bind-mode {
display: flex;
gap: 18px;
margin: 0 0 12px;
font-size: 13px;
color: var(--text);
}
.bind-mode label {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
}
.confirm__btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
/* ---- Clone repo dialog (reuses the .confirm shell) ---- */
.clone-dialog {
width: 420px;
}
.clone-dialog__label {
display: block;
margin: 10px 2px 4px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
}
.clone-dialog__row {
display: flex;
gap: 6px;
align-items: center;
}
.clone-dialog__row .confirm__input {
flex: 1;
}
.clone-dialog__preview {
margin: 4px 2px 0;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.45);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.clone-dialog__error {
margin-top: 8px;
font-size: 11px;
color: var(--danger);
word-break: break-word;
}
.clone-dialog__progress {
margin-top: 10px;
margin-bottom: 14px;
}
.clone-dialog__progress-label {
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
margin-bottom: 4px;
}
.clone-dialog__progress-track {
height: 4px;
border-radius: 2px;
background: rgba(var(--tint-rgb), 0.12);
overflow: hidden;
}
.clone-dialog__progress-bar {
height: 100%;
border-radius: 2px;
background: var(--accent);
transition: width 200ms ease;
}
/* ---- Notification consent dialog (polished, icon + title + actions) ---- */
.consent-overlay {
position: fixed;
inset: 0;
z-index: 72;
display: flex;
align-items: center;
justify-content: center;
background: rgba(8, 8, 10, 0.6);
backdrop-filter: blur(3px);
-webkit-app-region: no-drag;
}
.consent-card {
width: 400px;
max-width: 90vw;
padding: 28px 26px 22px;
text-align: center;
background: var(--surface-deep);
border: 1px solid var(--border);
border-radius: 18px;
box-shadow: 0 30px 80px rgba(0, 0, 0, calc(0.65 * var(--shadow-k)));
}
.consent-icon {
width: 56px;
height: 56px;
margin: 0 auto 16px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
color: #fff;
background: linear-gradient(135deg, #a38dff, #7a4bd0);
box-shadow: 0 8px 24px rgba(122, 75, 208, 0.45);
}
.consent-title {
margin: 0 0 8px;
font-size: 18px;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--text);
}
.consent-desc {
margin: 0 0 22px;
font-size: 13.5px;
line-height: 1.55;
color: var(--muted);
}
.consent-actions {
display: flex;
gap: 10px;
}
.consent-btn {
flex: 1;
padding: 10px 14px;
border-radius: 10px;
font-size: 13.5px;
font-weight: 600;
cursor: pointer;
border: 1px solid transparent;
transition: background 0.15s, border-color 0.15s;
}
.consent-btn.ghost {
background: transparent;
border-color: var(--border);
color: var(--text);
}
.consent-btn.ghost:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.consent-btn.primary {
background: var(--accent);
color: #fff;
}
.consent-btn.primary:hover {
background: var(--accent-hover);
}
.update-prep__title {
margin: 0 0 12px;
font-size: 14px;
font-weight: 600;
color: var(--text);
}
/* Prepare-for-update (issue #829): the busy-session list and the stop summary. No fill of its own:
it sits inside `.confirm`, which owns the surface in every appearance. */
.update-prep__list {
margin: 0 0 16px;
padding-left: 18px;
font-size: 13px;
line-height: 1.5;
color: var(--text);
max-height: 40vh;
overflow-y: auto;
}
.update-prep__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
/* Free-tier limit dialog (components/ProjectLimitDialog.tsx): the open projects, each with Close,
inside the `.confirm` shell — which owns the surface, the z-order (over the kanban board) and the
buttons. Only the title, the rows and the one-line notice need anything of their own. */
.project-limit__title {
margin: 0 0 12px;
font-size: 14px;
font-weight: 600;
color: var(--text);
}
.project-limit__list {
list-style: none;
margin: 0 0 16px;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
max-height: 40vh;
overflow-y: auto;
}
.project-limit__row,
.project-limit__notice {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 13px;
line-height: 1.5;
color: var(--text);
}
.project-limit__notice {
margin: 0 0 16px;
}
/* A long project name truncates instead of pushing its Close button out of the box. */
.project-limit__name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* One-time popup from the check feed (components/AnnouncementPopup.tsx), in the `.confirm` shell.
The level shows as the top edge, the banner's left edge turned on its side. */
.confirm.announce-popup {
border-top: 3px solid var(--accent);
}
/* It takes focus itself (so keys stop reaching the terminal under the scrim); no ring for that. */
.confirm.announce-popup:focus {
outline: none;
}
.confirm.announce-popup--success {
border-top-color: var(--success);
}
.confirm.announce-popup--warning {
border-top-color: var(--warn);
}
/* Edge to edge at the top of the box, and never cropped: it can be a design with words in it. The
admin console's preview draws it with the same numbers. */
.announce-popup__image {
display: block;
flex: none;
width: calc(100% + 36px); /* the box's 18px padding, both sides */
max-height: min(320px, 40vh);
object-fit: contain;
margin: -18px -18px 14px;
border-radius: 11px 11px 0 0; /* the box's 14px, less its 3px top border */
}
.announce-popup__title {
margin: 0 0 10px;
font-size: 15px;
font-weight: 600;
color: var(--text);
}
.confirm.project-limit__checking {
width: auto;
}
.project-limit__checking .confirm__msg {
margin: 0;
}
.confirm__msg {
margin: 0 0 16px;
/* The scrollable region once the box hits its max-height, so the action buttons
below stay on-screen instead of being pushed past the viewport. */
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
font-size: 13px;
line-height: 1.5;
color: var(--text);
/* Confirm messages are composed as paragraphs separated by `\n\n` — the safety disclosures most
of all ("⚠ The worktree directory will be DELETED", "⚠ N uncommitted file(s)", "⚠ … is also
pushed to origin", the device-approval SAS code). Without this they collapse into one run-on
paragraph and the warning the user most needs to see is buried mid-sentence. `pre-line` keeps
the newlines and still collapses runs of spaces, exactly as `normal` did — so the messages that
carry no newlines at all are unchanged. */
white-space: pre-line;
/* `pre-line` only breaks at whitespace, so one long unbroken token — a URL, an absolute path,
a base64 blob, all common in the agent-authored text the canvas-control write approval shows
("Agent X wants to send…") — forced the message area into HORIZONTAL scrolling. Measured in
Chrome: a 400-char token overflows at any box width; with this it wraps and the overflow is
gone. A dialog whose whole job is "read this, then approve it" must never hide half the text
off to the side. */
overflow-wrap: anywhere;
}
/* The grant disclosure (`ConsentNotice` → describeGrant) shown ABOVE the SAS body in the host
approval dialog: the human reads that they are handing the peer shell access before they Allow.
Styled as a distinct callout — accent-tinted panel — so a load-bearing security sentence does
not read as an unstyled default paragraph. */
.remote-consent {
margin: 0 0 16px;
padding: 10px 12px;
border-radius: 8px;
background: color-mix(in srgb, var(--accent) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
font-size: 13px;
line-height: 1.5;
color: var(--text);
}
/* Explicit opt-in inside a confirm dialog (e.g. "also delete the directory from disk"). */
.confirm__option {
display: flex;
align-items: center;
gap: 8px;
margin: -6px 0 14px;
font-size: 12.5px;
color: rgba(var(--tint-rgb), 0.55);
cursor: pointer;
}
/* The "how far" radios under a confirm's opt-in (canvas control's "Don't ask again"). Indented
under the checkbox they qualify, so the pair reads as one control rather than two questions. */
.confirm__scopes {
display: flex;
flex-direction: column;
gap: 6px;
margin: -8px 0 14px 22px;
}
.confirm__scope {
display: flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
color: rgba(var(--tint-rgb), 0.55);
cursor: pointer;
}
.confirm__input {
width: 100%;
box-sizing: border-box;
margin: 0 0 16px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
padding: 8px 10px;
}
.confirm__textarea {
/* Task prose, not a one-liner: fixed comfortable height, user-growable. `font-family` because
a bare textarea falls back to the UA monospace default, unlike input. */
font-family: inherit;
line-height: 1.45;
min-height: 76px;
resize: vertical;
}
.confirm__input:focus {
outline: none;
border-color: var(--accent);
}
.confirm__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
/* The app's default button. `.announce-banner__action` shares the recipe rather than restating it:
a banner offering an ordinary next step ("Go there") is not asking for the accent treatment
`.announce-banner__btn` gives an install or a reload, and two copies of a default button drift. */
.confirm__btn,
.announce-banner__action {
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
padding: 7px 14px;
cursor: pointer;
}
.confirm__btn:hover,
.announce-banner__action:hover {
background: rgba(var(--tint-rgb), 0.1);
}
.announce-banner__action {
flex: none;
}
.confirm__btn.danger {
background: var(--danger);
border-color: transparent;
color: #fff;
font-weight: 600;
}
.confirm__btn.danger:hover {
background: #ff5e54;
}
.confirm__btn.primary {
background: var(--accent);
border-color: transparent;
color: #fff;
font-weight: 600;
}
/* ---- Web folder/file picker (Server Edition; reuses the .confirm shell) ---- */
.confirm.dir-picker {
width: 460px;
display: flex;
flex-direction: column;
gap: 12px;
}
.dir-picker__head {
display: flex;
align-items: center;
gap: 8px;
}
.dir-picker__up {
flex: none;
width: 28px;
height: 28px;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 14px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.dir-picker__up:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
}
.dir-picker__up:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.dir-picker__path {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
direction: rtl;
text-align: left;
font-size: 12px;
color: var(--muted);
font-family: monospace;
}
.dir-picker__new {
flex: none;
padding: 0 10px;
height: 28px;
background: var(--panel-header);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 12px;
white-space: nowrap;
cursor: pointer;
}
.dir-picker__new:hover {
background: rgba(var(--tint-rgb), 0.1);
}
.dir-picker__create {
display: flex;
align-items: center;
gap: 8px;
}
.dir-picker__input {
flex: 1;
min-width: 0;
height: 28px;
padding: 0 9px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 13px;
}
.dir-picker__input:focus {
outline: none;
border-color: var(--accent);
}
/* Match the inline Create/Cancel buttons to the name input's height. */
.dir-picker__create .confirm__btn {
flex: none;
height: 28px;
padding: 0 12px;
font-size: 12px;
}
.dir-picker__create .confirm__btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.dir-picker__error {
font-size: 12px;
color: var(--danger);
word-break: break-all;
}
.dir-picker__list {
height: 300px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(var(--tint-rgb), 0.03);
padding: 4px;
}
.dir-picker__empty {
padding: 20px;
text-align: center;
font-size: 12px;
color: var(--muted);
}
.dir-picker__row {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 7px 9px;
background: transparent;
border: none;
border-radius: 7px;
color: var(--text);
font-size: 13px;
text-align: left;
cursor: pointer;
}
.dir-picker__row:hover {
background: rgba(var(--tint-rgb), 0.08);
}
.dir-picker__icon {
flex: none;
font-size: 13px;
}
.dir-picker__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ---- Shortcuts panel ---- */
.sc-overlay {
position: fixed;
inset: 0;
z-index: 62;
display: flex;
align-items: center;
justify-content: center;
background: rgba(10, 12, 18, 0.5);
}
/* --- Debug log panel (issue #78) — same overlay family as the shortcuts panel ------------- */
.logpanel {
width: 860px;
max-width: 94vw;
height: 70vh;
display: flex;
flex-direction: column;
background: rgba(var(--menu-rgb), 0.99);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 24px 64px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
overflow: hidden;
}
.logpanel__head {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-bottom: 1px solid var(--border);
}
.logpanel__head h2 {
margin: 0 6px 0 0;
font-size: 14px;
color: var(--text-strong);
white-space: nowrap;
}
.logpanel__chips {
display: flex;
gap: 4px;
}
.logpanel__chip {
border: 1px solid var(--border);
background: transparent;
color: var(--muted);
border-radius: 999px;
font-size: 11px;
padding: 2px 9px;
cursor: pointer;
}
.logpanel__chip.is-on {
background: rgba(var(--tint-rgb), 0.08);
color: var(--text);
}
.logpanel__chip--warn.is-on {
color: var(--warn);
}
.logpanel__chip--error.is-on {
color: var(--danger);
}
.logpanel__filter {
flex: 1;
min-width: 80px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 12px;
padding: 4px 9px;
}
.logpanel__filter:focus {
outline: none;
border-color: var(--accent);
}
.logpanel__act {
border: 1px solid var(--border);
background: transparent;
color: var(--text);
border-radius: 8px;
font-size: 12px;
padding: 4px 10px;
cursor: pointer;
}
.logpanel__act:hover {
background: rgba(var(--tint-rgb), 0.08);
}
.logpanel__feed {
flex: 1;
overflow-y: auto;
padding: 8px 0;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11.5px;
line-height: 1.5;
}
.logpanel__row {
display: flex;
gap: 8px;
padding: 0 14px;
align-items: baseline;
}
.logpanel__row:hover {
background: rgba(var(--tint-rgb), 0.04);
}
.logpanel__time {
color: var(--muted-2);
flex: none;
}
.logpanel__level {
flex: none;
width: 42px;
text-transform: uppercase;
font-size: 10px;
color: var(--muted);
}
.logpanel__level--warn {
color: var(--warn);
}
.logpanel__level--error {
color: var(--danger);
}
.logpanel__tag {
color: var(--accent);
flex: none;
}
.logpanel__msg {
color: var(--text);
white-space: pre-wrap;
word-break: break-word;
min-width: 0;
}
.logpanel__row--debug .logpanel__msg {
color: var(--muted);
}
.logpanel__empty {
color: var(--muted);
text-align: center;
padding: 32px 0;
font-family: inherit;
}
.shortcuts {
width: 560px;
max-width: 92vw;
max-height: 80vh;
display: flex;
flex-direction: column;
background: rgba(var(--menu-rgb), 0.99);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 24px 64px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
overflow: hidden;
}
.shortcuts__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 18px;
border-bottom: 1px solid var(--border);
}
.shortcuts__head h2 {
margin: 0;
font-size: 15px;
}
.shortcuts__body {
overflow-y: auto;
padding: 8px 18px 20px;
column-count: 2;
column-gap: 28px;
}
.shortcuts__body section {
break-inside: avoid;
padding: 12px 0 4px;
}
.shortcuts__body h3 {
margin: 0 0 8px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--muted);
}
.shortcut-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 5px 0;
font-size: 13px;
}
.shortcuts__note {
margin: 8px 0 0;
font-size: 12px;
line-height: 1.5;
color: var(--muted);
}
.shortcut-label {
color: var(--text);
}
.shortcut-keys {
display: flex;
gap: 3px;
flex-shrink: 0;
}
/* Separator between two chords that BOTH fire the same command (Delete / Backspace,
Ctrl+Shift+C / Ctrl+Insert) — they are alternatives, not a sequence. */
.shortcut-or {
align-self: center;
font-size: 10px;
color: var(--muted);
padding: 0 1px;
}
/* Footer route into Settings → Keyboard Shortcuts: the panel shows what is BOUND, that section
shows the whole remappable pool (and the commands that ship without a chord). */
.shortcuts__foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 18px;
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--muted);
}
.shortcuts__customize {
flex-shrink: 0;
border: 1px solid var(--border);
border-radius: 7px;
background: transparent;
color: var(--text);
padding: 4px 10px;
font-size: 12px;
cursor: pointer;
}
.shortcuts__customize:hover {
background: rgba(var(--tint-rgb), 0.08);
}
/* ---- Command palette ---- */
.palette-overlay {
position: fixed;
inset: 0;
z-index: 60;
display: flex;
justify-content: center;
align-items: flex-start;
padding-top: 12vh;
background: rgba(10, 12, 18, 0.45);
}
.palette {
width: 560px;
max-width: 90vw;
max-height: 60vh;
display: flex;
flex-direction: column;
background: rgba(var(--menu-rgb), 0.99);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 24px 64px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
overflow: hidden;
}
.palette__input {
background: transparent;
border: none;
border-bottom: 1px solid var(--border);
color: var(--text);
font-size: 15px;
padding: 14px 16px;
outline: none;
}
.palette__list {
overflow-y: auto;
padding: 6px;
}
.palette__item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 9px 12px;
background: transparent;
border: none;
border-radius: 8px;
color: var(--text);
font-size: 13px;
text-align: left;
cursor: pointer;
}
.palette__item.active {
background: var(--panel-header);
}
.palette__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--muted);
}
.palette__hint {
margin-left: auto;
color: var(--muted);
font-size: 11px;
}
.palette__secondary {
margin-left: 8px;
padding: 1px 6px;
border-radius: 4px;
color: var(--muted);
flex-shrink: 0;
}
.palette__secondary:hover {
background: color-mix(in srgb, var(--accent) 18%, transparent);
color: var(--accent-text);
}
.palette__section {
padding: 8px 12px 2px;
color: var(--muted-2);
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.palette__empty {
padding: 16px;
color: var(--muted);
font-size: 13px;
text-align: center;
}
/* ---- Group frame node ---- */
/* Neutralize React Flow's built-in group-node styling (a ~25% white fill, border, and
selection ring) — our .group-node draws the whole frame itself. */
.react-flow__node-group {
background-color: transparent;
border: none;
border-radius: 0;
padding: 0;
box-shadow: none;
}
.react-flow__node-group.selectable:hover,
.react-flow__node-group.selectable.selected,
.react-flow__node-group.selectable:focus,
.react-flow__node-group.selectable:focus-visible {
box-shadow: none;
}
.group-node {
width: 100%;
height: 100%;
border: 1.5px dashed;
border-radius: 14px;
box-sizing: border-box;
}
/* A frame is a background CONTAINER, not a giant drag target. Its body passes pointer input
through to React Flow's pane (pan / rubber-band select), and — since frames nest — an outer
frame no longer swallows the clicks meant for a frame drawn inside it. The label pill, the
actions and the resize handles explicitly opt back in; the pill is also the node's
`dragHandle`, so dragging a frame means dragging its label. */
.react-flow__node-group {
pointer-events: none !important;
}
.react-flow__node-group .group-node__label,
.react-flow__node-group .group-node__actions,
.react-flow__node-group .react-flow__resize-control {
pointer-events: auto;
}
/* ---- Resize grab zones -------------------------------------------------------------------------
React Flow's resize lines are 1px and its corner handles 5px, so the resize cursor appeared only
on a hairline. Each control gets an invisible ::before hit region (the cursor and the press both
belong to the control); the visible line and handle are unchanged. HIG pointing-devices.md ›
"Add padding around interactive elements to create comfortable hit regions" — 12pt for an element
with a visible edge — and accessibility.md: desktop targets 20x20pt minimum, which the corners get.
- Edges: 12 screen px, biased OUTWARD (8 outside the border, 4 inside — and never more than 6
flow px inside), so the band takes as little as possible from header buttons and text.
- Corners: 20x20 screen px (14 outside, 6 inside, inner capped at 6 flow px), drawn after the lines so a corner wins where
they overlap, and covering the whole band intersection, so sliding along the border never
drops to the default cursor (HIG: contiguous hit regions).
- Sized in SCREEN px through `--nt-zoom` (lib/canvasZoomVar.ts); below zoom 0.3 the zone shrinks
with the node instead of swallowing a tiny one.
Exists only while the resizer renders, i.e. while the node is selected. */
:root {
--nt-zoom: 1;
}
.react-flow__resize-control {
--rz-k: max(var(--nt-zoom), 0.3);
--rz-out: calc(8px / var(--rz-k));
/* The INNER part is also capped in flow px (6): zoomed out, 4 screen px is a big slice of a
small node's header — its drag area and its close/maximize buttons. */
--rz-in: min(calc(4px / var(--rz-k)), 6px);
/* Corner handles are already counter-scaled by React Flow (`scale: max(1/zoom, 1)`), so below
zoom 1 their flow px ARE screen px; only above it does the size need dividing. */
--rc-k: max(var(--nt-zoom), 1);
--rc-out: calc(14px / var(--rc-k));
/* Inner part: 6 screen px, at most 6 flow px (below zoom 1 the handle's own scale is 1/zoom). */
--rc-in: calc(6px * min(var(--nt-zoom), 1) / var(--rc-k));
}
/* The node's resize controls are a SIBLING of its root (so a glass root's backdrop-filter cannot
clip them), which puts the later-painted root over their inner half. Lift them above the root
and the terminal's hover guard (z 2); the kanban half-pill stays above them. */
.react-flow__node > .react-flow__resize-control {
z-index: 3;
}
.react-flow__resize-control::before {
content: '';
position: absolute;
}
.react-flow__resize-control.line.left::before {
top: 0;
bottom: 0;
left: calc(-1 * var(--rz-out));
right: calc(-1 * var(--rz-in));
}
.react-flow__resize-control.line.right::before {
top: 0;
bottom: 0;
right: calc(-1 * var(--rz-out));
left: calc(-1 * var(--rz-in));
}
.react-flow__resize-control.line.top::before {
left: 0;
right: 0;
top: calc(-1 * var(--rz-out));
bottom: calc(-1 * var(--rz-in));
}
.react-flow__resize-control.line.bottom::before {
left: 0;
right: 0;
bottom: calc(-1 * var(--rz-out));
top: calc(-1 * var(--rz-in));
}
/* A handle's padding box is 5px, centred on the corner: offsets are from that centre. */
.react-flow__resize-control.handle::before {
width: calc(var(--rc-out) + var(--rc-in));
height: calc(var(--rc-out) + var(--rc-in));
}
.react-flow__resize-control.handle.left::before {
left: calc(2.5px - var(--rc-out));
}
.react-flow__resize-control.handle.right::before {
left: calc(2.5px - var(--rc-in));
}
.react-flow__resize-control.handle.top::before {
top: calc(2.5px - var(--rc-out));
}
.react-flow__resize-control.handle.bottom::before {
top: calc(2.5px - var(--rc-in));
}
/* The paint-only copies (`.nt-resize-ghost`) carry no grab zone. */
.react-flow__resize-control.nt-resize-ghost::before {
content: none;
}
/* Bound to a git worktree: a checkout, not a loose grouping. Solid, thicker border (the tint is
bumped inline from the group's own data.color — no separate palette) so it reads as bound from
across the canvas, where the label pill is too small to parse. */
.group-node--worktree {
border-style: solid;
border-width: 2px;
}
/* The worktree directory is gone from disk: drop the hue (GroupNode emits no inline border/background
for this case), go muted/warning. */
.group-node--worktree-stale {
border-style: dashed;
border-color: color-mix(in srgb, var(--state-warning) 50%, transparent);
background: color-mix(in srgb, var(--state-warning) 5%, transparent);
}
/* Floating label pill, sitting on the top border (opaque so it "cuts" the dashes).
--group-label-boost (set per viewport frame in Canvas.onMove) counter-scales the pill
when the canvas is zoomed out, so group names stay readable/clickable from afar. */
.group-node__label {
position: absolute;
top: 0;
left: 16px;
transform: translateY(-50%) scale(var(--group-label-boost, 1));
transform-origin: 0 50%;
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 90%;
padding: 5px 14px;
background: var(--surface-sunken);
border: 1px solid var(--border);
border-radius: 999px;
user-select: none;
cursor: grab;
}
.group-node__label:active {
cursor: grabbing;
}
/* Zoomed far out (boost ≥ 2, toggled in Canvas.setGroupLabelBoost), the pill keeps only the
dot + name: the worktree chip (branch + counters + Merge/Unbind) is unreadable at that
scale and its width is what made counter-scaled pills swirl over neighboring frames. */
.group-labels-compact .group-node__wt {
display: none;
}
/* A tooltip wraps its trigger in a span, so inside the pill, the worktree chip and the actions row
the WRAPPER is the flex item, not the button. Without this the fixed-size buttons would shrink
under the 180px name input instead of holding their 11px / 22px boxes. */
.group-node__label > .tooltip-trigger,
.group-node__wt > .tooltip-trigger,
.group-node__actions > .tooltip-trigger {
flex: none;
}
.group-node__dot {
width: 11px;
height: 11px;
flex: none;
padding: 0;
border: none;
border-radius: 50%;
cursor: pointer;
}
.group-node__name {
width: 180px;
background: transparent;
border: none;
outline: none;
color: var(--text);
font-size: 16px;
font-weight: 600;
cursor: text;
}
/* Worktree binding chip — branch name + Unbind, shown in the label pill when bound. */
.group-node__wt {
display: inline-flex;
align-items: center;
gap: 6px;
flex: none;
}
.group-node__branch {
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 600;
color: var(--accent);
}
/* The worktree is gone from disk — muted/warning, not colorful. */
.group-node__branch--stale {
color: var(--warn);
cursor: help;
}
/* Live status suffixes: dirty / ahead / behind, quieter than the branch name itself. */
.group-node__wt-dirty,
.group-node__wt-ahead,
.group-node__wt-behind {
font-style: normal;
font-weight: 500;
color: var(--muted);
}
.group-node__wt-dirty {
color: var(--warn);
}
/* Project setup/archive script state for this checkout — same quiet weight as the status
suffixes above; only a failure earns a color. */
.group-node__setup {
font-size: 12px;
font-weight: 600;
color: var(--muted);
cursor: help;
}
.group-node__setup--done {
color: var(--success);
}
.group-node__setup--failed,
.group-node__setup--cancelled {
color: var(--warn);
}
/* A failed SETUP is a button (re-run), not a label — it is the only path that can release the
nodes the failure left armed. Styled as the chip it replaces, plus a click affordance. */
button.group-node__setup {
background: var(--surface-sunken);
border: 1px solid var(--border);
border-radius: 7px;
padding: 2px 8px;
cursor: pointer;
}
button.group-node__setup:hover:not(:disabled) {
background: var(--panel-header);
}
/* A launch is already in flight (or running) — the click would only earn a `busy` refusal. */
button.group-node__setup:disabled {
cursor: default;
opacity: 0.75;
}
.group-node__wt-btn {
background: var(--surface-sunken);
border: 1px solid var(--border);
color: var(--muted);
border-radius: 7px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
}
.group-node__wt-btn:hover {
background: var(--panel-header);
color: var(--text);
}
/* Ungroup, top-right, revealed on hover or when selected. One action, so no gap: the frame's
× called the same handler under a second name and was removed. */
.group-node__actions {
position: absolute;
top: 0;
right: 14px;
transform: translateY(-50%);
display: flex;
align-items: center;
opacity: 0;
transition: opacity 0.12s;
}
.group-node:hover .group-node__actions,
.group-node.selected .group-node__actions {
opacity: 1;
}
.group-node__ungroup {
background: var(--surface-sunken);
border: 1px solid var(--border);
color: var(--muted);
border-radius: 7px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
}
.group-node__ungroup svg {
width: 14px;
height: 14px;
}
.group-node__ungroup:hover {
background: var(--panel-header);
color: var(--text);
}
/* Selected outline for ephemeral subagent/loop nodes. */
.react-flow__node.selected .subagent-node,
.react-flow__node.selected .loop-node {
border-color: var(--accent);
box-shadow: 0 0 0 1.5px var(--accent), 0 6px 20px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
}
/* ---- Subagent (ephemeral, hook-driven) node ---- */
.subagent-node {
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
padding: 10px 12px;
background: var(--surface-deep);
border: 1px solid var(--border);
border-left: 3px solid #d97757;
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
font-size: 12px;
color: var(--text);
overflow: hidden;
}
.subagent-node__expand {
width: 16px;
height: 16px;
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: transparent;
border: none;
border-radius: 4px;
color: var(--muted);
font-size: 10px;
cursor: pointer;
}
.subagent-node__expand:hover {
background: rgba(var(--tint-rgb), 0.08);
color: var(--text);
}
.subagent-node__term {
margin-top: 8px;
flex: 1;
min-height: 0;
padding: 10px;
border-radius: 8px;
background: var(--surface-black);
border: 1px solid var(--border);
overflow: auto;
font-family: 'SF Mono', Menlo, Monaco, monospace;
font-size: 11.5px;
line-height: 1.55;
color: #d6d6d6;
white-space: pre-wrap;
word-break: break-word;
/* The transcript is TEXT, not a terminal emulator: drag-select + copy must work (the node
root's canvas-drag suppression must not swallow it — keep `nowheel` for scroll, but the
selection below is what makes the content usable). */
user-select: text;
-webkit-user-select: text;
cursor: text;
}
.subagent-node__head {
display: flex;
align-items: center;
gap: 7px;
}
.subagent-node__dot {
width: 8px;
height: 8px;
flex: none;
border-radius: 50%;
background: #d97757;
}
/* Bounded like every status indicator (issue #1454): looping, these dots held a FOCUSED window's
frame loop open for as long as a subagent worked. The card already says "working" in text with
a running timer; four pulses mark the change. nt-pulse ends at the dot's own look. */
.subagent-node.working .subagent-node__dot {
animation: nt-pulse 1.1s ease-in-out 4;
animation-play-state: var(--nt-anim-state);
}
.subagent-node.done .subagent-node__dot {
background: var(--success);
}
.subagent-node__type {
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.subagent-node__state {
margin-left: auto;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.05em;
color: var(--muted);
}
.subagent-node__task {
margin-top: 6px;
color: var(--muted);
font-size: 11.5px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.subagent-node__meta {
margin-top: 6px;
font-size: 10.5px;
color: var(--muted);
font-variant-numeric: tabular-nums;
letter-spacing: 0.01em;
}
.subagent-node__result {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--border);
max-height: 220px;
overflow: auto;
font-size: 11.5px;
line-height: 1.5;
color: var(--text);
white-space: pre-wrap;
word-break: break-word;
}
.subagent-node__result-task {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
color: var(--muted);
}
/* ---- Loop (ephemeral, hook-driven) node ---- */
.loop-node {
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
padding: 10px 12px;
background: var(--surface-deep);
border: 1px solid var(--border);
border-left: 3px solid var(--state-automation);
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
font-size: 12px;
color: var(--text);
overflow: hidden;
}
.loop-node__expand {
width: 16px;
height: 16px;
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: transparent;
border: none;
border-radius: 4px;
color: var(--muted);
font-size: 10px;
cursor: pointer;
}
.loop-node__expand:hover {
background: rgba(var(--tint-rgb), 0.08);
color: var(--text);
}
.loop-node__head {
display: flex;
align-items: center;
gap: 7px;
}
.loop-node__dot {
width: 8px;
height: 8px;
flex: none;
border-radius: 50%;
background: var(--state-automation);
}
/* Bounded for the same reason as the subagent dot above (issue #1454). */
.loop-node.working .loop-node__dot {
animation: nt-pulse 1.1s ease-in-out 4;
animation-play-state: var(--nt-anim-state);
}
.loop-node__type {
font-weight: 600;
}
.loop-node__count {
font-size: 10.5px;
font-weight: 700;
color: var(--state-automation);
font-variant-numeric: tabular-nums;
}
.loop-node__sched {
font-size: 10px;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.loop-node__play {
margin-left: auto;
flex: none;
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--state-automation) 18%, transparent);
border: 1px solid var(--state-automation);
border-radius: 6px;
color: var(--state-automation);
font-size: 10px;
cursor: pointer;
}
.loop-node__play:hover {
background: color-mix(in srgb, var(--state-automation) 32%, transparent);
}
/* Dismiss the card (job itself is untouched). Sits at the right edge; when Play is present
it follows Play with a small gap instead of both auto-margins splitting the space. */
.loop-node__close {
margin-left: auto;
flex: none;
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--muted);
font-size: 13px;
cursor: pointer;
}
.loop-node__play + .loop-node__close {
margin-left: 6px;
}
.loop-node__close:hover {
background: rgba(var(--tint-rgb), 0.08);
color: var(--text);
}
.loop-node__task {
margin-top: 6px;
color: var(--muted);
font-size: 11.5px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.loop-node__items {
margin-top: 8px;
flex: 1;
min-height: 0;
padding-top: 8px;
border-top: 1px solid var(--border);
overflow: auto;
font-size: 11.5px;
line-height: 1.5;
}
.loop-node__task-full {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
color: var(--muted);
}
.loop-node__item {
margin-bottom: 6px;
word-break: break-word;
}
.loop-node__item-n {
color: var(--state-automation);
font-weight: 700;
}
.loop-node__empty {
color: var(--muted);
}
/* ---- Canvas controls (bottom-left) ----
Same plate and --float-gap offset as the other floating chrome; the library's own glyphs are
replaced in Canvas.tsx, so these rules only size and color our 16px icons.
The plate, the blur and the border sit on the COLUMN, matching .dock: with a background on each
button instead, the four read as four stacked chips and the border around them had nothing to
enclose. */
.react-flow__controls {
margin: var(--float-gap) !important;
background: rgba(var(--menu-rgb), 0.92);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
/* Each button wraps in a Tooltip span, which must not break the library's vertical stack. */
.react-flow__controls .tooltip-trigger {
display: block;
}
.react-flow__controls-button {
width: calc(var(--controls-w) - 2px);
height: calc(var(--controls-w) - 2px);
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: var(--text);
}
/* ONE separator, where there used to be a rule under every button. Zoom in, zoom out and fit view
are all camera moves; the lock is a mode toggle, and it is the only one that changes what the
other three are allowed to do. The lock already carries its own class, so this needs no
nth-child over the Tooltip spans that wrap each button. */
.react-flow__controls-button.canvas-lock-btn {
border-top: 1px solid var(--border);
}
.react-flow__controls-button svg {
width: 15px;
height: 15px;
max-width: none;
max-height: none;
fill: none;
stroke: currentColor;
}
.react-flow__controls-button:hover {
background: var(--panel-header);
}
/* Canvas lock toggle. The padlock strokes with currentColor, so the locked state tints via
`color`. */
.react-flow__controls-button.canvas-lock-btn.locked {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 14%, transparent);
}
/* ---- Minimap ---- */
.react-flow__minimap.minimap {
/* Monaco also mounts a .minimap even when disabled. Styling that zero-width element
adds a vertical border through the editor and, without isolation, its preview (#834). */
/* React Flow places its panels with a 15px margin; the app's overlays all sit one --float-gap
from their edge, and the minimap and the controls are the two the library positions. */
margin: var(--float-gap) !important;
background: rgba(var(--menu-rgb), 0.85) !important;
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
/* Minimize control (canvas/MinimapDock.tsx). The dock takes over the placement React Flow's Panel
gave the map — one --float-gap in from the bottom-right — and turns the map's own Panel into an
in-flow child, so the dock's box, and with it the hover area, is exactly the map: no dead band
of margin over the canvas. */
.minimap-dock {
position: absolute;
right: var(--float-gap);
bottom: var(--float-gap);
z-index: 5;
}
.minimap-dock > .react-flow__minimap.minimap {
position: relative;
margin: 0 !important;
}
/* The "−" sits inside the map's top-left corner and shows only while the map is hovered or the
button has keyboard focus. A solid panel fill in every appearance: it lies over the map's node
rectangles, and a translucent one there would be a button over noise. */
.minimap-dock > .tooltip-trigger {
position: absolute;
top: 6px;
left: 6px;
z-index: 6;
}
.minimap-dock__minimize {
width: 20px;
height: 20px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
cursor: pointer;
opacity: 0;
transition: opacity 0.12s ease;
}
.minimap-dock__minimize svg {
width: 12px;
height: 12px;
}
.minimap-dock:hover .minimap-dock__minimize,
.minimap-dock__minimize:focus-visible {
opacity: 1;
}
.minimap-dock__minimize:hover {
background: var(--panel-header);
}
/* No hover on a touch screen (the Server Edition on a tablet): keep the control visible there, or
the map could never be minimized. */
@media (hover: none) {
.minimap-dock__minimize {
opacity: 1;
}
}
/* The minimized map: one button in the corner the map occupied, on the same plate as the other
floating controls. */
.minimap-restore {
position: absolute;
right: var(--float-gap);
bottom: var(--float-gap);
z-index: 5;
}
.minimap-restore button {
width: 34px;
height: 34px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(var(--menu-rgb), 0.92);
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text);
cursor: pointer;
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.3 * var(--shadow-k)));
}
.minimap-restore button:hover {
background: var(--panel-header);
}
.minimap-restore button svg {
width: 18px;
height: 18px;
}
/* Minimap-scale status glow (amber working / red needs-you / clay unread in the default look; the
state roles under Liquid Glass — see the --mm-* tokens). A static drop-shadow provides the halo; only
stroke-opacity animates (cheap on tiny svg rects), cadence matching each canvas glow. */
.minimap .mm-working,
.minimap .mm-attention,
.minimap .mm-unread {
stroke-width: 4px;
}
.minimap .mm-working {
filter: drop-shadow(0 0 3px color-mix(in srgb, var(--mm-working) 80%, transparent));
animation: mm-pulse-soft 2.6s ease-in-out 4;
animation-play-state: var(--nt-anim-state);
}
.minimap .mm-attention {
filter: drop-shadow(0 0 3px color-mix(in srgb, var(--mm-attention) 90%, transparent));
animation: mm-pulse 1.8s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
/* Unread = clay, the agent-hook colour (RUNNING badge, working glow). Its own keyframes: at
minimap scale a node is a few pixels tall, so opacity alone reads as a faint flicker — the
stroke THICKENS on the beat as well, which is what makes it findable on a busy map. */
.minimap .mm-unread {
filter: drop-shadow(0 0 4px color-mix(in srgb, var(--mm-unread) 95%, transparent));
animation: mm-pulse-unread 1.6s ease-in-out 4;
animation-play-state: var(--nt-anim-state);
}
/* Working and unread beat 4 times and then REST at full stroke (the drop-shadow halo is static),
mirroring their bounded canvas glows: an infinite beat repainted the minimap's filtered SVG every
frame for as long as a node stayed unread. Needs-you keeps beating, like its canvas glow. */
@keyframes mm-pulse-unread {
0%,
100% {
stroke-opacity: 1;
stroke-width: 4px;
}
40% {
stroke-opacity: 0.3;
stroke-width: 3px;
}
75% {
stroke-opacity: 1;
stroke-width: 6px;
}
}
@keyframes mm-pulse {
0%,
100% {
stroke-opacity: 0.25;
}
50% {
stroke-opacity: 1;
}
}
/* Working never blinks off — it breathes, mirroring the canvas glow. */
@keyframes mm-pulse-soft {
0%,
100% {
stroke-opacity: 1;
}
50% {
stroke-opacity: 0.45;
}
}
/* ---- Bottom-left pill cluster (usage + system resources) ----
ONE flex row, because neither pill can hard-code an offset for the other: the usage pill's width
changes with every number it prints, and it is absent altogether for a user with no agent
subscription at all.
Deliberately carries NO z-index: an absolutely positioned box with `z-index: auto` establishes no
stacking context, so each pill's own z-index (5 / 13 / 26 / 60) keeps competing with the sessions
sidebar and the kanban overlay exactly as it did when each was anchored on its own. Do not add
z-index, transform, filter or opacity here — any of them would trap both pills below the sidebar.
The left offset clears the controls column, which shares this corner: --controls-w plus the 12px
the other chrome already uses between two adjacent clusters (see .resume-card). */
.canvas-pills {
width: max-content;
position: absolute;
left: calc(var(--float-gap) + var(--controls-w) + 12px);
bottom: var(--float-gap);
display: flex;
align-items: center;
gap: 8px;
}
/* ---- Resume-where-you-left-off card (breadcrumb trail, once per project activation) ---- */
/* Anchored in .flow-wrap under the controls cluster (one --float-gap below the tab bar, 34px tall)
rather than beside it, so the two never overlap; the left side is the sessions sidebar's.
z-index 11 sits above the canvas and BELOW the sidebar (12) — a card the user has not dismissed
must never cover a panel they deliberately opened — and below the kanban overlay (25), where the
canvas and everything on it is correctly hidden. */
.resume-card {
position: absolute;
top: calc(var(--tabbar-h) + var(--float-gap) + 34px + 12px);
right: var(--float-gap);
z-index: 11;
width: 260px;
max-width: calc(100vw - 28px);
padding: 8px 8px 6px;
background: rgba(var(--menu-rgb), 0.96);
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
border-radius: 10px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
font-size: 12.5px;
color: var(--text);
}
.resume-card__header {
display: flex;
align-items: center;
gap: 8px;
padding: 0 2px 6px 4px;
}
.resume-card__title {
flex: 1;
min-width: 0;
font-weight: 600;
color: var(--muted);
}
.resume-card__close {
flex: none;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
font-size: 11px;
cursor: pointer;
}
.resume-card__close:hover {
background: var(--panel-header);
color: var(--text);
}
.resume-card__rows {
display: flex;
flex-direction: column;
gap: 2px;
}
.resume-card__row {
display: flex;
align-items: baseline;
gap: 8px;
padding: 5px 6px;
background: transparent;
border: none;
border-radius: 7px;
color: var(--text);
font-size: 12.5px;
text-align: left;
cursor: pointer;
}
.resume-card__row:hover {
background: var(--panel-header);
}
.resume-card__note {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.resume-card__time {
flex: none;
color: var(--muted-2);
font-size: 11px;
}
/* ---- Claude usage indicator (in the bottom-left cluster) ---- */
.usage-indicator {
/* Positioned — so the z-index rules below still apply and the popover anchors here — but PLACED
by the cluster above rather than by its own left/bottom. */
position: relative;
z-index: 5;
display: flex;
align-items: center;
gap: 4px;
}
/* Only summary text may overflow: refresh and the usage opener remain reachable. Never clip
the indicator/row itself, since the popover must escape it. */
.canvas-pills > .sysres-indicator { flex: 0 0 auto; }
.usage-indicator { min-width: 0; }
.usage-pill { min-width: 0; }
.usage-pill__icon, .usage-refresh { flex: 0 0 auto; }
.usage-pill__summary {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-pill__summary > span + span { margin-left: 6px; }
/* Liquid Glass: symmetric around the dot — it hugged the next token ("87% 5h ·98% wk", visual QA
L2). Gated so the default look stays byte-identical. */
:root[data-nt-glass='on'] .usage-pill__sep { margin-right: 6px; }
/* Liquid Glass: when the pill runs out of room it drops whole trailing segments ("100% Grok"), never
characters ("100% Fable…", visual QA round 2, N8) — a one-line wrapping row whose overflow is
clipped. Every provider stays in the popover. */
:root[data-nt-glass='on'] .usage-pill__summary {
display: flex;
flex-wrap: wrap;
align-items: center;
height: 16px;
line-height: 16px;
}
:root[data-nt-glass='on'] .usage-pill__summary > * {
flex: 0 0 auto;
}
/* …except the FIRST text segment: it always keeps line 1 (capped to what is left beside the 42px
minibar and its 6px gap, and the error mark) and elides there, so a too-narrow window never
leaves the bar alone. The error mark leads, so it is never the segment that wraps away (code
review 5 #7). */
:root[data-nt-glass='on'] .usage-pill__summary > :is(.usage-pill__minibar + span, :first-child:not(.usage-pill__minibar)) {
flex: 0 1 auto;
min-width: 0;
max-width: calc(100% - 48px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
:root[data-nt-glass='on'] .usage-pill__summary:has(> .usage-pill__dim) > .usage-pill__minibar + span {
max-width: calc(100% - 68px);
}
:root[data-nt-glass='on'] .usage-pill__summary > .usage-pill__dim {
order: -1;
margin: 0 6px 0 0;
}
/* While the popover is open, rise above the sessions sidebar (z-index 12) — a tall sidebar
reaches the bottom-left corner and would cover the panel. Closed pill keeps its low layer so
it never draws over the sidebar itself.
This ONLY works because the indicator is mounted OUTSIDE <ReactFlow> (see Canvas.tsx): the
library's wrapper carries inline `z-index: 0`, a stacking context that would trap any inner
z-index below the sidebar no matter its value. */
.usage-indicator:has(.usage-popover) {
z-index: 13;
}
/* Kanban board is an opaque overlay at z 25; while it's open the usage pill must sit ABOVE it
(same layer as the controls cluster) so it stays visible in the board's bottom-left corner. */
.usage-indicator--board {
z-index: 26;
}
.usage-indicator--board:has(.usage-popover) {
z-index: 60; /* over the board + banners, below ConfirmDialog/palette (70) */
}
/* The two pills share one shell so they read as a single control rather than as two widgets that
happen to be adjacent. Grouped rather than duplicated, so tuning one can never drift the other. */
/* SHARED SHELL — both pills. Do not fold pill-specific sizing in here: the system-resource pill's
icon-only collapse lives in its OWN rule below, because putting it here silently shrank the usage
pill to a 26px circle too. */
.usage-pill,
.sysres-pill {
display: inline-flex;
align-items: center;
gap: 6px;
height: 26px;
padding: 0 9px;
border-radius: 13px;
background: rgba(var(--card-rgb), 0.92);
border: 1px solid rgba(var(--tint-rgb), 0.08);
color: var(--text-strong);
font-size: 12px;
font-variant-numeric: tabular-nums;
cursor: pointer;
}
/* Icon-only at rest — this pill ONLY. It is ambient chrome on every canvas, so a permanent
"RAM 15.6 GB / 62.5 GB" is a row of numbers nobody asked for. Overrides the shared shell's
padding/gap; the detail is revealed on hover (and while the panel is open, so the control does
not shrink out from under the cursor that opened it). */
.sysres-pill {
width: 26px;
padding: 0;
gap: 0;
justify-content: center;
transition:
width 140ms ease,
padding 140ms ease,
gap 140ms ease;
}
.usage-pill:hover { background: rgba(44, 44, 46, 0.95); }
.usage-pill__icon { color: #d97757; font-size: 13px; }
.usage-pill__minibar {
display: inline-block;
width: 42px;
height: 6px;
border-radius: 3px;
background: rgba(var(--tint-rgb), 0.14);
overflow: hidden;
}
.usage-pill__minibar-fill { display: block; height: 100%; border-radius: 3px; }
.usage-pill__num,
.sysres-pill__num { color: var(--text-strong); }
.usage-pill__sep,
.sysres-pill__sep { color: rgba(var(--tint-rgb), 0.4); }
/* Non-Claude provider segments read one step quieter than the Claude numbers, so a long pill
still scans as "Claude first, others after" without needing separate icons per provider. */
.usage-pill__provider .usage-pill__num { color: rgba(var(--tint-rgb), 0.75); font-size: 11px; }
/* The managed account the pill describes (the project's "Use for new sessions" default). */
.usage-pill__account {
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.6);
}
.usage-pill__dim,
.sysres-pill__dim { color: rgba(var(--tint-rgb), 0.5); }
.usage-pill__pulse,
.sysres-pill__pulse { animation: usage-pulse 1.2s ease-in-out infinite; animation-play-state: var(--nt-anim-state); }
@keyframes usage-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
/* Expanded: hover, keyboard focus, or an open panel. `width: auto` cannot be transitioned, so the
pill animates padding/gap only and the detail carries the width — enough to read as a reveal
rather than a jump, without a magic max-width that clips a wider number (a 1 TB host prints
more characters than a 16 GB one). */
.sysres-pill:hover,
.sysres-pill:focus-visible,
.sysres-indicator:has(.sessmem-panel) .sysres-pill {
width: auto;
gap: 6px;
padding: 0 9px;
}
/* Present in the DOM at rest (so the accessible name and any assertion still see the number) but
taking no space until the pill expands. */
.sysres-pill__detail {
display: inline-block;
max-width: 0;
overflow: hidden;
white-space: nowrap;
opacity: 0;
transition:
max-width 140ms ease,
opacity 140ms ease;
}
.sysres-pill:hover .sysres-pill__detail,
.sysres-pill:focus-visible .sysres-pill__detail,
.sysres-indicator:has(.sessmem-panel) .sysres-pill__detail {
max-width: 200px;
opacity: 1;
}
.sysres-pill__icon {
display: inline-flex;
color: rgba(var(--tint-rgb), 0.75);
}
/* ---- System-resource pill (RAM of the machine the active project runs on) ----
Shares the usage pill's shell above; only the bits that differ live here. */
.sysres-indicator {
position: relative;
z-index: 5;
display: flex;
align-items: center;
}
/* Kanban board is an opaque overlay at z 25; while it's open this pill must sit ABOVE it (same
layer as the controls cluster), or the board's bottom-left corner swallows it. Mirrors
`.usage-indicator--board`. */
.sysres-indicator--board {
z-index: 26;
}
/* While the session-memory panel is open, rise above the sessions sidebar (z 12) — a tall sidebar
reaches the bottom-left corner and would cover the panel. Exactly the pairing
`.usage-indicator:has(.usage-popover)` uses, and it only works because the cluster is mounted
OUTSIDE <ReactFlow> (whose wrapper's inline `z-index: 0` would trap any inner value). */
.sysres-indicator:has(.sessmem-panel) {
z-index: 13;
}
.sysres-indicator--board:has(.sessmem-panel) {
z-index: 60; /* over the board + banners, below ConfirmDialog/palette (70) */
}
/* Not a copy of `.usage-pill:hover`: that rule's literal is a dark-theme colour, which would read
as a black smear on the light theme. An ink overlay over the same card surface lifts it in BOTH
themes (the tint token flips with the theme). */
.sysres-pill:hover {
background:
linear-gradient(rgba(var(--tint-rgb), 0.08), rgba(var(--tint-rgb), 0.08)),
rgba(var(--card-rgb), 0.92);
}
.usage-refresh {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 12px;
background: rgba(var(--card-rgb), 0.92);
border: 1px solid rgba(var(--tint-rgb), 0.08);
color: rgba(var(--tint-rgb), 0.7);
cursor: pointer;
}
.usage-refresh:hover { color: var(--text-strong); }
.usage-refresh:disabled { opacity: 0.4; cursor: default; }
/* Smaller than the shared 16px icon: these two live in a dense pill row and replaced a 13px
glyph, so the row's height must not change. */
.usage-refresh svg,
.sessmem-panel__refresh svg {
width: 14px;
height: 14px;
}
.usage-refresh.spin svg { animation: usage-spin 0.9s linear infinite; animation-play-state: var(--nt-anim-state); }
@keyframes usage-spin { to { transform: rotate(360deg); } }
.usage-popover {
position: absolute;
bottom: 34px;
left: 0;
width: 280px;
padding: 14px 16px;
border-radius: 12px;
background: rgba(var(--popover-rgb), 0.98);
border: 1px solid rgba(var(--tint-rgb), 0.1);
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
color: var(--text-strong);
/* Issue #503: each account is a tall block (label + Session/Weekly/Opus meters), so past
about four accounts the panel grew off the TOP of the window — the first account's header
and meter were clipped with no way to reach them. Capped to the space between the pill
(bottom: 34px) and the tab bar (`--tabbar-h` at z 30, which paints over this panel in canvas
mode), with the blocks scrolling inside __body while the heading and footer action stay put. */
max-height: calc(100vh - var(--tabbar-h) - 34px - 8px);
display: flex;
flex-direction: column;
}
.usage-popover__body {
/* Every account is rendered — the list SCROLLS rather than truncating. A cap would have to
say so, and there is no honest way to say "and 3 accounts you cannot see". */
overflow-y: auto;
overscroll-behavior: contain;
/* Without this a flex child refuses to shrink below its content height and the max-height
above would do nothing. */
min-height: 0;
}
.usage-popover__head { margin-bottom: 12px; flex: none; }
.usage-popover__title { display: block; font-size: 15px; font-weight: 600; }
.usage-popover__ago { font-size: 12px; color: rgba(var(--tint-rgb), 0.5); }
.usage-popover__empty { font-size: 13px; color: rgba(var(--tint-rgb), 0.5); }
/* Under bars kept through a failed read (holdLastGood): why they are old, and how old. */
.usage-popover__held { font-size: 12px; margin-top: 10px; color: rgba(var(--tint-rgb), 0.5); }
.usage-row { margin-top: 14px; }
.usage-row__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
/* Marks the limit the server says is currently gating the account. */
.usage-row__active { color: var(--accent); font-size: 9px; margin-left: 6px; vertical-align: 2px; }
.usage-bar {
height: 8px;
border-radius: 4px;
background: rgba(var(--tint-rgb), 0.12);
overflow: hidden;
}
.usage-bar__fill { height: 100%; border-radius: 4px; }
.usage-row__meta {
display: flex;
justify-content: space-between;
margin-top: 6px;
font-size: 13px;
color: rgba(var(--tint-rgb), 0.65);
}
.usage-row__hidden-label { display: none; }
.usage-account {
margin-top: 14px;
padding-top: 12px;
border-top: 1px solid rgba(var(--tint-rgb), 0.1);
}
.usage-account__label {
font-size: 12px;
color: rgba(var(--tint-rgb), 0.45);
margin-bottom: 4px;
}
/* Host chip on a remote (SSH) account row — the same email can be signed in on several
machines, so the row has to say WHERE these numbers came from. */
.usage-account__host {
margin-left: 6px;
padding: 1px 5px;
border-radius: 4px;
font-size: 10px;
letter-spacing: 0.02em;
color: rgba(var(--tint-rgb), 0.55);
background: rgba(var(--tint-rgb), 0.08);
vertical-align: middle;
}
/* "Use for new sessions" affordance + current-default chip on an account row (issue #142).
Same chip grammar as __host above; the button reads as quiet text until hovered so the
readout stays a readout. */
.usage-account__default {
margin-left: 6px;
padding: 1px 5px;
border-radius: 4px;
font-size: 10px;
letter-spacing: 0.02em;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
vertical-align: middle;
white-space: nowrap;
}
.usage-account__use {
margin-left: 6px;
padding: 1px 5px;
border-radius: 4px;
border: none;
font-size: 10px;
letter-spacing: 0.02em;
color: rgba(var(--tint-rgb), 0.45);
background: transparent;
cursor: pointer;
vertical-align: middle;
white-space: nowrap;
}
.usage-account__use:hover:not(:disabled) {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* A bulk move in flight: "Moving N sessions…" on its row, every other row's move held. */
.usage-account__use:disabled {
cursor: default;
}
/* The bulk "Move N sessions" control: the picked targets wrap onto their own line under the label. */
.usage-account__move-targets {
display: flex;
flex-wrap: wrap;
gap: 2px 4px;
margin-top: 3px;
}
.usage-account__move-targets .usage-account__use {
margin-left: 0;
}
/* "Switch Claude account…" (issue #420): opens the system-scoped `claude /login` terminal. A
quiet full-width row, styled with the same tint/accent tokens as `.usage-account__use` so it
reads in both themes. It sits INSIDE the Claude / System block it acts on (issue #912) — as a
popover footer it read as the action of whichever provider happened to be listed last. */
.usage-popover__switch {
display: block;
width: 100%;
margin-top: 10px;
padding: 5px 8px;
border: none;
border-radius: 6px;
font-size: 11px;
letter-spacing: 0.02em;
text-align: left;
color: rgba(var(--tint-rgb), 0.55);
background: rgba(var(--tint-rgb), 0.06);
cursor: pointer;
}
.usage-popover__switch:hover {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* ---- Session-memory panel (opened by the system-resource pill) ----
Same surface, border and shadow as `.usage-popover` above — the two panels open from adjacent
pills in the same corner, so anything that made them read as different kinds of thing would be
an accident. Wider, because a row carries a title, a project, a command and a number. */
.sessmem-panel {
position: absolute;
bottom: 34px;
left: 0;
width: 380px;
padding: 12px 14px;
border-radius: 12px;
background: rgba(var(--popover-rgb), 0.98);
border: 1px solid rgba(var(--tint-rgb), 0.1);
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
color: var(--text-strong);
}
.sessmem-panel__head {
display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 10px;
}
.sessmem-panel__title { font-size: 14px; font-weight: 600; }
.sessmem-panel__scope {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.5);
}
.sessmem-panel__total {
font-size: 13px;
font-variant-numeric: tabular-nums;
color: var(--text-strong);
}
/* One voice for all four non-list states (relay / could-not-measure / measuring / nothing here).
They are different SENTENCES, deliberately, but they are the same kind of answer. */
.sessmem-panel__note {
padding: 10px 2px;
font-size: 12px;
line-height: 1.45;
color: rgba(var(--tint-rgb), 0.6);
}
.sessmem-panel__rows {
list-style: none;
margin: 0;
padding: 0;
/* Every row is rendered — the list SCROLLS rather than truncating. A cap would have to say so. */
max-height: 320px;
overflow-y: auto;
}
.sessmem-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
}
.sessmem-row__main {
flex: 1 1 auto;
min-width: 0;
display: flex;
align-items: center;
gap: 7px;
padding: 5px 6px;
border: none;
border-radius: 6px;
background: transparent;
color: inherit;
font-size: 12px;
text-align: left;
cursor: pointer;
}
.sessmem-row__main:hover:not(:disabled) { background: rgba(var(--tint-rgb), 0.08); }
/* An orphan has nowhere to travel to, so the row is inert rather than misleadingly clickable —
but it keeps full contrast: it is still a session the user may want to end. */
.sessmem-row__main:disabled { cursor: default; }
.sessmem-row__dot {
flex: 0 0 auto;
width: 7px;
height: 7px;
border-radius: 50%;
}
.sessmem-row__dot--working {
background: var(--success);
/* Reuse the terminal-header badge pulse rather than a bespoke keyframe. */
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.sessmem-row__dot--attention { background: var(--state-attention); }
.sessmem-row__dot--idle { background: rgba(var(--tint-rgb), 0.3); }
/* Hollow = orphan: there is no node to have a state, and a filled neutral dot would read "idle". */
.sessmem-row__dot--hollow {
background: transparent;
border: 1px solid rgba(var(--tint-rgb), 0.35);
animation: none;
}
.sessmem-row__title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Where this session lives, shown only when it is NOT the project you are looking at — most often
a closed project, whose sessions keep running. */
.sessmem-row__project,
.sessmem-row__orphan {
flex: 0 0 auto;
padding: 1px 5px;
border-radius: 4px;
font-size: 10px;
color: rgba(var(--tint-rgb), 0.55);
background: rgba(var(--tint-rgb), 0.08);
}
.sessmem-row__cmd {
flex: 0 0 auto;
max-width: 90px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.45);
}
.sessmem-row__mb {
flex: 0 0 auto;
font-variant-numeric: tabular-nums;
color: var(--text-strong);
}
/* Pause: the non-destructive reclaim, sharing the kill button's geometry so the two controls line
up, but never its danger colour on hover — this one keeps the session. A disabled offer stays
VISIBLE and dimmed rather than hidden, because it carries the reason in its tooltip. */
.sessmem-row__pause {
flex: 0 0 auto;
width: 20px;
height: 20px;
border: none;
border-radius: 10px;
background: transparent;
color: rgba(var(--tint-rgb), 0.45);
line-height: 1;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.sessmem-row__pause:hover:not(:disabled) {
color: var(--accent);
background: rgba(var(--tint-rgb), 0.08);
}
.sessmem-row__pause:disabled {
opacity: 0.35;
cursor: default;
}
.sessmem-row__kill {
flex: 0 0 auto;
width: 20px;
height: 20px;
border: none;
border-radius: 10px;
background: transparent;
color: rgba(var(--tint-rgb), 0.45);
line-height: 1;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.sessmem-row__kill:hover { color: var(--danger); background: rgba(var(--tint-rgb), 0.08); }
/* The pane's descendants — the agent CLI itself included, since pane_pid is the pane's shell. */
.sessmem-row__kids {
flex: 1 0 100%;
padding: 0 6px 4px 20px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.45);
font-variant-numeric: tabular-nums;
}
/* The attribution line: quieter than a row, above the foot rule, and rendered in EVERY state — a
failed sweep is exactly when a user is most likely to be blaming the wrong process. */
/* The session host's own cost: a quiet, non-interactive line under the rows (Windows only). */
.sessmem-host {
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
padding: 6px 2px 0;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
font-size: 12px;
color: rgba(var(--tint-rgb), 0.6);
}
.sessmem-host__label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sessmem-host__mb {
font-variant-numeric: tabular-nums;
}
.sessmem-panel__attrib {
margin-top: 10px;
font-size: 11px;
line-height: 1.4;
color: rgba(var(--tint-rgb), 0.45);
}
.sessmem-panel__foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid rgba(var(--tint-rgb), 0.1);
font-size: 11px;
color: rgba(var(--tint-rgb), 0.5);
}
.sessmem-panel__foot-end {
display: inline-flex;
align-items: center;
gap: 8px;
}
.sessmem-panel__refresh {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: none;
border-radius: 11px;
background: transparent;
color: rgba(var(--tint-rgb), 0.7);
cursor: pointer;
}
.sessmem-panel__refresh:hover { color: var(--text-strong); background: rgba(var(--tint-rgb), 0.08); }
.sessmem-panel__refresh:disabled { opacity: 0.4; cursor: default; }
/* Same spin as the usage panel's refresh. */
.sessmem-panel__refresh.spin svg { animation: usage-spin 0.9s linear infinite; animation-play-state: var(--nt-anim-state); }
/* ---- Claude context-window meter (per-node header pill + popover) ---- */
.ctx-meter {
position: relative;
display: inline-flex;
align-items: center;
}
.ctx-pill {
display: inline-flex;
align-items: center;
gap: 5px;
height: 18px;
padding: 0 7px;
border-radius: 9px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.08);
color: rgba(var(--tint-rgb), 0.7);
font-size: 10px;
font-variant-numeric: tabular-nums;
cursor: pointer;
}
.ctx-pill:hover { background: rgba(var(--tint-rgb), 0.12); }
.ctx-pill__model {
max-width: 72px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgba(var(--tint-rgb), 0.7);
}
.ctx-pill__bar {
display: inline-block;
width: 28px;
height: 5px;
border-radius: 2.5px;
background: rgba(var(--tint-rgb), 0.14);
overflow: hidden;
}
.ctx-pill__fill { display: block; height: 100%; border-radius: 2.5px; }
.ctx-popover {
position: absolute;
top: 24px;
left: 0;
width: 220px;
padding: 12px 14px;
border-radius: 10px;
background: rgba(var(--popover-rgb), 0.98);
border: 1px solid rgba(var(--tint-rgb), 0.1);
box-shadow: 0 10px 32px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
color: var(--text-strong);
z-index: 20;
}
.ctx-popover__title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ctx-bar {
height: 8px;
border-radius: 4px;
background: rgba(var(--tint-rgb), 0.12);
overflow: hidden;
}
.ctx-bar__fill { height: 100%; border-radius: 4px; }
.ctx-popover__meta { margin-top: 8px; font-size: 12px; }
.ctx-popover__sub { margin-top: 4px; font-size: 11px; color: rgba(var(--tint-rgb), 0.5); }
.usage-account__email { font-size: 13px; }
.usage-account__organization {
font-size: 12px;
color: rgba(var(--tint-rgb), 0.65);
overflow-wrap: anywhere;
}
/* A personal organization's name is derived from the email printed right above it
("<email>'s Organization"): kept (it is the real name), but quieter, since it repeats (#912). */
.usage-account__organization--derived { color: rgba(var(--tint-rgb), 0.45); }
.seg-pill {
display: inline-flex;
padding: 2px;
gap: 2px;
border-radius: 8px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.08);
}
.seg-pill-opt {
appearance: none;
border: none;
background: transparent;
color: rgba(var(--tint-rgb), 0.55);
font: inherit;
font-size: 12px;
padding: 3px 12px;
border-radius: 6px;
cursor: pointer;
transition: background 0.12s ease, color 0.12s ease;
}
.seg-pill-opt:hover {
color: rgba(var(--tint-rgb), 0.85);
}
.seg-pill-opt.active {
background: var(--accent);
color: #fff;
}
.agents-row {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 0;
}
.agents-row-icon {
display: inline-flex;
width: 18px;
height: 18px;
flex: none;
}
/* Settings surface (.nt-settings): Tailwind preflight is intentionally not
loaded, so unstyled <button>/<input>/<select> render with the grey native
chrome (the light pills in the settings sidebar). Reset ONLY `appearance`
here, in plain CSS so it is served in dev and prod alike — no
background/border/color, so Tailwind utilities keep full control. */
.nt-settings button,
.nt-settings input,
.nt-settings select,
.nt-settings textarea {
-webkit-appearance: none;
appearance: none;
}
.nt-settings select::-ms-expand {
display: none;
}
.nt-settings textarea {
resize: vertical;
}
.agents-row-label {
flex: 1;
font-size: 13px;
color: rgba(var(--tint-rgb), 0.9);
}
.agents-default.active {
border-color: var(--accent);
color: var(--accent);
}
/* Git history graph (Source Control "Commits") */
.scm-history__head {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: rgba(var(--tint-rgb), 0.6);
}
.scm-history__head button { background: none; border: none; color: inherit; cursor: pointer; }
.scm-history__count { font-size: 10px; opacity: 0.7; }
.scm-history__body { overflow-y: auto; max-height: 33vh; }
.scm-history__row {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 6px;
width: 100%;
min-height: 26px;
padding: 1px 10px;
background: none;
border: none;
color: inherit;
text-align: left;
font-size: 12px;
cursor: pointer;
}
.scm-history__row:hover { background: rgba(var(--tint-rgb), 0.06); }
.scm-history__subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scm-history__chevron { width: 10px; transition: transform 0.12s; opacity: 0.6; }
.scm-history__chevron.collapsed { transform: rotate(-90deg); }
.scm-history__refs { display: flex; gap: 4px; overflow: hidden; }
.scm-history__ref {
max-width: 8rem;
padding: 1px 6px;
border: 1px solid var(--border, rgba(var(--tint-rgb), 0.15));
border-radius: 999px;
font-size: 10px;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.scm-history__files { background: rgba(var(--tint-rgb), 0.03); border-left: 1px solid rgba(var(--tint-rgb), 0.1); }
.scm-history__file {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 3px 10px 3px 32px;
background: none;
border: none;
color: inherit;
text-align: left;
font-size: 12px;
cursor: pointer;
}
.scm-history__file:hover { background: rgba(var(--tint-rgb), 0.06); }
.scm-history__file-dir { margin-left: 6px; font-size: 11px; opacity: 0.55; }
.scm-history__meta { padding: 3px 10px 3px 32px; font-size: 11px; opacity: 0.55; }
.scm-history__msg { padding: 6px 10px; font-size: 11px; opacity: 0.6; }
.scm-history__resize { height: 6px; cursor: row-resize; }
/* Source Control action error banner (e.g. branch switch blocked by local changes) */
.scm-error {
display: flex;
align-items: flex-start;
gap: 8px;
margin: 0 0 10px;
padding: 8px 10px;
border: 1px solid color-mix(in srgb, var(--state-error) 40%, transparent);
border-radius: 6px;
background: color-mix(in srgb, var(--state-error) 12%, transparent);
}
.scm-error__msg {
flex: 1;
margin: 0;
white-space: pre-wrap;
word-break: break-word;
font-size: 11px;
line-height: 1.4;
color: var(--danger);
}
.scm-error__dismiss {
flex: none;
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.6);
font-size: 14px;
line-height: 1;
cursor: pointer;
padding: 0 2px;
}
.scm-error__dismiss:hover {
color: var(--text-strong);
}
/* Neutral variant: "waiting for GitHub sign-in" while Publish retries in-process. */
.scm-error--info {
border-color: rgba(var(--tint-rgb), 0.18);
background: rgba(var(--tint-rgb), 0.06);
}
.scm-error--info .scm-error__msg {
color: var(--text-strong);
}
/* Publish to GitHub picker (VS Code-style: name + private/public choice) */
.pubdlg-overlay {
position: fixed;
inset: 0;
z-index: 90;
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 14vh;
background: rgba(0, 0, 0, 0.4);
}
.pubdlg {
width: min(520px, 86vw);
background: var(--panel-2, var(--bg));
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 18px 50px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
padding: 6px;
overflow: hidden;
}
.pubdlg__name {
width: 100%;
background: var(--bg);
border: 1px solid var(--accent);
border-radius: 7px;
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 14px;
padding: 9px 11px;
outline: none;
margin-bottom: 6px;
}
.pubdlg__name::placeholder {
color: var(--muted);
}
.pubdlg__opt {
display: flex;
align-items: center;
gap: 9px;
width: 100%;
background: transparent;
border: none;
border-radius: 7px;
color: var(--text);
text-align: left;
font-size: 13px;
padding: 9px 10px;
cursor: pointer;
}
.pubdlg__opt:hover:not(:disabled),
.pubdlg__opt:focus-visible {
background: var(--accent);
color: #fff;
outline: none;
}
.pubdlg__opt:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.pubdlg__icon {
flex: none;
opacity: 0.85;
}
.pubdlg__opt-label {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pubdlg__opt-hint {
flex: none;
font-size: 11px;
opacity: 0.6;
font-family: Menlo, Monaco, monospace;
}
.pubdlg__opt:hover .pubdlg__opt-hint {
opacity: 0.85;
}
.scm-more {
background: transparent;
border: 1px solid transparent;
border-radius: 7px;
color: var(--muted);
font-size: 15px;
line-height: 1;
padding: 3px 8px;
cursor: pointer;
}
.scm-more:hover {
background: var(--panel-2);
color: var(--text);
}
/* Sessions sidebar — row + status dot */
@keyframes nt-spin { to { transform: rotate(360deg); } }
.ss-row {
display: flex;
align-items: flex-start;
gap: 7px;
padding: 6px 8px;
border-radius: 7px;
cursor: pointer;
border: 1px solid transparent;
}
.ss-row:hover { background: var(--panel-header); }
.ss-row.is-active { background: rgba(var(--tint-rgb), 0.06); border-color: var(--border); }
.ss-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.ss-dot--unknown { background: var(--muted-2); }
/* A finished turn the user has already seen: a quiet, filled success dot (the unread state
promotes to the pulsing check instead — see SessionRow). */
.ss-dot--done { background: var(--success); }
.ss-check { color: var(--success); margin-top: 2px; flex: 0 0 auto; line-height: 0; }
/* Unread: the same check, accent-blue and pulsing until the user visits the node. */
/* Bounded like the node's own unread glow (issue #1454): a row stays unread until someone looks,
so a looping check held a focused window's frame loop open indefinitely. The check stays. */
.ss-check--unread { color: var(--state-unread); animation: nt-pulse 1.1s ease-in-out 4; animation-play-state: var(--nt-anim-state); }
.ss-check svg { width: 13px; height: 13px; }
/* attention renders as a red bell (ss-bell) — "it's ringing for you". Gentle pulse,
same cadence as the header badge dot. */
.ss-bell { color: var(--danger); margin-top: 2px; flex: 0 0 auto; line-height: 0; animation: nt-pulse 1.1s ease-in-out infinite; animation-play-state: var(--nt-anim-state); }
.ss-bell svg { width: 13px; height: 13px; }
.ss-dot--working {
background: transparent;
border: 2px solid var(--agent-working);
border-top-color: transparent;
animation: nt-spin 1s steps(12, end) infinite;
animation-play-state: var(--nt-anim-state);
}
.ss-row__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ss-row__titleline {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
/* The actions cluster is absolutely positioned inside this line (see `.ss-row__actions`). */
position: relative;
/* The title's floor. The sidebar is 300px wide and the row already carries a status dot, a
monogram, a session chip, a context pill and two buttons, so the NAME is the only thing that
can absorb another chip — and it did: with the account chip present the title measured 45px
(4-5 characters) against 128px without it. Everything else in the line yields before the name
does. ~10 characters at 12.5px, which is what makes two similarly-named sessions
distinguishable. */
--ss-title-min: 120px;
}
.ss-mark { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.ss-title { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: var(--ss-title-min); }
.ss-title.is-unread { font-weight: 600; }
.ss-title-input { font-size: 12.5px; background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 4px; }
.ss-chip { font-size: 10px; color: var(--text); opacity: 0.7; background: var(--panel-header); border-radius: 4px; padding: 0 5px; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
/* The shared account chip, sized for THIS row rather than the node header it was built for:
the header's 120px cap and `flex-shrink: 0` are what crushed the title here. Same scale as
`.ss-chip` beside it, and it yields before the name — its tooltip keeps the full label. */
.ss-account { margin-left: 0; max-width: 5.5rem; font-size: 10px; padding: 0 5px; flex: 0 1 auto; min-width: 0; }
.ss-loop { font-size: 9.5px; color: var(--caution); border: 1px solid color-mix(in srgb, var(--sys-yellow) 40%, transparent); border-radius: 4px; padding: 0 4px; flex: 0 0 auto; }
.ss-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); min-width: 0; }
.ss-meta__cwd { font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-meta__ssh { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.ss-meta__state-age { margin-left: auto; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
/* A clock restored from before the restart: a record of the past, drawn quieter than a live age. */
.ss-meta__state-age--restored { font-style: italic; }
.ss-ctx { font-size: 9.5px; padding: 0 5px; border-radius: 4px; color: #000; font-weight: 600; flex: 0 0 auto; }
/* Out of FLOW, not merely invisible. Both buttons already appeared only on hover, yet they held
46px of a 253px line — measured — away from the name at every other moment. Floated over the
line's tail instead: that tail is what the ellipsis was eating anyway, and the fade in front of
them keeps the text from running into the glyphs. `pointer-events` follows the opacity so a
hidden cluster cannot swallow a click meant for the row. */
.ss-row__actions {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 6px;
padding-left: 14px;
opacity: 0;
pointer-events: none;
background: linear-gradient(90deg, transparent, var(--panel-header) 14px);
}
.ss-row:hover .ss-row__actions,
.ss-row__actions:focus-within {
opacity: 1;
pointer-events: auto;
}
/* The active row paints its own tint, so the fade must end in THAT colour or the cluster sits on a
visible patch of the wrong grey. */
.ss-row.is-active .ss-row__actions {
background: linear-gradient(90deg, transparent, var(--panel-header) 14px);
}
.ss-row__ai { opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px; flex: 0 0 auto; }
.ss-row:hover .ss-row__ai { opacity: 0.6; }
.ss-row__ai:hover { opacity: 1 !important; color: var(--accent); }
.ss-row__ai:disabled { opacity: 0.6; cursor: default; color: var(--accent); }
.ss-row__close { opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
}
.ss-row:hover .ss-row__close { opacity: 0.6; }
.ss-row__close:hover { opacity: 1 !important; color: var(--danger); }
/* Sessions sidebar — shell */
.sessions-sidebar {
position: absolute;
top: calc(var(--tabbar-h) + var(--float-gap));
left: var(--float-gap);
z-index: 12;
width: 300px;
max-height: calc(100vh - var(--tabbar-h) - 26px - 2 * var(--float-gap));
display: flex;
flex-direction: column;
background: rgba(var(--card-rgb), 0.96);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
overflow: hidden;
}
.sessions-sidebar__head { display: flex; align-items: baseline; gap: 8px; padding: 10px 10px 8px; }
.sessions-sidebar__title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.sessions-sidebar__count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Grouping tabs: text with a 2px accent underline on the active tab, sitting on the hairline that
separates the header from the list (see the "Metin sekmesi" design). */
.ss-tabs { display: flex; gap: 18px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.ss-tab {
position: relative;
background: transparent;
border: none;
cursor: pointer;
font-size: 12.5px;
font-weight: 600;
color: var(--muted);
padding: 4px 1px 8px;
margin-bottom: -1px; /* overlap the container border so the underline lands on the hairline */
transition: color 120ms ease;
}
.ss-tab:hover { color: var(--text); }
.ss-tab.is-active { color: var(--text); }
.ss-tab.is-active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
background: var(--accent);
border-radius: 1px;
}
.ss-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sessions-sidebar__head-actions { margin-left: auto; display: flex; gap: 4px; }
.sessions-sidebar__head-actions button { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text); cursor: pointer; border-radius: 6px; }
.sessions-sidebar__head-actions button:hover { background: var(--panel-header); }
.sessions-sidebar__head-actions button.is-on { color: var(--accent); }
.sessions-sidebar__search { margin: 8px 10px 4px; position: relative; }
/* Right padding leaves room for the clear button, which overlays the field's trailing edge. */
.sessions-sidebar__search input { width: 100%; box-sizing: border-box; font-size: 12px; padding: 5px 24px 5px 8px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 7px; }
/* Issue #505: one action back to the full list. Quiet until hovered — it is an escape hatch,
not a control competing with the field. */
.sessions-sidebar__search-clear {
position: absolute;
top: 50%;
right: 4px;
transform: translateY(-50%);
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
border: none;
border-radius: 5px;
background: transparent;
color: var(--muted);
font-size: 14px;
line-height: 1;
cursor: pointer;
}
.sessions-sidebar__search-clear:hover { color: var(--text); background: var(--panel-header); }
.sessions-sidebar__body { overflow-y: auto; padding: 4px 6px 8px; }
.sessions-sidebar__empty { padding: 18px 12px; text-align: center; font-size: 12px; color: var(--muted); }
.sessions-sidebar__empty-clear {
margin-top: 8px;
padding: 3px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: transparent;
color: var(--text);
font-size: 11px;
cursor: pointer;
}
.sessions-sidebar__empty-clear:hover { border-color: var(--accent); color: var(--accent); }
/* "Recently closed" — merged closed-projects/closed-sessions history at the bottom of the
sidebar. Same head layout as .sessions-sidebar__head, just smaller/muted (it is a secondary
section, not the panel's own header). */
.sessions-sidebar__history { border-top: 1px solid var(--border); flex: 0 0 auto; }
.sessions-sidebar__history-head {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 10px;
cursor: pointer;
border-radius: 6px;
}
.sessions-sidebar__history-head:hover { background: var(--panel-header); }
.sessions-sidebar__history-title { font-size: 11px; font-weight: 600; color: var(--muted); }
/* Same 18px muted box as the project/group disclosure toggle (.ss-group__chev) — the section head
sits beside an 11px muted title, and an unstyled glyph inherits body size and --text, reading
louder than the label it belongs to. */
.sessions-sidebar__chevron {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 18px;
height: 18px;
margin: -3px -2px -3px -3px;
font-size: 9px;
line-height: 1;
color: var(--muted);
}
/* This section is a sibling of .sessions-sidebar__body inside a max-height flex column, so it must
scroll on its OWN — .sessions-sidebar__body earns an automatic min-size of 0 from its
`overflow-y: auto` and therefore shrinks, while a list with visible overflow would keep its full
content height and squeeze the session list toward zero. The cap is 20 entries PER PROJECT, so
the row count is unbounded across projects. */
.sessions-sidebar__history-list {
display: flex;
flex-direction: column;
padding: 0 6px 6px;
max-height: 30vh;
overflow-y: auto;
}
.sessions-sidebar__history-item {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 6px;
border-radius: 6px;
color: var(--text);
cursor: pointer;
}
.sessions-sidebar__history-item:hover { background: var(--panel-header); }
.sessions-sidebar__history-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sessions-sidebar__history-age { margin-left: auto; flex: none; font-size: 10.5px; color: var(--muted); }
.sessions-sidebar__history-del {
flex: none;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
font-size: 14px;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.12s, background 0.12s, color 0.12s;
}
.sessions-sidebar__history-item:hover .sessions-sidebar__history-del { opacity: 1; }
.sessions-sidebar__history-del:hover { background: color-mix(in srgb, var(--state-error) 15%, transparent); color: var(--danger); }
/* "Read transcript" on a closed session row (issue #531) — same reveal-on-hover affordance as the
discard ×, beside it. Kept visible while DISABLED so the reason (in its title) is reachable:
a control that vanishes when it cannot act teaches nothing about why. */
.sessions-sidebar__history-transcript {
flex: none;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 5px;
color: var(--muted);
font-size: 11px;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.12s, background 0.12s;
}
.sessions-sidebar__history-item:hover .sessions-sidebar__history-transcript { opacity: 1; }
.sessions-sidebar__history-transcript:hover { background: var(--panel-header); }
.sessions-sidebar__history-transcript:disabled { cursor: default; opacity: 0; }
.sessions-sidebar__history-item:hover .sessions-sidebar__history-transcript:disabled { opacity: 0.35; }
/* The closed-session transcript dialog: a plain confirm box sized to hold the chat panel. */
.closed-transcript {
width: min(760px, 92vw);
max-width: none;
display: flex;
flex-direction: column;
gap: 10px;
}
.closed-transcript .term-chat {
height: min(60vh, 520px);
border-radius: 8px;
overflow: hidden;
}
.closed-transcript__empty { display: flex; flex-direction: column; gap: 6px; }
.closed-transcript__reason { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ss-group__head { display: flex; align-items: center; gap: 6px; padding: 6px 6px; cursor: pointer; border-radius: 6px; border: 1px solid transparent; }
.ss-group__head:hover { background: var(--panel-header); }
/* Project sections read as bands: monogram + heavier head + breathing room between projects. */
.ss-group { margin: 2px 0; }
.ss-group + .ss-group { margin-top: 10px; }
.ss-group__head { background: rgba(var(--tint-rgb), 0.035); }
.ss-group__head:hover { background: var(--panel-header); }
.ss-group__monogram {
width: 18px;
height: 18px;
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 10.5px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.95);
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
flex: 0 0 auto;
}
/* The chevron is the ONLY collapse toggle on an inactive project row (the row itself switches),
so it is a real button with a clickable box around the 9px glyph, not the glyph alone. */
.ss-group__chev {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 18px;
height: 18px;
margin: -3px -2px -3px -3px;
padding: 0;
border: none;
border-radius: 4px;
background: transparent;
font-size: 9px;
line-height: 1;
color: var(--muted);
cursor: pointer;
}
.ss-group__chev:hover { background: rgba(var(--tint-rgb), 0.12); color: var(--text); }
.ss-group__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.ss-group__name { flex: 0 1 auto; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-group.is-active .ss-group__name { color: var(--accent); }
.ss-group__branch { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-group__count { font-size: 10px; color: var(--muted); }
/* Signal badges on the project header: 🔔 needs-you count / ✓ unread count. Visible even
while the group is collapsed — that's their main job. */
.ss-group__sig { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; flex: 0 0 auto; line-height: 0; }
.ss-group__sig svg { width: 11px; height: 11px; }
.ss-group__sig--attention { color: var(--attention-text); }
.ss-group__sig--unread { color: var(--state-unread); }
.ss-group__sig--working { color: var(--agent-working); }
.ss-group__sig-spin {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
border: 1.5px solid var(--agent-working);
border-top-color: transparent;
animation: nt-spin 1s steps(12, end) infinite;
animation-play-state: var(--nt-anim-state);
}
/* Respect the OS setting: spinning ring/arc badges freeze in place rather than
keep animating forever. */
@media (prefers-reduced-motion: reduce) {
.ss-dot--working,
.ss-group__sig-spin {
animation: none;
}
}
.ss-group__add { margin-left: auto; opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.ss-group__head:hover .ss-group__add { opacity: 0.7; }
.ss-group__add:hover { opacity: 1 !important; color: var(--accent); }
.ss-group__empty { padding: 4px 8px 6px 22px; font-size: 11px; color: var(--muted); }
/* Canvas-group sub-section inside a project */
.ss-subgroup {
margin: 2px 0 2px 15px;
padding-left: 6px;
border-left: 1px solid rgba(var(--tint-rgb), 0.08);
}
/* Sibling-reorder drop zones for group rows in the sessions tree (a thin accent rule marks
where the dragged frame would land). */
.ss-subgroup__reorder-zone,
.ss-subgroup__reorder-end { position: relative; height: 5px; }
.ss-subgroup__reorder-end--root { margin-left: 15px; }
.ss-subgroup__reorder-zone.is-drop-before::before,
.ss-subgroup__reorder-end.is-drop-before::before { content: ''; position: absolute; top: 1px; left: 2px; right: 6px; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; }
.ss-subgroup__head { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; }
.ss-subgroup__head:hover { background: var(--panel-header); }
.ss-subgroup__dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
/* Content-sized (not flex:1): the row click navigates to the group on the canvas, so the
rename target must be only as wide as the name itself. */
.ss-subgroup__name { flex: 0 1 auto; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Signal badges + count ride together at the right edge of a frame row. The count alone used to
carry `margin-left: auto`; with badges beside it that would strand them against the (truncating)
name, so the whole tail is one shrink-to-fit block instead. */
.ss-subgroup__tail { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.ss-subgroup__ai { opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px; flex: 0 0 auto; }
.ss-subgroup__head:hover .ss-subgroup__ai { opacity: 0.6; }
.ss-subgroup__ai:hover { opacity: 1 !important; color: var(--accent); }
.ss-subgroup__ai:disabled { opacity: 0.6; cursor: default; color: var(--accent); }
.ss-ungrouped { margin: 2px 0 0 15px; border: 1px solid transparent; border-radius: 6px; }
.ss-ungrouped__label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 4px 6px 2px 8px; }
/* Drop-target highlight while dragging a session onto a group / project header */
.is-drop-target { border-color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ss-row[draggable='true'] { cursor: grab; }
.ss-row[draggable='true']:active { cursor: grabbing; }
/* Reorder: insertion line above the row the dragged session will land before */
.ss-rowdrop { position: relative; }
.ss-rowdrop.is-drop-before::before { content: ''; position: absolute; top: -1px; left: 6px; right: 6px; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; }
/* Project reorder: vertical insertion line before the tab / horizontal line above the
sidebar project header the dragged project will land before */
/* The insertion line, drawn INSIDE the tab it lands in front of. Two things it must not do:
hang outside the tab (at `left: -3px` the first tab's line fell outside `.tabbar__tabs`, which
is `overflow-x: auto` and clipped it — so the leftmost drop target showed nothing), and sit
under the ACTIVE tab, whose `z-index: 1` swallowed it whenever the target was the tab right
after it. Hence `left: 0` and z-index 2. */
.tab.is-drop-before::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; z-index: 2; }
/* The same line for "after the last tab", which has no tab to hang off. A real flex item rather
than a pseudo-element: the strip scrolls, and an absolutely positioned marker on a scroll
container drifts away from the end it is marking. The -1px side margins cancel its 2px width,
so the tabs do not shift when it appears. */
.tab__dropline {
flex: 0 0 2px;
align-self: stretch;
/* The tabs are inset by `--tab-inset` and their own line stops 6px inside that, so this one
(which spans the full strip height) stops at the same two rows. */
margin: calc(var(--tab-inset) + 6px) -1px;
border-radius: 1px;
background: var(--accent);
pointer-events: none;
}
.ss-group { position: relative; }
.ss-group.is-drop-before::before { content: ''; position: absolute; top: -1px; left: 6px; right: 6px; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; z-index: 1; }
/* Sidebar head grouping toggle: a compact SegmentedPill (Project | Status). */
/* Status-grouped sections (sidebar grouped by status). Always expanded — no chevron, no
collapse; the whole point is that sessions awaiting a response are visible at a glance. */
.ss-status { margin: 2px 0; }
.ss-status + .ss-status { margin-top: 8px; }
.ss-status__head { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; background: rgba(var(--tint-rgb), 0.035); }
.ss-status__label { font-size: 12px; font-weight: 600; color: var(--text); }
.ss-status__count { font-size: 10px; color: var(--muted); }
.ss-status__icon { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ss-status__icon--attention { width: auto; height: auto; border-radius: 0; color: var(--attention-text); display: inline-flex; }
.ss-status__icon--attention svg { width: 11px; height: 11px; }
.ss-status__icon--working { background: var(--accent); }
/* Unread: the same accent-blue as the row's "new for you" check, ringed so the section header
reads as "these are the unlooked-at ones". */
.ss-status__icon--unread { background: var(--state-unread); box-shadow: 0 0 0 2px rgba(var(--tint-rgb), 0.18); }
/* Idle: a settled, already-seen turn — a quiet filled success dot. */
.ss-status__icon--idle { background: var(--success); opacity: 0.7; }
.ss-status__icon--unknown { background: rgba(var(--tint-rgb), 0.25); }
.ss-status__rows { padding: 2px 0 2px 2px; }
/* Status-mode row: project monogram in place of the plain color mark. */
.ss-mark--project {
width: 18px;
height: 18px;
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 10.5px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.95);
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
flex: 0 0 auto;
}
.ss-meta__project { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-meta__project + .ss-meta__cwd::before { content: '· '; }
.sessions-icon-cluster { position: absolute; top: calc(var(--tabbar-h) + var(--float-gap)); left: var(--float-gap); z-index: 11; }
.sessions-icon-cluster button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--menu-rgb), 0.92); border: 1px solid var(--border); border-radius: 9px; color: var(--text); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.3 * var(--shadow-k))); }
.sessions-icon-cluster button:hover { background: var(--panel-header); }
/* --- Dino node (T-Rex Runner game) --------------------------------------- */
.dino-node {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background: var(--surface-black);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.dino-node.selected {
box-shadow: 0 0 0 2px var(--accent);
}
.dino-node__header {
display: flex;
align-items: center;
gap: 6px;
padding: 4px;
background: var(--surface-overlay);
}
.dino-node__body {
flex: 1;
min-height: 0;
background: var(--surface-black);
outline: none;
}
/* "▷ <name> is playing" — shown while spectating a peer's live run. Tiny, non-interactive. */
.dino-node__watching {
flex: 0 0 auto;
padding: 1px 7px;
border: 1px solid;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
line-height: 1.5;
white-space: nowrap;
pointer-events: none;
}
/* The game fills the body; it sizes the canvas itself via a ResizeObserver. */
.dino-canvas {
display: block;
width: 100%;
height: 100%;
image-rendering: pixelated;
}
.browser-node__toolbar {
display: flex;
align-items: center;
gap: 4px;
padding: 4px;
border-bottom: 1px solid var(--border, #333);
}
.browser-node__btn {
background: transparent;
border: none;
color: var(--text, #ddd);
cursor: pointer;
border-radius: 4px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
}
.browser-node__btn:disabled {
opacity: 0.35;
cursor: default;
}
.webview-zoom {
display: inline-flex;
align-items: center;
flex-shrink: 0;
gap: 1px;
padding: 1px;
border: 1px solid var(--border, #333);
border-radius: 5px;
}
.webview-zoom__button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 20px;
padding: 0;
border: none;
border-radius: 3px;
background: transparent;
color: var(--muted);
cursor: pointer;
}
.webview-zoom__button:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.webview-zoom__button:disabled {
opacity: 0.35;
cursor: default;
}
.webview-zoom__button svg {
width: 13px;
height: 13px;
}
.webview-zoom__reset {
width: auto;
min-width: 34px;
padding: 0 3px;
font-size: 9px;
font-variant-numeric: tabular-nums;
}
.browser-node__address {
flex: 1;
min-width: 0;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border, #333);
border-radius: 6px;
color: var(--text, #ddd);
padding: 3px 8px;
font-size: 12px;
}
.browser-node__view {
position: relative;
width: 100%;
height: 100%;
}
/* Memory saver plate: what stands in for a page whose Chromium process was released while the
node sat off-screen. Deliberately quiet — this is an ambient state that heals itself on view,
not an error. */
.browser-node__discarded {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 12px;
background: var(--bg);
color: var(--muted);
font-size: 12px;
}
/* A main-frame load failure, OVER the guest rather than beside it: Chromium paints its own error
page inside the <webview>, which is another product's chrome in the middle of a node and offers
no way back. Shared by the web node and the browser surface (WebviewErrorPlate). */
.browser-node__failed {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
padding: 16px;
text-align: center;
background: var(--bg);
}
.browser-node__failed-msg {
color: var(--text);
font-size: 13px;
}
.browser-node__failed-url,
.browser-node__failed-hint {
color: var(--muted);
font-size: 11px;
max-width: 100%;
}
.browser-node__failed-url {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.browser-node__failed-code {
color: var(--muted);
opacity: 0.6;
font-size: 10px;
letter-spacing: 0.02em;
}
.browser-node__failed-retry {
margin-top: 4px;
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
cursor: pointer;
font-size: 12px;
padding: 4px 12px;
}
.browser-node__failed-retry:hover {
background: rgba(var(--tint-rgb), 0.14);
}
/* Navigation in flight. Indeterminate on purpose: a guest reports only start and stop, so any
percentage here would be invented. */
.webview-progress {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
overflow: hidden;
background: rgba(var(--tint-rgb), 0.1);
pointer-events: none;
}
.webview-progress::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 35%;
background: var(--accent);
animation: webview-progress-slide 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes webview-progress-slide {
from {
left: -35%;
}
to {
left: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
.webview-progress::after {
animation: none;
left: 0;
width: 100%;
opacity: 0.5;
}
}
.browser-node__error {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: color-mix(in srgb, var(--state-error) 90%, transparent);
color: #fff;
font-size: 12px;
padding: 4px 8px;
}
/* ── Browser start page (new-tab) ─────────────────────────────── */
.startpage {
position: absolute;
inset: 0;
overflow: auto;
background: var(--bg);
display: flex;
justify-content: center;
}
.startpage__inner {
width: 100%;
max-width: 560px;
padding: 48px 24px 32px;
display: flex;
flex-direction: column;
align-items: center;
gap: 28px;
}
.startpage__searchbar {
width: 100%;
display: flex;
align-items: center;
gap: 8px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 999px;
padding: 10px 16px;
}
.startpage__searchbar:focus-within {
border-color: var(--accent);
}
.startpage__search-icon {
color: var(--muted);
font-size: 16px;
}
.startpage__search {
flex: 1;
background: transparent;
border: none;
outline: none;
color: var(--text);
font-size: 14px;
}
.startpage__grid {
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.startpage__tile {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
background: transparent;
border: none;
cursor: pointer;
padding: 8px 4px;
border-radius: 10px;
}
.startpage__tile:hover {
background: var(--panel-header);
}
.site-icon {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 12px;
overflow: hidden;
flex: none;
}
.site-icon__letter {
color: #fff;
font-weight: 600;
font-size: 18px;
}
.startpage__tile-label {
color: var(--text);
font-size: 12px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.startpage__recent {
width: 100%;
}
.startpage__recent-title {
color: var(--muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 8px;
}
.startpage__recent-item {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
background: transparent;
border: none;
cursor: pointer;
padding: 7px 8px;
border-radius: 8px;
text-align: left;
}
.startpage__recent-item:hover {
background: var(--panel-header);
}
.startpage__recent-name {
color: var(--text);
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
.startpage__recent-host {
color: var(--muted);
font-size: 12px;
flex: none;
}
/* Chat node — SDK-driven conversation node (reuses the .term-chat vocabulary). */
.chat-node {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--border);
border-top-width: 3px;
border-top-style: solid;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.chat-node.selected {
border-color: var(--accent);
}
.chat-node__header {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.chat-node__title {
font-size: 12px;
font-weight: 600;
color: rgba(var(--tint-rgb), 0.92);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 1 auto;
}
.chat-node__badge {
flex: 0 0 auto;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
padding: 1px 6px;
border-radius: 5px;
}
/* RUNNING matches the working spinner + node glow (clay #d97757). */
.chat-node__badge--working {
color: var(--agent-working);
background: color-mix(in srgb, var(--state-working) 15%, transparent);
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
/* NEEDS YOU is red everywhere (same as the terminal attention badge). */
.chat-node__badge--needs {
color: var(--attention-text);
background: color-mix(in srgb, var(--state-error) 15%, transparent);
animation: nt-pulse 1.1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.chat-node__cost {
flex: 0 0 auto;
font-size: 11px;
font-variant-numeric: tabular-nums;
color: rgba(var(--tint-rgb), 0.55);
}
.chat-node__msgs {
flex: 1 1 auto;
overflow-y: auto;
padding: 10px;
display: flex;
flex-direction: column;
gap: 10px;
/* Allow text selection / Cmd+C (React Flow nodes are non-selectable by default). */
user-select: text;
-webkit-user-select: text;
cursor: auto;
}
/* Pre-stream typing indicator: three pulsing dots while waiting for the first SDK event. */
.chat-node__typing {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 2px;
}
.chat-node__typing span {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(var(--tint-rgb), 0.55);
animation: chat-typing 1.2s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.chat-node__typing span:nth-child(2) {
animation-delay: 0.15s;
}
.chat-node__typing span:nth-child(3) {
animation-delay: 0.3s;
}
@keyframes chat-typing {
0%,
60%,
100% {
opacity: 0.25;
transform: translateY(0);
}
30% {
opacity: 1;
transform: translateY(-3px);
}
}
.chat-node__thinking {
font-size: 12px;
opacity: 0.6;
}
.chat-node__thinking summary {
cursor: pointer;
list-style: none;
}
.chat-node__error {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 8px 10px;
border-radius: 8px;
font-size: 12px;
color: var(--danger);
background: color-mix(in srgb, var(--state-error) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--state-error) 35%, transparent);
}
.chat-node__error span {
flex: 1 1 auto;
}
.chat-node__error-dismiss {
flex: 0 0 auto;
border: none;
background: transparent;
color: inherit;
cursor: pointer;
font-size: 13px;
line-height: 1;
padding: 0;
opacity: 0.7;
}
.chat-node__error-dismiss:hover {
opacity: 1;
}
/* Fatal-error bar: replaces the compose box until the user reconnects. */
.chat-node__errorbar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border-top: 1px solid color-mix(in srgb, var(--state-error) 35%, transparent);
background: color-mix(in srgb, var(--state-error) 10%, transparent);
}
.chat-node__errorbar-msg {
flex: 1 1 auto;
font-size: 12px;
color: var(--danger);
}
.chat-node__errorbar-reconnect {
flex: 0 0 auto;
padding: 6px 12px;
font-size: 12px;
font-weight: 600;
border-radius: 6px;
border: 1px solid color-mix(in srgb, var(--state-error) 50%, transparent);
background: color-mix(in srgb, var(--state-error) 15%, transparent);
color: var(--danger);
cursor: pointer;
}
.chat-node__errorbar-reconnect:hover {
background: color-mix(in srgb, var(--state-error) 25%, transparent);
}
.chat-node__permission {
padding: 10px;
border-radius: 8px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid var(--accent);
}
.chat-node__permission-title {
font-size: 12px;
font-weight: 600;
color: rgba(var(--tint-rgb), 0.92);
margin-bottom: 6px;
}
.chat-node__permission-input {
margin: 0 0 8px;
max-height: 140px;
overflow: auto;
white-space: pre-wrap;
font-family: ui-monospace, monospace;
font-size: 11px;
opacity: 0.85;
}
.chat-node__permission-actions {
display: flex;
gap: 6px;
}
.chat-node__permission-actions button {
flex: 0 0 auto;
padding: 4px 10px;
font-size: 12px;
border-radius: 6px;
border: 1px solid rgba(var(--tint-rgb), 0.12);
background: rgba(var(--tint-rgb), 0.06);
color: var(--text-strong);
cursor: pointer;
}
.chat-node__permission-actions button:hover {
background: rgba(var(--tint-rgb), 0.12);
}
.chat-node__queue {
flex: 0 0 auto;
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 6px 10px;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}
.chat-node__queue-item {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px;
font-size: 11px;
border-radius: 5px;
background: rgba(var(--tint-rgb), 0.08);
color: rgba(var(--tint-rgb), 0.7);
}
.chat-node__queue-item button {
border: none;
background: transparent;
color: inherit;
cursor: pointer;
font-size: 12px;
line-height: 1;
padding: 0;
opacity: 0.7;
}
.chat-node__queue-item button:hover {
opacity: 1;
}
.chat-node__compose {
flex: 0 0 auto;
display: flex;
align-items: flex-end;
gap: 6px;
padding: 8px;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}
.chat-node__compose .term-chat__input {
flex: 1 1 auto;
}
.chat-node__stop {
flex: 0 0 auto;
padding: 6px 12px;
font-size: 12px;
font-weight: 600;
border-radius: 6px;
border: 1px solid color-mix(in srgb, var(--state-error) 50%, transparent);
background: color-mix(in srgb, var(--state-error) 15%, transparent);
color: var(--danger);
cursor: pointer;
}
.chat-node__stop:hover {
background: color-mix(in srgb, var(--state-error) 25%, transparent);
}
/* Clickable diff-preview summary line on a tool card (file +n −m → opens a diff node). */
.term-chat__tool-arg--link {
cursor: pointer;
text-decoration: underline;
text-decoration-color: rgba(var(--tint-rgb), 0.25);
text-underline-offset: 2px;
}
.term-chat__tool-arg--link:hover {
color: var(--accent);
text-decoration-color: var(--accent);
}
/* Slash-command popup, floated above the compose box. */
.chat-node__compose {
position: relative;
}
.chat-node__slash {
position: absolute;
left: 8px;
right: 8px;
bottom: calc(100% - 2px);
max-height: 200px;
overflow-y: auto;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
padding: 4px;
z-index: 20;
}
.chat-node__slash-item {
padding: 4px 8px;
font-size: 12px;
font-variant-numeric: tabular-nums;
color: rgba(var(--tint-rgb), 0.92);
border-radius: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.chat-node__slash-item--active {
background: var(--accent);
color: #fff;
}
/* Image-attachment chips row (above the compose box). */
.chat-node__attach {
flex: 0 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
padding: 6px 8px;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}
.chat-node__attach-chip {
position: relative;
display: inline-flex;
width: 44px;
height: 44px;
border-radius: 6px;
overflow: hidden;
border: 1px solid var(--border);
}
.chat-node__attach-chip img {
width: 100%;
height: 100%;
object-fit: cover;
}
.chat-node__attach-chip button {
position: absolute;
top: 1px;
right: 1px;
width: 15px;
height: 15px;
padding: 0;
line-height: 13px;
font-size: 12px;
border: none;
border-radius: 4px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
cursor: pointer;
}
.chat-node__attach-chip button:hover {
background: color-mix(in srgb, var(--state-error) 85%, transparent);
}
.chat-node__attach-note {
flex: 1 1 100%;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
}
/* ---- team presence: cursors, chat bubbles (docs/team-presence.md) ---- */
.presence-cursor {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
z-index: 4;
/* Positions arrive at ~20 Hz — the transition is the "lerp" (no JS animation loop). */
transition: transform 80ms linear;
will-change: transform;
}
/* The cursor lives inside the viewport transform, so its POSITION follows the canvas — but its
SIZE must not (a name label at 0.2x is unreadable, at 2x it is huge). This wrapper carries the
1/zoom counter-scale (see counterScale in lib/presenceKeys.ts), pivoted on the arrow tip
(transform-origin, set inline from CURSOR_HOTSPOT_PX) so the tip keeps pointing at the peer's
exact flow coordinate. No transition here: zoom must apply instantly, only position lerps. */
.presence-cursor__scale {
display: flex;
align-items: flex-start;
}
.presence-cursor__arrow {
display: block;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.presence-cursor__name {
margin: 12px 0 0 -2px;
padding: 2px 6px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
color: #000;
white-space: nowrap;
}
.presence-cursor__chat {
margin: 12px 0 0 6px;
padding: 4px 8px;
max-width: 320px;
border-radius: 10px;
background: rgba(var(--card-rgb), 0.95);
border: 1px solid rgba(var(--tint-rgb), 0.14);
color: var(--text);
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.presence-chat-input {
position: fixed;
z-index: 20;
width: 240px;
padding: 6px 10px;
border-radius: 10px;
border: 1px solid var(--accent);
background: rgba(var(--card-rgb), 0.96);
color: var(--text);
font-size: 13px;
outline: none;
}
/* Our OWN sent cursor-chat line, shown back to us at the spot we typed it — same look as the peer
bubble (.presence-cursor__chat), timed: it fades in, holds, then fades out over CHAT_LINGER_MS. */
.presence-chat-sent {
position: fixed;
z-index: 20;
max-width: 320px;
padding: 4px 8px;
border-radius: 10px;
background: rgba(var(--card-rgb), 0.95);
border: 1px solid rgba(var(--tint-rgb), 0.14);
color: var(--text);
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
pointer-events: none;
animation: presence-chat-sent-life 5000ms ease forwards;
}
@keyframes presence-chat-sent-life {
0% {
opacity: 0;
transform: translateY(3px);
}
6% {
opacity: 1;
transform: translateY(0);
}
82% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* ---- facepile: who is connected (the one surface that shows off-project peers) ---- */
/* Lives INSIDE .controls-cluster (see Canvas.tsx) as its first flex item, so the faces sit to the
LEFT of the top-right toolbar on the same row — not absolutely positioned into the tab-bar band
where they hid behind the chrome. Empty (no element) when alone, so it adds no gap. */
.presence-facepile {
display: flex;
gap: 4px;
align-items: center;
}
.presence-face {
width: 26px;
height: 26px;
border-radius: 50%;
border: 1.5px solid rgba(0, 0, 0, 0.45);
color: #000;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.02em;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Non-actionable (a peer on a canvas we do not have, or one sitting on ours with no node focused):
inert, but NOT the `disabled` attribute — Chromium eats mouse events on those, tooltip and all. */
.presence-face[aria-disabled='true'] {
cursor: default;
}
/* On another project (canvas): dimmed, with the project name pinned under the avatar. Their
cursor is deliberately NOT drawn here — see PresenceLayer. */
.presence-face--away {
opacity: 0.45;
position: relative;
overflow: visible;
}
.presence-face--away:not([aria-disabled='true']):hover {
opacity: 0.75;
}
.presence-face__where {
position: absolute;
top: 100%;
left: 50%;
transform: translate(-50%, 2px);
max-width: 64px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 9px;
font-weight: 600;
color: var(--muted);
}
.presence-face__phone {
font-size: 13px;
line-height: 1;
}
/* ---- per-node chips: who else is in THIS terminal (components/PresenceChips.tsx) ---- */
.presence-chips {
display: inline-flex;
align-items: center;
gap: 3px;
margin-left: 6px;
flex-shrink: 0;
}
.presence-chip {
width: 16px;
height: 16px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 9px;
font-weight: 700;
line-height: 1;
color: #000;
border: 1px solid rgba(0, 0, 0, 0.45);
}
/* Co-attach: this peer's keystrokes are landing in THIS terminal right now. One PTY, N subscribers
and no locking — two people typing into one shell interleave their characters, so the ring IS the
warning. It decays ~2s after the last keystroke (TYPING_DECAY_MS, swept in state/presence.ts). */
.presence-chip--typing {
animation: nt-typing-pulse 1.1s ease-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes nt-typing-pulse {
0% {
box-shadow: 0 0 0 0 var(--peer-color, #fff);
}
70% {
box-shadow: 0 0 0 5px transparent;
}
100% {
box-shadow: 0 0 0 0 transparent;
}
}
/* Respect the OS setting: a ring that pulses forever is exactly the motion this asks us to drop.
The signal must survive it, so it becomes a static halo instead of an animation. */
@media (prefers-reduced-motion: reduce) {
.presence-chip--typing {
animation: none;
box-shadow: 0 0 0 2px var(--peer-color, #fff);
}
}
/* The "+N" bubble: neutral, so it never reads as one more person's color. */
.presence-chip--more {
width: auto;
min-width: 16px;
padding: 0 4px;
border-radius: 8px;
background: rgba(var(--tint-rgb), 0.16);
color: var(--text);
border-color: rgba(var(--tint-rgb), 0.18);
}
/* ---- first-connect name/color prompt ---- */
.presence-prompt {
position: absolute;
top: calc(var(--tabbar-h) + var(--float-gap));
right: var(--float-gap);
z-index: 14;
width: 260px;
padding: 12px;
border-radius: 12px;
background: var(--panel);
border: 1px solid var(--border);
box-shadow: 0 12px 32px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
}
.presence-prompt__title {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.presence-prompt__body {
margin: 4px 0 10px;
font-size: 12px;
color: var(--muted);
}
.presence-prompt__input {
width: 100%;
padding: 6px 8px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--panel-header);
color: var(--text);
font-size: 13px;
outline: none;
}
.presence-prompt__colors {
display: flex;
gap: 6px;
margin: 10px 0;
}
.presence-prompt__swatch {
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid transparent;
cursor: pointer;
}
.presence-prompt__swatch--on {
border-color: var(--text);
}
.presence-prompt__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.presence-prompt__ok,
.presence-prompt__skip {
padding: 4px 12px;
border-radius: 8px;
font-size: 12px;
cursor: pointer;
}
.presence-prompt__ok {
background: var(--accent);
color: #fff;
border: none;
}
.presence-prompt__ok:disabled {
opacity: 0.5;
cursor: default;
}
.presence-prompt__skip {
background: transparent;
color: var(--muted);
border: 1px solid var(--border);
}
/* ---- Bug report dialog (help menu → Report a bug…) ---- */
.bug-report {
width: 440px;
}
.bug-report__desc {
min-height: 110px;
resize: vertical;
font: inherit;
line-height: 1.45;
}
/* Read-only preview of the environment block appended to the issue body. */
.bug-report__env {
margin: 10px 0 0;
padding: 8px 10px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
line-height: 1.5;
color: var(--muted);
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border);
border-radius: 8px;
white-space: pre-wrap;
}
.bug-report__note {
margin: 10px 0 14px;
font-size: 11px;
line-height: 1.5;
color: var(--muted);
}
/* ---- quick phone-pair popover (top-right phone button) ---- */
.phone-pair__backdrop {
position: fixed;
inset: 0;
z-index: 90;
}
.phone-pair {
position: fixed;
z-index: 91;
width: 264px;
padding: 14px 16px;
border-radius: 12px;
background: rgba(var(--popover-rgb), 0.98);
border: 1px solid rgba(var(--tint-rgb), 0.1);
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
color: var(--text-strong);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.phone-pair__title {
align-self: flex-start;
font-size: 13px;
font-weight: 600;
}
.phone-pair__qr {
border-radius: 10px;
/* theme-exempt: a QR code needs a light quiet zone to be readable by a camera, in both themes.
This is the one background in the sheet that is content rather than chrome. */
background: #fff;
padding: 8px;
}
.phone-pair__hint {
font-size: 12px;
color: var(--muted, rgba(var(--tint-rgb), 0.55));
text-align: center;
}
.phone-pair__warn {
font-size: 12px;
color: var(--warn);
text-align: center;
}
.phone-pair__ok {
font-size: 12px;
color: var(--success);
text-align: center;
}
.phone-pair__btn {
font-size: 12px;
padding: 5px 12px;
border-radius: 7px;
border: 1px solid rgba(var(--tint-rgb), 0.14);
background: rgba(var(--tint-rgb), 0.08);
color: var(--text-strong);
cursor: pointer;
}
.phone-pair__btn:hover { background: rgba(var(--tint-rgb), 0.14); }
.phone-pair__divider {
align-self: stretch;
height: 1px;
background: rgba(var(--tint-rgb), 0.08);
}
.phone-pair__row {
align-self: stretch;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.phone-pair__row-title {
font-size: 12.5px;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
}
.phone-pair__row-sub {
font-size: 11px;
color: var(--muted, rgba(var(--tint-rgb), 0.55));
margin-top: 2px;
}
.phone-pair__link {
background: none;
border: none;
padding: 0;
font-size: 12px;
color: var(--accent);
cursor: pointer;
}
.phone-pair__footer { align-self: flex-start; }
/* ---- Kanban view (full-page board over the canvas; the canvas stays mounted under it) ---- */
.kanban-overlay {
position: fixed;
top: var(--tabbar-h); /* below the tab bar */
left: 0;
right: 0;
bottom: 0;
z-index: 25; /* over the flow, under the tab bar (30) and the drawers/dialogs (40+) */
background: var(--canvas-bg);
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Title strip: the project the board belongs to. Its height also clears the floating
controls cluster (top-right), so column headers never sit under those icons. */
.kanban-header {
flex: 0 0 auto;
/* Above the board (issue #1350): the Filter / Views menus are absolutely positioned INSIDE this
strip, and under Liquid Glass the strip AND every `.kanban-col` carry a backdrop-filter, which
makes each of them its own stacking context. A menu's z-index then only ranks it inside the
strip, and the columns — later siblings at the same `auto` level — painted over it. Ranking
the strip itself above the board is the only order a child cannot escape from. */
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 10px;
height: 46px;
padding: 0 18px;
/* Keep the strip's content out from under the controls cluster (~320px incl. its margin). */
padding-right: 330px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.kanban-header__dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex: 0 0 auto;
}
.kanban-header__name {
font-size: 16px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kanban-source-filter {
display: inline-flex;
align-items: center;
gap: 2px;
margin-left: 8px;
padding: 2px;
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 7px;
background: rgba(var(--tint-rgb), 0.04);
}
.kanban-source-filter__button {
border: 0;
border-radius: 5px;
background: transparent;
color: rgba(var(--tint-rgb), 0.55);
padding: 3px 8px;
font-size: 11px;
cursor: pointer;
}
.kanban-source-filter__button:hover {
color: var(--text-strong);
}
.kanban-source-filter__button.is-active {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text-strong);
}
.kanban-github-status {
color: rgba(var(--tint-rgb), 0.5);
font-size: 11px;
}
.kanban-github-status--error {
color: var(--warn);
}
.kanban-github-retry {
border: 0;
background: transparent;
cursor: pointer;
}
.kanban-github-retry:hover {
text-decoration: underline;
}
.kanban-board {
flex: 1;
overflow-x: auto;
overflow-y: hidden;
display: block;
padding: 16px 16px 56px;
height: 100%;
box-sizing: border-box;
}
.kanban-board__columns {
display: flex;
align-items: stretch;
gap: 12px;
width: max-content;
min-width: 100%;
height: fit-content;
max-height: 100%;
}
.kanban-col {
display: flex;
flex-direction: column;
flex: 0 0 288px;
width: 288px;
min-width: 0;
max-width: 288px;
max-height: 100%;
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 12px;
transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
/* Trello-style "this column will take the drop" state. */
.kanban-col--drop {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 7%, transparent);
box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
.kanban-col__header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
cursor: grab;
}
.kanban-col__dot {
width: 10px;
height: 10px;
border-radius: 50%;
border: none;
cursor: pointer;
padding: 0;
flex: 0 0 auto;
}
.kanban-col__title {
flex: 1;
font-size: 13.5px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.85);
cursor: text;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kanban-col__rename {
flex: 1;
min-width: 0;
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid var(--accent);
border-radius: 4px;
color: var(--text-strong);
font-size: 12px;
padding: 2px 6px;
outline: none;
}
.kanban-col__count {
font-size: 12px;
color: rgba(var(--tint-rgb), 0.4);
}
.kanban-col__close {
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.35);
cursor: pointer;
font-size: 11px;
padding: 0;
}
.kanban-col__close:hover {
color: var(--danger);
}
/* Lifecycle category marker (@shared/kanban-category): a quiet word beside the title, never a
second colour language — the column's own dot already carries its identity. */
.kanban-col__category {
flex: 0 0 auto;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: rgba(var(--tint-rgb), 0.5);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 4px;
padding: 0 4px;
white-space: nowrap;
}
.kanban-col__menu {
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.35);
cursor: pointer;
font-size: 13px;
line-height: 1;
padding: 0 2px;
}
.kanban-col__menu:hover {
color: var(--text-strong);
}
/* Board progress (cards in done+closed columns over every card) in the title strip. */
.kanban-progress {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: 6px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.55);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.kanban-progress__bar {
width: 56px;
height: 4px;
border-radius: 2px;
background: rgba(var(--tint-rgb), 0.1);
overflow: hidden;
}
.kanban-progress__fill {
display: block;
height: 100%;
background: var(--state-success);
}
.kanban-col__swatches {
display: flex;
gap: 6px;
padding: 0 12px 8px;
}
.kanban-col__swatch {
width: 14px;
height: 14px;
border-radius: 50%;
border: 1px solid rgba(var(--tint-rgb), 0.25);
cursor: pointer;
padding: 0;
}
.kanban-col__cards {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 8px;
padding: 2px 10px;
min-height: 24px;
}
.kanban-card {
position: relative;
display: block;
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 8px;
padding: 8px 10px;
cursor: pointer; /* click = expand/collapse; drag still works via the draggable attr */
}
.kanban-card__row {
display: flex;
align-items: flex-start; /* chips align to the first line of a wrapped title */
gap: 8px;
min-width: 0;
}
.kanban-card__row > .kanban-card__nodedot {
margin-top: 5px; /* optically centers the dot on the first title line */
}
.kanban-card__detail {
display: flex;
align-items: center;
gap: 8px;
margin-top: 7px;
padding-top: 7px;
border-top: 1px solid rgba(var(--tint-rgb), 0.06);
min-height: 20px;
cursor: default;
}
.kanban-card__session {
flex: 1;
min-width: 0;
font-size: 10px;
color: rgba(var(--tint-rgb), 0.45);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kanban-card__kindlabel {
flex: 1;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(var(--tint-rgb), 0.35);
}
.kanban-card__open {
margin-left: auto;
flex: 0 0 auto;
background: rgba(var(--tint-rgb), 0.08);
border: none;
border-radius: 5px;
color: rgba(var(--tint-rgb), 0.7);
font-size: 12px;
padding: 2px 8px;
cursor: pointer;
}
.kanban-card__open:hover {
background: var(--accent);
color: #fff;
}
.kanban-card:hover {
border-color: rgba(var(--tint-rgb), 0.2);
}
.kanban-card--github {
border-left: 2px solid rgba(125, 133, 144, 0.7);
}
.github-issue-state {
width: 9px;
height: 9px;
margin-top: 4px;
border: 2px solid currentColor;
border-radius: 50%;
flex: 0 0 auto;
}
.github-issue-state--open {
color: #3fb950;
}
.github-issue-state--closed {
color: #a371f7;
}
.kanban-card--pull {
/* Read-only: no drag affordance, so no grab cursor either. */
border-left-color: rgba(163, 113, 247, 0.7);
cursor: pointer;
}
.github-pull-state {
width: 9px;
height: 9px;
margin-top: 4px;
border: 2px solid currentColor;
border-radius: 50%;
flex: 0 0 auto;
}
.github-pull-state--open {
color: #3fb950;
}
.github-pull-state--draft {
color: rgba(var(--tint-rgb), 0.45);
}
.github-pull-state--merged {
color: #a371f7;
}
.github-pull-state--closed {
color: var(--danger);
}
.github-pull-badge {
margin-left: 6px;
border: 1px solid currentColor;
border-radius: 999px;
padding: 0 5px;
font-size: 9px;
font-weight: 600;
}
.github-pull-badge--open {
color: #3fb950;
}
.github-pull-badge--draft {
color: rgba(var(--tint-rgb), 0.5);
}
.github-pull-badge--merged {
color: #a371f7;
}
.github-pull-badge--closed {
color: var(--danger);
}
/* Pull request CI + mergeability (PullStatusBadges.tsx). Hues are the text-safe status tokens:
the text sits on the card. A stale snapshot is dashed; one stale past the threshold greys. */
.pull-status {
display: flex;
flex-wrap: wrap;
gap: 4px 8px;
margin: 4px 0 0 17px;
font-size: 10px;
}
.github-issue-modal .pull-status {
margin: 8px 0 0;
font-size: 12px;
}
.pull-status__ci--passed { color: var(--success); }
.pull-status__ci--failed { color: var(--danger); }
.pull-status__ci--pending { color: var(--caution); }
.pull-status__ci--skipped,
.pull-status__ci--neutral { color: rgba(var(--tint-rgb), 0.5); }
.pull-status__merge--ready { color: var(--success); }
.pull-status__merge--conflict { color: var(--danger); }
.pull-status__merge--blocked,
.pull-status__merge--behind { color: var(--warn); }
.pull-status__merge--undecided { color: rgba(var(--tint-rgb), 0.5); }
.pull-status__stale {
color: rgba(var(--tint-rgb), 0.45);
font-style: italic;
}
.pull-status--stale {
text-decoration: underline dashed rgba(var(--tint-rgb), 0.35);
}
.pull-status--expired,
.pull-status--expired * {
color: rgba(var(--tint-rgb), 0.35) !important;
}
.pull-refs {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 4px 0 0 17px;
}
.pull-refs--session {
margin: 6px 0 0;
}
.github-issue-modal .pull-refs {
margin: 8px 0 0;
}
.pull-ref {
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 999px;
padding: 0 6px;
color: rgba(var(--tint-rgb), 0.7);
font-size: 10px;
white-space: nowrap;
}
.pull-ref--merged { color: #a371f7; }
.pull-ref--closed { color: rgba(var(--tint-rgb), 0.45); }
.pull-ref__ready { color: var(--success); }
.pull-ref__conflict { color: var(--danger); }
.pull-closes {
margin: 4px 0 0 17px;
color: rgba(var(--tint-rgb), 0.5);
font-size: 10px;
}
.github-issue-modal .pull-closes {
margin: 6px 0 0;
font-size: 12px;
}
.pull-checks {
margin: 10px 0 0;
padding: 0;
list-style: none;
font-size: 12px;
}
.pull-checks__row {
display: flex;
align-items: center;
gap: 8px;
padding: 2px 0;
}
.pull-checks__name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
color: var(--text);
background: none;
border: 0;
padding: 0;
font: inherit;
}
button.pull-checks__name {
cursor: pointer;
text-decoration: underline dotted rgba(var(--tint-rgb), 0.35);
}
.pull-checks__state,
.pull-checks__note {
color: rgba(var(--tint-rgb), 0.5);
font-size: 11px;
}
.pull-checks__note {
margin: 8px 0 0;
}
/* The card modal's "Pull requests" section (CardPullRequests.tsx). */
.card-pulls {
display: flex;
flex-direction: column;
gap: 4px;
padding: 6px 16px 8px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
font-size: 12px;
}
.card-pulls__head {
display: flex;
align-items: baseline;
gap: 8px;
}
.card-pulls__title {
color: rgba(var(--tint-rgb), 0.6);
font-size: 11px;
font-weight: 600;
}
.card-pulls__branch {
color: rgba(var(--tint-rgb), 0.45);
font-family: ui-monospace, monospace;
font-size: 11px;
}
.card-pulls__row {
display: flex;
align-items: center;
gap: 8px;
}
.card-pulls__row--unlinked .pull-ref {
opacity: 0.6;
}
.card-pulls__action {
background: none;
border: 0;
padding: 0;
color: rgba(var(--tint-rgb), 0.55);
font: inherit;
font-size: 11px;
cursor: pointer;
}
.card-pulls__action:hover {
color: var(--text);
}
.card-pulls__note {
margin: 0;
color: rgba(var(--tint-rgb), 0.5);
font-size: 11px;
}
.card-pulls__note--warn {
color: var(--warn);
}
.card-pulls__optout {
display: flex;
align-items: center;
gap: 6px;
color: rgba(var(--tint-rgb), 0.65);
font-size: 11px;
}
.github-issue-source {
flex: 0 0 auto;
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 4px;
color: rgba(var(--tint-rgb), 0.5);
font-size: 8px;
font-weight: 800;
letter-spacing: 0.04em;
padding: 1px 4px;
}
.github-issue-card__number {
margin: 4px 0 0 17px;
color: rgba(var(--tint-rgb), 0.42);
font-size: 10px;
}
.github-issue-card__labels {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 7px;
}
.github-issue-label {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border: 1px solid rgba(var(--tint-rgb), 0.18);
border-radius: 999px;
padding: 1px 6px;
font-size: 9px;
line-height: 1.4;
}
.github-issue-card__footer {
display: flex;
align-items: center;
gap: 6px;
margin-top: 8px;
color: rgba(var(--tint-rgb), 0.45);
font-size: 10px;
}
.github-issue-conflict {
color: var(--warn);
}
.github-issue-card__footer .kanban-card__avatars {
margin-left: auto;
}
.github-issue-card__status {
margin-top: 7px;
color: rgba(var(--tint-rgb), 0.58);
font-size: 10px;
line-height: 1.35;
}
.github-issue-avatar {
width: 18px;
height: 18px;
border-radius: 50%;
object-fit: cover;
border: 1px solid rgba(var(--tint-rgb), 0.16);
}
.github-issue-avatar--initial {
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(var(--tint-rgb), 0.15);
color: var(--text-strong);
font-size: 9px;
font-weight: 700;
}
.github-issue-move select {
max-width: 84px;
height: 23px;
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 5px;
background: var(--surface-deep);
color: rgba(var(--tint-rgb), 0.72);
font-size: 10px;
}
.kanban-github-more {
width: 100%;
border: 1px dashed rgba(var(--tint-rgb), 0.14);
border-radius: 6px;
background: transparent;
color: rgba(var(--tint-rgb), 0.52);
padding: 6px;
font-size: 11px;
cursor: pointer;
}
.kanban-github-more:hover {
border-color: var(--accent);
color: var(--text-strong);
}
.github-issue-modal {
width: min(680px, calc(100vw - 32px));
max-height: min(720px, calc(100vh - 48px));
overflow: auto;
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 14px;
background: var(--surface-raised);
box-shadow: 0 24px 80px rgba(0, 0, 0, calc(0.65 * var(--shadow-k)));
}
.github-issue-modal__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 20px 22px 14px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.github-issue-modal__header h2 {
margin: 3px 0 0;
color: var(--text-strong);
font-size: 20px;
line-height: 1.3;
}
.github-issue-modal__eyebrow {
color: rgba(var(--tint-rgb), 0.48);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.github-issue-modal__close {
border: 0;
background: transparent;
color: rgba(var(--tint-rgb), 0.55);
font-size: 24px;
cursor: pointer;
}
.github-issue-modal__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 22px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.github-issue-modal__actions label {
display: flex;
align-items: center;
gap: 8px;
color: rgba(var(--tint-rgb), 0.58);
font-size: 12px;
}
.github-issue-modal__warning {
margin: 14px 22px 0;
border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
border-radius: 8px;
background: color-mix(in srgb, var(--warn) 9%, transparent);
color: var(--warn);
padding: 9px 11px;
font-size: 12px;
}
.github-issue-modal__body {
padding: 22px;
color: rgba(var(--tint-rgb), 0.78);
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 13px;
line-height: 1.6;
}
/* Board dispatch's line on an issue card (queued / starting / not dispatched). Static text: the
run itself shows as a run chip once it exists. */
.dispatch-chip {
margin-top: 6px;
font-size: 10px;
line-height: 1.4;
color: var(--muted);
}
.dispatch-chip--starting {
color: var(--text);
}
.dispatch-chip--refused {
color: var(--warn);
}
.dispatch-chip__reason {
color: var(--muted);
}
/* GitHub issue ↔ agent session binding. The issue card lists every session started on it as a
live chip (state from the agent-status store — static, no animation: a card can carry several,
and the RUNNING pulse already lives on the session's own card). */
.issue-run-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 6px;
}
.issue-run-chip {
display: inline-flex;
align-items: center;
gap: 5px;
max-width: 100%;
padding: 1px 6px;
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 999px;
background: rgba(var(--tint-rgb), 0.05);
color: var(--text);
font: inherit;
font-size: 10px;
line-height: 1.5;
cursor: pointer;
}
.issue-run-chip:hover {
background: rgba(var(--tint-rgb), 0.1);
}
.issue-run-chip__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 120px;
}
.issue-run-chip__state {
font-size: 9px;
font-weight: 700;
letter-spacing: 0.04em;
}
.issue-run-chip--running .issue-run-chip__state {
color: var(--success);
}
.issue-run-chip--needs .issue-run-chip__state {
color: var(--attention-text);
}
.issue-run-chip--failed .issue-run-chip__state,
.issue-run-chip--dropped .issue-run-chip__state {
color: var(--warn);
}
.issue-run-chip--paused .issue-run-chip__state,
.issue-run-chip--sleeping .issue-run-chip__state {
color: var(--muted);
}
.github-issue-modal__runs {
padding: 10px 22px 0;
}
.github-issue-modal__history {
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
padding: 12px 22px 18px;
}
/* `#N` on a session started on a GitHub issue — canvas node header and its board card alike. */
.issue-ref-chip {
margin-left: 6px;
padding: 0 6px;
flex: 0 0 auto;
border: 1px solid rgba(var(--tint-rgb), 0.16);
border-radius: 6px;
background: transparent;
color: var(--muted);
font: inherit;
font-size: 11px;
line-height: 1.5;
cursor: pointer;
}
.issue-ref-chip:hover {
color: var(--text);
background: rgba(var(--tint-rgb), 0.08);
}
/* Dev-server ports a node's session listens on (components/PortsChip) — canvas node header and
the card modal header alike. Same quiet outline as `#N`; the port is monospace so `:5173` reads
as an address, not a count. */
.ports-chip-wrap {
display: inline-flex;
flex: 0 0 auto;
}
.ports-chip {
margin-left: 6px;
padding: 0 6px;
flex: 0 0 auto;
border: 1px solid rgba(var(--tint-rgb), 0.16);
border-radius: 6px;
background: transparent;
color: var(--muted);
font: inherit;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
line-height: 1.5;
cursor: pointer;
}
.ports-chip:hover {
color: var(--text);
background: rgba(var(--tint-rgb), 0.08);
}
/* Team progress — "N of M done" over the stations a session opened (lib/teamProgress). One
component on the board card, the card modal header and the canvas node header. The arc is the
done fraction; the dot says the strongest thing a station is asking for. */
.team-progress-wrap {
display: inline-flex;
flex: 0 0 auto;
}
.team-progress {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: 6px;
padding: 0 6px 0 3px;
border: 1px solid rgba(var(--tint-rgb), 0.16);
border-radius: 999px;
background: transparent;
color: var(--muted);
font: inherit;
font-size: 10.5px;
font-variant-numeric: tabular-nums;
line-height: 1.6;
cursor: pointer;
}
.team-progress:hover {
color: var(--text);
background: rgba(var(--tint-rgb), 0.08);
}
.team-progress__ring {
flex: 0 0 auto;
}
.team-progress__track {
fill: none;
stroke: rgba(var(--tint-rgb), 0.2);
stroke-width: 2;
}
.team-progress__arc {
fill: none;
stroke: var(--state-success);
stroke-width: 2;
stroke-linecap: round;
}
.team-progress--complete {
color: var(--text);
}
.team-progress__attn {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--state-working);
}
.team-progress--needs .team-progress__attn {
background: var(--state-attention);
}
.team-progress--error .team-progress__attn {
background: var(--state-error);
}
/* The station list's state dots (ContextMenu row icons). */
.team-progress__dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid rgba(var(--tint-rgb), 0.35);
}
.team-progress__dot--done,
.team-progress__dot--paused,
.team-progress__dot--ended {
background: var(--state-success);
border-color: transparent;
}
.team-progress__dot--working {
background: var(--state-working);
border-color: transparent;
}
.team-progress__dot--needs {
background: var(--state-attention);
border-color: transparent;
}
.team-progress__dot--errored,
.team-progress__dot--dropped {
background: var(--state-error);
border-color: transparent;
}
.team-progress__dot--queued {
background: var(--state-queued);
border-color: transparent;
}
/* Interrupted by the user: idle, not finished — `--after` holds its dependents on it. */
.team-progress__dot--interrupted {
background: var(--state-warning);
border-color: transparent;
}
/* MenuSelect (components/MenuSelect.tsx): a row's value with a chevron, and its small menu. The menu
is absolutely positioned INSIDE the row and opaque: inside a dialog that is a backdrop root under
Liquid Glass, a translucent or blurred menu would show the dialog's own content through it. */
.menu-select {
position: relative;
flex: none;
}
.menu-select__trigger {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 6px 5px 10px;
border: 0;
border-radius: 7px;
background: transparent;
color: var(--text);
font: inherit;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.menu-select__trigger svg {
width: 14px;
height: 14px;
color: var(--muted);
}
.menu-select__trigger:hover:not(:disabled),
.menu-select__trigger[aria-expanded='true'] {
background: rgba(var(--tint-rgb), 0.08);
}
.menu-select__trigger:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.menu-select__menu {
position: absolute;
top: calc(100% + 4px);
right: 0;
z-index: 5;
display: flex;
flex-direction: column;
gap: 1px;
min-width: 280px;
max-width: 320px;
padding: 5px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgb(var(--menu-rgb));
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.menu-select__item {
display: flex;
align-items: flex-start;
gap: 6px;
width: 100%;
padding: 6px 10px 6px 4px;
border: 0;
border-radius: 7px;
background: transparent;
color: var(--text);
font: inherit;
text-align: left;
cursor: pointer;
}
.menu-select__item:focus {
outline: none;
}
.menu-select__item.active {
background: var(--panel-header);
}
.menu-select__item.disabled {
cursor: not-allowed;
}
.menu-select__item.disabled .menu-select__label {
color: var(--muted);
}
.menu-select__check {
flex: none;
display: grid;
place-items: center;
width: 16px;
height: 18px;
color: var(--accent);
}
.menu-select__check svg {
width: 13px;
height: 13px;
}
.menu-select__text {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.menu-select__label {
font-size: 13px;
line-height: 18px;
}
.menu-select__hint {
color: var(--muted);
font-size: 11.5px;
line-height: 1.35;
}
/* "Share with team" (ShareTeamDialog): the `.confirm` shell, wider for the lists, with the body as
the scrolling region so Share / Close stay on screen however long the lists are. */
.confirm.share-team {
width: 480px;
}
/* ---- nodeterm://open confirm sheet (components/OpenLinkSheet.tsx; reuses the .confirm shell) ---- */
.confirm.open-link {
width: 520px;
}
.open-link__title {
flex: 0 0 auto;
font-size: 14px;
font-weight: 600;
color: var(--text);
}
.open-link__source {
flex: 0 0 auto;
margin: 2px 0 12px;
font-size: 12px;
color: var(--muted);
overflow-wrap: anywhere;
}
.open-link__body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
margin-bottom: 14px;
}
.open-link__label {
display: block;
margin: 0 0 4px;
font-size: 11px;
font-weight: 600;
color: var(--muted);
}
.open-link__field {
margin-bottom: 10px;
}
.open-link__value {
margin: 0 0 10px;
font-size: 12px;
color: var(--text);
overflow-wrap: anywhere;
}
.open-link__muted {
color: var(--muted);
}
.open-link__prompt {
margin: 0 0 10px;
max-height: 220px;
overflow: auto;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border);
background: rgba(var(--tint-rgb), 0.06);
font-size: 12px;
line-height: 1.45;
color: var(--text);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.open-link__note,
.open-link__warn {
margin: -4px 0 10px;
padding: 6px 8px;
border-radius: 6px;
font-size: 12px;
color: var(--text);
background: color-mix(in srgb, var(--state-warning) 12%, transparent);
}
.open-link__error {
margin: 0 0 6px;
font-size: 12px;
color: var(--danger);
}
.share-team__title {
flex: 0 0 auto;
margin: 0 0 10px;
font-size: 13px;
font-weight: 600;
color: var(--text);
overflow-wrap: anywhere;
}
.share-team__body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
margin-bottom: 14px;
font-size: 12px;
line-height: 1.5;
color: var(--text);
}
.share-team__body p {
margin: 0 0 8px;
overflow-wrap: anywhere;
}
.share-team__heading {
color: var(--muted);
}
.share-team__list {
margin: -4px 0 10px;
padding-left: 18px;
overflow-wrap: anywhere;
}
/* The security sentence: always visible, in the status-chip recipe. */
.share-team__warning {
padding: 8px 10px;
border-radius: 6px;
background: color-mix(in srgb, var(--state-warning) 12%, transparent);
}
.share-team__error {
color: var(--danger);
}
.share-team__code {
display: flex;
gap: 6px;
align-items: center;
margin-bottom: 8px;
}
.share-team__code .confirm__input {
flex: 1 1 auto;
min-width: 0;
margin: 0;
}
/* The installer's output: a sunken well, the tail only (the component keeps the last 4000 chars). */
.share-team__log {
max-height: 180px;
overflow: auto;
margin: 0 0 8px;
padding: 8px 10px;
border-radius: 6px;
background: var(--surface-sunken);
font-family: ui-monospace, monospace;
font-size: 11px;
line-height: 1.45;
white-space: pre-wrap;
overflow-wrap: anywhere;
color: var(--text);
}
/* The session name in the card modal header: sized to its text, not a flex-filling detail line. */
.kanban-modal__session {
flex: 0 1 auto;
max-width: 220px;
font-size: 11px;
}
@media (max-width: 520px) {
.kanban-header {
gap: 6px;
padding-left: 10px;
padding-right: 112px;
}
.kanban-header__name {
max-width: 84px;
}
.kanban-source-filter__button {
padding-inline: 6px;
}
.kanban-board {
padding-inline: 10px;
}
.kanban-col {
flex-basis: calc(100vw - 32px);
width: calc(100vw - 32px);
max-width: calc(100vw - 32px);
}
.github-issue-modal__actions {
align-items: stretch;
flex-direction: column;
}
}
/* Global swimlane kanban — one swimlane per project */
.global-kanban {
overflow-y: auto;
overflow-x: hidden;
display: block;
}
.global-kanban__scroll {
display: block;
overflow: visible;
flex: none;
min-height: auto;
padding-bottom: 24px;
}
.kanban-swimlane {
margin: 14px 16px;
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-left: 4px solid var(--swimlane-color, rgba(var(--tint-rgb), 0.15));
border-radius: 12px;
background: rgba(var(--tint-rgb), 0.02);
scroll-margin-top: 12px;
overflow: visible;
position: relative;
z-index: 1;
box-shadow: 0 2px 12px rgba(0, 0, 0, calc(0.12 * var(--shadow-k)));
}
.kanban-swimlane:nth-child(even) {
background: rgba(var(--tint-rgb), 0.035);
}
.kanban-swimlane--highlight {
outline: 2px solid var(--accent);
outline-offset: -2px;
animation: kanban-swimlane-highlight 1.5s ease;
box-shadow: 0 4px 20px rgba(0, 0, 0, calc(0.2 * var(--shadow-k)));
}
@keyframes kanban-swimlane-highlight {
0% { outline-color: var(--accent); }
100% { outline-color: transparent; }
}
.kanban-swimlane__header {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 18px 10px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.06);
background: linear-gradient(90deg, rgba(var(--tint-rgb), 0.04), transparent);
position: sticky;
top: 0;
z-index: 1;
cursor: pointer;
}
.kanban-swimlane__header:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.kanban-swimlane__header:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.kanban-swimlane__toggle {
width: 12px;
color: rgba(var(--tint-rgb), 0.55);
font-size: 12px;
text-align: center;
flex: 0 0 12px;
}
.kanban-swimlane__count {
margin-left: auto;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.45);
background: rgba(var(--tint-rgb), 0.08);
padding: 2px 8px;
border-radius: 999px;
}
.kanban-swimlane__hint {
margin-left: auto;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.5);
}
.kanban-swimlane__board {
padding: 12px 16px 16px;
flex: none;
overflow-x: auto;
overflow-y: visible;
height: auto;
max-height: none;
}
.global-kanban__nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 10px 18px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.06);
background: rgba(var(--tint-rgb), 0.015);
}
.global-kanban__pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(var(--tint-rgb), 0.12);
background: rgba(var(--tint-rgb), 0.06);
color: rgba(var(--tint-rgb), 0.85);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.global-kanban__pill:hover {
background: rgba(var(--tint-rgb), 0.1);
border-color: var(--accent);
transform: translateY(-1px);
}
.global-kanban__pill--active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.kanban-empty {
padding: 40px 18px;
color: rgba(var(--tint-rgb), 0.5);
font-size: 13px;
}
.kanban-card__nodedot {
width: 8px;
height: 8px;
border-radius: 50%;
flex: 0 0 auto;
}
.kanban-card__title {
flex: 1;
min-width: 0;
font-size: 13.5px;
font-weight: 500;
line-height: 1.35;
color: rgba(var(--tint-rgb), 0.94);
/* Long session names WRAP (max 2 lines) instead of inflating the row/column width. */
white-space: normal;
word-break: break-word;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.kanban-card__kind {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(var(--tint-rgb), 0.4);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 4px;
padding: 1px 4px;
}
.kanban-badge {
font-size: 9px;
font-weight: 700;
letter-spacing: 0.04em;
border-radius: 4px;
padding: 2px 5px;
flex: 0 0 auto;
}
.kanban-badge--running {
color: var(--success);
background: color-mix(in srgb, var(--state-success) 12%, transparent);
/* reuse the terminal-header badge pulse (nt-pulse) rather than a bespoke keyframe. BOUNDED, like
the node glows (CLAUDE.md → Idle energy): looping forever, one chip kept the compositor at display rate
for as long as its agent worked, and under Liquid Glass every column's backdrop-filter ran again
each frame (20 RUNNING cards, glass on: GPU 50 % -> 17.5 % with the chips still). Four pulses
say "this one just started"; nt-pulse ends at opacity 1 / scale(1), the chip's own look. The
chip mounts when the agent starts working, so each new turn pulses again. */
animation: nt-pulse 1.1s ease-in-out 4;
animation-play-state: var(--nt-anim-state);
}
/* Settings → Appearance → Pulse RUNNING on board cards off (`settings.boardRunningPulse`; App.tsx
sets the attribute): the same chip, held still. The node header's badge keeps its motion. */
:root[data-nt-board-pulse='off'] .kanban-badge--running {
animation: none;
}
.kanban-badge--needs {
color: var(--attention-text);
background: color-mix(in srgb, var(--state-attention) 12%, transparent);
}
/* Eco: the agent CLI was exited to reclaim RAM. Quiet — the session is fine. */
.kanban-badge--sleeping {
color: var(--muted);
background: rgba(var(--tint-rgb), 0.08);
}
/* The agent process is gone and nothing accounted for it. Warn-coloured like NEEDS YOU, because it
does need the user — but for a different reason, which is why it gets its own label. */
.kanban-badge--dropped {
color: var(--warn);
background: color-mix(in srgb, var(--state-warning) 12%, transparent);
}
.kanban-badge--station-failed {
color: var(--danger);
background: color-mix(in srgb, var(--state-error) 12%, transparent);
border: none;
cursor: pointer;
}
.kanban-card__unread {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--state-unread);
flex: 0 0 auto;
}
.kanban-col__dot--ungrouped {
background: rgba(var(--tint-rgb), 0.25);
}
.kanban-add-col {
align-self: flex-start;
flex: 0 0 auto;
background: rgba(var(--tint-rgb), 0.04);
border: 1px dashed rgba(var(--tint-rgb), 0.15);
border-radius: 10px;
color: rgba(var(--tint-rgb), 0.5);
font-size: 12px;
padding: 10px 16px;
cursor: pointer;
white-space: nowrap;
}
.kanban-add-col {
transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.kanban-add-col:hover {
color: var(--text-strong);
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 6%, transparent);
}
/* ---- Kanban column pill: half-pill flush against a session node's top edge (rendered as a
sibling of the overflow:hidden node root, so it can poke above the border). ---- */
.kanban-node-pill {
position: absolute;
top: -19px;
right: 10px;
height: 19px;
display: flex;
align-items: center;
padding: 0 9px;
border: 1px solid;
border-bottom: none;
border-radius: 7px 7px 0 0; /* the flat bottom is what makes it read as attached */
font-size: 10px;
font-weight: 600;
letter-spacing: 0.02em;
white-space: nowrap;
max-width: 45%;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
backdrop-filter: blur(4px);
/* Over the node's resize controls (z 3). */
z-index: 4;
}
.kanban-node-pill:hover {
filter: brightness(1.3);
}
/* ---- Kanban column footer: per-column "+ New session" with a create menu ---- */
.kanban-col__footer {
position: relative;
padding: 6px 10px 10px;
}
.kanban-col__new {
width: 100%;
background: none;
border: 1px dashed rgba(var(--tint-rgb), 0.12);
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.45);
font-size: 11px;
padding: 6px 8px;
cursor: pointer;
text-align: left;
}
.kanban-col__new {
transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.kanban-col__new:hover {
color: var(--text-strong);
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 8%, transparent);
}
/* GitHub Issues settings — the "Advanced" (token/provider) disclosure. Collapsed by default so the
common gh-signed-in case shows no token noise. */
.github-auth-advanced > summary {
cursor: pointer;
list-style: none;
font-size: 13px;
color: var(--muted);
user-select: none;
}
.github-auth-advanced > summary::-webkit-details-marker {
display: none;
}
.github-auth-advanced > summary::before {
content: '▸ ';
}
.github-auth-advanced[open] > summary::before {
content: '▾ ';
}
.github-auth-advanced > summary:hover {
color: var(--text-strong);
}
/* `list-style: none` above removes the native marker, and with it the browser's own focus ring on
some engines — a keyboard user must still be able to see where they are. */
.github-auth-advanced > summary:focus-visible {
color: var(--text-strong);
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: 4px;
}
.kanban-col__newmenu {
position: absolute;
top: 100%;
left: 10px;
right: 10px;
margin-top: 4px;
background: var(--surface-deep);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 8px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
padding: 4px;
z-index: 5;
display: flex;
flex-direction: column;
}
/* Global swimlanes contain horizontally scrolling boards, so an in-column menu would be clipped
before z-index can lift it above the next lane. The React portal is positioned against the
viewport instead; the component supplies its measured coordinates after mounting. */
.kanban-col__newmenu--portal {
position: fixed;
top: 0;
left: 0;
right: auto;
bottom: auto;
margin: 0;
width: 0;
visibility: hidden;
z-index: 29;
}
.kanban-col__newmenu button {
display: flex;
align-items: center;
gap: 8px;
background: none;
border: none;
border-radius: 5px;
color: rgba(var(--tint-rgb), 0.85);
font-size: 12px;
text-align: left;
padding: 6px 8px;
cursor: pointer;
}
.kanban-col__newicon {
display: inline-flex;
width: 14px;
height: 14px;
color: rgba(var(--tint-rgb), 0.6);
flex: 0 0 auto;
}
.kanban-col__newicon svg {
width: 14px;
height: 14px;
}
.kanban-col__newmenu button:hover .kanban-col__newicon {
color: #fff;
}
.kanban-col__newmenu button:hover {
background: var(--accent);
color: #fff;
}
.kanban-card__stickytext {
flex: 1;
min-width: 0;
font-size: 12px;
color: rgba(var(--tint-rgb), 0.6);
white-space: pre-line;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
word-break: break-word;
}
/* ---- Kanban card modal (Trello-style popup over the board) ---- */
@keyframes kanban-fade {
from { opacity: 0; }
to { opacity: 1; }
}
.kanban-modal-scrim {
position: fixed;
inset: 0;
z-index: 55; /* above the board (25) + drawers (~40), below ConfirmDialog (70+) */
background: rgba(0, 0, 0, 0.55);
animation: kanban-fade 0.14s ease-out;
display: flex;
align-items: center;
justify-content: center;
}
@keyframes kanban-pop {
from {
opacity: 0;
transform: scale(0.965) translateY(6px);
}
to {
opacity: 1;
transform: none;
}
}
.kanban-modal {
animation: kanban-pop 0.16s ease-out;
/* width/height are inline (remembered per machine — see cardModalSize.ts). These are the safety
ceiling so the sheet can never exceed the viewport, even for the frame before the clamp runs. */
max-width: calc(100vw - 24px);
max-height: calc(100vh - 24px);
position: relative;
display: flex;
flex-direction: column;
background: var(--surface-sunken);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 12px;
box-shadow: 0 24px 80px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
overflow: hidden;
}
/* Resize handles (issue #389): thin strips just inside each edge, larger squares at the corners.
Inset (not outset) so the sheet's overflow:hidden / border-radius doesn't clip them. */
.kanban-modal__resize {
position: absolute;
z-index: 6;
touch-action: none;
}
.kanban-modal__resize--n { top: 0; left: 0; right: 0; height: 6px; cursor: ns-resize; }
.kanban-modal__resize--s { bottom: 0; left: 0; right: 0; height: 6px; cursor: ns-resize; }
.kanban-modal__resize--w { left: 0; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.kanban-modal__resize--e { right: 0; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.kanban-modal__resize--ne,
.kanban-modal__resize--nw,
.kanban-modal__resize--se,
.kanban-modal__resize--sw {
width: 14px;
height: 14px;
z-index: 7; /* corners beat the edge strips they overlap */
}
.kanban-modal__resize--ne { top: 0; right: 0; cursor: nesw-resize; }
.kanban-modal__resize--nw { top: 0; left: 0; cursor: nwse-resize; }
.kanban-modal__resize--se { bottom: 0; right: 0; cursor: nwse-resize; }
.kanban-modal__resize--sw { bottom: 0; left: 0; cursor: nesw-resize; }
.kanban-modal__header {
flex: 0 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
padding: 12px 14px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.kanban-modal__identity {
display: flex;
align-items: center;
gap: 10px;
flex: 1 1 280px;
min-width: min(280px, 100%);
overflow: hidden;
}
.kanban-modal__project {
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 1 auto;
min-width: 72px;
max-width: 220px;
box-sizing: border-box;
border: 1px solid rgba(var(--tint-rgb), 0.18);
border-radius: 4px;
padding: 2px 6px;
color: rgba(var(--tint-rgb), 0.8);
font-size: 11px;
}
.kanban-modal__project-dot {
width: 7px;
height: 7px;
flex: 0 0 7px;
border-radius: 50%;
}
.kanban-modal__project-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.kanban-modal__title {
min-width: 0;
flex: 0 1 auto;
font-size: 14px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.92);
cursor: text;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kanban-modal__rename {
flex: 1;
min-width: 0;
background: rgba(var(--tint-rgb), 0.08);
border: 1px solid var(--accent);
border-radius: 5px;
color: var(--text-strong);
font-size: 13px;
padding: 3px 8px;
outline: none;
}
.kanban-modal__column {
min-width: 0;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(var(--tint-rgb), 0.45);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 4px;
padding: 2px 6px;
margin-right: auto;
}
.kanban-modal__action {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
background: rgba(var(--tint-rgb), 0.06);
border: none;
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.7);
cursor: pointer;
}
.kanban-modal__action:hover {
background: rgba(var(--tint-rgb), 0.14);
color: var(--text-strong);
}
.kanban-modal__body {
flex: 1;
min-height: 0;
display: flex;
}
/* The card's own pane (terminal / sticky / chat) takes 2/3; the board-log panel takes 1/3. */
.kanban-modal__main {
flex: 2;
min-width: 0;
display: flex;
}
.kanban-modal__sticky {
flex: 1;
background: none;
border: none;
resize: none;
outline: none;
color: rgba(var(--tint-rgb), 0.9);
font-size: 13px;
line-height: 1.5;
padding: 14px 16px;
font-family: inherit;
}
/* Rendered-markdown twin of .kanban-modal__sticky: same box, click flips into the textarea.
The markdown inside uses the note's own .sticky-node__md rules — one set of typography, so the
canvas and the card cannot disagree about how a heading or a code block reads. */
.kanban-modal__sticky-view {
flex: 1;
min-width: 0;
overflow-y: auto;
padding: 14px 16px;
color: rgba(var(--tint-rgb), 0.9);
font-size: 13px;
line-height: 1.5;
cursor: text;
user-select: text;
-webkit-user-select: text;
}
.kanban-modal__sticky-view .sticky-node__stamp {
padding: 8px 0 0;
}
.kanban-modal__pane {
position: relative; /* anchors the markdown-view overlay */
flex: 1;
min-width: 0;
display: flex;
}
.kanban-modal__placeholder {
margin: auto;
color: rgba(var(--tint-rgb), 0.35);
font-size: 12px;
}
/* The live co-attach terminal fills the pane; the ResizeObserver in ModalTerminal drives fit(). */
.kanban-modal__term {
flex: 1;
min-width: 0;
/* min-height:0 is load-bearing: without it this flex item's automatic minimum is its CONTENT
* height, so once the terminal is free to use its own grid (the canvas node parks its size vote
* while the board is up) FitAddon and the host feed each other taller and taller — the pane ran
* away to ~200 rows. Pinned to 0, the host stays its flex allocation and fit measures the real
* visible height. */
min-height: 0;
overflow: hidden;
/* NO padding here: FitAddon measures THIS element's height but only subtracts the xterm
* element's own padding (0), not the host's — so an 8px inset here made it over-compute one
* extra row and `overflow:hidden` clipped the terminal's last line (a full-screen TUI's status
* bar vanished). The visual inset lives on the wrapper instead. */
}
/* ── Board log: the modal's "Comments & activity" panel (right 1/3) ── */
.board-log {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
border-left: 1px solid rgba(var(--tint-rgb), 0.08);
background: rgba(var(--tint-rgb), 0.015);
}
.board-log__title {
flex: 0 0 auto;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: rgba(var(--tint-rgb), 0.4);
padding: 12px 14px 8px;
}
.board-log__composer {
flex: 0 0 auto;
margin: 0 12px 10px;
min-height: 52px;
max-height: 140px;
resize: none;
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 7px;
color: rgba(var(--tint-rgb), 0.9);
font-family: inherit;
font-size: 12px;
line-height: 1.45;
padding: 8px 10px;
outline: none;
}
.board-log__composer:focus {
border-color: var(--accent);
}
/* The composer + its @ mention picker (a board comment that mentions a session is delivered to it). */
.board-log__compose {
position: relative;
flex: 0 0 auto;
display: flex;
flex-direction: column;
}
.board-log__mention-picker {
position: absolute;
top: calc(100% - 6px);
left: 12px;
right: 12px;
z-index: 5;
max-height: 180px;
overflow-y: auto;
padding: 4px;
background: var(--panel);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 7px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.board-log__mention-option {
font-size: 12px;
padding: 4px 8px;
border-radius: 5px;
color: rgba(var(--tint-rgb), 0.85);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.board-log__mention-option.is-active,
.board-log__mention-option:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text-strong);
}
.board-log__deliver-note {
margin: -4px 14px 8px;
font-size: 10.5px;
color: rgba(var(--tint-rgb), 0.45);
}
.board-log__mention {
font-weight: 600;
color: var(--text-strong);
background: rgba(var(--tint-rgb), 0.08);
border-radius: 4px;
padding: 0 3px;
}
.board-log__deliveries {
list-style: none;
margin: 2px 0 0;
padding: 0 0 0 14px;
display: flex;
flex-direction: column;
gap: 1px;
font-size: 10.5px;
line-height: 1.4;
}
.board-log__delivery--ok {
color: var(--success);
}
.board-log__delivery--pending {
color: rgba(var(--tint-rgb), 0.55);
}
.board-log__delivery--warn {
color: var(--warn);
}
.board-log__delivery--error {
color: var(--danger);
}
.board-log__hint {
flex: 0 0 auto;
margin: 0 14px 10px;
font-size: 11px;
color: rgba(var(--tint-rgb), 0.35);
}
.board-log__error {
flex: 0 0 auto;
margin: 0 14px 8px;
font-size: 10px;
color: rgba(255, 120, 120, 0.75);
}
.board-log__feed {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 4px 14px 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
.board-log__comment {
display: flex;
flex-direction: column;
gap: 3px;
}
.board-log__meta {
display: flex;
align-items: center;
gap: 6px;
}
.board-log__dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex: 0 0 auto;
}
.board-log__author {
font-size: 12px;
font-weight: 600;
color: rgba(var(--tint-rgb), 0.85);
}
.board-log__time {
font-size: 10px;
color: rgba(var(--tint-rgb), 0.35);
}
/* A run of like events folded at render time (lib/boardLogCollapse) — the ×N toggle. */
.board-log__fold {
background: rgba(var(--tint-rgb), 0.07);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 999px;
color: rgba(var(--tint-rgb), 0.65);
font-size: 10px;
font-variant-numeric: tabular-nums;
padding: 0 6px;
cursor: pointer;
}
.board-log__fold:hover,
.board-log__fold[aria-expanded='true'] {
color: var(--text-strong);
border-color: rgba(var(--tint-rgb), 0.25);
}
.board-log__group--open {
display: flex;
flex-direction: column;
gap: inherit;
border-left: 2px solid rgba(var(--tint-rgb), 0.1);
padding-left: 6px;
}
.board-log__text {
font-size: 12px;
line-height: 1.45;
color: rgba(var(--tint-rgb), 0.82);
white-space: pre-wrap;
word-break: break-word;
padding-left: 14px;
}
.board-log__event {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 3px 4px;
font-size: 11.5px;
line-height: 1.45;
}
.board-log__event .board-log__dot {
width: 7px;
height: 7px;
align-self: center;
}
.board-log__event .board-log__author {
font-size: 11.5px;
}
.board-log__event-body {
color: rgba(var(--tint-rgb), 0.55);
}
.kanban-modal__termwrap {
position: relative;
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
padding: 8px; /* the terminal's inset — off the FitAddon-measured host (see .kanban-modal__term) */
/* Same reason as `.term-node__body`: this 8px inset would otherwise frame the terminal in the
* modal's own colour. The fallback is the modal surface, i.e. the pre-themes look. */
background: var(--term-bg, var(--surface-sunken));
}
.kanban-modal__action[aria-pressed='true'] {
background: var(--accent);
color: #fff;
}
/* Read-only document preview stacked over a Kanban card. The card and board remain mounted below,
so closing this layer returns the user to exactly the terminal and scroll position they left. */
.local-file-preview-scrim {
position: fixed;
inset: 0;
z-index: 62; /* above card modal (55), below confirmation/palette dialogs (70+) */
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
background: rgba(0, 0, 0, 0.68);
animation: kanban-fade 0.14s ease-out;
}
.local-file-preview {
width: min(1180px, calc(100vw - 24px));
height: min(820px, calc(100vh - 24px));
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--surface-sunken);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 12px;
box-shadow: 0 28px 90px rgba(0, 0, 0, calc(0.72 * var(--shadow-k)));
animation: kanban-pop 0.16s ease-out;
}
.local-file-preview__header {
flex: 0 0 auto;
min-height: 48px;
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px 10px 16px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.09);
}
.local-file-preview__title {
min-width: 0;
max-width: 38%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgba(var(--tint-rgb), 0.92);
font-size: 14px;
font-weight: 700;
}
.local-file-preview__path {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgba(var(--tint-rgb), 0.4);
font-family: ui-monospace, monospace;
font-size: 10px;
}
.local-file-preview__body {
flex: 1;
min-width: 0;
min-height: 0;
position: relative;
overflow: auto;
background: var(--term-bg, var(--surface-sunken));
}
.local-file-preview__body webview,
.local-file-preview__body iframe {
width: 100%;
height: 100%;
border: 0;
display: flex;
}
.local-file-preview__body--image {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.local-file-preview__body--image img {
display: block;
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.local-file-preview__body--markdown .term-md__content {
max-width: 920px;
margin: 0 auto;
padding: 28px 34px 50px;
user-select: text;
-webkit-user-select: text;
}
.local-file-preview__body--text pre {
box-sizing: border-box;
min-height: 100%;
margin: 0;
padding: 22px 26px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
color: rgba(var(--tint-rgb), 0.88);
font: 12px/1.55 ui-monospace, monospace;
}
.local-file-preview__message {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: rgba(var(--tint-rgb), 0.45);
font-size: 12px;
}
.local-file-preview__message--error {
color: var(--danger);
}
/* ---- Node comments flyout: the header 💬 expands the board-log feed to the node's right ---- */
@keyframes kanban-slide-in {
from {
opacity: 0;
transform: translateX(-6px);
}
to {
opacity: 1;
transform: none;
}
}
.term-node__comments {
animation: kanban-slide-in 0.14s ease-out;
position: absolute;
left: 100%;
top: 0;
bottom: 0;
margin-left: 10px;
width: 300px;
display: flex;
background: var(--surface-sunken);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 10px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
overflow: hidden;
z-index: 5;
}
.term-node__comments .board-log {
border-left: none;
}
/* ---- Card metadata (Trello-style Members / Due date) ---- */
/* ── Kanban labels (Notion-style) ── */
.kanban-labels {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.kanban-label-chip {
display: inline-flex;
align-items: center;
gap: 3px;
border-radius: 4px;
font-weight: 600;
line-height: 1.3;
white-space: nowrap;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
}
.kanban-labels--sm .kanban-label-chip {
font-size: 10.5px;
padding: 1px 6px;
}
.kanban-labels--md .kanban-label-chip,
.label-picker .kanban-label-chip {
font-size: 12px;
padding: 2px 8px;
}
.kanban-label-chip__x {
background: none;
border: none;
color: inherit;
opacity: 0.65;
cursor: pointer;
padding: 0 0 0 1px;
font-size: 12px;
line-height: 1;
}
.kanban-label-chip__x:hover {
opacity: 1;
}
.kanban-card__labels {
margin: 4px 0 0 18px; /* align under the title, past the node dot */
}
.term-node__labels {
padding: 0 8px 4px;
}
/* Canvas node label row (unified with kanban labels): chips + an add button + the picker popover,
plus an optional trailing slot (the ⌘M hint). The row itself NEVER wraps and has no gap; the
chips + "+ Label" wrap inside `.term-node__labelmain` instead, against the full row width — so
they break exactly where they did when they were the row's own items. See `__labeltrail` for why
the trailing slot cannot change that. */
.term-node__labelrow {
position: relative;
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 0;
padding: 2px 8px 5px;
/* Its OWN background, not one inherited from the node root. Visually identical to what it had
before (the root is var(--panel) too) — but the shared glyph renderer makes that root
TRANSPARENT so the GPU canvas can show through the body (`.term-node--glyphgrid`), while this
row sits ABOVE the grid's opaque plate, which only starts at the terminal screen. Without a
background of its own the whole strip between the header and the terminal became a window onto
the canvas: the reported "gap under the header, in the label row", which also made the
terminal's text look like it began well below where the DOM renderer put it. Every other child
of the node paints its own background for exactly this reason (`.term-node__header`,
`.term-node__find`); this one was missed because it replaced the old `.node-tags` row, which
had one. */
background: var(--panel);
}
.term-node__labeladd {
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 4px;
color: rgba(var(--tint-rgb), 0.6);
font-size: 10.5px;
padding: 1px 6px;
cursor: pointer;
}
.term-node__labeladd:hover {
background: rgba(var(--tint-rgb), 0.12);
color: var(--text-strong);
}
/* The chips group: its basis is its content and it never grows, so free space goes to the
trailing slot; when the content is wider than the row it shrinks to the row and wraps, exactly as
the row's own items did before the slot existed. It keeps the row's old 4px gap. */
.term-node__labelmain {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
flex: 0 1 auto;
min-width: 0;
}
/* Trailing slot of the label row (NodeLabels `trailing`). A ZERO flex basis is the whole trick: it
contributes nothing to the width the chips are measured against (so it can never make them wrap,
i.e. never add a line — a taller row shrinks the terminal body, refits xterm and SIGWINCHes
tmux, which a state-dependent hint width would otherwise do on every ⌘M toggle at a wrap
boundary), then grows into whatever width the chips left over and clips to it. Content is
right-aligned in that space; no margin/gap, which would narrow the chips' room by those pixels. */
.term-node__labeltrail {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
display: flex;
justify-content: flex-end;
align-items: center;
}
/* The ⌘M hint in that slot (`components/MdViewHintButton.tsx`). Quieter than "+ Label" — a
transparent border, no fill until hover, dimmer text — but the SAME box: font size, vertical
padding, border width and font family all match, so it can never be the row's tallest item and
change the row's height. When the slot is narrow it ellipsizes on one line ("⌘M Mark…", then
"…"), and at zero width it is simply clipped away. */
.term-node__mdhint {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: none;
border: 1px solid transparent;
border-radius: 4px;
padding: 1px 4px 1px 6px;
font-size: 10.5px;
color: rgba(var(--tint-rgb), 0.38);
cursor: pointer;
}
.term-node__mdhint:hover {
background: rgba(var(--tint-rgb), 0.08);
color: rgba(var(--tint-rgb), 0.75);
}
.kanban-meta__row--labels {
position: relative;
align-items: center;
gap: 6px;
}
/* ── Label picker (create/assign/edit) ── */
.label-picker__scrim {
position: fixed;
inset: 0;
z-index: 58;
}
.label-picker__pop {
position: absolute;
top: calc(100% + 6px);
left: 0;
z-index: 59;
}
.label-picker {
width: 280px;
background: var(--surface-raised);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 8px;
box-shadow: 0 16px 40px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
padding: 8px;
display: flex;
flex-direction: column;
gap: 6px;
}
.label-picker__input {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
min-height: 30px;
padding: 4px 6px;
border-radius: 6px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.1);
cursor: text;
}
.label-picker__search {
flex: 1;
min-width: 80px;
background: none;
border: none;
outline: none;
color: var(--text-strong);
font-size: 13px;
}
.label-picker__hint {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(var(--tint-rgb), 0.4);
padding: 2px 2px 0;
}
.label-picker__list {
display: flex;
flex-direction: column;
gap: 2px;
max-height: 260px;
overflow-y: auto;
}
.label-picker__row {
display: flex;
align-items: center;
border-radius: 5px;
}
.label-picker__row:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.label-picker__pick {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
background: none;
border: none;
cursor: pointer;
padding: 5px 6px;
min-width: 0;
}
.label-picker__rowcheck {
margin-left: auto;
color: var(--accent);
font-size: 12px;
}
.label-picker__more {
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.55);
cursor: pointer;
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
}
.label-picker__more:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text-strong);
}
.label-picker__create {
display: flex;
align-items: center;
gap: 6px;
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.75);
cursor: pointer;
padding: 6px;
border-radius: 5px;
font-size: 12.5px;
text-align: left;
}
.label-picker__create:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.label-picker__createrow {
position: relative;
display: flex;
align-items: center;
gap: 2px;
}
.label-picker__createcolor {
display: flex;
align-items: center;
gap: 2px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.1);
border-radius: 5px;
padding: 4px 5px;
cursor: pointer;
}
.label-picker__createcolor:hover {
background: rgba(var(--tint-rgb), 0.12);
}
.label-picker__caret {
font-size: 8px;
color: rgba(var(--tint-rgb), 0.5);
}
.label-picker__createcolors {
position: absolute;
top: calc(100% + 4px);
left: 0;
z-index: 60;
width: 170px;
max-height: 240px;
overflow-y: auto;
background: var(--surface-raised);
border: 1px solid rgba(var(--tint-rgb), 0.16);
border-radius: 7px;
box-shadow: 0 14px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
padding: 5px;
display: flex;
flex-direction: column;
gap: 1px;
}
/* edit panel */
.label-picker__edithead {
display: flex;
align-items: center;
gap: 6px;
}
.label-picker__back {
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.7);
font-size: 18px;
cursor: pointer;
padding: 0 4px;
}
.label-picker__renameinput {
flex: 1;
border: none;
outline: none;
border-radius: 5px;
padding: 4px 8px;
font-size: 13px;
font-weight: 600;
}
.label-picker__delete {
display: flex;
align-items: center;
gap: 6px;
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.8);
cursor: pointer;
padding: 6px;
border-radius: 5px;
font-size: 12.5px;
text-align: left;
}
.label-picker__delete:hover {
background: rgba(255, 120, 120, 0.14);
color: #ff8f8f;
}
.label-picker__colhead {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(var(--tint-rgb), 0.4);
padding: 4px 2px 0;
}
.label-picker__colors {
display: flex;
flex-direction: column;
gap: 1px;
}
.label-picker__colorrow {
display: flex;
align-items: center;
gap: 10px;
background: none;
border: none;
cursor: pointer;
padding: 5px 6px;
border-radius: 5px;
color: rgba(var(--tint-rgb), 0.85);
font-size: 12.5px;
}
.label-picker__colorrow:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.label-picker__swatch {
width: 18px;
height: 18px;
border-radius: 4px;
border: 1px solid rgba(var(--tint-rgb), 0.12);
}
.label-picker__check {
margin-left: auto;
color: var(--accent);
}
/* A card the board's keyboard is on (J/K/arrows move it, Space opens it). */
.kanban-card:focus {
outline: none;
}
.kanban-card:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
/* ── Board multi-select (⌘/Ctrl-click, Shift-click) ──
A selected card wears the accent; the bar that acts on the selection floats bottom-centre, in a
body portal above the board (25) and its controls (26), under the menus and dialogs (40+). */
.kanban-card--selected,
.kanban-card--selected:hover {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 16%, rgba(var(--tint-rgb), 0.08));
box-shadow: 0 0 0 1px var(--accent);
}
:root[data-nt-glass='on'] .kanban-card--selected,
:root[data-nt-glass='on'] .kanban-card--selected:hover {
border-color: var(--accent);
background:
linear-gradient(
color-mix(in srgb, var(--accent) 20%, transparent),
color-mix(in srgb, var(--accent) 20%, transparent)
),
var(--glass-lift);
}
.kanban-select-bar {
position: fixed;
left: 50%;
bottom: 28px;
transform: translateX(-50%);
z-index: 27;
display: flex;
align-items: center;
gap: 6px;
max-width: calc(100vw - 32px);
padding: 6px 6px 6px 14px;
background: rgba(var(--menu-rgb), 0.98);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
color: var(--text-strong);
font-size: 12px;
white-space: nowrap;
-webkit-app-region: no-drag;
}
.kanban-select-bar__count {
font-weight: 600;
margin-right: 6px;
}
.kanban-select-bar__btn {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(var(--tint-rgb), 0.07);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 8px;
color: inherit;
font-size: 12px;
padding: 5px 10px;
cursor: pointer;
}
.kanban-select-bar__btn:hover {
background: rgba(var(--tint-rgb), 0.14);
}
.kanban-select-bar__btn--danger {
color: var(--danger);
}
.kanban-select-bar__btn--danger:hover {
background: color-mix(in srgb, var(--state-error) 15%, transparent);
border-color: color-mix(in srgb, var(--state-error) 40%, transparent);
}
.kanban-select-bar__clear {
padding: 5px 6px;
background: transparent;
border-color: transparent;
color: rgba(var(--tint-rgb), 0.7);
}
/* ── Board status chips (header) — transient filters on live agent state ── */
.kanban-status-chips {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: 8px;
}
.kanban-status-chip {
display: inline-flex;
align-items: center;
gap: 5px;
background: transparent;
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 999px;
color: rgba(var(--tint-rgb), 0.65);
font-size: 11px;
padding: 2px 8px;
cursor: pointer;
white-space: nowrap;
}
.kanban-status-chip:hover {
color: var(--text-strong);
background: rgba(var(--tint-rgb), 0.06);
}
.kanban-status-chip__count {
font-variant-numeric: tabular-nums;
color: rgba(var(--tint-rgb), 0.45);
}
.kanban-status-chip--on {
border-color: var(--accent);
color: var(--text-strong);
background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.kanban-status-chip--running.kanban-status-chip--on {
border-color: var(--state-working);
background: color-mix(in srgb, var(--state-working) 14%, transparent);
}
.kanban-status-chip--needs.kanban-status-chip--on {
border-color: var(--state-attention);
background: color-mix(in srgb, var(--state-attention) 14%, transparent);
}
.kanban-status-chip--unread.kanban-status-chip--on {
border-color: var(--state-unread);
background: color-mix(in srgb, var(--state-unread) 14%, transparent);
}
/* ── Saved views (header) — the views are shared, the active one is this user's ── */
.kanban-views-btn {
margin-left: 6px;
max-width: 220px;
min-width: 64px;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.kanban-filter-member {
font-size: 12px;
color: rgba(var(--tint-rgb), 0.85);
}
/* The title strip carries progress, the closed toggle, three chips, Filter and Views. None of them
may wrap (a wrapped button grows the fixed-height strip into the columns); the project name and
the Views label are what give way, and the progress BAR drops before its "n/m done" text. */
.kanban-header .kanban-filter-btn:not(.kanban-views-btn),
.kanban-status-chips,
.kanban-progress,
.kanban-header__filter {
flex-shrink: 0;
white-space: nowrap;
}
.kanban-header__name {
min-width: 48px;
flex-shrink: 1;
}
@media (max-width: 1100px) {
.kanban-progress__bar {
display: none;
}
}
@media (max-width: 1000px) {
.kanban-header {
gap: 6px;
}
.kanban-status-chip {
padding: 2px 6px;
}
}
/* ── Board label filter (header) ── */
.kanban-header__filter {
position: relative;
margin-left: 12px;
}
.kanban-filter-btn {
background: rgba(var(--tint-rgb), 0.07);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.75);
font-size: 12px;
padding: 4px 10px;
cursor: pointer;
}
.kanban-filter-btn:hover {
background: rgba(var(--tint-rgb), 0.12);
color: var(--text-strong);
}
.kanban-filter-btn--on {
border-color: var(--accent);
color: var(--text-strong);
}
.kanban-filter-menu {
position: absolute;
top: calc(100% + 6px);
left: 0;
z-index: 59;
width: 240px;
background: var(--surface-raised);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 8px;
box-shadow: 0 16px 40px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
padding: 6px;
display: flex;
flex-direction: column;
gap: 2px;
}
.kanban-filter-row {
display: flex;
align-items: center;
gap: 8px;
background: none;
border: none;
cursor: pointer;
padding: 5px 6px;
border-radius: 5px;
}
.kanban-filter-row:hover {
background: rgba(var(--tint-rgb), 0.06);
}
.kanban-filter-group {
padding: 7px 10px 3px;
color: rgba(var(--tint-rgb), 0.42);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.kanban-filter-clear {
margin-top: 4px;
background: none;
border: none;
border-top: 1px solid rgba(var(--tint-rgb), 0.08);
color: rgba(var(--tint-rgb), 0.6);
cursor: pointer;
padding: 6px;
font-size: 12px;
text-align: left;
}
.kanban-filter-clear:hover {
color: var(--text-strong);
}
.kanban-meta {
flex: 0 0 auto;
display: flex;
align-items: flex-start;
gap: 28px;
padding: 10px 16px;
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.kanban-meta__group {
display: flex;
flex-direction: column;
gap: 6px;
}
.kanban-meta__label {
font-size: 11px;
font-weight: 700;
color: rgba(var(--tint-rgb), 0.55);
}
.kanban-meta__row {
position: relative;
display: flex;
align-items: center;
gap: 6px;
}
.kanban-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
color: #fff;
cursor: pointer;
padding: 0;
}
.kanban-avatar--add {
background: rgba(var(--tint-rgb), 0.1);
color: rgba(var(--tint-rgb), 0.7);
border: 1px dashed rgba(var(--tint-rgb), 0.3);
}
.kanban-avatar--add:hover {
background: rgba(var(--tint-rgb), 0.18);
color: var(--text-strong);
}
.kanban-avatar--sm {
width: 18px;
height: 18px;
font-size: 9px;
cursor: default;
}
.kanban-avatar--more {
background: rgba(var(--tint-rgb), 0.18);
}
.kanban-meta__picker {
position: absolute;
top: 100%;
left: 0;
margin-top: 6px;
min-width: 180px;
background: var(--surface-deep);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 8px;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
padding: 4px;
z-index: 6;
display: flex;
flex-direction: column;
}
.kanban-meta__picker > button {
display: flex;
align-items: center;
gap: 8px;
background: none;
border: none;
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.88);
font-size: 12.5px;
padding: 5px 8px;
cursor: pointer;
}
.kanban-meta__picker > button:hover {
background: var(--accent);
color: #fff;
}
.kanban-meta__pname {
flex: 1;
text-align: left;
}
.kanban-meta__check {
color: var(--success);
}
.kanban-meta__due {
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.88);
font-size: 12.5px;
padding: 4px 8px;
outline: none;
color-scheme: dark;
}
.kanban-meta__clear {
background: none;
border: none;
color: rgba(var(--tint-rgb), 0.4);
cursor: pointer;
font-size: 11px;
}
.kanban-meta__clear:hover {
color: var(--danger);
}
.kanban-due {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.03em;
border-radius: 4px;
padding: 2px 6px;
background: rgba(var(--tint-rgb), 0.1);
color: rgba(var(--tint-rgb), 0.75);
}
.kanban-due--overdue {
background: color-mix(in srgb, var(--state-error) 18%, transparent);
color: #ff6961;
}
.kanban-card__metarow {
display: flex;
align-items: center;
gap: 6px 8px;
flex-wrap: wrap;
margin-top: 7px;
}
/* Labels take the left of the shared row and wrap; the priority/due/avatars hug the right. */
.kanban-card__metalabels {
flex: 1 1 auto;
min-width: 0;
}
.kanban-card__metaright {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
}
.kanban-card__avatars {
display: inline-flex;
gap: 4px;
}
.board-log__event .board-log__time {
margin-left: 6px;
}
.kanban-prio {
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.65);
font-size: 11.5px;
font-weight: 600;
padding: 3px 9px;
cursor: pointer;
transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.kanban-prio:hover {
border-color: rgba(var(--tint-rgb), 0.35);
color: var(--text-strong);
}
.kanban-prio-chip {
letter-spacing: 0.04em;
}
/* ============================== Setup tour (onboarding) ==============================
First-run flow: full-screen overlay, one animated scene + one decision per step.
All motion is CSS keyframes (no deps); prefers-reduced-motion freezes every scene. */
.onb {
position: fixed;
inset: 0;
z-index: 40; /* above the welcome screen (5) + controls (26); below dialog-stack scrims (55) */
display: flex;
align-items: center;
justify-content: center;
background: var(--canvas-bg);
color: var(--text);
}
.onb-skip {
position: absolute;
/* Clears the traffic lights and the tab bar's drag region: the onboarding overlay covers the
window, so this is the bar's own height (it was a literal 40 that happened to match it). */
top: var(--tabbar-h);
right: 24px;
background: transparent;
border: none;
color: var(--muted);
font-size: 12.5px;
cursor: pointer;
padding: 6px 10px;
}
.onb-skip:hover {
color: var(--text);
}
/* ---- step 0: cover ---- */
.onb-cover {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
max-width: 460px;
}
.onb-cover__brand {
display: flex;
align-items: center;
gap: 14px;
}
.onb-cover__name {
font-size: 34px;
font-weight: 800;
letter-spacing: -0.5px;
}
.onb-cover__tagline {
margin: 6px 0 22px;
font-size: 14px;
color: var(--muted);
}
.onb-cover__props {
display: flex;
flex-direction: column;
gap: 14px;
text-align: left;
margin-bottom: 30px;
}
.onb-prop {
display: flex;
align-items: center;
gap: 12px;
font-size: 13px;
color: rgba(235, 235, 245, 0.75);
}
.onb-prop svg {
width: 20px;
height: 20px;
flex: none;
color: var(--accent);
}
.onb-cover__cta {
font-size: 14px;
padding: 10px 22px;
}
/* ghost nodes floating behind the cover */
.onb-ghosts {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.onb-ghost {
position: absolute;
width: 150px;
height: 92px;
border: 1px solid rgba(163, 141, 255, 0.16);
border-radius: 10px;
background: rgba(163, 141, 255, 0.045);
animation: onb-float 9s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-ghost--a { top: 14%; left: 12%; }
.onb-ghost--b { top: 22%; right: 14%; width: 180px; animation-delay: -3s; }
.onb-ghost--c { bottom: 18%; left: 20%; width: 120px; height: 74px; animation-delay: -5s; }
.onb-ghost--d { bottom: 24%; right: 18%; animation-delay: -7s; }
.onb-ghost-edges {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.onb-ghost-edges path {
fill: none;
stroke: rgba(163, 141, 255, 0.12);
stroke-width: 1.5;
stroke-dasharray: 6 7;
animation: onb-dash 14s linear infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-14px); }
}
@keyframes onb-dash {
to { stroke-dashoffset: -260; }
}
/* ---- steps 1-4: two-pane card ---- */
.onb-card {
display: flex;
width: min(820px, calc(100vw - 80px));
min-height: 400px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 24px 70px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
}
.onb-scene {
flex: 0 0 46%;
position: relative;
background:
radial-gradient(rgba(var(--tint-rgb), 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
var(--surface-black);
border-right: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
}
.onb-pane {
flex: 1;
display: flex;
flex-direction: column;
padding: 30px 32px 22px;
min-width: 0;
}
.onb-step-no {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 10px;
}
.onb-pane h2 {
margin: 0 0 8px;
font-size: 20px;
font-weight: 700;
letter-spacing: -0.3px;
}
.onb-pane p {
margin: 0 0 18px;
font-size: 13px;
line-height: 1.55;
color: rgba(235, 235, 245, 0.72);
}
.onb-pane p .kbd {
margin: 0 1px;
}
.onb-label {
font-size: 11.5px;
font-weight: 600;
color: var(--muted);
margin-bottom: 8px;
}
.onb-toggle-row {
display: flex;
align-items: center;
gap: 10px;
margin: 14px 0 4px;
font-size: 13px;
color: var(--text, #f5f5f7);
}
.onb-fineprint {
margin-top: 10px;
font-size: 11.5px;
color: var(--muted);
line-height: 1.5;
}
.onb-nav {
margin-top: auto;
padding-top: 18px;
display: flex;
align-items: center;
justify-content: space-between;
}
.onb-dots {
display: flex;
gap: 6px;
}
.onb-dots span {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(var(--tint-rgb), 0.18);
transition: background 0.15s;
}
.onb-dots span.is-active {
background: var(--accent);
}
.onb-nav__btns {
display: flex;
gap: 8px;
}
.onb-btn {
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 12.5px;
font-weight: 600;
padding: 7px 14px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
}
.onb-btn:hover {
background: rgba(var(--tint-rgb), 0.1);
}
.onb-btn--primary {
background: var(--accent);
border-color: transparent;
color: #fff;
}
.onb-btn--primary:hover {
background: var(--accent);
filter: brightness(1.12);
}
/* ---- agent picker ---- */
.onb-agent-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.onb-agent {
display: flex;
align-items: center;
gap: 8px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text);
font-size: 12.5px;
font-weight: 600;
padding: 10px 12px;
cursor: pointer;
transition: border-color 0.12s, background 0.12s;
}
.onb-agent:hover {
background: rgba(var(--tint-rgb), 0.07);
}
.onb-agent.is-selected {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.onb-dot {
width: 9px;
height: 9px;
border-radius: 50%;
flex: none;
}
/* ---- dictation model list ---- */
.onb-models {
display: flex;
flex-direction: column;
gap: 6px;
}
.onb-model {
position: relative;
display: flex;
align-items: center;
gap: 9px;
background: rgba(var(--tint-rgb), 0.04);
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text);
font-size: 12.5px;
padding: 8px 12px;
cursor: pointer;
transition: border-color 0.12s, background 0.12s;
overflow: hidden;
}
.onb-model:hover {
background: rgba(var(--tint-rgb), 0.07);
}
.onb-model.is-selected {
border-color: var(--accent);
}
.onb-model.is-locked {
opacity: 0.6;
}
.onb-model__radio {
width: 12px;
height: 12px;
border-radius: 50%;
border: 1.5px solid rgba(var(--tint-rgb), 0.35);
flex: none;
}
.onb-model.is-selected .onb-model__radio {
border-color: var(--accent);
background: radial-gradient(circle at center, var(--accent) 0 4px, transparent 4.5px);
}
.onb-model__name {
font-weight: 600;
}
.onb-model__size {
color: var(--muted);
font-size: 11.5px;
}
.onb-pro {
margin-left: auto;
font-size: 9.5px;
font-weight: 800;
letter-spacing: 0.06em;
color: #e7c46a;
border: 1px solid rgba(231, 196, 106, 0.45);
border-radius: 5px;
padding: 1.5px 5px;
}
.onb-model__ok {
display: inline-flex;
align-items: center;
color: var(--success);
margin-left: auto; /* right-aligned when it's the only trailing chip… */
}
.onb-pro + .onb-model__ok {
margin-left: 6px; /* …but sits beside the PRO chip when both are shown */
}
.onb-model__bar {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2.5px;
background: rgba(var(--tint-rgb), 0.08);
}
.onb-model__bar span {
display: block;
height: 100%;
background: var(--accent);
transition: width 0.25s ease;
}
/* ---- kanban try-it ---- */
.onb-tryit {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 13px;
border: 1px dashed rgba(var(--tint-rgb), 0.22);
border-radius: 10px;
padding: 12px 16px;
color: rgba(235, 235, 245, 0.8);
}
.onb-defaultview {
display: flex;
align-items: center;
gap: 10px;
margin-top: 16px;
}
.onb-defaultview__label {
font-size: 13px;
color: rgba(235, 235, 245, 0.7);
}
.onb-seg {
display: inline-flex;
border: 1px solid rgba(var(--tint-rgb), 0.16);
border-radius: 8px;
overflow: hidden;
}
.onb-seg__btn {
background: none;
border: none;
color: rgba(235, 235, 245, 0.75);
font-size: 13px;
padding: 6px 14px;
cursor: pointer;
}
.onb-seg__btn + .onb-seg__btn {
border-left: 1px solid rgba(var(--tint-rgb), 0.14);
}
.onb-seg__btn.is-on {
background: var(--accent);
color: #fff;
}
.onb-tryit.is-done {
border-style: solid;
border-color: rgba(52, 199, 89, 0.5);
color: var(--success);
font-weight: 600;
}
/* ---- notify actions ---- */
.onb-notify-actions {
display: flex;
flex-direction: column;
gap: 8px;
align-items: stretch;
max-width: 280px;
}
/* ============ scenes ============ */
.onb-scene-canvas {
position: relative;
width: 100%;
height: 100%;
min-height: 320px;
}
/* -- agents scene: cursor → right-click → menu → node pop (one shared 7s loop) -- */
.onb-cursor {
position: absolute;
left: 30px;
top: 200px;
animation: onb-cursor-path 7s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
@keyframes onb-cursor-path {
0% { transform: translate(0, 0); }
16%, 58% { transform: translate(58px, -78px); } /* arrive at the click point, dwell */
74%, 100% { transform: translate(150px, -40px); } /* drift toward the spawned node */
}
.onb-ripple {
position: absolute;
left: 96px;
top: 128px;
width: 26px;
height: 26px;
border-radius: 50%;
border: 1.5px solid rgba(163, 141, 255, 0.8);
opacity: 0;
animation: onb-ripple 7s ease-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-ripple {
0%, 16% { opacity: 0; transform: scale(0.3); }
20% { opacity: 0.9; transform: scale(0.5); }
30%, 100% { opacity: 0; transform: scale(1.6); }
}
/* The scene's context menu is the app's REAL .ctx-menu — this modifier only re-anchors it
into the scene (absolute, no fixed/z-index) and makes it a non-interactive replay. */
.ctx-menu.onb-menu {
position: absolute;
left: 112px;
top: 132px;
z-index: auto;
min-width: 150px;
pointer-events: none;
opacity: 0;
transform-origin: top left;
animation: onb-menu 7s ease infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-menu {
0%, 19% { opacity: 0; transform: scale(0.92); }
23%, 52% { opacity: 1; transform: scale(1); }
56%, 100% { opacity: 0; transform: scale(0.97); }
}
.onb-menu .ctx-item {
font-size: 11.5px;
padding: 5px 8px;
}
.onb-menu__hl {
animation: onb-menu-hl 7s ease infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-menu-hl {
0%, 30% { background: transparent; }
36%, 54% { background: var(--accent); color: #fff; }
58%, 100% { background: transparent; }
}
/* The spawned node mirrors the real .term-node look: 3px color top border, panel header. */
.onb-node {
position: absolute;
left: 128px;
top: 96px;
width: 180px;
background: var(--panel);
border: 1px solid var(--border);
border-top-width: 3px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
opacity: 0;
animation: onb-node-pop 7s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-node-pop {
0%, 56% { opacity: 0; transform: scale(0.7); }
63%, 94% { opacity: 1; transform: scale(1); }
98%, 100% { opacity: 0; transform: scale(0.96); }
}
.onb-node__head {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 8px;
background: var(--panel-header);
font-size: 10.5px;
font-weight: 600;
}
.onb-node__color {
width: 10px;
height: 10px;
border-radius: 50%;
flex: none;
}
.onb-node__head .term-node__status {
font-size: 8.5px;
}
.onb-node__title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.onb-node__body {
padding: 9px 10px 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
.onb-line {
height: 5px;
border-radius: 3px;
background: rgba(var(--tint-rgb), 0.12);
}
.onb-line--w70 { width: 70%; }
.onb-line--w50 { width: 50%; }
.onb-line--w60 { width: 60%; }
/* -- dictation scene -- */
.onb-scene--dictation {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 26px;
}
.onb-kbd-row {
display: flex;
align-items: center;
gap: 6px;
}
/* One shared 8s timeline, in SEQUENCE (mirrors the real flow): keys go down (~5%),
the mic + waveform live only while held (8–52%), release (~55%), then the transcribed
text types out (58–90%) — nothing is written until you let go. */
.onb-kbd {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 34px;
height: 34px;
padding: 0 8px;
background: var(--surface-deep);
border: 1px solid var(--border);
border-bottom-width: 3px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
animation: onb-keypress 8s ease infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-kbd--hold {
animation-name: onb-keyhold;
}
@keyframes onb-keypress {
0%, 3% { transform: translateY(0); border-bottom-width: 3px; }
5%, 9% { transform: translateY(2px); border-bottom-width: 1px; }
12%, 100% { transform: translateY(0); border-bottom-width: 3px; }
}
@keyframes onb-keyhold {
0%, 3% { transform: translateY(0); border-bottom-width: 3px; }
6%, 52% { transform: translateY(2px); border-bottom-width: 1px; }
57%, 100% { transform: translateY(0); border-bottom-width: 3px; }
}
.onb-kbd-hint {
font-size: 10.5px;
color: var(--muted);
margin-left: 4px;
opacity: 0;
animation: onb-holdhint 8s ease infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-holdhint {
0%, 5% { opacity: 0; }
9%, 50% { opacity: 1; }
56%, 100% { opacity: 0; }
}
/* gates the whole mic block to the hold window; the loops inside keep their own rhythm */
.onb-mic-wrap {
opacity: 0;
animation: onb-micgate 8s ease infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-micgate {
0%, 6% { opacity: 0; transform: scale(0.9); }
10%, 52% { opacity: 1; transform: scale(1); }
58%, 100% { opacity: 0; transform: scale(0.95); }
}
.onb-mic {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
color: #ff375f;
}
.onb-mic__ring {
position: absolute;
top: -14px;
width: 50px;
height: 50px;
border-radius: 50%;
border: 1.5px solid rgba(255, 55, 95, 0.5);
animation: onb-ring 2.4s ease-out infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-mic__ring--late {
animation-delay: 1.2s;
}
@keyframes onb-ring {
0% { opacity: 0.8; transform: scale(0.5); }
100% { opacity: 0; transform: scale(1.5); }
}
.onb-wave {
display: flex;
align-items: center;
gap: 4px;
height: 22px;
}
.onb-wave span {
width: 4px;
height: 8px;
border-radius: 2px;
background: rgba(255, 55, 95, 0.85);
animation: onb-wave 1s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-wave {
0%, 100% { height: 6px; }
50% { height: 20px; }
}
.onb-term-line {
display: flex;
align-items: center;
gap: 8px;
width: 78%;
background: var(--surface-sunken);
border: 1px solid var(--border);
border-radius: 8px;
padding: 9px 12px;
font-family: Menlo, Monaco, monospace;
font-size: 11px;
}
.onb-term-prompt {
color: var(--accent);
font-weight: 700;
}
.onb-term-typed {
overflow: hidden;
white-space: nowrap;
max-width: 0;
animation: onb-type 8s steps(32) infinite;
animation-play-state: var(--nt-anim-state);
color: rgba(235, 235, 245, 0.85);
}
/* types only AFTER the release (58%) — the transcription arrives when you let go */
@keyframes onb-type {
0%, 58% { max-width: 0; }
90%, 100% { max-width: 100%; }
}
.onb-caret {
width: 6px;
height: 13px;
background: rgba(235, 235, 245, 0.8);
animation: onb-caret 1s steps(1) infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-caret {
50% { opacity: 0; }
}
/* -- kanban scene (positions transition; the JS interval flips .is-board) -- */
.onb-scene--kanban {
display: flex;
align-items: center;
justify-content: center;
}
/* CENTERED stage the cards + columns live in (the action must not hug the top-left) */
.onb-kstage {
position: relative;
width: 312px;
height: 210px;
}
/* column panels mirror the real board's .kanban-col (bg/border/radius), scaled down */
.onb-kcol {
position: absolute;
top: 0;
bottom: 0;
width: 96px;
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 12px;
opacity: 0;
transition: opacity 0.5s ease 0.25s;
}
.onb-kcol__h {
padding: 8px 9px 6px;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}
.onb-kstage.is-board .onb-kcol {
opacity: 1;
}
.onb-mini {
position: absolute;
display: flex;
align-items: center;
gap: 5px;
height: 24px;
padding: 0 7px;
background: var(--surface-deep);
border: 1px solid var(--border);
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
transition: left 0.7s cubic-bezier(0.4, 0.9, 0.3, 1), top 0.7s cubic-bezier(0.4, 0.9, 0.3, 1),
transform 0.7s ease, width 0.7s ease;
}
.onb-mini__dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
flex: none;
}
.onb-mini:nth-child(odd) .onb-mini__dot {
background: #d97757;
}
.onb-mini__bar {
flex: 1;
height: 4px;
border-radius: 2px;
background: rgba(var(--tint-rgb), 0.14);
}
.onb-mini__bar--short {
flex: 0 0 46px;
}
/* -- chat-view scene (⌘M on an agent node; the JS interval / the real keystroke flips .is-chat) --
The node is the agents scene's .onb-node held static; the two faces crossfade inside a fixed
body so the node never changes size, and the chat bubbles mirror .term-chat__msg--user /
--assistant (accent bubble right, tinted bubble left) so the tour draws what ⌘M shows. */
.onb-scene--chat {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 22px;
}
.onb-cview__keys .onb-kbd {
animation: none;
transition: transform 0.12s ease, border-bottom-width 0.12s ease;
}
/* the chord "goes down" on every flip — the keys are what did it */
.onb-cview__keys.is-chat .onb-kbd {
transform: translateY(2px);
border-bottom-width: 1px;
}
.onb-cview__mode {
margin-left: auto;
font-size: 8.5px;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
}
.onb-cview__body {
position: relative;
height: 112px;
}
.onb-cview__face {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
gap: 6px;
padding: 9px 10px 10px;
transition: opacity 0.45s ease, transform 0.45s ease;
}
.onb-cview__term {
opacity: 1;
transform: translateY(0);
}
.onb-cview__chat {
opacity: 0;
transform: translateY(6px);
}
.onb-cview.is-chat .onb-cview__term {
opacity: 0;
transform: translateY(-6px);
}
.onb-cview.is-chat .onb-cview__chat {
opacity: 1;
transform: translateY(0);
}
.onb-cview__prompt {
display: flex;
align-items: center;
gap: 6px;
font-family: Menlo, Monaco, monospace;
font-size: 10px;
color: rgba(235, 235, 245, 0.85);
margin-bottom: 2px;
}
.onb-cview__msg {
max-width: 82%;
padding: 6px 8px;
border-radius: 8px;
font-size: 10px;
line-height: 1.4;
}
.onb-cview__msg--user {
align-self: flex-end;
background: var(--accent, #0a84ff);
color: #fff;
}
.onb-cview__msg--assistant {
align-self: flex-start;
width: 72%;
display: flex;
flex-direction: column;
gap: 5px;
background: rgba(var(--tint-rgb), 0.06);
}
.onb-cview__compose {
margin-top: auto;
display: flex;
align-items: center;
height: 22px;
padding: 0 7px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid rgba(var(--tint-rgb), 0.12);
border-radius: 6px;
}
.onb-cview__compose .onb-caret {
height: 11px;
}
/* -- notify scene -- */
/* --- Step: the notch capsule (SceneNotch) ------------------------------------------------
A laptop lid seen from the front: the black top bar carries the notch, the capsule grows out
of it sideways (never taller — the whole point of the real design), and every loop the mini
session panel drops out of the capsule and retracts. */
.onb-scene--notch {
display: flex;
align-items: center;
justify-content: center;
}
.onb-lid {
position: relative;
width: 78%;
max-width: 340px;
border-radius: 12px 12px 6px 6px;
border: 1px solid rgba(var(--tint-rgb), 0.14);
background: var(--surface-black);
overflow: visible;
box-shadow: 0 18px 40px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
}
.onb-lid__bar {
position: relative;
height: 26px;
display: flex;
align-items: flex-start;
justify-content: center;
border-radius: 11px 11px 0 0;
background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.07), rgba(var(--tint-rgb), 0.02));
}
.onb-lid__screen {
height: 132px;
border-radius: 0 0 5px 5px;
background:
radial-gradient(120% 80% at 50% 0%, rgba(163, 141, 255, 0.16), transparent 60%),
#101014;
}
/* The capsule: notch-black, top corners square (fused to the bar), bottom corners rounded. */
.onb-capsule {
position: absolute;
top: 0;
display: flex;
align-items: center;
height: 26px;
padding-left: 8px;
background: var(--canvas-bg);
border-radius: 0 0 10px 10px;
animation: onb-capsule 6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-capsule__left {
display: flex;
align-items: center;
gap: 6px;
}
/* Stands in for the physical notch the capsule is fused to. */
.onb-capsule__notch {
width: 62px;
height: 26px;
}
.onb-capsule__blob {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--state-success);
animation: onb-blob 1.6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-capsule {
0%, 10% { padding-right: 8px; }
30%, 100% { padding-right: 8px; }
}
@keyframes onb-blob {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
/* The mini session panel dropping out of the capsule. */
.onb-notchpanel {
position: absolute;
top: 26px;
width: 168px;
padding: 7px;
display: flex;
flex-direction: column;
gap: 6px;
background: var(--canvas-bg);
border-radius: 0 0 12px 12px;
transform-origin: top center;
animation: onb-notchpanel 6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-notchpanel__row {
display: flex;
align-items: center;
gap: 6px;
}
.onb-notchpanel__go {
margin-left: auto;
font-size: 9px;
font-weight: 600;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 18%, transparent);
border-radius: 4px;
padding: 1px 5px;
}
@keyframes onb-notchpanel {
0%, 22% { transform: scaleY(0.05); opacity: 0; }
34%, 72% { transform: scaleY(1); opacity: 1; }
86%, 100% { transform: scaleY(0.05); opacity: 0; }
}
.onb-scene--notify {
display: flex;
align-items: center;
justify-content: center;
}
.onb-bell {
position: absolute;
top: 46px;
color: rgba(235, 235, 245, 0.45);
transform-origin: top center;
animation: onb-bell 5s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-bell {
0%, 8% { transform: rotate(0); }
12% { transform: rotate(13deg); }
16% { transform: rotate(-11deg); }
20% { transform: rotate(7deg); }
24%, 100% { transform: rotate(0); }
}
.onb-notif {
display: flex;
align-items: center;
gap: 10px;
width: 82%;
background: rgba(var(--menu-rgb), 0.92);
border: 1px solid rgba(var(--tint-rgb), 0.14);
border-radius: 12px;
padding: 10px 12px;
box-shadow: 0 14px 36px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
animation: onb-notif 5s ease infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-notif {
0%, 6% { opacity: 0; transform: translateX(60px); }
14%, 86% { opacity: 1; transform: translateX(0); }
94%, 100% { opacity: 0; transform: translateX(60px); }
}
.onb-notif__icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--surface-sunken);
flex: none;
}
.onb-notif__text {
min-width: 0;
}
.onb-notif__title {
font-size: 12px;
font-weight: 600;
}
.onb-notif__body {
font-size: 11px;
color: rgba(235, 235, 245, 0.6);
}
.onb-notif__time {
margin-left: auto;
font-size: 10px;
color: var(--muted);
align-self: flex-start;
}
/* -- phone scene (mobile companion announcement) -- */
.onb-scene--phone {
display: flex;
align-items: center;
justify-content: center;
}
.onb-phone {
position: relative;
width: 152px;
height: 296px;
background: var(--surface-sunken);
border: 2px solid rgba(var(--tint-rgb), 0.16);
border-radius: 24px;
box-shadow: 0 18px 50px rgba(0, 0, 0, calc(0.55 * var(--shadow-k)));
padding: 28px 10px 12px;
animation: onb-float 7s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-phone__notch {
position: absolute;
top: 9px;
left: 50%;
transform: translateX(-50%);
width: 54px;
height: 9px;
border-radius: 5px;
background: rgba(var(--tint-rgb), 0.1);
}
.onb-phone__rows {
display: flex;
flex-direction: column;
gap: 8px;
}
.onb-phone__row {
display: flex;
align-items: center;
gap: 6px;
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid rgba(var(--tint-rgb), 0.08);
border-radius: 8px;
padding: 7px 8px;
}
/* the real status badges, scaled to phone-row size */
.onb-phone__row .term-node__status {
margin-left: 0;
flex: none;
font-size: 7.5px;
}
.onb-phone__term {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
background: var(--surface-black);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px;
font-family: Menlo, Monaco, monospace;
font-size: 10px;
}
.onb-scene--phone {
position: relative;
}
.onb-soon {
/* pinned over the phone's top-right corner — must not cover the session rows */
position: absolute;
top: 13%;
right: 15%;
transform: rotate(8deg);
background: var(--accent);
color: #fff;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.08em;
padding: 4px 11px;
border-radius: 999px;
box-shadow: 0 8px 20px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
animation: onb-soon 3.2s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@keyframes onb-soon {
0%, 100% { transform: rotate(8deg) scale(1); }
50% { transform: rotate(8deg) scale(1.07); }
}
/* -- shortcuts scene: the palette chord goes down (~5%), the palette drops open under it and the
query types in on the shared 8s timeline (onb-type) -- */
.onb-palette {
width: 250px;
padding: 8px;
border-radius: 12px;
background: var(--surface-deep);
border: 1px solid var(--border);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
display: flex;
flex-direction: column;
gap: 4px;
animation: onb-palette-drop 8s ease infinite;
animation-play-state: var(--nt-anim-state);
}
.onb-palette__input {
display: flex;
align-items: center;
height: 28px;
padding: 0 8px;
margin-bottom: 4px;
border-radius: 7px;
background: rgba(var(--tint-rgb), 0.06);
font-size: 12.5px;
}
.onb-palette__row {
display: flex;
align-items: center;
gap: 8px;
height: 24px;
padding: 0 8px;
border-radius: 6px;
}
.onb-palette__row .onb-mini__bar {
flex: 1;
}
.onb-palette__row.is-hl {
background: color-mix(in srgb, var(--accent) 28%, transparent);
}
@keyframes onb-palette-drop {
0%, 6% { opacity: 0; transform: translateY(-8px) scale(0.97); }
12%, 94% { opacity: 1; transform: none; }
100% { opacity: 0; transform: none; }
}
/* ---- shortcuts step: the essentials list ---- */
.onb-keys {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 14px;
}
.onb-keys__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
font-size: 13px;
color: rgba(235, 235, 245, 0.8);
}
.onb-keys__chord {
display: inline-flex;
gap: 3px;
flex-shrink: 0;
}
/* ---- reduced motion: freeze every scene to a readable final frame ---- */
@media (prefers-reduced-motion: reduce) {
.onb-ghost,
.onb-ghost-edges path,
.onb-cursor,
.onb-ripple,
.onb-kbd,
.onb-mic__ring,
.onb-wave span,
.onb-caret,
.onb-bell,
.onb-notif,
.onb-palette {
animation: none;
}
.onb-menu {
animation: none;
opacity: 1;
}
.onb-menu__hl {
animation: none;
background: var(--accent);
color: #fff;
}
.onb-node {
animation: none;
opacity: 1;
transform: none;
}
.onb-mic-wrap,
.onb-kbd-hint {
animation: none;
opacity: 1;
}
.onb-term-typed {
animation: none;
max-width: 100%;
}
.onb-mini {
transition: none;
}
.onb-cview__face,
.onb-cview__keys .onb-kbd {
transition: none;
}
.onb-phone,
.onb-soon {
animation: none;
}
}
/* Scrollable menu variant for unbounded data-driven lists (the branch pickers): caps the
fixed-position menu to the viewport and scrolls the tail instead of clipping it. Children
must not flex-shrink, or the constrained column compresses rows before overflowing. */
.tab-menu--scroll,
.ctx-menu--scroll {
max-height: min(60vh, 440px);
overflow-y: auto;
overscroll-behavior: contain;
}
.tab-menu--scroll > *,
.ctx-menu--scroll > * {
flex-shrink: 0;
}
.tab-menu--scroll::-webkit-scrollbar,
.ctx-menu--scroll::-webkit-scrollbar {
width: 8px;
}
.tab-menu--scroll::-webkit-scrollbar-thumb,
.ctx-menu--scroll::-webkit-scrollbar-thumb {
background: rgba(var(--tint-rgb), 0.18);
border-radius: 4px;
border: 2px solid transparent;
background-clip: content-box;
}
.tab-menu--scroll::-webkit-scrollbar-track,
.ctx-menu--scroll::-webkit-scrollbar-track {
background: transparent;
}
/* Modal terminal file-drop affordance (mirrors the canvas node's dropping state). */
.kanban-modal__termwrap--drop::after {
content: '';
position: absolute;
inset: 6px;
border: 2px dashed var(--accent);
border-radius: 8px;
background: color-mix(in srgb, var(--accent) 6%, transparent);
pointer-events: none;
z-index: 3;
}
.kanban-modal__upload {
position: absolute;
left: 50%;
bottom: 14px;
transform: translateX(-50%);
z-index: 4;
font-size: 12px;
color: #fff;
background: rgba(0, 0, 0, 0.75);
border: 1px solid rgba(var(--tint-rgb), 0.15);
border-radius: 8px;
padding: 6px 12px;
}
/* Shared browser surface (canvas node + kanban card modal): toolbar on top, webview fills. */
.browser-surface {
flex: 1;
min-height: 0;
height: 100%; /* the canvas node's .editor-node__body is display:block, so flex:1 alone is inert */
display: flex;
flex-direction: column;
}
/* In the card modal the browser pane fills the main area (no node header/toolbar chrome). */
.kanban-modal__pane[data-kind='browser'] {
flex-direction: column;
}
.kanban-modal__pane[data-kind='browser'] .browser-surface {
width: 100%;
}
/* Reorder drop indicator: an accent line at the card edge the drop will land on. */
.kanban-card--drop-before,
.kanban-card--drop-after {
position: relative;
}
.kanban-card--drop-before::before,
.kanban-card--drop-after::after {
content: '';
position: absolute;
left: 0;
right: 0;
height: 2px;
background: var(--accent);
border-radius: 2px;
box-shadow: 0 0 6px var(--accent);
z-index: 2;
}
.kanban-card--drop-before::before {
top: -5px;
}
.kanban-card--drop-after::after {
bottom: -5px;
}
/* ---- one-shot mobile-launch announcement (MobileLaunchCard) ---- */
.mlaunch__backdrop {
position: fixed;
inset: 0;
z-index: 40; /* the onboarding layer — the two never show together */
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.72);
}
.mlaunch {
position: relative;
width: min(440px, calc(100vw - 48px));
max-height: calc(100vh - 96px);
overflow-y: auto;
padding: 34px 34px 28px;
border-radius: 20px;
background: var(--surface-black);
border: 1px solid rgba(139, 92, 246, 0.35);
box-shadow: 0 30px 90px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
text-align: center;
color: var(--text);
}
/* the promo's purple halo, behind the phone mockup */
.mlaunch::before {
content: '';
position: absolute;
top: 120px;
left: 50%;
transform: translateX(-50%);
width: 340px;
height: 340px;
border-radius: 50%;
background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, rgba(139, 92, 246, 0) 68%);
pointer-events: none;
}
.mlaunch__title {
margin: 0 0 6px;
font-size: 27px;
font-weight: 800;
letter-spacing: -0.02em;
}
.mlaunch__title span {
color: #a78bfa;
}
.mlaunch__sub {
margin: 0 0 14px;
font-size: 13px;
color: var(--muted);
}
.mlaunch__scene {
position: relative; /* keeps the halo behind, the phone above */
display: flex;
justify-content: center;
margin-bottom: 14px;
}
.mlaunch__body {
margin: 0 0 18px;
font-size: 12.5px;
line-height: 1.55;
color: var(--muted);
text-align: left;
}
.mlaunch__actions {
display: flex;
justify-content: center;
gap: 10px;
}
/* ---- Settings → Terminal: the live appearance preview ---- */
/* A real (non-interactive) xterm at a fixed 46x9 grid. It sizes itself from the font metrics, so
the frame just wraps it — no fit addon is involved and nothing here may set a width the terminal
would then be measured against. */
.settings-term-preview {
display: inline-block;
padding: 8px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--term-bg, var(--bg));
overflow: hidden;
}
/* The preview never scrolls (one screen, no scrollback in view) — hide the reserved bar the same
way the canvas terminals do, so it can't draw a dead band down the right-hand side. */
.settings-term-preview .xterm-viewport {
scrollbar-width: none;
}
.settings-term-preview .xterm-viewport::-webkit-scrollbar {
width: 0;
height: 0;
}
/* ---- Settings → Terminal: the colour-theme dropdown ---- */
/* A theme IS its palette, so every row carries one. Built on the app's own menu idiom
(`.bind-select` trigger + portaled `.tab-menu`), not a native <select>, which can only show
names. */
.theme-swatch {
display: inline-flex;
align-items: center;
gap: 3px;
flex-shrink: 0;
padding: 3px 5px;
border-radius: 4px;
border: 1px solid var(--border);
}
.theme-swatch__dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.theme-select__trigger {
/* The trigger sits in a FieldRow's control slot, which is `shrink-0` — so it needs a width of
its own rather than the `width: 100%` .bind-select takes inside a dialog form. */
width: 260px;
}
.theme-select__menu {
max-height: 340px;
overflow-y: auto;
}
.theme-select__list {
display: contents;
}
/* Liquid Glass: the swatch abutted the name (~3px, visual QA M6). Gated like the rest of the look. */
:root[data-nt-glass='on'] .theme-select__menu button {
gap: 8px;
}
/* …and the trigger left-aligns the name like the list does (space-between centred it, M6). */
:root[data-nt-glass='on'] .theme-select__trigger .bind-select__val {
flex: 1;
}
.theme-select__group {
padding: 6px 10px 2px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted-2);
}
.theme-select__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ================================ Polish pass (issue #78) ==================================
Enter animations for the shared overlay shells + quiet scrollbars. Rules of the pass:
transform/opacity ONLY (nothing that forces layout — terminals must keep streaming at 60fps),
one-shot on mount (no exit mechanism: every shell hard-unmounts via `{open && portal}`, and
keeping portals alive for an exit tween would thread a closing state through 15 dialogs — the
kanban modal set this precedent and it reads fine), and the existing token palette only.
NEVER animate a shell that CONTAINS a terminal: there the constraint is stronger than
"no layout" — an animating `transform` on an ancestor of a glyph-attached terminal
desynchronizes the shared canvas (grid origins are measured from the DOM rect, the canvas
draws from the camera), so such a shell must leave the shared renderer for the duration,
the way `dragging` already does. Today's selectors are overlays/menus/drawers/tooltips only. */
@keyframes nt-overlay-fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes nt-surface-pop {
from {
opacity: 0;
transform: scale(0.97) translateY(4px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes nt-menu-in {
from {
opacity: 0;
transform: translateY(-3px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes nt-drawer-in {
from {
opacity: 0;
transform: translateX(10px);
}
to {
opacity: 1;
transform: none;
}
}
/* Scrims fade fast — they must never make the surface feel late. */
.confirm-overlay,
.sc-overlay,
.palette-overlay,
.drawer-overlay {
animation: nt-overlay-fade 0.12s ease-out;
}
/* Dialog-family surfaces pop with the kanban modal's spring curve. */
.confirm,
.shortcuts,
.palette {
animation: nt-surface-pop 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Menus are twitch surfaces — barely-there settle, never a bounce. */
.ctx-menu,
.tab-menu {
animation: nt-menu-in 0.12s ease-out;
}
/* Drawers slide in from their anchored edge (they open right-aligned). */
.drawer {
animation: nt-drawer-in 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.tooltip {
animation: nt-overlay-fade 0.12s ease-out;
}
/* Same contract as the mascot pulse above: motion is decoration; everything must read without it. */
@media (prefers-reduced-motion: reduce) {
.confirm-overlay,
.sc-overlay,
.palette-overlay,
.drawer-overlay,
.confirm,
.shortcuts,
.palette,
.ctx-menu,
.tab-menu,
.drawer,
.tooltip {
animation: none;
}
}
/* --- Quiet scrollbars everywhere -----------------------------------------------------------
The standard properties, not ::-webkit-scrollbar: `scrollbar-color` INHERITS (set once on
:root), `scrollbar-width` does not (hence the `*`), and on macOS they keep the native
overlay behavior — thumbs appear on scroll instead of reserving a chunky gutter, which is
what made the default bars read as foreign controls in every panel. Setting a standard
property also makes Chromium ignore an element's ::-webkit-scrollbar rules, so the three
deliberately-HIDDEN scrollbars (tab strip, xterm viewports) keep working through the
`scrollbar-width: none` they already declare, and the banner/menu custom thumbs converge on
this same thin themed look instead of their hand-rolled webkit variants. */
:root {
scrollbar-color: rgba(var(--tint-rgb), 0.22) transparent;
}
* {
scrollbar-width: thin;
}
/* ================================= Focus mode (issue #78) ==================================
One terminal fills the window. The surface is a fixed opaque layer ABOVE the canvas (z 40 —
over the sidebar's 12 and the dock's 20, under menus at 46 and dialogs at 55/70), and the
focused `.term-node` is REPARENTED into it (TerminalNode's layout effect) — same element,
same xterm, no respawn. Chrome is not "hidden": it simply sits under the opaque surface, and
the dock is lifted above it (z 41) on pointer proximity / hover. */
.focus-surface {
position: fixed;
inset: 0;
z-index: 40;
display: none;
}
.focus-surface.is-active {
display: block;
background: var(--canvas-bg);
}
/* The reparented node root: fill the surface edge to edge. width/height 100% still resolve
against the surface; the absolute inset pins it regardless of the flow-node sizing props. */
.focus-surface .term-node {
position: absolute;
inset: 0;
width: auto;
height: auto;
border-radius: 0;
}
/* Canvas-only affordances are meaningless off-canvas: resize grips, link handles, flow ports. */
.focus-surface .react-flow__resize-control,
.focus-surface .bridge-handle,
.focus-surface .react-flow__handle {
display: none;
}
.focus-exit {
position: absolute;
top: 10px;
right: 14px;
z-index: 2;
border: 1px solid var(--border);
background: rgba(var(--menu-rgb), 0.92);
color: var(--text);
border-radius: 999px;
font-size: 11px;
padding: 4px 12px;
cursor: pointer;
opacity: 0.4;
transition: opacity 0.16s ease-out;
}
.focus-exit:hover {
opacity: 1;
}
/* The canvas itself goes display:none, not merely covered (review finding on #267): an
IntersectionObserver does not model occlusion, so covered-but-displayed terminals kept
reporting visible, kept their WebGL contexts, and a full budget then refused the one node
filling the screen (tryGrant only evicts HIDDEN holders). display:none zeroes their geometry,
they report hidden, the budget reclaims them — and 16+ occluded terminals stop rendering
frames nobody can see. Their size votes go null via applyFit's focus gate, like the board. */
body.focus-mode .flow-wrap {
display: none;
}
/* Dock reveal: proximity (Canvas toggles `focus-reveal-bottom` on mousemove) or direct hover
keeps it up once revealed. Lifted above the surface, faded via opacity only. */
body.focus-mode .dock {
z-index: 41;
opacity: 0;
pointer-events: none;
transition: opacity 0.16s ease-out;
}
body.focus-mode.focus-reveal-bottom .dock,
body.focus-mode .dock:hover {
opacity: 1;
pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
.focus-exit,
body.focus-mode .dock {
transition: none;
}
}
/* S6 — account identity + provenance pills (AccountIdentityPills). One cluster wherever a Codex
account is shown (settings, node chrome, create/switch menus) so an account reads identically
everywhere. Theme-aware via --tint-rgb / semantic tokens; no new colour language. */
.account-identity-pills {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
vertical-align: middle;
}
.account-identity-pill {
max-width: 22ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 1px 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
color: var(--text);
background: rgba(var(--tint-rgb), 0.08);
}
.account-provenance-pill {
flex: none;
padding: 1px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 500;
color: var(--muted);
background: rgba(var(--tint-rgb), 0.05);
border: 1px solid var(--border);
}
.account-identity-check {
flex: none;
line-height: 1;
color: var(--accent);
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
padding: 0;
}
/* A managed home that is missing / an account that cannot be operated: the same cluster, warned.
Recolour text + outline with the warn token; no tinted fill (there is no --warn-rgb to build
a translucent background from, and the theme guard forbids referencing an undefined variable). */
.account-identity-pills--warning .account-identity-pill,
.account-identity-pills--warning .account-provenance-pill {
color: var(--warn);
border: 1px solid var(--warn);
background: transparent;
}
/* ── Trigger node (issue #493) ──────────────────────────────────────────────────────────────── */
.trigger-node {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: var(--surface-black);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
font-size: 12px;
color: rgba(255, 255, 255, 0.85);
}
.trigger-node.selected {
box-shadow: 0 0 0 2px var(--accent);
}
.trigger-node__header {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
flex: 0 0 auto;
}
.trigger-node__chip {
flex: 0 0 auto;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.06em;
padding: 2px 6px;
border-radius: 999px;
border: 1px solid transparent;
}
.trigger-node__chip--armed { color: var(--success); border-color: color-mix(in srgb, var(--state-success) 50%, transparent); }
.trigger-node__chip--disarmed { color: var(--state-queued); border-color: color-mix(in srgb, var(--state-queued) 50%, transparent); }
.trigger-node__chip--changed { color: var(--warn); border-color: color-mix(in srgb, var(--state-warning) 50%, transparent); }
.trigger-node__chip--invalid { color: var(--warn); border-color: color-mix(in srgb, var(--state-warning) 50%, transparent); }
.trigger-node__body {
flex: 1 1 auto;
overflow-y: auto;
padding: 8px;
display: flex;
flex-direction: column;
gap: 6px;
cursor: default;
}
.trigger-node__schedule { font-weight: 600; }
.trigger-node__countdown { color: var(--accent); font-weight: 500; }
.trigger-node__target { color: rgba(255, 255, 255, 0.65); }
.trigger-node__payload {
margin: 0;
padding: 6px;
background: rgba(0, 0, 0, 0.35);
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
white-space: pre-wrap;
word-break: break-word;
max-height: 72px;
overflow-y: auto;
}
.trigger-node__state-line,
.trigger-node__note { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.trigger-node__error { color: var(--warn); font-size: 11px; }
.trigger-node__row { display: flex; gap: 6px; }
.trigger-node__row button {
background: rgba(255, 255, 255, 0.08);
color: inherit;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 6px;
padding: 3px 10px;
font-size: 11px;
cursor: pointer;
}
.trigger-node__row button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.trigger-node__row button:disabled { opacity: 0.45; cursor: default; }
.trigger-node__form { display: flex; flex-direction: column; gap: 6px; }
.trigger-node__form label { display: flex; flex-direction: column; gap: 3px; color: rgba(255, 255, 255, 0.65); }
.trigger-node__form input,
.trigger-node__form select,
.trigger-node__form textarea {
background: rgba(0, 0, 0, 0.35);
color: inherit;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 6px;
padding: 4px 6px;
font-size: 11px;
}
.trigger-node__form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.trigger-node__runs { display: flex; flex-direction: column; gap: 3px; }
.trigger-node__run { display: flex; align-items: center; gap: 6px; }
.trigger-node__run-chip {
font-size: 9px;
font-weight: 700;
letter-spacing: 0.05em;
padding: 1px 6px;
border-radius: 999px;
border: 1px solid transparent;
text-transform: uppercase;
}
.trigger-node__run-chip--ok { color: var(--success); border-color: color-mix(in srgb, var(--state-success) 50%, transparent); }
.trigger-node__run-chip--warn { color: var(--warn); border-color: color-mix(in srgb, var(--state-warning) 50%, transparent); }
.trigger-node__run-chip--muted { color: var(--state-queued); border-color: color-mix(in srgb, var(--state-queued) 50%, transparent); }
.trigger-node__run-time { color: rgba(255, 255, 255, 0.45); font-size: 10px; }
.trigger-node__confirm { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 12px; }
.trigger-node__confirm .trigger-node__payload { max-height: 140px; }
/* ---- Settings → Speech: the language picker (issue #586) ---- */
/* Whisper knows 100 languages, so this is the app's searchable menu idiom (`.bind-select`
trigger + portaled `.tab-menu` with a pinned filter) rather than a native <select>, which
can neither be searched nor show a code it does not carry. */
.speech-lang__trigger {
width: 260px;
}
.speech-lang__endonym {
margin-left: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
}
.speech-lang__menu {
width: 320px;
max-width: calc(100vw - 24px);
}
.speech-lang__row {
gap: 8px;
}
/* Keyboard cursor. Same fill as :hover so arrowing and pointing look like one thing. */
.speech-lang__row.is-active {
background: var(--panel-header);
}
.speech-lang__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.speech-lang__hint {
margin-left: auto;
padding-left: 8px;
flex-shrink: 0;
color: var(--muted-2);
font-size: 12px;
}
.speech-lang__empty {
padding: 8px 10px;
color: var(--muted);
font-size: 13px;
}
/* ── Node icons (emoji or picture) ─────────────────────────────────────────────────────────
One shared box for every surface that draws a node's icon — canvas header, kanban card, card
modal, sessions sidebar — so the same session reads the same in all four. Sized by the caller
(inline width/height) because a 13px sidebar row and a 16px modal header want different boxes;
everything else about how it draws is here.
`line-height: 1` matters more than it looks: an emoji inherits the surrounding line box, and a
header row that is exactly its own text height grows by a couple of px when one is inserted —
which nudges every chip beside it. */
.node-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
line-height: 1;
overflow: hidden;
/* Emoji fonts differ in how much of the em they fill; centering the glyph in a fixed box keeps
a 🚀 and a 🟢 optically the same size rather than the same font-size. */
text-align: center;
}
.node-icon svg {
display: block;
}
.node-icon img {
width: 100%;
height: 100%;
/* `contain`, not `cover`: an icon the user picked is usually a logo, and cropping a logo to a
square is the one thing that makes it unrecognizable at 14px. */
object-fit: contain;
border-radius: 3px;
display: block;
}
/* The canvas node header's icon is a button (click re-opens the picker) but must not look like
one — it sits between the color swatch and the title, which are both flat. */
.term-node__icon {
background: none;
border: none;
padding: 0;
margin: 0;
display: inline-flex;
align-items: center;
cursor: pointer;
flex-shrink: 0;
opacity: 0.95;
}
.term-node__icon:hover {
opacity: 1;
}
.kanban-card__row > .node-icon.kanban-card__icon {
margin-top: 4px; /* optically centers on the first title line, like the color dot beside it */
}
/* The card modal always offers the action, so its slot is present even with no icon set — muted
until it has one, so an unset icon reads as an affordance rather than as a missing image. */
.kanban-modal__icon {
background: none;
border: none;
padding: 2px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--muted);
border-radius: 5px;
flex-shrink: 0;
}
.kanban-modal__icon:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.kanban-modal__icon--empty {
opacity: 0.5;
}
.kanban-modal__icon--empty:hover {
opacity: 1;
}
/* ── The icon picker dialog ───────────────────────────────────────────────────────────────── */
.node-icon-dialog {
min-width: 340px;
}
.node-icon-dialog__grid {
display: grid;
grid-template-columns: repeat(9, 1fr);
gap: 2px;
margin: 10px 0 4px;
}
.node-icon-dialog__swatch {
background: none;
border: none;
border-radius: 6px;
padding: 4px 0;
font-size: 18px;
line-height: 1.2;
cursor: pointer;
}
.node-icon-dialog__swatch:hover {
background: rgba(var(--tint-rgb), 0.12);
}
.node-icon-dialog__swatch.is-current {
background: color-mix(in srgb, var(--accent) 35%, transparent);
}
/* A glyph swatch (issue #291) draws an svg in `currentColor`, so it needs the text color a
button does not inherit, and centering the emoji swatches get from their line box. */
.node-icon-dialog__swatch--glyph {
display: flex;
align-items: center;
justify-content: center;
color: var(--text);
padding: 5px 0;
}
.node-icon-dialog__row {
display: flex;
gap: 8px;
align-items: center;
margin-top: 6px;
}
.node-icon-dialog__input {
flex: 1;
min-width: 0;
}
.node-icon-dialog__error {
margin: 8px 0 0;
font-size: 12px;
color: var(--danger);
}
/* ── File manager node ─────────────────────────────────────────────────────────────────────
A directory listing pinned to the canvas. Shaped like the sticky note (card + grab header)
rather than the terminal, because it is content you arrange, not a session you attach to. */
.files-node {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: rgba(var(--card-rgb), 0.96);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
.files-node.selected {
box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.files-node__header {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
cursor: grab;
flex-shrink: 0;
}
.files-node__chip {
font-size: 10px;
letter-spacing: 0.4px;
padding: 1px 5px;
border-radius: 4px;
background: rgba(var(--tint-rgb), 0.12);
color: var(--muted);
flex-shrink: 0;
}
.files-node__btn {
background: none;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 13px;
line-height: 1;
padding: 2px 4px;
border-radius: 4px;
flex-shrink: 0;
}
.files-node__btn:hover:not(:disabled) {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
}
.files-node__btn:disabled {
opacity: 0.3;
cursor: default;
}
/* The breadcrumb is one line and never wraps: a two-line path would push the listing down on
every navigation, and the listing is the thing the node exists to show. Deep paths are
collapsed upstream (see `breadcrumbs`), so this only has to refuse to grow. */
.files-node__crumbs {
display: flex;
align-items: center;
flex-wrap: nowrap;
overflow: hidden;
padding: 0 8px 4px;
font-size: 11px;
color: var(--muted);
flex-shrink: 0;
}
.files-node__crumb-wrap {
display: inline-flex;
align-items: center;
min-width: 0;
}
.files-node__sep {
opacity: 0.4;
margin: 0 2px;
}
.files-node__crumb {
background: none;
border: none;
padding: 1px 2px;
color: inherit;
font-size: 11px;
cursor: pointer;
border-radius: 3px;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.files-node__crumb:hover {
color: var(--text);
background: rgba(var(--tint-rgb), 0.1);
}
.files-node__filter {
margin: 0 8px 6px;
padding: 3px 7px;
background: rgba(var(--tint-rgb), 0.06);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-size: 12px;
outline: none;
flex-shrink: 0;
}
.files-node__filter:focus {
border-color: var(--accent);
}
.files-node__list {
/* The offsetParent of its rows — keyboard scrolling reads row.offsetTop against it. */
position: relative;
flex: 1;
overflow-y: auto;
padding: 0 4px 6px;
min-height: 0;
}
/* Focusable so it can take the keyboard (arrows, Enter, type-ahead). The selected row is the
focus indicator, as in a desktop file manager, so the box itself draws no ring. */
.files-node__list:focus {
outline: none;
}
.files-node__row {
display: flex;
align-items: center;
gap: 7px;
padding: 3px 6px;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
color: var(--text);
}
.files-node__row:hover {
background: rgba(var(--tint-rgb), 0.08);
}
/* Selection reads like the Explorer drawer's, and like an OS list: full strength while the list
has the keyboard, muted once focus is elsewhere — so it is clear where a typed letter will go. */
.files-node__row.is-selected {
background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.files-node__list:focus .files-node__row.is-selected {
background: color-mix(in srgb, var(--accent) 26%, transparent);
}
/* Dimmed exactly like the Explorer drawer dims them — same fact (`DirEntry.ignored`), so it must
read the same way in both places. */
.files-node__row.is-ignored {
opacity: 0.45;
}
.files-node__glyph {
width: 14px;
height: 14px;
flex-shrink: 0;
color: var(--muted);
}
.files-node__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* A row's download mark (spinner → ✓ / !), pushed to the row's end. Same colours as the Explorer's
⤓ states — one fact, read the same way on both surfaces. The spinner is `.ex-dl__spin`. */
.files-node__dl {
margin-left: auto;
flex-shrink: 0;
display: inline-flex;
align-items: center;
font-size: 12px;
line-height: 1;
color: var(--muted);
}
.files-node__dl.done {
color: var(--success);
}
.files-node__dl.error {
color: var(--danger);
font-weight: 700;
}
.files-node__empty {
padding: 10px 8px;
font-size: 12px;
color: var(--muted);
}
.files-node__empty--error {
color: var(--danger);
}
.files-node.collapsed .files-node__header {
border-bottom: none;
}
/* ==== Liquid Glass appearance (Settings → Appearance → Liquid Glass) ===========================
Everything below is scoped to `:root[data-nt-glass='on']`, which App.tsx sets only for that
appearance, so the default look is untouched. `--glass-chrome-bg` is the ONE chrome fill: the
resolved `--panel` at the alpha `glassChromeAlpha` computes so the resolved `--text` keeps 4.5:1
over any backdrop (dark 0.70, light 0.745 on the shipped palettes). `--muted` gets no guarantee.
Three rules hold it together:
- Glass is OPT-IN per surface. The shared surface tokens (`--panel`, `--panel-header`,
`--surface-*`) keep their solid theme colours under glass, so a panel, menu, popover or tooltip
that is not listed below is OPAQUE — never see-through without a blur (visual QA round 3: the
tokens used to BE the fill, and every unlisted floating surface became a trap). Only the
surfaces listed here get the translucent fill, and each one gets a working blur with it
(`styles.glass-traps.test.ts` fails otherwise; `scripts/glass-trap-probe.mjs` checks the live
page). `!important` because the minimap's own rule already carries it.
- A piece INSIDE a glass surface paints a lift, a sink or nothing — never a second fill.
- backdrop-filter goes on OUTERMOST containers only. A blur inside another blurred element
re-blurs its parent's already-blurred pixels (and costs a second pass), so nested pieces take
the fill alone. Node blur pauses while the camera moves (`.canvas-moving`) only when Keep blur
while moving is off (Canvas never sets the class otherwise); chrome is static and keeps its
blur. */
:root[data-nt-glass='on'] {
--glass-edge: rgba(var(--tint-rgb), 0.2);
/* Highlights on glass (Phase 4): a row lift is the theme's own ink at low alpha, never another
layer of the fill — re-stacking `--panel-header` on its own panel read as a darker, or
invisible, "highlight" (visual QA H1/H2). Selection that is THE choice on a surface (the
palette's keyboard row, the Settings section) is an accent wash instead (HIG
focus-and-selection: selected list rows take the accent). */
/* Secondary labels on glass (visual QA M3): tertiary (0.25) measured 2.2–2.9:1 on glass at
Readable, and HIG warns against the lowest label levels on thin materials, so tertiary takes
secondary's value and secondary is raised. Still no 4.5:1 promise for --muted (see CLAUDE.md). */
--muted: rgba(var(--tint-rgb), 0.7);
--muted-2: var(--muted);
--glass-lift-hover: rgba(var(--tint-rgb), 0.1);
--glass-lift: rgba(var(--tint-rgb), 0.14);
--glass-select: color-mix(in srgb, var(--accent) 30%, transparent);
--glass-placeholder: rgba(var(--tint-rgb), 0.78);
/* The Glass slider (App.tsx sets the live values inline; these are the Readable-tick defaults):
`--glass-t` 0 = Clear … 1 = Tinted.
Clearer glass blurs a little less and saturates a little more, and refracts at its rim
(`#nt-refract`, components/GlassRefraction.tsx — its strength also follows the slider).
The refraction runs LAST, on already-blurred pixels. First in the chain it left a 20–40px band
of sharp, unblurred backdrop inside every rim (text readable through a menu's edge, at every
slider position): a reference filter ahead of blur() makes Chromium blend the unfiltered
backdrop back in near the edges. Measured on an empty menu over terminal text (high-frequency
energy of a 20px rim band): Clear 2.55 → 0.20, Readable 1.90 → 0.07 — now equal to the
menu's own interior, i.e. no sharper at the rim than in the middle. */
--glass-t: 0.7;
/* Saturation: 1.5 from the Readable tick to Tinted, rising to 1.8 only at Clear (visual QA round
2, N9: 1.6–2.0 turned dark glass over a yellow wallpaper olive and light Clear glass pink;
HIG liquid-glass › Tauri and Electron suggests about 1.2–1.5). */
--glass-sat: calc(150% + 30% * max(0, 1 - var(--glass-t) / 0.7));
/* `--glass-refract` is NOT declared here: App.tsx sets it to `url(#nt-refract)` inline only left
of the Readable tick (lib/glassContrast.ts `glassRefractionOn`), and every chain reads it with
an empty fallback. From the tick to Tinted the bend was 3px or less under a ~20px blur, while
the filter cost as much GPU as all terminal blurs together (M2, one streaming terminal among
six glass ones: 74% → 42%): its feImage source damages a refracting surface's whole rect, so
one changing pixel re-ran the blur of every glass surface around it. */
/* `--glass-frost` (light only, below) is the backdrop squeeze of lib/glassContrast.ts: last in
the text and control chains, a colour matrix that moves no pixels. Unset in dark. */
/* Canvas cards and terminal nodes frost far less toward Clear: 4px at Clear (picked by eye, the
wallpaper reads through), the same 24.4px as before at the Readable tick, 28px at Tinted. No
`--glass-frost` here: the cards' own squeeze (`--glass-node-squeeze`) already carries the frost
floor for their slider position, and stacking both washed them out twice. */
--glass-blur: blur(calc(16px + 12px * var(--glass-t) - 12px * max(0, 1 - var(--glass-t) / 0.7)))
saturate(var(--glass-sat)) var(--glass-refract,);
/* Small controls left of the tick: the backdrop under them is DIMMED (dark theme) or brightened
(light theme) as the fill thins, toward Apple's "dark dimming layer" for bright content
(materials.md). 1 at the tick and right of it; `--glass-control-dim` at Clear. The fill alone
(0.35) left the tab label at 1.98:1 over the Sunrise gradient. It moves backdrop pixels only. */
--glass-control-dim: 0.7;
--glass-control-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(var(--glass-sat))
brightness(calc(1 - (1 - var(--glass-control-dim)) * max(0, 1 - var(--glass-t) / 0.7))) var(--glass-refract,)
var(--glass-frost,);
/* Text surfaces never frost less than at the Readable tick (0.7), whatever the slider says. */
--glass-text-blur: blur(calc(16px + 12px * max(var(--glass-t), 0.7)))
saturate(150%) var(--glass-refract,) var(--glass-frost,);
/* Terminal nodes frost 15% less than the chrome (the user asked for less blur under the terminal
windows): same curve, radius × 0.85, same saturation and refraction. They also FLATTEN the
backdrop's luminance (HIG: regular glass "blurs and adjusts the luminosity"): a blurred photo
under a big pane otherwise reads as smudges on the glass. contrast() only pulls the backdrop
toward mid-grey, so it stays a backdrop colour and cannot touch the 4.5:1 guarantee. Clear
keeps the photo (1), Readable 0.3, Tinted 0 (flat — the tint is 0.95 there anyway). Measured
at Readable, empty glass over the lake photo's snow/water edge: brightness swing 2.2:1 → 1.28:1
(0.51 still left 1.53:1). */
--glass-term-blur: blur(calc((16px + 12px * var(--glass-t) - 12px * max(0, 1 - var(--glass-t) / 0.7)) * 0.85))
saturate(var(--glass-sat)) contrast(calc(1 - var(--glass-t))) var(--glass-refract,);
}
/* Outermost chrome: fill + blur, in two groups (Phase 4 slider scope, lib/glassContrast.ts
`glassChromeAlphas`). TEXT surfaces take `--glass-chrome-bg`, which never drops below the
readable alpha, and a blur that never goes below the Readable tick's (`--glass-text-blur`) — HIG:
the regular variant for anything with a lot of text. The small floating CONTROLS take
`--glass-control-bg`, which follows the slider down to Apple's 0.35 dimming figure at Clear. */
:root[data-nt-glass='on']
:is(
.ctx-menu,
.tab-menu,
.announce-banner,
.update-card,
.confirm,
.logpanel,
.shortcuts,
.palette,
.resume-card,
.usage-popover,
.sessmem-panel,
.sessions-sidebar,
.drawer,
.tooltip,
.phone-pair,
.dictation,
.nt-settings,
.kanban-header,
.kanban-col,
.kanban-add-col,
.kanban-modal,
.remote-dialog,
.pubdlg,
.consent-card,
.github-issue-modal,
.mlaunch,
.empty-canvas-hint
) {
background: var(--glass-chrome-bg) !important;
-webkit-backdrop-filter: var(--glass-text-blur);
backdrop-filter: var(--glass-text-blur);
}
:root[data-nt-glass='on']
:is(
.tabbar,
.controls-cluster > button,
.react-flow__controls,
.react-flow__minimap.minimap,
.minimap-restore button,
.sysres-pill,
.usage-pill,
.usage-refresh,
.focus-exit,
.sessions-icon-cluster button
) {
background: var(--glass-control-bg) !important;
border-color: var(--glass-edge);
-webkit-backdrop-filter: var(--glass-control-blur);
backdrop-filter: var(--glass-control-blur);
}
/* The empty-canvas hint sits straight on the wallpaper, where its faint ink vanished (dark text on a
dark wallpaper in light glass). Under glass it is a small text-surface pill instead. */
:root[data-nt-glass='on'] .empty-canvas-hint {
inset: 50% auto auto 50%;
transform: translate(-50%, -50%);
padding: 14px 20px;
border: 1px solid var(--glass-edge);
border-radius: 14px;
color: var(--text);
}
:root[data-nt-glass='on'] .empty-canvas-hint .kbd {
opacity: 1;
}
:root[data-nt-glass='on'][data-theme='light'] {
/* Lifts a black backdrop to grey 0.5 (GLASS_LIGHT_FROST): light glass over a dark wallpaper reads
as frost, not mud. Only lifts, so dark ink on it only gains contrast. */
--glass-frost: contrast(0.330) brightness(1.504);
--glass-control-dim: 1.3;
--muted: rgba(var(--tint-rgb), 0.8);
--glass-placeholder: rgba(var(--tint-rgb), 0.85);
}
/* The pills' own hovers are opaque literals (`rgba(44,44,46,.95)` is a dark-theme colour): on
glass a hover is a neutral lift over the same fill. */
:root[data-nt-glass='on'] .usage-refresh {
color: var(--text);
/* One diameter for the round buttons in the bottom-left row (RAM pill 26, refresh was 24 — N10). */
width: 26px;
height: 26px;
border-radius: 13px;
}
/* The zoom column matches the sessions toggle above it (34px, not 30 — their centres sat 2px apart,
visual QA L4/N10). The canvas pills' left offset reads the same variable and moves with it. */
:root[data-nt-glass='on'] {
--controls-w: 34px;
}
:root[data-nt-glass='on'] .react-flow__controls-button:hover {
background: var(--glass-lift-hover);
}
:root[data-nt-glass='on'] :is(.sysres-pill, .usage-pill, .usage-refresh):hover {
background:
linear-gradient(var(--glass-lift-hover), var(--glass-lift-hover)),
var(--glass-control-bg) !important;
}
/* Rim light: a 1px specular edge, brightest at the top-left and faint along the rest, drawn as a
masked ring on the node's ::before (it anchors to the React Flow wrapper, which is the node's
box). It replaces a diagonal sheen across the whole surface, which washed out the pane; an edge
highlight is all the light a pane needs, and it never sits under text. */
:root[data-nt-glass='on'] :is(.term-node, .files-node, .loop-node, .subagent-node, .trigger-node, .dino-node)::before {
--glass-rim: linear-gradient(
135deg,
rgba(255, 255, 255, 0.55) 0%,
rgba(255, 255, 255, 0.1) 30%,
rgba(255, 255, 255, 0.04) 60%,
rgba(255, 255, 255, 0.28) 100%
);
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1px;
pointer-events: none;
z-index: 4;
background: var(--glass-rim);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
}
/* NEVER translucent without a working blur (visual QA round 2, N1). An element with its own
backdrop-filter is a BACKDROP ROOT: a blur on anything inside it samples only the root's own
pixels, so a menu that opens outside its parent (or over sharp content inside it) blurs nothing
and the text behind it reads straight through. Two fixes, one per case:
- The dock, its menus and the context menus HOST menus that pop out of them, so their glass
lives on a ::before layer (fill, hairline and blur). The container itself has no
backdrop-filter, is no backdrop root, and each flyout blurs the canvas like any top-level
surface (visual QA round 3, NC2: the Snap to zone flyout escaped `.ctx-menu`'s blur). A menu
that SCROLLS cannot host a flyout (overflow clips it) and a ::before would scroll away with its
rows, so scrolling menus and leaf flyouts keep their glass on the element. The dock keeps the
control fill (it follows the slider); menus are text surfaces.
- A popover INSIDE a glass node or the card modal (context meter, colour swatches, label and
member pickers) cannot blur: its host is its backdrop root and the text under it is sharp. It
is not listed, so it paints its opaque token colour. */
:root[data-nt-glass='on'] :is(.dock, .dock-menu, .dock-menu__sub) {
background: transparent !important;
border-color: transparent;
-webkit-backdrop-filter: none;
backdrop-filter: none;
isolation: isolate;
}
:root[data-nt-glass='on'] :is(.dock, .dock-menu, .dock-menu__sub)::before {
content: '';
position: absolute;
inset: -1px;
z-index: -1;
border: 1px solid var(--glass-edge);
border-radius: inherit;
pointer-events: none;
background: var(--glass-chrome-bg);
-webkit-backdrop-filter: var(--glass-text-blur);
backdrop-filter: var(--glass-text-blur);
}
:root[data-nt-glass='on'] .dock::before {
background: var(--glass-control-bg);
-webkit-backdrop-filter: var(--glass-control-blur);
backdrop-filter: var(--glass-control-blur);
}
:root[data-nt-glass='on'] .ctx-menu:not(.ctx-menu--scroll, .ctx-submenu:not(.ctx-submenu--host)) {
background: transparent !important;
border-color: transparent;
-webkit-backdrop-filter: none;
backdrop-filter: none;
isolation: isolate;
}
:root[data-nt-glass='on'] .ctx-menu:not(.ctx-menu--scroll, .ctx-submenu:not(.ctx-submenu--host))::before {
content: '';
position: absolute;
inset: -1px;
z-index: -1;
border: 1px solid var(--glass-edge);
border-radius: inherit;
pointer-events: none;
background: var(--glass-chrome-bg);
-webkit-backdrop-filter: var(--glass-text-blur);
backdrop-filter: var(--glass-text-blur);
}
/* Glass never fades (visual QA round 4, N4-H1). An element with opacity < 1 is a backdrop root, so
while a scrim faded in, the palette/dialog/drawer inside it blurred only the dim scrim and the
canvas read SHARP through the tint for 120–160 ms, then snapped to frosted; a menu fading its own
opacity (the `::before`-hosted ones) laid the page sharp under its blur the same way. Under glass:
scrims fade their COLOUR (a keyframe with only `from` animates to the scrim's own background),
glass surfaces enter by transform alone, tooltips appear without motion (their transform is their
placement), and the focus-mode dock slides instead of fading. `styles.glass-traps.test.ts` fails
on an opacity animation or transition left on any glass surface or scrim; the probe's
mid-animation pass checks the live page. Reduce Motion keeps `animation: none` (these sit in a
no-preference query so their `animation-name` cannot re-enable what that rule switched off). */
@keyframes nt-glass-scrim-in {
from {
background-color: transparent;
}
}
@keyframes nt-glass-pop {
from {
transform: scale(0.97) translateY(4px);
}
}
@keyframes nt-glass-menu-in {
from {
transform: translateY(-3px);
}
}
@keyframes nt-glass-drawer-in {
from {
transform: translateX(10px);
}
}
@keyframes nt-glass-onb-menu {
0%,
19% {
visibility: hidden;
transform: scale(0.92);
}
23%,
52% {
visibility: visible;
transform: scale(1);
}
56%,
100% {
visibility: hidden;
transform: scale(0.97);
}
}
@media (prefers-reduced-motion: no-preference) {
:root[data-nt-glass='on'] :is(.confirm-overlay, .sc-overlay, .palette-overlay, .drawer-overlay, .kanban-modal-scrim) {
animation-name: nt-glass-scrim-in;
}
:root[data-nt-glass='on'] :is(.confirm, .shortcuts, .palette, .kanban-modal) {
animation-name: nt-glass-pop;
}
/* Remote access has no entrance of its own in the default look; on glass it pops like its
sibling dialogs (visual QA round 5, N5-L1). */
:root[data-nt-glass='on'] .remote-dialog {
animation: nt-glass-pop 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-nt-glass='on'] :is(.ctx-menu, .tab-menu) {
animation-name: nt-glass-menu-in;
}
:root[data-nt-glass='on'] .drawer {
animation-name: nt-glass-drawer-in;
}
:root[data-nt-glass='on'] body.focus-mode .dock {
transition: transform 0.16s ease-out;
}
}
/* Under Reduce Motion the default-look reduce rule above switches off most entrances, but not the
kanban card modal's and its scrim's (also the GitHub issue modal's scrim): their opacity fades
(`kanban-fade`, `kanban-pop`) ran on glass (code review 7 #1). */
@media (prefers-reduced-motion: reduce) {
:root[data-nt-glass='on'] :is(.kanban-modal-scrim, .kanban-modal) {
animation: none;
}
}
:root[data-nt-glass='on'] .tooltip {
animation-name: none;
}
/* The onboarding scene replays the REAL .ctx-menu: it appears and disappears by visibility. */
:root[data-nt-glass='on'] .ctx-menu.onb-menu {
opacity: 1;
visibility: hidden;
animation-name: nt-glass-onb-menu;
}
/* The focus-mode exit pill rested at 40% opacity — a glass control that was itself see-through.
It rests at full opacity in secondary ink instead. */
:root[data-nt-glass='on'] .focus-exit {
opacity: 1;
color: var(--muted);
transition: color 0.16s ease-out;
}
:root[data-nt-glass='on'] .focus-exit:hover {
color: var(--text-strong);
}
:root[data-nt-glass='on'] body.focus-mode .dock {
opacity: 1;
transform: translate(-50%, calc(100% + var(--float-gap) + 12px));
}
:root[data-nt-glass='on'] :is(body.focus-mode.focus-reveal-bottom .dock, body.focus-mode .dock:hover) {
transform: translateX(-50%);
}
/* ONE opaque floating surface (visual QA round 4, N4-M1). The popovers that cannot blur (inside a
glass node or the card modal — their host is their backdrop root) were five different greys
(#323232 with no shadow, #242424, #1e1e1e, #1a1a1a, a near-black 0.98 slab) beside the glass
menus. Under glass each is the menu surface's own colour made solid (`--panel`, the colour the
glass fill is `--panel` at an alpha of), with the glass hairline and one shadow. Every modal
dialog is glass (the text list above); these four are the only opaque floating surfaces. */
:root[data-nt-glass='on'] :is(.ctx-popover, .color-popover, .label-picker, .kanban-meta__picker) {
background: var(--panel);
border: 1px solid var(--glass-edge);
box-shadow: 0 12px 36px rgba(0, 0, 0, calc(0.45 * var(--shadow-k)));
color: var(--text-strong);
}
/* Labels on glass are monochrome (HIG color.md › Liquid Glass color; visual QA round 4, N4-M3): the
active project's name was accent blue, 1.80:1 on light glass. The project's colour dot beside it
carries the colour; the pin is ink until it is pinned. */
:root[data-nt-glass='on'] :is(.ss-group__name, .ss-group.is-active .ss-group__name) {
color: var(--text-strong);
}
:root[data-nt-glass='on'] .sessions-sidebar__head-actions button:not(.is-on) {
color: var(--text-strong);
}
/* One rim for every glass menu and sheet (visual QA round 4, N4-L1): the `::before`-hosted menus drew
the 20% glass hairline and the element-hosted ones (tab menu, palette, sessions, dialogs) their own
10% border, so a right-click menu and the project menu read as two materials. */
:root[data-nt-glass='on'] :is(.tab-menu, .palette, .confirm, .shortcuts, .usage-popover, .sessmem-panel, .sessions-sidebar, .drawer, .phone-pair, .nt-settings, .remote-dialog, .pubdlg, .consent-card, .github-issue-modal, .mlaunch, .tooltip, .dictation, .resume-card, .logpanel, .update-card, .announce-banner) {
border-color: var(--glass-edge);
}
/* Destructive menu items on glass (visual QA round 5, N5-M1): the red label measured 2.7–2.8:1 on
dark glass. Labels on glass are monochrome (HIG color.md › Liquid Glass color; macOS draws
destructive menu items in the standard label colour), so the label is ink and only the icon
keeps the red. Hover is the ordinary glass row highlight — a red wash is not in the fill
solver's highlight list. */
:root[data-nt-glass='on'] :is(.ctx-item, .tab-menu button).danger:not(:disabled) {
color: var(--text);
}
:root[data-nt-glass='on'] .ctx-item.danger .ctx-icon {
color: var(--danger);
}
:root[data-nt-glass='on'] :is(.ctx-item, .tab-menu button).danger:hover:not(:disabled) {
background: var(--glass-lift);
color: var(--text-strong);
}
/* Secondary text on glass dialogs sits ABOVE the placeholder (visual QA round 5, N5-M2): macOS ranks
the placeholder as tertiary, and on glass it cannot drop below 0.77 without losing 4.5:1 over the
sampled worst backdrop (dark; 0.78 is pinned by glassContrast.test.ts), so the dialogs' secondary lines rise to
0.82 (4.9:1 worst case) instead of the hard-coded 0.55 (3.2:1). Light has no room: the
placeholder's 4.5:1 floor is --text's own alpha, so there typed text is --text-strong (below). */
:root[data-nt-glass='on']:not([data-theme='light']) :is(.confirm, .shortcuts, .remote-dialog, .pubdlg, .consent-card, .github-issue-modal, .mlaunch) {
--muted: rgba(var(--tint-rgb), 0.82);
}
:root[data-nt-glass='on'] :is(.remote-dialog__desc, .remote-dialog__hint) {
color: var(--muted);
}
/* One title weight across the glass dialogs (N5-L3): Report a bug and Set icon title with the
dialog's message line, which is regular, beside Remote access's semibold heading. */
:root[data-nt-glass='on'] :is(.bug-report, .node-icon-dialog) > .confirm__msg:first-child {
font-weight: 600;
}
/* RAM panel secondary text (N5-L2): hard-coded 0.45–0.6 ink measured 3.95–4.22:1 on glass; it takes
the glass secondary label. */
:root[data-nt-glass='on'] :is(.sessmem-panel__scope, .sessmem-panel__note, .sessmem-row__project, .sessmem-row__orphan, .sessmem-row__cmd, .sessmem-row__kids, .sessmem-panel__attrib, .sessmem-panel__foot, .sessmem-host) {
color: var(--muted);
}
/* The Members picker's hover was a solid accent row with white text (3.65:1) while every other list
on glass washes its row (N4-L2). */
:root[data-nt-glass='on'] .kanban-meta__picker > button:hover {
background: var(--glass-select);
color: var(--text-strong);
}
/* A checkmark on the accent wash is ink, not accent (2.52:1 there, N4-L3). */
:root[data-nt-glass='on'] .speech-lang__row.is-active .tab-menu__check {
color: var(--text-strong);
}
/* RAM panel: a row without the pause button reserves its slot, so the MB column lines up (N4-L4). */
:root[data-nt-glass='on'] .sessmem-row:not(:has(> .sessmem-row__pause)) > .sessmem-row__main {
margin-right: 24px;
}
/* Scroll edge on the terminal theme list (N4-L5): the list scrolls inside the glass menu and fades
its last row like the palette, instead of cutting it in half. */
:root[data-nt-glass='on'] .theme-select__menu {
overflow: hidden;
}
:root[data-nt-glass='on'] .theme-select__list {
display: flex;
flex-direction: column;
gap: 2px;
min-height: 0;
max-height: calc(340px - 12px);
overflow-y: auto;
padding-bottom: 20px;
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
}
/* The node's "+ Label" picker sat flush on the node's left border, its corner cut by the rim (N4-L6). */
:root[data-nt-glass='on'] .term-node .label-picker__pop {
left: 6px;
}
/* `--text` is translucent, so where two strokes of an icon overlap the ink painted twice and the
joins read brighter (N4-L7). Dock icons draw in opaque ink and fade as one layer instead. */
:root[data-nt-glass='on'] .dock-btn:not(.dock-add, .active) svg {
color: rgb(var(--tint-rgb));
opacity: 0.85;
}
:root[data-nt-glass='on'] .dock-btn:not(.dock-add, .active):hover:not(:disabled) svg {
opacity: 1;
}
/* Palette rows take the strong ink so the placeholder, at `--text`'s alpha in light, reads as the
lighter of the two (N4-L8: 5.42 vs 5.51:1). */
:root[data-nt-glass='on'] .palette__item {
color: var(--text-strong);
}
/* Sessions sidebar: the hover actions faded in over a `--panel-header` gradient, an opaque grey patch
on a glass row (code review 6 #3). On glass the title line makes room for them while they show. */
:root[data-nt-glass='on'] .ss-row__actions {
background: none;
}
:root[data-nt-glass='on'] :is(.ss-row:hover, .ss-row:focus-within) .ss-row__titleline {
padding-right: 44px;
}
/* The dino node's header painted `--surface-overlay`, an opaque band on its glass body (code review 6 #4). */
:root[data-nt-glass='on'] .dino-node__header {
background: var(--glass-lift-hover);
}
/* Top tooltips belong to the dock (the only `placement="top"` user). They pin 6px above the BUTTON,
which on glass put the bubble on the dock's visible rim (visual QA round 3, NH2): they clear the
rim by 7px instead. */
:root[data-nt-glass='on'] .tooltip--top {
margin-top: -10px;
}
/* The three dock menus sat 9, 2 and −5px from the dock, the Zoom menu's rim ON the dock's (visual
QA round 3, NL1): each clears the dock's top edge by 8px. Add hangs from the dock itself; Layouts
and Zoom from their wraps, which start 8px and 15px below the dock's top (7px padding + 1px
border; the 24px zoom pill is centred in the 38px row). */
:root[data-nt-glass='on'] .dock > .dock-menu {
bottom: calc(100% + 8px);
}
:root[data-nt-glass='on'] .dock-layouts-wrap > .dock-menu {
bottom: calc(100% + 16px);
}
:root[data-nt-glass='on'] .dock-zoom-wrap > .dock-menu {
bottom: calc(100% + 23px);
}
/* The RAM panel reached over the dock's + corner (NL2): it rises above the dock (54px tall, same
baseline as the pill row) by 8px, and a long session name elides instead of pushing the row's
actions onto a second line. */
:root[data-nt-glass='on'] .sessmem-panel {
bottom: calc(54px + 8px);
}
:root[data-nt-glass='on'] .sessmem-row__main {
flex-basis: 0;
}
/* The terminal theme list hangs its checkmark gutter to the LEFT of the trigger, so the swatch and
name columns line up with the trigger's, as a macOS pop-up button does (NL3: 36px apart). The
⌄ glyph sits low in its box; it is centred on the name. */
:root[data-nt-glass='on'] .theme-select__menu {
margin-left: -36px;
}
:root[data-nt-glass='on'] .theme-select__trigger .bind-select__chev {
transform: translateY(-3px);
}
/* The Speech language list's current row stacked `--panel` on the menu (NL5): it is THE choice. */
:root[data-nt-glass='on'] .speech-lang__row.is-active {
background: var(--glass-select);
color: var(--text-strong);
}
/* A menu none of whose rows has an icon keeps no empty icon column (the Help menu, NL8). */
:root[data-nt-glass='on'] .ctx-menu:not(:has(.ctx-icon:not(:empty))) .ctx-icon {
display: none;
}
/* The sessions sidebar opens over its own toggle (same corner); through translucent glass the
toggle's glyph ghosted above "Sessions" (visual QA M5). The sidebar's × closes it. */
:root[data-nt-glass='on'] .canvas-root:has(.sessions-sidebar) .sessions-icon-cluster {
visibility: hidden;
}
/* The active tab normally takes the canvas colour and flares into it; over a wallpaper that is a
black tab. It is a neutral lift on the bar instead (a second layer of the fill read as a darker
slab, visual QA L7), and the flares go. */
:root[data-nt-glass='on'] .tab.active {
background: var(--glass-lift);
color: var(--text-strong);
}
/* Its two icons read at 3:1 on the lift (visual QA round 2, N2: 2.0:1 at the default 0.45; 0.8 still
measured 2.90:1 over Sunrise at Clear, round 3 NL7). */
:root[data-nt-glass='on'] .tab.active :is(.tab__board-toggle, .tab__caret) {
opacity: 0.9;
}
/* Input wells: the default `bg-bg` well is the opaque page colour, which read as a hole punched in
the frosted page (visual QA M4). On glass it is a sink (dark) or a lift (light) of the page with a
hairline — each moves AWAY from the ink, so the field's text keeps at least the page's contrast. */
:root[data-nt-glass='on'] :is(:is(input, select, textarea).bg-bg, .bind-select, .bind-field input, .sessions-sidebar__search input, .ss-title-input, .dictation__textarea) {
background: rgba(0, 0, 0, 0.22);
border-color: var(--glass-edge);
}
:root[data-nt-glass='on'][data-theme='light'] :is(:is(input, select, textarea).bg-bg, .bind-select, .bind-field input, .sessions-sidebar__search input, .ss-title-input, .dictation__textarea) {
background: rgba(255, 255, 255, 0.55);
}
/* Pieces INSIDE a glass surface that painted a panel token (opaque under glass — see the top of
this block). Bars and chips in the flow are a lift of the surface; the Settings sidebar is the
sheet's own glass. Small buttons keep their solid colour: a control, not a surface. */
:root[data-nt-glass='on'] :is(.term-node__find, .term-md__bar, .ss-chip) {
background: var(--glass-lift-hover);
color: var(--text-strong);
}
:root[data-nt-glass='on'] .nt-settings aside.bg-panel {
background: transparent;
}
/* Hover rows inside glass surfaces painted `--panel-header`, a solid band on glass: a lift instead. */
:root[data-nt-glass='on']
:is(
.ex-row:hover,
.scm-more:hover,
.scm-iconbtn:hover,
.resume-card__row:hover,
.resume-card__close:hover,
.sessions-sidebar__head-actions button:hover,
.sessions-sidebar__search-clear:hover,
.sessions-sidebar__history-head:hover,
.sessions-sidebar__history-item:hover,
.sessions-sidebar__history-transcript:hover,
.ss-group__head:hover,
.ss-subgroup__head:hover,
.dictation__close:hover,
.bind-existing__row:hover:not(:disabled)
) {
background: var(--glass-lift);
color: var(--text-strong);
}
/* Scroll edge effect (HIG liquid-glass: content fades where it meets the edge): the palette's
last row was cut hard at the bottom (visual QA L3). The extra padding lets the last row clear the
fade at the end of the scroll. */
:root[data-nt-glass='on'] .palette__list {
padding-bottom: 24px;
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}
/* Row highlights: every hover/selected row that painted `--panel-header` (= the fill again). */
/* Every highlighted state carries `--text-strong` ink: App.tsx solves the fill's readable alpha for
these washes WITH that ink (`glassChromeHighlights`), so a highlighted row keeps 4.5:1 exactly
like a plain one (visual QA round 2, N2: the active tab measured 3.9:1). */
:root[data-nt-glass='on'] :is(.ctx-item, .tab-menu button, .dock-menu button:not(.dock-menu__row-main), .dock-menu__sub button):hover:not(:disabled),
:root[data-nt-glass='on'] :is(.dock-menu__row:hover, .dock-menu__row:focus-within, .settings-nav-row:hover) {
background: var(--glass-lift);
color: var(--text-strong);
}
/* A Layouts row is ONE highlight: its main button sits on the row's lift and must not stack a
second one (3.48:1, code review 5 #2), and it takes the row's ink while any part of the row is
hovered or focused (3.78:1 on --text). */
:root[data-nt-glass='on'] .dock-menu__row:is(:hover, :focus-within) button.dock-menu__row-main {
color: var(--text-strong);
}
/* Hovers that painted `--panel-header` (= the fill again, a dark slab on glass — N5). The hover
lift is not in the solver's highlight list, so its ink is --text-strong like every other
highlight (--text on it measured 4.11 dark / 4.04 light, code review 5 #1). */
:root[data-nt-glass='on'] :is(.dock-btn:not(.dock-add):hover:not(:disabled), .dock-zoom:hover, .ss-row:hover) {
background: var(--glass-lift-hover);
color: var(--text-strong);
}
:root[data-nt-glass='on'] .dock-zoom.active {
background: var(--glass-lift);
color: var(--text-strong);
}
/* The default Button is `bg-panel-header`, the fill stacked on its own panel ("Set default" read as
a dark slab, N5): a neutral lift instead; its own hover (`bg-fill-weak`) still applies. */
:root[data-nt-glass='on'] button.bg-panel-header:not(:hover) {
background-color: var(--glass-lift-hover);
}
/* The ink holds on hover too: the hover fill (`hover:bg-fill-weak`, 10% ink; the shortcut recorder's
6% white) is a lift, and `--text` on it measured 4.11 dark / 4.04 light (code review 6 #2). */
:root[data-nt-glass='on'] button.bg-panel-header {
color: var(--text-strong);
}
/* Segmented controls: the selected segment is a neutral lifted thumb, as in Apple's segmented
control, so the one filled accent per view stays the primary action (N12: Settings → Agents
showed seven accent fills). */
:root[data-nt-glass='on'] .seg-pill-opt {
color: var(--muted);
}
/* The rule above outranks the base `.seg-pill-opt:hover`, which left unselected segments without
hover feedback (code review 5 #5). */
:root[data-nt-glass='on'] .seg-pill-opt:hover:not(.active) {
color: var(--text);
}
:root[data-nt-glass='on'] .seg-pill-opt.active {
background: var(--glass-lift);
color: var(--text-strong);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
/* Placeholders were a hard-coded #757575 in both themes (2.5–3.5:1, N6). On glass they keep 4.5:1
on the text-surface fill: `--glass-placeholder` is pinned by glassContrast.test.ts. */
/* Sticky notes keep theirs: the note's own colour is the surface there, not glass. So do the OPAQUE
floating surfaces (the popovers inside glass nodes, below): the glass placeholder is sized for the
translucent fill, and on a solid popover it read brighter than the popover's own body text, as if
the field were already filled (visual QA round 4, N4-M2). */
:root[data-nt-glass='on'] :not(.sticky-node__body, :is(.ctx-popover, .color-popover, .label-picker, .kanban-meta__picker) *)::placeholder {
color: var(--glass-placeholder);
}
/* An empty field must look empty (visual QA round 3, NM1): the placeholder's 4.5:1 floor sits at
--text's own alpha in light (0.85), so TYPED text in chrome fields takes --text-strong instead.
Terminal nodes and the card-modal terminal keep their theme ink; notes keep their own. */
:root[data-nt-glass='on'] :is(input:not([type]), input[type='text'], input[type='search'], textarea):not(.term-node *, .sticky-node *, .kanban-modal__termwrap *, .monaco-editor *, .excalidraw *) {
color: var(--text-strong);
}
:root[data-nt-glass='on'] .settings-nav-row {
background: transparent;
}
:root[data-nt-glass='on'] :is(.palette__item.active, .settings-nav-row[aria-current='page']) {
background: var(--glass-select);
box-shadow: none;
color: var(--text-strong);
}
:root[data-nt-glass='on'] .tab.active::after {
display: none;
}
/* The node's label row has its own `--panel` fill (for the glyph grid, which stands glass down);
on glass that stacked a third band between header and body (visual QA M7). */
:root[data-nt-glass='on'] .term-node--glass .term-node__labelrow {
background: transparent;
}
/* Every node kind. Terminal nodes keep their own theme-derived tint (.term-node--glass, above);
the others take `--glass-node-bg`, the chrome colour at the SLIDER's alpha (App.tsx), with
`--glass-node-squeeze` holding their text at 4.5:1 left of the Readable tick. Bodies
that are another renderer's surface — Monaco, a <webview>, a <video> — stay opaque: they paint
their own background. Sticky notes keep their colour: the colour IS the note. */
:root[data-nt-glass='on'] :is(.files-node, .loop-node, .subagent-node, .trigger-node, .dino-node) {
background: var(--glass-node-bg);
-webkit-backdrop-filter: var(--glass-blur) var(--glass-node-squeeze,);
backdrop-filter: var(--glass-blur) var(--glass-node-squeeze,);
}
:root[data-nt-glass='on']
.canvas-moving
:is(.term-node, .files-node, .loop-node, .subagent-node, .trigger-node, .dino-node) {
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
/* ...but every node keeps its squeeze: left of the Readable tick it, not the tint, holds the text
at 4.5:1. A colour matrix with no blur, so the pan still sheds the expensive part. */
:root[data-nt-glass='on'] .canvas-moving .term-node {
-webkit-backdrop-filter: var(--term-glass-backdrop, none);
backdrop-filter: var(--term-glass-backdrop, none);
}
:root[data-nt-glass='on'] .canvas-moving :is(.files-node, .loop-node, .subagent-node, .trigger-node, .dino-node) {
-webkit-backdrop-filter: var(--glass-node-squeeze, none);
backdrop-filter: var(--glass-node-squeeze, none);
}
/* Subagent cards: no clay stripe (Liquid Glass drops window accents, the dot keeps the state), and
the transcript is ink on the card's glass instead of a black slab with hard-coded grey text. */
:root[data-nt-glass='on'] .subagent-node {
border-color: var(--glass-edge);
border-left-width: 1px;
}
:root[data-nt-glass='on'] .subagent-node.working .subagent-node__dot {
background: var(--state-working);
}
:root[data-nt-glass='on'] .subagent-node__term {
background: transparent;
border-color: var(--glass-edge);
color: var(--text);
}
/* No per-node accent colour on a window (the sessions list and the kanban board keep them). The
top border and the colour dot are INLINE styles from `data.color`, hence !important. The dot
stays as a neutral ring: it is also the button that opens the colour picker. */
:root[data-nt-glass='on'] .term-node {
/* `--term-glass-backdrop` is this node's squeeze (useTerminalGlass): what keeps its text at 4.5:1
left of the Readable tick. Unset when the tint alone suffices. Under Reduce Transparency the
chain is `none brightness(...)`, which is invalid and so computes to none, as before. */
-webkit-backdrop-filter: var(--glass-term-blur) var(--term-glass-backdrop,);
backdrop-filter: var(--glass-term-blur) var(--term-glass-backdrop,);
border-color: var(--glass-edge);
border-top-width: 1px;
border-top-color: var(--glass-edge) !important;
}
/* Static frost (performance — lib/glassFrost.ts, canvas/GlassFrostSync.tsx). While
`data-nt-frost` is on, a terminal node does NOT frost with a live backdrop-filter: Chromium re-ran
that filter every time the node was redrawn, i.e. for every line a streaming agent printed, and
the damage spread to the glass around it (MEASURED, M2, six glass terminals streaming: 75% →
43% GPU). Instead `.term-node__frost` paints a COPY of the wallpaper behind the node, aligned to
the real one by custom properties, with the same chain as an ordinary `filter`, and the tint over
it. Nothing in it changes while the camera is still, so Chromium draws it once and reuses it.
It frosts the wallpaper only (not the dot grid, edges or other nodes behind the node). Focus mode
moves the node out of the canvas, so a focused node keeps the live backdrop. The frost layer is
opaque (the wallpaper copy over the canvas colour), so nothing behind it can read sharp through
the tint. */
.term-node__frost {
display: none;
}
:root[data-nt-glass='on'][data-nt-frost='on'] .term-node.term-node--glass:not(.term-node--focused) {
background: transparent;
-webkit-backdrop-filter: none;
backdrop-filter: none;
/* NOT a stacking context of its own (no isolation): the frost's z-index -1 then lands in the
React Flow wrapper's stacking context, painted BEFORE this node's border, header and body —
the order the live backdrop and the tint had. Inside the node it painted over the 1px glass
edge. */
}
:root[data-nt-glass='on'][data-nt-frost='on'] .term-node--glass:not(.term-node--focused) > .term-node__frost {
display: block;
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
border-radius: inherit;
pointer-events: none;
}
/* The wallpaper copy. It reaches FROST_PAD (80px) past the node so the blur at the rim samples the
wallpaper beside the node, not transparency; the layer's own overflow clips it back. The picture
itself is one rule GlassFrostSync renders (a data: URL can exceed what a custom property holds). */
.term-node__frost::before {
content: '';
position: absolute;
inset: -80px;
background-color: var(--canvas-bg);
background-repeat: no-repeat;
background-size: calc(var(--frost-w) * 1px) calc(var(--frost-h) * 1px);
background-position: calc((var(--frost-x) - var(--node-x)) * 1px + 80px) calc((var(--frost-y) - var(--node-y)) * 1px + 80px);
filter: var(--glass-term-blur) var(--term-glass-backdrop,);
}
/* The node's tint, over the frost — what used to be the node's own background. */
.term-node__frost::after {
content: '';
position: absolute;
inset: 0;
background: var(--term-glass-bg);
}
/* Keep blur while moving OFF: the frost drops its blur through a camera move like the live
backdrop did, and keeps the squeeze that holds the text at 4.5:1 left of the Readable tick. */
:root[data-nt-glass='on'] .canvas-moving .term-node__frost::before {
filter: var(--term-glass-backdrop, none);
}
:root[data-nt-glass='on'] .term-node__color {
background: transparent !important;
box-shadow: inset 0 0 0 1.5px var(--muted);
}
:root[data-nt-glass='on'] .react-flow__node:not(.react-flow__node-group) .react-flow__resize-control.handle {
background-color: var(--text) !important;
border-color: var(--text) !important;
}
:root[data-nt-glass='on'] .react-flow__node:not(.react-flow__node-group) .react-flow__resize-control.line {
border-color: var(--glass-edge) !important;
}
/* The live resize controls moved OUTSIDE the node root (direct children of the node wrapper) only
take the pointer; they paint nothing in any look. A control outside the root cannot reproduce
where the old one painted (under glass: against the root's padding box, cut by its rounded
clip; in every look: partly under the node's own body), so each node also renders a second,
paint-only <NodeResizer> in the old place inside the root, its controls classed
`.nt-resize-ghost` and taking no pointer — so no second resizer can ever start a drag.
Specific enough, and !important, to beat React Flow's inline colour and the glass overrides. */
:root .flow-wrap .react-flow .react-flow__node:not(.react-flow__node-group) > .react-flow__resize-control:is(.handle, .line) {
background-color: transparent !important;
border-color: transparent !important;
}
.react-flow__resize-control.nt-resize-ghost {
pointer-events: none;
}
/* Link dots moved OUTSIDE a terminal's root (so a glass root's backdrop-filter, its own stacking
context, no longer buries them under the resize controls) keep the look they had while that
root clipped them: laid out against its PADDING box, so centred 1px inside the border, and
showing only their inner half. Scoped to exactly when the root's backdrop-filter is live — it
is dropped while the camera moves with "Keep blur while moving" off (.canvas-moving) and under
Reduce Transparency, and there nothing was clipped. A clip-path also clips hit testing, so the
outer half goes to the resize band exactly as before; the tooltip (above, growing inward) stays
inside the clip, so on a node narrower than it the tooltip is no longer cut at the node's far
edge as it was (not reproduced: the clip box cannot reach the node's width). */
@media (prefers-reduced-transparency: no-preference) {
:root[data-nt-glass='on'] .flow-wrap:not(.canvas-moving) .react-flow__node > .bridge-handle--in {
left: 1px;
clip-path: inset(-48px -480px -48px 50%);
}
:root[data-nt-glass='on'] .flow-wrap:not(.canvas-moving) .react-flow__node > .bridge-handle--out {
right: 1px;
clip-path: inset(-48px 50% -48px -480px);
}
}
/* State stays visible without the accent colour: selection is a neutral ink outline; unread and
attention keep their own glows (app state, not a per-node colour), and their border reads
through the neutral top edge too. */
:root[data-nt-glass='on'] .term-node.selected {
border-color: var(--text) !important;
box-shadow:
0 0 0 1px var(--text),
0 12px 40px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
:root[data-nt-glass='on'] .term-node.unread {
border-color: var(--state-unread);
border-top-color: var(--state-unread) !important;
}
/* ---- Kanban under Liquid Glass (PLAN: "we have to liquid glass the kanban") --------------------
The overlay paints the SAME fixed wallpaper as the canvas (inline, from KanbanView /
GlobalKanbanView: `background-attachment: fixed` + cover lines it up with `.canvas-root`'s), so
it stays OPAQUE to the canvas underneath — the covered-canvas animation gate still holds and no
node bleeds through. Columns are text-surface glass (listed above). Cards are a neutral lift on
the column WITHOUT a blur of their own (no glass on glass). Headers are monochrome; status chips
are ink on a wash of their semantic hue; the drop target and reorder line are neutral ink. */
:root[data-nt-glass='on'] .kanban-header {
border-bottom-color: var(--glass-edge);
}
:root[data-nt-glass='on'] .kanban-col {
border-color: var(--glass-edge);
}
/* "+ Add column" was styled for an opaque board (4% tint, 50% ink, dashed 15% border) and vanished
into the wallpaper (visual QA round 2, N3). On glass it is a text surface like the columns. */
:root[data-nt-glass='on'] .kanban-add-col {
border: 1px solid var(--glass-edge);
color: var(--text);
}
:root[data-nt-glass='on'] .kanban-add-col:hover {
background:
linear-gradient(var(--glass-lift), var(--glass-lift)),
var(--glass-chrome-bg) !important;
border-color: var(--glass-edge);
color: var(--text-strong);
}
/* On the board the toolbar cluster straddled the header strip's bottom edge and sat 6px above the
columns (N4): it drops into the strip's row instead, centred in its 46px. */
:root[data-nt-glass='on'] .canvas-root:has(> .kanban-overlay) > .controls-cluster {
top: calc(var(--tabbar-h) + 6px);
}
:root[data-nt-glass='on'] :is(.kanban-col__dot, .kanban-header__dot) {
background: transparent !important;
box-shadow: inset 0 0 0 1.5px var(--muted);
}
:root[data-nt-glass='on'] .kanban-card {
background: var(--glass-lift-hover);
border-color: var(--glass-edge);
}
:root[data-nt-glass='on'] .kanban-card:hover {
background: var(--glass-lift);
}
:root[data-nt-glass='on'] .kanban-col.kanban-col--drop {
border-color: var(--text);
background:
linear-gradient(var(--glass-lift-hover), var(--glass-lift-hover)),
var(--glass-chrome-bg) !important;
box-shadow: 0 0 0 1px var(--text);
}
:root[data-nt-glass='on'] .kanban-card--drop-before::before,
:root[data-nt-glass='on'] .kanban-card--drop-after::after {
background: var(--text);
box-shadow: none;
}
:root[data-nt-glass='on'] .kanban-badge--running {
color: var(--state-working);
}
:root[data-nt-glass='on'] :is(.kanban-badge--running, .kanban-badge--needs, .kanban-badge--dropped, .kanban-badge--station-failed) {
-webkit-text-fill-color: var(--text);
background: color-mix(in srgb, currentColor 24%, transparent);
box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 55%, transparent);
}
/* The card modal's terminal: the same glass as a terminal node (ModalTerminal sets the
`--term-glass-*` tint inline). The modal itself is text-surface glass (listed above), so the
tint needs no blur of its own. It never goes clearer than the Readable tick
(`useTerminalGlass(theme, true)`), so the tint alone carries its foreground's 4.5:1. */
/* The card modal's comments & activity panel hard-codes 35–55% ink for its title, times and events
(3.1–3.6:1 on glass, visual QA M3): secondary label on glass, like the rest of the look. */
:root[data-nt-glass='on'] :is(.board-log__title, .board-log__hint, .board-log__time, .board-log__event-body) {
color: var(--muted);
}
/* Secondary controls and labels were hard-coded 35–65% ink, 1.95–3.7:1 on glass (visual QA round 3,
NM2/NM3): they take the glass secondary label; hovers are the neutral lift. The activity author
was painted in the author's colour (systemGray for "you", 1.97:1 in light) — on glass it is ink,
and the dot beside it keeps the colour. */
:root[data-nt-glass='on'] :is(.kanban-col__count, .kanban-col__close, .kanban-col__new, .kanban-meta__label, .kanban-modal__column, .kanban-prio) {
color: var(--muted);
}
:root[data-nt-glass='on'] :is(.kanban-col__new, .kanban-prio) {
border-color: var(--glass-edge);
}
:root[data-nt-glass='on'] :is(.kanban-col__new, .kanban-prio):hover {
background: var(--glass-lift);
border-color: var(--glass-edge);
color: var(--text-strong);
}
:root[data-nt-glass='on'] .kanban-col__close:hover {
color: var(--danger);
}
:root[data-nt-glass='on'] .board-log__author {
color: var(--text) !important;
font-weight: 600;
}
:root[data-nt-glass='on'] .kanban-modal__termwrap--glass {
background: var(--term-glass-bg);
}
/* Minimap: node rectangles are painted in the node's own colour (an inline style, hence
!important), which is exactly the accent Liquid Glass removes. They become translucent ink —
the theme's own `--tint-rgb`, so brown on the light theme and white on the dark one — with the
selected node brighter. Status strokes (working/attention/unread, the `mm-*` classes) keep their
colours: they are state, not decoration. The mask dims outside the viewport with the same
chrome fill the map sits on. */
:root[data-nt-glass='on'] .react-flow__minimap.minimap {
--minimap-mask: var(--glass-control-bg);
}
:root[data-nt-glass='on'] .minimap .react-flow__minimap-node {
fill: rgba(var(--tint-rgb), 0.3) !important;
}
:root[data-nt-glass='on'] .minimap .react-flow__minimap-node.selected {
fill: rgba(var(--tint-rgb), 0.6) !important;
}
:root[data-nt-glass='on']
.minimap
.react-flow__minimap-node:not(.mm-working):not(.mm-attention):not(.mm-unread) {
stroke: rgba(var(--tint-rgb), 0.45) !important;
}
/* ---- Liquid Glass palette (HIG color.md › Liquid Glass color) ---------------------------------
Glass has no colour of its own: labels stay monochrome, and colour is reserved for status and
the one primary action per surface. So under Liquid Glass each MEANING takes its HIG colour,
one hue per meaning and never shared: the accent means working and selection, orange means only
"needs you", green means finished-unseen and success, yellow means warning, red means error.
Only roles are redefined here; every rule already reads them (the semantic-role block at the
top). The fills are the vibrant system values, which hold on translucent surfaces; the text-safe
tokens keep their per-theme darkening (--caution is the light theme's readable yellow,
--orange-text its readable orange). */
:root[data-nt-glass='on'] {
--state-working: var(--accent);
--agent-working: var(--accent-text);
--state-attention: var(--sys-orange);
--attention-text: var(--orange-text);
--state-unread: var(--sys-green);
--state-warning: var(--sys-yellow);
--warn: var(--caution);
--git-renamed: var(--accent-text);
--git-conflict: var(--danger);
--priority-high: var(--pink-text);
--mm-working: var(--state-working);
--mm-attention: var(--state-attention);
--mm-unread: var(--state-unread);
}
/* Meters in the OK range were solid system green, which on glass also means "finished, unseen" and
"success" (visual QA M1: one colour, two meanings). Under Liquid Glass an OK meter is neutral ink;
yellow and red still mean warning and critical. The fills are inline literals from
lib/usageFormat.ts (the notch HUD draws them too and loads no stylesheet), so this matches the
serialised green — `styles.liquid-glass.test.ts` pins that literal. The default look is untouched.
ponytail: attribute match on the inline colour; move the fills to tokens if the HUD ever loads CSS. */
:root[data-nt-glass='on']
:is(.usage-bar__fill, .usage-pill__minibar-fill, .ctx-pill__fill, .ctx-bar__fill)[style*='rgb(48, 209, 88)'] {
background: rgba(var(--tint-rgb), 0.6) !important;
}
:root[data-nt-glass='on'] .ss-ctx[style*='rgb(48, 209, 88)'] {
background: var(--glass-lift) !important;
color: var(--text-strong);
}
/* Status labels on a glass header are ink, not coloured text: the hue tints the chip BEHIND the
label (stained glass) and fills the dot. `-webkit-text-fill-color` paints the glyphs while
`color`, and so `currentColor`, keeps the status hue for the chip and the dot. */
:root[data-nt-glass='on'] .term-node__status {
-webkit-text-fill-color: var(--text);
/* The wash is sized per terminal theme so the label keeps 4.5:1 (lib/glassContrast.ts
`glassChipWash`); the ring carries the hue when a theme has no margin for a wash. */
background: color-mix(in srgb, currentColor var(--term-glass-chip-wash, 0%), transparent);
box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 55%, transparent);
padding: 1px 6px;
border-radius: 999px;
}
/* ---- Liquid Glass accessibility (HIG liquid-glass.md: Reduce Transparency, Increase Contrast,
Reduce Motion). The system settings outrank the Glass slider, as on iOS. App.tsx and the
terminal nodes read the same two media queries (lib/useGlassA11y.ts) for the tint ALPHA, which
lives in inline custom properties CSS cannot override; everything else is here. */
/* Reduce Transparency: opaque surfaces (the alpha is 1 from JS), and no blur, refraction or
sheen — nothing of the wallpaper shows through. */
@media (prefers-reduced-transparency: reduce) {
:root[data-nt-glass='on'] {
--glass-blur: none;
--glass-term-blur: none;
--glass-text-blur: none;
--glass-control-blur: none;
}
:root[data-nt-glass='on'] :is(.term-node, .files-node, .loop-node, .subagent-node, .trigger-node, .dino-node)::before {
display: none;
}
}
/* Increase Contrast: the slider pins to Tinted (from JS), edges get stronger and the palette takes
HIG's increased-contrast values (lib/palette.ts, pinned by styles.palette.test.ts). */
@media (prefers-contrast: more) {
:root[data-nt-glass='on'] {
--glass-edge: rgba(var(--tint-rgb), 0.5);
--sys-red: #ff6961;
--sys-orange: #ffb340;
--sys-yellow: #ffd426;
--sys-green: #30db5b;
--sys-mint: #66d4cf;
--sys-teal: #5de6ff;
--sys-cyan: #70d7ff;
--sys-blue: #409cff;
--sys-indigo: #7d7aff;
--sys-purple: #da8fff;
--sys-pink: #ff6482;
--sys-brown: #b59469;
--sys-gray: #aeaeb2;
}
:root[data-nt-glass='on'][data-theme='light'] {
--sys-red: #d70015;
--sys-orange: #c93400;
--sys-yellow: #b25000;
--sys-green: #248a3d;
--sys-mint: #0c817b;
--sys-teal: #008299;
--sys-cyan: #0071a4;
--sys-blue: #0040dd;
--sys-indigo: #3634a3;
--sys-purple: #8944ab;
--sys-pink: #d30f45;
--sys-brown: #7f6545;
--sys-gray: #6c6c70;
/* The readable orange/pink follow the contrast palette too. */
--orange-text: var(--sys-orange);
--pink-text: var(--sys-pink);
}
:root[data-nt-glass='on'] .term-node {
border-width: 1.5px;
}
:root[data-nt-glass='on'] :is(.term-node, .files-node, .loop-node, .subagent-node, .trigger-node, .dino-node)::before {
--glass-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0.5) 100%);
}
}
/* Reduce Motion (every appearance): the state glows stop pulsing and hold lit, the same static
values the idle-window gate uses, and the minimap strokes stop beating. The state still reads. */
@media (prefers-reduced-motion: reduce) {
.react-flow__node:has(.term-node.unread)::after {
animation: none;
opacity: 0.85;
will-change: auto;
}
.react-flow__node:has(.term-node.working)::after {
animation: none;
opacity: 0.7;
will-change: auto;
}
.react-flow__node:has(.term-node.attention)::after {
animation: none;
opacity: 0.8;
will-change: auto;
}
/* The pulsing dots are styled at (0,2,0) (`.term-node__status--busy .term-node__status-dot`,
`--attention …`); a bare `.term-node__status-dot` here lost to them and they kept pulsing. */
.term-node__status .term-node__status-dot,
.minimap .mm-working,
.minimap .mm-attention,
.minimap .mm-unread {
animation: none;
}
/* Issue #1454: these kept moving for a Reduce Motion user — the working-edge flow (xyflow's
sheet, so no block of ours ever named it), the subagent / loop dots, the sessions sidebar's
unread check and needs-you bell, the RAM panel's working dot, the board card's RUNNING chip,
the walking mascots and the "···" loading pulses. Each rests on its own static look: edges
stay dashed, dots and chips lit, the mascot on its first frame. Every selector here is later
than the rule it stops at the same specificity, so it wins on order. Enforced by
styles.reduced-motion.test.ts: a new repeating animation that is not stopped here (or
exempted there with a reason) fails it. */
.react-flow__edge.animated path,
.subagent-node.working .subagent-node__dot,
.loop-node.working .loop-node__dot,
.ss-check--unread,
.ss-bell,
.sessmem-row__dot--working,
.kanban-badge--running,
.term-node__mascot--claude,
.term-node__mascot--codex,
.usage-pill__pulse,
.sysres-pill__pulse {
animation: none;
}
}
/* ---- Needs-you under Liquid Glass: an inner light, not an outer pulse -------------------------
The picked variant ("inner light"): the node's own rim glows orange from inside and breathes,
instead of a red halo pulsing outside it. On glass an outer halo is lost against the wallpaper;
light held inside the pane reads as the pane itself asking. It is an inset edge light only —
`pointer-events: none`, and the wash fades out within ~36px of the rim, so terminal text stays
readable under it. Same --state-attention as the minimap stroke and the header badge. The default
look keeps its outer glow. Gates: idle = static-lit, covered canvas = paused (it reads
--nt-anim-state), Reduce Motion = static. */
:root[data-nt-glass='on'] .term-node.attention {
border-color: color-mix(in srgb, var(--state-attention) 55%, transparent);
border-top-color: color-mix(in srgb, var(--state-attention) 55%, transparent) !important;
box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
:root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::after {
display: none;
}
:root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::before {
content: '';
position: absolute;
inset: 0;
border-radius: 14px;
pointer-events: none;
z-index: 5;
box-shadow:
inset 0 0 0 1px color-mix(in srgb, var(--state-attention) 60%, transparent),
inset 0 0 36px 2px color-mix(in srgb, var(--state-attention) 38%, transparent);
opacity: 0.35;
animation: nt-attention-breathe 2.4s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
will-change: opacity;
}
@keyframes nt-attention-breathe {
0%,
100% {
opacity: 0.35;
}
50% {
opacity: 1;
}
}
:root[data-nt-glass='on'][data-nt-window='idle'] .react-flow__node:has(.term-node.attention)::before {
animation: none;
opacity: 0.8;
will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
:root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::before {
animation: none;
opacity: 0.7;
will-change: auto;
}
}
/* ---- Glass slider (Settings → Appearance, components/settings/GlassSlider.tsx) ---------------
Drawn like a macOS slider with a tick mark. The thumb's centre runs from 10px to (width − 10px),
so the fill and the notch use the same `10px + (100% − 20px) × t` the browser uses for the thumb. */
.glass-slider {
width: 240px;
display: flex;
flex-direction: column;
gap: 4px;
}
.glass-slider[aria-disabled] {
opacity: 0.4;
pointer-events: none;
}
.glass-slider__rail {
position: relative;
height: 20px;
}
.glass-slider__notch {
position: absolute;
top: 1px;
left: calc(10px + (100% - 20px) * var(--glass-tick));
width: 2px;
height: 8px;
margin-left: -1px;
border-radius: 1px;
background: var(--muted);
}
.glass-slider input[type='range'] {
-webkit-appearance: none;
appearance: none;
position: relative;
display: block;
width: 100%;
height: 20px;
margin: 0;
background: transparent;
cursor: pointer;
}
.glass-slider input[type='range']:focus {
outline: none;
}
.glass-slider input[type='range']::-webkit-slider-runnable-track {
height: 4px;
border-radius: 999px;
background: linear-gradient(
to right,
var(--accent) 0 calc(10px + (100% - 20px) * var(--glass-fill)),
color-mix(in srgb, var(--text) 18%, transparent) 0
);
}
.glass-slider input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
margin-top: -8px;
border-radius: 50%;
/* theme-exempt: the thumb is white in both themes, like a macOS slider */
background: #fff;
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.3),
0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.glass-slider input[type='range']:focus-visible::-webkit-slider-thumb {
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.3),
0 0 0 0.5px rgba(0, 0, 0, 0.12),
0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent);
}
.glass-slider__captions {
position: relative;
display: flex;
justify-content: space-between;
height: 14px;
font-size: 11px;
line-height: 14px;
color: var(--muted);
}
.glass-slider__readable {
position: absolute;
top: 0;
transform: translateX(-50%);
padding: 0;
border: none;
background: none;
font: inherit;
color: inherit;
cursor: pointer;
}
.glass-slider__readable:hover {
color: var(--text);
}
.glass-slider__readable:focus {
outline: none;
}
.glass-slider__readable:focus-visible {
border-radius: 3px;
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent);
}
/* ── Simulator node (nodes/SimulatorNode.tsx) ─────────────────────────────────────────────────
A live iOS simulator screen: header, a control row, then the screen, which keeps the phone's
proportions (object-fit: contain) inside whatever size the node is. */
.sim-node {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));
}
.sim-node.selected {
border-color: var(--accent);
}
.sim-node__header {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
cursor: grab;
flex-shrink: 0;
}
.sim-node__title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-weight: 600;
color: var(--text);
}
.sim-node__bar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
padding: 4px 8px 6px;
border-bottom: 1px solid var(--border);
font-size: 11.5px;
flex-shrink: 0;
}
.sim-node__device {
flex: 1;
min-width: 0;
max-width: none;
}
.sim-node__screen {
position: relative;
flex: 1;
min-height: 0;
/* theme-exempt: the letterbox around a device screen is black in every theme, like a video. */
background: #000;
outline: none;
cursor: pointer;
touch-action: none;
}
.sim-node__screen:focus-visible {
box-shadow: inset 0 0 0 2px var(--accent);
}
.sim-node__frame {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
user-select: none;
pointer-events: none;
}
.sim-node__placeholder {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
text-align: center;
font-size: 12px;
line-height: 1.5;
color: rgba(255, 255, 255, 0.7);
}
.sim-node__note {
position: absolute;
left: 8px;
right: 8px;
bottom: 8px;
padding: 4px 8px;
border-radius: 6px;
font-size: 11px;
color: #fff;
background: rgba(0, 0, 0, 0.6);
pointer-events: none;
}
.sim-node__hint {
position: absolute;
left: 8px;
right: 8px;
top: 8px;
display: flex;
gap: 8px;
align-items: flex-start;
padding: 6px 8px;
border-radius: 7px;
font-size: 11px;
line-height: 1.35;
color: #fff;
background: rgba(0, 0, 0, 0.72);
}
.sim-node__hint-close {
flex: none;
padding: 0 2px;
font: inherit;
font-size: 13px;
line-height: 1;
color: inherit;
background: none;
border: none;
cursor: pointer;
}
.sim-node__rec {
height: 22px;
padding: 0 7px;
font: inherit;
font-size: 10.5px;
font-weight: 700;
color: var(--danger);
background: color-mix(in srgb, var(--danger) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
border-radius: 5px;
cursor: pointer;
}
.sim-node__drop {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
text-align: center;
font-size: 12px;
font-weight: 600;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 14%, transparent);
border: 2px dashed var(--accent);
pointer-events: none;
}
.sim-node__toast {
position: absolute;
left: 10px;
right: 10px;
bottom: 10px;
padding: 6px 10px;
border-radius: 7px;
font-size: 11.5px;
color: var(--text);
background: var(--panel);
border: 1px solid var(--border);
box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.3 * var(--shadow-k)));
pointer-events: none;
}
.sim-node__toast--error {
color: var(--danger);
}
.sim-node__overlay {
position: absolute;
inset: 0;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.sim-node__dialog {
width: 100%;
max-width: 340px;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
border-radius: 10px;
background: var(--panel);
border: 1px solid var(--border);
box-shadow: 0 10px 30px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
font-size: 12px;
color: var(--text);
}
.sim-node__dialog-title {
font-weight: 600;
font-size: 13px;
}
.sim-node__dialog-body {
color: var(--muted);
line-height: 1.45;
}
.sim-node__field {
display: flex;
flex-direction: column;
gap: 3px;
}
.sim-node__field span {
color: var(--muted);
font-size: 11px;
}
.sim-node__field input,
.sim-node__field textarea {
font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace;
color: var(--text);
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 7px;
resize: vertical;
}
.sim-node__dialog-actions {
display: flex;
justify-content: flex-end;
gap: 6px;
margin-top: 2px;
}
/* ── Whiteboard node (nodes/WhiteboardNode.tsx) ─────────────────────────────────────────────
The node shows a still picture of the board; the live Excalidraw editor is a fixed overlay on
document.body laid over the node's box (see the component for why it is not inside the node). */
.whiteboard-node {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.whiteboard-node.selected {
box-shadow: 0 0 0 2px var(--accent);
}
.whiteboard-node__header {
display: flex;
align-items: center;
gap: 6px;
padding: 4px;
background: var(--surface-overlay);
}
.whiteboard-node__body {
position: relative;
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg);
outline: none;
cursor: crosshair;
}
.whiteboard-node__thumb {
max-width: 100%;
max-height: 100%;
object-fit: contain;
pointer-events: none;
}
.whiteboard-node__hint {
color: var(--muted);
font-size: 13px;
pointer-events: none;
}
.whiteboard-node__save-failed {
flex: 0 0 auto;
padding: 1px 7px;
border-radius: 999px;
background: color-mix(in srgb, var(--state-error) 15%, transparent);
color: var(--state-error);
font-size: 11px;
font-weight: 600;
}
/* "Keep mine" / "Discard my changes": the way forward from a save that did not land. */
.whiteboard-node__save-action {
flex: 0 0 auto;
padding: 1px 7px;
border: 1px solid var(--border);
border-radius: 999px;
background: transparent;
color: var(--text);
font-size: 11px;
cursor: pointer;
}
.whiteboard-node__save-action:hover {
background: var(--panel-2);
color: var(--text-strong);
}
/* The canvas area, in .canvas-root coordinates: clips the live editor to the canvas and stacks it
under the sessions sidebar (z 12) and the Dock (z 20), which sit beside .flow-wrap. */
.whiteboard-clip {
position: absolute;
z-index: 10;
overflow: hidden;
pointer-events: none;
}
.whiteboard-overlay {
position: absolute;
overflow: hidden;
border-radius: 0 0 9px 9px;
background: var(--bg);
pointer-events: auto;
}
.whiteboard-overlay__loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--muted);
font-size: 13px;
}