@layer tokens, base, ui, shell, surface;
/* The desktop and tablet shell (shells/desktop): the original's tab shell, from its shell.css (the gx-
   columns, rail, sidebar, tab strip, panes), os.css (windows, the chats list) and layout.css (the
   Assistant header). Rules for things this shell doesn't draw were left out. */
@layer shell {
  /* ---- windows: the frame panes and the Assistant column share (the original's os.css) ------ */
  .os-window {
    position: relative;
    display: grid;
    grid-template-rows: var(--os-window-bar-height) minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    container-type: inline-size;
  }
  .os-window__bar,
  .os-window__header {
    display: grid;
    grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    padding: 0 6px 0 10px;
    border-bottom: var(--line-width) solid var(--color-border);
    user-select: none;
  }
  .os-window__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
  }
  .os-window__title {
    overflow: hidden;
    color: var(--color-ink-secondary);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-title);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .os-window__header-slot {
    min-width: 0;
    overflow: hidden;
  }
  .os-window__actions {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .os-window__body {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .os-window__body > * {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  .os-ui__announcer {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Registered so the columns ease between widths (the Assistant closing, the sidebar docking)
     instead of snapping. */
  /* The Assistant column: its header holds the chat's title and menu; the body is the surface. */
  .os-window[data-kind="assistant"] :is(.os-window__bar, .os-window__header) {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 6px;
  }
  .os-window[data-kind="assistant"] .os-window__header-slot {
    height: 100%;
  }
  .os-window[data-kind="assistant"] .os-window__body {
    overflow: visible;
  }
  .os-window[data-kind="assistant"] .chat-history__header {
    height: 100%;
    gap: 8px;
    /* 14px at the end: the original kept its (hidden) chat actions there, past an 8px gap. */
    padding: 0 14px 0 6px;
    border: 0;
  }
  .assistant-header .assistant-header__conversation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-md);
  }
  .os-assistant-window {
    container: assistant / size;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }
  /* A surface's element is a flex column filling its place. */
  .gx-pane .os-window__body > .surface-host {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  @property --gx-assist {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
  }
  @property --gx-left {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
  }
  .gx {
    --assist-w: 400px;
    /* The left column: the rail, or the sidebar docked (tabShell.js is-side-docked). */
    --w-side: 260px;
    --gx-left: var(--w-rail);
    --gx-assist: var(--assist-w);
    --gx-h: calc(100dvh - var(--kb-inset, 0px));
    position: fixed;
    inset: 0 0 auto;
    height: var(--gx-h);
    /* Rounded corners in landscape; the status bar and home indicator are inset inside the
       panels (below), so their backgrounds run to the screen's edges. Zero outside an
       edge-to-edge app. */
    padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
    display: grid;
    grid-template-columns: var(--gx-left) var(--gx-assist) 0 minmax(0, 1fr);
    grid-template-areas: "left assist divider stage";
    transition: --gx-assist var(--dur-layout) var(--ease), --gx-left var(--dur-layout) var(--ease);
    isolation: isolate;
    color: var(--color-ink);
    background: var(--grad-desk);
    font-family: var(--font-sans);
    font-size: var(--type-14);
  }
  /* The status bar is kept clear everywhere. The home indicator is kept clear under the Assistant's
     composer and the sidebar's foot; the tabs' content runs to the screen's edge under it, so a
     docked app has no band of another colour beneath it. */
  .gx-assist,
  .gx-side {
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  }
  .gx-stage {
    padding-top: env(safe-area-inset-top, 0px);
  }
  /* The keyboard covers the home indicator. */
  html.has-keyboard :is(.gx-assist, .gx-side) {
    padding-bottom: 0;
  }
  .gx [hidden],
  .gx[hidden] {
    display: none !important;
  }
  .gx.is-side-docked {
    --gx-left: var(--w-side);
  }
  .gx.is-collapsed,
  .gx.is-slideover {
    --gx-assist: 0px;
  }
  /* The tabs area closed (tabShell.js setStageOpen): the Assistant takes the whole width, easing
     back to its own when the area opens again (a Welcome's first app reveals it). With the
     Assistant collapsed too, only the background and the left column show. */
  .gx.is-stage-closed {
    --gx-assist: calc(100vw - var(--gx-left) - env(safe-area-inset-left, 0px) -
      env(safe-area-inset-right, 0px));
  }
  .gx.is-stage-closed.is-collapsed {
    --gx-assist: 0px;
  }
  .gx.is-stage-closed .gx-assist {
    border-right: 0;
  }
  .gx.is-stage-closed .gx-stage {
    visibility: hidden;
    opacity: 0;
  }
  .gx-stage {
    transition: opacity var(--dur-layout) var(--ease), visibility 0s linear;
  }
  .gx.is-stage-closed .gx-stage {
    transition: opacity var(--dur-control) var(--ease), visibility 0s linear var(--dur-control);
  }
  /* Revealed: the tabs slide in from the right as the Assistant eases back to its width. */
  .gx.is-stage-revealing .gx-stage {
    animation: gx-stage-in var(--dur-layout) var(--ease) both;
  }
  @keyframes gx-stage-in {
    from {
      opacity: 0;
      transform: translateX(32px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .gx.is-stage-revealing .gx-stage {
      animation: none;
    }
  }
  /* A whole-width Assistant keeps its chat, composer, the voice suggestion chips over it and the
     tray under it (attach, voice, model level) to a readable column; the scroller stays the full
     width, so nothing of it shows in the middle of the screen. */
  .gx.is-stage-closed:not(.is-slideover) .gx-panel :is(.chat-history__content, .voice-chips, .chat, .chat__tray) {
    width: min(100%, 860px);
    margin-inline: auto;
  }
  /* The Assistant's chat scrolls with no bar of its own (user, 2026-10-30). */
  .gx .gx-panel .chat-history__body {
    scrollbar-width: none;
  }
  .gx .gx-panel .chat-history__body::-webkit-scrollbar {
    display: none;
  }
  /* Slide-over with the tabs area closed: the Assistant is the screen. */
  .gx.is-slideover.is-stage-closed .gx-assist {
    width: calc(100vw - var(--gx-left));
    box-shadow: none;
  }
  .gx.is-slideover .gx-stage-close {
    display: none;
  }
  .gx.is-resizing,
  .gx.is-resizing * {
    cursor: col-resize !important;
    user-select: none;
  }
  .gx.is-resizing,
  .gx.is-instant {
    transition: none;
  }

  /* ---- shared bits ------------------------------------------------------------------------- */
  .gx-glyph {
    display: inline-grid;
    place-items: center;
    flex: none;
    color: var(--kind, var(--color-ink-secondary));
  }
  .gx-glyph svg {
    display: block;
  }
  .gx-eyebrow {
    font: 500 var(--type-11) / 1.3 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-ink-faint);
  }
  .gx-iconbtn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--h-control);
    height: var(--h-control);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-ink-secondary);
    cursor: pointer;
    transition: background var(--dur-control) var(--ease), color var(--dur-control) var(--ease);
  }
  .gx-iconbtn:hover {
    background: var(--color-fill);
    color: var(--color-ink);
  }
  .gx-iconbtn:active,
  .gx-rail__btn:active {
    transform: scale(var(--press-scale));
  }
  .gx-skel {
    display: block;
    width: 78%;
    height: 12px;
    margin: 6px 0;
    border-radius: var(--radius-row);
    background: linear-gradient(90deg, var(--color-fill), var(--color-fill-strong),
      var(--color-fill));
    background-size: 200% 100%;
    animation: gx-skel 1.4s linear infinite;
  }
  .gx-skel.is-short {
    width: 52%;
  }
  @keyframes gx-skel {
    to {
      background-position: -200% 0;
    }
  }
  .gx-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--color-measure);
    color: var(--color-on-accent);
    font: 600 var(--type-11) / 16px var(--font-sans);
    text-align: center;
  }

  /* ---- the Assistant panel (desk tone) ----------------------------------------------------- */
  .gx-assist {
    grid-area: assist;
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    background: var(--tone-desk);
    border-right: var(--line-width) solid var(--color-border);
  }
  :root[data-material="glass"] .gx-assist {
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
    -webkit-backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
  }
  .gx .gx-panel.os-window {
    flex: 1;
    /* Its own width while the column eases open or shut around it: cut off, not squeezed. */
    min-width: min(var(--assist-w), calc(100vw - var(--gx-left) - 24px));
    grid-template-rows: var(--h-bar) minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .gx .gx-panel > .gx-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 var(--space-2);
    background: transparent;
    border-bottom: var(--line-width) solid var(--color-border-soft);
    cursor: default;
  }
  .gx .gx-panel .os-window__identity {
    display: flex;
  }
  /* The drawer button sits as far in from the left as Hide does from the right. */
  .gx .gx-panel > .gx-head .chat-history__header {
    padding-inline-start: 0;
  }
  .gx .gx-panel .os-window__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  /* Slide-over (tablet portrait, narrow windows): the panel floats over the tabs beside the left
     column. */
  .gx.is-slideover .gx-assist {
    position: fixed;
    z-index: calc(var(--z-panel) + 4);
    /* Fixed, so the shell's side padding does not reach it; its own padding keeps the
       status bar and home indicator clear. */
    inset: 0 auto auto calc(var(--gx-left) + env(safe-area-inset-left, 0px));
    height: var(--gx-h);
    width: min(var(--assist-w), calc(100vw - var(--gx-left) - 24px));
    box-shadow: var(--shadow-pop);
  }
  .gx-scrim {
    position: fixed;
    z-index: calc(var(--z-panel) + 3);
    inset: 0;
    border: 0;
    padding: 0;
    background: var(--color-scrim);
  }
  /* The slide-over, its scrim and the rail beside it stack above a docked app. */
  .gx.is-slideover .gx-rail,
  .gx.is-slideover.is-side-docked .gx-side {
    z-index: calc(var(--z-panel) + 5);
  }

  /* ---- the divider ------------------------------------------------------------------------- */
  .gx-divider {
    grid-area: divider;
    position: relative;
    z-index: 3;
    width: 0;
    outline: none;
  }
  .gx-divider::before {
    content: "";
    position: absolute;
    inset: 0 -4px;
    cursor: col-resize;
  }
  .gx-divider::after {
    content: "";
    position: absolute;
    inset: 0 -1px;
    background: transparent;
    transition: background var(--dur-control) var(--ease);
  }
  .gx-divider:hover::after,
  .gx-divider:focus-visible::after,
  .gx.is-resizing .gx-divider::after {
    background: var(--color-accent-fill);
  }

  /* ---- the rail ---------------------------------------------------------------------------- */
  .gx-rail {
    grid-area: left;
    justify-self: start;
    width: var(--w-rail);
    z-index: calc(var(--z-panel) + 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) 0
      calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--tone-desk);
    border-right: var(--line-width) solid var(--color-border);
  }
  :root[data-material="glass"] .gx-rail {
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
    -webkit-backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
  }
  .gx-rail__space {
    flex: 1;
  }
  .gx-rail__btn[aria-pressed="true"] {
    color: var(--color-ink);
  }

  /* ---- the sidebar: chats and settings (sessionSidebar.js, adopted), apart from the Assistant --- */
  .gx-side {
    grid-area: left;
    z-index: calc(var(--z-panel) + 1);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--tone-desk);
    border-right: var(--line-width) solid var(--color-border);
  }
  :root[data-material="glass"] .gx-side {
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
    -webkit-backdrop-filter: blur(var(--material-blur)) saturate(var(--material-sat));
  }
  /* Over the content: a peek from the rail, a tap on touch, or pinned without room to dock. Above
     the slide-over, its scrim and docked apps. */
  .gx.is-side-float .gx-side {
    position: fixed;
    z-index: calc(var(--z-panel) + 6);
    inset: 0 auto auto env(safe-area-inset-left, 0px);
    width: var(--w-side);
    height: var(--gx-h);
    box-shadow: var(--shadow-pop);
    animation: gx-side-in var(--dur-med) var(--ease);
  }
  /* Over other content it reads as a sheet, not glass. */
  .gx.is-side-float .gx-side,
  :root[data-material="glass"] .gx.is-side-float .gx-side {
    background: var(--color-bg);
  }
  /* Its rows keep their width while a docking column eases open or shut around them. */
  .gx-side > * {
    min-width: var(--w-side);
  }
  @keyframes gx-side-in {
    from {
      translate: -16px 0;
      opacity: 0;
    }
  }
  @keyframes gx-side-out {
    to {
      translate: -16px 0;
      opacity: 0;
    }
  }
  /* The two toggles sit where the rail has them. */
  .gx-side__head {
    display: flex;
    flex: none;
    gap: 2px;
    padding: var(--space-2) var(--space-2) 0;
  }
  .gx-side__body {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }
  .gx-side__body > .assistant-sidebar {
    flex: 1;
    min-height: 0;
    opacity: 1;
    background: transparent;
    border-right: 0;
  }
  .gx-side__foot {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2);
    border-top: var(--line-width) solid var(--color-border);
  }
  .gx-side__tank {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    height: 40px;
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-hold);
    background: transparent;
    color: var(--color-ink);
    font: 500 var(--type-13) / 1.2 var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-control) var(--ease);
  }
  .gx-side__tank:hover,
  .gx-side__tank.is-open {
    background: var(--color-fill);
  }
  .gx-side__avatar {
    display: grid;
    flex: none;
    place-items: center;
  }
  .gx-side__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* The Assistant keeps only the conversation: its header loses the drawer button. */
  .gx .assistant-header__sidebar {
    display: none;
  }
  .gx-rail__btn {
    position: relative;
    display: grid;
    place-items: center;
    /* 32px with a 2px gap: the rail's and the sidebar head's icons sit close (user, 2026-10-30). */
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-hold);
    background: transparent;
    color: var(--color-ink-secondary);
    cursor: pointer;
    transition: background var(--dur-control) var(--ease), color var(--dur-control) var(--ease),
      transform var(--dur-press) var(--ease-press);
  }
  .gx-rail__btn:hover,
  .gx-rail__btn.is-open {
    background: var(--color-fill);
    color: var(--color-ink);
  }
  .gx-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    overflow: hidden;
    border-radius: var(--radius-row);
    background: var(--color-fill-strong);
    color: var(--color-ink);
    font: 600 var(--type-11) / 1 var(--font-sans);
  }
  .gx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* The mark (30px) sits on a soft glow, not a disc: raised tone behind it, fading into the rail at
     the edges, so every beat (delegating flies three blades out to ~1.48× its radius, gm-dispatch)
     lands inside the glow. The glow is 54px across (the rail is 56) and is also the touch target. */
  .gx-rail__mark {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: var(--space-1);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .gx-rail__mark::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7px;
    border-radius: 50%;
    background: radial-gradient(
      closest-side,
      var(--tone-raised) 0%,
      var(--tone-raised) 58%,
      color-mix(in srgb, var(--tone-raised) 55%, transparent) 78%,
      transparent 100%
    );
  }
  .gx-rail__mark::before {
    transition: scale var(--dur-control) var(--ease);
  }
  .gx-rail__mark:hover::before {
    scale: 1.08;
  }
  /* Themes whose mark is a button of its own keep it (themes.css): no glow around it. */
  :root:is([data-theme="millennium"], [data-theme="retro"]) .gx-rail__mark::before {
    background: none;
  }
  .gx-rail__mark[data-voice-state="recording"] {
    box-shadow: 0 0 0 calc(3px + var(--voice-level, 0) * 6px) var(--color-wash);
  }
  .gx-rail__mark[data-voice-state="waiting"]::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--tone-desk);
    border-radius: 50%;
    background: var(--color-measure);
  }

  .gx-side__foot .gx-rail__mark {
    flex: none;
    margin: 0 2px 0 4px;
  }
  .gx-rail__mark[aria-pressed="true"]::before {
    scale: 1.08;
  }

  /* ---- the Assistant popover (pop.js; the original's .voice-popover) -------------------------
     Centred along the foot of the window, floating over everything: a frosted face over a blurred
     halo. Collapsed it is the chat box alone; the progress area joins over it (assistant/pop.css). */
  .gx-pop {
    position: fixed;
    z-index: var(--z-popover);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    padding: 12px;
    color: var(--color-ink);
    background: color-mix(in srgb, var(--color-surface) 82%, transparent);
    border: 0;
    border-radius: var(--radius-popover);
    box-shadow: var(--shadow-pop), 0 0 0 var(--line-width) var(--color-border);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    animation: gx-pop-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .gx-pop[hidden] {
    display: none;
  }
  .gx-pop.is-leaving {
    animation: gx-pop-out 340ms cubic-bezier(0.4, 0, 0.2, 1) both;
    pointer-events: none;
  }
  .gx-pop__host {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  /* Its height easing (assistant/view.js smoothly()): what doesn't fit is clipped at the top, never
     pushing the chat box down. */
  .gx-pop.is-resizing {
    overflow: clip;
    justify-content: flex-end;
  }
  .gx-pop-halo {
    position: fixed;
    z-index: var(--z-popover);
    border-radius: var(--radius-popover);
    background: color-mix(in srgb, var(--color-surface) 6%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    --halo-fade:
      linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent),
      linear-gradient(to bottom, transparent, #000 44px, #000 calc(100% - 44px), transparent);
    -webkit-mask-image: var(--halo-fade);
    -webkit-mask-composite: source-in;
    mask-image: var(--halo-fade);
    mask-composite: intersect;
    pointer-events: none;
    animation: gx-halo-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .gx-pop-halo[hidden] {
    display: none;
  }
  .gx-pop-halo.is-leaving {
    animation: gx-halo-out 340ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes gx-pop-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
  }
  @keyframes gx-pop-out {
    to { opacity: 0; transform: translateY(6px) scale(0.99); }
  }
  @keyframes gx-halo-in {
    from { opacity: 0; }
  }
  @keyframes gx-halo-out {
    to { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .gx-pop, .gx-pop-halo { animation: none; }
  }

  /* ---- the stage (sheet tone) -------------------------------------------------------------- */
  .gx-stage {
    grid-area: stage;
    display: grid;
    grid-template-rows: var(--h-bar) minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    background: var(--tone-sheet);
    container-type: inline-size;
  }
  .gx-bar {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-width: 0;
    padding: 0 var(--space-2) 0 var(--space-3);
    border-bottom: var(--line-width) solid var(--color-border);
  }
  .gx-bar__space {
    flex: 1;
    min-width: var(--space-2);
  }
  .gx-bar__utilities {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
  .gx-bar__utilities .os-bar__button {
    width: var(--h-control);
    height: var(--h-control);
    min-width: 0;
    padding: 0;
    border-radius: var(--radius-pill);
  }
  .gx-bar__utilities .os-bar__button > span:not(.os-launcher-badge) {
    display: none;
  }

  .gx-tabs {
    display: flex;
    flex: 0 1 calc(var(--tab-count, 1) * 202px + 14px);
    /* Opening or closing a tab widens or narrows the strip in step with the tab (tabShell.js). */
    transition: flex-basis var(--dur-layout) var(--ease);
    align-items: center;
    gap: 2px;
    min-width: 0;
    /* A scroller clips on every side: room for the active tab's shadow, taken back by the margin. */
    padding: 12px 8px;
    margin: -12px -8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gx-tabs::-webkit-scrollbar {
    display: none;
  }
  .gx-tabs.is-clipped-end {
    mask-image: linear-gradient(90deg, var(--paint-black) calc(100% - 28px), transparent);
  }
  .gx-tabs.is-clipped-start {
    mask-image: linear-gradient(90deg, transparent, var(--paint-black) 28px);
  }
  .gx-tabs.is-clipped-start.is-clipped-end {
    mask-image: linear-gradient(
      90deg,
      transparent,
      var(--paint-black) 28px,
      var(--paint-black) calc(100% - 28px),
      transparent
    );
  }
  .gx-tabs__rule {
    flex: none;
    width: var(--line-width);
    height: 20px;
    margin: 0 var(--space-2);
    background: var(--color-border-strong);
  }
  /* Tabs share the bar equally up to 200px (at most 8, osWorkspace.js OS_TASK_CAP); each is a
     container so a narrow one drops its glyph and gives the room to its name. */
  .gx-tab {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 200px;
    min-width: 56px;
    container: gx-tab / inline-size;
    height: 34px;
    border: var(--line-width) solid var(--color-border-soft);
    border-radius: var(--radius-pill);
    transition: background var(--dur-control) var(--ease), border-color var(--dur-control)
      var(--ease),
      box-shadow var(--dur-control) var(--ease), opacity var(--dur-control) var(--ease);
  }
  .gx-tab:hover {
    background: var(--color-fill);
    border-color: var(--color-border);
  }
  .gx-tab.is-active {
    background: var(--tone-raised);
    border-color: var(--color-border);
    box-shadow: var(--shadow-lift);
  }
  .gx-tab.is-dragging {
    opacity: 0.5;
  }
  .gx-tab[data-drop="pair"] {
    box-shadow: inset 0 0 0 2px var(--color-accent-fill);
  }
  .gx-tab[data-drop="before"]::before,
  .gx-tab[data-drop="after"]::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: var(--radius-row);
    background: var(--color-accent-fill);
  }
  .gx-tab[data-drop="before"]::before {
    left: -2px;
  }
  .gx-tab[data-drop="after"]::before {
    right: -2px;
  }
  .gx-tab__main {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 14px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--color-ink-secondary);
    font: 500 var(--type-13) / 1 var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: padding var(--dur-control) var(--ease), color var(--dur-control) var(--ease);
  }
  .gx-tab.is-active .gx-tab__main {
    color: var(--color-ink);
  }
  .gx-tab__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gx-tab__dot {
    display: none;
    animation: gx-pop var(--dur-med) var(--ease-spring);
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-fill);
  }
  .gx-tab.is-geist .gx-tab__dot {
    display: block;
  }
  /* Close floats over the tab's end; the name makes room only where it shows. */
  .gx-tab:hover .gx-tab__main,
  .gx-tab.is-active .gx-tab__main {
    padding-right: 30px;
  }
  @container gx-tab (max-width: 104px) {
    .gx-tab__glyph {
      display: none;
    }
    .gx-tab__main {
      padding-left: 12px;
    }
  }
  .gx-tab__close {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    translate: 0 -50%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-ink-faint);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--dur-control) var(--ease);
  }
  .gx-tab:hover .gx-tab__close,
  .gx-tab.is-active .gx-tab__close,
  .gx-tab__close:focus-visible {
    opacity: 1;
  }
  .gx-tab__close:hover {
    background: var(--color-fill-strong);
    color: var(--color-ink);
  }

  /* A pair: two tabs joined in one item, the split glyph before them. */
  .gx-pair {
    display: flex;
    align-items: center;
    flex: 0 1 420px;
    min-width: 140px;
    gap: 2px;
    padding: 2px;
    border-radius: var(--radius-pill);
    background: var(--color-fill);
  }
  .gx-pair {
    transition: background var(--dur-control) var(--ease);
    animation: gx-pop var(--dur-med) var(--ease-spring);
  }
  .gx-pair.is-active {
    background: var(--color-fill-strong);
  }
  .gx-pair .gx-tab {
    height: 30px;
  }
  .gx-pair__split {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-ink-faint);
    cursor: pointer;
    transition: background var(--dur-control) var(--ease), color var(--dur-control) var(--ease);
  }
  .gx-pair__split:hover {
    color: var(--color-ink);
    background: var(--color-fill-strong);
  }



  /* ---- panes ------------------------------------------------------------------------------- */
  .gx-body {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
  }
  .gx-panes {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
  }
  .gx-empty {
    position: absolute;
    animation: gx-fade var(--dur-med) var(--ease-enter) both;
    animation-delay: var(--dur-fast);
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-3);
    color: var(--color-ink-secondary);
  }
  .gx .gx-pane.os-window {
    position: relative;
    grid-template-rows: auto minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
  .gx .gx-pane + .gx-pane {
    border-left: var(--line-width) solid var(--color-border);
  }
  /* The pane you're in, when two show: a pine line along its top. */
  .gx-panes[data-count="2"] > .gx-pane::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 2px;
    background: var(--color-accent-fill);
    opacity: 0;
    scale: 0.6 1;
    transition: opacity var(--dur-control) var(--ease), scale var(--dur-layout) var(--ease);
  }
  .gx-panes[data-count="2"] > .gx-pane.is-active::before {
    opacity: 1;
    scale: 1;
  }
  .gx .gx-pane > .gx-head {
    height: 44px;
    grid-template-columns: 0 minmax(0, 1fr) auto;
    padding: 0 var(--space-2) 0 var(--space-3);
    background: transparent;
    border-bottom: var(--line-width) solid var(--color-border-soft);
    cursor: default;
  }
  .gx .gx-pane > .gx-head.is-bare {
    display: none;
  }
  .gx .gx-pane .os-window__identity {
    overflow: hidden;
    width: 0;
  }
  .gx .gx-pane .os-window__mark {
    display: none;
  }
  .gx .gx-pane [data-unsplit] {
    display: none;
  }
  .gx-panes[data-count="2"] .gx-pane > .gx-head.is-bare {
    display: grid;
    height: 32px;
  }
  .gx-panes[data-count="2"] .gx-pane [data-unsplit] {
    display: inline-grid;
    width: 26px;
    height: 26px;
  }

  /* ---- motion (tabShell.js `show`: a node on its way out carries .is-leaving) ------------------- */
  @keyframes gx-fade {
    from {
      opacity: 0;
    }
  }
  @keyframes gx-fade-out {
    to {
      opacity: 0;
    }
  }
  @keyframes gx-pop {
    from {
      opacity: 0;
      scale: 0.6;
    }
  }
  @keyframes gx-slide-in {
    from {
      opacity: 0.4;
      translate: -32px 0;
    }
  }
  @keyframes gx-slide-out {
    to {
      opacity: 0;
      translate: -32px 0;
    }
  }
  /* Docked, the Assistant's column eases open and shut (--gx-assist); its panel fades with it. */
  .gx-assist > .gx-panel {
    animation: gx-fade var(--dur-layout) var(--ease-enter);
  }
  .gx-assist.is-leaving > .gx-panel {
    opacity: 0;
    transition: opacity var(--dur-overlay-out) var(--ease-exit);
  }
  /* Over the tabs (slide-over, a floating sidebar): it slides in from the left and back out. */
  .gx.is-slideover .gx-assist {
    animation: gx-slide-in var(--dur-med) var(--ease-enter);
  }
  .gx.is-slideover .gx-assist.is-leaving {
    animation: gx-slide-out var(--dur-overlay-out) var(--ease-exit) forwards;
    pointer-events: none;
  }
  .gx.is-side-float .gx-side.is-leaving {
    animation: gx-side-out var(--dur-overlay-out) var(--ease-exit) forwards;
  }
  .gx-side.is-leaving {
    pointer-events: none;
  }
  .gx-side.is-leaving > * {
    opacity: 0;
    transition: opacity var(--dur-overlay-out) var(--ease-exit);
  }
  .gx-scrim {
    animation: gx-fade var(--dur-med) var(--ease-enter);
  }
  .gx-scrim.is-leaving {
    animation: gx-fade-out var(--dur-overlay-out) var(--ease-exit) forwards;
    pointer-events: none;
  }
  .gx-rail [data-toggle="assist"],
  .gx-badge {
    animation: gx-pop var(--dur-med) var(--ease-spring);
  }
  .gx-rail.is-leaving {
    display: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .gx,
    .gx * {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Outside the tab shell the drawer's settings list and the header's ⋯ menu don't exist. */
  .assistant-sidebar__settings,
  .assistant-header__more {
    display: none;
  }
  .gx .assistant-header__more {
    display: inline-grid;
  }
  .gx .assistant-header [data-manage],
  .gx .gx-panel [data-history-clear],
  .gx .gx-panel [data-history-close],
  .gx .gx-panel .changes-btn {
    display: none;
  }
  .gx .assistant-sidebar__inner {
    width: 100%;
  }
  .gx .assistant-sidebar__list {
    flex: 1;
    min-height: 0;
  }
  .gx .assistant-sidebar__settings {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--space-2) var(--space-2) var(--space-3);
    border-top: var(--line-width) solid var(--color-border);
  }
  .assistant-sidebar__settings-label {
    margin: var(--space-1) var(--space-2) var(--space-1);
    color: var(--color-ink-faint);
    font: 500 var(--type-11) / 1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .assistant-sidebar__setting {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 32px;
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-row);
    background: transparent;
    color: var(--color-ink-secondary);
    font: 400 var(--type-13) / 1 var(--font-sans);
    text-align: left;
    cursor: pointer;
  }
  .assistant-sidebar__setting:hover {
    background: var(--color-fill);
    color: var(--color-ink);
  }



  /* A bare pane hides its head: the body keeps the second row (the first collapses to nothing). */
  .gx .os-window > .gx-head {
    grid-row: 1;
  }
  .gx .os-window > .os-window__body {
    grid-row: 2;
  }

  .assistant-sidebar__trash {
    position: relative;
    margin-top: var(--space-3);
  }
  .assistant-sidebar__trash::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--space-2)) var(--space-2) auto;
    height: var(--line-width);
    background: var(--color-border-soft);
  }

  /* ---- Millennium and Retro in two panels (docs/ui.md §2.8) ------------------------------------
     The app reads as one maximised window of their era: the panel header and the tab bar are its
     title strip (white ink on the strip's paint), the Assistant and the rail sit on the window face
     rather than the desktop, and the rail's mark is the start button. */
  :root:is([data-theme="millennium"], [data-theme="retro"]) {
    --tone-desk: var(--color-surface);
  }
  :root:is([data-theme="millennium"], [data-theme="retro"]) :is(.gx-bar, .gx-panel > .gx-head) {
    background: var(--window-title-paint-active);
    border-bottom: 0;
    --color-ink: #ffffff;
    --color-ink-secondary: rgba(255, 255, 255, 0.92);
    --color-ink-faint: rgba(255, 255, 255, 0.78);
    --color-accent-text: #ffffff;
    --color-fill: rgba(255, 255, 255, 0.18);
    --color-fill-strong: rgba(255, 255, 255, 0.3);
    --color-border: rgba(255, 255, 255, 0.28);
    --color-border-strong: rgba(255, 255, 255, 0.45);
    --color-wash: rgba(255, 255, 255, 0.22);
    --logo-ink: #ffffff;
    --logo-act: #8ff07a;
    color: var(--color-ink);
  }
  :root:is([data-theme="millennium"], [data-theme="retro"]) .gx-bar .gx-tab.is-active {
    background: var(--tone-sheet);
    box-shadow: none;
  }
  :root[data-theme="retro"] .gx-bar .gx-tab.is-active {
    box-shadow: var(--bevel-raised);
  }
  :root:is([data-theme="millennium"], [data-theme="retro"]) .gx-rail {
    border-right: var(--line-width) solid var(--window-edge-active);
  }
  /* The start button. */
  :root[data-theme="millennium"] .gx-rail__mark {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-hold);
    background: linear-gradient(180deg, #4ec43a 0%, #379e2a 46%, #2f8d23 54%, #3fae2f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.25),
      1px 2px 4px rgba(0, 0, 0, 0.35);
    --logo-ink: #ffffff;
    --logo-act: #ffffff;
  }
  :root[data-theme="retro"] .gx-rail__mark {
    border-radius: 0;
    background: #c0c0c0;
    box-shadow: var(--bevel-raised);
  }
  :root[data-theme="retro"] .gx-rail__mark:active {
    box-shadow: var(--bevel-sunken);
  }
  .assistant-sidebar {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface-side);
    border-right: var(--line-width) solid transparent;
    opacity: 0;
    transition: border-color var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
  }

  .assistant-sidebar__inner {
    display: flex;
    flex-direction: column;
    width: var(--assistant-sidebar-width);
    height: 100%;
    min-height: 0;
  }

  .assistant-sidebar__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-2) var(--space-2) 6px;
  }

  .assistant-sidebar__new {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 32px;
    padding: 0 10px;
    color: var(--color-ink);
    background: var(--color-surface-raised);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lift);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: transform var(--dur-press) var(--ease-press), box-shadow var(--dur-fast) var(--ease);
  }

  @media (hover: hover) {
    .assistant-sidebar__new:hover {
      transform: translateY(var(--hover-lift));
      box-shadow: var(--shadow-lift-hover);
    }
  }
  .assistant-sidebar__new:active {
    transform: scale(var(--press-scale));
  }

  .assistant-sidebar__search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 var(--space-2);
    color: var(--color-ink-faint);
    background: var(--color-fill);
    border-radius: var(--radius-pill);
    cursor: text;
    transition: box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }

  .assistant-sidebar__search:focus-within {
    color: var(--color-ink-secondary);
    background: var(--color-wash);
    box-shadow: 0 0 0 2px var(--color-accent-fill);
  }

  .assistant-sidebar__search svg {
    flex: 0 0 auto;
  }

  .assistant-sidebar__search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    color: var(--color-ink);
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: var(--text-sm);
  }

  .assistant-sidebar__search input::placeholder {
    color: var(--color-ink-faint);
  }

  .assistant-sidebar__search input::-webkit-search-cancel-button {
    display: none;
  }

  .assistant-sidebar__list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 6px var(--space-3);
  }

  /* Labels line up with row titles, which sit past the status-dot gutter. */
  .assistant-sidebar__label {
    padding: var(--space-3) var(--space-2) var(--space-1) calc(var(--space-2) + 15px);
    color: var(--color-ink-faint);
    font-family: var(--font-mono);
    font-size: var(--type-11);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .assistant-sidebar__row {
    display: flex;
    align-items: center;
    border-radius: var(--radius-pill);
  }

  .assistant-sidebar__row:focus-within,
  .assistant-sidebar__row.is-menu-open {
    background: var(--color-fill);
  }

  @media (hover: hover) {
    .assistant-sidebar__row:hover {
      background: var(--color-fill);
    }
  }
  .assistant-sidebar__row.is-active {
    background: var(--color-wash);
  }

  .assistant-sidebar__pick {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    height: 32px;
    padding: 0 var(--space-2);
    color: var(--color-ink);
    font-size: var(--text-sm);
    text-align: left;
  }

  .assistant-sidebar__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-pill);
    background: var(--color-accent-fill);
    visibility: hidden;
  }

  .assistant-sidebar__row[data-phase] .assistant-sidebar__dot {
    visibility: visible;
  }

  .assistant-sidebar__row[data-phase="running"] .assistant-sidebar__dot {
    animation: assistant-pulse 1.6s ease-in-out infinite;
  }

  .assistant-sidebar__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assistant-sidebar__row.is-active .assistant-sidebar__title,
  .assistant-sidebar__row[data-phase="finished"] .assistant-sidebar__title {
    font-weight: var(--weight-semibold);
  }

  .assistant-sidebar__title.is-arrived {
    animation: assistant-title-in 420ms var(--ease) both;
  }

  .assistant-sidebar__meta {
    flex: 0 0 auto;
    color: var(--color-ink-faint);
    font-family: var(--font-mono);
    font-size: var(--type-11);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .assistant-sidebar__row[data-phase="running"] .assistant-sidebar__meta {
    color: var(--color-accent-text);
  }

  /* ⋯ replaces the timestamp on hover instead of squeezing the title. */
  .assistant-sidebar__more {
    display: none;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 4px;
    color: var(--color-ink-secondary);
    border-radius: var(--radius-pill);
  }

  .assistant-sidebar__row:is(:hover, :focus-within, .is-menu-open) .assistant-sidebar__more {
    display: grid;
  }

  .assistant-sidebar__row:has(.assistant-sidebar__more):is(:hover, :focus-within, .is-menu-open) .assistant-sidebar__meta {
    display: none;
  }

  .assistant-sidebar__more:focus-visible {
    color: var(--color-ink);
    background: var(--color-fill-strong);
  }

  @media (hover: hover) {
    .assistant-sidebar__more:hover {
      color: var(--color-ink);
      background: var(--color-fill-strong);
    }
  }

  .assistant-sidebar__group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: var(--space-2);
    padding: 6px var(--space-2);
    color: var(--color-ink-secondary);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
  }

  .assistant-sidebar__group:focus-visible {
    background: var(--color-fill);
  }

  @media (hover: hover) {
    .assistant-sidebar__group:hover {
      background: var(--color-fill);
    }
  }
  .assistant-sidebar__group svg {
    transition: rotate var(--dur-fast) var(--ease);
  }

  .assistant-sidebar__group[aria-expanded="true"] svg {
    rotate: 90deg;
  }

  .assistant-sidebar__group-label {
    flex: 1 1 auto;
    text-align: left;
  }

  .assistant-sidebar__count {
    min-width: 18px;
    padding: 0 5px;
    background: var(--color-fill);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: var(--type-11);
    line-height: 16px;
    text-align: center;
  }

  @media (prefers-reduced-motion: reduce) {
    .assistant-sidebar {
      transition: none;
    }
    .assistant-sidebar__row[data-phase="running"] .assistant-sidebar__dot,
    .assistant-sidebar__title.is-arrived {
      animation: none;
    }
  }
  .chat-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-1) var(--space-2);
    border-bottom: var(--border-hairline);
    flex-shrink: 0;
  }

  /* Chat header: conversation title (opens the session menu) and settings. */
  .assistant-header {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-width: 0;
    flex: 1 1 auto;
  }
  .assistant-header__conversation {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 4px;
    color: var(--color-ink);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 28px;
  }
  .assistant-header__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .assistant-header__title.is-placeholder {
    color: var(--color-ink-secondary);
    font-weight: var(--weight-medium);
  }
  /* A generated or renamed title settles in rather than snapping. */
  .assistant-header__title.is-arrived {
    animation: assistant-title-in 420ms var(--ease) both;
  }
  @keyframes assistant-title-in {
    from {
      opacity: 0;
      filter: blur(3px);
      translate: 0 3px;
    }
  }
  .assistant-header__sidebar {
    position: relative;
    flex: 0 0 auto;
  }
  .assistant-header__sidebar[aria-expanded="true"] {
    color: var(--color-ink);
  }
  /* A chat that finished in the background, unseen, while the list is hidden. */
  .assistant-header__unread {
    position: absolute;
    top: 4px;
    right: 3px;
    display: none;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-pill);
    background: var(--color-accent-fill);  box-shadow: 0 0 0 2px var(--color-surface);
  }

  /* ---- raised ink (the original's theme-unification §3.1): lifted things take the raised ink ---- */
  :is(.gx-tab.is-active, .gx-rail__mark, .gx kbd) {
    --color-ink: var(--raised-ink);
    --color-ink-secondary: var(--raised-ink-secondary);
    --color-ink-faint: var(--raised-ink-faint);
    --color-accent-text: var(--raised-accent-text);
    --color-accent-fill: var(--raised-accent-fill);
    --color-on-accent: var(--raised-on-accent);
    --grad-lit: var(--raised-grad-lit);
    --color-wash: var(--raised-wash);
    --color-measure-text: var(--raised-measure-text);
    --color-danger: var(--raised-danger);
    --color-fill: var(--raised-fill);
    --color-fill-strong: var(--raised-fill-strong);
    --color-border: var(--raised-border);
    --color-border-soft: var(--raised-border-soft);
    color: var(--color-ink);
  }
  /* The active chat row is lifted, as in the original's sidebar. */
  .gx-side .assistant-sidebar__row.is-active {
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-lift);
  }

}
