/* The open agent-terminal tabs in the header's nav row (Shell.tsx). */ /* Dynamic tabs group — inline in `.shell-nav` itself, next to the static route links, not a row of its own under the header. `margin-left: 0.5em` + `border-left` reads as "a group attached to the nav, not another nav item" without a second landmark or a fixed pixel gap that'd fight `.shell-nav`'s own `gap`. */ .shell-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; margin-left: 0.5em; padding-left: 0.75em; border-left: 1px solid var(--border); } .shell-tab { display: flex; align-items: center; gap: 0.25em; padding: 0.2em 0.4em 0.2em 0.7em; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); } .shell-tab-active { border-color: var(--pink); } /* A tab that can be dragged onto a terminal to split it shows a grip in a gutter of its own on hover, so the drag is discoverable. The gutter is part of the padding, so the tab does not change size when the grip appears. */ .shell-tab-draggable { position: relative; padding-left: 1.3em; cursor: grab; } /* The tab a dragged tab would take the place of. */ .shell-tab-drop { box-shadow: inset 2px 0 0 var(--purple); } .shell-tab-grip { position: absolute; left: 0.35em; top: 50%; display: inline-flex; color: var(--muted); opacity: 0; transform: translateY(-50%); transition: opacity 0.15s ease; pointer-events: none; } .shell-tab-draggable:hover .shell-tab-grip { opacity: 0.9; } @media (prefers-reduced-motion: reduce) { .shell-tab-grip { transition: none; } } .shell-tab-link { color: var(--muted); text-decoration: none; font-size: 0.9em; } .shell-tab-active .shell-tab-link { color: var(--fg); } .shell-tab-link:hover { color: var(--fg); } /* Same reset every icon-only chrome button in this codebase uses (`Badge`'s own `