dsh-islands-ui 1.0.4 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0 — 2026-11-13
4
+
5
+ ### 界面
6
+
7
+ - 左侧栏不再把其他插件收进「…」弹层:所有 `sidebar.panellist` 面板图标直接排列在工作区按钮下方,点击即按面板默认行为切换(`layoutService.selectPanel`)。
8
+ - 图标支持按住拖动排序,顺序写入 `localStorage`;拖动超过 4px 才进入排序,普通点击仍只切换面板。图标较多时栏内可滚动,并在拖动到上下边缘时自动滚动。进入排序后源图标变淡,同时出现一个 36px、90% 不透明度、保持抓取偏移并跟随鼠标的浮层,松手即移除。
9
+ - 右键左侧栏或任一图标打开「左侧栏图标」菜单,勾选 / 取消勾选即可增删入口;隐藏的图标仍保留在菜单中,可随时恢复。旧版 `dsh-islands-ui:rail-pins` 的固定顺序会自动迁移到新的 `dsh-islands-ui:rail` 配置。
10
+ - 菜单副标题不再把 DSH 官方客户端 bundle 的内部 fiber 名 `WC` 直接显示出来,内置项改标为「DSH 内置」;匹配时忽略大小写,第三方插件仍显示其包名。
11
+ - 左侧栏首页(工作区)图标改为纯导航触发器:不再进入 `is-active`、不再设置 `aria-pressed`、不参与拖动样式;hover 使用标准浅色反馈,点击在按钮内绘制半透明的圆形涟漪(键盘触发时从中心扩散);全局面板图标仍按 `activePanelId` 高亮。
12
+ - 修复首页按钮在空闲状态被误标为拖动中:`dragId` 初始为 `null`,而房子的 id 也是 `null`,`dragId === id` 让房子从首帧起一直带 `is-dragging`(选中底色 + 45% 透明度)。拖动判断改为 `id !== null && dragId === id`,房子在空闲和拖动其他图标时都不再进入拖动样式。
13
+ - 移除左侧栏底部原有的「…」按钮与插件固定弹层。
14
+
3
15
  ## 1.0.4 — 2026-11-12
4
16
 
5
17
  ### 兼容性
package/README.en.md CHANGED
@@ -47,7 +47,7 @@ dsh plugin --profile desktop remove dsh-islands-ui
47
47
  | | Feature | Details |
48
48
  | :---: | --- | --- |
49
49
  | 🏝 | **Floating islands** | Canvas, conversation, workspace, right sidebar and bottom panel become separate rounded surfaces; flat, no drop shadows, separated by color and a 1px hairline |
50
- | 🧭 | **Persistent rail** | Workspace / automation / plugins / pinned plugins / more; right-click or “…” opens the plugin pin menu |
50
+ | 🧭 | **Persistent rail** | Workspace plus every plugin launcher, shown inline; the home button is a pure conversation / workspace-drawer trigger with no selected state (subtle hover and a translucent click ripple); click a panel to open it, drag to reorder with a floating preview, right-click to show or hide |
51
51
  | ⚙️ | **Settings page** | Settings → Islands UI: on/off, accent presets, custom color and follow-theme |
52
52
  | 📌 | **Pinned shelf** | Pinned sessions stay in their workspace and are also aggregated between “New session” and “Workspace”; the group collapses |
53
53
  | 🌙 | **Dark mode** | Full dark token set: near-black canvas, dark islands, translucent interaction layers |
@@ -113,7 +113,7 @@ Stored in `localStorage`; clear these keys to reset:
113
113
  | `dsh-islands-ui:enabled` | `1` / `0`, master switch |
114
114
  | `dsh-islands-ui:accent` | Custom accent color; absent means follow theme |
115
115
  | `dsh-islands-ui:pinned-collapsed` | Whether the pinned group is collapsed |
116
- | `dsh-islands-ui:rail-pins` | Extra plugin ids pinned to the left rail |
116
+ | `dsh-islands-ui:rail` | Left-rail icon order and hidden entries |
117
117
 
118
118
  ---
119
119
 
@@ -124,7 +124,7 @@ src/
124
124
  00-tokens.css design tokens + --dsw-* aliases (single source of truth)
125
125
  10-shell.css three-column shell → canvas + islands
126
126
  15-topbar.css window top bar
127
- 16-rail.css left icon rail, plugin pin menu, settings gear
127
+ 16-rail.css left icon rail, drag reorder, show/hide menu, settings gear
128
128
  17-update.css desktop update entry, state styles, 3×3 dot-matrix loaders
129
129
  20-sidebar.css workspace island, pinned shelf, session row states
130
130
  30-conversation.css conversation page, composer, top tool group
package/README.md CHANGED
@@ -70,14 +70,14 @@ dsh plugin --profile desktop remove dsh-islands-ui
70
70
  | | 功能 | 说明 |
71
71
  | :---: | --- | --- |
72
72
  | 🏝 | **浮岛布局** | 画布、主会话、工作区、右侧栏、底部面板各自独立;扁平无投影,以色块 + 1px 发丝线分隔 |
73
- | 🧭 | **常驻左侧栏** | 工作区 / 自动化任务 / 插件 / 已固定插件 / 更多;右键或「…」打开插件固定菜单 |
73
+ | 🧭 | **常驻左侧栏** | 工作区与全部插件图标直接排列;首页按钮只作会话 / 工作区抽屉触发器、不占选中态(hover 浅色反馈、点击半透明涟漪);面板图标点击切换,按住拖动排序(浮动预览跟随鼠标),右键显示 / 隐藏图标 |
74
74
  | ⚙️ | **独立设置页** | 设置 → Islands UI:一键开关皮肤、强调色(预设 + 自定义 + 跟随主题) |
75
75
  | 📌 | **置顶聚合** | 置顶会话同时保留在原工作区,并聚合到「新会话」与「工作区」标题之间;分类可折叠 |
76
76
  | 🌙 | **深色模式** | 完整深色 token:近黑画布、深灰岛屿、白色透明交互层与深色阴影 |
77
77
  | 🔄 | **桌面更新入口** | 设置齿轮上方常驻;发现新版本、下载、校验、安装与失败各有独立状态,加载态使用强调色 3×3 点阵动效 |
78
78
  | ⌨️ | **快捷键** | `⌘B` 折叠工作区、`⌥⌘B` 右侧栏、`⌘,` 设置、`⌘⇧M` 模型弹层;按钮悬停显示当前键位 |
79
79
 
80
- 皮肤是纯客户端样式层;左侧栏插件固定、置顶聚合、定位与设置页也都在浏览器端完成,不新增 host 工具、服务或会话数据。
80
+ 皮肤是纯客户端样式层;左侧栏图标排序与显隐、置顶聚合、定位与设置页也都在浏览器端完成,不新增 host 工具、服务或会话数据。
81
81
 
82
82
  ### 设计语言
83
83
 
@@ -126,7 +126,7 @@ Windows 下保留 Harness 原生标题栏,自定义顶栏显示在它下方;
126
126
  | `dsh-islands-ui:enabled` | `1` / `0`,总开关 |
127
127
  | `dsh-islands-ui:accent` | 自定义强调色(不存在表示跟随主题) |
128
128
  | `dsh-islands-ui:pinned-collapsed` | 置顶分类是否折叠 |
129
- | `dsh-islands-ui:rail-pins` | 左侧栏额外固定的插件 id 列表 |
129
+ | `dsh-islands-ui:rail` | 左侧栏图标的顺序与隐藏列表 |
130
130
 
