dsh-islands-ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js CHANGED
@@ -11,12 +11,31 @@ 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/* ---- 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 ========================================================================== */\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: 32;\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],\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.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}";
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/* ---- 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.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
  const ATTRIBUTE = 'data-islands-ui';
17
17
  const STORAGE_KEY = 'dsh-islands-ui:enabled';
18
18
  const WORKSPACE_ATTR = 'data-islands-workspace-collapsed';
19
+ /** Escape hatch, session scoped so the next launch re-runs the check. */
20
+ const FORCE_KEY = 'dsh-islands-ui:force';
21
+ /**
22
+ * Layout anchors every Islands rule is written against. They do not exist
23
+ * when `apply()` runs (the shell mounts afterwards), so the gate waits for
24
+ * the frame and only then decides whether this build still matches.
25
+ */
26
+ const REQUIRED_ANCHORS = ['.PIRFFq_frame', '.PIRFFq_centerCol'];
27
+ const SIDEBAR_COLUMN = '.PIRFFq_sidebarCol';
28
+ const SIDEBAR_ROOT = '.kB3qhq_root';
29
+ /** No shell content at all after this long: the build is unusable. */
30
+ const COMPAT_TIMEOUT_MS = 6000;
31
+ /** Content mounted but the frame anchor never showed up: rename, not slowness. */
32
+ const COMPAT_CONTENT_GRACE_MS = 1200;
19
33
  let animateTimer;
34
+ let skinRegistrar = null;
35
+ let publishRightbarWidth = null;
36
+ let activated = false;
37
+ let compatState = { status: 'checking', missing: [], forced: false };
38
+ const compatListeners = new Set();
20
39
 
21
40
  /** Copy for the preference row; the row is the only user-facing string. */
