dsh-islands-ui 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js CHANGED
@@ -87,6 +87,10 @@ const HOST_ATTRIBUTES = Object.freeze([
87
87
  'data-composer-seat',
88
88
  'data-composer-overlay',
89
89
  'data-composer-dock',
90
+ 'data-composer-input',
91
+ 'data-composer-composing',
92
+ 'data-composer-chip-selected',
93
+ 'data-input-scroll',
90
94
  'data-rightbar-col',
91
95
  'data-sidebar-right-panel',
92
96
  'data-sidebar-right-open',
@@ -198,6 +202,9 @@ const HERO_PARTS = {
198
202
  const COMPOSER_PARTS = {
199
203
  cardWorkspaceTrigger: 'composer-card-workspace-trigger',
200
204
  notice: 'composer-notice',
205
+ // The send circle. Its stock fill is an info token the accent does not
206
+ // remap, so the skin reaches it through a part instead of its class name.
207
+ primary: 'composer-primary',
201
208
  };
202
209
 
203
210
  /** The conversation body wrapper, which embeds a second conversation. */
@@ -522,7 +529,553 @@ function installParts() {
522
529
  }
523
530
  };
524
531
  }
525
- const CSS = "/* ---- 00-tokens.css ---- */\n/* ==========================================================================\n Islands UI · 00 tokens\n One source of truth for the skin. Every rule below reads these variables,\n so light/dark, radius, elevation and spacing are changed in one place.\n `--dsw-*` aliases are re-pointed at the Islands scale so shipped components\n inherit the new language without per-component overrides.\n ========================================================================== */\n\nbody[data-islands-ui] {\n /* Canvas: the unified background all islands float on. */\n --isl-canvas: #f7f7f7;\n --isl-canvas-veil: rgba(232, 234, 239, 0.72);\n /* Island surfaces. */\n --isl-surface: #ffffff;\n --isl-surface-muted: #f3f5f8;\n --isl-surface-sunken: #eceef3;\n /* Hairlines: Islands uses tinted, very quiet borders. */\n --isl-border-soft: rgba(17, 24, 39, 0.06);\n --isl-border: rgba(17, 24, 39, 0.09);\n --isl-border-strong: rgba(17, 24, 39, 0.14);\n --isl-hover: rgba(17, 24, 39, 0.055);\n --isl-active: rgba(17, 24, 39, 0.09);\n --isl-accent: #4176e6;\n /* Geometry. */\n --isl-radius-xl: 20px;\n --isl-radius-lg: 16px;\n --isl-radius-md: 12px;\n --isl-radius-sm: 8px;\n --isl-gap: 5px;\n --isl-topbar-height: 40px;\n /* Extra chrome above the app top bar (the Windows title bar). */\n --isl-chrome-top: 0px;\n --isl-rail-collapsed-width: 56px;\n --isl-rail-width: 48px;\n /* Elevation: a hairline ring plus one soft, deep shadow. */\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(17, 24, 39, 0.05), 0 10px 24px -10px rgba(17, 24, 39, 0.14),\n 0 28px 64px -32px rgba(17, 24, 39, 0.3);\n\n /* ---- DSH alias layer -------------------------------------------------- */\n --dsw-alias-bg-base: var(--isl-surface);\n --dsw-alias-bg-layer-1: var(--isl-surface);\n --dsw-alias-bg-layer-2: var(--isl-surface);\n --dsw-alias-bg-layer-3: var(--isl-surface-muted);\n --dsw-alias-bg-overlay: var(--isl-surface);\n --dsw-alias-bg-module-platform: var(--isl-surface-muted);\n --dsw-alias-bg-multi-select: var(--isl-surface-muted);\n --dsw-alias-bg-skeleton: rgba(17, 24, 39, 0.06);\n --dsw-specific-sidebar-fill: var(--isl-surface);\n --dsw-specific-input-major: var(--isl-surface);\n --dsw-specific-selector: var(--isl-surface-muted);\n --dsw-specific-tip: var(--isl-surface-muted);\n --dsw-specific-bubble: var(--isl-surface-muted);\n --dsw-specific-bubble-highlight: #eef1f6;\n --dsw-specific-sidebar-nav-item-active: var(--isl-surface-muted);\n --dsw-specific-sidebar-nav-item-active-accent: color-mix(\n in srgb,\n var(--dsw-alias-state-business-primary) 16%,\n transparent\n );\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 90%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 92%, transparent);\n --dsw-alias-markdown-code-block: var(--isl-surface-muted);\n --dsw-alias-markdown-code-block-banner: var(--isl-surface-muted);\n --dsw-alias-markdown-inline-code: var(--isl-surface-muted);\n --dsw-alias-markdown-tag: var(--isl-surface-muted);\n --dsw-alias-settings-card-fill: color-mix(in srgb, var(--isl-surface-muted) 68%, var(--isl-surface));\n --dsw-alias-settings-card-stroke: var(--isl-border-soft);\n --dsw-alias-border-l1: var(--isl-border-soft);\n --dsw-alias-border-l2: var(--isl-border-soft);\n --dsw-alias-border-l3: var(--isl-border);\n --dsw-alias-border-l4: var(--isl-border-strong);\n --dsw-alias-interactive-bg-hover: var(--isl-hover);\n --dsw-alias-interactive-bg-active: var(--isl-active);\n --dsw-alias-interactive-bg-hover-solid: var(--isl-surface-muted);\n --dsw-alias-button-elevated-fill: var(--isl-surface);\n --dsw-alias-button-floating-fill: var(--isl-surface);\n --dsw-alias-button-floating-hover: var(--isl-surface-muted);\n --dsw-radius-xs: 6px;\n --dsw-radius-sm: 8px;\n --dsw-radius-md: 10px;\n --dsw-radius-lg: 14px;\n --dsw-radius-xl: 18px;\n --dsw-radius-panel: 20px;\n --dsw-menu-backdrop-filter: blur(18px) saturate(140%);\n --dsw-mask-blur: blur(3px);\n --dsw-alias-bg-mask-1: rgba(107, 114, 128, 0.3);\n --dsw-alias-bg-mask-2: rgba(107, 114, 128, 0.18);\n\n background-color: var(--isl-canvas) !important;\n}\n\n/* Elevation tokens are declared on `body, body *` by the shipped theme, so the\n override has to be declared on descendants too, not only on body. */\nbody[data-islands-ui] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 6px 16px -6px rgba(17, 24, 39, 0.1),\n 0 18px 40px -24px rgba(17, 24, 39, 0.24);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(17, 24, 39, 0.12),\n 0 24px 48px -28px rgba(17, 24, 39, 0.24);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 12px 28px -10px rgba(17, 24, 39, 0.16),\n 0 32px 64px -32px rgba(17, 24, 39, 0.3);\n --dsw-shadow-lv1: 0 2px 4px rgba(17, 24, 39, 0.05);\n --dsw-shadow-lv2: 0 4px 12px rgba(17, 24, 39, 0.06), 0 2px 8px rgba(17, 24, 39, 0.04);\n --dsw-shadow-lv3:\n 0 0 1px rgba(17, 24, 39, 0.2), 0 12px 32px rgba(17, 24, 39, 0.08);\n}\n\n/* ---- Dark --------------------------------------------------------------- */\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-canvas: #0f1012;\n --isl-canvas-veil: rgba(15, 16, 18, 0.72);\n --isl-surface: #1b1c1f;\n --isl-surface-muted: #232428;\n --isl-surface-sunken: #151619;\n --isl-border-soft: rgba(255, 255, 255, 0.06);\n --isl-border: rgba(255, 255, 255, 0.09);\n --isl-border-strong: rgba(255, 255, 255, 0.16);\n --isl-hover: rgba(255, 255, 255, 0.06);\n --isl-active: rgba(255, 255, 255, 0.1);\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 28px -12px rgba(0, 0, 0, 0.6),\n 0 32px 72px -36px rgba(0, 0, 0, 0.85);\n\n --dsw-alias-bg-skeleton: rgba(255, 255, 255, 0.07);\n --dsw-specific-bubble-highlight: #2a2c31;\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-bg-mask-1: rgba(0, 0, 0, 0.55);\n --dsw-alias-bg-mask-2: rgba(0, 0, 0, 0.32);\n}\n\nbody[data-islands-ui][data-ds-dark-theme] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(0, 0, 0, 0.55),\n 0 20px 44px -24px rgba(0, 0, 0, 0.7);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 10px 24px -10px rgba(0, 0, 0, 0.55),\n 0 28px 56px -30px rgba(0, 0, 0, 0.75);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 14px 32px -12px rgba(0, 0, 0, 0.6),\n 0 36px 72px -36px rgba(0, 0, 0, 0.85);\n --dsw-shadow-lv1: 0 2px 6px rgba(0, 0, 0, 0.35);\n --dsw-shadow-lv2: 0 6px 16px rgba(0, 0, 0, 0.4);\n --dsw-shadow-lv3: 0 0 1px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.45);\n}\n\n/* Windows keeps its native title bar above the app top bar. The title bar is\n the only chrome there: the island top bar is not rendered, so its 40px\n reservation collapses and the islands start directly below the caption. */\nhtml[data-windows-titlebar] body[data-islands-ui] {\n --isl-chrome-top: var(--dsh-windows-titlebar-height, 32px);\n --isl-topbar-height: 0px;\n}\n\n/* User-selected accent: remap the business tokens everywhere. */\nbody[data-islands-ui][data-islands-accent],\nbody[data-islands-ui][data-islands-accent] * {\n --dsw-alias-state-business-primary: var(--isl-accent);\n --dsw-alias-state-business-tertiary: color-mix(in srgb, var(--isl-accent) 16%, transparent);\n}\n\n/* macOS ships a tinted, translucent sidebar. Islands wants an opaque canvas\n instead, so the tint is replaced everywhere it is declared. */\nhtml[data-platform='darwin'] body[data-islands-ui],\nhtml[data-platform='darwin'] body[data-islands-ui][data-ds-dark-theme] {\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 94%, transparent);\n}\n\n/* ---- 10-shell.css ---- */\n/* ==========================================================================\n Islands UI · 10 shell\n The frame becomes a canvas; the three columns become detachable islands.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n /* The ocean is a solid surface, never the desktop showing through vibrancy. */\n background: var(--isl-canvas);\n padding: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap)) var(--isl-gap) var(--isl-gap);\n /* Column gap only: the empty bottom track must not steal an extra row gap,\n so the islands stay symmetric top and bottom. */\n gap: 0 var(--isl-gap);\n}\n\n/* A real bottom panel (terminal, banner) still gets breathing room. */\nbody[data-islands-ui] [data-shell-bottom]:has([data-slot='shell.bottom'] > *) {\n margin-top: var(--isl-gap);\n}\n\n/* The closed right column is a zero-width track, but the grid still reserves a\n gap beside it; pull the centre island over that gap so the canvas margin on\n the right equals the margin on the left. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-rightbar-collapsed] [data-islands-part~=\"center-column\"] {\n margin-right: calc(-1 * var(--isl-gap));\n}\n\n/* Center column: the conversation island. */\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: hidden;\n}\n\n/* Shipped desktop rules paint the sidebar with a gradient and give the center\n column a left hairline; both are removed so the canvas reads as one plane. */\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n background: var(--isl-canvas);\n}\n\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"]:not([data-sidebar-drawer]) [data-islands-part~=\"sidebar-column\"] {\n background: transparent;\n border-right: 0;\n backdrop-filter: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-column\"] {\n background: transparent;\n border-right: 0;\n}\n\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"center-column\"],\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-left: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"main-panel\"] {\n background: transparent;\n}\n\n/* Right workbench: only while a pane is open does the column render an island. */\nbody[data-islands-ui] [data-rightbar-col] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: clip;\n}\n\n/* Drawer mask on narrow windows: Islands keeps the veil light and blurred. */\nbody[data-islands-ui] [data-sidebar-mask] {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\n/* The shell overlay layer is where the rail and window top bar live. In\n drawer mode it must paint above the drawer mask (70) and the drawer (71),\n otherwise the persistent rail disappears under the open workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] [data-shell-overlay] {\n z-index: 72;\n }\n}\n\n/* The resize handle is invisible chrome; keep it grabbable but quiet. */\nbody[data-islands-ui] [data-side=\"sidebar\"],\nbody[data-islands-ui] [data-side=\"rightbar\"] {\n width: 10px;\n margin-left: -5px;\n}\n\n/* The shell computes the right handle's inline `left` from the frame's\n border-box width, but its absolute containing block is the padded grid area\n and the panel itself sits inside the right padding. That shifts the handle\n two gaps to the right — wholly inside the right island. Cancel the frame's\n horizontal padding so the strip straddles the right island's left edge\n (covering the whole canvas gap plus 5px of the panel) like the left one. */\nbody[data-islands-ui] [data-side=\"rightbar\"] {\n margin-left: calc(-5px - 2 * var(--isl-gap));\n}\n\n/* Windows title bar keeps its native height; the frame padding already gives\n the rounded content corner room, so only the radius is unified. */\n[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"center-column\"] {\n border-radius: var(--isl-radius-lg);\n}\n\n[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n background: var(--isl-canvas);\n}\n\n/* Collapsed sidebar on macOS drops the center column's left hairline; the\n island keeps its outline regardless. */\n[data-platform='darwin'] body[data-islands-ui] [data-sidebar-collapsed] [data-islands-part~=\"center-column\"] {\n border-left: 1px solid var(--isl-border-soft);\n}\n\n/* ==========================================================================\n Workbench panels (better-sidebar bottom dock + native right sidebar)\n Both must read as independent islands, not as sheets pasted onto the\n conversation island.\n ========================================================================== */\n\n/* The bottom workbench reserves its height on the conversation column, not on\n the inner panel, so the island itself shrinks and a canvas gap opens between\n the two islands. The peer-specific rules live in 60-peers.css. */\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n margin-bottom: var(--dsh-sidebar-height, 0px);\n transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\n/* The native right sidebar keeps its own width preference, which can exceed\n the track the frame grants; clamp it to the track so it never hangs over\n the conversation island. */\nbody[data-islands-ui] [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n box-sizing: border-box;\n width: 100% !important;\n max-width: 100% !important;\n min-width: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] [data-islands-part~=\"center-column\"] {\n transition: none;\n }\n}\n\n/* ==========================================================================\n Independent workspace collapse\n The DSH collapse swaps the whole sidebar render tree for its rail-only\n variant. Instead the expanded rail stays mounted and only the workspace\n column hides, so the left column never re-renders or re-flows.\n ========================================================================== */\n\n/* The width handle keeps its expanded inline position while the workspace is\n collapsed, which would leave an invisible drag target over the conversation.\n The workspace must be expanded to resize it. */\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-side=\"sidebar\"] {\n display: none;\n}\n\n/* The right column must keep its own track while the workspace is collapsed.\n Pin it to 0 only while the right pane is closed; when it opens, use the\n pane's PREFERRED width (published by the client). Reading the current\n column width here deadlocks: it is 0 while closed, so opening the pane\n could never grow the track, and the panel's `width: 100%` clamp would keep\n it at two border pixels. The fallback keeps the pane visible even before\n the width source has been located. */\nbody[data-islands-ui][data-islands-workspace-collapsed]\n [data-islands-part~=\"layout-frame\"]:not(\n :has([data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']))\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n}\n\nbody[data-islands-ui][data-islands-workspace-collapsed]\n [data-islands-part~=\"layout-frame\"]:has(\n [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen'])\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr)\n var(--isl-rightbar-w, max(300px, 45vw)) !important;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-islands-animating] {\n transition: grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\n/* ---- 15-topbar.css ---- */\n/* ==========================================================================\n Islands UI · 15 top bar\n A window-chrome strip above the three islands on platforms that need one.\n It clears the macOS traffic lights and docks the header tools; Windows\n renders neither, using its native caption row and conversation header.\n ========================================================================== */\n\n/* Registered even when the skin is off; the base rule keeps it out of the way. */\n.isl-topbar {\n display: none;\n}\n\nbody[data-islands-ui] .isl-topbar {\n position: fixed;\n inset: var(--isl-chrome-top) 0 auto;\n z-index: 30;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n height: var(--isl-topbar-height);\n /* macOS centers the traffic lights in its 48px window-chrome band; the\n controls follow that center (10 + 14 = 24), not the 40px bar's own. */\n padding: 10px 10px 0 8px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n /* The bar itself must never swallow clicks meant for controls that are\n docked over it; only the toggle and the drag handle opt back in. */\n pointer-events: none;\n -webkit-app-region: no-drag;\n user-select: none;\n}\n\n/* Left lead (traffic-light strip) and the centre of the bar are draggable;\n both stop short of the docked controls so clicks keep working. */\n/* The 88px lead exists only for the macOS traffic lights. */\nbody[data-islands-ui] .isl-topbarLead {\n display: none;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbar {\n padding-left: 88px;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbarLead {\n position: absolute;\n inset: 0 auto 0 0;\n display: block;\n width: 88px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\nbody[data-islands-ui] .isl-topbarDrag {\n flex: 1;\n align-self: stretch;\n min-width: 0;\n margin-right: 250px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\n/* Windows has no island top bar: every control lives in the native caption row\n or the conversation header, so the strip and its 40px reservation are gone. */\nhtml[data-windows-titlebar] body[data-islands-ui] .isl-topbar {\n display: none;\n}\n\nbody[data-islands-ui] .isl-topbarToggle {\n box-sizing: border-box;\n flex: none;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-topbarToggle:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-topbarToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Narrow desktop: the top bar remains the window chrome (drag strip + right\n panel toggle), but the rail's home button owns the workspace drawer. The\n chrome must paint above the drawer mask (70) and the drawer (71). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-topbar {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-topbarToggle {\n display: none;\n }\n\n body[data-islands-ui] .isl-topbarDrag {\n margin-right: 40px;\n }\n}\n\n/* ---- 16-rail.css ---- */\n/* ==========================================================================\n Islands UI · 16 left rail\n Every registered panel launcher lives directly in the rail. Drag an icon to\n reorder it; right-click the rail to show or hide launchers.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-rail {\n display: none;\n}\n\nbody[data-islands-ui] .isl-rail {\n position: fixed;\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + 10px);\n left: var(--isl-gap);\n z-index: 25;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n width: var(--isl-rail-width);\n max-height: calc(100vh - var(--isl-chrome-top) - var(--isl-topbar-height) - 112px);\n padding: 2px 6px;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n scrollbar-width: none;\n pointer-events: auto;\n user-select: none;\n}\n\nbody[data-islands-ui] .isl-rail::-webkit-scrollbar {\n width: 0;\n height: 0;\n}\n\nbody[data-islands-ui] .isl-railBtn {\n box-sizing: border-box;\n display: grid;\n place-items: center;\n flex: none;\n width: 36px;\n height: 36px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n touch-action: none;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out),\n opacity 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-railBtn:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\n/* The house is a pure navigation trigger (conversation / workspace drawer),\n not a destination in the panel model. It has no persistent selected state;\n hover keeps the standard rail feedback and a click paints a translucent\n ripple clipped to the rounded tile. */\nbody[data-islands-ui] .isl-railBtn[data-rail-id='workspace'] {\n position: relative;\n overflow: hidden;\n}\n\nbody[data-islands-ui] .isl-railRipple {\n position: absolute;\n display: block;\n border-radius: 50%;\n background: currentColor;\n pointer-events: none;\n transform: translate(-50%, -50%) scale(0.2);\n animation: isl-rail-ripple 560ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;\n will-change: transform, opacity;\n}\n\n@keyframes isl-rail-ripple {\n 0% {\n transform: translate(-50%, -50%) scale(0.2);\n opacity: 0.2;\n }\n\n 100% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .isl-railRipple {\n animation-duration: 1ms;\n }\n}\n\nbody[data-islands-ui] .isl-railBtn.is-active {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-railBtn:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\nbody[data-islands-ui] .isl-rail.is-dragging,\nbody[data-islands-ui] .isl-rail.is-dragging .isl-railBtn {\n cursor: grabbing;\n}\n\nbody[data-islands-ui] .isl-railBtn.is-dragging {\n background: var(--isl-active);\n opacity: 0.45;\n}\n\n/* Floating copy of the dragged icon; follows the pointer at 90% opacity. */\nbody[data-islands-ui] .isl-railGhost {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1200;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 36px;\n height: 36px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n opacity: 0.9;\n pointer-events: none;\n will-change: transform;\n}\n\nbody[data-islands-ui] .isl-railAdd {\n color: var(--dsw-alias-label-tertiary);\n}\n\nbody[data-islands-ui] .isl-railDivider {\n flex: none;\n width: 24px;\n height: 1px;\n margin: 2px 0;\n background: var(--isl-border-soft);\n}\n\n/* ---- Rail management menu --------------------------------------------- */\nbody[data-islands-ui] .isl-railMenu {\n position: fixed;\n z-index: 35;\n box-sizing: border-box;\n width: 248px;\n max-height: min(60vh, 440px);\n padding: 6px;\n overflow-y: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n user-select: none;\n}\n\nbody[data-islands-ui] .isl-railMenuTitle {\n padding: 4px 8px 6px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-railMenuRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 36px;\n padding: 5px 8px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-railMenuRow:hover,\nbody[data-islands-ui] .isl-railMenuRow.is-current {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-railMenuRow.is-hidden .isl-railMenuIcon,\nbody[data-islands-ui] .isl-railMenuRow.is-hidden .isl-railMenuText {\n opacity: 0.5;\n}\n\nbody[data-islands-ui] .isl-railMenuIcon {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-railMenuText {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 1px;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-railMenuLabel {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuSub {\n color: var(--dsw-alias-label-tertiary);\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuCheck {\n box-sizing: border-box;\n display: grid;\n place-items: center;\n flex: none;\n width: 18px;\n height: 18px;\n border: 1px solid var(--isl-border-soft);\n border-radius: 6px;\n color: transparent;\n}\n\nbody[data-islands-ui] .isl-railMenuCheck.is-on {\n border-color: transparent;\n background: color-mix(in srgb, var(--isl-accent) 14%, transparent);\n color: var(--isl-accent);\n}\n\nbody[data-islands-ui] .isl-railMenuHint {\n margin-top: 4px;\n padding: 6px 8px 2px;\n border-top: 1px solid var(--isl-border-soft);\n color: var(--dsw-alias-label-tertiary);\n font-size: 10px;\n line-height: 14px;\n}\n\nbody[data-islands-ui] .isl-railMenuEmpty {\n padding: 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* Settings gear pinned above the account avatar. */\nbody[data-islands-ui] .isl-railSettings {\n display: none;\n}\n\nbody[data-islands-ui] .isl-railSettings {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: 56px;\n z-index: 26;\n display: grid;\n place-items: center;\n}\n\n/* Narrow desktop: the rail is the persistent navigation; the workspace is a\n drawer opened from its home button. Both the rail and its menus must sit\n above the drawer (71) and the drawer mask (70). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-rail {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railSettings {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railMenu {\n z-index: 1100;\n }\n}\n\n/* ---- 17-update.css ---- */\n/* ==========================================================================\n Islands UI · 17 desktop update\n One circular update entry above the settings gear. The skin owns the whole\n surface: the shipped indicator lives in the 36px settings row and overflows\n beside the account avatar, and it does not expose a phase attribute.\n\n The three busy patterns follow the open-source Dot Matrix loaders\n (dotmatrix.zzzzshawn.cloud): dotm-3x3-7, dotm-3x3-16 and dotm-3x3-6.\n ========================================================================== */\n\n/* The native indicator (and its tiny toggle badge) would duplicate the rail\n button. The walker marks both seats, so the rules survive a host rebuild\n without naming a hashed class. */\nbody[data-islands-ui] [data-islands-part~=\"update-indicator\"],\nbody[data-islands-ui] [data-islands-part~=\"update-badge\"] {\n display: none !important;\n}\n\nbody[data-islands-ui] {\n --isl-update-bg: #4176e6;\n --isl-update-bg-hover: #3264d4;\n --isl-update-danger: #d93a40;\n}\n\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-update-danger: #ff6369;\n}\n\nbody[data-islands-ui] .isl-updateButton {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: calc(56px + 36px + 8px);\n z-index: 26;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n border: 1px solid transparent;\n border-radius: 50%;\n background: var(--isl-update-bg);\n color: #fff;\n cursor: default;\n box-shadow:\n 0 2px 6px -1px color-mix(in srgb, var(--isl-update-bg) 38%, transparent),\n 0 8px 18px -10px color-mix(in srgb, var(--isl-update-bg) 62%, transparent);\n transition:\n background-color 0.15s var(--ds-ease-in-out),\n box-shadow 0.15s var(--ds-ease-in-out),\n transform 0.15s var(--ds-ease-in-out),\n border-color 0.15s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable {\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:hover {\n background: var(--isl-update-bg-hover);\n transform: translateY(-1px);\n box-shadow:\n 0 3px 8px -1px color-mix(in srgb, var(--isl-update-bg) 44%, transparent),\n 0 10px 22px -10px color-mix(in srgb, var(--isl-update-bg) 72%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:active {\n transform: translateY(0) scale(0.96);\n}\n\nbody[data-islands-ui] .isl-updateButton:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--isl-update-bg) 40%, transparent);\n outline-offset: 2px;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-pending {\n opacity: 0.82;\n}\n\n/* Busy phases keep the circle but let the matrix carry the state. */\nbody[data-islands-ui] .isl-updateButton[aria-busy='true'] {\n cursor: default;\n}\n\n/* Error: a translucent danger surface, danger stroke, status dot and a retry\n glyph. The dot keeps the state readable without relying on color alone. */\nbody[data-islands-ui] .isl-updateButton.is-error {\n border-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 14%, transparent);\n color: var(--isl-update-danger);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error.is-clickable:hover {\n border-color: color-mix(in srgb, var(--isl-update-danger) 72%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 22%, transparent);\n box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error:focus-visible {\n outline-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\n/* Busy phases drop the circle entirely: the mosaic itself is the control,\n tinted with the user's accent so it belongs to the skin rather than to the\n shipped brand pill. */\nbody[data-islands-ui] .isl-updateButton.is-downloading,\nbody[data-islands-ui] .isl-updateButton.is-verifying,\nbody[data-islands-ui] .isl-updateButton.is-installing {\n border-color: transparent;\n background: transparent;\n color: var(--isl-accent);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateErrorDot {\n position: absolute;\n top: 2px;\n right: 2px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--isl-update-danger);\n box-shadow: 0 0 0 2px var(--isl-surface);\n}\n\n/* ---- 3x3 dot matrix ------------------------------------------------------ */\n\nbody[data-islands-ui] .isl-dmx {\n display: grid;\n grid-template-columns: repeat(3, 5px);\n grid-template-rows: repeat(3, 5px);\n gap: 2.5px;\n width: 20px;\n height: 20px;\n}\n\nbody[data-islands-ui] .isl-dmx-dot {\n display: block;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: currentColor;\n opacity: 0.14;\n will-change: opacity;\n}\n\n/* Column Flux (dotm-3x3-7): columns pulse left to right, all rows together.\n The three 400ms phases overlap, so at least one column stays lit while the\n busy button has no filled background behind it. */\nbody[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n animation: isl-dmx-column 1200ms cubic-bezier(0.42, 0, 0.58, 1) infinite;\n animation-delay: calc(var(--dmx-col) * 400ms);\n}\n\n/* Core Echo (dotm-3x3-6): Manhattan rings ripple out from the centre. */\nbody[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n animation: isl-dmx-ripple 1230ms ease-in-out infinite;\n animation-delay: calc(var(--dmx-ring) * 165ms);\n}\n\n/* Smiley Spin (dotm-3x3-16): the pixel glyph rotates in four 180ms phases.\n Each cell is lit for one or two phases; the first wraps across the cycle. */\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n animation-duration: 720ms;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n opacity: 0.12;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='1'] {\n animation-name: isl-dmx-spin-1;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='2'] {\n animation-name: isl-dmx-spin-2;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='wrap'] {\n animation-name: isl-dmx-spin-wrap;\n}\n\n@keyframes isl-dmx-column {\n 0% {\n opacity: 0.14;\n }\n\n 10% {\n opacity: 1;\n }\n\n 40% {\n opacity: 0.14;\n }\n\n 100% {\n opacity: 0.14;\n }\n}\n\n@keyframes isl-dmx-ripple {\n 0%,\n 100% {\n opacity: 0.08;\n }\n\n 34% {\n opacity: 1;\n }\n\n 60% {\n opacity: 0.22;\n }\n}\n\n@keyframes isl-dmx-spin-1 {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-2 {\n 0%,\n 45% {\n opacity: 0.88;\n }\n\n 50%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-wrap {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 70% {\n opacity: 0.12;\n }\n\n 75%,\n 100% {\n opacity: 0.88;\n }\n}\n\n/* Narrow desktop: the rail floats above the workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-updateButton {\n z-index: 72;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .isl-updateButton {\n transition: none;\n }\n\n body[data-islands-ui] .isl-dmx-dot {\n animation: none !important;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='2'] {\n opacity: 0.88;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='0'] {\n opacity: 1;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n opacity: 0.12;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-on='1'] {\n opacity: 0.88;\n }\n}\n\n/* ---- Settings showcase --------------------------------------------------- */\n\nbody[data-islands-ui] .isl-updateShowcase {\n margin-top: 18px;\n padding: 16px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--dsw-alias-settings-card-fill);\n}\n\nbody[data-islands-ui] .isl-updateShowcaseHead {\n margin-bottom: 14px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseDesc {\n margin-top: 3px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseGrid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));\n gap: 14px 8px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseItem {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n min-width: 0;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseStage {\n display: grid;\n place-items: center;\n width: 56px;\n height: 56px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n}\n\nbody[data-islands-ui] .isl-updateShowcase .isl-updateButton.is-preview {\n position: relative;\n left: auto;\n bottom: auto;\n z-index: auto;\n transform: none;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseLabel {\n color: var(--dsw-alias-label-primary);\n font-size: 12px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-updateShowcasePhase {\n color: var(--dsw-alias-label-tertiary);\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 10px;\n line-height: 14px;\n}\n\n/* ---- 20-sidebar.css ---- */\n/* ==========================================================================\n Islands UI · 20 sidebar\n The expanded sidebar is one full-height island: a persistent icon rail on\n the left and the workspace browser on the same surface. The island spans the\n exact same top and bottom edges as the conversation island. Collapsed mode\n keeps the shipped rail untouched.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"] {\n background: transparent;\n}\n\n/* ---- Expanded: chrome rail + workspace island --------------------------- */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) {\n display: grid;\n grid-template-columns: var(--isl-rail-width) minmax(0, 1fr);\n grid-template-rows: var(--isl-gap) auto minmax(0, 1fr) auto;\n column-gap: var(--isl-gap);\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n position: relative;\n isolation: isolate;\n}\n\n/* The workspace browser is the sidebar's only island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])::after {\n content: '';\n position: absolute;\n z-index: -1;\n inset: 0 0 0 calc(var(--isl-rail-width) + var(--isl-gap));\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n pointer-events: none;\n}\n\n/* The top band is a small breathing gap inside the sidebar column. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"sidebar-top-strip\"] {\n grid-area: 1 / 1 / 2 / -1;\n height: 100%;\n margin: 0;\n padding: 0 4px 0 0;\n justify-content: flex-end;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] {\n grid-area: 2 / 1;\n height: 36px;\n margin: 0 0 6px;\n padding: 0;\n justify-content: center;\n overflow: visible;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"brand-button\"] {\n justify-content: center;\n overflow: visible;\n}\n\n/* The brand wordmark and build stamp belong to window chrome, not the rail. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"brand-name\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"local-build-brand\"] {\n display: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"brand-mark\"] {\n width: 28px;\n height: 28px;\n}\n\n/* Two host shapes share this rule set: before 0.2.2-rc.3 the button itself is\n the sidebar grid item; from rc.3 a `newSessionRow` wrapper carries the\n session-action slot and is the grid item. The button keeps its grid-area so\n the older shape still lays out; inside the row the property is inert and the\n row owns the outer margin. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"] {\n grid-area: 2 / 2;\n height: 36px;\n margin: 0 6px 6px;\n padding: 0 8px;\n justify-content: flex-start;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n box-shadow: none;\n color: var(--dsw-alias-label-primary);\n font-weight: 400;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"] {\n grid-area: 2 / 2;\n height: 36px;\n margin: 0 6px 6px;\n padding: 0;\n align-items: center;\n}\n\n/* rc.3: the row owns the outer spacing; the button fills it. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"] [data-islands-part~=\"new-session\"] {\n margin: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-content\"] {\n justify-content: flex-start;\n width: 100%;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"]:hover {\n background: var(--isl-hover);\n}\n\n/* The global panel list becomes the rail's primary navigation. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-list\"] {\n grid-area: 3 / 1;\n align-self: start;\n align-items: center;\n gap: 4px;\n margin: 2px 0 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-row\"] {\n width: 36px;\n height: 36px;\n justify-content: center;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-row\"][data-islands-part~=\"panel-active\"] {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}\n\n/* The label leaves the visual rail but stays in the accessibility tree. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-title\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Workspace browser: same surface, full height ----------------------- */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"region-area\"] {\n grid-area: 3 / 2 / 5 / 3;\n margin: 0;\n padding: 0 4px 6px;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"region-area\"] {\n --dsh-session-list-edge-inset: 4px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"section-header\"] {\n padding-inline: 8px;\n margin-right: 0;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n letter-spacing: 0.01em;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"section-label\"] {\n font-weight: 500;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"list\"] {\n padding-bottom: 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"list-fade\"] {\n background: linear-gradient(to bottom, transparent, var(--isl-surface));\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"],\nbody[data-islands-ui] [data-row-key^=\"workspace:\"] {\n border-radius: var(--isl-radius-sm);\n padding-inline: 8px;\n}\n\n/* ---- Rail foot: settings gear ------------------------------------------ */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] {\n grid-area: 4 / 1;\n align-items: center;\n margin-top: 6px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-area\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"footer-actions\"] {\n width: auto;\n align-items: center;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-trigger-row\"] {\n width: auto;\n margin: 4px 0 2px;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"] {\n flex: none;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-trigger-label\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"]:hover,\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"][aria-expanded='true'] {\n background: var(--isl-hover);\n}\n\n/* Footer actions contributed next to Settings (account launcher, etc.). */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"footer-actions\"] button {\n width: 36px;\n height: 36px;\n border-radius: var(--isl-radius-md);\n}\n\n/* ---- Collapsed rail ------------------------------------------------------ */\n/* Collapsing hides the workspace browser only; the rail keeps its own island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"][data-islands-part~=\"sidebar-collapsed\"] {\n /* The rail is chrome, not an island: it sits directly on the ocean. */\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n padding: 8px 10px 6px;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"][data-islands-part~=\"sidebar-collapsed\"] [data-islands-part~=\"sidebar-top-strip\"] {\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-collapsed\"] [data-islands-part~=\"new-session\"] {\n border-radius: var(--isl-radius-md);\n}\n\n/* The window top bar / rail own the collapse controls; the in-island toggle\n would duplicate them at every width. Windows is the exception: DSH pins its\n native toggle in the caption row, so there the skin must not hide or restyle\n it — the top bar drops its own copy and leaves the native control alone. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"sidebar-toggle\"] {\n display: none;\n}\n\n@media (min-width: 768px) {\n /* On macOS the shipped frame gives a collapsed sidebar zero width, hiding\n the rail too. Restore one rail-wide track (right panel still closed). */\n [data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-collapsed][data-rightbar-collapsed] {\n grid-template-columns: var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n }\n\n /* The rail itself is the expand control; do not reserve header space for the\n floating seat and do not show a second expand button over the island. */\n [data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-collapsed] {\n --dsh-frame-leading-clearance: 0px;\n }\n}\n\n/* The window chrome and the rail own the sidebar controls; the floating seat\n is redundant (and at narrow widths would sit under the traffic lights). */\nbody[data-islands-ui] [data-shell-leading] {\n display: none;\n}\n\n/* ---- Search / section chrome inside the island --------------------------- */\nbody[data-islands-ui] [data-islands-part~=\"search-expanded\"] {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n border-radius: var(--isl-radius-sm);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"search-expanded\"] [data-islands-part~=\"search-button\"]:hover {\n background: transparent;\n}\n\n/* ---- Narrow drawer ------------------------------------------------------- */\n/* Below the top bar's breakpoint the workspace becomes an overlay drawer. It\n starts at the frame's content top (below the top bar and its 5px gap) and\n leaves the window's 5px canvas margin on the left; the workspace card inside\n keeps the right/bottom 5px so the drawer still reads as an island. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"sidebar-column\"] {\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap));\n bottom: 0;\n left: var(--isl-gap);\n background: var(--isl-canvas);\n border-right: 0;\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"sidebar-root\"]::after {\n inset: 0 var(--isl-gap) var(--isl-gap) calc(var(--isl-rail-width) + var(--isl-gap));\n}\n\n/* The sidebar's grid track is zero in drawer mode, but its column gap remains;\n shift the conversation island right by the persistent rail so the closed\n drawer leaves the rail visible and the island keeps its 5px gap. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"center-column\"] {\n margin-left: var(--isl-rail-width);\n}\n\n/* ---- Account launcher (settings.launcher) --------------------------------\n In this build the sidebar foot is the account menu rather than the bare\n settings gear, so the same rail geometry applies to its trigger. The\n trigger itself is the host's `data-signed-out` button; its label is marked\n by the walker. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"account-root\"] {\n flex: none;\n width: 36px;\n margin-inline: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"account-anchor\"] {\n width: 36px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out][data-signed-out='false']:not([data-collapsed='true']),\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out][data-signed-out='true']:not([data-collapsed='true']) {\n width: 36px;\n height: 36px;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-islands-part~=\"account-label\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Independent workspace collapse ------------------------------------- */\n/* Hide the workspace island only; the rail keeps its expanded-layout DOM and\n position, so nothing in the left column is re-rendered by the toggle. */\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"region-area\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])::after {\n display: none !important;\n}\n\n/* ---- Custom rail replaces the shipped brand + panel icon column ---------- */\n/* Windows is the one platform that keeps the logo row in the tree: DSH's\n fixed caption-row toggle is a child, and `display: none` on the ancestor\n would remove the native button. The row loses its own box below instead. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-list\"] {\n display: none !important;\n}\n\nhtml[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] {\n display: contents;\n}\n\nhtml[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] [data-islands-part~=\"brand-button\"] {\n display: none;\n}\n\n/* ---- Aggregate pinned sessions ------------------------------------------ */\n.isl-pinnedHost {\n display: block;\n flex: none;\n}\n\n.isl-pinned {\n display: none;\n padding: 2px 4px 0;\n}\n\nbody[data-islands-ui] .isl-pinned {\n display: block;\n}\n\n/* Pinned rows stay in place in their workspace groups and are also collected\n in the aggregate block above. The original row keeps a subtle tint. */\nbody[data-islands-ui] [data-islands-part~=\"pin-indicator\"] {\n color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"]:has([data-islands-part~=\"pin-indicator\"]) {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, transparent);\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"]:has([data-islands-part~=\"pin-indicator\"]):hover {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);\n}\n\n.isl-pinnedHead {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font: inherit;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n/* Collapsible header mirrors the quiet workspace section header: colour only. */\n.isl-pinnedHead:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-tertiary);\n transform: rotate(-90deg);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinned[data-open] .isl-pinnedChevron {\n transform: rotate(0deg);\n}\n\n.isl-pinnedTitle {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.isl-pinnedCount {\n margin-left: auto;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n font-weight: 400;\n}\n\n.isl-pinnedList {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding: 1px 0 3px;\n}\n\n.isl-pinnedRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 8px 0 34px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n.isl-pinnedRow:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.isl-pinnedName {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n/* Hover marquee: clip the ellipsis, fade both edges as the title crawls. */\n.isl-pinnedRow:hover .isl-pinnedName {\n text-overflow: clip;\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled] {\n mask-image: linear-gradient(90deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-clipped] {\n mask-image: linear-gradient(270deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled][data-clipped] {\n mask-image: linear-gradient(90deg, #0000, #000 12px calc(100% - 12px), #0000);\n}\n\n.isl-pinnedRow:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n.isl-pinnedPinBtn,\n.isl-pinnedLocate {\n display: none;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n margin-left: 4px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-xs, 6px);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinnedRow:hover .isl-pinnedPinBtn,\n.isl-pinnedRow:focus-within .isl-pinnedPinBtn,\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedRow:hover .isl-pinnedLocate,\n.isl-pinnedRow:focus-within .isl-pinnedLocate,\n.isl-pinnedLocate:focus-visible {\n display: grid;\n}\n\n.isl-pinnedPinBtn:hover,\n.isl-pinnedLocate:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedLocate:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Brief highlight on the session the locate action focuses. */\nbody[data-islands-ui] [data-row-key^=\"session:\"].isl-located {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, transparent) !important;\n}\n\n/* ==========================================================================\n Sidebar scroll containers\n Releases from 0.2.2-rc.2 wrap the panel list and workspace browser in\n `scrollRegion > scrollArea`. The parts are only written when those wrappers\n exist, so the same sheet covers the older flat shell without a variant.\n ========================================================================== */\n\n/* The browser column replaces the old direct regionArea grid item. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] {\n grid-area: 3 / 2 / 5 / 3;\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n margin: 0;\n}\n\n/* The shipped grid only made sense inside the full-height shell; the island\n grid wants a plain column so the workspace browser can fill the island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] > [data-islands-part~=\"sidebar-scroll-area\"] {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n margin: 0;\n overflow: hidden;\n}\n\nbody[data-islands-ui]\n [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])\n > [data-islands-part~=\"sidebar-scroll-region\"]\n > [data-islands-part~=\"sidebar-scroll-area\"]\n > [data-islands-part~=\"region-area\"] {\n flex: 1;\n min-height: 0;\n}\n\n/* The shipped bottom fade reads as a panel edge; the island supplies its own. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] > [data-islands-part~=\"sidebar-scroll-fade\"] {\n display: none;\n}\n\n/* The selected-panel state moved from the row onto the wrapping entry; mirror\n the base active rule for the shipped rail. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"] [data-islands-part~=\"panel-entry-active\"] [data-islands-part~=\"panel-row\"] {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}\n\n/* ---- 30-conversation.css ---- */\n/* ==========================================================================\n Islands UI · 30 conversation & composer\n ========================================================================== */\n\nbody[data-islands-ui] [data-phase] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"conversation-header\"] {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"conversation-header-blank\"] {\n border-bottom-color: transparent;\n}\n\nbody[data-islands-ui] [data-conversation-scroll] {\n margin-right: 0;\n}\n\n/* Composer: the one element that should visibly float above the island. */\nbody[data-islands-ui] [data-composer-card] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n box-shadow: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"composer-card-workspace-trigger\"]:after {\n border-radius: var(--dsw-radius-panel);\n color: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"composer-notice\"] {\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface-muted);\n}\n\n/* Sticky composer seat fades into the island surface, not into a raw token. */\nbody[data-islands-ui] [data-phase='active'] [data-composer-seat],\nbody[data-islands-ui] [data-islands-part~=\"embedded-body\"][data-content-phase='active'] [data-composer-seat] {\n background: linear-gradient(\n 180deg,\n color-mix(in srgb, var(--isl-surface) 0%, transparent) 0px,\n var(--isl-surface) 36px\n );\n}\n\n/* Hero: a calmer, slightly tighter headline on the open island. */\nbody[data-islands-ui] [data-islands-part~=\"hero-headline\"] {\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"hero-workspace\"] {\n border-radius: 999px;\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"hero-workspace\"]:hover {\n background: var(--isl-hover);\n}\n\n/* Tool / turn cards keep their own hierarchy but gain island hairlines. */\nbody[data-islands-ui] [data-turn-trigger] {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] [data-turn-trigger]:hover {\n background: var(--isl-surface-sunken);\n}\n\n/* Header chips and breadcrumbs. */\nbody[data-islands-ui] [data-islands-part~=\"header-crumb\"] {\n border-radius: var(--isl-radius-sm);\n}\n\n/* View tabs sit on the island as a quiet segmented row. */\nbody[data-islands-ui] [data-conversation-tabs] {\n gap: 22px;\n}\n\nbody[data-islands-ui] [data-conversation-tabs] [role=\"tab\"][aria-selected=\"true\"]:after {\n border-radius: 999px;\n height: 2px;\n}\n\n/* ==========================================================================\n Header utilities live in the window bar\n The three trailing controls (session tools, side panel, right panel) leave\n the conversation island and dock at the bar's right edge, vertically aligned\n with the workspace toggle on the left.\n ========================================================================== */\n@media (min-width: 768px) {\n /* Windows leaves these controls in the conversation header: the native\n caption row already exists, so the skin keeps no extra strip to dock\n them into. */\n html:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"header-utilities\"] {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: 41px; /* frame gap 5 + corner 28 + gap 8 */\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n\n html:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"header-corner\"] {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n}\n\n/* ==========================================================================\n Always-visible right sidebar toggle\n The native header button unmounts while the panel is open and the panel\n carries its own collapse control. On every platform except Windows the top\n bar owns one persistent toggle instead, and closes through the native\n collapse action. Windows keeps DSH's own controls: the header corner opens\n the panel and the panel header closes it.\n ========================================================================== */\n/* Body-portaled (see RightPanelToggle): keep it out of the DOM flow while the\n skin is off, so the base rule cannot leak a raw button into the page. */\n.isl-rightToggle {\n display: none;\n}\n\n/* z-index 900: above the workbench panel host (dsh-better-sidebar: host 25,\n dock 40, float 60, floating window 90) and the app's transient tooltip/\n hovercard layer (100), below menus and dialogs (1000+). The button is\n portaled to <body>, so this value competes with the body-level layers\n directly instead of being trapped in the frame's z-index-20 overlay layer. */\nbody[data-islands-ui] .isl-rightToggle {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 900;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-rightToggle:hover,\nbody[data-islands-ui] .isl-rightToggle[aria-pressed='true'] {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-rightToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Windows has no island top bar, so the portalled copy steps aside and DSH's\n own expand/collapse buttons below are left alone. */\nhtml[data-windows-titlebar] body[data-islands-ui] .isl-rightToggle {\n display: none;\n}\n\n/* Outside Windows the top bar owns open and close; the island's own\n expand/collapse controls would duplicate it. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-sidebar-right-expand] {\n /* Keep the native expand button's box in the layout even though the top\n bar's toggle paints over it. Other header plugins anchor to this\n button's rect (dsh-better-sidebar's blank-session dock fallback does),\n and `display: none` collapses that rect to 0x0, sending them to the\n top-left corner where they collide with the workspace toggle. */\n visibility: hidden !important;\n pointer-events: none !important;\n}\n\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-sidebar-right-toggle] {\n display: none !important;\n}\n\n/* ---- 40-settings.css ---- */\n/* ==========================================================================\n Islands UI · 40 settings (and shared dialog surfaces)\n The settings window is an island; its navigation is a recessed island.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"settings-overlay\"] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-mask\"] {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-panel\"] {\n width: 860px;\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: 24px;\n box-shadow: var(--isl-shadow-float);\n padding: 10px;\n gap: 8px;\n grid-template-columns: 188px minmax(0, 1fr);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-title\"] {\n padding: 8px 8px 6px;\n font-size: 15px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\n/* The navigation mirrors the workspace list: no recessed panel, quiet rows. */\nbody[data-islands-ui] [data-islands-part~=\"settings-nav\"] {\n padding: 4px;\n background: transparent;\n border: 0;\n border-radius: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-list\"] {\n gap: 2px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"] {\n height: 32px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 18px;\n gap: 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"]:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"][data-islands-part~=\"settings-nav-active\"] {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n font-weight: 500;\n box-shadow: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-icon\"] {\n width: 16px;\n height: 16px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-icon\"] svg {\n width: 100%;\n height: 100%;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-header\"] {\n height: 48px;\n padding: 6px 6px 0 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-options\"] {\n padding: 0 8px 16px;\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-close\"] {\n border-radius: var(--isl-radius-sm);\n}\n\n/* Cards and sections inside settings pages keep the host's own geometry and\n use the skin's card tokens (00-tokens). They are deliberately not matched by\n local class name: the plugin settings pages also ship `.card`/`.section`,\n and a broad match restyles their internals. */\n\n/* The general-page rows keep their separators but at island quietness. */\nbody[data-islands-ui] [data-slot='settings.general.item'] > * {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-slot='settings.general.item']:last-child > * {\n border-bottom: 0;\n}\n\n/* Dialogs opened from settings (confirmations, pickers). */\nbody[data-islands-ui] [role='dialog'] {\n border-radius: var(--isl-radius-xl);\n}\n\n/* Account page cards. */\nbody[data-islands-ui] [data-islands-part~=\"account-balance-card\"] {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n background: var(--isl-surface);\n}\n\n/* ---- 45-model-picker.css ---- */\n/* ==========================================================================\n Islands UI · 45 composer model picker\n Trigger chip + model list + reasoning slider, in the Islands language.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-model {\n position: relative;\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-modelTrigger {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 260px;\n height: 28px;\n padding: 0 8px;\n border: 1px solid transparent;\n border-radius: 999px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n transition: background-color 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:hover:not(:disabled) {\n background: var(--isl-surface-sunken);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:disabled {\n opacity: 0.55;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-modelTrigger:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 1px;\n}\n\nbody[data-islands-ui] .isl-modelIcon {\n display: var(--dsh-composer-model-icon-display, none);\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-modelName {\n display: var(--dsh-composer-model-text-display, inline);\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelEffort {\n display: var(--dsh-composer-model-text-display, inline);\n flex-shrink: 1000;\n min-width: 0;\n color: var(--dsw-alias-label-caption);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-caption);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelChevron.is-open {\n transform: rotate(180deg);\n}\n\n/* ---- Menu ---------------------------------------------------------------- */\nbody[data-islands-ui] .isl-modelMenu {\n position: fixed;\n z-index: 1100;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n max-height: min(460px, calc(100vh - 24px));\n padding: 6px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n overflow-y: auto;\n --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);\n --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);\n}\n\nbody[data-islands-ui] .isl-modelPaneHead {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 0 4px 6px;\n}\n\nbody[data-islands-ui] .isl-modelMenuTitle {\n padding: 2px 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-modelBack {\n display: grid;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelBack:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelBackIcon {\n display: inline-flex;\n transform: rotate(90deg);\n}\n\nbody[data-islands-ui] .isl-modelGroups {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\nbody[data-islands-ui] .isl-modelGroup + .isl-modelGroup {\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .isl-modelGroupName {\n padding: 6px 8px 2px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-modelOption {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 34px;\n padding: 6px 8px;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelOption:hover {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-modelOption.is-selected {\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .isl-modelOptionName {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelCheck {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelEmpty {\n padding: 10px 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* ---- Reasoning effort ---------------------------------------------------- */\nbody[data-islands-ui] .isl-effortPopup {\n position: relative;\n padding: 9px 10px 8px;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-effortReset {\n position: absolute;\n top: 5px;\n right: 5px;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortReset:hover:not(:disabled) {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-effortReset:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-effortName {\n color: var(--dsw-alias-state-business-primary);\n font-size: 18px;\n line-height: 24px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] .isl-effortModel {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 100%;\n margin-top: 1px;\n padding: 1px 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 18px;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortModel:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-effortModelName {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-effortModelChevron {\n display: inline-flex;\n flex: none;\n color: inherit;\n transform: rotate(-90deg);\n}\n\nbody[data-islands-ui] .isl-effortSliderWrap {\n position: relative;\n margin: 7px 2px 0;\n}\n\nbody[data-islands-ui] .isl-effortSlider {\n -webkit-appearance: none;\n appearance: none;\n display: block;\n width: 100%;\n height: 24px;\n margin: 0;\n padding: 0;\n background: transparent;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-runnable-track {\n height: 20px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n var(--dsw-alias-state-business-primary) 0\n calc(12px + (100% - 24px) * var(--isl-ratio, 0)),\n var(--isl-surface-sunken) calc(12px + (100% - 24px) * var(--isl-ratio, 0)) 100%\n );\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n margin-top: -2px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n box-shadow:\n 0 1px 4px rgba(17, 24, 39, 0.22),\n 0 0 0 0.5px rgba(17, 24, 39, 0.06);\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible {\n outline: none;\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible::-webkit-slider-thumb {\n box-shadow:\n 0 0 0 3px color-mix(in srgb, var(--dsw-alias-state-business-primary) 26%, transparent),\n 0 1px 4px rgba(17, 24, 39, 0.22);\n}\n\nbody[data-islands-ui] .isl-effortDots {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px;\n pointer-events: none;\n}\n\nbody[data-islands-ui] .isl-effortDot {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .isl-effortDot.is-filled {\n background: rgba(255, 255, 255, 0.55);\n}\n\nbody[data-islands-ui] .isl-modelError {\n margin: 8px 8px 2px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n background: var(--dsw-alias-interactive-bg-hover-danger);\n color: var(--dsw-alias-state-error-primary);\n font-size: 11px;\n line-height: 16px;\n}\n\n/* ---- 50-components.css ---- */\n/* ==========================================================================\n Islands UI · 50 shared components\n Small, reusable pieces used by the skin's own surfaces. All values come from\n the token layer, so nothing here is page-specific.\n ========================================================================== */\n\n/* ---- Preference row (rendered into settings.general.item) ---------------- */\nbody[data-islands-ui] .isl-prefRow,\n.isl-prefRow {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-prefRow:last-child,\n.isl-prefRow:last-child {\n border-bottom: 0;\n}\n\n.isl-prefText {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n}\n\n.isl-prefTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\n.isl-prefDesc {\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n/* ---- Switch -------------------------------------------------------------- */\n.isl-switch {\n position: relative;\n flex: none;\n width: 38px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n cursor: pointer;\n background: var(--dsw-alias-bg-layer-3);\n box-shadow: inset 0 0 0 1px var(--dsw-alias-border-l2);\n transition: background-color 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] {\n background: var(--dsw-alias-state-business-primary);\n box-shadow: none;\n}\n\n.isl-switch:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n\n.isl-switchThumb {\n position: absolute;\n top: 3px;\n left: 3px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);\n transition: transform 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] .isl-switchThumb {\n transform: translateX(16px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-switch,\n .isl-switchThumb {\n transition: none;\n }\n}\n\n/* ---- Popover / menu materials ------------------------------------------- */\nbody[data-islands-ui] [data-menu-material] {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] [role='dialog'],\nbody[data-islands-ui] [role='menu'],\nbody[data-islands-ui] [role='listbox'] {\n border-radius: var(--isl-radius-lg);\n}\n\n/* ---- Scrollbars ---------------------------------------------------------- */\nbody[data-islands-ui] ::-webkit-scrollbar-thumb {\n border-radius: 999px;\n}\n\n/* ---- Focus --------------------------------------------------------------- */\nbody[data-islands-ui] :focus-visible {\n outline-offset: 1px;\n}\n\n/* ---- Dedicated settings page ------------------------------------------- */\n.isl-settingsPage {\n box-sizing: border-box;\n max-width: 760px;\n padding: 4px 8px 24px;\n}\n\n.isl-settingsPageHead {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.isl-settingsPageLogo {\n display: inline-flex;\n flex: none;\n}\n\n.isl-settingsPageHeadText {\n min-width: 0;\n}\n\n.isl-settingsPageTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n line-height: 22px;\n}\n\n.isl-settingsPageDesc {\n margin-top: 4px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-settingsPage .isl-prefRow:first-of-type {\n margin-top: 12px;\n}\n\n/* Detected DSH release + sidebar dialect: diagnosis for support reports. */\n.isl-settingsMeta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 10px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\n.isl-settingsMetaValue {\n padding: 0 5px;\n border-radius: 4px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-secondary);\n font-family: var(--dsw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 11px;\n}\n\n.isl-settingsMetaSeparator {\n opacity: 0.6;\n}\n\n.isl-accentPicker {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.isl-accentSwatch {\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 50%;\n background-clip: padding-box;\n cursor: pointer;\n transition:\n transform 0.12s var(--ds-ease-in-out),\n box-shadow 0.12s var(--ds-ease-in-out);\n}\n\n.isl-accentSwatch:hover {\n transform: scale(1.08);\n}\n\n.isl-accentSwatch.is-selected {\n box-shadow:\n 0 0 0 2px var(--dsw-alias-bg-base),\n 0 0 0 3.5px var(--dsw-alias-label-primary);\n}\n\n.isl-accentSwatch.is-default {\n background: linear-gradient(135deg, #ffffff 0 47%, #c4c8ce 47% 53%, #1b1c1f 53% 100%);\n}\n\n.isl-accentCustom {\n position: relative;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n border: 1px dashed var(--dsw-alias-border-l3);\n border-radius: 50%;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\n.isl-accentCustom::before {\n content: '+';\n font-size: 14px;\n line-height: 1;\n}\n\n.isl-accentCustom input {\n position: absolute;\n inset: -4px;\n width: 32px;\n height: 32px;\n opacity: 0;\n cursor: pointer;\n}\n\n\n/* ---- Compatibility notice ------------------------------------------------\n Rendered while the skin is OFF, so nothing here may rely on the `--isl-*`\n scale or on `body[data-islands-ui]`. Every custom property carries a\n fallback and every color comes from the public DSH theme tokens. */\n\n.isl-compatToast {\n position: fixed;\n right: 16px;\n bottom: 16px;\n z-index: 2000;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: min(380px, calc(100vw - 32px));\n padding: 12px 10px 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-left: 3px solid #e0a018;\n border-radius: var(--isl-radius-lg, 16px);\n background: var(--dsw-alias-bg-overlay, #ffffff);\n color: var(--dsw-alias-label-primary, #1f2328);\n box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.35);\n font-size: 13px;\n line-height: 19px;\n cursor: pointer;\n opacity: 0;\n transform: translateY(10px);\n transition:\n opacity 0.16s ease,\n transform 0.16s ease;\n}\n\n.isl-compatToast.is-visible {\n opacity: 1;\n transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-compatToast {\n transition: none;\n }\n}\n\n.isl-compatToastBody {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatToastTitle {\n font-weight: 600;\n}\n\n.isl-compatToastText {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatToastAction {\n margin-top: 6px;\n color: #a86b00;\n font-size: 12px;\n font-weight: 600;\n}\n\n.isl-compatToastClose {\n flex: none;\n width: 22px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n}\n\n.isl-compatToastClose:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(17, 24, 39, 0.06));\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n/* The settings-page warning bar. */\n.isl-compatBanner {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n margin: 12px 0 4px;\n padding: 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.45);\n border-radius: var(--isl-radius-lg, 16px);\n background: rgba(240, 180, 41, 0.14);\n background: color-mix(in srgb, #f0b429 14%, transparent);\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n line-height: 20px;\n}\n\n.isl-compatBannerIcon {\n flex: none;\n display: inline-flex;\n margin-top: 1px;\n color: #b47400;\n}\n\n.isl-compatBannerText {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatBannerTitle {\n font-weight: 600;\n}\n\n.isl-compatBannerBody,\n.isl-compatBannerHint {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatBannerHint {\n margin-top: 6px;\n}\n\n.isl-compatBannerList {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n margin-top: 6px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n}\n\n.isl-compatAnchor {\n padding: 0 4px;\n border-radius: 4px;\n background: rgba(17, 24, 39, 0.06);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 11px;\n}\n\n.isl-compatBannerAction {\n flex: none;\n align-self: flex-start;\n padding: 5px 10px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-radius: 8px;\n background: transparent;\n color: #8a5a00;\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n}\n\n.isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.18);\n}\n\n.isl-compatForced {\n margin: 8px 0 0;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-switch:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n/* The notice renders while the skin is off, so darkness is read straight from\n the host theme attribute its own stylesheet uses. */\nbody[data-ds-dark-theme] .isl-compatBannerIcon {\n color: #e8b451;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction {\n border-color: rgba(240, 180, 41, 0.45);\n color: #f2c879;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.16);\n}\n\nbody[data-ds-dark-theme] .isl-compatAnchor {\n background: rgba(255, 255, 255, 0.08);\n}\n\nbody[data-ds-dark-theme] .isl-compatToastAction {\n color: #f0c274;\n}\n\n/* ---- 60-peers.css ---- */\n/* ==========================================================================\n Islands UI · 60 peer adapters\n Rules for plugins that mount their own surfaces inside the frame. These are\n not host contracts: each peer owns the attributes and class names below, and\n the core stylesheets never read them. The CSS gate allows [class*=...] only\n in this file; a peer that renames its internals degrades these rules alone.\n ========================================================================== */\n\n/* dsh-better-sidebar: the bottom workbench reserves its height on the\n conversation column, not on the inner panel. `data-dsh-center-col` and\n `--dsh-sidebar-height` are the peer's own marks. */\nbody[data-islands-ui] #root [data-dsh-center-col] {\n margin-bottom: 0;\n}\n\nbody[data-islands-ui]:has([data-dsh-bottom-panel]:not([class*='Hidden'])) [data-islands-part~=\"center-column\"] {\n /* one gap above the panel and one below it */\n margin-bottom: calc(var(--dsh-sidebar-height, 0px) + var(--isl-gap));\n}\n\nbody[data-islands-ui] [data-dsh-bottom-panel] {\n box-sizing: border-box;\n /* Align the panel with the conversation island edges and let the frame\n padding provide the bottom gap, so every island shares one gap width. */\n margin: 0;\n bottom: var(--isl-gap);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: none;\n /* The rounded island clips its content, but NOT the height-drag strip: the\n strip must reach into the canvas gap above the panel to be reachable\n there. Clip the body instead (below), so the strip can overhang. */\n overflow: visible;\n}\n\n/* Keep the island's rounded content edge with the panel's own clipping gone:\n the body carries the radius, while the absolute resize strip and the close\n control stay outside this clip. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='panelBody'] {\n overflow: clip;\n border-radius: calc(var(--isl-radius-lg) - 1px);\n}\n\n/* The peer centers its strip on the panel's top border (`top: -4px;\n height: 8px`), which was right before the skin opened a canvas gap between\n the conversation island and the panel. Anchor the 10px strip to that gap\n instead: 5px above the border box top (the whole gap) and 5px inside the\n panel, matching the side handles' straddle. `top` is relative to the panel's\n padding box, hence the extra 1px border compensation. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='bottomResize'] {\n top: calc(-1px - var(--isl-gap));\n height: 10px;\n}";
532
+ /**
533
+ * Smooth composer caret.
534
+ *
535
+ * A contenteditable caret is painted by the browser, so CSS cannot make it
536
+ * glide. While the setting is on, the stylesheet makes that composer's native
537
+ * caret transparent and this module paints one at the collapsed selection's
538
+ * rect, transitioning `transform` between positions. It is scoped to the
539
+ * conversation composer's `[data-composer-input]`; every other editable field
540
+ * keeps its native caret.
541
+ *
542
+ * Compatibility is read from the composer's own hooks and from other caret
543
+ * plugins' `data-*caret*` markers, never from a DSH release number: a build
544
+ * that stops exposing a positioned anchor inside the scrollport, or a foreign
545
+ * caret in the same area, falls back to the native caret and says so in the
546
+ * matching settings row. Nothing here can turn the skin off.
547
+ *
548
+ * `build.mjs` inlines this file into `client.js` the same way as
549
+ * `src/host/runtime.js`, so it must stay free of template internals: it may
550
+ * only touch the DOM and the attributes it documents below.
551
+ */
552
+
553
+ /** Storage key for the user's preference; on by default. */
554
+ const SMOOTH_CARET_KEY = 'dsh-islands-ui:smooth-caret';
555
+ /** Set on `<body>` while the overlay owns the composer caret. */
556
+ const SMOOTH_CARET_ATTR = 'data-islands-smooth-caret';
557
+ /** Marks the composer input whose caret the overlay is currently painting. */
558
+ const CARET_ACTIVE_ATTR = 'data-islands-caret-active';
559
+ /** The skin's own body attribute; mirrors `SKIN_ATTR` in `./runtime.js`. */
560
+ const CARET_SKIN_ATTR = 'data-islands-ui';
561
+ const COMPOSER_INPUT_SELECTOR = '[data-composer-input]';
562
+ const COMPOSER_SCROLL_SELECTOR = '[data-input-scroll]';
563
+ /** The composer card scopes foreign-caret detection to the caret area. */
564
+ const COMPOSER_CARD_SELECTOR = '[data-composer-card]';
565
+
566
+ function readSmoothCaretSetting() {
567
+ try {
568
+ const stored = window.localStorage.getItem(SMOOTH_CARET_KEY);
569
+ return stored === null ? true : stored === '1';
570
+ } catch {
571
+ return true;
572
+ }
573
+ }
574
+
575
+ /** The user's preference, kept across incompatible builds and foreign carets. */
576
+ let smoothCaret = readSmoothCaretSetting();
577
+
578
+ /**
579
+ * Caret-specific compatibility. This is intentionally separate from the
580
+ * global shell gate: an incompatible composer, or another caret plugin on
581
+ * the same composer, must disable only the smooth caret (and explain
582
+ * itself in the settings row), never the whole skin.
583
+ */
584
+ let caretCompat = { status: 'unknown', missing: [] };
585
+ const caretCompatListeners = new Set();
586
+ let caretProbeInput = null;
587
+ let caretForeignObserver = null;
588
+ let caretForeignScope = null;
589
+
590
+ function subscribeCaretCompat(listener) {
591
+ caretCompatListeners.add(listener);
592
+ return () => caretCompatListeners.delete(listener);
593
+ }
594
+
595
+ function getCaretCompatSnapshot() {
596
+ return caretCompat;
597
+ }
598
+
599
+
600
+ function setCaretCompat(next) {
601
+ if (
602
+ next.status === caretCompat.status &&
603
+ next.missing.length === caretCompat.missing.length &&
604
+ next.missing.every((value, index) => value === caretCompat.missing[index])
605
+ ) {
606
+ return;
607
+ }
608
+ caretCompat = next;
609
+ for (const listener of caretCompatListeners) listener();
610
+ // The user's preference is kept; an incompatible build or a foreign caret
611
+ // taker only suppresses the effective state, so the caret returns later.
612
+ applySmoothCaretSetting();
613
+ syncCaretOverlay();
614
+ }
615
+
616
+ function smoothCaretActive() {
617
+ return smoothCaret && caretCompat.status !== 'missing' && caretCompat.status !== 'yielded';
618
+ }
619
+
620
+ function applySmoothCaretSetting() {
621
+ const body = document.body;
622
+ if (body === null) return;
623
+ if (smoothCaretActive()) body.setAttribute(SMOOTH_CARET_ATTR, '');
624
+ else body.removeAttribute(SMOOTH_CARET_ATTR);
625
+ }
626
+
627
+ function setSmoothCaret(next) {
628
+ smoothCaret = next === true;
629
+ try {
630
+ window.localStorage.setItem(SMOOTH_CARET_KEY, smoothCaret ? '1' : '0');
631
+ } catch {
632
+ /* private mode: the choice still applies for this page. */
633
+ }
634
+ applySmoothCaretSetting();
635
+ syncCaretOverlay();
636
+ }
637
+
638
+ /** A foreign caret marker is any `data-*caret*` attribute outside our own namespace. */
639
+ function foreignCaretAttribute(element) {
640
+ for (const attribute of element.attributes) {
641
+ const name = attribute.name.toLowerCase();
642
+ if (!name.startsWith('data-') || name.startsWith('data-islands-')) continue;
643
+ if (name.includes('caret')) return true;
644
+ }
645
+ return false;
646
+ }
647
+
648
+ /**
649
+ * Whether the composer area already carries another caret plugin's marker.
650
+ * Scoped to the composer card/scrollport so unrelated fields elsewhere in
651
+ * the app cannot make the smooth caret yield.
652
+ */
653
+ function foreignCaretIn(scope) {
654
+ if (!(scope instanceof Element)) return false;
655
+ if (foreignCaretAttribute(scope)) return true;
656
+ for (const element of scope.querySelectorAll('*')) {
657
+ if (foreignCaretAttribute(element)) return true;
658
+ }
659
+ return false;
660
+ }
661
+
662
+ function caretScopeFor(input) {
663
+ return (
664
+ input.closest(COMPOSER_CARD_SELECTOR) ??
665
+ input.closest(COMPOSER_SCROLL_SELECTOR) ??
666
+ input.parentElement
667
+ );
668
+ }
669
+
670
+ function caretMutationRelevant(records) {
671
+ for (const record of records) {
672
+ if (record.type === 'attributes') {
673
+ const name = (record.attributeName ?? '').toLowerCase();
674
+ if (name.startsWith('data-') && name.includes('caret') && !name.startsWith('data-islands-')) return true;
675
+ continue;
676
+ }
677
+ if (record.type !== 'childList') continue;
678
+ for (const node of record.addedNodes) {
679
+ if (node instanceof Element && foreignCaretIn(node)) return true;
680
+ }
681
+ for (const node of record.removedNodes) {
682
+ if (node instanceof Element && foreignCaretIn(node)) return true;
683
+ }
684
+ }
685
+ return false;
686
+ }
687
+
688
+ /**
689
+ * Watch the composer area for a foreign caret appearing or leaving. This is
690
+ * what lets islands-ui yield only its own caret, and pick its caret back up
691
+ * when the other plugin is disabled, without turning any other feature off.
692
+ */
693
+ function observeForeignCaret(scope) {
694
+ if (typeof MutationObserver !== 'function' || caretForeignScope === scope) return;
695
+ caretForeignObserver?.disconnect();
696
+ caretForeignScope = scope;
697
+ if (!(scope instanceof Element)) return;
698
+ if (caretForeignObserver === null) {
699
+ caretForeignObserver = new MutationObserver((records) => {
700
+ if (caretMutationRelevant(records)) probeCaretCompatibility();
701
+ });
702
+ }
703
+ caretForeignObserver.observe(scope, { childList: true, subtree: true, attributes: true });
704
+ }
705
+
706
+ /**
707
+ * Caret-specific compatibility probe. The global gate protects the shell;
708
+ * this only decides whether the smooth overlay can trust the composer. It
709
+ * checks the public composer hooks the overlay relies on — a positioned
710
+ * anchor inside the scrollport — never a release number and never a
711
+ * CSS-module class name. A foreign caret in the composer area becomes a
712
+ * 'yielded' status rather than a skin failure.
713
+ */
714
+ function probeCaretCompatibility() {
715
+ const missing = [];
716
+ const input = document.querySelector(COMPOSER_INPUT_SELECTOR);
717
+ let foreign = false;
718
+ if (input !== null) {
719
+ const scroll = input.closest(COMPOSER_SCROLL_SELECTOR);
720
+ if (scroll === null) missing.push('composer-scroll');
721
+ const anchor = caretAnchorFor(input);
722
+ if (
723
+ anchor === null ||
724
+ anchor === scroll ||
725
+ window.getComputedStyle(anchor).position === 'static' ||
726
+ (scroll !== null && !scroll.contains(anchor))
727
+ ) {
728
+ missing.push('composer-anchor');
729
+ }
730
+ const scope = caretScopeFor(input);
731
+ observeForeignCaret(scope);
732
+ foreign = foreignCaretIn(scope);
733
+ } else {
734
+ observeForeignCaret(null);
735
+ }
736
+ // With no composer mounted the structure cannot be judged; leave the
737
+ // switch usable and probe again when the composer appears.
738
+ const status =
739
+ missing.length > 0 ? 'missing' : input === null ? 'unknown' : foreign ? 'yielded' : 'ok';
740
+ setCaretCompat({ status, missing: foreign && missing.length === 0 ? ['foreign-caret'] : missing });
741
+ }
742
+
743
+ /** Skip repeated probes while the same composer is known-good. */
744
+ function maybeProbeCaretCompatibility() {
745
+ const input = document.querySelector(COMPOSER_INPUT_SELECTOR);
746
+ if (input !== null && input === caretProbeInput && caretCompat.status === 'ok') return;
747
+ caretProbeInput = input;
748
+ probeCaretCompatibility();
749
+ }
750
+
751
+ /* ---- Smooth composer caret -------------------------------------------
752
+ A contenteditable caret is painted by the browser, so CSS cannot make it
753
+ glide. With the setting on, the native caret is made transparent by the
754
+ stylesheet and this controller paints one at the collapsed selection's
755
+ rect, transitioning `transform` between positions. It is scoped to the
756
+ conversation composer's `[data-composer-input]`; every other editable
757
+ field keeps its native caret. */
758
+ let caretInstalled = false;
759
+ let caretElement = null;
760
+ let caretAnchor = null;
761
+ let caretInput = null;
762
+ let caretResize = null;
763
+ let caretResizeInput = null;
764
+ let caretObserver = null;
765
+ let caretFrame = 0;
766
+ let caretJumpFrame = 0;
767
+ let caretIdleTimer = 0;
768
+ let caretLastX = Number.NaN;
769
+ let caretLastY = Number.NaN;
770
+
771
+ /** Nearest positioned ancestor of the contenteditable (the composer's wrapper). */
772
+ function caretAnchorFor(input) {
773
+ let node = input.parentElement;
774
+ while (node !== null && node !== document.body) {
775
+ if (window.getComputedStyle(node).position !== 'static') return node;
776
+ node = node.parentElement;
777
+ }
778
+ return input.parentElement;
779
+ }
780
+
781
+ function hideCaret() {
782
+ if (caretElement !== null) caretElement.classList.remove('is-on', 'is-typing');
783
+ if (caretIdleTimer !== 0) {
784
+ window.clearTimeout(caretIdleTimer);
785
+ caretIdleTimer = 0;
786
+ }
787
+ if (caretInput !== null) caretInput.removeAttribute(CARET_ACTIVE_ATTR);
788
+ caretLastX = Number.NaN;
789
+ caretLastY = Number.NaN;
790
+ }
791
+
792
+ /** Hold the blink while the caret moves; resume it after a short idle. */
793
+ function markCaretMoving() {
794
+ if (caretElement === null) return;
795
+ const element = caretElement;
796
+ element.classList.add('is-typing');
797
+ if (caretIdleTimer !== 0) window.clearTimeout(caretIdleTimer);
798
+ caretIdleTimer = window.setTimeout(() => {
799
+ caretIdleTimer = 0;
800
+ if (caretElement === element) element.classList.remove('is-typing');
801
+ }, 260);
802
+ }
803
+
804
+ function dropCaret() {
805
+ hideCaret();
806
+ if (caretElement !== null) caretElement.remove();
807
+ caretElement = null;
808
+ caretAnchor = null;
809
+ caretInput = null;
810
+ caretResize?.disconnect();
811
+ caretResizeInput = null;
812
+ caretObserver?.disconnect();
813
+ }
814
+
815
+ /** Width/layout changes reflow the draft without a selectionchange. */
816
+ function observeCaretInput(input) {
817
+ if (typeof ResizeObserver !== 'function' || caretResizeInput === input) return;
818
+ if (caretResize === null) caretResize = new ResizeObserver(onCaretChange);
819
+ caretResize.disconnect();
820
+ caretResize.observe(input);
821
+ caretResizeInput = input;
822
+ }
823
+
824
+ /**
825
+ * React owns the wrapper's children. If a re-render ever drops our overlay,
826
+ * the input's transparent native caret would otherwise stay invisible until
827
+ * the next keystroke; re-create it on the next frame instead.
828
+ */
829
+ function observeCaretHost(anchor) {
830
+ if (typeof MutationObserver !== 'function') return;
831
+ if (caretObserver === null) {
832
+ caretObserver = new MutationObserver(() => {
833
+ if (caretElement !== null && !caretElement.isConnected) scheduleCaretPaint();
834
+ });
835
+ }
836
+ caretObserver.disconnect();
837
+ caretObserver.observe(anchor, { childList: true });
838
+ }
839
+
840
+ function ensureCaret(input) {
841
+ if (caretElement !== null && caretInput === input && caretElement.isConnected) return caretElement;
842
+ dropCaret();
843
+ const anchor = caretAnchorFor(input);
844
+ if (anchor === null) return null;
845
+ const element = document.createElement('span');
846
+ element.className = 'isl-caret';
847
+ element.dataset.islandsCaret = '';
848
+ element.setAttribute('aria-hidden', 'true');
849
+ anchor.append(element);
850
+ caretElement = element;
851
+ caretAnchor = anchor;
852
+ caretInput = input;
853
+ observeCaretInput(input);
854
+ observeCaretHost(anchor);
855
+ return element;
856
+ }
857
+
858
+ /**
859
+ * Caret geometry in viewport coordinates. Some collapsed ranges report no
860
+ * rect at all — an empty paragraph, or a caret sitting on a soft `<br>`
861
+ * line — so the child at the range offset supplies the glyph box, and the
862
+ * editable root is the last resort. The caret is as tall as the text, not
863
+ * the line box, so it reads like a native caret.
864
+ */
865
+ function measureCaret(input) {
866
+ const selection = window.getSelection();
867
+ if (selection === null || selection.rangeCount === 0 || !selection.isCollapsed) return null;
868
+ const range = selection.getRangeAt(0);
869
+ if (!input.contains(range.commonAncestorContainer)) return null;
870
+ const style = window.getComputedStyle(input);
871
+ const lineHeight = Number.parseFloat(style.lineHeight);
872
+ const rects = range.getClientRects();
873
+ let rect = rects.length > 0 ? rects[rects.length - 1] : range.getBoundingClientRect();
874
+ let fallbackBlock = false;
875
+ let emptySurface = false;
876
+ if (rect.width === 0 && rect.height === 0) {
877
+ const node = range.startContainer;
878
+ const element = node.nodeType === Node.ELEMENT_NODE ? node : node.parentElement;
879
+ let candidate = null;
880
+ if (node.nodeType === Node.ELEMENT_NODE) {
881
+ const children = node.childNodes;
882
+ const at = range.startOffset;
883
+ for (const index of [at, at - 1]) {
884
+ const child = children[index];
885
+ if (child === undefined || child.nodeType !== Node.ELEMENT_NODE) continue;
886
+ const childRect = child.getBoundingClientRect();
887
+ if (childRect.width !== 0 || childRect.height !== 0) {
888
+ candidate = childRect;
889
+ break;
890
+ }
891
+ }
892
+ }
893
+ if (candidate !== null) {
894
+ rect = candidate;
895
+ } else {
896
+ const block = element?.closest('p, li, blockquote, h1, h2, h3, h4, h5, h6') ?? input.firstElementChild ?? input;
897
+ rect = block.getBoundingClientRect();
898
+ fallbackBlock = true;
899
+ emptySurface = block === input;
900
+ }
901
+ }
902
+ if (rect.width === 0 && rect.height === 0) return null;
903
+ const lineBox = Number.isFinite(lineHeight) && lineHeight > 0 ? lineHeight : Math.max(rect.height, 16);
904
+ const fontSize = Number.parseFloat(style.fontSize);
905
+ const fontHeight = Number.isFinite(fontSize) && fontSize > 0 ? fontSize * 1.2 : 16;
906
+ // The caret matches the text height, not the line box: use the glyph box
907
+ // the browser reported when it is smaller than the line box, otherwise
908
+ // the font's own height.
909
+ const glyphHeight = rect.height > 0 && rect.height < lineBox ? rect.height : fontHeight;
910
+ const height = Math.max(1, Math.min(glyphHeight, lineBox));
911
+ let left = rect.left;
912
+ let top;
913
+ if (emptySurface) {
914
+ // An empty Lexical surface has no paragraph at all: its selection sits
915
+ // on the editable root, so align with the padding box the placeholder
916
+ // uses instead of the input's border box.
917
+ left += (Number.parseFloat(style.paddingLeft) || 0) + input.clientLeft;
918
+ const lineTop = rect.top + (Number.parseFloat(style.paddingTop) || 0) + input.clientTop;
919
+ top = lineTop + (lineBox - height) / 2;
920
+ } else if (fallbackBlock) {
921
+ // The block's rect starts at its first line box, not at a glyph box.
922
+ top = rect.top + (lineBox - height) / 2;
923
+ } else {
924
+ // Glyph/candidate box: keep the caret inside that box.
925
+ top = rect.top + (rect.height - height) / 2;
926
+ }
927
+ return { left, top, height };
928
+ }
929
+
930
+ function paintCaret() {
931
+ caretFrame = 0;
932
+ if (!caretInstalled || !smoothCaretActive() || document.body?.hasAttribute(CARET_SKIN_ATTR) !== true) {
933
+ dropCaret();
934
+ return;
935
+ }
936
+ const input = document.activeElement;
937
+ if (
938
+ !(input instanceof HTMLElement) ||
939
+ !input.matches(COMPOSER_INPUT_SELECTOR) ||
940
+ !document.hasFocus()
941
+ ) {
942
+ // The composer may have unmounted between events; drop the overlay and
943
+ // its references with it instead of retaining a detached subtree.
944
+ if (caretElement !== null && !caretElement.isConnected) dropCaret();
945
+ else hideCaret();
946
+ return;
947
+ }
948
+ // IME composition and selected command chips hide the native caret in the
949
+ // stock composer; the overlay defers to the same states. The workspace
950
+ // trigger is a focusable but non-editable div, so it gets no caret either.
951
+ if (
952
+ !input.isContentEditable ||
953
+ input.getAttribute('aria-disabled') === 'true' ||
954
+ input.hasAttribute('data-composer-composing') ||
955
+ input.hasAttribute('data-composer-chip-selected')
956
+ ) {
957
+ hideCaret();
958
+ return;
959
+ }
960
+ const measurement = measureCaret(input);
961
+ if (measurement === null) {
962
+ hideCaret();
963
+ return;
964
+ }
965
+ const element = ensureCaret(input);
966
+ if (element === null || caretAnchor === null) {
967
+ hideCaret();
968
+ return;
969
+ }
970
+ const anchorRect = caretAnchor.getBoundingClientRect();
971
+ // The overlay is positioned against the anchor's padding box; subtract
972
+ // its border so a bordered wrapper still lines up.
973
+ const x = measurement.left - anchorRect.left - caretAnchor.clientLeft;
974
+ const y = measurement.top - anchorRect.top - caretAnchor.clientTop;
975
+ const changed =
976
+ Number.isNaN(caretLastX) || Math.abs(x - caretLastX) > 0.1 || Math.abs(y - caretLastY) > 0.1;
977
+ // Glide along a line; a vertical move is a line change, where a diagonal
978
+ // slide would read as noise. The first placement also jumps into place.
979
+ // 2px absorbs sub-pixel differences between the empty-surface and glyph
980
+ // paths without hiding a real 24px line step.
981
+ const lineChanged = !Number.isNaN(caretLastY) && Math.abs(y - caretLastY) > 2;
982
+ const jumped = Number.isNaN(caretLastX) || lineChanged;
983
+ caretLastX = x;
984
+ caretLastY = y;
985
+ element.style.height = `${measurement.height}px`;
986
+ if (jumped) {
987
+ element.classList.add('is-jump');
988
+ if (caretJumpFrame !== 0) cancelAnimationFrame(caretJumpFrame);
989
+ caretJumpFrame = requestAnimationFrame(() => {
990
+ caretJumpFrame = 0;
991
+ if (caretElement === element) element.classList.remove('is-jump');
992
+ });
993
+ } else {
994
+ element.classList.remove('is-jump');
995
+ }
996
+ element.style.transform = `translate3d(${x}px, ${y}px, 0)`;
997
+ input.setAttribute(CARET_ACTIVE_ATTR, '');
998
+ if (changed) markCaretMoving();
999
+ element.classList.add('is-on');
1000
+ }
1001
+
1002
+ function scheduleCaretPaint() {
1003
+ if (!caretInstalled || caretFrame !== 0) return;
1004
+ caretFrame = requestAnimationFrame(paintCaret);
1005
+ }
1006
+
1007
+ function syncCaretOverlay() {
1008
+ if (!caretInstalled) return;
1009
+ if (!smoothCaretActive() || document.body?.hasAttribute(CARET_SKIN_ATTR) !== true) {
1010
+ dropCaret();
1011
+ return;
1012
+ }
1013
+ scheduleCaretPaint();
1014
+ }
1015
+
1016
+ function onCaretChange() {
1017
+ maybeProbeCaretCompatibility();
1018
+ scheduleCaretPaint();
1019
+ }
1020
+
1021
+ function installCaretController() {
1022
+ if (caretInstalled) return;
1023
+ caretInstalled = true;
1024
+ probeCaretCompatibility();
1025
+ applySmoothCaretSetting();
1026
+ document.addEventListener('selectionchange', onCaretChange);
1027
+ document.addEventListener('focusin', onCaretChange);
1028
+ document.addEventListener('focusout', onCaretChange);
1029
+ document.addEventListener('input', onCaretChange, true);
1030
+ document.addEventListener('keyup', onCaretChange, true);
1031
+ document.addEventListener('mouseup', onCaretChange, true);
1032
+ document.addEventListener('compositionstart', onCaretChange, true);
1033
+ document.addEventListener('compositionend', onCaretChange, true);
1034
+ document.addEventListener('scroll', onCaretChange, true);
1035
+ document.addEventListener('visibilitychange', onCaretChange);
1036
+ window.addEventListener('resize', onCaretChange, { passive: true });
1037
+ // Cmd-Tab can deactivate the window without a DOM focus event; the paint
1038
+ // hides the overlay and restores it when the window comes back.
1039
+ window.addEventListener('blur', onCaretChange);
1040
+ window.addEventListener('focus', onCaretChange);
1041
+ scheduleCaretPaint();
1042
+ }
1043
+
1044
+ function uninstallCaretController() {
1045
+ if (!caretInstalled) return;
1046
+ caretInstalled = false;
1047
+ document.removeEventListener('selectionchange', onCaretChange);
1048
+ document.removeEventListener('focusin', onCaretChange);
1049
+ document.removeEventListener('focusout', onCaretChange);
1050
+ document.removeEventListener('input', onCaretChange, true);
1051
+ document.removeEventListener('keyup', onCaretChange, true);
1052
+ document.removeEventListener('mouseup', onCaretChange, true);
1053
+ document.removeEventListener('compositionstart', onCaretChange, true);
1054
+ document.removeEventListener('compositionend', onCaretChange, true);
1055
+ document.removeEventListener('scroll', onCaretChange, true);
1056
+ document.removeEventListener('visibilitychange', onCaretChange);
1057
+ window.removeEventListener('resize', onCaretChange);
1058
+ window.removeEventListener('blur', onCaretChange);
1059
+ window.removeEventListener('focus', onCaretChange);
1060
+ if (caretFrame !== 0) {
1061
+ cancelAnimationFrame(caretFrame);
1062
+ caretFrame = 0;
1063
+ }
1064
+ if (caretJumpFrame !== 0) {
1065
+ cancelAnimationFrame(caretJumpFrame);
1066
+ caretJumpFrame = 0;
1067
+ }
1068
+ caretResize?.disconnect();
1069
+ caretResize = null;
1070
+ caretResizeInput = null;
1071
+ caretObserver?.disconnect();
1072
+ caretObserver = null;
1073
+ caretForeignObserver?.disconnect();
1074
+ caretForeignObserver = null;
1075
+ caretForeignScope = null;
1076
+ dropCaret();
1077
+ }
1078
+ const CSS = "/* ---- 00-tokens.css ---- */\n/* ==========================================================================\n Islands UI · 00 tokens\n One source of truth for the skin. Every rule below reads these variables,\n so light/dark, radius, elevation and spacing are changed in one place.\n `--dsw-*` aliases are re-pointed at the Islands scale so shipped components\n inherit the new language without per-component overrides.\n ========================================================================== */\n\nbody[data-islands-ui] {\n /* Canvas: the unified background all islands float on. */\n --isl-canvas: #f7f7f7;\n --isl-canvas-veil: rgba(232, 234, 239, 0.72);\n /* Island surfaces. */\n --isl-surface: #ffffff;\n --isl-surface-muted: #f3f5f8;\n --isl-surface-sunken: #eceef3;\n /* Hairlines: Islands uses tinted, very quiet borders. */\n --isl-border-soft: rgba(17, 24, 39, 0.06);\n --isl-border: rgba(17, 24, 39, 0.09);\n --isl-border-strong: rgba(17, 24, 39, 0.14);\n --isl-hover: rgba(17, 24, 39, 0.055);\n --isl-active: rgba(17, 24, 39, 0.09);\n --isl-accent: #4176e6;\n /* Geometry. */\n --isl-radius-xl: 20px;\n --isl-radius-lg: 16px;\n --isl-radius-md: 12px;\n --isl-radius-sm: 8px;\n --isl-gap: 5px;\n --isl-topbar-height: 40px;\n /* Extra chrome above the app top bar (the Windows title bar). */\n --isl-chrome-top: 0px;\n --isl-rail-collapsed-width: 56px;\n --isl-rail-width: 48px;\n /* Elevation: a hairline ring plus one soft, deep shadow. */\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(17, 24, 39, 0.05), 0 10px 24px -10px rgba(17, 24, 39, 0.14),\n 0 28px 64px -32px rgba(17, 24, 39, 0.3);\n\n /* ---- DSH alias layer -------------------------------------------------- */\n --dsw-alias-bg-base: var(--isl-surface);\n --dsw-alias-bg-layer-1: var(--isl-surface);\n --dsw-alias-bg-layer-2: var(--isl-surface);\n --dsw-alias-bg-layer-3: var(--isl-surface-muted);\n --dsw-alias-bg-overlay: var(--isl-surface);\n --dsw-alias-bg-module-platform: var(--isl-surface-muted);\n --dsw-alias-bg-multi-select: var(--isl-surface-muted);\n --dsw-alias-bg-skeleton: rgba(17, 24, 39, 0.06);\n --dsw-specific-sidebar-fill: var(--isl-surface);\n --dsw-specific-input-major: var(--isl-surface);\n --dsw-specific-selector: var(--isl-surface-muted);\n --dsw-specific-tip: var(--isl-surface-muted);\n --dsw-specific-bubble: var(--isl-surface-muted);\n --dsw-specific-bubble-highlight: #eef1f6;\n --dsw-specific-sidebar-nav-item-active: var(--isl-surface-muted);\n --dsw-specific-sidebar-nav-item-active-accent: color-mix(\n in srgb,\n var(--dsw-alias-state-business-primary) 16%,\n transparent\n );\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 90%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 92%, transparent);\n --dsw-alias-markdown-code-block: var(--isl-surface-muted);\n --dsw-alias-markdown-code-block-banner: var(--isl-surface-muted);\n --dsw-alias-markdown-inline-code: var(--isl-surface-muted);\n --dsw-alias-markdown-tag: var(--isl-surface-muted);\n --dsw-alias-settings-card-fill: color-mix(in srgb, var(--isl-surface-muted) 68%, var(--isl-surface));\n --dsw-alias-settings-card-stroke: var(--isl-border-soft);\n --dsw-alias-border-l1: var(--isl-border-soft);\n --dsw-alias-border-l2: var(--isl-border-soft);\n --dsw-alias-border-l3: var(--isl-border);\n --dsw-alias-border-l4: var(--isl-border-strong);\n --dsw-alias-interactive-bg-hover: var(--isl-hover);\n --dsw-alias-interactive-bg-active: var(--isl-active);\n --dsw-alias-interactive-bg-hover-solid: var(--isl-surface-muted);\n --dsw-alias-button-elevated-fill: var(--isl-surface);\n --dsw-alias-button-floating-fill: var(--isl-surface);\n --dsw-alias-button-floating-hover: var(--isl-surface-muted);\n --dsw-radius-xs: 6px;\n --dsw-radius-sm: 8px;\n --dsw-radius-md: 10px;\n --dsw-radius-lg: 14px;\n --dsw-radius-xl: 18px;\n --dsw-radius-panel: 20px;\n --dsw-menu-backdrop-filter: blur(18px) saturate(140%);\n --dsw-mask-blur: blur(3px);\n --dsw-alias-bg-mask-1: rgba(107, 114, 128, 0.3);\n --dsw-alias-bg-mask-2: rgba(107, 114, 128, 0.18);\n\n background-color: var(--isl-canvas) !important;\n}\n\n/* Elevation tokens are declared on `body, body *` by the shipped theme, so the\n override has to be declared on descendants too, not only on body. */\nbody[data-islands-ui] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 6px 16px -6px rgba(17, 24, 39, 0.1),\n 0 18px 40px -24px rgba(17, 24, 39, 0.24);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(17, 24, 39, 0.12),\n 0 24px 48px -28px rgba(17, 24, 39, 0.24);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 12px 28px -10px rgba(17, 24, 39, 0.16),\n 0 32px 64px -32px rgba(17, 24, 39, 0.3);\n --dsw-shadow-lv1: 0 2px 4px rgba(17, 24, 39, 0.05);\n --dsw-shadow-lv2: 0 4px 12px rgba(17, 24, 39, 0.06), 0 2px 8px rgba(17, 24, 39, 0.04);\n --dsw-shadow-lv3:\n 0 0 1px rgba(17, 24, 39, 0.2), 0 12px 32px rgba(17, 24, 39, 0.08);\n}\n\n/* ---- Dark --------------------------------------------------------------- */\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-canvas: #0f1012;\n --isl-canvas-veil: rgba(15, 16, 18, 0.72);\n --isl-surface: #1b1c1f;\n --isl-surface-muted: #232428;\n --isl-surface-sunken: #151619;\n --isl-border-soft: rgba(255, 255, 255, 0.06);\n --isl-border: rgba(255, 255, 255, 0.09);\n --isl-border-strong: rgba(255, 255, 255, 0.16);\n --isl-hover: rgba(255, 255, 255, 0.06);\n --isl-active: rgba(255, 255, 255, 0.1);\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 28px -12px rgba(0, 0, 0, 0.6),\n 0 32px 72px -36px rgba(0, 0, 0, 0.85);\n\n --dsw-alias-bg-skeleton: rgba(255, 255, 255, 0.07);\n --dsw-specific-bubble-highlight: #2a2c31;\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-bg-mask-1: rgba(0, 0, 0, 0.55);\n --dsw-alias-bg-mask-2: rgba(0, 0, 0, 0.32);\n}\n\nbody[data-islands-ui][data-ds-dark-theme] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(0, 0, 0, 0.55),\n 0 20px 44px -24px rgba(0, 0, 0, 0.7);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 10px 24px -10px rgba(0, 0, 0, 0.55),\n 0 28px 56px -30px rgba(0, 0, 0, 0.75);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 14px 32px -12px rgba(0, 0, 0, 0.6),\n 0 36px 72px -36px rgba(0, 0, 0, 0.85);\n --dsw-shadow-lv1: 0 2px 6px rgba(0, 0, 0, 0.35);\n --dsw-shadow-lv2: 0 6px 16px rgba(0, 0, 0, 0.4);\n --dsw-shadow-lv3: 0 0 1px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.45);\n}\n\n/* Windows keeps its native title bar above the app top bar. The title bar is\n the only chrome there: the island top bar is not rendered, so its 40px\n reservation collapses and the islands start directly below the caption. */\nhtml[data-windows-titlebar] body[data-islands-ui] {\n --isl-chrome-top: var(--dsh-windows-titlebar-height, 32px);\n --isl-topbar-height: 0px;\n}\n\n/* User-selected accent: remap the business tokens everywhere. */\nbody[data-islands-ui][data-islands-accent],\nbody[data-islands-ui][data-islands-accent] * {\n --dsw-alias-state-business-primary: var(--isl-accent);\n --dsw-alias-state-business-tertiary: color-mix(in srgb, var(--isl-accent) 16%, transparent);\n}\n\n/* macOS ships a tinted, translucent sidebar. Islands wants an opaque canvas\n instead, so the tint is replaced everywhere it is declared. */\nhtml[data-platform='darwin'] body[data-islands-ui],\nhtml[data-platform='darwin'] body[data-islands-ui][data-ds-dark-theme] {\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 94%, transparent);\n}\n\n/* DSH shapes every corner through a global `*` rule\n (`corner-shape: superellipse(1.5)`), which renders a 50% radius as the\n host's iOS-style squircle instead of a circle. The islands keep that\n language, but anything the skin means as a true circle — or as a pill whose\n ends must stay round — opts back to round arcs. Chromium supports\n `corner-shape`; elsewhere the declaration is ignored and the radius alone\n already draws a circle. */\nbody[data-islands-ui] .isl-updateButton,\nbody[data-islands-ui] .isl-updateErrorDot,\nbody[data-islands-ui] .isl-dmx-dot,\nbody[data-islands-ui] .isl-railRipple,\nbody[data-islands-ui] .isl-modelBack,\nbody[data-islands-ui] .isl-effortReset,\nbody[data-islands-ui] .isl-effortDot,\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-thumb,\nbody[data-islands-ui] .isl-switch,\nbody[data-islands-ui] .isl-switchThumb,\nbody[data-islands-ui] .isl-accentSwatch,\nbody[data-islands-ui] .isl-accentCustom {\n corner-shape: round;\n}\n\n/* ---- 10-shell.css ---- */\n/* ==========================================================================\n Islands UI · 10 shell\n The frame becomes a canvas; the three columns become detachable islands.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n /* The ocean is a solid surface, never the desktop showing through vibrancy. */\n background: var(--isl-canvas);\n padding: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap)) var(--isl-gap) var(--isl-gap);\n /* Column gap only: the empty bottom track must not steal an extra row gap,\n so the islands stay symmetric top and bottom. */\n gap: 0 var(--isl-gap);\n}\n\n/* A real bottom panel (terminal, banner) still gets breathing room. */\nbody[data-islands-ui] [data-shell-bottom]:has([data-slot='shell.bottom'] > *) {\n margin-top: var(--isl-gap);\n}\n\n/* The closed right column is a zero-width track, but the grid still reserves a\n gap beside it; pull the centre island over that gap so the canvas margin on\n the right equals the margin on the left. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-rightbar-collapsed] [data-islands-part~=\"center-column\"] {\n margin-right: calc(-1 * var(--isl-gap));\n}\n\n/* Center column: the conversation island. */\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: hidden;\n}\n\n/* Shipped desktop rules paint the sidebar with a gradient and give the center\n column a left hairline; both are removed so the canvas reads as one plane. */\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n background: var(--isl-canvas);\n}\n\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"]:not([data-sidebar-drawer]) [data-islands-part~=\"sidebar-column\"] {\n background: transparent;\n border-right: 0;\n backdrop-filter: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-column\"] {\n background: transparent;\n border-right: 0;\n}\n\n[data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"center-column\"],\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-left: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"main-panel\"] {\n background: transparent;\n}\n\n/* Right workbench: only while a pane is open does the column render an island. */\nbody[data-islands-ui] [data-rightbar-col] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: clip;\n}\n\n/* Drawer mask on narrow windows: Islands keeps the veil light and blurred. */\nbody[data-islands-ui] [data-sidebar-mask] {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\n/* A fullscreen right pane is still mounted inside the frame's right track and\n positioned with `right: 0`. While that track is zero-width the pane covers\n the window almost by accident; as soon as the track has any width the pane is\n pushed off-screen, so the window shows plain canvas while the toggle still\n reports the pane as open. A fullscreen pane owns the window, so pin it to the\n viewport and stop letting the grid decide where it lands. */\nbody[data-islands-ui] [data-sidebar-right-panel][data-sidebar-right-panel='fullscreen'][data-sidebar-right-open] {\n position: fixed;\n inset:\n calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap))\n 0\n var(--isl-gap)\n 0;\n width: auto !important;\n height: auto !important;\n max-width: none !important;\n max-height: none !important;\n /* Above the drawer mask (70), the drawer (71) and the shell overlay (72). */\n z-index: 78;\n}\n\n/* The shell overlay layer is where the rail and window top bar live. In\n drawer mode it must paint above the drawer mask (70) and the drawer (71),\n otherwise the persistent rail disappears under the open workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] [data-shell-overlay] {\n z-index: 72;\n }\n}\n\n/* The resize handle is invisible chrome; keep it grabbable but quiet. */\nbody[data-islands-ui] [data-side=\"sidebar\"],\nbody[data-islands-ui] [data-side=\"rightbar\"] {\n width: 10px;\n margin-left: -5px;\n}\n\n/* The shell computes the right handle's inline `left` from the frame's\n border-box width, but its absolute containing block is the padded grid area\n and the panel itself sits inside the right padding. That shifts the handle\n two gaps to the right — wholly inside the right island. Cancel the frame's\n horizontal padding so the strip straddles the right island's left edge\n (covering the whole canvas gap plus 5px of the panel) like the left one. */\nbody[data-islands-ui] [data-side=\"rightbar\"] {\n margin-left: calc(-5px - 2 * var(--isl-gap));\n}\n\n/* Windows title bar keeps its native height; the frame padding already gives\n the rounded content corner room, so only the radius is unified. */\n[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"center-column\"] {\n border-radius: var(--isl-radius-lg);\n}\n\n[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"layout-frame\"] {\n background: var(--isl-canvas);\n}\n\n/* Collapsed sidebar on macOS drops the center column's left hairline; the\n island keeps its outline regardless. */\n[data-platform='darwin'] body[data-islands-ui] [data-sidebar-collapsed] [data-islands-part~=\"center-column\"] {\n border-left: 1px solid var(--isl-border-soft);\n}\n\n/* ==========================================================================\n Workbench panels (better-sidebar bottom dock + native right sidebar)\n Both must read as independent islands, not as sheets pasted onto the\n conversation island.\n ========================================================================== */\n\n/* The bottom workbench reserves its height on the conversation column, not on\n the inner panel, so the island itself shrinks and a canvas gap opens between\n the two islands. The peer-specific rules live in 60-peers.css. */\nbody[data-islands-ui] [data-islands-part~=\"center-column\"] {\n margin-bottom: var(--dsh-sidebar-height, 0px);\n transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\n/* The native right sidebar keeps its own width preference, which can exceed\n the track the frame grants; clamp it to the track so it never hangs over\n the conversation island. */\nbody[data-islands-ui] [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n box-sizing: border-box;\n width: 100% !important;\n max-width: 100% !important;\n min-width: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] [data-islands-part~=\"center-column\"] {\n transition: none;\n }\n}\n\n/* ==========================================================================\n Independent workspace collapse\n The DSH collapse swaps the whole sidebar render tree for its rail-only\n variant. Instead the expanded rail stays mounted and only the workspace\n column hides, so the left column never re-renders or re-flows.\n ========================================================================== */\n\n/* The width handle keeps its expanded inline position while the workspace is\n collapsed, which would leave an invisible drag target over the conversation.\n The workspace must be expanded to resize it. */\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-side=\"sidebar\"] {\n display: none;\n}\n\n/* The right column must keep its own track while the workspace is collapsed.\n Pin it to 0 only while the right pane is closed; when it opens, use the\n pane's PREFERRED width (published by the client). Reading the current\n column width here deadlocks: it is 0 while closed, so opening the pane\n could never grow the track, and the panel's `width: 100%` clamp would keep\n it at two border pixels. The fallback keeps the pane visible even before\n the width source has been located. */\nbody[data-islands-ui][data-islands-workspace-collapsed]\n [data-islands-part~=\"layout-frame\"]:not(\n :has([data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']))\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n}\n\nbody[data-islands-ui][data-islands-workspace-collapsed]\n [data-islands-part~=\"layout-frame\"]:has(\n [data-sidebar-right-panel][data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen'])\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr)\n var(--isl-rightbar-w, max(300px, 45vw)) !important;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-islands-animating] {\n transition: grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\n/* ---- 15-topbar.css ---- */\n/* ==========================================================================\n Islands UI · 15 top bar\n A window-chrome strip above the three islands on platforms that need one.\n It clears the macOS traffic lights and docks the header tools; Windows\n renders neither, using its native caption row and conversation header.\n ========================================================================== */\n\n/* Registered even when the skin is off; the base rule keeps it out of the way. */\n.isl-topbar {\n display: none;\n}\n\nbody[data-islands-ui] .isl-topbar {\n position: fixed;\n inset: var(--isl-chrome-top) 0 auto;\n z-index: 30;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n height: var(--isl-topbar-height);\n /* macOS centers the traffic lights in its 48px window-chrome band; the\n controls follow that center (10 + 14 = 24), not the 40px bar's own. */\n padding: 10px 10px 0 8px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n /* The bar itself must never swallow clicks meant for controls that are\n docked over it; only the toggle and the drag handle opt back in. */\n pointer-events: none;\n -webkit-app-region: no-drag;\n user-select: none;\n}\n\n/* Left lead (traffic-light strip) and the centre of the bar are draggable;\n both stop short of the docked controls so clicks keep working. */\n/* The 88px lead exists only for the macOS traffic lights. */\nbody[data-islands-ui] .isl-topbarLead {\n display: none;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbar {\n padding-left: 88px;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbarLead {\n position: absolute;\n inset: 0 auto 0 0;\n display: block;\n width: 88px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\nbody[data-islands-ui] .isl-topbarDrag {\n flex: 1;\n align-self: stretch;\n min-width: 0;\n margin-right: 250px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\n/* Windows has no island top bar: every control lives in the native caption row\n or the conversation header, so the strip and its 40px reservation are gone. */\nhtml[data-windows-titlebar] body[data-islands-ui] .isl-topbar {\n display: none;\n}\n\nbody[data-islands-ui] .isl-topbarToggle {\n box-sizing: border-box;\n flex: none;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-topbarToggle:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-topbarToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Narrow desktop: the top bar remains the window chrome (drag strip + right\n panel toggle), but the rail's home button owns the workspace drawer. The\n chrome must paint above the drawer mask (70) and the drawer (71). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-topbar {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-topbarToggle {\n display: none;\n }\n\n body[data-islands-ui] .isl-topbarDrag {\n margin-right: 40px;\n }\n}\n\n/* ---- 16-rail.css ---- */\n/* ==========================================================================\n Islands UI · 16 left rail\n Every registered panel launcher lives directly in the rail. Drag an icon to\n reorder it; right-click the rail to show or hide launchers.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-rail {\n display: none;\n}\n\nbody[data-islands-ui] .isl-rail {\n position: fixed;\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + 10px);\n left: var(--isl-gap);\n z-index: 25;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n width: var(--isl-rail-width);\n max-height: calc(100vh - var(--isl-chrome-top) - var(--isl-topbar-height) - 112px);\n padding: 2px 6px;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n scrollbar-width: none;\n pointer-events: auto;\n user-select: none;\n}\n\nbody[data-islands-ui] .isl-rail::-webkit-scrollbar {\n width: 0;\n height: 0;\n}\n\nbody[data-islands-ui] .isl-railBtn {\n box-sizing: border-box;\n display: grid;\n place-items: center;\n flex: none;\n width: 36px;\n height: 36px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n touch-action: none;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out),\n opacity 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-railBtn:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\n/* The house is a pure navigation trigger (conversation / workspace drawer),\n not a destination in the panel model. It has no persistent selected state;\n hover keeps the standard rail feedback and a click paints a translucent\n ripple clipped to the rounded tile. */\nbody[data-islands-ui] .isl-railBtn[data-rail-id='workspace'] {\n position: relative;\n overflow: hidden;\n}\n\nbody[data-islands-ui] .isl-railRipple {\n position: absolute;\n display: block;\n border-radius: 50%;\n background: currentColor;\n pointer-events: none;\n transform: translate(-50%, -50%) scale(0.2);\n animation: isl-rail-ripple 560ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;\n will-change: transform, opacity;\n}\n\n@keyframes isl-rail-ripple {\n 0% {\n transform: translate(-50%, -50%) scale(0.2);\n opacity: 0.2;\n }\n\n 100% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .isl-railRipple {\n animation-duration: 1ms;\n }\n}\n\nbody[data-islands-ui] .isl-railBtn.is-active {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-railBtn:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\nbody[data-islands-ui] .isl-rail.is-dragging,\nbody[data-islands-ui] .isl-rail.is-dragging .isl-railBtn {\n cursor: grabbing;\n}\n\nbody[data-islands-ui] .isl-railBtn.is-dragging {\n background: var(--isl-active);\n opacity: 0.45;\n}\n\n/* Floating copy of the dragged icon; follows the pointer at 90% opacity. */\nbody[data-islands-ui] .isl-railGhost {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1200;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 36px;\n height: 36px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n opacity: 0.9;\n pointer-events: none;\n will-change: transform;\n}\n\nbody[data-islands-ui] .isl-railAdd {\n color: var(--dsw-alias-label-tertiary);\n}\n\nbody[data-islands-ui] .isl-railDivider {\n flex: none;\n width: 24px;\n height: 1px;\n margin: 2px 0;\n background: var(--isl-border-soft);\n}\n\n/* ---- Rail management menu --------------------------------------------- */\nbody[data-islands-ui] .isl-railMenu {\n position: fixed;\n z-index: 35;\n box-sizing: border-box;\n width: 248px;\n max-height: min(60vh, 440px);\n padding: 6px;\n overflow-y: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n user-select: none;\n}\n\nbody[data-islands-ui] .isl-railMenuTitle {\n padding: 4px 8px 6px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-railMenuRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 36px;\n padding: 5px 8px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-railMenuRow:hover,\nbody[data-islands-ui] .isl-railMenuRow.is-current {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-railMenuRow.is-hidden .isl-railMenuIcon,\nbody[data-islands-ui] .isl-railMenuRow.is-hidden .isl-railMenuText {\n opacity: 0.5;\n}\n\nbody[data-islands-ui] .isl-railMenuIcon {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-railMenuText {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 1px;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-railMenuLabel {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuSub {\n color: var(--dsw-alias-label-tertiary);\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuCheck {\n box-sizing: border-box;\n display: grid;\n place-items: center;\n flex: none;\n width: 18px;\n height: 18px;\n border: 1px solid var(--isl-border-soft);\n border-radius: 6px;\n color: transparent;\n}\n\nbody[data-islands-ui] .isl-railMenuCheck.is-on {\n border-color: transparent;\n background: color-mix(in srgb, var(--isl-accent) 14%, transparent);\n color: var(--isl-accent);\n}\n\nbody[data-islands-ui] .isl-railMenuHint {\n margin-top: 4px;\n padding: 6px 8px 2px;\n border-top: 1px solid var(--isl-border-soft);\n color: var(--dsw-alias-label-tertiary);\n font-size: 10px;\n line-height: 14px;\n}\n\nbody[data-islands-ui] .isl-railMenuEmpty {\n padding: 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* Settings gear pinned above the account avatar. */\nbody[data-islands-ui] .isl-railSettings {\n display: none;\n}\n\nbody[data-islands-ui] .isl-railSettings {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: 56px;\n z-index: 26;\n display: grid;\n place-items: center;\n}\n\n/* Narrow desktop: the rail is the persistent navigation; the workspace is a\n drawer opened from its home button. Both the rail and its menus must sit\n above the drawer (71) and the drawer mask (70). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-rail {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railSettings {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railMenu {\n z-index: 1100;\n }\n}\n\n/* ---- 17-update.css ---- */\n/* ==========================================================================\n Islands UI · 17 desktop update\n One circular update entry above the settings gear. The skin owns the whole\n surface: the shipped indicator lives in the 36px settings row and overflows\n beside the account avatar, and it does not expose a phase attribute.\n\n The three busy patterns follow the open-source Dot Matrix loaders\n (dotmatrix.zzzzshawn.cloud): dotm-3x3-7, dotm-3x3-16 and dotm-3x3-6.\n ========================================================================== */\n\n/* The native indicator (and its tiny toggle badge) would duplicate the rail\n button. The walker marks both seats, so the rules survive a host rebuild\n without naming a hashed class. */\nbody[data-islands-ui] [data-islands-part~=\"update-indicator\"],\nbody[data-islands-ui] [data-islands-part~=\"update-badge\"] {\n display: none !important;\n}\n\nbody[data-islands-ui] {\n /* The update entry is an accent surface like the send button and the caret:\n it reads the business token, which the skin remaps to the user's accent.\n Deriving the hover shade here keeps the two in step — a separate literal\n would stay brand blue while everything else moved. */\n --isl-update-bg: var(--dsw-alias-state-business-primary);\n --isl-update-bg-hover: color-mix(in srgb, var(--isl-update-bg) 88%, #111214);\n --isl-update-danger: #d93a40;\n}\n\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-update-bg-hover: color-mix(in srgb, var(--isl-update-bg) 88%, #fff);\n --isl-update-danger: #ff6369;\n}\n\nbody[data-islands-ui] .isl-updateButton {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: calc(56px + 36px + 8px);\n z-index: 26;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n border: 1px solid transparent;\n border-radius: 50%;\n background: var(--isl-update-bg);\n color: #fff;\n cursor: default;\n box-shadow:\n 0 2px 6px -1px color-mix(in srgb, var(--isl-update-bg) 38%, transparent),\n 0 8px 18px -10px color-mix(in srgb, var(--isl-update-bg) 62%, transparent);\n transition:\n background-color 0.15s var(--ds-ease-in-out),\n box-shadow 0.15s var(--ds-ease-in-out),\n transform 0.15s var(--ds-ease-in-out),\n border-color 0.15s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable {\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:hover {\n background: var(--isl-update-bg-hover);\n transform: translateY(-1px);\n box-shadow:\n 0 3px 8px -1px color-mix(in srgb, var(--isl-update-bg) 44%, transparent),\n 0 10px 22px -10px color-mix(in srgb, var(--isl-update-bg) 72%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:active {\n transform: translateY(0) scale(0.96);\n}\n\nbody[data-islands-ui] .isl-updateButton:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--isl-update-bg) 40%, transparent);\n outline-offset: 2px;\n}\n\n/* The click guard between pressing the entry and the update panel opening.\n It must not fade the element: `opacity` lightened the surface towards the\n canvas while the coloured shadow stayed visible under it, so the entry read\n as a pale disc floating on a shadow. Keep the surface saturated, drop the\n lift and soften the shadow — and cover the hover state, which is still in\n force while the pointer rests on the button. */\nbody[data-islands-ui] .isl-updateButton.is-pending,\nbody[data-islands-ui] .isl-updateButton.is-pending.is-clickable:hover {\n background: var(--isl-update-bg-hover);\n transform: none;\n cursor: default;\n box-shadow:\n 0 1px 3px -1px color-mix(in srgb, var(--isl-update-bg) 30%, transparent),\n 0 3px 8px -6px color-mix(in srgb, var(--isl-update-bg) 45%, transparent);\n}\n\n/* Busy phases keep the circle but let the matrix carry the state. */\nbody[data-islands-ui] .isl-updateButton[aria-busy='true'] {\n cursor: default;\n}\n\n/* Error: a translucent danger surface, danger stroke, status dot and a retry\n glyph. The dot keeps the state readable without relying on color alone. */\nbody[data-islands-ui] .isl-updateButton.is-error {\n border-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 14%, transparent);\n color: var(--isl-update-danger);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error.is-clickable:hover {\n border-color: color-mix(in srgb, var(--isl-update-danger) 72%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 22%, transparent);\n box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error:focus-visible {\n outline-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\n/* Busy phases drop the circle entirely: the mosaic itself is the control,\n tinted with the user's accent so it belongs to the skin rather than to the\n shipped brand pill. */\nbody[data-islands-ui] .isl-updateButton.is-downloading,\nbody[data-islands-ui] .isl-updateButton.is-verifying,\nbody[data-islands-ui] .isl-updateButton.is-installing {\n border-color: transparent;\n background: transparent;\n color: var(--isl-accent);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateErrorDot {\n position: absolute;\n top: 2px;\n right: 2px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--isl-update-danger);\n box-shadow: 0 0 0 2px var(--isl-surface);\n}\n\n/* ---- 3x3 dot matrix ------------------------------------------------------ */\n\nbody[data-islands-ui] .isl-dmx {\n display: grid;\n grid-template-columns: repeat(3, 5px);\n grid-template-rows: repeat(3, 5px);\n gap: 2.5px;\n width: 20px;\n height: 20px;\n}\n\nbody[data-islands-ui] .isl-dmx-dot {\n display: block;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: currentColor;\n opacity: 0.14;\n will-change: opacity;\n}\n\n/* Column Flux (dotm-3x3-7): columns pulse left to right, all rows together.\n The three 400ms phases overlap, so at least one column stays lit while the\n busy button has no filled background behind it. */\nbody[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n animation: isl-dmx-column 1200ms cubic-bezier(0.42, 0, 0.58, 1) infinite;\n animation-delay: calc(var(--dmx-col) * 400ms);\n}\n\n/* Core Echo (dotm-3x3-6): Manhattan rings ripple out from the centre. */\nbody[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n animation: isl-dmx-ripple 1230ms ease-in-out infinite;\n animation-delay: calc(var(--dmx-ring) * 165ms);\n}\n\n/* Smiley Spin (dotm-3x3-16): the pixel glyph rotates in four 180ms phases.\n Each cell is lit for one or two phases; the first wraps across the cycle. */\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n animation-duration: 720ms;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n opacity: 0.12;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='1'] {\n animation-name: isl-dmx-spin-1;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='2'] {\n animation-name: isl-dmx-spin-2;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='wrap'] {\n animation-name: isl-dmx-spin-wrap;\n}\n\n@keyframes isl-dmx-column {\n 0% {\n opacity: 0.14;\n }\n\n 10% {\n opacity: 1;\n }\n\n 40% {\n opacity: 0.14;\n }\n\n 100% {\n opacity: 0.14;\n }\n}\n\n@keyframes isl-dmx-ripple {\n 0%,\n 100% {\n opacity: 0.08;\n }\n\n 34% {\n opacity: 1;\n }\n\n 60% {\n opacity: 0.22;\n }\n}\n\n@keyframes isl-dmx-spin-1 {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-2 {\n 0%,\n 45% {\n opacity: 0.88;\n }\n\n 50%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-wrap {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 70% {\n opacity: 0.12;\n }\n\n 75%,\n 100% {\n opacity: 0.88;\n }\n}\n\n/* Narrow desktop: the rail floats above the workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-updateButton {\n z-index: 72;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .isl-updateButton {\n transition: none;\n }\n\n body[data-islands-ui] .isl-dmx-dot {\n animation: none !important;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='2'] {\n opacity: 0.88;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='0'] {\n opacity: 1;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n opacity: 0.12;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-on='1'] {\n opacity: 0.88;\n }\n}\n\n/* ---- Settings showcase --------------------------------------------------- */\n\nbody[data-islands-ui] .isl-updateShowcase {\n margin-top: 18px;\n padding: 16px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--dsw-alias-settings-card-fill);\n}\n\nbody[data-islands-ui] .isl-updateShowcaseHead {\n margin-bottom: 14px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseDesc {\n margin-top: 3px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseGrid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));\n gap: 14px 8px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseItem {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n min-width: 0;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseStage {\n display: grid;\n place-items: center;\n width: 56px;\n height: 56px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n}\n\nbody[data-islands-ui] .isl-updateShowcase .isl-updateButton.is-preview {\n position: relative;\n left: auto;\n bottom: auto;\n z-index: auto;\n transform: none;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseLabel {\n color: var(--dsw-alias-label-primary);\n font-size: 12px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-updateShowcasePhase {\n color: var(--dsw-alias-label-tertiary);\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 10px;\n line-height: 14px;\n}\n\n/* ---- 20-sidebar.css ---- */\n/* ==========================================================================\n Islands UI · 20 sidebar\n The expanded sidebar is one full-height island: a persistent icon rail on\n the left and the workspace browser on the same surface. The island spans the\n exact same top and bottom edges as the conversation island. Collapsed mode\n keeps the shipped rail untouched.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"] {\n background: transparent;\n}\n\n/* ---- Expanded: chrome rail + workspace island --------------------------- */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) {\n display: grid;\n grid-template-columns: var(--isl-rail-width) minmax(0, 1fr);\n grid-template-rows: var(--isl-gap) auto minmax(0, 1fr) auto;\n column-gap: var(--isl-gap);\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n position: relative;\n isolation: isolate;\n}\n\n/* The workspace browser is the sidebar's only island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])::after {\n content: '';\n position: absolute;\n z-index: -1;\n inset: 0 0 0 calc(var(--isl-rail-width) + var(--isl-gap));\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n pointer-events: none;\n}\n\n/* The top band is a small breathing gap inside the sidebar column. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"sidebar-top-strip\"] {\n grid-area: 1 / 1 / 2 / -1;\n height: 100%;\n margin: 0;\n padding: 0 4px 0 0;\n justify-content: flex-end;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] {\n grid-area: 2 / 1;\n height: 36px;\n margin: 0 0 6px;\n padding: 0;\n justify-content: center;\n overflow: visible;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"brand-button\"] {\n justify-content: center;\n overflow: visible;\n}\n\n/* The brand wordmark and build stamp belong to window chrome, not the rail. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"brand-name\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"local-build-brand\"] {\n display: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"brand-mark\"] {\n width: 28px;\n height: 28px;\n}\n\n/* Two host shapes share this rule set: before 0.2.2-rc.3 the button itself is\n the sidebar grid item; from rc.3 a `newSessionRow` wrapper carries the\n session-action slot and is the grid item. The button keeps its grid-area so\n the older shape still lays out; inside the row the property is inert and the\n row owns the outer margin. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"] {\n grid-area: 2 / 2;\n height: 36px;\n margin: 0 6px 6px;\n padding: 0 8px;\n justify-content: flex-start;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n box-shadow: none;\n color: var(--dsw-alias-label-primary);\n font-weight: 400;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"] {\n grid-area: 2 / 2;\n height: 36px;\n margin: 0 6px 6px;\n padding: 0;\n align-items: center;\n}\n\n/* rc.3: the row owns the outer spacing; the button fills it. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"] [data-islands-part~=\"new-session\"] {\n margin: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-content\"] {\n justify-content: flex-start;\n width: 100%;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"]:hover {\n background: var(--isl-hover);\n}\n\n/* The global panel list becomes the rail's primary navigation. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-list\"] {\n grid-area: 3 / 1;\n align-self: start;\n align-items: center;\n gap: 4px;\n margin: 2px 0 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-row\"] {\n width: 36px;\n height: 36px;\n justify-content: center;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-row\"][data-islands-part~=\"panel-active\"] {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}\n\n/* The label leaves the visual rail but stays in the accessibility tree. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-title\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Workspace browser: same surface, full height ----------------------- */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"region-area\"] {\n grid-area: 3 / 2 / 5 / 3;\n margin: 0;\n padding: 0 4px 6px;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"region-area\"] {\n --dsh-session-list-edge-inset: 4px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"section-header\"] {\n padding-inline: 8px;\n margin-right: 0;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n letter-spacing: 0.01em;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"section-label\"] {\n font-weight: 500;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"list\"] {\n padding-bottom: 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"list-fade\"] {\n background: linear-gradient(to bottom, transparent, var(--isl-surface));\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"],\nbody[data-islands-ui] [data-row-key^=\"workspace:\"] {\n border-radius: var(--isl-radius-sm);\n padding-inline: 8px;\n}\n\n/* ---- Rail foot: settings gear ------------------------------------------ */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] {\n grid-area: 4 / 1;\n align-items: center;\n margin-top: 6px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-area\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"footer-actions\"] {\n width: auto;\n align-items: center;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-trigger-row\"] {\n width: auto;\n margin: 4px 0 2px;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"] {\n flex: none;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"settings-trigger-label\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"]:hover,\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-slot=\"sidebar\"] button[aria-haspopup=\"dialog\"][aria-expanded='true'] {\n background: var(--isl-hover);\n}\n\n/* Footer actions contributed next to Settings (account launcher, etc.). */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"footer-actions\"] button {\n width: 36px;\n height: 36px;\n border-radius: var(--isl-radius-md);\n}\n\n/* ---- Collapsed rail ------------------------------------------------------ */\n/* Collapsing hides the workspace browser only; the rail keeps its own island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"][data-islands-part~=\"sidebar-collapsed\"] {\n /* The rail is chrome, not an island: it sits directly on the ocean. */\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n padding: 8px 10px 6px;\n overflow: hidden;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"][data-islands-part~=\"sidebar-collapsed\"] [data-islands-part~=\"sidebar-top-strip\"] {\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-collapsed\"] [data-islands-part~=\"new-session\"] {\n border-radius: var(--isl-radius-md);\n}\n\n/* The window top bar / rail own the collapse controls; the in-island toggle\n would duplicate them at every width. Windows is the exception: DSH pins its\n native toggle in the caption row, so there the skin must not hide or restyle\n it — the top bar drops its own copy and leaves the native control alone. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"sidebar-toggle\"] {\n display: none;\n}\n\n@media (min-width: 768px) {\n /* On macOS the shipped frame gives a collapsed sidebar zero width, hiding\n the rail too. Restore one rail-wide track (right panel still closed). */\n [data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-collapsed][data-rightbar-collapsed] {\n grid-template-columns: var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n }\n\n /* The rail itself is the expand control; do not reserve header space for the\n floating seat and do not show a second expand button over the island. */\n [data-platform='darwin'] body[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-collapsed] {\n --dsh-frame-leading-clearance: 0px;\n }\n}\n\n/* The window chrome and the rail own the sidebar controls; the floating seat\n is redundant (and at narrow widths would sit under the traffic lights). */\nbody[data-islands-ui] [data-shell-leading] {\n display: none;\n}\n\n/* ---- Search / section chrome inside the island --------------------------- */\nbody[data-islands-ui] [data-islands-part~=\"search-expanded\"] {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n border-radius: var(--isl-radius-sm);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"search-expanded\"] [data-islands-part~=\"search-button\"]:hover {\n background: transparent;\n}\n\n/* ---- Narrow drawer ------------------------------------------------------- */\n/* Below the top bar's breakpoint the workspace becomes an overlay drawer. It\n starts at the frame's content top (below the top bar and its 5px gap) and\n leaves the window's 5px canvas margin on the left; the workspace card inside\n keeps the right/bottom 5px so the drawer still reads as an island. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"sidebar-column\"] {\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap));\n bottom: 0;\n left: var(--isl-gap);\n background: var(--isl-canvas);\n border-right: 0;\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"sidebar-root\"]::after {\n inset: 0 var(--isl-gap) var(--isl-gap) calc(var(--isl-rail-width) + var(--isl-gap));\n}\n\n/* The sidebar's grid track is zero in drawer mode, but its column gap remains;\n shift the conversation island right by the persistent rail so the closed\n drawer leaves the rail visible and the island keeps its 5px gap. */\nbody[data-islands-ui] [data-islands-part~=\"layout-frame\"][data-sidebar-drawer] [data-islands-part~=\"center-column\"] {\n margin-left: var(--isl-rail-width);\n}\n\n/* ---- Account launcher (settings.launcher) --------------------------------\n In this build the sidebar foot is the account menu rather than the bare\n settings gear, so the same rail geometry applies to its trigger. The\n trigger itself is the host's `data-signed-out` button; its label is marked\n by the walker. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"account-root\"] {\n flex: none;\n width: 36px;\n margin-inline: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"account-anchor\"] {\n width: 36px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out][data-signed-out='false']:not([data-collapsed='true']),\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-signed-out][data-signed-out='true']:not([data-collapsed='true']) {\n width: 36px;\n height: 36px;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"foot-area\"] [data-islands-part~=\"account-label\"] {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Independent workspace collapse ------------------------------------- */\n/* Hide the workspace island only; the rail keeps its expanded-layout DOM and\n position, so nothing in the left column is re-rendered by the toggle. */\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session-row\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"new-session\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"region-area\"],\nbody[data-islands-ui][data-islands-workspace-collapsed] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])::after {\n display: none !important;\n}\n\n/* ---- Custom rail replaces the shipped brand + panel icon column ---------- */\n/* Windows is the one platform that keeps the logo row in the tree: DSH's\n fixed caption-row toggle is a child, and `display: none` on the ancestor\n would remove the native button. The row loses its own box below instead. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"],\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"panel-list\"] {\n display: none !important;\n}\n\nhtml[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] {\n display: contents;\n}\n\nhtml[data-windows-titlebar] body[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) [data-islands-part~=\"logo-row\"] [data-islands-part~=\"brand-button\"] {\n display: none;\n}\n\n/* ---- Aggregate pinned sessions ------------------------------------------ */\n.isl-pinnedHost {\n display: block;\n flex: none;\n}\n\n.isl-pinned {\n display: none;\n padding: 2px 4px 0;\n}\n\nbody[data-islands-ui] .isl-pinned {\n display: block;\n}\n\n/* Pinned rows stay in place in their workspace groups and are also collected\n in the aggregate block above. The original row keeps a subtle tint. */\nbody[data-islands-ui] [data-islands-part~=\"pin-indicator\"] {\n color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"]:has([data-islands-part~=\"pin-indicator\"]) {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, transparent);\n}\n\nbody[data-islands-ui] [data-row-key^=\"session:\"]:has([data-islands-part~=\"pin-indicator\"]):hover {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);\n}\n\n.isl-pinnedHead {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font: inherit;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n/* Collapsible header mirrors the quiet workspace section header: colour only. */\n.isl-pinnedHead:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-tertiary);\n transform: rotate(-90deg);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinned[data-open] .isl-pinnedChevron {\n transform: rotate(0deg);\n}\n\n.isl-pinnedTitle {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.isl-pinnedCount {\n margin-left: auto;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n font-weight: 400;\n}\n\n.isl-pinnedList {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding: 1px 0 3px;\n}\n\n.isl-pinnedRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 8px 0 34px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n.isl-pinnedRow:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.isl-pinnedName {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n/* Hover marquee: clip the ellipsis, fade both edges as the title crawls. */\n.isl-pinnedRow:hover .isl-pinnedName {\n text-overflow: clip;\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled] {\n mask-image: linear-gradient(90deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-clipped] {\n mask-image: linear-gradient(270deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled][data-clipped] {\n mask-image: linear-gradient(90deg, #0000, #000 12px calc(100% - 12px), #0000);\n}\n\n.isl-pinnedRow:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n.isl-pinnedPinBtn,\n.isl-pinnedLocate {\n display: none;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n margin-left: 4px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-xs, 6px);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinnedRow:hover .isl-pinnedPinBtn,\n.isl-pinnedRow:focus-within .isl-pinnedPinBtn,\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedRow:hover .isl-pinnedLocate,\n.isl-pinnedRow:focus-within .isl-pinnedLocate,\n.isl-pinnedLocate:focus-visible {\n display: grid;\n}\n\n.isl-pinnedPinBtn:hover,\n.isl-pinnedLocate:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedLocate:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Brief highlight on the session the locate action focuses. */\nbody[data-islands-ui] [data-row-key^=\"session:\"].isl-located {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, transparent) !important;\n}\n\n/* ==========================================================================\n Sidebar scroll containers\n Releases from 0.2.2-rc.2 wrap the panel list and workspace browser in\n `scrollRegion > scrollArea`. The parts are only written when those wrappers\n exist, so the same sheet covers the older flat shell without a variant.\n ========================================================================== */\n\n/* The browser column replaces the old direct regionArea grid item. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] {\n grid-area: 3 / 2 / 5 / 3;\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n margin: 0;\n}\n\n/* The shipped grid only made sense inside the full-height shell; the island\n grid wants a plain column so the workspace browser can fill the island. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] > [data-islands-part~=\"sidebar-scroll-area\"] {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n margin: 0;\n overflow: hidden;\n}\n\nbody[data-islands-ui]\n [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"])\n > [data-islands-part~=\"sidebar-scroll-region\"]\n > [data-islands-part~=\"sidebar-scroll-area\"]\n > [data-islands-part~=\"region-area\"] {\n flex: 1;\n min-height: 0;\n}\n\n/* The shipped bottom fade reads as a panel edge; the island supplies its own. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"]:not([data-islands-part~=\"sidebar-collapsed\"]) > [data-islands-part~=\"sidebar-scroll-region\"] > [data-islands-part~=\"sidebar-scroll-fade\"] {\n display: none;\n}\n\n/* The selected-panel state moved from the row onto the wrapping entry; mirror\n the base active rule for the shipped rail. */\nbody[data-islands-ui] [data-islands-part~=\"sidebar-root\"] [data-islands-part~=\"panel-entry-active\"] [data-islands-part~=\"panel-row\"] {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}\n\n/* ---- 30-conversation.css ---- */\n/* ==========================================================================\n Islands UI · 30 conversation & composer\n ========================================================================== */\n\nbody[data-islands-ui] [data-phase] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"conversation-header\"] {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"conversation-header-blank\"] {\n border-bottom-color: transparent;\n}\n\nbody[data-islands-ui] [data-conversation-scroll] {\n margin-right: 0;\n}\n\n/* Composer: the one element that should visibly float above the island. */\nbody[data-islands-ui] [data-composer-card] {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n box-shadow: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"composer-card-workspace-trigger\"]:after {\n border-radius: var(--dsw-radius-panel);\n color: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"composer-notice\"] {\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface-muted);\n}\n\n/* Sticky composer seat fades into the island surface, not into a raw token. */\nbody[data-islands-ui] [data-phase='active'] [data-composer-seat],\nbody[data-islands-ui] [data-islands-part~=\"embedded-body\"][data-content-phase='active'] [data-composer-seat] {\n background: linear-gradient(\n 180deg,\n color-mix(in srgb, var(--isl-surface) 0%, transparent) 0px,\n var(--isl-surface) 36px\n );\n}\n\n/* Hero: a calmer, slightly tighter headline on the open island. */\nbody[data-islands-ui] [data-islands-part~=\"hero-headline\"] {\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"hero-workspace\"] {\n border-radius: 999px;\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"hero-workspace\"]:hover {\n background: var(--isl-hover);\n}\n\n/* Tool / turn cards keep their own hierarchy but gain island hairlines. */\nbody[data-islands-ui] [data-turn-trigger] {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] [data-turn-trigger]:hover {\n background: var(--isl-surface-sunken);\n}\n\n/* Header chips and breadcrumbs. */\nbody[data-islands-ui] [data-islands-part~=\"header-crumb\"] {\n border-radius: var(--isl-radius-sm);\n}\n\n/* View tabs sit on the island as a quiet segmented row. */\nbody[data-islands-ui] [data-conversation-tabs] {\n gap: 22px;\n}\n\nbody[data-islands-ui] [data-conversation-tabs] [role=\"tab\"][aria-selected=\"true\"]:after {\n border-radius: 999px;\n height: 2px;\n}\n\n/* ==========================================================================\n Header utilities live in the window bar\n The three trailing controls (session tools, side panel, right panel) leave\n the conversation island and dock at the bar's right edge, vertically aligned\n with the workspace toggle on the left.\n ========================================================================== */\n@media (min-width: 768px) {\n /* Windows leaves these controls in the conversation header: the native\n caption row already exists, so the skin keeps no extra strip to dock\n them into. */\n html:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"header-utilities\"] {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: 41px; /* frame gap 5 + corner 28 + gap 8 */\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n\n html:not([data-windows-titlebar]) body[data-islands-ui] [data-islands-part~=\"header-corner\"] {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n}\n\n/* ==========================================================================\n Always-visible right sidebar toggle\n The native header button unmounts while the panel is open and the panel\n carries its own collapse control. On every platform except Windows the top\n bar owns one persistent toggle instead, and closes through the native\n collapse action. Windows keeps DSH's own controls: the header corner opens\n the panel and the panel header closes it.\n ========================================================================== */\n/* Body-portaled (see RightPanelToggle): keep it out of the DOM flow while the\n skin is off, so the base rule cannot leak a raw button into the page. */\n.isl-rightToggle {\n display: none;\n}\n\n/* z-index 900: above the workbench panel host (dsh-better-sidebar: host 25,\n dock 40, float 60, floating window 90) and the app's transient tooltip/\n hovercard layer (100), below menus and dialogs (1000+). The button is\n portaled to <body>, so this value competes with the body-level layers\n directly instead of being trapped in the frame's z-index-20 overlay layer. */\nbody[data-islands-ui] .isl-rightToggle {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 900;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-rightToggle:hover,\nbody[data-islands-ui] .isl-rightToggle[aria-pressed='true'] {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-rightToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Windows has no island top bar, so the portalled copy steps aside and DSH's\n own expand/collapse buttons below are left alone. */\nhtml[data-windows-titlebar] body[data-islands-ui] .isl-rightToggle {\n display: none;\n}\n\n/* Outside Windows the top bar owns open and close; the island's own\n expand/collapse controls would duplicate it. */\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-sidebar-right-expand] {\n /* Keep the native expand button's box in the layout even though the top\n bar's toggle paints over it. Other header plugins anchor to this\n button's rect (dsh-better-sidebar's blank-session dock fallback does),\n and `display: none` collapses that rect to 0x0, sending them to the\n top-left corner where they collide with the workspace toggle. */\n visibility: hidden !important;\n pointer-events: none !important;\n}\n\nhtml:not([data-windows-titlebar]) body[data-islands-ui] [data-sidebar-right-toggle] {\n display: none !important;\n}\n\n/* ---- 31-caret.css ---- */\n/* ==========================================================================\n Islands UI · 31 composer caret\n The send circle and the smooth caret of the conversation composer. Both are\n driven by the accent token, so a custom Islands accent reaches them without\n naming a host class: the send button is read through its skin part, and the\n caret through the composer's own `data-composer-*` hooks.\n ========================================================================== */\n\n/* The send circle is the composer's primary action. The stock sheet paints it\n with the info-fill token, which a custom accent does not remap; use the\n accent token so the setting reaches it. The stock hover still applies while\n following the theme; a custom accent derives its own shade in the direction\n the stock token uses for that theme. */\nbody[data-islands-ui] [data-islands-part~=\"composer-primary\"] {\n background-color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui][data-islands-accent] [data-islands-part~=\"composer-primary\"]:hover:not(:disabled) {\n background-color: color-mix(in srgb, var(--isl-accent) 86%, #fff);\n}\n\nbody[data-islands-ui][data-islands-accent][data-ds-dark-theme] [data-islands-part~=\"composer-primary\"]:hover:not(:disabled) {\n background-color: color-mix(in srgb, var(--isl-accent) 86%, #000);\n}\n\n/* ---- Caret ---------------------------------------------------------------\n The caret always follows the theme accent: a custom Islands accent remaps\n `--dsw-alias-state-business-primary`, so both the native caret and the\n smooth overlay below read the same token. */\n\nbody[data-islands-ui] [data-composer-input] {\n caret-color: var(--dsw-alias-state-business-primary);\n}\n\n/* Smooth caret: while the overlay is painting a composer, that composer's\n native caret is hidden. Every fallback state (IME composition, no\n measurement, a non-collapsed selection) removes the marker first, so the\n native caret is never lost. A selected command chip suppresses the caret\n entirely, as in the stock composer. */\nbody[data-islands-ui][data-islands-smooth-caret] [data-composer-input][data-islands-caret-active] {\n caret-color: transparent;\n}\n\nbody[data-islands-ui][data-islands-smooth-caret] [data-composer-input][data-composer-composing]:not([data-composer-chip-selected]) {\n caret-color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] [data-composer-input][data-composer-chip-selected] {\n caret-color: transparent;\n}\n\n/* The overlay is a sibling of the contenteditable inside its positioned\n wrapper, so it scrolls and clips with the draft instead of floating over\n the island. 2px is a deliberate accent treatment at the composer's 14px\n type size (the native caret is 1px); height matches the text glyph box. */\n.isl-caret {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n display: block;\n width: 2px;\n border-radius: 1px;\n background: var(--dsw-alias-state-business-primary, var(--isl-accent, #4176e6));\n opacity: 0;\n pointer-events: none;\n will-change: transform;\n transition: transform 150ms cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n\n.isl-caret.is-jump {\n transition: none;\n}\n\n.isl-caret.is-on {\n opacity: 1;\n animation: isl-caret-blink 1.06s step-end infinite;\n}\n\n/* Keep the caret solid while it is moving; the blink resumes after a short\n idle, like a native caret. */\n.isl-caret.is-typing {\n animation: none;\n opacity: 1;\n}\n\n@keyframes isl-caret-blink {\n 0%,\n 49% {\n opacity: 1;\n }\n\n 50%,\n 100% {\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-caret,\n .isl-caret.is-jump {\n transition: none;\n }\n}\n\n/* ---- 40-settings.css ---- */\n/* ==========================================================================\n Islands UI · 40 settings (and shared dialog surfaces)\n The settings window is an island; its navigation is a recessed island.\n ========================================================================== */\n\nbody[data-islands-ui] [data-islands-part~=\"settings-overlay\"] {\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-mask\"] {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-panel\"] {\n width: 860px;\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: 24px;\n box-shadow: var(--isl-shadow-float);\n padding: 10px;\n gap: 8px;\n grid-template-columns: 188px minmax(0, 1fr);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-title\"] {\n padding: 8px 8px 6px;\n font-size: 15px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\n/* The navigation mirrors the workspace list: no recessed panel, quiet rows. */\nbody[data-islands-ui] [data-islands-part~=\"settings-nav\"] {\n padding: 4px;\n background: transparent;\n border: 0;\n border-radius: 0;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-list\"] {\n gap: 2px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"] {\n height: 32px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 18px;\n gap: 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"]:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-cell\"][data-islands-part~=\"settings-nav-active\"] {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n font-weight: 500;\n box-shadow: none;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-icon\"] {\n width: 16px;\n height: 16px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-nav-icon\"] svg {\n width: 100%;\n height: 100%;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-header\"] {\n height: 48px;\n padding: 6px 6px 0 8px;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-options\"] {\n padding: 0 8px 16px;\n background: transparent;\n}\n\nbody[data-islands-ui] [data-islands-part~=\"settings-close\"] {\n border-radius: var(--isl-radius-sm);\n}\n\n/* Cards and sections inside settings pages keep the host's own geometry and\n use the skin's card tokens (00-tokens). They are deliberately not matched by\n local class name: the plugin settings pages also ship `.card`/`.section`,\n and a broad match restyles their internals. */\n\n/* The general-page rows keep their separators but at island quietness. */\nbody[data-islands-ui] [data-slot='settings.general.item'] > * {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-slot='settings.general.item']:last-child > * {\n border-bottom: 0;\n}\n\n/* Dialogs opened from settings (confirmations, pickers). */\nbody[data-islands-ui] [role='dialog'] {\n border-radius: var(--isl-radius-xl);\n}\n\n/* Account page cards. */\nbody[data-islands-ui] [data-islands-part~=\"account-balance-card\"] {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n background: var(--isl-surface);\n}\n\n/* ---- 45-model-picker.css ---- */\n/* ==========================================================================\n Islands UI · 45 composer model picker\n Trigger chip + model list + reasoning slider, in the Islands language.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-model {\n position: relative;\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-modelTrigger {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 260px;\n height: 28px;\n padding: 0 8px;\n border: 1px solid transparent;\n border-radius: 999px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n transition: background-color 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:hover:not(:disabled) {\n background: var(--isl-surface-sunken);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:disabled {\n opacity: 0.55;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-modelTrigger:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 1px;\n}\n\nbody[data-islands-ui] .isl-modelIcon {\n display: var(--dsh-composer-model-icon-display, none);\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-modelName {\n display: var(--dsh-composer-model-text-display, inline);\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelEffort {\n display: var(--dsh-composer-model-text-display, inline);\n flex-shrink: 1000;\n min-width: 0;\n color: var(--dsw-alias-label-caption);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-caption);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelChevron.is-open {\n transform: rotate(180deg);\n}\n\n/* ---- Menu ---------------------------------------------------------------- */\nbody[data-islands-ui] .isl-modelMenu {\n position: fixed;\n z-index: 1100;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n max-height: min(460px, calc(100vh - 24px));\n padding: 6px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n overflow-y: auto;\n --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);\n --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);\n}\n\nbody[data-islands-ui] .isl-modelPaneHead {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 0 4px 6px;\n}\n\nbody[data-islands-ui] .isl-modelMenuTitle {\n padding: 2px 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-modelBack {\n display: grid;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelBack:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelBackIcon {\n display: inline-flex;\n transform: rotate(90deg);\n}\n\nbody[data-islands-ui] .isl-modelGroups {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\nbody[data-islands-ui] .isl-modelGroup + .isl-modelGroup {\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .isl-modelGroupName {\n padding: 6px 8px 2px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-modelOption {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 34px;\n padding: 6px 8px;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelOption:hover {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-modelOption.is-selected {\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .isl-modelOptionName {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelCheck {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelEmpty {\n padding: 10px 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* ---- Reasoning effort ---------------------------------------------------- */\nbody[data-islands-ui] .isl-effortPopup {\n position: relative;\n padding: 9px 10px 8px;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-effortReset {\n position: absolute;\n top: 5px;\n right: 5px;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortReset:hover:not(:disabled) {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-effortReset:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-effortName {\n color: var(--dsw-alias-state-business-primary);\n font-size: 18px;\n line-height: 24px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] .isl-effortModel {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 100%;\n margin-top: 1px;\n padding: 1px 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 18px;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortModel:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-effortModelName {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-effortModelChevron {\n display: inline-flex;\n flex: none;\n color: inherit;\n transform: rotate(-90deg);\n}\n\nbody[data-islands-ui] .isl-effortSliderWrap {\n position: relative;\n margin: 7px 2px 0;\n}\n\nbody[data-islands-ui] .isl-effortSlider {\n -webkit-appearance: none;\n appearance: none;\n display: block;\n width: 100%;\n height: 24px;\n margin: 0;\n padding: 0;\n background: transparent;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-runnable-track {\n height: 20px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n var(--dsw-alias-state-business-primary) 0\n calc(12px + (100% - 24px) * var(--isl-ratio, 0)),\n var(--isl-surface-sunken) calc(12px + (100% - 24px) * var(--isl-ratio, 0)) 100%\n );\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n margin-top: -2px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n box-shadow:\n 0 1px 4px rgba(17, 24, 39, 0.22),\n 0 0 0 0.5px rgba(17, 24, 39, 0.06);\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible {\n outline: none;\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible::-webkit-slider-thumb {\n box-shadow:\n 0 0 0 3px color-mix(in srgb, var(--dsw-alias-state-business-primary) 26%, transparent),\n 0 1px 4px rgba(17, 24, 39, 0.22);\n}\n\nbody[data-islands-ui] .isl-effortDots {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px;\n pointer-events: none;\n}\n\nbody[data-islands-ui] .isl-effortDot {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .isl-effortDot.is-filled {\n background: rgba(255, 255, 255, 0.55);\n}\n\nbody[data-islands-ui] .isl-modelError {\n margin: 8px 8px 2px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n background: var(--dsw-alias-interactive-bg-hover-danger);\n color: var(--dsw-alias-state-error-primary);\n font-size: 11px;\n line-height: 16px;\n}\n\n/* ---- 50-components.css ---- */\n/* ==========================================================================\n Islands UI · 50 shared components\n Small, reusable pieces used by the skin's own surfaces. All values come from\n the token layer, so nothing here is page-specific.\n ========================================================================== */\n\n/* ---- Preference row (rendered into settings.general.item) ---------------- */\nbody[data-islands-ui] .isl-prefRow,\n.isl-prefRow {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-prefRow:last-child,\n.isl-prefRow:last-child {\n border-bottom: 0;\n}\n\n.isl-prefText {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n}\n\n.isl-prefTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\n.isl-prefDesc {\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n/* Inline compatibility hint on a preference row (never a global notice). */\n.isl-prefWarn {\n margin-top: 2px;\n color: #a86b00;\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-ds-dark-theme] .isl-prefWarn {\n color: #f0c274;\n}\n\n/* ---- Switch -------------------------------------------------------------- */\n.isl-switch {\n position: relative;\n flex: none;\n width: 38px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n cursor: pointer;\n background: var(--dsw-alias-bg-layer-3);\n box-shadow: inset 0 0 0 1px var(--dsw-alias-border-l2);\n transition: background-color 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] {\n background: var(--dsw-alias-state-business-primary);\n box-shadow: none;\n}\n\n.isl-switch:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n\n.isl-switchThumb {\n position: absolute;\n top: 3px;\n left: 3px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);\n transition: transform 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] .isl-switchThumb {\n transform: translateX(16px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-switch,\n .isl-switchThumb {\n transition: none;\n }\n}\n\n/* ---- Popover / menu materials ------------------------------------------- */\nbody[data-islands-ui] [data-menu-material] {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] [role='dialog'],\nbody[data-islands-ui] [role='menu'],\nbody[data-islands-ui] [role='listbox'] {\n border-radius: var(--isl-radius-lg);\n}\n\n/* ---- Scrollbars ---------------------------------------------------------- */\nbody[data-islands-ui] ::-webkit-scrollbar-thumb {\n border-radius: 999px;\n}\n\n/* ---- Focus --------------------------------------------------------------- */\nbody[data-islands-ui] :focus-visible {\n outline-offset: 1px;\n}\n\n/* ---- Dedicated settings page ------------------------------------------- */\n.isl-settingsPage {\n box-sizing: border-box;\n max-width: 760px;\n padding: 4px 8px 24px;\n}\n\n.isl-settingsPageHead {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.isl-settingsPageLogo {\n display: inline-flex;\n flex: none;\n}\n\n.isl-settingsPageHeadText {\n min-width: 0;\n}\n\n.isl-settingsPageTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n line-height: 22px;\n}\n\n.isl-settingsPageDesc {\n margin-top: 4px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-settingsPage .isl-prefRow:first-of-type {\n margin-top: 12px;\n}\n\n/* Detected DSH release + sidebar dialect: diagnosis for support reports. */\n.isl-settingsMeta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 10px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\n.isl-settingsMetaValue {\n padding: 0 5px;\n border-radius: 4px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-secondary);\n font-family: var(--dsw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 11px;\n}\n\n.isl-settingsMetaSeparator {\n opacity: 0.6;\n}\n\n.isl-accentPicker {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.isl-accentSwatch {\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 50%;\n background-clip: padding-box;\n cursor: pointer;\n transition:\n transform 0.12s var(--ds-ease-in-out),\n box-shadow 0.12s var(--ds-ease-in-out);\n}\n\n.isl-accentSwatch:hover {\n transform: scale(1.08);\n}\n\n.isl-accentSwatch.is-selected {\n box-shadow:\n 0 0 0 2px var(--dsw-alias-bg-base),\n 0 0 0 3.5px var(--dsw-alias-label-primary);\n}\n\n.isl-accentSwatch.is-default {\n background: linear-gradient(135deg, #ffffff 0 47%, #c4c8ce 47% 53%, #1b1c1f 53% 100%);\n}\n\n.isl-accentCustom {\n position: relative;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n border: 1px dashed var(--dsw-alias-border-l3);\n border-radius: 50%;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\n.isl-accentCustom::before {\n content: '+';\n font-size: 14px;\n line-height: 1;\n}\n\n.isl-accentCustom input {\n position: absolute;\n inset: -4px;\n width: 32px;\n height: 32px;\n opacity: 0;\n cursor: pointer;\n}\n\n\n/* ---- Compatibility notice ------------------------------------------------\n Rendered while the skin is OFF, so nothing here may rely on the `--isl-*`\n scale or on `body[data-islands-ui]`. Every custom property carries a\n fallback and every color comes from the public DSH theme tokens. */\n\n.isl-compatToast {\n position: fixed;\n right: 16px;\n bottom: 16px;\n z-index: 2000;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: min(380px, calc(100vw - 32px));\n padding: 12px 10px 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-left: 3px solid #e0a018;\n border-radius: var(--isl-radius-lg, 16px);\n background: var(--dsw-alias-bg-overlay, #ffffff);\n color: var(--dsw-alias-label-primary, #1f2328);\n box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.35);\n font-size: 13px;\n line-height: 19px;\n cursor: pointer;\n opacity: 0;\n transform: translateY(10px);\n transition:\n opacity 0.16s ease,\n transform 0.16s ease;\n}\n\n.isl-compatToast.is-visible {\n opacity: 1;\n transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-compatToast {\n transition: none;\n }\n}\n\n.isl-compatToastBody {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatToastTitle {\n font-weight: 600;\n}\n\n.isl-compatToastText {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatToastAction {\n margin-top: 6px;\n color: #a86b00;\n font-size: 12px;\n font-weight: 600;\n}\n\n.isl-compatToastClose {\n flex: none;\n width: 22px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n}\n\n.isl-compatToastClose:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(17, 24, 39, 0.06));\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n/* The settings-page warning bar. */\n.isl-compatBanner {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n margin: 12px 0 4px;\n padding: 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.45);\n border-radius: var(--isl-radius-lg, 16px);\n background: rgba(240, 180, 41, 0.14);\n background: color-mix(in srgb, #f0b429 14%, transparent);\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n line-height: 20px;\n}\n\n.isl-compatBannerIcon {\n flex: none;\n display: inline-flex;\n margin-top: 1px;\n color: #b47400;\n}\n\n.isl-compatBannerText {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatBannerTitle {\n font-weight: 600;\n}\n\n.isl-compatBannerBody,\n.isl-compatBannerHint {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatBannerHint {\n margin-top: 6px;\n}\n\n.isl-compatBannerList {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n margin-top: 6px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n}\n\n.isl-compatAnchor {\n padding: 0 4px;\n border-radius: 4px;\n background: rgba(17, 24, 39, 0.06);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 11px;\n}\n\n.isl-compatBannerAction {\n flex: none;\n align-self: flex-start;\n padding: 5px 10px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-radius: 8px;\n background: transparent;\n color: #8a5a00;\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n}\n\n.isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.18);\n}\n\n.isl-compatForced {\n margin: 8px 0 0;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-switch:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n/* The notice renders while the skin is off, so darkness is read straight from\n the host theme attribute its own stylesheet uses. */\nbody[data-ds-dark-theme] .isl-compatBannerIcon {\n color: #e8b451;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction {\n border-color: rgba(240, 180, 41, 0.45);\n color: #f2c879;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.16);\n}\n\nbody[data-ds-dark-theme] .isl-compatAnchor {\n background: rgba(255, 255, 255, 0.08);\n}\n\nbody[data-ds-dark-theme] .isl-compatToastAction {\n color: #f0c274;\n}\n\n/* ---- 60-peers.css ---- */\n/* ==========================================================================\n Islands UI · 60 peer adapters\n Rules for plugins that mount their own surfaces inside the frame. These are\n not host contracts: each peer owns the attributes and class names below, and\n the core stylesheets never read them. The CSS gate allows [class*=...] only\n in this file; a peer that renames its internals degrades these rules alone.\n ========================================================================== */\n\n/* dsh-better-sidebar: the bottom workbench reserves its height on the\n conversation column, not on the inner panel. `data-dsh-center-col` and\n `--dsh-sidebar-height` are the peer's own marks. */\nbody[data-islands-ui] #root [data-dsh-center-col] {\n margin-bottom: 0;\n}\n\nbody[data-islands-ui]:has([data-dsh-bottom-panel]:not([class*='Hidden'])) [data-islands-part~=\"center-column\"] {\n /* one gap above the panel and one below it */\n margin-bottom: calc(var(--dsh-sidebar-height, 0px) + var(--isl-gap));\n}\n\nbody[data-islands-ui] [data-dsh-bottom-panel] {\n box-sizing: border-box;\n /* Align the panel with the conversation island edges and let the frame\n padding provide the bottom gap, so every island shares one gap width. */\n margin: 0;\n bottom: var(--isl-gap);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: none;\n /* The rounded island clips its content, but NOT the height-drag strip: the\n strip must reach into the canvas gap above the panel to be reachable\n there. Clip the body instead (below), so the strip can overhang. */\n overflow: visible;\n}\n\n/* Keep the island's rounded content edge with the panel's own clipping gone:\n the body carries the radius, while the absolute resize strip and the close\n control stay outside this clip. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='panelBody'] {\n overflow: clip;\n border-radius: calc(var(--isl-radius-lg) - 1px);\n}\n\n/* The peer centers its strip on the panel's top border (`top: -4px;\n height: 8px`), which was right before the skin opened a canvas gap between\n the conversation island and the panel. Anchor the 10px strip to that gap\n instead: 5px above the border box top (the whole gap) and 5px inside the\n panel, matching the side handles' straddle. `top` is relative to the panel's\n padding box, hence the extra 1px border compensation. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='bottomResize'] {\n top: calc(-1px - var(--isl-gap));\n height: 10px;\n}";
526
1079
 
527
1080
  const ATTRIBUTE = SKIN_ATTR;
528
1081
  const STORAGE_KEY = 'dsh-islands-ui:enabled';
@@ -640,6 +1193,10 @@ function installParts() {
640
1193
  compatStructure: '侧栏结构',
641
1194
  compatStructureFlat: '平铺',
642
1195
  compatStructureScroll: '滚动容器',
1196
+ smoothCaret: '平滑输入光标',
1197
+ smoothCaretDesc: '仅作用于对话输入框:光标随文字平滑滑动,颜色跟随强调色;关闭后使用原生输入光标。',
1198
+ smoothCaretCompat: '当前 DSH 构建与平滑光标不兼容,已自动回退原生光标;此开关暂不可用。',
1199
+ smoothCaretYielded: '检测到其他光标插件,平滑光标已让位;停用该插件后会自动恢复。',
643
1200
  },
644
1201
  en: {
645
1202
  title: 'Islands interface',
@@ -729,6 +1286,13 @@ function installParts() {
729
1286
  compatStructure: 'Sidebar structure',
730
1287
  compatStructureFlat: 'flat',
731
1288
  compatStructureScroll: 'scroll containers',
1289
+ smoothCaret: 'Smooth input caret',
1290
+ smoothCaretDesc:
1291
+ 'Applies to the conversation composer: the caret glides between positions and follows the accent color; turn off to use the native caret.',
1292
+ smoothCaretCompat:
1293
+ 'This DSH build is not compatible with the smooth caret; the native caret is used and this switch is unavailable.',
1294
+ smoothCaretYielded:
1295
+ 'Another caret plugin is active; the smooth caret yields to it and resumes when that plugin is disabled.',
732
1296
  },
733
1297
  };
734
1298
 
@@ -792,6 +1356,7 @@ function installParts() {
792
1356
  /* private mode: the choice still applies for this page. */
793
1357
  }
794
1358
  syncAttribute();
1359
+ syncCaretOverlay();
795
1360
  for (const listener of listeners) listener();
796
1361
  }
797
1362
 
@@ -838,6 +1403,11 @@ function installParts() {
838
1403
  return React.useSyncExternalStore(subscribeCompat, getCompatSnapshot);
839
1404
  }
840
1405
 
1406
+ /** The smooth caret keeps its own compatibility state; see src/host/caret.js. */
1407
+ function useCaretCompat() {
1408
+ return React.useSyncExternalStore(subscribeCaretCompat, getCaretCompatSnapshot);
1409
+ }
1410
+
841
1411
  function currentCopy() {
842
1412
  try {
843
1413
  return String(localeService?.getSnapshot?.().active ?? 'en').toLowerCase().startsWith('zh')
@@ -1293,53 +1863,143 @@ function installParts() {
1293
1863
  return h(PinGlyph);
1294
1864
  }
1295
1865
 
1296
- function revealPinnedSession(sessionId, title) {
1297
- const projectRows = () => [...document.querySelectorAll(HOST.WORKSPACE_ROW)];
1298
- const stateOf = (row) =>
1299
- row.getAttribute('aria-expanded') ??
1300
- row.querySelector('[aria-expanded]')?.getAttribute('aria-expanded');
1301
- const expanded = (row) => stateOf(row) === 'true';
1302
- const toggle = (row) => {
1303
- const chevron = row.querySelector('[aria-expanded]');
1304
- if (chevron instanceof HTMLElement) chevron.click();
1305
- else row.click();
1306
- };
1866
+ /** A second click while the list is still opening must not race the first. */
1867
+ let locating = false;
1307
1868
 
1308
- // Expand every workspace briefly so the target session exists in the DOM.
1309
- for (const row of projectRows()) {
1310
- if (!expanded(row)) toggle(row);
1311
- }
1869
+ /**
1870
+ * Escape a value for a quoted attribute selector. Row keys are ids, but a
1871
+ * session id never gets concatenated into a selector without this.
1872
+ */
1873
+ function rowKeyValue(value) {
1874
+ return String(value).replaceAll('\\', '\\\\').replaceAll('"', '\\"');
1875
+ }
1876
+
1877
+ /** One paint, with a timer fallback for a background window. */
1878
+ function nextFrame() {
1879
+ return new Promise((resolve) => {
1880
+ let settled = false;
1881
+ const done = () => {
1882
+ if (settled) return;
1883
+ settled = true;
1884
+ resolve();
1885
+ };
1886
+ requestAnimationFrame(done);
1887
+ window.setTimeout(done, 120);
1888
+ });
1889
+ }
1312
1890
 
1313
- window.setTimeout(() => {
1314
- const candidates = [...document.querySelectorAll(HOST.SESSION_ROW)].filter((row) =>
1315
- (row.textContent ?? '').includes(title),
1316
- );
1317
- if (candidates.length === 0) return;
1318
- const row = candidates[0];
1891
+ /**
1892
+ * Reveal a pinned session in the workspace list.
1893
+ *
1894
+ * The Workspace row is the host's `treeitem` and toggles on a plain click,
1895
+ * but its descendants also carry `aria-expanded`: the "..." context-menu
1896
+ * trigger and the overflow button. Expanding through a descendant lookup
1897
+ * therefore clicked the menu trigger, opened the Workspace menu at the
1898
+ * viewport origin (the row actions are hidden until hover, so the trigger
1899
+ * has no rect) and left the group collapsed. Match the session by its row
1900
+ * key instead of by title, and toggle the row itself.
1901
+ */
1902
+ async function revealPinnedSession(sessionId, workspaceId) {
1903
+ if (locating) return;
1904
+ locating = true;
1905
+ try {
1906
+ const sessionSelector = `[data-row-key="session:${rowKeyValue(sessionId)}"]`;
1907
+ const findSession = () => document.querySelector(sessionSelector);
1908
+ const projectRows = () => [...document.querySelectorAll(HOST.WORKSPACE_ROW)];
1909
+ const expanded = (row) => row.getAttribute('aria-expanded') === 'true';
1910
+ const rowKey = (row) => row.getAttribute('data-row-key');
1911
+ const findWorkspace = (id) =>
1912
+ document.querySelector(`[data-row-key="workspace:${rowKeyValue(id)}"]`);
1913
+ // HoverCard wraps both Workspace and session anchors in a span, so a
1914
+ // row's parent is not its group section. A section is the child of the
1915
+ // tree itself or of an enclosing role=group.
1916
+ const sectionOf = (row) => {
1917
+ let node = row.parentElement;
1918
+ while (node !== null) {
1919
+ const parent = node.parentElement;
1920
+ if (parent === null) return null;
1921
+ const role = parent.getAttribute('role');
1922
+ if (role === 'group' || role === 'tree') return node;
1923
+ node = parent;
1924
+ }
1925
+ return null;
1926
+ };
1319
1927
 
1320
- // The owner is the nearest preceding Workspace row; nested ancestors stay open.
1321
- let owner = null;
1322
- for (const project of projectRows()) {
1323
- if ((project.compareDocumentPosition(row) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0) owner = project;
1928
+ let row = findSession();
1929
+ const reopened = new Set();
1930
+
1931
+ // Expand collapsed Workspaces until the target mounts. A single pass
1932
+ // is not enough: opening a nested Workspace mounts its children
1933
+ // collapsed, and those children need their own click.
1934
+ for (let pass = 0; row === null && pass < 16; pass += 1) {
1935
+ const collapsed = projectRows().filter((project) => !expanded(project));
1936
+ if (collapsed.length === 0) break;
1937
+ for (const project of collapsed) {
1938
+ if (!project.isConnected || expanded(project)) continue;
1939
+ project.click();
1940
+ reopened.add(rowKey(project));
1941
+ }
1942
+ await nextFrame();
1943
+ row = findSession();
1324
1944
  }
1325
1945
 
1326
- for (const project of projectRows()) {
1327
- const keep = project === owner || project.contains(owner);
1328
- if (keep) {
1329
- if (!expanded(project)) toggle(project);
1330
- } else if (expanded(project)) {
1331
- toggle(project);
1946
+ // The host only paints a small window of sessions per group. The
1947
+ // target is normally pinned to the front, but when it sits behind the
1948
+ // overflow button, raise that group's watermark until the row exists.
1949
+ for (let step = 0; row === null && step < 10; step += 1) {
1950
+ const owner = workspaceId === undefined ? null : findWorkspace(workspaceId);
1951
+ const section = owner === null ? null : sectionOf(owner);
1952
+ const overflow =
1953
+ section?.querySelector(':scope > [data-row-key^="overflow:"]') ??
1954
+ (workspaceId === undefined
1955
+ ? document.querySelector('[data-row-key="overflow:"]')
1956
+ : null);
1957
+ if (!(overflow instanceof HTMLElement)) break;
1958
+ overflow.click();
1959
+ await nextFrame();
1960
+ row = findSession();
1961
+ }
1962
+
1963
+ // The owning Workspace is the project row in the same group section;
1964
+ // nested ancestors are the project rows above each enclosing
1965
+ // role=group. Keep them open after undoing the temporary expansion.
1966
+ const keep = new Set();
1967
+ if (row !== null) {
1968
+ let section = sectionOf(row);
1969
+ let owner = section?.querySelector(HOST.WORKSPACE_ROW) ?? null;
1970
+ while (section !== null && owner !== null) {
1971
+ keep.add(rowKey(owner));
1972
+ const group = section.parentElement;
1973
+ if (!(group instanceof HTMLElement) || group.getAttribute('role') !== 'group') break;
1974
+ section = group.parentElement;
1975
+ owner = section instanceof HTMLElement ? section.querySelector(HOST.WORKSPACE_ROW) : null;
1332
1976
  }
1333
1977
  }
1334
1978
 
1335
- window.setTimeout(() => {
1336
- row.scrollIntoView({ block: 'center', behavior: 'smooth' });
1337
- if (!row.hasAttribute('tabindex')) row.setAttribute('tabindex', '-1');
1338
- row.focus({ preventScroll: true });
1339
- row.classList.add('isl-located');
1340
- window.setTimeout(() => row.classList.remove('isl-located'), 1400);
1341
- }, 140);
1342
- }, 180);
1979
+ // Restore the groups this run opened only to make the target
1980
+ // reachable. Walk deepest first so a child's expansion state is
1981
+ // reverted before its parent unmounts it.
1982
+ for (const key of [...reopened].reverse()) {
1983
+ if (keep.has(key)) continue;
1984
+ const project = projectRows().find((candidate) => rowKey(candidate) === key);
1985
+ if (project !== undefined && project.isConnected && expanded(project)) project.click();
1986
+ }
1987
+
1988
+ if (row === null) return;
1989
+ await nextFrame();
1990
+
1991
+ const target = findSession();
1992
+ if (!(target instanceof HTMLElement)) return;
1993
+ target.scrollIntoView({ block: 'center', behavior: 'smooth' });
1994
+ if (!target.hasAttribute('tabindex')) target.setAttribute('tabindex', '-1');
1995
+ target.focus({ preventScroll: true });
1996
+ target.classList.add('isl-located');
1997
+ window.setTimeout(() => target.classList.remove('isl-located'), 1400);
1998
+ } catch {
1999
+ /* The sidebar belongs to the host; a failed locate leaves it as it is. */
2000
+ } finally {
2001
+ locating = false;
2002
+ }
1343
2003
  }
1344
2004
 
1345
2005
  function PinGlyph() {
@@ -1981,7 +2641,11 @@ function installParts() {
1981
2641
  {
1982
2642
  type: 'button',
1983
2643
  className: `isl-updateButton is-${phase}${clickable ? ' is-clickable' : ''}${pending ? ' is-pending' : ''}`,
1984
- 'data-phase': phase,
2644
+ // Not `data-phase`: that is a host contract, and the conversation
2645
+ // sheet's `[data-phase] { background: transparent }` rule has the same
2646
+ // specificity as this button's own surface — it landed later in the
2647
+ // sheet and erased the entry's fill.
2648
+ 'data-update-phase': phase,
1985
2649
  'data-clickable': clickable ? 'true' : 'false',
1986
2650
  title: detail,
1987
2651
  'aria-label': label,
@@ -2030,7 +2694,7 @@ function installParts() {
2030
2694
  'span',
2031
2695
  {
2032
2696
  className: `isl-updateButton is-preview is-${phase}`,
2033
- 'data-phase': phase,
2697
+ 'data-update-phase': phase,
2034
2698
  title: label,
2035
2699
  'aria-hidden': 'true',
2036
2700
  },
@@ -2512,7 +3176,7 @@ function installParts() {
2512
3176
  }
2513
3177
 
2514
3178
  /** One pinned row: hover reveals unpin + locate, and a clipped title marquees. */
2515
- function PinnedRow({ session, copy, pinIcon }) {
3179
+ function PinnedRow({ session, workspaceId, copy, pinIcon }) {
2516
3180
  const titleRef = React.useRef(null);
2517
3181
  const frameRef = React.useRef(0);
2518
3182
  const revealingRef = React.useRef(false);
@@ -2606,7 +3270,10 @@ function installParts() {
2606
3270
  'aria-label': copy.locate,
2607
3271
  onClick: (event) => {
2608
3272
  event.stopPropagation();
2609
- revealPinnedSession(id, title);
3273
+ // Locating also makes the session current. Open first so the
3274
+ // switch still happens when the list cannot show the row.
3275
+ uiWorkspaceService?.openSession(id);
3276
+ revealPinnedSession(id, workspaceId);
2610
3277
  },
2611
3278
  },
2612
3279
  h(LocateGlyph),
@@ -2622,6 +3289,7 @@ function installParts() {
2622
3289
  function IslandsPinnedSection({ useWorkspaces, useSessions }) {
2623
3290
  const pinnedIds = useWorkspaces((state) => state.pinnedSessionIds ?? []);
2624
3291
  const sessions = useSessions((state) => state.byId ?? {});
3292
+ const workspaceItems = useWorkspaces((state) => state.items ?? []);
2625
3293
  const [host, setHost] = React.useState(null);
2626
3294
  const [collapsed, setCollapsed] = React.useState(() => {
2627
3295
  try {
@@ -2702,14 +3370,19 @@ function installParts() {
2702
3370
  : h(
2703
3371
  'div',
2704
3372
  { className: 'isl-pinnedList' },
2705
- rows.map((session) =>
2706
- h(PinnedRow, {
2707
- key: session.id ?? session.sessionId,
3373
+ rows.map((session) => {
3374
+ const id = session.id ?? session.sessionId;
3375
+ const owner = workspaceItems.find(
3376
+ (item) => Array.isArray(item?.sessionIds) && item.sessionIds.includes(id),
3377
+ );
3378
+ return h(PinnedRow, {
3379
+ key: id,
2708
3380
  session,
3381
+ workspaceId: owner?.workspaceId,
2709
3382
  copy,
2710
3383
  pinIcon,
2711
- }),
2712
- ),
3384
+ });
3385
+ }),
2713
3386
  ),
2714
3387
  ),
2715
3388
  host,
@@ -2934,15 +3607,29 @@ function installParts() {
2934
3607
  function IslandsSettingsPage() {
2935
3608
  const on = useEnabled();
2936
3609
  const compat = useCompat();
3610
+ const caretCompat = useCaretCompat();
2937
3611
  const lang = useLocale() ?? 'en';
2938
3612
  const copy = String(lang).toLowerCase().startsWith('zh') ? COPY.zh : COPY.en;
2939
3613
  const blocked = compat.status === 'missing';
3614
+ const caretYielded = caretCompat.status === 'yielded';
3615
+ const caretBlocked = caretCompat.status === 'missing' || caretYielded;
2940
3616
  const [accent, setAccent] = React.useState(readAccent);
3617
+ const [smooth, setSmooth] = React.useState(readSmoothCaretSetting);
3618
+ const smoothActive = smooth && !caretBlocked;
3619
+ // Opening the page re-probes: the composer may have mounted since the
3620
+ // controller's last look, and the row must not keep a stale verdict.
3621
+ React.useEffect(() => {
3622
+ probeCaretCompatibility();
3623
+ }, []);
2941
3624
  const chooseAccent = (color) => {
2942
3625
  setAccent(color);
2943
3626
  applyAccent(color);
2944
3627
  storeAccent(color);
2945
3628
  };
3629
+ const chooseSmoothCaret = (next) => {
3630
+ setSmooth(next);
3631
+ setSmoothCaret(next);
3632
+ };
2946
3633
  return h(
2947
3634
  'div',
2948
3635
  { className: 'isl-settingsPage' },
@@ -3041,6 +3728,44 @@ function installParts() {
3041
3728
  ),
3042
3729
  ),
3043
3730
  ),
3731
+ h(
3732
+ 'div',
3733
+ { className: 'isl-prefRow' },
3734
+ h(
3735
+ 'div',
3736
+ { className: 'isl-prefText' },
3737
+ h('div', { className: 'isl-prefTitle' }, copy.smoothCaret),
3738
+ h('div', { className: 'isl-prefDesc' }, copy.smoothCaretDesc),
3739
+ caretBlocked
3740
+ ? h(
3741
+ 'div',
3742
+ {
3743
+ className: 'isl-prefWarn',
3744
+ title: caretCompat.missing.length > 0 ? caretCompat.missing.join(' · ') : undefined,
3745
+ },
3746
+ caretYielded ? copy.smoothCaretYielded : copy.smoothCaretCompat,
3747
+ )
3748
+ : null,
3749
+ ),
3750
+ h(
3751
+ 'button',
3752
+ {
3753
+ type: 'button',
3754
+ role: 'switch',
3755
+ className: 'isl-switch',
3756
+ 'aria-checked': smoothActive,
3757
+ 'aria-label': copy.smoothCaret,
3758
+ title: caretBlocked
3759
+ ? caretYielded
3760
+ ? copy.smoothCaretYielded
3761
+ : copy.smoothCaretCompat
3762
+ : copy.smoothCaret,
3763
+ disabled: caretBlocked,
3764
+ onClick: () => chooseSmoothCaret(!smooth),
3765
+ },
3766
+ h('span', { className: 'isl-switchThumb' }),
3767
+ ),
3768
+ ),
3044
3769
  // Preview hidden on request. The component and its styles stay in place;
3045
3770
  // restore the next line to show the state gallery again.
3046
3771
  // h(IslandsUpdateShowcase, { copy }),
@@ -3097,6 +3822,13 @@ function installParts() {
3097
3822
  // Everything below turns the chrome on, so it runs only after the gate
3098
3823
  // has confirmed this build still matches the stylesheet.
3099
3824
  const registerSkinChrome = (ctx) => {
3825
+ // The caret controller only runs with the chrome on: it paints into
3826
+ // the composer and reads the skin's body attribute on every frame.
3827
+ ctx.effect(() => {
3828
+ installCaretController();
3829
+ return () => uninstallCaretController();
3830
+ }, 'dsh-islands-ui: smooth composer caret');
3831
+
3100
3832
  ctx.effect(() => {
3101
3833
  const root = document.documentElement;
3102
3834
  let panel = null;