131
131
  清除这些 key 即可恢复默认。
132
132
 
@@ -139,7 +139,7 @@ src/
139
139
  00-tokens.css 设计变量 + 重定向 Harness 的 --dsw-* 别名(唯一真源)
140
140
  10-shell.css 三栏框架 → 画布 + 岛屿
141
141
  15-topbar.css 窗口顶部栏
142
- 16-rail.css 左侧图标栏、插件固定菜单、设置齿轮
142
+ 16-rail.css 左侧图标栏、拖动排序、显隐菜单、设置齿轮
143
143
  20-sidebar.css 工作区岛屿、置顶聚合、会话行状态
144
144
  30-conversation.css 会话页、输入框、顶部工具组
145
145
  40-settings.css 设置弹窗、设置页外壳
@@ -194,7 +194,7 @@ npm pack # 生成 dsh-islands-ui-<version>.tgz
194
194
 
195
195
  ## 兼容性与边界
196
196
 
197
- - 皮肤是**纯客户端样式层**,不替换会话、设置或插件的数据与交互;左侧栏插件固定、置顶聚合、定位等额外能力也只在客户端完成。
197
+ - 皮肤是**纯客户端样式层**,不替换会话、设置或插件的数据与交互;左侧栏图标排序与显隐、置顶聚合、定位等额外能力也只在客户端完成。
198
198
  - 选择器依赖 Harness 当前构建的 CSS Module 哈希类名(如 `PIRFFq_*`、`kB3qhq_*`、`JoiKIa_*`、`_77Pn0W_*`)与少量 `data-*` 挂点;**Harness 升级或重新构建后类名可能变化,需要同步更新对应 CSS**。
199
199
  - 启动时检测界面骨架锚点(`.PIRFFq_frame`、`.PIRFFq_centerCol`、`.kB3qhq_root`)并校验侧栏结构方言:先按 DSH 版本注入对应样式,再用挂载后的 DOM 交叉验证(`flat` / `scroll`),两者不一致时以 DOM 为准切换样式;结构无法识别时才**不启用皮肤**,DSH 保持默认外观,右下角弹出说明(5 秒自动关闭、可手动关闭、点击进入插件设置),设置 → Islands UI 里也常驻一条黄色说明,并提供会话级的「仍然启用」。
200
200
  - 设置 → Islands UI 显示检测到的 DSH 版本与侧栏结构,便于排查升级后的样式问题。