22
41
  const COPY = {
@@ -53,6 +72,17 @@ window.__ModuleLoader__.load({
53
72
  pick: '选择模型',
54
73
  empty: '没有可用模型',
55
74
  failed: '切换失败',
75
+ compatTitle: 'Islands UI 已自动关闭',
76
+ compatBody: '当前 DSH 构建的界面结构与插件不匹配,皮肤已回退到默认外观,以免出现双栏重叠或控件遮挡。',
77
+ compatView: '查看插件设置',
78
+ compatMissing: '缺失的界面锚点',
79
+ compatBannerTitle: '皮肤已自动停用:界面结构不匹配',
80
+ compatBannerBody:
81
+ 'Islands UI 的样式写在当前 DSH 构建的类名和结构上。升级后的 DSH 改掉了这些锚点,浮岛布局、原生导航隐藏和工作区折叠都会失效,因此插件没有启用皮肤,DSH 保持默认外观。',
82
+ compatFix: '处理方式:把 Islands UI 更新到适配当前 DSH 的版本,或回退 DSH。若确认界面正常,可临时强制启用(下次启动会重新检测)。',
83
+ compatForce: '仍然启用',
84
+ compatForced: '已强制启用,本次会话跳过自动检测。',
85
+ compatDismiss: '关闭提示',
56
86
  },
57
87
  en: {
58
88
  title: 'Islands interface',
@@ -88,6 +118,19 @@ window.__ModuleLoader__.load({
88
118
  pick: 'Select model',
89
119
  empty: 'No models available',
90
120
  failed: 'Selection failed',
121
+ compatTitle: 'Islands UI turned itself off',
122
+ compatBody:
123
+ 'This DSH build no longer matches the plugin, so the skin fell back to the default look instead of overlapping panels.',
124
+ compatView: 'Open plugin settings',
125
+ compatMissing: 'Missing interface anchors',
126
+ compatBannerTitle: 'Skin disabled: interface structure changed',
127
+ compatBannerBody:
128
+ 'Islands UI styles itself against the class names and structure of the DSH build it ships for. This build changed those anchors, so the island layout, the hidden native navigation and the workspace collapse would all break. The skin therefore stayed off and DSH keeps its default look.',
129
+ compatFix:
130
+ 'Update Islands UI to a release that matches this DSH build, or roll DSH back. If the interface looks fine, you can enable it anyway for this session.',
131
+ compatForce: 'Enable anyway',
132
+ compatForced: 'Enabled manually; automatic detection is skipped for this session.',
133
+ compatDismiss: 'Dismiss',
91
134
  },
92
135
  };
93
136
 
@@ -167,6 +210,53 @@ window.__ModuleLoader__.load({
167
210
  return React.useSyncExternalStore(subscribe, getSnapshot);
168
211
  }
169
212
 
213
+ function setCompat(next) {
214
+ compatState = next;
215
+ for (const listener of compatListeners) listener();
216
+ }
217
+
218
+ function subscribeCompat(listener) {
219
+ compatListeners.add(listener);
220
+ return () => compatListeners.delete(listener);
221
+ }
222
+
223
+ function getCompatSnapshot() {
224
+ return compatState;
225
+ }
226
+
227
+ function useCompat() {
228
+ return React.useSyncExternalStore(subscribeCompat, getCompatSnapshot);
229
+ }
230
+
231
+ function currentCopy() {
232
+ try {
233
+ return String(localeService?.getSnapshot?.().active ?? 'en').toLowerCase().startsWith('zh')
234
+ ? COPY.zh
235
+ : COPY.en;
236
+ } catch {
237
+ return COPY.en;
238
+ }
239
+ }
240
+
241
+ function isForced() {
242
+ try {
243
+ return window.sessionStorage.getItem(FORCE_KEY) === '1';
244
+ } catch {
245
+ return false;
246
+ }
247
+ }
248
+
249
+ /** Which anchors of the running DSH build are gone. */
250
+ function missingAnchors() {
251
+ const missing = REQUIRED_ANCHORS.filter((selector) => document.querySelector(selector) === null);
252
+ // A sidebar column without its root class means the sidebar was rebuilt
253
+ // under another name; the skin would render a second rail beside it.
254
+ if (document.querySelector(SIDEBAR_COLUMN) !== null && document.querySelector(SIDEBAR_ROOT) === null) {
255
+ missing.push(SIDEBAR_ROOT);
256
+ }
257
+ return missing;
258
+ }
259
+
170
260
  function readAccent() {
171
261
  try {
172
262
  const stored = window.localStorage.getItem(ACCENT_KEY);
@@ -337,7 +427,32 @@ window.__ModuleLoader__.load({
337
427
  );
338
428
  }
339
429
 
340
- function openSettings() {
430
+ /**
431
+ * Best effort selection of one settings section once the dialog is up. The
432
+ * settings navigation has no service of its own, so the row is matched by
433
+ * its label inside the dialog and simply skipped when it is not there.
434
+ */
435
+ function revealSettingsSection(label) {
436
+ if (typeof label !== 'string' || label === '') return;
437
+ let attempts = 0;
438
+ const tick = () => {
439
+ attempts += 1;
440
+ const scope = document.querySelector('[role="dialog"]') ?? document;
441
+ const cells = [
442
+ ...scope.querySelectorAll('button, a, [role="tab"], [role="option"], [class*="navCell"]'),
443
+ ];
444
+ const target = cells.find((cell) => (cell.textContent ?? '').trim() === label);
445
+ if (target instanceof HTMLElement) {
446
+ target.click();
447
+ return;
448
+ }
449
+ if (attempts < 12) window.setTimeout(tick, 120);
450
+ };
451
+ window.setTimeout(tick, 140);
452
+ }
453
+
454
+ function openSettings(options) {
455
+ const section = options?.section;
341
456
  // The account launcher owns the Settings row; clicking that row is the
342
457
  // reliable path on desktop (configurable shortcuts go through the native
343
458
  // keyboard bridge, so a synthetic keydown never reaches them).
@@ -349,6 +464,7 @@ window.__ModuleLoader__.load({
349
464
  ...document.querySelectorAll('[role="menu"] [role="menuitem"], [role="menu"] [role="menuitemradio"], [role="menu"] button, [role="menu"] a'),
350
465
  ].find((element) => /设置|Settings|偏好|Preferences/i.test(element.textContent ?? ''));
351
466
  if (item instanceof HTMLElement) item.click();
467
+ revealSettingsSection(section);
352
468
  }, 60);
353
469
  return;
354
470
  }
@@ -374,6 +490,7 @@ window.__ModuleLoader__.load({
374
490
  } catch {
375
491
  /* ignore */
376
492
  }
493
+ revealSettingsSection(section);
377
494
  }
378
495
 
379
496
  function LocateGlyph() {
@@ -990,29 +1107,69 @@ window.__ModuleLoader__.load({
990
1107
  return open;
991
1108
  }
992
1109
 
993
- /** Always-visible right sidebar toggle; drives the native open/collapse actions. */
1110
+ function rightPanelOpenNow() {
1111
+ return document.querySelector('.Dv5QdW_panel[data-sidebar-right-open]') !== null;
1112
+ }
1113
+
1114
+ /**
1115
+ * The shipped control is a button that the skin hides and DSH can disable
1116
+ * (it is `disabled` whenever the layout already counts the pane as open),
1117
+ * so clicking it is not a dependable contract. Ask the layout service
1118
+ * first and only fall back to the control when the service ignored us.
1119
+ */
1120
+ function toggleRightPanel() {
1121
+ const wantOpen = !rightPanelOpenNow();
1122
+ try {
1123
+ if (wantOpen) layoutService?.openRightbar?.(true, false);
1124
+ else layoutService?.closeRightbar?.();
1125
+ } catch {
1126
+ /* fall through to the shipped control */
1127
+ }
1128
+ window.setTimeout(() => {
1129
+ if (rightPanelOpenNow() === wantOpen) {
1130
+ // The pane can be mounted with its width preference already set;
1131
+ // republish so a collapsed workspace gets the right grid track.
1132
+ if (wantOpen) publishRightbarWidth?.();
1133
+ return;
1134
+ }
1135
+ const selector = wantOpen ? '[data-sidebar-right-expand]' : '[data-sidebar-right-toggle]';
1136
+ const target = document.querySelector(selector);
1137
+ if (target instanceof HTMLElement) target.click();
1138
+ }, 120);
1139
+ }
1140
+
1141
+ /**
1142
+ * Always-visible right sidebar toggle; drives the native open/collapse actions.
1143
+ *
1144
+ * Rendered into `document.body`, not into the top bar: the frame's overlay
1145
+ * layer is z-index 20, while the workbench panel host (dsh-better-sidebar)
1146
+ * is a full-viewport fixed layer at z-index 25 and re-enables pointer
1147
+ * events on its dock strip — the same top-right band the native expand
1148
+ * button used to occupy. Anything painted inside the frame therefore sits
1149
+ * UNDER that strip: the toggle still renders (the strip is transparent
1150
+ * there) but never sees hover or clicks. A body-level portal escapes both
1151
+ * stacking contexts; the stylesheet keeps it above the workbench
1152
+ * (25/40/60/90) and below the app's menus and dialogs (1000+).
1153
+ */
994
1154
  function RightPanelToggle() {
995
1155
  const open = useRightPanelOpen();
996
1156
  const active = useLocale() ?? 'en';
997
1157
  const copy = String(active).toLowerCase().startsWith('zh') ? COPY.zh : COPY.en;
998
1158
  const label = open ? copy.closeRight : copy.openRight;
999
- return h(
1000
- 'button',
1001
- {
1002
- type: 'button',
1003
- className: 'isl-rightToggle',
1004
- 'aria-label': withShortcut(label, 'sidebar.right.toggle'),
1005
- title: withShortcut(label, 'sidebar.right.toggle'),
1006
- 'aria-pressed': open,
1007
- onClick: () => {
1008
- const selector = open
1009
- ? '[data-sidebar-right-toggle]'
1010
- : '[data-sidebar-right-expand]';
1011
- const target = document.querySelector(selector);
1012
- if (target !== null) target.click();
1159
+ return ReactDOM.createPortal(
1160
+ h(
1161
+ 'button',
1162
+ {
1163
+ type: 'button',
1164
+ className: 'isl-rightToggle',
1165
+ 'aria-label': withShortcut(label, 'sidebar.right.toggle'),
1166
+ title: withShortcut(label, 'sidebar.right.toggle'),
1167
+ 'aria-pressed': open,
1168
+ onClick: toggleRightPanel,
1013
1169
  },
1014
- },
1015
- h(RightPanelGlyph),
1170
+ h(RightPanelGlyph),
1171
+ ),
1172
+ document.body,
1016
1173
  );
1017
1174
  }
1018
1175
 
@@ -1288,11 +1445,221 @@ window.__ModuleLoader__.load({
1288
1445
  );
1289
1446
  }
1290
1447
 
1448
+ function WarningGlyph() {
1449
+ return h(
1450
+ 'svg',
1451
+ { width: 16, height: 16, viewBox: '0 0 16 16', fill: 'none', 'aria-hidden': true },
1452
+ h('path', { d: 'M8 2.4 14.2 13H1.8L8 2.4Z', stroke: 'currentColor', strokeWidth: 1.4, strokeLinejoin: 'round' }),
1453
+ h('path', { d: 'M8 6.4v3', stroke: 'currentColor', strokeWidth: 1.4, strokeLinecap: 'round' }),
1454
+ h('circle', { cx: 8, cy: 11.3, r: 0.9, fill: 'currentColor' }),
1455
+ );
1456
+ }
1457
+
1458
+ /** Amber bar at the top of the Islands page explaining the auto-disable. */
1459
+ function CompatibilityBanner({ copy, compat, onForce }) {
1460
+ if (compat.status !== 'missing') return null;
1461
+ return h(
1462
+ 'div',
1463
+ { className: 'isl-compatBanner', role: 'alert' },
1464
+ h('span', { className: 'isl-compatBannerIcon' }, h(WarningGlyph)),
1465
+ h(
1466
+ 'div',
1467
+ { className: 'isl-compatBannerText' },
1468
+ h('div', { className: 'isl-compatBannerTitle' }, copy.compatBannerTitle),
1469
+ h('div', { className: 'isl-compatBannerBody' }, copy.compatBannerBody),
1470
+ h(
1471
+ 'div',
1472
+ { className: 'isl-compatBannerList' },
1473
+ h('span', null, `${copy.compatMissing}:`),
1474
+ compat.missing.map((selector) => h('code', { key: selector, className: 'isl-compatAnchor' }, selector)),
1475
+ ),
1476
+ h('div', { className: 'isl-compatBannerHint' }, copy.compatFix),
1477
+ ),
1478
+ h('button', { type: 'button', className: 'isl-compatBannerAction', onClick: onForce }, copy.compatForce),
1479
+ );
1480
+ }
1481
+
1482
+ /**
1483
+ * Turn the skin on only when the build still matches the stylesheet.
1484
+ *
1485
+ * The plugin's own chrome is plain React and keeps rendering no matter what
1486
+ * DSH does, while every layout rule is keyed to the shipped class names. A
1487
+ * renamed anchor therefore yields a half-skinned, overlapping UI instead of
1488
+ * a clean fallback, so a mismatched build stays on the untouched default.
1489
+ */
1490
+ function startCompatibilityGate() {
1491
+ let frameHandle = null;
1492
+ let settled = false;
1493
+ let retries = 0;
1494
+ let contentSeenAt = null;
1495
+ const startedAt = Date.now();
1496
+
1497
+ const stop = () => {
1498
+ if (frameHandle !== null) cancelAnimationFrame(frameHandle);
1499
+ frameHandle = null;
1500
+ };
1501
+
1502
+ const fail = (missing) => {
1503
+ if (settled) return;
1504
+ settled = true;
1505
+ stop();
1506
+ setCompat({ status: 'missing', missing, forced: false });
1507
+ console.warn('[islands-ui] interface anchors missing; the skin stayed off:', missing);
1508
+ // Someone who already switched the skin off does not need a popup; the
1509
+ // settings page still carries the explanation.
1510
+ if (readStored()) showCompatibilityToast();
1511
+ };
1512
+
1513
+ const pass = () => {
1514
+ if (settled) return;
1515
+ settled = true;
1516
+ stop();
1517
+ setCompat({ status: 'ok', missing: [], forced: false });
1518
+ activate();
1519
+ };
1520
+
1521
+ const settle = () => {
1522
+ frameHandle = null;
1523
+ if (settled) return;
1524
+ const missing = missingAnchors();
1525
+ if (missing.length === 0) {
1526
+ pass();
1527
+ return;
1528
+ }
1529
+ // Siblings can mount a frame after the frame element itself.
1530
+ retries += 1;
1531
+ if (retries < 4) {
1532
+ frameHandle = requestAnimationFrame(settle);
1533
+ return;
1534
+ }
1535
+ fail(missing);
1536
+ };
1537
+
1538
+ const watch = () => {
1539
+ frameHandle = null;
1540
+ if (settled) return;
1541
+ if (document.querySelector(REQUIRED_ANCHORS[0]) !== null) {
1542
+ settle();
1543
+ return;
1544
+ }
1545
+ // Anything rendered into the app root means the shell mounted; if the
1546
+ // frame anchor is still absent after a grace period it was renamed,
1547
+ // and waiting for the hard timeout would only delay the notice.
1548
+ const root = document.getElementById('root') ?? document.body;
1549
+ if (contentSeenAt === null && root !== null && root.childElementCount > 0) {
1550
+ contentSeenAt = Date.now();
1551
+ }
1552
+ if (contentSeenAt !== null && Date.now() - contentSeenAt > COMPAT_CONTENT_GRACE_MS) {
1553
+ fail(missingAnchors());
1554
+ return;
1555
+ }
1556
+ if (Date.now() - startedAt > COMPAT_TIMEOUT_MS) {
1557
+ fail(missingAnchors());
1558
+ return;
1559
+ }
1560
+ frameHandle = requestAnimationFrame(watch);
1561
+ };
1562
+
1563
+ frameHandle = requestAnimationFrame(watch);
1564
+ return stop;
1565
+ }
1566
+
1567
+ function activate() {
1568
+ if (activated || skinRegistrar === null) return;
1569
+ activated = true;
1570
+ syncAttribute();
1571
+ applyAccent(readAccent());
1572
+ try {
1573
+ skinRegistrar();
1574
+ } catch (error) {
1575
+ console.warn('[islands-ui] failed to mount the skin', error);
1576
+ document.body?.removeAttribute(ATTRIBUTE);
1577
+ }
1578
+ }
1579
+
1580
+ function forceEnable() {
1581
+ try {
1582
+ window.sessionStorage.setItem(FORCE_KEY, '1');
1583
+ } catch {
1584
+ /* private mode: the choice still applies for this page. */
1585
+ }
1586
+ setCompat({ status: 'ok', missing: [], forced: true });
1587
+ activate();
1588
+ }
1589
+
1590
+ /**
1591
+ * Plain-DOM toast: it must work while the shell is in an unknown state, so
1592
+ * it is appended to `body`, styled by the always-injected stylesheet and
1593
+ * removed without React.
1594
+ */
1595
+ function showCompatibilityToast() {
1596
+ if (document.body === null) return;
1597
+ const copy = currentCopy();
1598
+ const host = document.createElement('div');
1599
+ host.className = 'isl-compatToast';
1600
+ host.setAttribute('role', 'status');
1601
+ host.setAttribute('aria-live', 'polite');
1602
+ host.tabIndex = 0;
1603
+ host.title = copy.compatView;
1604
+
1605
+ const body = document.createElement('div');
1606
+ body.className = 'isl-compatToastBody';
1607
+ const title = document.createElement('div');
1608
+ title.className = 'isl-compatToastTitle';
1609
+ title.textContent = copy.compatTitle;
1610
+ const text = document.createElement('div');
1611
+ text.className = 'isl-compatToastText';
1612
+ text.textContent = copy.compatBody;
1613
+ const action = document.createElement('div');
1614
+ action.className = 'isl-compatToastAction';
1615
+ action.textContent = copy.compatView;
1616
+ body.append(title, text, action);
1617
+
1618
+ const close = document.createElement('button');
1619
+ close.type = 'button';
1620
+ close.className = 'isl-compatToastClose';
1621
+ close.setAttribute('aria-label', copy.compatDismiss);
1622
+ close.textContent = '\u00d7';
1623
+
1624
+ let timer = null;
1625
+ let closed = false;
1626
+ const dismiss = () => {
1627
+ if (closed) return;
1628
+ closed = true;
1629
+ if (timer !== null) window.clearTimeout(timer);
1630
+ host.classList.remove('is-visible');
1631
+ window.setTimeout(() => host.remove(), 200);
1632
+ };
1633
+
1634
+ const openSection = () => {
1635
+ dismiss();
1636
+ openSettings({ section: 'Islands UI' });
1637
+ };
1638
+
1639
+ timer = window.setTimeout(dismiss, 5000);
1640
+ close.addEventListener('click', (event) => {
1641
+ event.stopPropagation();
1642
+ dismiss();
1643
+ });
1644
+ host.addEventListener('click', openSection);
1645
+ host.addEventListener('keydown', (event) => {
1646
+ if (event.key !== 'Enter' && event.key !== ' ') return;
1647
+ event.preventDefault();
1648
+ openSection();
1649
+ });
1650
+
1651
+ host.append(body, close);
1652
+ document.body.append(host);
1653
+ requestAnimationFrame(() => host.classList.add('is-visible'));
1654
+ }
1655
+
1291
1656
  /** Islands settings page: skin switch + accent color. */
1292
1657
  function IslandsSettingsPage() {
1293
1658
  const on = useEnabled();
1659
+ const compat = useCompat();
1294
1660
  const lang = useLocale() ?? 'en';
1295
1661
  const copy = String(lang).toLowerCase().startsWith('zh') ? COPY.zh : COPY.en;
1662
+ const blocked = compat.status === 'missing';
1296
1663
  const [accent, setAccent] = React.useState(readAccent);
1297
1664
  const chooseAccent = (color) => {
1298
1665
  setAccent(color);
@@ -1313,6 +1680,8 @@ window.__ModuleLoader__.load({
1313
1680
  h('div', { className: 'isl-settingsPageDesc' }, copy.description),
1314
1681
  ),
1315
1682
  ),
1683
+ h(CompatibilityBanner, { copy, compat, onForce: forceEnable }),
1684
+ compat.forced ? h('div', { className: 'isl-compatForced' }, copy.compatForced) : null,
1316
1685
  h(
1317
1686
  'div',
1318
1687
  { className: 'isl-prefRow' },
@@ -1330,7 +1699,8 @@ window.__ModuleLoader__.load({
1330
1699
  className: 'isl-switch',
1331
1700
  'aria-checked': on,
1332
1701
  'aria-label': copy.enable,
1333
- title: copy.enable,
1702
+ title: blocked ? copy.compatBannerTitle : copy.enable,
1703
+ disabled: blocked,
1334
1704
  onClick: () => setEnabled(!on),
1335
1705
  },
1336
1706
  h('span', { className: 'isl-switchThumb' }),
@@ -1403,16 +1773,13 @@ window.__ModuleLoader__.load({
1403
1773
  workspacesService = scope.workspaces;
1404
1774
  });
1405
1775
 
1776
+ pluginCtx = ctx;
1406
1777
  localeService = ctx.locale;
1407
1778
  layoutService = ctx.layout;
1408
1779
  slotsService = ctx.slots;
1409
- syncAttribute();
1410
1780
  applyAccent(readAccent());
1411
1781
 
1412
1782
  ctx.effect(() => {
1413
- if (document.body !== null && !document.body.hasAttribute(ATTRIBUTE) && readStored()) {
1414
- document.body.setAttribute(ATTRIBUTE, '');
1415
- }
1416
1783
  const tag = document.createElement('style');
1417
1784
  tag.dataset.plugin = 'dsh-islands-ui';
1418
1785
  tag.dataset.pluginCss = 'dsh-islands-ui/islands.css';
@@ -1424,202 +1791,210 @@ window.__ModuleLoader__.load({
1424
1791
  };
1425
1792
  }, 'dsh-islands-ui: stylesheet');
1426
1793
 
1427
- ctx.effect(() => {
1428
- const root = document.documentElement;
1429
- let panel = null;
1430
- let styleObserver = null;
1431
- let mountObserver = null;
1432
- let locateFrame = null;
1433
- let retryTimer = null;
1434
-
1435
- // Publish the right pane's PREFERRED width, not the width the column
1436
- // currently has. The column is 0 while the pane is closed (and while
1437
- // the independent workspace collapse pins the right track), so a
1438
- // measurement-based value can never recover after the pane opens:
1439
- // the track would stay 0 and the panel clamp would keep it hidden.
1440
- // The panel itself always carries its resolved width in
1441
- // `--dsh-sidebar-width` (and its inline width), even while closed.
1442
- const publish = () => {
1443
- if (panel === null) return;
1444
- const value = (panel.style.getPropertyValue('--dsh-sidebar-width') || panel.style.width || '').trim();
1445
- if (value !== '') root.style.setProperty('--isl-rightbar-w', value);
1446
- };
1447
-
1448
- const watch = (next) => {
1449
- if (next === panel) return;
1450
- styleObserver?.disconnect();
1451
- styleObserver = null;
1452
- panel = next;
1453
- if (panel === null) return;
1454
- styleObserver = new MutationObserver(publish);
1455
- styleObserver.observe(panel, { attributes: true, attributeFilter: ['style'] });
1456
- publish();
1457
- };
1458
-
1459
- const locate = () => {
1460
- locateFrame = null;
1461
- const next = document.querySelector('.Dv5QdW_panel');
1462
- watch(next);
1463
- if (next === null) return;
1464
- mountObserver?.disconnect();
1465
- mountObserver = null;
1466
- if (retryTimer !== null) {
1467
- clearTimeout(retryTimer);
1468
- retryTimer = null;
1469
- }
1470
- };
1471
-
1472
- const scheduleLocate = () => {
1473
- if (locateFrame !== null) return;
1474
- locateFrame = requestAnimationFrame(locate);
1475
- };
1476
-
1477
- locate();
1478
- // The client applies before the shell mounts, so the first query can
1479
- // miss the right pane. Watch until it appears (bounded: a profile
1480
- // without the right pane must not keep a document-wide observer).
1481
- if (panel === null && document.body !== null) {
1482
- mountObserver = new MutationObserver(scheduleLocate);
1483
- mountObserver.observe(document.body, { childList: true, subtree: true });
1484
- retryTimer = setTimeout(() => {
1794
+ // Everything below turns the chrome on, so it runs only after the gate
1795
+ // has confirmed this build still matches the stylesheet.
1796
+ const registerSkinChrome = (ctx) => {
1797
+ ctx.effect(() => {
1798
+ const root = document.documentElement;
1799
+ let panel = null;
1800
+ let styleObserver = null;
1801
+ let mountObserver = null;
1802
+ let locateFrame = null;
1803
+ let retryTimer = null;
1804
+
1805
+ // Publish the right pane's PREFERRED width, not the width the column
1806
+ // currently has. The column is 0 while the pane is closed (and while
1807
+ // the independent workspace collapse pins the right track), so a
1808
+ // measurement-based value can never recover after the pane opens:
1809
+ // the track would stay 0 and the panel clamp would keep it hidden.
1810
+ // The panel itself always carries its resolved width in
1811
+ // `--dsh-sidebar-width` (and its inline width), even while closed.
1812
+ const publish = () => {
1813
+ if (panel === null) return;
1814
+ const value = (panel.style.getPropertyValue('--dsh-sidebar-width') || panel.style.width || '').trim();
1815
+ if (value !== '') root.style.setProperty('--isl-rightbar-w', value);
1816
+ };
1817
+
1818
+ const watch = (next) => {
1819
+ if (next === panel) return;
1820
+ styleObserver?.disconnect();
1821
+ styleObserver = null;
1822
+ panel = next;
1823
+ if (panel === null) return;
1824
+ styleObserver = new MutationObserver(publish);
1825
+ styleObserver.observe(panel, { attributes: true, attributeFilter: ['style'] });
1826
+ publish();
1827
+ };
1828
+
1829
+ const locate = () => {
1830
+ locateFrame = null;
1831
+ const next = document.querySelector('.Dv5QdW_panel');
1832
+ watch(next);
1833
+ if (next === null) return;
1485
1834
  mountObserver?.disconnect();
1486
1835
  mountObserver = null;
1487
- retryTimer = null;
1488
- }, 10_000);
1489
- }
1490
-
1491
- return () => {
1492
- if (locateFrame !== null) cancelAnimationFrame(locateFrame);
1493
- if (retryTimer !== null) clearTimeout(retryTimer);
1494
- mountObserver?.disconnect();
1495
- styleObserver?.disconnect();
1496
- root.style.removeProperty('--isl-rightbar-w');
1497
- };
1498
- }, 'dsh-islands-ui: rightbar width');
1499
-
1500
- ctx.slots.inject('shell.overlay', () =>
1501
- ctx.slots.register({ name: 'shell.overlay', id: 'islands-topbar', order: -100 }, IslandsTopBar),
1502
- );
1503
-
1504
- ctx.slots.inject('shell.overlay', () =>
1505
- ctx.slots.register({ name: 'shell.overlay', id: 'islands-rail', order: -90 }, IslandsRail),
1506
- );
1836
+ if (retryTimer !== null) {
1837
+ clearTimeout(retryTimer);
1838
+ retryTimer = null;
1839
+ }
1840
+ };
1841
+
1842
+ const scheduleLocate = () => {
1843
+ if (locateFrame !== null) return;
1844
+ locateFrame = requestAnimationFrame(locate);
1845
+ };
1846
+
1847
+ locate();
1848
+ publishRightbarWidth = locate;
1849
+ // The client applies before the shell mounts, so the first query can
1850
+ // miss the right pane. Watch until it appears (bounded: a profile
1851
+ // without the right pane must not keep a document-wide observer).
1852
+ if (panel === null && document.body !== null) {
1853
+ mountObserver = new MutationObserver(scheduleLocate);
1854
+ mountObserver.observe(document.body, { childList: true, subtree: true });
1855
+ retryTimer = setTimeout(() => {
1856
+ mountObserver?.disconnect();
1857
+ mountObserver = null;
1858
+ retryTimer = null;
1859
+ }, 10_000);
1860
+ }
1507
1861
 
1508
- ctx.slots.inject('shell.overlay', () =>
1509
- ctx.slots.register({ name: 'shell.overlay', id: 'islands-rail-settings', order: -89 }, IslandsRailSettings),
1510
- );
1862
+ return () => {
1863
+ if (locateFrame !== null) cancelAnimationFrame(locateFrame);
1864
+ if (retryTimer !== null) clearTimeout(retryTimer);
1865
+ mountObserver?.disconnect();
1866
+ styleObserver?.disconnect();
1867
+ if (publishRightbarWidth === locate) publishRightbarWidth = null;
1868
+ root.style.removeProperty('--isl-rightbar-w');
1869
+ };
1870
+ }, 'dsh-islands-ui: rightbar width');
1871
+
1872
+ ctx.slots.inject('shell.overlay', () =>
1873
+ ctx.slots.register({ name: 'shell.overlay', id: 'islands-topbar', order: -100 }, IslandsTopBar),
1874
+ );
1511
1875
 
1512
- ctx.slots.inject('shell.overlay', () =>
1513
- ctx.slots.register({ name: 'shell.overlay', id: 'islands-pinned', order: -88 }, IslandsPinnedSection),
1514
- );
1876
+ ctx.slots.inject('shell.overlay', () =>
1877
+ ctx.slots.register({ name: 'shell.overlay', id: 'islands-rail', order: -90 }, IslandsRail),
1878
+ );
1515
1879
 
1516
- ctx.inject(['slots', 'modelDirectories'], (scope) => {
1517
- modelDirectories = scope.modelDirectories;
1518
- // Single slots render the lowest priority; a negative priority shadows
1519
- // the shipped selector without colliding with it.
1520
- scope.slots.inject('conversation.input.model', () =>
1521
- scope.slots.register({ name: 'conversation.input.model', priority: -1 }, ModelPicker),
1880
+ ctx.slots.inject('shell.overlay', () =>
1881
+ ctx.slots.register({ name: 'shell.overlay', id: 'islands-rail-settings', order: -89 }, IslandsRailSettings),
1522
1882
  );
1523
- });
1524
1883
 
1525
- // Take the workspace shortcut over at the shortcut service layer: fixed
1526
- // input listeners run before the catalog dispatch, so the DSH
1527
- // sidebar.left.toggle never swaps in its rail-only render tree.
1528
- ctx.inject(['shortcuts'], (scope) => {
1529
- shortcutsService = scope.shortcuts;
1530
-
1531
- ctx.effect(
1532
- () => {
1533
- try {
1534
- return scope.shortcuts.register({
1535
- id: 'islands.model.open',
1536
- label: () => 'Model picker',
1537
- defaults: {
1538
- 'desktop:macos': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1539
- 'desktop:windows': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1540
- 'desktop:linux': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1541
- },
1542
- regions: ['page', 'editable'],
1543
- modals: [],
1544
- resolve: () => ({
1545
- status: 'handled',
1546
- run: () => window.dispatchEvent(new CustomEvent('islands:model-open')),
1547
- }),
1548
- });
1549
- } catch (error) {
1550
- console.warn('[islands-ui] model picker shortcut unavailable', error);
1551
- return undefined;
1552
- }
1553
- },
1554
- 'dsh-islands-ui: model picker shortcut',
1884
+ ctx.slots.inject('shell.overlay', () =>
1885
+ ctx.slots.register({ name: 'shell.overlay', id: 'islands-pinned', order: -88 }, IslandsPinnedSection),
1555
1886
  );
1556
1887
 
1557
- const off = scope.shortcuts.observeFixedInput((input) => {
1558
- if (input.type !== 'keydown') return;
1559
- if (!document.body.hasAttribute(ATTRIBUTE)) return;
1560
- const gesture = input.gesture;
1561
- if (gesture.code !== 'KeyB' || gesture.repeat || gesture.composing) return;
1562
- if (!(gesture.meta || gesture.control) || gesture.alt || gesture.shift) return;
1563
- const modal = input.context?.modal;
1564
- if (modal !== null && modal !== undefined && modal !== 'sidebar') return;
1565
- // Desktop delivers the platform's primary chord through the native
1566
- // keyboard bridge, bypassing fixed input. Let that path collapse the
1567
- // DSH and let the frame observer below convert it; intercepting both
1568
- // would toggle twice. The secondary chord is handled here.
1569
- const runtime = scope.shortcuts.runtime;
1570
- const platform = scope.shortcuts.platform;
1571
- const nativeOwned =
1572
- runtime === 'desktop' &&
1573
- ((platform === 'macos' && gesture.meta && !gesture.control) ||
1574
- (platform !== 'macos' && gesture.control && !gesture.meta));
1575
- if (nativeOwned) return;
1576
- input.consume();
1577
- toggleWorkspace();
1888
+ ctx.inject(['slots', 'modelDirectories'], (scope) => {
1889
+ modelDirectories = scope.modelDirectories;
1890
+ // Single slots render the lowest priority; a negative priority shadows
1891
+ // the shipped selector without colliding with it.
1892
+ scope.slots.inject('conversation.input.model', () =>
1893
+ scope.slots.register({ name: 'conversation.input.model', priority: -1 }, ModelPicker),
1894
+ );
1578
1895
  });
1579
- scope.effect(() => off, 'dsh-islands-ui: workspace collapse shortcut');
1580
- });
1581
1896
 
1582
- // The native primary chord reaches DSH's own sidebar collapse before any
1583
- // fixed listener. Convert that collapse into our workspace collapse
1584
- // immediately (and restore the expanded sidebar render tree) so the
1585
- // old rail never stays on screen. Drawer mode is different: its open
1586
- // state is native, and the independent desktop collapse must never hide
1587
- // the drawer's workspace, so entering the drawer clears that attribute.
1588
- ctx.effect(() => {
1589
- let observer;
1590
- let timer;
1591
- const fix = () => {
1592
- const frame = document.querySelector('.PIRFFq_frame');
1593
- if (frame === null) return;
1594
- if (frame.hasAttribute('data-sidebar-drawer')) {
1595
- document.body.removeAttribute(WORKSPACE_ATTR);
1596
- return;
1597
- }
1598
- if (!frame.hasAttribute('data-sidebar-collapsed')) return;
1599
- const wasCollapsed = document.body.hasAttribute(WORKSPACE_ATTR);
1600
- if (wasCollapsed) document.body.removeAttribute(WORKSPACE_ATTR);
1601
- else document.body.setAttribute(WORKSPACE_ATTR, '');
1602
- layoutService?.toggleSidebar();
1603
- };
1604
- const attach = () => {
1605
- const frame = document.querySelector('.PIRFFq_frame');
1606
- if (frame === null) {
1607
- timer = window.setTimeout(attach, 200);
1608
- return;
1609
- }
1610
- fix();
1611
- observer = new MutationObserver(fix);
1612
- observer.observe(frame, {
1613
- attributes: true,
1614
- attributeFilter: ['data-sidebar-collapsed', 'data-sidebar-drawer'],
1897
+ // Take the workspace shortcut over at the shortcut service layer: fixed
1898
+ // input listeners run before the catalog dispatch, so the DSH
1899
+ // sidebar.left.toggle never swaps in its rail-only render tree.
1900
+ ctx.inject(['shortcuts'], (scope) => {
1901
+ shortcutsService = scope.shortcuts;
1902
+
1903
+ ctx.effect(
1904
+ () => {
1905
+ try {
1906
+ return scope.shortcuts.register({
1907
+ id: 'islands.model.open',
1908
+ label: () => 'Model picker',
1909
+ defaults: {
1910
+ 'desktop:macos': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1911
+ 'desktop:windows': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1912
+ 'desktop:linux': { code: 'KeyM', modifiers: ['primary', 'shift'] },
1913
+ },
1914
+ regions: ['page', 'editable'],
1915
+ modals: [],
1916
+ resolve: () => ({
1917
+ status: 'handled',
1918
+ run: () => window.dispatchEvent(new CustomEvent('islands:model-open')),
1919
+ }),
1920
+ });
1921
+ } catch (error) {
1922
+ console.warn('[islands-ui] model picker shortcut unavailable', error);
1923
+ return undefined;
1924
+ }
1925
+ },
1926
+ 'dsh-islands-ui: model picker shortcut',
1927
+ );
1928
+
1929
+ if (typeof scope.shortcuts.observeFixedInput !== 'function') return;
1930
+ const off = scope.shortcuts.observeFixedInput((input) => {
1931
+ if (input.type !== 'keydown') return;
1932
+ if (!document.body.hasAttribute(ATTRIBUTE)) return;
1933
+ const gesture = input.gesture;
1934
+ if (gesture.code !== 'KeyB' || gesture.repeat || gesture.composing) return;
1935
+ if (!(gesture.meta || gesture.control) || gesture.alt || gesture.shift) return;
1936
+ const modal = input.context?.modal;
1937
+ if (modal !== null && modal !== undefined && modal !== 'sidebar') return;
1938
+ // Desktop delivers the platform's primary chord through the native
1939
+ // keyboard bridge, bypassing fixed input. Let that path collapse the
1940
+ // DSH and let the frame observer below convert it; intercepting both
1941
+ // would toggle twice. The secondary chord is handled here.
1942
+ const runtime = scope.shortcuts.runtime;
1943
+ const platform = scope.shortcuts.platform;
1944
+ const nativeOwned =
1945
+ runtime === 'desktop' &&
1946
+ ((platform === 'macos' && gesture.meta && !gesture.control) ||
1947
+ (platform !== 'macos' && gesture.control && !gesture.meta));
1948
+ if (nativeOwned) return;
1949
+ input.consume();
1950
+ toggleWorkspace();
1615
1951
  });
1616
- };
1617
- attach();
1618
- return () => {
1619
- window.clearTimeout(timer);
1620
- observer?.disconnect();
1621
- };
1622
- }, 'dsh-islands-ui: native collapse conversion');
1952
+ scope.effect(() => off, 'dsh-islands-ui: workspace collapse shortcut');
1953
+ });
1954
+
1955
+ // The native primary chord reaches DSH's own sidebar collapse before any
1956
+ // fixed listener. Convert that collapse into our workspace collapse
1957
+ // immediately (and restore the expanded sidebar render tree) so the
1958
+ // old rail never stays on screen. Drawer mode is different: its open
1959
+ // state is native, and the independent desktop collapse must never hide
1960
+ // the drawer's workspace, so entering the drawer clears that attribute.
1961
+ ctx.effect(() => {
1962
+ let observer;
1963
+ let timer;
1964
+ const fix = () => {
1965
+ const frame = document.querySelector('.PIRFFq_frame');
1966
+ if (frame === null) return;
1967
+ if (frame.hasAttribute('data-sidebar-drawer')) {
1968
+ document.body.removeAttribute(WORKSPACE_ATTR);
1969
+ return;
1970
+ }
1971
+ if (!frame.hasAttribute('data-sidebar-collapsed')) return;
1972
+ const wasCollapsed = document.body.hasAttribute(WORKSPACE_ATTR);
1973
+ if (wasCollapsed) document.body.removeAttribute(WORKSPACE_ATTR);
1974
+ else document.body.setAttribute(WORKSPACE_ATTR, '');
1975
+ layoutService?.toggleSidebar();
1976
+ };
1977
+ const attach = () => {
1978
+ const frame = document.querySelector('.PIRFFq_frame');
1979
+ if (frame === null) {
1980
+ timer = window.setTimeout(attach, 200);
1981
+ return;
1982
+ }
1983
+ fix();
1984
+ observer = new MutationObserver(fix);
1985
+ observer.observe(frame, {
1986
+ attributes: true,
1987
+ attributeFilter: ['data-sidebar-collapsed', 'data-sidebar-drawer'],
1988
+ });
1989
+ };
1990
+ attach();
1991
+ return () => {
1992
+ window.clearTimeout(timer);
1993
+ observer?.disconnect();
1994
+ };
1995
+ }, 'dsh-islands-ui: native collapse conversion');
1996
+ };
1997
+ skinRegistrar = () => registerSkinChrome(ctx);
1623
1998
 
1624
1999
  ctx.slots.inject('settings.section', () =>
1625
2000
  ctx.slots.register(
@@ -1631,7 +2006,13 @@ window.__ModuleLoader__.load({
1631
2006
  ctx.slots.inject('settings.section.icon', () =>
1632
2007
  ctx.slots.register({ name: 'settings.section.icon', id: 'islands-ui' }, IslandsSectionIcon),
1633
2008
  );
1634
- },
2009
+
2010
+ if (isForced()) {
2011
+ setCompat({ status: 'ok', missing: [], forced: true });
2012
+ activate();
2013
+ return;
2014
+ }
2015
+ ctx.effect(() => startCompatibilityGate(), 'dsh-islands-ui: compatibility gate'); },
1635
2016
  };
1636
2017
  },
1637
2018
  });