package/client.js CHANGED
@@ -11,7 +11,7 @@ window.__ModuleLoader__.load({
11
11
  const React = require('react');
12
12
  const ReactDOM = require('react-dom');
13
13
  const h = React.createElement;
14
- 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. */\nhtml[data-windows-titlebar] body[data-islands-ui] {\n --isl-chrome-top: var(--dsh-windows-titlebar-height, 32px);\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] .PIRFFq_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] .PIRFFq_bottomRow: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] .PIRFFq_frame[data-rightbar-collapsed] .PIRFFq_centerCol {\n margin-right: calc(-1 * var(--isl-gap));\n}\n\n/* Center column: the conversation island. */\nbody[data-islands-ui] .PIRFFq_centerCol {\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] .PIRFFq_frame {\n background: var(--isl-canvas);\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame:not([data-sidebar-drawer]) .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n backdrop-filter: none;\n}\n\nbody[data-islands-ui] .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_centerCol,\nbody[data-islands-ui] .PIRFFq_centerCol {\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] .PIRFFq_mainPanel {\n background: transparent;\n}\n\n/* Right workbench: only while a pane is open does the column render an island. */\nbody[data-islands-ui] .PIRFFq_rightbarCol {\n background: transparent;\n}\n\nbody[data-islands-ui] .Dv5QdW_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] .PIRFFq_drawerMask {\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] .PIRFFq_overlayLayer {\n z-index: 72;\n }\n}\n\n/* The resize handle is invisible chrome; keep it grabbable but quiet. */\nbody[data-islands-ui] .PIRFFq_handle {\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] .PIRFFq_handle[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] .PIRFFq_centerCol {\n border-radius: var(--isl-radius-lg);\n}\n\n[data-windows-titlebar] body[data-islands-ui] .PIRFFq_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] .PIRFFq_centerCol {\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. */\nbody[data-islands-ui] #root [data-dsh-center-col] {\n margin-bottom: 0;\n}\n\nbody[data-islands-ui] .PIRFFq_centerCol {\n margin-bottom: var(--dsh-sidebar-height, 0px);\n transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui]:has([data-dsh-bottom-panel]:not([class*='Hidden'])) .PIRFFq_centerCol {\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 host 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}\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] .Dv5QdW_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] .PIRFFq_centerCol {\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 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 .PIRFFq_frame:not(\n :has(.Dv5QdW_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 .PIRFFq_frame:has(\n .Dv5QdW_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] .PIRFFq_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. It clears the macOS traffic\n lights, hosts the workspace collapse control, and leaves the content area\n completely free for the islands.\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\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 Workspace / automation / plugins, user-pinned plugin entries, and a\n context menu for the remaining panels.\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 display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n width: var(--isl-rail-width);\n pointer-events: auto;\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 transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 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\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-railDivider {\n width: 24px;\n height: 1px;\n margin: 2px 0;\n background: var(--isl-border-soft);\n}\n\n/* ---- Plugin pin menu -------------------------------------------------- */\nbody[data-islands-ui] .isl-railMenu {\n position: fixed;\n z-index: 35;\n box-sizing: border-box;\n width: 240px;\n padding: 6px;\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}\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: 34px;\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 {\n background: var(--isl-hover);\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-railMenuPin {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-tertiary);\n opacity: 0.35;\n}\n\nbody[data-islands-ui] .isl-railMenuPin.is-pinned {\n color: var(--dsw-alias-state-business-primary);\n opacity: 1;\n}\n\nbody[data-islands-ui] .isl-railEmpty {\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. Keep them out of the skin; a plain browser has neither anyway.\n 0.2.2-rc.1 and rc.2 both use the G-tjAW hash. The update entry itself is a\n shell.overlay control, so it is independent of the flat/scroll sidebar\n variant and lives in the base sheet for every supported release. */\nbody[data-islands-ui] .G-tjAW_indicator,\nbody[data-islands-ui] .G-tjAW_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] .kB3qhq_root {\n background: transparent;\n}\n\n/* ---- Expanded: chrome rail + workspace island --------------------------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_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] .kB3qhq_root:not(.kB3qhq_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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_topStrip {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brand {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brandName,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_localBuildBrand {\n display: none;\n}\n\nbody[data-islands-ui] .kB3qhq_brandMark {\n width: 28px;\n height: 28px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSessionContent {\n justify-content: flex-start;\n width: 100%;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession:hover {\n background: var(--isl-hover);\n}\n\n/* The global panel list becomes the rail's primary navigation. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow.kB3qhq_panelActive {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelTitle {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea {\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] .kB3qhq_regionArea {\n --dsh-session-list-edge-inset: 4px;\n}\n\nbody[data-islands-ui] .Kjh-qa_sectionHeader {\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] .Kjh-qa_sectionLabel {\n font-weight: 500;\n}\n\nbody[data-islands-ui] .Kjh-qa_list {\n padding-bottom: 8px;\n}\n\nbody[data-islands-ui] .Kjh-qa_fade {\n background: linear-gradient(to bottom, transparent, var(--isl-surface));\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow,\nbody[data-islands-ui] .JoiKIa_projectRow {\n border-radius: var(--isl-radius-sm);\n padding-inline: 8px;\n}\n\n/* ---- Rail foot: settings gear ------------------------------------------ */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea {\n grid-area: 4 / 1;\n align-items: center;\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_settingsArea,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions {\n width: auto;\n align-items: center;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerRow {\n width: 36px;\n margin: 4px 0 2px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger {\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] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerLabel {\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] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger:hover,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger[aria-expanded='true'] {\n background: var(--isl-hover);\n}\n\n/* Footer actions contributed next to Settings (account launcher, etc.). */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions 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] .kB3qhq_root.kB3qhq_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] .kB3qhq_root.kB3qhq_collapsed .kB3qhq_topStrip {\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_collapsed .kB3qhq_newSession {\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. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_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] .PIRFFq_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] .PIRFFq_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] .PIRFFq_leadingSeat {\n display: none;\n}\n\n/* ---- Search / section chrome inside the island --------------------------- */\nbody[data-islands-ui] .Kjh-qa_searchExpanded {\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] .Kjh-qa_searchExpanded .Kjh-qa_searchButton: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] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_sidebarCol {\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] .PIRFFq_frame[data-sidebar-drawer] .kB3qhq_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] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_centerCol {\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. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_root {\n flex: none;\n width: 36px;\n margin-inline: 0;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_anchor {\n width: 36px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[data-signed-out='false']:not([data-collapsed='true']),\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed)::after {\n display: none !important;\n}\n\n/* ---- Custom rail replaces the shipped brand + panel icon column ---------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\n display: none !important;\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] .JoiKIa_pinIndicator {\n color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator) {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, transparent);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator):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] .JoiKIa_sessionRow.isl-located {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, transparent) !important;\n}\n\n/* ---- 30-conversation.css ---- */\n/* ==========================================================================\n Islands UI · 30 conversation & composer\n ========================================================================== */\n\nbody[data-islands-ui] .kiGsTW_root {\n background: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_header {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] .kiGsTW_headerBlank {\n border-bottom-color: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_scrollBody {\n margin-right: 0;\n}\n\n/* Composer: the one element that should visibly float above the island. */\nbody[data-islands-ui] .JZLxKW_card {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .JZLxKW_cardWorkspaceTrigger:after {\n border-radius: var(--dsw-radius-panel);\n color: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .JZLxKW_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] .kiGsTW_root[data-phase='active'] .kiGsTW_composerSeat,\nbody[data-islands-ui] .kiGsTW_embeddedBody[data-content-phase='active'] .kiGsTW_composerSeat {\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] ._8tPydW_headline {\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] ._8tPydW_workspace {\n border-radius: 999px;\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] ._8tPydW_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] .CuF05a_root {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .CuF05a_root:hover {\n background: var(--isl-surface-sunken);\n}\n\n/* Header chips and breadcrumbs. */\nbody[data-islands-ui] .kiGsTW_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] .kiGsTW_viewTabs {\n gap: 22px;\n}\n\nbody[data-islands-ui] .kiGsTW_tabActive: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 body[data-islands-ui] .kiGsTW_headerUtilities {\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 body[data-islands-ui] .kiGsTW_headerCorner {\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. The top bar owns one persistent toggle\n instead, and closes through the native collapse action. It applies at every\n width: the narrow top bar keeps the same control.\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/* The top bar owns open and close; the island's own expand/collapse\n controls would duplicate it. */\nbody[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\nbody[data-islands-ui] [data-sidebar-right-toggle],\n/* dsh-sidenote's own \"侧边\" header entry is covered by the toggle above. */\nbody[data-islands-ui] ._5KEEsG_headerSide {\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] ._77Pn0W_overlay {\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_mask {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\nbody[data-islands-ui] ._77Pn0W_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] ._77Pn0W_navTitle {\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] ._77Pn0W_nav {\n padding: 4px;\n background: transparent;\n border: 0;\n border-radius: 0;\n}\n\nbody[data-islands-ui] ._77Pn0W_navList {\n gap: 2px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell {\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] ._77Pn0W_navCell:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell._77Pn0W_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] ._77Pn0W_navIcon {\n width: 16px;\n height: 16px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navIcon svg {\n width: 100%;\n height: 100%;\n}\n\nbody[data-islands-ui] ._77Pn0W_header {\n height: 48px;\n padding: 6px 6px 0 8px;\n}\n\nbody[data-islands-ui] ._77Pn0W_options {\n padding: 0 8px 16px;\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_close {\n border-radius: var(--isl-radius-sm);\n}\n\n/* Cards stay white; separation comes from hairlines, not fills. */\nbody[data-islands-ui] ._77Pn0W_options [class*='_card'] {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._77Pn0W_options [class*='_section'] {\n border-radius: var(--isl-radius-md);\n background: transparent;\n}\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 hero cards. */\nbody[data-islands-ui] .XGmX4q_card {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._7lc4_a_balanceCard {\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 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}";
14
+ 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. */\nhtml[data-windows-titlebar] body[data-islands-ui] {\n --isl-chrome-top: var(--dsh-windows-titlebar-height, 32px);\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] .PIRFFq_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] .PIRFFq_bottomRow: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] .PIRFFq_frame[data-rightbar-collapsed] .PIRFFq_centerCol {\n margin-right: calc(-1 * var(--isl-gap));\n}\n\n/* Center column: the conversation island. */\nbody[data-islands-ui] .PIRFFq_centerCol {\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] .PIRFFq_frame {\n background: var(--isl-canvas);\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame:not([data-sidebar-drawer]) .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n backdrop-filter: none;\n}\n\nbody[data-islands-ui] .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_centerCol,\nbody[data-islands-ui] .PIRFFq_centerCol {\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] .PIRFFq_mainPanel {\n background: transparent;\n}\n\n/* Right workbench: only while a pane is open does the column render an island. */\nbody[data-islands-ui] .PIRFFq_rightbarCol {\n background: transparent;\n}\n\nbody[data-islands-ui] .Dv5QdW_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] .PIRFFq_drawerMask {\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] .PIRFFq_overlayLayer {\n z-index: 72;\n }\n}\n\n/* The resize handle is invisible chrome; keep it grabbable but quiet. */\nbody[data-islands-ui] .PIRFFq_handle {\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] .PIRFFq_handle[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] .PIRFFq_centerCol {\n border-radius: var(--isl-radius-lg);\n}\n\n[data-windows-titlebar] body[data-islands-ui] .PIRFFq_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] .PIRFFq_centerCol {\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. */\nbody[data-islands-ui] #root [data-dsh-center-col] {\n margin-bottom: 0;\n}\n\nbody[data-islands-ui] .PIRFFq_centerCol {\n margin-bottom: var(--dsh-sidebar-height, 0px);\n transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui]:has([data-dsh-bottom-panel]:not([class*='Hidden'])) .PIRFFq_centerCol {\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 host 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}\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] .Dv5QdW_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] .PIRFFq_centerCol {\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 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 .PIRFFq_frame:not(\n :has(.Dv5QdW_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 .PIRFFq_frame:has(\n .Dv5QdW_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] .PIRFFq_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. It clears the macOS traffic\n lights, hosts the workspace collapse control, and leaves the content area\n completely free for the islands.\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\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. Keep them out of the skin; a plain browser has neither anyway.\n 0.2.2-rc.1 and rc.2 both use the G-tjAW hash. The update entry itself is a\n shell.overlay control, so it is independent of the flat/scroll sidebar\n variant and lives in the base sheet for every supported release. */\nbody[data-islands-ui] .G-tjAW_indicator,\nbody[data-islands-ui] .G-tjAW_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] .kB3qhq_root {\n background: transparent;\n}\n\n/* ---- Expanded: chrome rail + workspace island --------------------------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_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] .kB3qhq_root:not(.kB3qhq_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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_topStrip {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brand {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brandName,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_localBuildBrand {\n display: none;\n}\n\nbody[data-islands-ui] .kB3qhq_brandMark {\n width: 28px;\n height: 28px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSessionContent {\n justify-content: flex-start;\n width: 100%;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession:hover {\n background: var(--isl-hover);\n}\n\n/* The global panel list becomes the rail's primary navigation. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow.kB3qhq_panelActive {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelTitle {\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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea {\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] .kB3qhq_regionArea {\n --dsh-session-list-edge-inset: 4px;\n}\n\nbody[data-islands-ui] .Kjh-qa_sectionHeader {\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] .Kjh-qa_sectionLabel {\n font-weight: 500;\n}\n\nbody[data-islands-ui] .Kjh-qa_list {\n padding-bottom: 8px;\n}\n\nbody[data-islands-ui] .Kjh-qa_fade {\n background: linear-gradient(to bottom, transparent, var(--isl-surface));\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow,\nbody[data-islands-ui] .JoiKIa_projectRow {\n border-radius: var(--isl-radius-sm);\n padding-inline: 8px;\n}\n\n/* ---- Rail foot: settings gear ------------------------------------------ */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea {\n grid-area: 4 / 1;\n align-items: center;\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_settingsArea,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions {\n width: auto;\n align-items: center;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerRow {\n width: 36px;\n margin: 4px 0 2px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger {\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] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerLabel {\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] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger:hover,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger[aria-expanded='true'] {\n background: var(--isl-hover);\n}\n\n/* Footer actions contributed next to Settings (account launcher, etc.). */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions 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] .kB3qhq_root.kB3qhq_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] .kB3qhq_root.kB3qhq_collapsed .kB3qhq_topStrip {\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_collapsed .kB3qhq_newSession {\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. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_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] .PIRFFq_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] .PIRFFq_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] .PIRFFq_leadingSeat {\n display: none;\n}\n\n/* ---- Search / section chrome inside the island --------------------------- */\nbody[data-islands-ui] .Kjh-qa_searchExpanded {\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] .Kjh-qa_searchExpanded .Kjh-qa_searchButton: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] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_sidebarCol {\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] .PIRFFq_frame[data-sidebar-drawer] .kB3qhq_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] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_centerCol {\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. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_root {\n flex: none;\n width: 36px;\n margin-inline: 0;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_anchor {\n width: 36px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[data-signed-out='false']:not([data-collapsed='true']),\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_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] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed)::after {\n display: none !important;\n}\n\n/* ---- Custom rail replaces the shipped brand + panel icon column ---------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\n display: none !important;\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] .JoiKIa_pinIndicator {\n color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator) {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, transparent);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator):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] .JoiKIa_sessionRow.isl-located {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, transparent) !important;\n}\n\n/* ---- 30-conversation.css ---- */\n/* ==========================================================================\n Islands UI · 30 conversation & composer\n ========================================================================== */\n\nbody[data-islands-ui] .kiGsTW_root {\n background: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_header {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] .kiGsTW_headerBlank {\n border-bottom-color: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_scrollBody {\n margin-right: 0;\n}\n\n/* Composer: the one element that should visibly float above the island. */\nbody[data-islands-ui] .JZLxKW_card {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .JZLxKW_cardWorkspaceTrigger:after {\n border-radius: var(--dsw-radius-panel);\n color: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .JZLxKW_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] .kiGsTW_root[data-phase='active'] .kiGsTW_composerSeat,\nbody[data-islands-ui] .kiGsTW_embeddedBody[data-content-phase='active'] .kiGsTW_composerSeat {\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] ._8tPydW_headline {\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] ._8tPydW_workspace {\n border-radius: 999px;\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] ._8tPydW_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] .CuF05a_root {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .CuF05a_root:hover {\n background: var(--isl-surface-sunken);\n}\n\n/* Header chips and breadcrumbs. */\nbody[data-islands-ui] .kiGsTW_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] .kiGsTW_viewTabs {\n gap: 22px;\n}\n\nbody[data-islands-ui] .kiGsTW_tabActive: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 body[data-islands-ui] .kiGsTW_headerUtilities {\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 body[data-islands-ui] .kiGsTW_headerCorner {\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. The top bar owns one persistent toggle\n instead, and closes through the native collapse action. It applies at every\n width: the narrow top bar keeps the same control.\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/* The top bar owns open and close; the island's own expand/collapse\n controls would duplicate it. */\nbody[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\nbody[data-islands-ui] [data-sidebar-right-toggle],\n/* dsh-sidenote's own \"侧边\" header entry is covered by the toggle above. */\nbody[data-islands-ui] ._5KEEsG_headerSide {\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] ._77Pn0W_overlay {\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_mask {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\nbody[data-islands-ui] ._77Pn0W_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] ._77Pn0W_navTitle {\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] ._77Pn0W_nav {\n padding: 4px;\n background: transparent;\n border: 0;\n border-radius: 0;\n}\n\nbody[data-islands-ui] ._77Pn0W_navList {\n gap: 2px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell {\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] ._77Pn0W_navCell:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell._77Pn0W_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] ._77Pn0W_navIcon {\n width: 16px;\n height: 16px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navIcon svg {\n width: 100%;\n height: 100%;\n}\n\nbody[data-islands-ui] ._77Pn0W_header {\n height: 48px;\n padding: 6px 6px 0 8px;\n}\n\nbody[data-islands-ui] ._77Pn0W_options {\n padding: 0 8px 16px;\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_close {\n border-radius: var(--isl-radius-sm);\n}\n\n/* Cards stay white; separation comes from hairlines, not fills. */\nbody[data-islands-ui] ._77Pn0W_options [class*='_card'] {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._77Pn0W_options [class*='_section'] {\n border-radius: var(--isl-radius-md);\n background: transparent;\n}\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 hero cards. */\nbody[data-islands-ui] .XGmX4q_card {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._7lc4_a_balanceCard {\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 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}";
15
15
  /**
16
16
  * Structure-specific stylesheets keyed by dialect. The base sheet covers
17
17
  * the flat sidebar; releases that change the shell get a variant that is
@@ -71,10 +71,12 @@ window.__ModuleLoader__.load({
71
71
  schedules: '自动化任务',
72
72
  plugins: '插件',
73
73
  settings: '设置',
74
- more: '更多插件',
75
- railTitle: '显示在左侧栏',
76
- noExtras: '暂无其他插件',
77
- pin: '固定到左侧栏',
74
+ railTitle: '左侧栏图标',
75
+ railHint: '点击切换显示;按住图标拖动可排序',
76
+ railShow: '显示在左侧栏',
77
+ railHide: '从左侧栏移除',
78
+ builtIn: 'DSH 内置',
79
+ noExtras: '左侧栏还没有图标',
78
80
  enable: '启用 Islands 界面',
79
81
  enableDesc: '关闭后立即恢复 DSH 默认外观,设置会保留。',
80
82
  accent: '强调色',
@@ -155,10 +157,12 @@ window.__ModuleLoader__.load({
155
157
  schedules: 'Automation',
156
158
  plugins: 'Plugins',
157
159
  settings: 'Settings',
158
- more: 'More plugins',
159
- railTitle: 'Show in the left rail',
160
- noExtras: 'No other plugins',
161
- pin: 'Pin to the left rail',
160
+ railTitle: 'Left rail icons',
161
+ railHint: 'Click to show or hide; drag an icon to reorder',
162
+ railShow: 'Show in the left rail',
163
+ railHide: 'Remove from the left rail',
164
+ builtIn: 'Built into DSH',
165
+ noExtras: 'No icons on the left rail',
162
166
  enable: 'Enable Islands UI',
163
167
  enableDesc: 'Turn off to restore the default appearance immediately; your settings are kept.',
164
168
  accent: 'Accent color',
@@ -237,6 +241,8 @@ window.__ModuleLoader__.load({
237
241
  let workspacesService;
238
242
  let modelDirectories;
239
243
  const RAIL_PIN_KEY = 'dsh-islands-ui:rail-pins';
244
+ /** Order + visibility of every left-rail panel entry. */
245
+ const RAIL_CONFIG_KEY = 'dsh-islands-ui:rail';
240
246
  const ACCENT_KEY = 'dsh-islands-ui:accent';
241
247
  const DEFAULT_ACCENT = '#4176e6';
242
248
  const ACCENT_PRESETS = ['#4176e6', '#7c5cff', '#1f9d63', '#e07a2e', '#d94f8a', '#d64545'];
@@ -635,11 +641,46 @@ window.__ModuleLoader__.load({
635
641
  }
636
642
  }
637
643
 
638
- function writeRailPins(pins) {
644
+ function uniqueRailIds(values) {
645
+ const seen = new Set();
646
+ const result = [];
647
+ for (const value of values) {
648
+ if (typeof value !== 'string' || value === '' || seen.has(value)) continue;
649
+ seen.add(value);
650
+ result.push(value);
651
+ }
652
+ return result;
653
+ }
654
+
655
+ /**
656
+ * The rail shows every panel entry by default and remembers the user's
657
+ * order and the entries they hid. Configurations written by 1.0.x only
658
+ * stored pins, so they are read once and migrated into an order prefix.
659
+ */
660
+ function readRailConfig() {
661
+ try {
662
+ const raw = window.localStorage.getItem(RAIL_CONFIG_KEY);
663
+ if (raw !== null) {
664
+ const parsed = JSON.parse(raw);
665
+ return {
666
+ order: uniqueRailIds(Array.isArray(parsed?.order) ? parsed.order : []),
667
+ hidden: uniqueRailIds(Array.isArray(parsed?.hidden) ? parsed.hidden : []),
668
+ };
669
+ }
670
+ } catch {
671
+ /* fall through to the legacy pin list */
672
+ }
673
+ return { order: uniqueRailIds(['schedules', 'plugins', ...readRailPins()]), hidden: [] };
674
+ }
675
+
676
+ function writeRailConfig(config) {
639
677
  try {
640
- window.localStorage.setItem(RAIL_PIN_KEY, JSON.stringify(pins));
678
+ window.localStorage.setItem(RAIL_CONFIG_KEY, JSON.stringify(config));
679
+ // The legacy key only seeds the first migration; drop it once the new
680
+ // configuration exists so clearing that key really resets the rail.
681
+ window.localStorage.removeItem(RAIL_PIN_KEY);
641
682
  } catch {
642
- /* private mode: keep the session pins only. */
683
+ /* private mode: keep the arrangement for this session only. */
643
684
  }
644
685
  }
645
686
 
@@ -667,11 +708,14 @@ window.__ModuleLoader__.load({
667
708
  h('path', { d: 'M7 3v4M13 3v4M5 7h10v3a5 5 0 0 1-10 0V7ZM10 15v3', stroke: 'currentColor', strokeWidth: 1.4, strokeLinecap: 'round', strokeLinejoin: 'round' }));
668
709
  }
669
710
 
670
- function EllipsisGlyph() {
671
- return h('svg', { width: 18, height: 18, viewBox: '0 0 20 20', fill: 'currentColor', 'aria-hidden': true },
672
- h('circle', { cx: 5, cy: 10, r: 1.4 }),
673
- h('circle', { cx: 10, cy: 10, r: 1.4 }),
674
- h('circle', { cx: 15, cy: 10, r: 1.4 }));
711
+ function CheckGlyph() {
712
+ return h('svg', { width: 14, height: 14, viewBox: '0 0 16 16', fill: 'none', 'aria-hidden': true },
713
+ h('path', { d: 'm3 8.4 3.2 3.2L13 4.8', stroke: 'currentColor', strokeWidth: 1.8, strokeLinecap: 'round', strokeLinejoin: 'round' }));
714
+ }
715
+
716
+ function PlusGlyph() {
717
+ return h('svg', { width: 18, height: 18, viewBox: '0 0 20 20', fill: 'none', 'aria-hidden': true },
718
+ h('path', { d: 'M10 4v12M4 10h12', stroke: 'currentColor', strokeWidth: 1.5, strokeLinecap: 'round' }));
675
719
  }
676
720
 
677
721
  function GearGlyph() {
@@ -827,60 +871,88 @@ window.__ModuleLoader__.load({
827
871
  }
828
872
 
829
873
  /**
830
- * Left rail: workspace home, automation, plugins, user-pinned plugins and
831
- * a context menu for the rest.
874
+ * Left rail: the workspace home plus every panel launcher registered in
875
+ * `sidebar.panellist`. Entries are shown directly, reordered by dragging,
876
+ * and shown or hidden from the right-click management menu.
832
877
  */
833
878
  function IslandsRail({ usePanelInfo }) {
834
879
  const active = usePanelInfo((info) => info.activePanelId ?? null);
835
- const [pins, setPins] = React.useState(readRailPins);
836
- const [open, setOpen] = React.useState(false);
837
- const [position, setPosition] = React.useState(null);
880
+ const [config, setConfig] = React.useState(readRailConfig);
881
+ const [menu, setMenu] = React.useState(null);
882
+ const [dragId, setDragId] = React.useState(null);
883
+ const [ripples, setRipples] = React.useState([]);
884
+ const rippleSeq = React.useRef(0);
885
+ const [, refreshEntries] = React.useState(0);
838
886
  const railRef = React.useRef(null);
839
887
  const menuRef = React.useRef(null);
888
+ const itemRefs = React.useRef(new Map());
889
+ const configRef = React.useRef(config);
890
+ const dragRef = React.useRef(null);
891
+ const suppressClickRef = React.useRef(false);
840
892
  const lang = useLocale() ?? 'en';
841
893
  const copy = String(lang).toLowerCase().startsWith('zh') ? COPY.zh : COPY.en;
894
+ configRef.current = config;
842
895
 
843
896
  const allEntries = (() => {
844
897
  try {
845
- return (slotsService?.entriesOfSlot('sidebar.panellist') ?? []).map((entry) => ({
846
- id: entry.options.id,
847
- order: entry.options.order ?? 0,
848
- label: typeof entry.options.label === 'function' ? entry.options.label() : entry.options.label,
849
- registrant: entry.registrant,
850
- component: entry.component,
851
- }));
898
+ const seen = new Set();
899
+ return (slotsService?.entriesOfSlot('sidebar.panellist') ?? []).flatMap((entry) => {
900
+ const id = entry.options.id;
901
+ if (typeof id !== 'string' || id === '' || seen.has(id)) return [];
902
+ seen.add(id);
903
+ return [{
904
+ id,
905
+ order: entry.options.order ?? 0,
906
+ label: typeof entry.options.label === 'function' ? entry.options.label() : entry.options.label,
907
+ registrant: entry.registrant,
908
+ component: entry.component,
909
+ }];
910
+ });
852
911
  } catch {
853
912
  return [];
854
913
  }
855
914
  })();
856
915
 
857
916
  const byId = new Map(allEntries.map((entry) => [entry.id, entry]));
858
- const entries = allEntries.filter((entry) => entry.id !== 'plugins' && entry.id !== 'schedules');
859
- const pinned = pins.filter((id) => entries.some((entry) => entry.id === id));
917
+ const storedIndex = new Map(config.order.map((id, index) => [id, index]));
918
+ // The two shipped panels lead on a fresh install; every other launcher
919
+ // follows registration order until the user drags it somewhere else.
920
+ const defaultIds = [
921
+ ...['schedules', 'plugins'].filter((id) => byId.has(id)),
922
+ ...allEntries.map((entry) => entry.id).filter((id) => id !== 'schedules' && id !== 'plugins'),
923
+ ];
924
+ const defaultIndex = new Map(defaultIds.map((id, index) => [id, index]));
925
+ const orderedEntries = [...allEntries].sort((left, right) => {
926
+ const leftIndex = storedIndex.get(left.id);
927
+ const rightIndex = storedIndex.get(right.id);
928
+ if (leftIndex !== undefined || rightIndex !== undefined) {
929
+ if (leftIndex === undefined) return 1;
930
+ if (rightIndex === undefined) return -1;
931
+ if (leftIndex !== rightIndex) return leftIndex - rightIndex;
932
+ }
933
+ return (defaultIndex.get(left.id) ?? 0) - (defaultIndex.get(right.id) ?? 0);
934
+ });
935
+ const visible = orderedEntries.filter((entry) => !config.hidden.includes(entry.id));
860
936
 
861
- const iconFor = (id, size) => {
862
- const entry = byId.get(id);
863
- if (entry?.component !== undefined) {
864
- try {
865
- return h(entry.component, { size, active: active === id });
866
- } catch {
867
- /* fall back to the generic glyph */
868
- }
937
+ // A plugin can register a panel after the shell is already mounted.
938
+ React.useEffect(() => {
939
+ try {
940
+ const unsubscribe = slotsService?.subscribe?.('sidebar.panellist', () => refreshEntries((value) => value + 1));
941
+ return typeof unsubscribe === 'function' ? unsubscribe : undefined;
942
+ } catch {
943
+ return undefined;
869
944
  }
870
- if (id === 'schedules') return h(ClockGlyph);
871
- if (id === 'plugins') return h(PluginsGlyph);
872
- return h(PlugGlyph);
873
- };
945
+ }, []);
874
946
 
875
947
  React.useEffect(() => {
876
- if (!open) return;
948
+ if (menu === null) return;
877
949
  const onDown = (event) => {
878
950
  if (railRef.current?.contains(event.target) === true) return;
879
951
  if (menuRef.current?.contains(event.target) === true) return;
880
- setOpen(false);
952
+ setMenu(null);
881
953
  };
882
954
  const onKey = (event) => {
883
- if (event.key === 'Escape') setOpen(false);
955
+ if (event.key === 'Escape') setMenu(null);
884
956
  };
885
957
  document.addEventListener('mousedown', onDown, true);
886
958
  document.addEventListener('keydown', onKey, true);
@@ -888,22 +960,88 @@ window.__ModuleLoader__.load({
888
960
  document.removeEventListener('mousedown', onDown, true);
889
961
  document.removeEventListener('keydown', onKey, true);
890
962
  };
891
- }, [open]);
963
+ }, [menu]);
892
964
 
893
- const openMenu = (anchor) => {
894
- const rect = (anchor ?? railRef.current)?.getBoundingClientRect();
895
- if (!rect) return;
896
- setPosition({ left: rect.right + 8, top: Math.min(rect.top, window.innerHeight - 260) });
897
- setOpen(true);
965
+ React.useEffect(
966
+ () => () => {
967
+ dragRef.current?.detach?.();
968
+ dragRef.current = null;
969
+ },
970
+ [],
971
+ );
972
+
973
+ const iconFor = (id, size) => {
974
+ const entry = byId.get(id);
975
+ if (entry?.component !== undefined) {
976
+ try {
977
+ return h(entry.component, { size, active: active === id });
978
+ } catch {
979
+ /* fall back to the generic glyph */
980
+ }
981
+ }
982
+ if (id === 'schedules') return h(ClockGlyph);
983
+ if (id === 'plugins') return h(PluginsGlyph);
984
+ return h(PlugGlyph);
985
+ };
986
+
987
+ // Official panels are registered by the bundled web-client fiber, whose
988
+ // internal name is `wc`; that code means nothing in the UI. Third-party
989
+ // entries keep their package name so the owner is still recognizable.
990
+ const ownerFor = (registrant) => {
991
+ if (typeof registrant !== 'string') return undefined;
992
+ const code = registrant.trim();
993
+ if (code === '') return undefined;
994
+ // The bundled client reports the fiber as `WC` (older bundles may use
995
+ // lower case); both are the same internal name, not a plugin name.
996
+ return code.toLowerCase() === 'wc' ? copy.builtIn : code;
997
+ };
998
+
999
+ const labelFor = (id) => {
1000
+ const entry = byId.get(id);
1001
+ const label = entry?.label ?? id;
1002
+ const owner = ownerFor(entry?.registrant);
1003
+ return owner === undefined ? label : `${label} · ${owner}`;
898
1004
  };
899
1005
 
900
- const togglePin = (id) => {
901
- const next = pins.includes(id) ? pins.filter((value) => value !== id) : [...pins, id];
902
- setPins(next);
903
- writeRailPins(next);
1006
+ const openMenuAt = (x, y, contextId) => {
1007
+ const width = 248;
1008
+ const height = Math.min(window.innerHeight - 16, 76 + orderedEntries.length * 36);
1009
+ const left = Math.max(8, Math.min(x, window.innerWidth - width - 8));
1010
+ const top = y + height + 8 <= window.innerHeight ? y : Math.max(8, y - height);
1011
+ setMenu({ left, top, contextId });
1012
+ };
1013
+
1014
+ const toggleHidden = (id) => {
1015
+ const current = configRef.current;
1016
+ const hidden = current.hidden.includes(id)
1017
+ ? current.hidden.filter((value) => value !== id)
1018
+ : [...current.hidden, id];
1019
+ const next = { order: current.order, hidden };
1020
+ configRef.current = next;
1021
+ setConfig(next);
1022
+ writeRailConfig(next);
1023
+ };
1024
+
1025
+ const addRipple = (event) => {
1026
+ const button = event.currentTarget;
1027
+ if (button === null) return;
1028
+ const rect = button.getBoundingClientRect();
1029
+ const size = Math.max(rect.width, rect.height) * 2.4;
1030
+ // Keyboard activation (Enter/Space) reports detail 0 and no pointer
1031
+ // position; centre the ripple on the tile instead.
1032
+ const centered = event.detail === 0 || (event.clientX === 0 && event.clientY === 0);
1033
+ const x = centered ? rect.width / 2 : event.clientX - rect.left;
1034
+ const y = centered ? rect.height / 2 : event.clientY - rect.top;
1035
+ const key = `ripple-${rippleSeq.current++}`;
1036
+ setRipples((values) => [...values, { key, x, y, size }]);
1037
+ };
1038
+
1039
+ const removeRipple = (key) => {
1040
+ setRipples((values) => values.filter((value) => value.key !== key));
904
1041
  };
905
1042
 
906
1043
  const select = (id) => {
1044
+ setMenu(null);
907
1045
  // The home button is the workspace drawer's opener in the narrow
908
1046
  // layout; on desktop it returns to the conversation as before.
909
1047
  if (id === null) {
@@ -916,22 +1054,176 @@ window.__ModuleLoader__.load({
916
1054
  layoutService?.selectPanel(id);
917
1055
  };
918
1056
 
919
- const button = (id, label, glyph, extraClass) =>
920
- h(
1057
+ const autoScroll = (clientY) => {
1058
+ const rail = railRef.current;
1059
+ if (rail === null) return;
1060
+ const rect = rail.getBoundingClientRect();
1061
+ if (clientY < rect.top + 32) rail.scrollTop -= 12;
1062
+ else if (clientY > rect.bottom - 32) rail.scrollTop += 12;
1063
+ };
1064
+
1065
+ const beforeIdAt = (clientY, id) => {
1066
+ for (const entry of visible) {
1067
+ if (entry.id === id) continue;
1068
+ const node = itemRefs.current.get(entry.id);
1069
+ if (node === undefined) continue;
1070
+ const rect = node.getBoundingClientRect();
1071
+ if (clientY < rect.top + rect.height / 2) return entry.id;
1072
+ }
1073
+ return null;
1074
+ };
1075
+
1076
+ const moveEntryBefore = (id, beforeId) => {
1077
+ const current = configRef.current;
1078
+ const baseOrder = orderedEntries.map((entry) => entry.id);
1079
+ const currentOrder = uniqueRailIds([...current.order, ...baseOrder]);
1080
+ const without = currentOrder.filter((value) => value !== id);
1081
+ let index = beforeId === null ? without.length : without.indexOf(beforeId);
1082
+ if (index === -1) index = without.length;
1083
+ without.splice(index, 0, id);
1084
+ if (without.length === currentOrder.length && without.every((value, at) => value === currentOrder[at])) return;
1085
+ const next = { order: without, hidden: current.hidden };
1086
+ configRef.current = next;
1087
+ setConfig(next);
1088
+ };
1089
+
1090
+ const beginDrag = (event, id) => {
1091
+ if (event.button !== 0 || dragRef.current !== null) return;
1092
+ const pointerId = event.pointerId;
1093
+ const startX = event.clientX;
1094
+ const startY = event.clientY;
1095
+ const source = event.currentTarget;
1096
+ const origin = source.getBoundingClientRect();
1097
+ const state = {
1098
+ id,
1099
+ active: false,
1100
+ detach: null,
1101
+ ghost: null,
1102
+ offsetX: startX - origin.left,
1103
+ offsetY: startY - origin.top,
1104
+ };
1105
+ const positionGhost = (x, y) => {
1106
+ if (state.ghost === null) return;
1107
+ state.ghost.style.transform = `translate3d(${x - state.offsetX}px, ${y - state.offsetY}px, 0)`;
1108
+ };
1109
+ const detach = () => {
1110
+ window.removeEventListener('pointermove', onMove);
1111
+ window.removeEventListener('pointerup', onUp, true);
1112
+ window.removeEventListener('pointercancel', onUp, true);
1113
+ if (state.ghost !== null) {
1114
+ state.ghost.remove();
1115
+ state.ghost = null;
1116
+ }
1117
+ };
1118
+ const onMove = (moveEvent) => {
1119
+ if (moveEvent.pointerId !== pointerId) return;
1120
+ if (!state.active) {
1121
+ if (Math.hypot(moveEvent.clientX - startX, moveEvent.clientY - startY) < 4) return;
1122
+ state.active = true;
1123
+ suppressClickRef.current = true;
1124
+ setDragId(id);
1125
+ setMenu(null);
1126
+ // Clone the rendered icon so the ghost keeps the exact glyph and
1127
+ // size of the row, then park it under the pointer at the grab
1128
+ // offset. It must never intercept pointer events.
1129
+ const ghost = source.cloneNode(true);
1130
+ ghost.className = 'isl-railGhost';
1131
+ ghost.removeAttribute('data-rail-id');
1132
+ ghost.removeAttribute('data-draggable');
1133
+ ghost.removeAttribute('title');
1134
+ ghost.removeAttribute('aria-label');
1135
+ ghost.removeAttribute('aria-pressed');
1136
+ ghost.setAttribute('aria-hidden', 'true');
1137
+ ghost.tabIndex = -1;
1138
+ state.ghost = ghost;
1139
+ positionGhost(moveEvent.clientX, moveEvent.clientY);
1140
+ document.body.appendChild(ghost);
1141
+ }
1142
+ moveEvent.preventDefault();
1143
+ positionGhost(moveEvent.clientX, moveEvent.clientY);
1144
+ autoScroll(moveEvent.clientY);
1145
+ moveEntryBefore(id, beforeIdAt(moveEvent.clientY, id));
1146
+ };
1147
+ const onUp = (upEvent) => {
1148
+ if (upEvent.pointerId !== pointerId) return;
1149
+ detach();
1150
+ dragRef.current = null;
1151
+ if (!state.active) return;
1152
+ upEvent.preventDefault();
1153
+ setDragId(null);
1154
+ writeRailConfig(configRef.current);
1155
+ // The click that follows a drag must not select the icon; clear the
1156
+ // guard after the browser has dispatched it.
1157
+ window.setTimeout(() => {
1158
+ suppressClickRef.current = false;
1159
+ }, 0);
1160
+ };
1161
+ state.detach = detach;
1162
+ dragRef.current = state;
1163
+ window.addEventListener('pointermove', onMove, { passive: false });
1164
+ window.addEventListener('pointerup', onUp, true);
1165
+ window.addEventListener('pointercancel', onUp, true);
1166
+ };
1167
+
1168
+ const button = (id, label, glyph, extraClass, draggable = false) => {
1169
+ // The house is a navigation trigger (conversation / workspace drawer),
1170
+ // not a destination in the panel model. It therefore never carries the
1171
+ // persistent selected fill; hover and focus still show that it is live.
1172
+ const selected = id !== null && active === id;
1173
+ // `dragId` is null while idle, so the house (id null) must not match it.
1174
+ const dragging = id !== null && dragId === id;
1175
+ return h(
921
1176
  'button',
922
1177
  {
923
1178
  type: 'button',
924
- className: 'isl-railBtn' + (active === id ? ' is-active' : '') + (extraClass ? ` ${extraClass}` : ''),
1179
+ key: id ?? 'workspace',
1180
+ ref: draggable
1181
+ ? (node) => {
1182
+ if (node === null) itemRefs.current.delete(id);
1183
+ else itemRefs.current.set(id, node);
1184
+ }
1185
+ : undefined,
1186
+ className:
1187
+ 'isl-railBtn' +
1188
+ (selected ? ' is-active' : '') +
1189
+ (dragging ? ' is-dragging' : '') +
1190
+ (extraClass ? ` ${extraClass}` : ''),
925
1191
  title: label,
926
1192
  'aria-label': label,
927
- 'aria-pressed': active === id,
1193
+ 'aria-pressed': id === null ? undefined : selected,
928
1194
  'data-rail-id': id ?? 'workspace',
929
- onClick: () => select(id),
1195
+ 'data-draggable': draggable ? '' : undefined,
1196
+ onClick: (event) => {
1197
+ if (suppressClickRef.current) {
1198
+ suppressClickRef.current = false;
1199
+ return;
1200
+ }
1201
+ if (id === null) addRipple(event);
1202
+ select(id);
1203
+ },
1204
+ onPointerDown: draggable ? (event) => beginDrag(event, id) : undefined,
930
1205
  },
931
1206
  glyph,
1207
+ id === null
1208
+ ? ripples.map((ripple) =>
1209
+ h('span', {
1210
+ key: ripple.key,
1211
+ className: 'isl-railRipple',
1212
+ 'aria-hidden': true,
1213
+ style: {
1214
+ left: `${ripple.x}px`,
1215
+ top: `${ripple.y}px`,
1216
+ width: `${ripple.size}px`,
1217
+ height: `${ripple.size}px`,
1218
+ },
1219
+ onAnimationEnd: () => removeRipple(ripple.key),
1220
+ }),
1221
+ )
1222
+ : null,
932
1223
  );
1224
+ };
933
1225
 
934
- const menu = open && position !== null
1226
+ const menuNode = menu !== null
935
1227
  ? ReactDOM.createPortal(
936
1228
  h(
937
1229
  'div',
@@ -939,41 +1231,46 @@ window.__ModuleLoader__.load({
939
1231
  ref: menuRef,
940
1232
  className: 'isl-railMenu',
941
1233
  role: 'menu',
942
- style: { left: position.left, top: position.top },
1234
+ style: { left: menu.left, top: menu.top },
1235
+ onContextMenu: (event) => event.preventDefault(),
943
1236
  },
944
1237
  h('div', { className: 'isl-railMenuTitle' }, copy.railTitle),
945
- entries.length === 0
946
- ? h('div', { className: 'isl-railEmpty' }, copy.noExtras)
947
- : entries.map((entry) =>
948
- h(
1238
+ orderedEntries.length === 0
1239
+ ? h('div', { className: 'isl-railMenuEmpty' }, copy.noExtras)
1240
+ : orderedEntries.map((entry) => {
1241
+ const shown = !config.hidden.includes(entry.id);
1242
+ const owner = ownerFor(entry.registrant);
1243
+ return h(
949
1244
  'button',
950
1245
  {
951
1246
  type: 'button',
952
1247
  key: entry.id,
953
- className: 'isl-railMenuRow',
1248
+ className:
1249
+ 'isl-railMenuRow' +
1250
+ (menu.contextId === entry.id ? ' is-current' : '') +
1251
+ (shown ? '' : ' is-hidden'),
954
1252
  role: 'menuitemcheckbox',
955
- 'aria-checked': pins.includes(entry.id),
956
- onClick: () => togglePin(entry.id),
1253
+ 'aria-checked': shown,
1254
+ title: shown ? copy.railHide : copy.railShow,
1255
+ onClick: () => toggleHidden(entry.id),
957
1256
  },
958
1257
  h('span', { className: 'isl-railMenuIcon' }, iconFor(entry.id, 16)),
959
1258
  h(
960
1259
  'span',
961
1260
  { className: 'isl-railMenuText' },
962
1261
  h('span', { className: 'isl-railMenuLabel' }, entry.label ?? entry.id),
963
- entry.registrant === undefined
1262
+ owner === undefined
964
1263
  ? null
965
- : h('span', { className: 'isl-railMenuSub' }, entry.registrant),
1264
+ : h('span', { className: 'isl-railMenuSub' }, owner),
966
1265
  ),
967
1266
  h(
968
1267
  'span',
969
- {
970
- className: 'isl-railMenuPin' + (pins.includes(entry.id) ? ' is-pinned' : ''),
971
- title: copy.pin,
972
- },
973
- h(PinGlyph),
1268
+ { className: 'isl-railMenuCheck' + (shown ? ' is-on' : ''), 'aria-hidden': true },
1269
+ shown ? h(CheckGlyph) : null,
974
1270
  ),
975
- ),
976
- ),
1271
+ );
1272
+ }),
1273
+ h('div', { className: 'isl-railMenuHint' }, copy.railHint),
977
1274
  ),
978
1275
  document.body,
979
1276
  )
@@ -983,39 +1280,43 @@ window.__ModuleLoader__.load({
983
1280
  'nav',
984
1281
  {
985
1282
  ref: railRef,
986
- className: 'isl-rail',
1283
+ className: 'isl-rail' + (dragId === null ? '' : ' is-dragging'),
987
1284
  'aria-label': copy.workspace,
988
1285
  onContextMenu: (event) => {
989
1286
  event.preventDefault();
990
- openMenu(event.currentTarget);
1287
+ const target = event.target instanceof Element ? event.target.closest('[data-rail-id]') : null;
1288
+ const id = target?.getAttribute('data-rail-id') ?? null;
1289
+ const anchor = target?.getBoundingClientRect() ?? railRef.current?.getBoundingClientRect();
1290
+ // Shift+F10 and the context-menu key dispatch a contextmenu event
1291
+ // without a pointer position; anchor that menu on the focused row.
1292
+ const point = event.clientX === 0 && event.clientY === 0
1293
+ ? { x: (anchor?.right ?? 48) + 8, y: anchor?.top ?? 8 }
1294
+ : { x: event.clientX, y: event.clientY };
1295
+ openMenuAt(point.x, point.y, id === 'workspace' ? null : id);
991
1296
  },
992
1297
  },
993
1298
  button(null, copy.workspace, h(HouseGlyph)),
994
- button('schedules', copy.schedules, iconFor('schedules', 18)),
995
- button('plugins', copy.plugins, iconFor('plugins', 18)),
996
- pinned.map((id) => {
997
- const entry = entries.find((value) => value.id === id);
998
- const label = entry?.registrant === undefined ? entry?.label ?? id : `${entry?.label ?? id} · ${entry.registrant}`;
999
- return button(id, label, iconFor(id, 18));
1000
- }),
1001
1299
  h('div', { className: 'isl-railDivider', 'aria-hidden': true }),
1002
- h(
1003
- 'button',
1004
- {
1005
- type: 'button',
1006
- className: 'isl-railBtn is-more' + (open ? ' is-active' : ''),
1007
- title: copy.more,
1008
- 'aria-label': copy.more,
1009
- 'aria-haspopup': 'menu',
1010
- 'aria-expanded': open,
1011
- onClick: (event) => {
1012
- if (open) setOpen(false);
1013
- else openMenu(event.currentTarget);
1014
- },
1015
- },
1016
- h(EllipsisGlyph),
1017
- ),
1018
- menu,
1300
+ visible.map((entry) => button(entry.id, labelFor(entry.id), iconFor(entry.id, 18), null, true)),
1301
+ visible.length === 0
1302
+ ? h(
1303
+ 'button',
1304
+ {
1305
+ type: 'button',
1306
+ className: 'isl-railBtn isl-railAdd',
1307
+ title: copy.railTitle,
1308
+ 'aria-label': copy.railTitle,
1309
+ 'aria-haspopup': 'menu',
1310
+ 'aria-expanded': menu !== null,
1311
+ onClick: (event) => {
1312
+ const rect = event.currentTarget.getBoundingClientRect();
1313
+ openMenuAt(rect.right + 8, rect.top, null);
1314
+ },
1315
+ },
1316
+ h(PlusGlyph),
1317
+ )
1318
+ : null,
1319
+ menuNode,
1019
1320
  );
1020
1321
  }
1021
1322
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-islands-ui",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Islands UI — a floating-island interface skin for DeepSeek Harness: rounded panels, a persistent left rail, a pinned-session shelf and an adjustable accent color.",
5
5
  "icon": "./assets/icon-180.png",
6
6
  "type": "module",