dsh-islands-ui 1.0.2 → 1.0.4

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,7 +11,13 @@ 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 ========================================================================== */\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}";
14
+ const CSS = "/* ---- 00-tokens.css ---- */\n/* ==========================================================================\n Islands UI · 00 tokens\n One source of truth for the skin. Every rule below reads these variables,\n so light/dark, radius, elevation and spacing are changed in one place.\n `--dsw-*` aliases are re-pointed at the Islands scale so shipped components\n inherit the new language without per-component overrides.\n ========================================================================== */\n\nbody[data-islands-ui] {\n /* Canvas: the unified background all islands float on. */\n --isl-canvas: #f7f7f7;\n --isl-canvas-veil: rgba(232, 234, 239, 0.72);\n /* Island surfaces. */\n --isl-surface: #ffffff;\n --isl-surface-muted: #f3f5f8;\n --isl-surface-sunken: #eceef3;\n /* Hairlines: Islands uses tinted, very quiet borders. */\n --isl-border-soft: rgba(17, 24, 39, 0.06);\n --isl-border: rgba(17, 24, 39, 0.09);\n --isl-border-strong: rgba(17, 24, 39, 0.14);\n --isl-hover: rgba(17, 24, 39, 0.055);\n --isl-active: rgba(17, 24, 39, 0.09);\n --isl-accent: #4176e6;\n /* Geometry. */\n --isl-radius-xl: 20px;\n --isl-radius-lg: 16px;\n --isl-radius-md: 12px;\n --isl-radius-sm: 8px;\n --isl-gap: 5px;\n --isl-topbar-height: 40px;\n /* Extra chrome above the app top bar (the Windows title bar). */\n --isl-chrome-top: 0px;\n --isl-rail-collapsed-width: 56px;\n --isl-rail-width: 48px;\n /* Elevation: a hairline ring plus one soft, deep shadow. */\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(17, 24, 39, 0.05), 0 10px 24px -10px rgba(17, 24, 39, 0.14),\n 0 28px 64px -32px rgba(17, 24, 39, 0.3);\n\n /* ---- DSH alias layer -------------------------------------------------- */\n --dsw-alias-bg-base: var(--isl-surface);\n --dsw-alias-bg-layer-1: var(--isl-surface);\n --dsw-alias-bg-layer-2: var(--isl-surface);\n --dsw-alias-bg-layer-3: var(--isl-surface-muted);\n --dsw-alias-bg-overlay: var(--isl-surface);\n --dsw-alias-bg-module-platform: var(--isl-surface-muted);\n --dsw-alias-bg-multi-select: var(--isl-surface-muted);\n --dsw-alias-bg-skeleton: rgba(17, 24, 39, 0.06);\n --dsw-specific-sidebar-fill: var(--isl-surface);\n --dsw-specific-input-major: var(--isl-surface);\n --dsw-specific-selector: var(--isl-surface-muted);\n --dsw-specific-tip: var(--isl-surface-muted);\n --dsw-specific-bubble: var(--isl-surface-muted);\n --dsw-specific-bubble-highlight: #eef1f6;\n --dsw-specific-sidebar-nav-item-active: var(--isl-surface-muted);\n --dsw-specific-sidebar-nav-item-active-accent: color-mix(\n in srgb,\n var(--dsw-alias-state-business-primary) 16%,\n transparent\n );\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 90%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 92%, transparent);\n --dsw-alias-markdown-code-block: var(--isl-surface-muted);\n --dsw-alias-markdown-code-block-banner: var(--isl-surface-muted);\n --dsw-alias-markdown-inline-code: var(--isl-surface-muted);\n --dsw-alias-markdown-tag: var(--isl-surface-muted);\n --dsw-alias-settings-card-fill: color-mix(in srgb, var(--isl-surface-muted) 68%, var(--isl-surface));\n --dsw-alias-settings-card-stroke: var(--isl-border-soft);\n --dsw-alias-border-l1: var(--isl-border-soft);\n --dsw-alias-border-l2: var(--isl-border-soft);\n --dsw-alias-border-l3: var(--isl-border);\n --dsw-alias-border-l4: var(--isl-border-strong);\n --dsw-alias-interactive-bg-hover: var(--isl-hover);\n --dsw-alias-interactive-bg-active: var(--isl-active);\n --dsw-alias-interactive-bg-hover-solid: var(--isl-surface-muted);\n --dsw-alias-button-elevated-fill: var(--isl-surface);\n --dsw-alias-button-floating-fill: var(--isl-surface);\n --dsw-alias-button-floating-hover: var(--isl-surface-muted);\n --dsw-radius-xs: 6px;\n --dsw-radius-sm: 8px;\n --dsw-radius-md: 10px;\n --dsw-radius-lg: 14px;\n --dsw-radius-xl: 18px;\n --dsw-radius-panel: 20px;\n --dsw-menu-backdrop-filter: blur(18px) saturate(140%);\n --dsw-mask-blur: blur(3px);\n --dsw-alias-bg-mask-1: rgba(107, 114, 128, 0.3);\n --dsw-alias-bg-mask-2: rgba(107, 114, 128, 0.18);\n\n background-color: var(--isl-canvas) !important;\n}\n\n/* Elevation tokens are declared on `body, body *` by the shipped theme, so the\n override has to be declared on descendants too, not only on body. */\nbody[data-islands-ui] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 6px 16px -6px rgba(17, 24, 39, 0.1),\n 0 18px 40px -24px rgba(17, 24, 39, 0.24);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(17, 24, 39, 0.12),\n 0 24px 48px -28px rgba(17, 24, 39, 0.24);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 12px 28px -10px rgba(17, 24, 39, 0.16),\n 0 32px 64px -32px rgba(17, 24, 39, 0.3);\n --dsw-shadow-lv1: 0 2px 4px rgba(17, 24, 39, 0.05);\n --dsw-shadow-lv2: 0 4px 12px rgba(17, 24, 39, 0.06), 0 2px 8px rgba(17, 24, 39, 0.04);\n --dsw-shadow-lv3:\n 0 0 1px rgba(17, 24, 39, 0.2), 0 12px 32px rgba(17, 24, 39, 0.08);\n}\n\n/* ---- Dark --------------------------------------------------------------- */\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-canvas: #0f1012;\n --isl-canvas-veil: rgba(15, 16, 18, 0.72);\n --isl-surface: #1b1c1f;\n --isl-surface-muted: #232428;\n --isl-surface-sunken: #151619;\n --isl-border-soft: rgba(255, 255, 255, 0.06);\n --isl-border: rgba(255, 255, 255, 0.09);\n --isl-border-strong: rgba(255, 255, 255, 0.16);\n --isl-hover: rgba(255, 255, 255, 0.06);\n --isl-active: rgba(255, 255, 255, 0.1);\n --isl-shadow-island: none;\n --isl-shadow-float:\n 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 28px -12px rgba(0, 0, 0, 0.6),\n 0 32px 72px -36px rgba(0, 0, 0, 0.85);\n\n --dsw-alias-bg-skeleton: rgba(255, 255, 255, 0.07);\n --dsw-specific-bubble-highlight: #2a2c31;\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-bg-mask-1: rgba(0, 0, 0, 0.55);\n --dsw-alias-bg-mask-2: rgba(0, 0, 0, 0.32);\n}\n\nbody[data-islands-ui][data-ds-dark-theme] * {\n --dsw-elevation-stroke-color: var(--isl-border);\n --dsw-elevation-stroke: 0 0 0 0.5px var(--isl-border);\n --dsw-elevation-soft:\n 0 0 0 0.5px var(--isl-border), 0 8px 20px -8px rgba(0, 0, 0, 0.55),\n 0 20px 44px -24px rgba(0, 0, 0, 0.7);\n --dsw-elevation-panel:\n 0 0 0 0.5px var(--isl-border), 0 10px 24px -10px rgba(0, 0, 0, 0.55),\n 0 28px 56px -30px rgba(0, 0, 0, 0.75);\n --dsw-elevation-prominent:\n 0 0 0 0.5px var(--isl-border), 0 14px 32px -12px rgba(0, 0, 0, 0.6),\n 0 36px 72px -36px rgba(0, 0, 0, 0.85);\n --dsw-shadow-lv1: 0 2px 6px rgba(0, 0, 0, 0.35);\n --dsw-shadow-lv2: 0 6px 16px rgba(0, 0, 0, 0.4);\n --dsw-shadow-lv3: 0 0 1px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.45);\n}\n\n/* Windows keeps its native title bar above the app top bar. */\nhtml[data-windows-titlebar] body[data-islands-ui] {\n --isl-chrome-top: var(--dsh-windows-titlebar-height, 32px);\n}\n\n/* User-selected accent: remap the business tokens everywhere. */\nbody[data-islands-ui][data-islands-accent],\nbody[data-islands-ui][data-islands-accent] * {\n --dsw-alias-state-business-primary: var(--isl-accent);\n --dsw-alias-state-business-tertiary: color-mix(in srgb, var(--isl-accent) 16%, transparent);\n}\n\n/* macOS ships a tinted, translucent sidebar. Islands wants an opaque canvas\n instead, so the tint is replaced everywhere it is declared. */\nhtml[data-platform='darwin'] body[data-islands-ui],\nhtml[data-platform='darwin'] body[data-islands-ui][data-ds-dark-theme] {\n --dsw-specific-menu: color-mix(in srgb, var(--isl-surface) 88%, transparent);\n --dsw-alias-menu-group-header-fill: color-mix(in srgb, var(--isl-surface-muted) 94%, transparent);\n}\n\n/* ---- 10-shell.css ---- */\n/* ==========================================================================\n Islands UI · 10 shell\n The frame becomes a canvas; the three columns become detachable islands.\n ========================================================================== */\n\nbody[data-islands-ui] .PIRFFq_frame {\n /* The ocean is a solid surface, never the desktop showing through vibrancy. */\n background: var(--isl-canvas);\n padding: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap)) var(--isl-gap) var(--isl-gap);\n /* Column gap only: the empty bottom track must not steal an extra row gap,\n so the islands stay symmetric top and bottom. */\n gap: 0 var(--isl-gap);\n}\n\n/* A real bottom panel (terminal, banner) still gets breathing room. */\nbody[data-islands-ui] .PIRFFq_bottomRow:has([data-slot='shell.bottom'] > *) {\n margin-top: var(--isl-gap);\n}\n\n/* The closed right column is a zero-width track, but the grid still reserves a\n gap beside it; pull the centre island over that gap so the canvas margin on\n the right equals the margin on the left. */\nbody[data-islands-ui] .PIRFFq_frame[data-rightbar-collapsed] .PIRFFq_centerCol {\n margin-right: calc(-1 * var(--isl-gap));\n}\n\n/* Center column: the conversation island. */\nbody[data-islands-ui] .PIRFFq_centerCol {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: hidden;\n}\n\n/* Shipped desktop rules paint the sidebar with a gradient and give the center\n column a left hairline; both are removed so the canvas reads as one plane. */\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame {\n background: var(--isl-canvas);\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame:not([data-sidebar-drawer]) .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n backdrop-filter: none;\n}\n\nbody[data-islands-ui] .PIRFFq_sidebarCol {\n background: transparent;\n border-right: 0;\n}\n\n[data-platform='darwin'] body[data-islands-ui] .PIRFFq_centerCol,\nbody[data-islands-ui] .PIRFFq_centerCol {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-left: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] .PIRFFq_mainPanel {\n background: transparent;\n}\n\n/* Right workbench: only while a pane is open does the column render an island. */\nbody[data-islands-ui] .PIRFFq_rightbarCol {\n background: transparent;\n}\n\nbody[data-islands-ui] .Dv5QdW_panel[data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n overflow: clip;\n}\n\n/* Drawer mask on narrow windows: Islands keeps the veil light and blurred. */\nbody[data-islands-ui] .PIRFFq_drawerMask {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\n/* The shell overlay layer is where the rail and window top bar live. In\n drawer mode it must paint above the drawer mask (70) and the drawer (71),\n otherwise the persistent rail disappears under the open workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] .PIRFFq_overlayLayer {\n z-index: 72;\n }\n}\n\n/* The resize handle is invisible chrome; keep it grabbable but quiet. */\nbody[data-islands-ui] .PIRFFq_handle {\n width: 10px;\n margin-left: -5px;\n}\n\n/* The shell computes the right handle's inline `left` from the frame's\n border-box width, but its absolute containing block is the padded grid area\n and the panel itself sits inside the right padding. That shifts the handle\n two gaps to the right — wholly inside the right island. Cancel the frame's\n horizontal padding so the strip straddles the right island's left edge\n (covering the whole canvas gap plus 5px of the panel) like the left one. */\nbody[data-islands-ui] .PIRFFq_handle[data-side='rightbar'] {\n margin-left: calc(-5px - 2 * var(--isl-gap));\n}\n\n/* Windows title bar keeps its native height; the frame padding already gives\n the rounded content corner room, so only the radius is unified. */\n[data-windows-titlebar] body[data-islands-ui] .PIRFFq_centerCol {\n border-radius: var(--isl-radius-lg);\n}\n\n[data-windows-titlebar] body[data-islands-ui] .PIRFFq_frame {\n background: var(--isl-canvas);\n}\n\n/* Collapsed sidebar on macOS drops the center column's left hairline; the\n island keeps its outline regardless. */\n[data-platform='darwin'] body[data-islands-ui] [data-sidebar-collapsed] .PIRFFq_centerCol {\n border-left: 1px solid var(--isl-border-soft);\n}\n\n/* ==========================================================================\n Workbench panels (better-sidebar bottom dock + native right sidebar)\n Both must read as independent islands, not as sheets pasted onto the\n conversation island.\n ========================================================================== */\n\n/* The bottom workbench reserves its height on the conversation column, not on\n the inner panel, so the island itself shrinks and a canvas gap opens between\n the two islands. */\nbody[data-islands-ui] #root [data-dsh-center-col] {\n margin-bottom: 0;\n}\n\nbody[data-islands-ui] .PIRFFq_centerCol {\n margin-bottom: var(--dsh-sidebar-height, 0px);\n transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui]:has([data-dsh-bottom-panel]:not([class*='Hidden'])) .PIRFFq_centerCol {\n /* one gap above the panel and one below it */\n margin-bottom: calc(var(--dsh-sidebar-height, 0px) + var(--isl-gap));\n}\n\nbody[data-islands-ui] [data-dsh-bottom-panel] {\n box-sizing: border-box;\n /* Align the panel with the conversation island edges and let the frame\n padding provide the bottom gap, so every island shares one gap width. */\n margin: 0;\n bottom: var(--isl-gap);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: none;\n /* The rounded island clips its content, but NOT the height-drag strip: the\n strip must reach into the canvas gap above the panel to be reachable\n there. Clip the body instead (below), so the strip can overhang. */\n overflow: visible;\n}\n\n/* Keep the island's rounded content edge with the panel's own clipping gone:\n the body carries the radius, while the absolute resize strip and the close\n control stay outside this clip. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='panelBody'] {\n overflow: clip;\n border-radius: calc(var(--isl-radius-lg) - 1px);\n}\n\n/* The host centers its strip on the panel's top border (`top: -4px;\n height: 8px`), which was right before the skin opened a canvas gap between\n the conversation island and the panel. Anchor the 10px strip to that gap\n instead: 5px above the border box top (the whole gap) and 5px inside the\n panel, matching the side handles' straddle. `top` is relative to the panel's\n padding box, hence the extra 1px border compensation. */\nbody[data-islands-ui] [data-dsh-bottom-panel] > [class*='bottomResize'] {\n top: calc(-1px - var(--isl-gap));\n height: 10px;\n}\n\n/* The native right sidebar keeps its own width preference, which can exceed\n the track the frame grants; clamp it to the track so it never hangs over\n the conversation island. */\nbody[data-islands-ui] .Dv5QdW_panel[data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']) {\n box-sizing: border-box;\n width: 100% !important;\n max-width: 100% !important;\n min-width: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .PIRFFq_centerCol {\n transition: none;\n }\n}\n\n/* ==========================================================================\n Independent workspace collapse\n The DSH collapse swaps the whole sidebar render tree for its rail-only\n variant. Instead the expanded rail stays mounted and only the workspace\n column hides, so the left column never re-renders or re-flows.\n ========================================================================== */\n\n/* The right column must keep its own track while the workspace is collapsed.\n Pin it to 0 only while the right pane is closed; when it opens, use the\n pane's PREFERRED width (published by the client). Reading the current\n column width here deadlocks: it is 0 while closed, so opening the pane\n could never grow the track, and the panel's `width: 100%` clamp would keep\n it at two border pixels. The fallback keeps the pane visible even before\n the width source has been located. */\nbody[data-islands-ui][data-islands-workspace-collapsed]\n .PIRFFq_frame:not(\n :has(.Dv5QdW_panel[data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen']))\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n}\n\nbody[data-islands-ui][data-islands-workspace-collapsed]\n .PIRFFq_frame:has(\n .Dv5QdW_panel[data-sidebar-right-open]:not([data-sidebar-right-panel='fullscreen'])\n ) {\n grid-template-columns:\n var(--isl-rail-collapsed-width) minmax(0, 1fr)\n var(--isl-rightbar-w, max(300px, 45vw)) !important;\n}\n\nbody[data-islands-ui] .PIRFFq_frame[data-islands-animating] {\n transition: grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);\n}\n\n/* ---- 15-topbar.css ---- */\n/* ==========================================================================\n Islands UI · 15 top bar\n A window-chrome strip above the three islands. It clears the macOS traffic\n lights, hosts the workspace collapse control, and leaves the content area\n completely free for the islands.\n ========================================================================== */\n\n/* Registered even when the skin is off; the base rule keeps it out of the way. */\n.isl-topbar {\n display: none;\n}\n\nbody[data-islands-ui] .isl-topbar {\n position: fixed;\n inset: var(--isl-chrome-top) 0 auto;\n z-index: 30;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n height: var(--isl-topbar-height);\n /* macOS centers the traffic lights in its 48px window-chrome band; the\n controls follow that center (10 + 14 = 24), not the 40px bar's own. */\n padding: 10px 10px 0 8px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n /* The bar itself must never swallow clicks meant for controls that are\n docked over it; only the toggle and the drag handle opt back in. */\n pointer-events: none;\n -webkit-app-region: no-drag;\n user-select: none;\n}\n\n/* Left lead (traffic-light strip) and the centre of the bar are draggable;\n both stop short of the docked controls so clicks keep working. */\n/* The 88px lead exists only for the macOS traffic lights. */\nbody[data-islands-ui] .isl-topbarLead {\n display: none;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbar {\n padding-left: 88px;\n}\n\nhtml[data-platform='darwin'] body[data-islands-ui] .isl-topbarLead {\n position: absolute;\n inset: 0 auto 0 0;\n display: block;\n width: 88px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\nbody[data-islands-ui] .isl-topbarDrag {\n flex: 1;\n align-self: stretch;\n min-width: 0;\n margin-right: 250px;\n pointer-events: auto;\n -webkit-app-region: drag;\n}\n\nbody[data-islands-ui] .isl-topbarToggle {\n box-sizing: border-box;\n flex: none;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-topbarToggle:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-topbarToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Narrow desktop: the top bar remains the window chrome (drag strip + right\n panel toggle), but the rail's home button owns the workspace drawer. The\n chrome must paint above the drawer mask (70) and the drawer (71). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-topbar {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-topbarToggle {\n display: none;\n }\n\n body[data-islands-ui] .isl-topbarDrag {\n margin-right: 40px;\n }\n}\n\n/* ---- 16-rail.css ---- */\n/* ==========================================================================\n Islands UI · 16 left rail\n Workspace / automation / plugins, user-pinned plugin entries, and a\n context menu for the remaining panels.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-rail {\n display: none;\n}\n\nbody[data-islands-ui] .isl-rail {\n position: fixed;\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + 10px);\n left: var(--isl-gap);\n z-index: 25;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n width: var(--isl-rail-width);\n pointer-events: auto;\n}\n\nbody[data-islands-ui] .isl-railBtn {\n box-sizing: border-box;\n display: grid;\n place-items: center;\n flex: none;\n width: 36px;\n height: 36px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-railBtn:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-railBtn.is-active {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-railBtn:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\nbody[data-islands-ui] .isl-railDivider {\n width: 24px;\n height: 1px;\n margin: 2px 0;\n background: var(--isl-border-soft);\n}\n\n/* ---- Plugin pin menu -------------------------------------------------- */\nbody[data-islands-ui] .isl-railMenu {\n position: fixed;\n z-index: 35;\n box-sizing: border-box;\n width: 240px;\n padding: 6px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-railMenuTitle {\n padding: 4px 8px 6px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-railMenuRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 34px;\n padding: 5px 8px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-railMenuRow:hover {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-railMenuIcon {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-railMenuText {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 1px;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-railMenuLabel {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuSub {\n color: var(--dsw-alias-label-tertiary);\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-railMenuPin {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-tertiary);\n opacity: 0.35;\n}\n\nbody[data-islands-ui] .isl-railMenuPin.is-pinned {\n color: var(--dsw-alias-state-business-primary);\n opacity: 1;\n}\n\nbody[data-islands-ui] .isl-railEmpty {\n padding: 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* Settings gear pinned above the account avatar. */\nbody[data-islands-ui] .isl-railSettings {\n display: none;\n}\n\nbody[data-islands-ui] .isl-railSettings {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: 56px;\n z-index: 26;\n display: grid;\n place-items: center;\n}\n\n/* Narrow desktop: the rail is the persistent navigation; the workspace is a\n drawer opened from its home button. Both the rail and its menus must sit\n above the drawer (71) and the drawer mask (70). */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-rail {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railSettings {\n z-index: 72;\n }\n\n body[data-islands-ui] .isl-railMenu {\n z-index: 1100;\n }\n}\n\n/* ---- 17-update.css ---- */\n/* ==========================================================================\n Islands UI · 17 desktop update\n One circular update entry above the settings gear. The skin owns the whole\n surface: the shipped indicator lives in the 36px settings row and overflows\n beside the account avatar, and it does not expose a phase attribute.\n\n The three busy patterns follow the open-source Dot Matrix loaders\n (dotmatrix.zzzzshawn.cloud): dotm-3x3-7, dotm-3x3-16 and dotm-3x3-6.\n ========================================================================== */\n\n/* The native indicator (and its tiny toggle badge) would duplicate the rail\n button. Keep them out of the skin; a plain browser has neither anyway.\n 0.2.2-rc.1 and rc.2 both use the G-tjAW hash. The update entry itself is a\n shell.overlay control, so it is independent of the flat/scroll sidebar\n variant and lives in the base sheet for every supported release. */\nbody[data-islands-ui] .G-tjAW_indicator,\nbody[data-islands-ui] .G-tjAW_badge {\n display: none !important;\n}\n\nbody[data-islands-ui] {\n --isl-update-bg: #4176e6;\n --isl-update-bg-hover: #3264d4;\n --isl-update-danger: #d93a40;\n}\n\nbody[data-islands-ui][data-ds-dark-theme] {\n --isl-update-danger: #ff6369;\n}\n\nbody[data-islands-ui] .isl-updateButton {\n position: fixed;\n left: calc(var(--isl-gap) + (var(--isl-rail-width) - 36px) / 2);\n bottom: calc(56px + 36px + 8px);\n z-index: 26;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n border: 1px solid transparent;\n border-radius: 50%;\n background: var(--isl-update-bg);\n color: #fff;\n cursor: default;\n box-shadow:\n 0 2px 6px -1px color-mix(in srgb, var(--isl-update-bg) 38%, transparent),\n 0 8px 18px -10px color-mix(in srgb, var(--isl-update-bg) 62%, transparent);\n transition:\n background-color 0.15s var(--ds-ease-in-out),\n box-shadow 0.15s var(--ds-ease-in-out),\n transform 0.15s var(--ds-ease-in-out),\n border-color 0.15s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable {\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:hover {\n background: var(--isl-update-bg-hover);\n transform: translateY(-1px);\n box-shadow:\n 0 3px 8px -1px color-mix(in srgb, var(--isl-update-bg) 44%, transparent),\n 0 10px 22px -10px color-mix(in srgb, var(--isl-update-bg) 72%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-clickable:active {\n transform: translateY(0) scale(0.96);\n}\n\nbody[data-islands-ui] .isl-updateButton:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--isl-update-bg) 40%, transparent);\n outline-offset: 2px;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-pending {\n opacity: 0.82;\n}\n\n/* Busy phases keep the circle but let the matrix carry the state. */\nbody[data-islands-ui] .isl-updateButton[aria-busy='true'] {\n cursor: default;\n}\n\n/* Error: a translucent danger surface, danger stroke, status dot and a retry\n glyph. The dot keeps the state readable without relying on color alone. */\nbody[data-islands-ui] .isl-updateButton.is-error {\n border-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 14%, transparent);\n color: var(--isl-update-danger);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error.is-clickable:hover {\n border-color: color-mix(in srgb, var(--isl-update-danger) 72%, transparent);\n background: color-mix(in srgb, var(--isl-update-danger) 22%, transparent);\n box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\nbody[data-islands-ui] .isl-updateButton.is-error:focus-visible {\n outline-color: color-mix(in srgb, var(--isl-update-danger) 55%, transparent);\n}\n\n/* Busy phases drop the circle entirely: the mosaic itself is the control,\n tinted with the user's accent so it belongs to the skin rather than to the\n shipped brand pill. */\nbody[data-islands-ui] .isl-updateButton.is-downloading,\nbody[data-islands-ui] .isl-updateButton.is-verifying,\nbody[data-islands-ui] .isl-updateButton.is-installing {\n border-color: transparent;\n background: transparent;\n color: var(--isl-accent);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .isl-updateErrorDot {\n position: absolute;\n top: 2px;\n right: 2px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--isl-update-danger);\n box-shadow: 0 0 0 2px var(--isl-surface);\n}\n\n/* ---- 3x3 dot matrix ------------------------------------------------------ */\n\nbody[data-islands-ui] .isl-dmx {\n display: grid;\n grid-template-columns: repeat(3, 5px);\n grid-template-rows: repeat(3, 5px);\n gap: 2.5px;\n width: 20px;\n height: 20px;\n}\n\nbody[data-islands-ui] .isl-dmx-dot {\n display: block;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: currentColor;\n opacity: 0.14;\n will-change: opacity;\n}\n\n/* Column Flux (dotm-3x3-7): columns pulse left to right, all rows together.\n The three 400ms phases overlap, so at least one column stays lit while the\n busy button has no filled background behind it. */\nbody[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n animation: isl-dmx-column 1200ms cubic-bezier(0.42, 0, 0.58, 1) infinite;\n animation-delay: calc(var(--dmx-col) * 400ms);\n}\n\n/* Core Echo (dotm-3x3-6): Manhattan rings ripple out from the centre. */\nbody[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n animation: isl-dmx-ripple 1230ms ease-in-out infinite;\n animation-delay: calc(var(--dmx-ring) * 165ms);\n}\n\n/* Smiley Spin (dotm-3x3-16): the pixel glyph rotates in four 180ms phases.\n Each cell is lit for one or two phases; the first wraps across the cycle. */\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n animation-duration: 720ms;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n opacity: 0.12;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='1'] {\n animation-name: isl-dmx-spin-1;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='2'] {\n animation-name: isl-dmx-spin-2;\n}\n\nbody[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-span='wrap'] {\n animation-name: isl-dmx-spin-wrap;\n}\n\n@keyframes isl-dmx-column {\n 0% {\n opacity: 0.14;\n }\n\n 10% {\n opacity: 1;\n }\n\n 40% {\n opacity: 0.14;\n }\n\n 100% {\n opacity: 0.14;\n }\n}\n\n@keyframes isl-dmx-ripple {\n 0%,\n 100% {\n opacity: 0.08;\n }\n\n 34% {\n opacity: 1;\n }\n\n 60% {\n opacity: 0.22;\n }\n}\n\n@keyframes isl-dmx-spin-1 {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-2 {\n 0%,\n 45% {\n opacity: 0.88;\n }\n\n 50%,\n 100% {\n opacity: 0.12;\n }\n}\n\n@keyframes isl-dmx-spin-wrap {\n 0%,\n 20% {\n opacity: 0.88;\n }\n\n 25%,\n 70% {\n opacity: 0.12;\n }\n\n 75%,\n 100% {\n opacity: 0.88;\n }\n}\n\n/* Narrow desktop: the rail floats above the workspace drawer. */\n@media (width <= 767px) {\n body[data-islands-ui] .isl-updateButton {\n z-index: 72;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n body[data-islands-ui] .isl-updateButton {\n transition: none;\n }\n\n body[data-islands-ui] .isl-dmx-dot {\n animation: none !important;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-column .isl-dmx-dot[data-col='2'] {\n opacity: 0.88;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot {\n opacity: 0.3;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='1'] {\n opacity: 0.55;\n }\n\n body[data-islands-ui] .isl-dmx-ripple .isl-dmx-dot[data-ring='0'] {\n opacity: 1;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot {\n opacity: 0.12;\n }\n\n body[data-islands-ui] .isl-dmx-smiley .isl-dmx-dot[data-on='1'] {\n opacity: 0.88;\n }\n}\n\n/* ---- Settings showcase --------------------------------------------------- */\n\nbody[data-islands-ui] .isl-updateShowcase {\n margin-top: 18px;\n padding: 16px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--dsw-alias-settings-card-fill);\n}\n\nbody[data-islands-ui] .isl-updateShowcaseHead {\n margin-bottom: 14px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseDesc {\n margin-top: 3px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseGrid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));\n gap: 14px 8px;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseItem {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n min-width: 0;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseStage {\n display: grid;\n place-items: center;\n width: 56px;\n height: 56px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n}\n\nbody[data-islands-ui] .isl-updateShowcase .isl-updateButton.is-preview {\n position: relative;\n left: auto;\n bottom: auto;\n z-index: auto;\n transform: none;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-updateShowcaseLabel {\n color: var(--dsw-alias-label-primary);\n font-size: 12px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-updateShowcasePhase {\n color: var(--dsw-alias-label-tertiary);\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 10px;\n line-height: 14px;\n}\n\n/* ---- 20-sidebar.css ---- */\n/* ==========================================================================\n Islands UI · 20 sidebar\n The expanded sidebar is one full-height island: a persistent icon rail on\n the left and the workspace browser on the same surface. The island spans the\n exact same top and bottom edges as the conversation island. Collapsed mode\n keeps the shipped rail untouched.\n ========================================================================== */\n\nbody[data-islands-ui] .kB3qhq_root {\n background: transparent;\n}\n\n/* ---- Expanded: chrome rail + workspace island --------------------------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) {\n display: grid;\n grid-template-columns: var(--isl-rail-width) minmax(0, 1fr);\n grid-template-rows: var(--isl-gap) auto minmax(0, 1fr) auto;\n column-gap: var(--isl-gap);\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n position: relative;\n isolation: isolate;\n}\n\n/* The workspace browser is the sidebar's only island. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed)::after {\n content: '';\n position: absolute;\n z-index: -1;\n inset: 0 0 0 calc(var(--isl-rail-width) + var(--isl-gap));\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n box-shadow: var(--isl-shadow-island);\n pointer-events: none;\n}\n\n/* The top band is a small breathing gap inside the sidebar column. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_topStrip {\n grid-area: 1 / 1 / 2 / -1;\n height: 100%;\n margin: 0;\n padding: 0 4px 0 0;\n justify-content: flex-end;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow {\n grid-area: 2 / 1;\n height: 36px;\n margin: 0 0 6px;\n padding: 0;\n justify-content: center;\n overflow: visible;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brand {\n justify-content: center;\n overflow: visible;\n}\n\n/* The brand wordmark and build stamp belong to window chrome, not the rail. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_brandName,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_localBuildBrand {\n display: none;\n}\n\nbody[data-islands-ui] .kB3qhq_brandMark {\n width: 28px;\n height: 28px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession {\n grid-area: 2 / 2;\n height: 36px;\n margin: 0 6px 6px;\n padding: 0 8px;\n justify-content: flex-start;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n box-shadow: none;\n color: var(--dsw-alias-label-primary);\n font-weight: 400;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSessionContent {\n justify-content: flex-start;\n width: 100%;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession:hover {\n background: var(--isl-hover);\n}\n\n/* The global panel list becomes the rail's primary navigation. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\n grid-area: 3 / 1;\n align-self: start;\n align-items: center;\n gap: 4px;\n margin: 2px 0 0;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow {\n width: 36px;\n height: 36px;\n justify-content: center;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelRow.kB3qhq_panelActive {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}\n\n/* The label leaves the visual rail but stays in the accessibility tree. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelTitle {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Workspace browser: same surface, full height ----------------------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea {\n grid-area: 3 / 2 / 5 / 3;\n margin: 0;\n padding: 0 4px 6px;\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n overflow: hidden;\n}\n\nbody[data-islands-ui] .kB3qhq_regionArea {\n --dsh-session-list-edge-inset: 4px;\n}\n\nbody[data-islands-ui] .Kjh-qa_sectionHeader {\n padding-inline: 8px;\n margin-right: 0;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n letter-spacing: 0.01em;\n}\n\nbody[data-islands-ui] .Kjh-qa_sectionLabel {\n font-weight: 500;\n}\n\nbody[data-islands-ui] .Kjh-qa_list {\n padding-bottom: 8px;\n}\n\nbody[data-islands-ui] .Kjh-qa_fade {\n background: linear-gradient(to bottom, transparent, var(--isl-surface));\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow,\nbody[data-islands-ui] .JoiKIa_projectRow {\n border-radius: var(--isl-radius-sm);\n padding-inline: 8px;\n}\n\n/* ---- Rail foot: settings gear ------------------------------------------ */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea {\n grid-area: 4 / 1;\n align-items: center;\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_settingsArea,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions {\n width: auto;\n align-items: center;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerRow {\n width: 36px;\n margin: 4px 0 2px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger {\n flex: none;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_triggerLabel {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger:hover,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) ._77Pn0W_trigger[aria-expanded='true'] {\n background: var(--isl-hover);\n}\n\n/* Footer actions contributed next to Settings (account launcher, etc.). */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footerActions button {\n width: 36px;\n height: 36px;\n border-radius: var(--isl-radius-md);\n}\n\n/* ---- Collapsed rail ------------------------------------------------------ */\n/* Collapsing hides the workspace browser only; the rail keeps its own island. */\nbody[data-islands-ui] .kB3qhq_root.kB3qhq_collapsed {\n /* The rail is chrome, not an island: it sits directly on the ocean. */\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n padding: 8px 10px 6px;\n overflow: hidden;\n}\n\nbody[data-islands-ui] .kB3qhq_root.kB3qhq_collapsed .kB3qhq_topStrip {\n height: 36px;\n margin: 0;\n padding: 0;\n justify-content: center;\n}\n\nbody[data-islands-ui] .kB3qhq_collapsed .kB3qhq_newSession {\n border-radius: var(--isl-radius-md);\n}\n\n/* The window top bar / rail own the collapse controls; the in-island toggle\n would duplicate them at every width. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_toggle {\n display: none;\n}\n\n@media (min-width: 768px) {\n /* On macOS the shipped frame gives a collapsed sidebar zero width, hiding\n the rail too. Restore one rail-wide track (right panel still closed). */\n [data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame[data-sidebar-collapsed][data-rightbar-collapsed] {\n grid-template-columns: var(--isl-rail-collapsed-width) minmax(0, 1fr) 0 !important;\n }\n\n /* The rail itself is the expand control; do not reserve header space for the\n floating seat and do not show a second expand button over the island. */\n [data-platform='darwin'] body[data-islands-ui] .PIRFFq_frame[data-sidebar-collapsed] {\n --dsh-frame-leading-clearance: 0px;\n }\n}\n\n/* The window chrome and the rail own the sidebar controls; the floating seat\n is redundant (and at narrow widths would sit under the traffic lights). */\nbody[data-islands-ui] .PIRFFq_leadingSeat {\n display: none;\n}\n\n/* ---- Search / section chrome inside the island --------------------------- */\nbody[data-islands-ui] .Kjh-qa_searchExpanded {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n border-radius: var(--isl-radius-sm);\n}\n\nbody[data-islands-ui] .Kjh-qa_searchExpanded .Kjh-qa_searchButton:hover {\n background: transparent;\n}\n\n/* ---- Narrow drawer ------------------------------------------------------- */\n/* Below the top bar's breakpoint the workspace becomes an overlay drawer. It\n starts at the frame's content top (below the top bar and its 5px gap) and\n leaves the window's 5px canvas margin on the left; the workspace card inside\n keeps the right/bottom 5px so the drawer still reads as an island. */\nbody[data-islands-ui] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_sidebarCol {\n top: calc(var(--isl-chrome-top) + var(--isl-topbar-height) + var(--isl-gap));\n bottom: 0;\n left: var(--isl-gap);\n background: var(--isl-canvas);\n border-right: 0;\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] .PIRFFq_frame[data-sidebar-drawer] .kB3qhq_root::after {\n inset: 0 var(--isl-gap) var(--isl-gap) calc(var(--isl-rail-width) + var(--isl-gap));\n}\n\n/* The sidebar's grid track is zero in drawer mode, but its column gap remains;\n shift the conversation island right by the persistent rail so the closed\n drawer leaves the rail visible and the island keeps its 5px gap. */\nbody[data-islands-ui] .PIRFFq_frame[data-sidebar-drawer] .PIRFFq_centerCol {\n margin-left: var(--isl-rail-width);\n}\n\n/* ---- Account launcher (settings.launcher) --------------------------------\n In this build the sidebar foot is the account menu rather than the bare\n settings gear, so the same rail geometry applies to its trigger. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_root {\n flex: none;\n width: 36px;\n margin-inline: 0;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_anchor {\n width: 36px;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[data-signed-out='false']:not([data-collapsed='true']),\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_trigger[data-signed-out='true']:not([data-collapsed='true']) {\n width: 36px;\n height: 36px;\n padding: 0;\n justify-content: center;\n border-inline: 0;\n border-radius: var(--isl-radius-md);\n background-clip: border-box;\n}\n\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_footArea .hjANda_label {\n position: absolute;\n width: 1px;\n height: 1px;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n overflow: hidden;\n}\n\n/* ---- Independent workspace collapse ------------------------------------- */\n/* Hide the workspace island only; the rail keeps its expanded-layout DOM and\n position, so nothing in the left column is re-rendered by the toggle. */\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_newSession,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_regionArea,\nbody[data-islands-ui][data-islands-workspace-collapsed] .kB3qhq_root:not(.kB3qhq_collapsed)::after {\n display: none !important;\n}\n\n/* ---- Custom rail replaces the shipped brand + panel icon column ---------- */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_logoRow,\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) .kB3qhq_panelList {\n display: none !important;\n}\n\n/* ---- Aggregate pinned sessions ------------------------------------------ */\n.isl-pinnedHost {\n display: block;\n flex: none;\n}\n\n.isl-pinned {\n display: none;\n padding: 2px 4px 0;\n}\n\nbody[data-islands-ui] .isl-pinned {\n display: block;\n}\n\n/* Pinned rows stay in place in their workspace groups and are also collected\n in the aggregate block above. The original row keeps a subtle tint. */\nbody[data-islands-ui] .JoiKIa_pinIndicator {\n color: var(--dsw-alias-state-business-primary);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator) {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, transparent);\n}\n\nbody[data-islands-ui] .JoiKIa_sessionRow:has(.JoiKIa_pinIndicator):hover {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);\n}\n\n.isl-pinnedHead {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font: inherit;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n/* Collapsible header mirrors the quiet workspace section header: colour only. */\n.isl-pinnedHead:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-tertiary);\n transform: rotate(-90deg);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinned[data-open] .isl-pinnedChevron {\n transform: rotate(0deg);\n}\n\n.isl-pinnedTitle {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.isl-pinnedCount {\n margin-left: auto;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n font-weight: 400;\n}\n\n.isl-pinnedList {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding: 1px 0 3px;\n}\n\n.isl-pinnedRow {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n height: 32px;\n padding: 0 8px 0 34px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n}\n\n.isl-pinnedRow:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.isl-pinnedName {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n/* Hover marquee: clip the ellipsis, fade both edges as the title crawls. */\n.isl-pinnedRow:hover .isl-pinnedName {\n text-overflow: clip;\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled] {\n mask-image: linear-gradient(90deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-clipped] {\n mask-image: linear-gradient(270deg, #0000, #000 12px);\n}\n\n.isl-pinnedRow .isl-pinnedName[data-scrolled][data-clipped] {\n mask-image: linear-gradient(90deg, #0000, #000 12px calc(100% - 12px), #0000);\n}\n\n.isl-pinnedRow:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n.isl-pinnedPinBtn,\n.isl-pinnedLocate {\n display: none;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n margin-left: 4px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-xs, 6px);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n transition:\n background-color 0.12s var(--ds-ease-in-out),\n color 0.12s var(--ds-ease-in-out);\n}\n\n.isl-pinnedRow:hover .isl-pinnedPinBtn,\n.isl-pinnedRow:focus-within .isl-pinnedPinBtn,\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedRow:hover .isl-pinnedLocate,\n.isl-pinnedRow:focus-within .isl-pinnedLocate,\n.isl-pinnedLocate:focus-visible {\n display: grid;\n}\n\n.isl-pinnedPinBtn:hover,\n.isl-pinnedLocate:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary);\n}\n\n.isl-pinnedPinBtn:focus-visible,\n.isl-pinnedLocate:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* Brief highlight on the session the locate action focuses. */\nbody[data-islands-ui] .JoiKIa_sessionRow.isl-located {\n background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, transparent) !important;\n}\n\n/* ---- 30-conversation.css ---- */\n/* ==========================================================================\n Islands UI · 30 conversation & composer\n ========================================================================== */\n\nbody[data-islands-ui] .kiGsTW_root {\n background: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_header {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] .kiGsTW_headerBlank {\n border-bottom-color: transparent;\n}\n\nbody[data-islands-ui] .kiGsTW_scrollBody {\n margin-right: 0;\n}\n\n/* Composer: the one element that should visibly float above the island. */\nbody[data-islands-ui] .JZLxKW_card {\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n box-shadow: none;\n}\n\nbody[data-islands-ui] .JZLxKW_cardWorkspaceTrigger:after {\n border-radius: var(--dsw-radius-panel);\n color: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .JZLxKW_notice {\n border-radius: var(--isl-radius-md);\n background: var(--isl-surface-muted);\n}\n\n/* Sticky composer seat fades into the island surface, not into a raw token. */\nbody[data-islands-ui] .kiGsTW_root[data-phase='active'] .kiGsTW_composerSeat,\nbody[data-islands-ui] .kiGsTW_embeddedBody[data-content-phase='active'] .kiGsTW_composerSeat {\n background: linear-gradient(\n 180deg,\n color-mix(in srgb, var(--isl-surface) 0%, transparent) 0px,\n var(--isl-surface) 36px\n );\n}\n\n/* Hero: a calmer, slightly tighter headline on the open island. */\nbody[data-islands-ui] ._8tPydW_headline {\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] ._8tPydW_workspace {\n border-radius: 999px;\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] ._8tPydW_workspace:hover {\n background: var(--isl-hover);\n}\n\n/* Tool / turn cards keep their own hierarchy but gain island hairlines. */\nbody[data-islands-ui] .CuF05a_root {\n border-color: var(--isl-border-soft);\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .CuF05a_root:hover {\n background: var(--isl-surface-sunken);\n}\n\n/* Header chips and breadcrumbs. */\nbody[data-islands-ui] .kiGsTW_crumb {\n border-radius: var(--isl-radius-sm);\n}\n\n/* View tabs sit on the island as a quiet segmented row. */\nbody[data-islands-ui] .kiGsTW_viewTabs {\n gap: 22px;\n}\n\nbody[data-islands-ui] .kiGsTW_tabActive:after {\n border-radius: 999px;\n height: 2px;\n}\n\n/* ==========================================================================\n Header utilities live in the window bar\n The three trailing controls (session tools, side panel, right panel) leave\n the conversation island and dock at the bar's right edge, vertically aligned\n with the workspace toggle on the left.\n ========================================================================== */\n@media (min-width: 768px) {\n body[data-islands-ui] .kiGsTW_headerUtilities {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: 41px; /* frame gap 5 + corner 28 + gap 8 */\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n\n body[data-islands-ui] .kiGsTW_headerCorner {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 31;\n height: 28px;\n margin: 0;\n align-items: center;\n }\n}\n\n/* ==========================================================================\n Always-visible right sidebar toggle\n The native header button unmounts while the panel is open and the panel\n carries its own collapse control. The top bar owns one persistent toggle\n instead, and closes through the native collapse action. It applies at every\n width: the narrow top bar keeps the same control.\n ========================================================================== */\n/* Body-portaled (see RightPanelToggle): keep it out of the DOM flow while the\n skin is off, so the base rule cannot leak a raw button into the page. */\n.isl-rightToggle {\n display: none;\n}\n\n/* z-index 900: above the workbench panel host (dsh-better-sidebar: host 25,\n dock 40, float 60, floating window 90) and the app's transient tooltip/\n hovercard layer (100), below menus and dialogs (1000+). The button is\n portaled to <body>, so this value competes with the body-level layers\n directly instead of being trapped in the frame's z-index-20 overlay layer. */\nbody[data-islands-ui] .isl-rightToggle {\n position: fixed;\n top: calc(var(--isl-chrome-top) + 10px);\n right: var(--isl-gap);\n z-index: 900;\n box-sizing: border-box;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n pointer-events: auto;\n -webkit-app-region: no-drag;\n}\n\nbody[data-islands-ui] .isl-rightToggle:hover,\nbody[data-islands-ui] .isl-rightToggle[aria-pressed='true'] {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-rightToggle:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: -2px;\n}\n\n/* The top bar owns open and close; the island's own expand/collapse\n controls would duplicate it. */\nbody[data-islands-ui] [data-sidebar-right-expand] {\n /* Keep the native expand button's box in the layout even though the top\n bar's toggle paints over it. Other header plugins anchor to this\n button's rect (dsh-better-sidebar's blank-session dock fallback does),\n and `display: none` collapses that rect to 0x0, sending them to the\n top-left corner where they collide with the workspace toggle. */\n visibility: hidden !important;\n pointer-events: none !important;\n}\n\nbody[data-islands-ui] [data-sidebar-right-toggle],\n/* dsh-sidenote's own \"侧边\" header entry is covered by the toggle above. */\nbody[data-islands-ui] ._5KEEsG_headerSide {\n display: none !important;\n}\n\n/* ---- 40-settings.css ---- */\n/* ==========================================================================\n Islands UI · 40 settings (and shared dialog surfaces)\n The settings window is an island; its navigation is a recessed island.\n ========================================================================== */\n\nbody[data-islands-ui] ._77Pn0W_overlay {\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_mask {\n background: var(--dsw-alias-bg-mask-1);\n backdrop-filter: var(--dsw-mask-blur);\n}\n\nbody[data-islands-ui] ._77Pn0W_panel {\n width: 860px;\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n border-radius: 24px;\n box-shadow: var(--isl-shadow-float);\n padding: 10px;\n gap: 8px;\n grid-template-columns: 188px minmax(0, 1fr);\n}\n\nbody[data-islands-ui] ._77Pn0W_navTitle {\n padding: 8px 8px 6px;\n font-size: 15px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\n/* The navigation mirrors the workspace list: no recessed panel, quiet rows. */\nbody[data-islands-ui] ._77Pn0W_nav {\n padding: 4px;\n background: transparent;\n border: 0;\n border-radius: 0;\n}\n\nbody[data-islands-ui] ._77Pn0W_navList {\n gap: 2px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell {\n height: 32px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 18px;\n gap: 8px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] ._77Pn0W_navCell._77Pn0W_active {\n background: var(--isl-active);\n color: var(--dsw-alias-label-primary);\n font-weight: 500;\n box-shadow: none;\n}\n\nbody[data-islands-ui] ._77Pn0W_navIcon {\n width: 16px;\n height: 16px;\n}\n\nbody[data-islands-ui] ._77Pn0W_navIcon svg {\n width: 100%;\n height: 100%;\n}\n\nbody[data-islands-ui] ._77Pn0W_header {\n height: 48px;\n padding: 6px 6px 0 8px;\n}\n\nbody[data-islands-ui] ._77Pn0W_options {\n padding: 0 8px 16px;\n background: transparent;\n}\n\nbody[data-islands-ui] ._77Pn0W_close {\n border-radius: var(--isl-radius-sm);\n}\n\n/* Cards stay white; separation comes from hairlines, not fills. */\nbody[data-islands-ui] ._77Pn0W_options [class*='_card'] {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._77Pn0W_options [class*='_section'] {\n border-radius: var(--isl-radius-md);\n background: transparent;\n}\n\n/* The general-page rows keep their separators but at island quietness. */\nbody[data-islands-ui] [data-slot='settings.general.item'] > * {\n border-bottom-color: var(--isl-border-soft);\n}\n\nbody[data-islands-ui] [data-slot='settings.general.item']:last-child > * {\n border-bottom: 0;\n}\n\n/* Dialogs opened from settings (confirmations, pickers). */\nbody[data-islands-ui] [role='dialog'] {\n border-radius: var(--isl-radius-xl);\n}\n\n/* Account page hero cards. */\nbody[data-islands-ui] .XGmX4q_card {\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n border: 1px solid var(--isl-border-soft);\n}\n\nbody[data-islands-ui] ._7lc4_a_balanceCard {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n background: var(--isl-surface);\n}\n\n/* ---- 45-model-picker.css ---- */\n/* ==========================================================================\n Islands UI · 45 composer model picker\n Trigger chip + model list + reasoning slider, in the Islands language.\n ========================================================================== */\n\nbody[data-islands-ui] .isl-model {\n position: relative;\n min-width: 0;\n}\n\nbody[data-islands-ui] .isl-modelTrigger {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 260px;\n height: 28px;\n padding: 0 8px;\n border: 1px solid transparent;\n border-radius: 999px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n transition: background-color 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:hover:not(:disabled) {\n background: var(--isl-surface-sunken);\n}\n\nbody[data-islands-ui] .isl-modelTrigger:disabled {\n opacity: 0.55;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-modelTrigger:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 1px;\n}\n\nbody[data-islands-ui] .isl-modelIcon {\n display: var(--dsh-composer-model-icon-display, none);\n flex: none;\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-modelName {\n display: var(--dsh-composer-model-text-display, inline);\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelEffort {\n display: var(--dsh-composer-model-text-display, inline);\n flex-shrink: 1000;\n min-width: 0;\n color: var(--dsw-alias-label-caption);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelChevron {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-caption);\n transition: transform 0.12s var(--ds-ease-in-out);\n}\n\nbody[data-islands-ui] .isl-modelChevron.is-open {\n transform: rotate(180deg);\n}\n\n/* ---- Menu ---------------------------------------------------------------- */\nbody[data-islands-ui] .isl-modelMenu {\n position: fixed;\n z-index: 1100;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n max-height: min(460px, calc(100vh - 24px));\n padding: 6px;\n border: 1px solid var(--isl-border-soft);\n border-radius: var(--isl-radius-lg);\n background: var(--isl-surface);\n box-shadow: var(--isl-shadow-float);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n line-height: 20px;\n overflow-y: auto;\n --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);\n --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);\n}\n\nbody[data-islands-ui] .isl-modelPaneHead {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 0 4px 6px;\n}\n\nbody[data-islands-ui] .isl-modelMenuTitle {\n padding: 2px 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n line-height: 18px;\n}\n\nbody[data-islands-ui] .isl-modelBack {\n display: grid;\n place-items: center;\n flex: none;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelBack:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelBackIcon {\n display: inline-flex;\n transform: rotate(90deg);\n}\n\nbody[data-islands-ui] .isl-modelGroups {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\nbody[data-islands-ui] .isl-modelGroup + .isl-modelGroup {\n margin-top: 6px;\n}\n\nbody[data-islands-ui] .isl-modelGroupName {\n padding: 6px 8px 2px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\nbody[data-islands-ui] .isl-modelOption {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 34px;\n padding: 6px 8px;\n border: 0;\n border-radius: var(--isl-radius-md);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-modelOption:hover {\n background: var(--isl-hover);\n}\n\nbody[data-islands-ui] .isl-modelOption.is-selected {\n background: var(--isl-surface-muted);\n}\n\nbody[data-islands-ui] .isl-modelOptionName {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-modelCheck {\n display: inline-flex;\n flex: none;\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-modelEmpty {\n padding: 10px 8px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n}\n\n/* ---- Reasoning effort ---------------------------------------------------- */\nbody[data-islands-ui] .isl-effortPopup {\n position: relative;\n padding: 9px 10px 8px;\n text-align: center;\n}\n\nbody[data-islands-ui] .isl-effortReset {\n position: absolute;\n top: 5px;\n right: 5px;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortReset:hover:not(:disabled) {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-primary);\n}\n\nbody[data-islands-ui] .isl-effortReset:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\nbody[data-islands-ui] .isl-effortName {\n color: var(--dsw-alias-state-business-primary);\n font-size: 18px;\n line-height: 24px;\n font-weight: 600;\n letter-spacing: -0.01em;\n}\n\nbody[data-islands-ui] .isl-effortModel {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 100%;\n margin-top: 1px;\n padding: 1px 6px;\n border: 0;\n border-radius: var(--isl-radius-sm);\n background: transparent;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 18px;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortModel:hover {\n background: var(--isl-hover);\n color: var(--dsw-alias-label-secondary);\n}\n\nbody[data-islands-ui] .isl-effortModelName {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nbody[data-islands-ui] .isl-effortModelChevron {\n display: inline-flex;\n flex: none;\n color: inherit;\n transform: rotate(-90deg);\n}\n\nbody[data-islands-ui] .isl-effortSliderWrap {\n position: relative;\n margin: 7px 2px 0;\n}\n\nbody[data-islands-ui] .isl-effortSlider {\n -webkit-appearance: none;\n appearance: none;\n display: block;\n width: 100%;\n height: 24px;\n margin: 0;\n padding: 0;\n background: transparent;\n cursor: pointer;\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-runnable-track {\n height: 20px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n var(--dsw-alias-state-business-primary) 0\n calc(12px + (100% - 24px) * var(--isl-ratio, 0)),\n var(--isl-surface-sunken) calc(12px + (100% - 24px) * var(--isl-ratio, 0)) 100%\n );\n}\n\nbody[data-islands-ui] .isl-effortSlider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n margin-top: -2px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n box-shadow:\n 0 1px 4px rgba(17, 24, 39, 0.22),\n 0 0 0 0.5px rgba(17, 24, 39, 0.06);\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible {\n outline: none;\n}\n\nbody[data-islands-ui] .isl-effortSlider:focus-visible::-webkit-slider-thumb {\n box-shadow:\n 0 0 0 3px color-mix(in srgb, var(--dsw-alias-state-business-primary) 26%, transparent),\n 0 1px 4px rgba(17, 24, 39, 0.22);\n}\n\nbody[data-islands-ui] .isl-effortDots {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px;\n pointer-events: none;\n}\n\nbody[data-islands-ui] .isl-effortDot {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: var(--isl-border-strong);\n}\n\nbody[data-islands-ui] .isl-effortDot.is-filled {\n background: rgba(255, 255, 255, 0.55);\n}\n\nbody[data-islands-ui] .isl-modelError {\n margin: 8px 8px 2px;\n padding: 6px 8px;\n border-radius: var(--isl-radius-sm);\n background: var(--dsw-alias-interactive-bg-hover-danger);\n color: var(--dsw-alias-state-error-primary);\n font-size: 11px;\n line-height: 16px;\n}\n\n/* ---- 50-components.css ---- */\n/* ==========================================================================\n Islands UI · 50 shared components\n Small, reusable pieces used by the skin's own surfaces. All values come from\n the token layer, so nothing here is page-specific.\n ========================================================================== */\n\n/* ---- Preference row (rendered into settings.general.item) ---------------- */\nbody[data-islands-ui] .isl-prefRow,\n.isl-prefRow {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\nbody[data-islands-ui] .isl-prefRow:last-child,\n.isl-prefRow:last-child {\n border-bottom: 0;\n}\n\n.isl-prefText {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n}\n\n.isl-prefTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 20px;\n}\n\n.isl-prefDesc {\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n/* ---- Switch -------------------------------------------------------------- */\n.isl-switch {\n position: relative;\n flex: none;\n width: 38px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n cursor: pointer;\n background: var(--dsw-alias-bg-layer-3);\n box-shadow: inset 0 0 0 1px var(--dsw-alias-border-l2);\n transition: background-color 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] {\n background: var(--dsw-alias-state-business-primary);\n box-shadow: none;\n}\n\n.isl-switch:focus-visible {\n outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n\n.isl-switchThumb {\n position: absolute;\n top: 3px;\n left: 3px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);\n transition: transform 0.15s var(--ds-ease-in-out);\n}\n\n.isl-switch[aria-checked='true'] .isl-switchThumb {\n transform: translateX(16px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-switch,\n .isl-switchThumb {\n transition: none;\n }\n}\n\n/* ---- Popover / menu materials ------------------------------------------- */\nbody[data-islands-ui] [data-menu-material] {\n border-radius: var(--isl-radius-lg);\n border: 1px solid var(--isl-border-soft);\n box-shadow: var(--isl-shadow-float);\n}\n\nbody[data-islands-ui] [role='dialog'],\nbody[data-islands-ui] [role='menu'],\nbody[data-islands-ui] [role='listbox'] {\n border-radius: var(--isl-radius-lg);\n}\n\n/* ---- Scrollbars ---------------------------------------------------------- */\nbody[data-islands-ui] ::-webkit-scrollbar-thumb {\n border-radius: 999px;\n}\n\n/* ---- Focus --------------------------------------------------------------- */\nbody[data-islands-ui] :focus-visible {\n outline-offset: 1px;\n}\n\n/* ---- Dedicated settings page ------------------------------------------- */\n.isl-settingsPage {\n box-sizing: border-box;\n max-width: 760px;\n padding: 4px 8px 24px;\n}\n\n.isl-settingsPageHead {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.isl-settingsPageLogo {\n display: inline-flex;\n flex: none;\n}\n\n.isl-settingsPageHeadText {\n min-width: 0;\n}\n\n.isl-settingsPageTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n line-height: 22px;\n}\n\n.isl-settingsPageDesc {\n margin-top: 4px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-settingsPage .isl-prefRow:first-of-type {\n margin-top: 12px;\n}\n\n/* Detected DSH release + sidebar dialect: diagnosis for support reports. */\n.isl-settingsMeta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 10px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\n.isl-settingsMetaValue {\n padding: 0 5px;\n border-radius: 4px;\n background: var(--isl-surface-muted);\n color: var(--dsw-alias-label-secondary);\n font-family: var(--dsw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 11px;\n}\n\n.isl-settingsMetaSeparator {\n opacity: 0.6;\n}\n\n.isl-accentPicker {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.isl-accentSwatch {\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 50%;\n background-clip: padding-box;\n cursor: pointer;\n transition:\n transform 0.12s var(--ds-ease-in-out),\n box-shadow 0.12s var(--ds-ease-in-out);\n}\n\n.isl-accentSwatch:hover {\n transform: scale(1.08);\n}\n\n.isl-accentSwatch.is-selected {\n box-shadow:\n 0 0 0 2px var(--dsw-alias-bg-base),\n 0 0 0 3.5px var(--dsw-alias-label-primary);\n}\n\n.isl-accentSwatch.is-default {\n background: linear-gradient(135deg, #ffffff 0 47%, #c4c8ce 47% 53%, #1b1c1f 53% 100%);\n}\n\n.isl-accentCustom {\n position: relative;\n display: grid;\n place-items: center;\n width: 24px;\n height: 24px;\n border: 1px dashed var(--dsw-alias-border-l3);\n border-radius: 50%;\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n}\n\n.isl-accentCustom::before {\n content: '+';\n font-size: 14px;\n line-height: 1;\n}\n\n.isl-accentCustom input {\n position: absolute;\n inset: -4px;\n width: 32px;\n height: 32px;\n opacity: 0;\n cursor: pointer;\n}\n\n\n/* ---- Compatibility notice ------------------------------------------------\n Rendered while the skin is OFF, so nothing here may rely on the `--isl-*`\n scale or on `body[data-islands-ui]`. Every custom property carries a\n fallback and every color comes from the public DSH theme tokens. */\n\n.isl-compatToast {\n position: fixed;\n right: 16px;\n bottom: 16px;\n z-index: 2000;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: min(380px, calc(100vw - 32px));\n padding: 12px 10px 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-left: 3px solid #e0a018;\n border-radius: var(--isl-radius-lg, 16px);\n background: var(--dsw-alias-bg-overlay, #ffffff);\n color: var(--dsw-alias-label-primary, #1f2328);\n box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.35);\n font-size: 13px;\n line-height: 19px;\n cursor: pointer;\n opacity: 0;\n transform: translateY(10px);\n transition:\n opacity 0.16s ease,\n transform 0.16s ease;\n}\n\n.isl-compatToast.is-visible {\n opacity: 1;\n transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .isl-compatToast {\n transition: none;\n }\n}\n\n.isl-compatToastBody {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatToastTitle {\n font-weight: 600;\n}\n\n.isl-compatToastText {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatToastAction {\n margin-top: 6px;\n color: #a86b00;\n font-size: 12px;\n font-weight: 600;\n}\n\n.isl-compatToastClose {\n flex: none;\n width: 22px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n}\n\n.isl-compatToastClose:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(17, 24, 39, 0.06));\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n/* The settings-page warning bar. */\n.isl-compatBanner {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n margin: 12px 0 4px;\n padding: 12px 14px;\n border: 1px solid rgba(224, 160, 24, 0.45);\n border-radius: var(--isl-radius-lg, 16px);\n background: rgba(240, 180, 41, 0.14);\n background: color-mix(in srgb, #f0b429 14%, transparent);\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n line-height: 20px;\n}\n\n.isl-compatBannerIcon {\n flex: none;\n display: inline-flex;\n margin-top: 1px;\n color: #b47400;\n}\n\n.isl-compatBannerText {\n flex: 1;\n min-width: 0;\n}\n\n.isl-compatBannerTitle {\n font-weight: 600;\n}\n\n.isl-compatBannerBody,\n.isl-compatBannerHint {\n margin-top: 2px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-compatBannerHint {\n margin-top: 6px;\n}\n\n.isl-compatBannerList {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n margin-top: 6px;\n color: var(--dsw-alias-label-secondary, #555b63);\n font-size: 12px;\n}\n\n.isl-compatAnchor {\n padding: 0 4px;\n border-radius: 4px;\n background: rgba(17, 24, 39, 0.06);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 11px;\n}\n\n.isl-compatBannerAction {\n flex: none;\n align-self: flex-start;\n padding: 5px 10px;\n border: 1px solid rgba(224, 160, 24, 0.5);\n border-radius: 8px;\n background: transparent;\n color: #8a5a00;\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n}\n\n.isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.18);\n}\n\n.isl-compatForced {\n margin: 8px 0 0;\n color: var(--dsw-alias-label-tertiary, #737a82);\n font-size: 12px;\n line-height: 18px;\n}\n\n.isl-switch:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n/* The notice renders while the skin is off, so darkness is read straight from\n the host theme attribute its own stylesheet uses. */\nbody[data-ds-dark-theme] .isl-compatBannerIcon {\n color: #e8b451;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction {\n border-color: rgba(240, 180, 41, 0.45);\n color: #f2c879;\n}\n\nbody[data-ds-dark-theme] .isl-compatBannerAction:hover {\n background: rgba(240, 180, 41, 0.16);\n}\n\nbody[data-ds-dark-theme] .isl-compatAnchor {\n background: rgba(255, 255, 255, 0.08);\n}\n\nbody[data-ds-dark-theme] .isl-compatToastAction {\n color: #f0c274;\n}";
15
+ /**
16
+ * Structure-specific stylesheets keyed by dialect. The base sheet covers
17
+ * the flat sidebar; releases that change the shell get a variant that is
18
+ * inlined only for the build the client detected.
19
+ */
20
+ const CSS_VARIANTS = {"scroll":"/* ==========================================================================\n Islands UI · sidebar variant: scroll containers\n Chosen at runtime for DSH releases from 0.2.2-rc.2, which wrapped the\n sidebar's panel list and workspace browser in\n `.kB3qhq_scrollRegion > .kB3qhq_scrollArea`. The base stylesheet keeps the\n pre-rc.2 flat layout; this file only corrects the wrapper placement.\n\n Every selector below names a class that does not exist in the older shell,\n so inlining it there is inert; the client still injects it only for the\n dialect it detected from `window.__DSH_BOOT__.release.version`.\n ========================================================================== */\n\n/* The browser column replaces the old direct `.kB3qhq_regionArea` grid item. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) > .kB3qhq_scrollRegion {\n grid-area: 3 / 2 / 5 / 3;\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n margin: 0;\n}\n\n/* The shipped grid only made sense inside the full-height shell; the island\n grid wants a plain column so the workspace browser can fill the island. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) > .kB3qhq_scrollRegion > .kB3qhq_scrollArea {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n margin: 0;\n overflow: hidden;\n}\n\nbody[data-islands-ui]\n .kB3qhq_root:not(.kB3qhq_collapsed)\n > .kB3qhq_scrollRegion\n > .kB3qhq_scrollArea\n > .kB3qhq_regionArea {\n flex: 1;\n min-height: 0;\n}\n\n/* The shipped bottom fade reads as a panel edge; the island supplies its own. */\nbody[data-islands-ui] .kB3qhq_root:not(.kB3qhq_collapsed) > .kB3qhq_scrollRegion > .kB3qhq_scrollFade {\n display: none;\n}\n\n/* 0.2.2-rc.2 moved the selected-panel state from `.panelRow` onto the wrapping\n `.panelEntry`, so mirror the base active rule for the shipped rail. */\nbody[data-islands-ui] .kB3qhq_root .kB3qhq_panelEntryActive .kB3qhq_panelRow {\n background: var(--dsw-specific-sidebar-nav-item-active-accent);\n color: var(--dsw-alias-state-business-primary);\n}"};
15
21
 
16
22
  const ATTRIBUTE = 'data-islands-ui';
17
23
  const STORAGE_KEY = 'dsh-islands-ui:enabled';
@@ -26,6 +32,14 @@ window.__ModuleLoader__.load({
26
32
  const REQUIRED_ANCHORS = ['.PIRFFq_frame', '.PIRFFq_centerCol'];
27
33
  const SIDEBAR_COLUMN = '.PIRFFq_sidebarCol';
28
34
  const SIDEBAR_ROOT = '.kB3qhq_root';
35
+ /**
36
+ * Sidebar-shell dialects in release order. `since` is the first DSH release
37
+ * that ships the dialect; a build older than every row keeps the base
38
+ * stylesheet. Add a row (and a matching `src/variants/<dialect>.css`) when
39
+ * DSH restructures the shell again.
40
+ */
41
+ const SHELL_DIALECTS = [{ since: '0.2.2-rc.2', dialect: 'scroll' }];
42
+ const SHELL_FLAT = 'flat';
29
43
  /** No shell content at all after this long: the build is unusable. */
30
44
  const COMPAT_TIMEOUT_MS = 6000;
31
45
  /** Content mounted but the frame anchor never showed up: rename, not slowness. */
@@ -34,7 +48,11 @@ window.__ModuleLoader__.load({
34
48
  let skinRegistrar = null;
35
49
  let publishRightbarWidth = null;
36
50
  let activated = false;
37
- let compatState = { status: 'checking', missing: [], forced: false };
51
+ /** Release reported by the client boot, and the stylesheet it selects. */
52
+ let shellVersion = null;
53
+ let shellDialect = SHELL_FLAT;
54
+ let styleTag = null;
55
+ let compatState = { status: 'checking', missing: [], forced: false, version: null, dialect: SHELL_FLAT };
38
56
  const compatListeners = new Set();
39
57
 
40
58
  /** Copy for the preference row; the row is the only user-facing string. */
@@ -72,6 +90,40 @@ window.__ModuleLoader__.load({
72
90
  pick: '选择模型',
73
91
  empty: '没有可用模型',
74
92
  failed: '切换失败',
93
+ updateAvailable: '发现新版本 {version}',
94
+ updateAvailablePlain: '发现新版本',
95
+ updateDownloading: '正在下载更新 {percent}%',
96
+ updateDownloadingDetail: '正在下载更新:{percent}%\n目标版本:{version}',
97
+ updateVerifying: '正在校验更新文件…',
98
+ updateInstalling: '正在准备重启…',
99
+ updateReady: '安装并重启',
100
+ updateReadyDetail: '新版本 {version} 已准备就绪,点击安装并重启',
101
+ updateRetry: '重试更新',
102
+ updateFailedCheck: '检查更新失败,请稍后重试。',
103
+ updateFailedCheckNetwork: '检查更新失败,请检查网络连接后重试。',
104
+ updateFailedDownload: '下载更新失败,请重试。',
105
+ updateFailedDownloadNetwork: '下载更新失败,请检查网络连接后重试。',
106
+ updateFailedInstall: '安装更新失败,请稍后重试。',
107
+ updateFailedInstallNetwork: '安装更新失败,请检查网络连接后重试。',
108
+ updateFailedStop: '未能安全停止任务,更新尚未安装,请稍后重试。',
109
+ updateFailedTasksChanged: '有新任务开始运行,请重新确认是否停止任务并更新。',
110
+ updateFailedTasksUnavailable: '无法确认任务状态,请在工作区就绪后重试更新。',
111
+ updateFailedFullscreen: '无法退出全屏,请退出全屏后重试更新。',
112
+ updateFailedGeneric: '更新失败,请稍后重试。',
113
+ updateConfigUnavailable: '配置不可用',
114
+ updateConfigRead: '更新已暂停:无法读取配置文件',
115
+ updateConfigFormat: '更新已暂停:配置文件格式有误',
116
+ updateConfigChannel: '更新已暂停:channel 只能是 nightly 或 stable',
117
+ updateConfigCleanup: '更新已暂停:无法清理旧更新,请重启应用',
118
+ updateConfigGeneric: '更新已暂停:配置不可用',
119
+ updateShowcaseTitle: '更新按钮状态',
120
+ updateShowcaseDesc: '桌面端设置齿轮上方的更新入口在各阶段的外观;没有可用更新时按钮隐藏。',
121
+ updateStateAvailable: '发现新版本',
122
+ updateStateDownloading: '下载中',
123
+ updateStateVerifying: '校验中',
124
+ updateStateInstalling: '准备重启',
125
+ updateStateReady: '安装并重启',
126
+ updateStateError: '更新失败',
75
127
  compatTitle: 'Islands UI 已自动关闭',
76
128
  compatBody: '当前 DSH 构建的界面结构与插件不匹配,皮肤已回退到默认外观,以免出现双栏重叠或控件遮挡。',
77
129
  compatView: '查看插件设置',
@@ -83,6 +135,10 @@ window.__ModuleLoader__.load({
83
135
  compatForce: '仍然启用',
84
136
  compatForced: '已强制启用,本次会话跳过自动检测。',
85
137
  compatDismiss: '关闭提示',
138
+ compatDetected: '检测到 DSH',
139
+ compatStructure: '侧栏结构',
140
+ compatStructureFlat: '平铺',
141
+ compatStructureScroll: '滚动容器',
86
142
  },
87
143
  en: {
88
144
  title: 'Islands interface',
@@ -118,6 +174,41 @@ window.__ModuleLoader__.load({
118
174
  pick: 'Select model',
119
175
  empty: 'No models available',
120
176
  failed: 'Selection failed',
177
+ updateAvailable: 'Update {version} available',
178
+ updateAvailablePlain: 'Update available',
179
+ updateDownloading: 'Downloading update {percent}%',
180
+ updateDownloadingDetail: 'Downloading update: {percent}%\nTarget version: {version}',
181
+ updateVerifying: 'Verifying update files…',
182
+ updateInstalling: 'Preparing to restart…',
183
+ updateReady: 'Install and restart',
184
+ updateReadyDetail: 'Version {version} is ready. Click to install and restart.',
185
+ updateRetry: 'Retry update',
186
+ updateFailedCheck: 'Could not check for updates. Please try again later.',
187
+ updateFailedCheckNetwork: 'Could not check for updates. Check your connection and try again.',
188
+ updateFailedDownload: 'Could not download the update. Please try again.',
189
+ updateFailedDownloadNetwork: 'Could not download the update. Check your connection and try again.',
190
+ updateFailedInstall: 'Could not install the update. Please try again later.',
191
+ updateFailedInstallNetwork: 'Could not install the update. Check your connection and try again.',
192
+ updateFailedStop: 'Could not safely stop the tasks. The update has not been installed. Please try again later.',
193
+ updateFailedTasksChanged: 'New tasks have started. Confirm again to stop the tasks and update.',
194
+ updateFailedTasksUnavailable: 'Task status is unavailable. Try updating again when the workspace is ready.',
195
+ updateFailedFullscreen: 'Could not exit fullscreen. Exit fullscreen, then retry the update.',
196
+ updateFailedGeneric: 'The update failed. Please try again later.',
197
+ updateConfigUnavailable: 'Configuration unavailable',
198
+ updateConfigRead: 'Updates paused: cannot read settings file',
199
+ updateConfigFormat: 'Updates paused: invalid settings file',
200
+ updateConfigChannel: 'Updates paused: channel must be nightly or stable',
201
+ updateConfigCleanup: 'Updates paused: cannot discard previous update; restart the app',
202
+ updateConfigGeneric: 'Updates paused: configuration unavailable',
203
+ updateShowcaseTitle: 'Update button states',
204
+ updateShowcaseDesc:
205
+ 'How the desktop update entry above the settings gear looks in each phase. It is hidden when no update is available.',
206
+ updateStateAvailable: 'Update available',
207
+ updateStateDownloading: 'Downloading',
208
+ updateStateVerifying: 'Verifying',
209
+ updateStateInstalling: 'Preparing restart',
210
+ updateStateReady: 'Install and restart',
211
+ updateStateError: 'Update failed',
121
212
  compatTitle: 'Islands UI turned itself off',
122
213
  compatBody:
123
214
  'This DSH build no longer matches the plugin, so the skin fell back to the default look instead of overlapping panels.',
@@ -131,6 +222,10 @@ window.__ModuleLoader__.load({
131
222
  compatForce: 'Enable anyway',
132
223
  compatForced: 'Enabled manually; automatic detection is skipped for this session.',
133
224
  compatDismiss: 'Dismiss',
225
+ compatDetected: 'Detected DSH',
226
+ compatStructure: 'Sidebar structure',
227
+ compatStructureFlat: 'flat',
228
+ compatStructureScroll: 'scroll containers',
134
229
  },
135
230
  };
136
231
 
@@ -246,6 +341,102 @@ window.__ModuleLoader__.load({
246
341
  }
247
342
  }
248
343
 
344
+ /**
345
+ * The DSH release this page booted with. The client module system publishes
346
+ * it in `window.__DSH_BOOT__.release` (shared with the CLI version), so a
347
+ * plugin can pick the stylesheet written for the running shell without a
348
+ * Host round trip.
349
+ */
350
+ function readDshVersion() {
351
+ try {
352
+ const release = window.__DSH_BOOT__?.release;
353
+ return typeof release?.version === 'string' && release.version !== '' ? release.version : null;
354
+ } catch {
355
+ return null;
356
+ }
357
+ }
358
+
359
+ function parseVersion(value) {
360
+ const match = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/u.exec(String(value).trim());
361
+ if (match === null) return null;
362
+ return {
363
+ core: [Number(match[1]), Number(match[2]), Number(match[3])],
364
+ pre: match[4] === undefined ? [] : match[4].split('.'),
365
+ };
366
+ }
367
+
368
+ /** Semver precedence, including numeric pre-release identifiers. */
369
+ function compareVersions(left, right) {
370
+ const a = parseVersion(left);
371
+ const b = parseVersion(right);
372
+ if (a === null || b === null) return null;
373
+ for (let index = 0; index < 3; index += 1) {
374
+ if (a.core[index] === b.core[index]) continue;
375
+ return a.core[index] < b.core[index] ? -1 : 1;
376
+ }
377
+ if (a.pre.length === 0 || b.pre.length === 0) {
378
+ return a.pre.length === b.pre.length ? 0 : a.pre.length === 0 ? 1 : -1;
379
+ }
380
+ const length = Math.max(a.pre.length, b.pre.length);
381
+ for (let index = 0; index < length; index += 1) {
382
+ const x = a.pre[index];
383
+ const y = b.pre[index];
384
+ if (x === undefined) return -1;
385
+ if (y === undefined) return 1;
386
+ const xNumeric = /^\d+$/u.test(x);
387
+ const yNumeric = /^\d+$/u.test(y);
388
+ if (xNumeric && yNumeric) {
389
+ const diff = Number(x) - Number(y);
390
+ if (diff !== 0) return diff < 0 ? -1 : 1;
391
+ } else if (xNumeric !== yNumeric) {
392
+ // Numeric identifiers always sort before alphanumeric ones.
393
+ return xNumeric ? -1 : 1;
394
+ } else if (x !== y) {
395
+ return x < y ? -1 : 1;
396
+ }
397
+ }
398
+ return 0;
399
+ }
400
+
401
+ /** Dialect the reported release ships; null when the version is unreadable. */
402
+ function dialectForVersion(version) {
403
+ if (version === null || parseVersion(version) === null) return null;
404
+ let dialect = SHELL_FLAT;
405
+ for (const row of SHELL_DIALECTS) {
406
+ const order = compareVersions(version, row.since);
407
+ if (order !== null && order >= 0) dialect = row.dialect;
408
+ }
409
+ return dialect;
410
+ }
411
+
412
+ /**
413
+ * Structure the mounted shell actually uses, read from the housekeeping
414
+ * classes rather than the version: `flat` is the pre-0.2.2-rc.2 sidebar,
415
+ * `scroll` the one wrapped in scroll containers, and `unknown` a shell no
416
+ * stylesheet was written against. Null means the shell has not mounted.
417
+ */
418
+ function detectShellDialect() {
419
+ const root = document.querySelector(SIDEBAR_ROOT);
420
+ if (root === null) return null;
421
+ const scrollRegion = root.querySelector(':scope > .kB3qhq_scrollRegion');
422
+ if (scrollRegion !== null) {
423
+ return scrollRegion.querySelector(':scope > .kB3qhq_scrollArea') !== null ? 'scroll' : 'unknown';
424
+ }
425
+ return root.querySelector(':scope > .kB3qhq_regionArea') !== null ? SHELL_FLAT : 'unknown';
426
+ }
427
+
428
+ function stylesheetFor(dialect) {
429
+ const variant = CSS_VARIANTS[dialect];
430
+ if (typeof variant !== 'string' || variant === '') return CSS;
431
+ return `${CSS}\n\n/* ---- variant: ${dialect} ---- */\n${variant}`;
432
+ }
433
+
434
+ /** Swap the injected stylesheet when the detected structure changes. */
435
+ function applyStylesheet(dialect) {
436
+ shellDialect = dialect;
437
+ if (styleTag !== null) styleTag.textContent = stylesheetFor(dialect);
438
+ }
439
+
249
440
  /** Which anchors of the running DSH build are gone. */
250
441
  function missingAnchors() {
251
442
  const missing = REQUIRED_ANCHORS.filter((selector) => document.querySelector(selector) === null);
@@ -254,6 +445,11 @@ window.__ModuleLoader__.load({
254
445
  if (document.querySelector(SIDEBAR_COLUMN) !== null && document.querySelector(SIDEBAR_ROOT) === null) {
255
446
  missing.push(SIDEBAR_ROOT);
256
447
  }
448
+ // A shell that matches no known dialect cannot be styled without the
449
+ // half-applied layout this gate exists to prevent.
450
+ if (detectShellDialect() === 'unknown') {
451
+ missing.push(shellDialect === 'scroll' ? '.kB3qhq_scrollRegion > .kB3qhq_scrollArea' : '.kB3qhq_regionArea');
452
+ }
257
453
  return missing;
258
454
  }
259
455
 
@@ -365,6 +561,70 @@ window.__ModuleLoader__.load({
365
561
  );
366
562
  }
367
563
 
564
+ function DownloadGlyph() {
565
+ return h(
566
+ 'svg',
567
+ { width: 18, height: 18, viewBox: '0 0 20 20', fill: 'none', 'aria-hidden': true },
568
+ h('path', { d: 'M10 3.4v8.2', stroke: 'currentColor', strokeWidth: 1.7, strokeLinecap: 'round' }),
569
+ h('path', { d: 'm6.7 8.7 3.3 3.3 3.3-3.3', stroke: 'currentColor', strokeWidth: 1.7, strokeLinecap: 'round', strokeLinejoin: 'round' }),
570
+ h('path', { d: 'M4.5 15.6h11', stroke: 'currentColor', strokeWidth: 1.7, strokeLinecap: 'round' }),
571
+ );
572
+ }
573
+
574
+ function RestartGlyph() {
575
+ return h(
576
+ 'svg',
577
+ { width: 18, height: 18, viewBox: '0 0 20 20', fill: 'none', 'aria-hidden': true },
578
+ h('path', { d: 'M16.4 8.1A6.5 6.5 0 1 0 16.4 12', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round' }),
579
+ h('path', { d: 'M16.4 3.9v4.2h-4.2', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' }),
580
+ );
581
+ }
582
+
583
+ function DotMatrixGlyph({ variant }) {
584
+ const rings = [2, 1, 2, 1, 0, 1, 2, 1, 2];
585
+ const smiley = new Set([0, 2, 7]);
586
+ // Windows for the 720 ms smiley rotation: each cell is lit for one or
587
+ // two 180 ms phases; the first cell wraps across the cycle boundary.
588
+ const phases = [
589
+ { span: 'wrap', delay: 0 },
590
+ { span: 1, delay: 360 },
591
+ { span: 2, delay: 0 },
592
+ { span: 1, delay: 180 },
593
+ { span: null, delay: 0 },
594
+ { span: 1, delay: 540 },
595
+ { span: 2, delay: 360 },
596
+ { span: 1, delay: 0 },
597
+ { span: 2, delay: 180 },
598
+ ];
599
+ return h(
600
+ 'span',
601
+ { className: `isl-dmx isl-dmx-${variant}`, 'aria-hidden': true },
602
+ Array.from({ length: 9 }, (_, index) =>
603
+ h('span', {
604
+ key: index,
605
+ className: 'isl-dmx-dot',
606
+ 'data-col': index % 3,
607
+ 'data-ring': rings[index],
608
+ 'data-on': smiley.has(index) ? '1' : '0',
609
+ 'data-span': variant === 'smiley' ? phases[index].span ?? undefined : undefined,
610
+ style:
611
+ variant === 'smiley'
612
+ ? { animationDelay: `${phases[index].delay}ms` }
613
+ : { '--dmx-col': index % 3, '--dmx-ring': rings[index] },
614
+ }),
615
+ ),
616
+ );
617
+ }
618
+
619
+ /** Shared face for the live rail button and the settings showcase. */
620
+ function UpdateGlyph({ phase }) {
621
+ if (phase === 'available') return h(DownloadGlyph);
622
+ if (phase === 'ready' || phase === 'error') return h(RestartGlyph);
623
+ if (phase === 'downloading') return h(DotMatrixGlyph, { variant: 'column' });
624
+ if (phase === 'verifying') return h(DotMatrixGlyph, { variant: 'smiley' });
625
+ return h(DotMatrixGlyph, { variant: 'ripple' });
626
+ }
627
+
368
628
  function readRailPins() {
369
629
  try {
370
630
  const raw = window.localStorage.getItem(RAIL_PIN_KEY);
@@ -775,6 +1035,239 @@ window.__ModuleLoader__.load({
775
1035
  );
776
1036
  }
777
1037
 
1038
+ /**
1039
+ * The desktop preload exposes update state only to the product page. Keep
1040
+ * the lookup optional so the same bundle stays inert in a plain browser.
1041
+ */
1042
+ function desktopUpdateBridge() {
1043
+ try {
1044
+ const bridge = globalThis.dshDesktop;
1045
+ return bridge?.protocolVersion === 1 ? bridge.updates : undefined;
1046
+ } catch {
1047
+ return undefined;
1048
+ }
1049
+ }
1050
+
1051
+ function formatCopy(template, values) {
1052
+ return String(template).replace(/\{(\w+)\}/g, (match, key) =>
1053
+ values[key] === undefined ? match : String(values[key]),
1054
+ );
1055
+ }
1056
+
1057
+ const UPDATE_FAILURE_KEYS = {
1058
+ check: 'updateFailedCheck',
1059
+ 'check-network': 'updateFailedCheckNetwork',
1060
+ download: 'updateFailedDownload',
1061
+ 'download-network': 'updateFailedDownloadNetwork',
1062
+ install: 'updateFailedInstall',
1063
+ 'install-network': 'updateFailedInstallNetwork',
1064
+ 'stop-failed': 'updateFailedStop',
1065
+ 'tasks-changed': 'updateFailedTasksChanged',
1066
+ 'tasks-unavailable': 'updateFailedTasksUnavailable',
1067
+ 'fullscreen-timeout': 'updateFailedFullscreen',
1068
+ };
1069
+
1070
+ function updateFailureCopy(state, copy) {
1071
+ const key = UPDATE_FAILURE_KEYS[state?.failure] ?? 'updateFailedGeneric';
1072
+ return copy[key] ?? copy.updateFailedGeneric;
1073
+ }
1074
+
1075
+ const UPDATE_CONFIGURATION_KEYS = {
1076
+ read: 'updateConfigRead',
1077
+ format: 'updateConfigFormat',
1078
+ channel: 'updateConfigChannel',
1079
+ cleanup: 'updateConfigCleanup',
1080
+ };
1081
+
1082
+ /** DSH 0.2.2-rc.2 added channel configuration failures to the presentation. */
1083
+ function updateConfigurationCopy(state, copy) {
1084
+ const key = UPDATE_CONFIGURATION_KEYS[state?.configurationError] ?? 'updateConfigGeneric';
1085
+ return {
1086
+ label: copy.updateConfigUnavailable,
1087
+ detail: copy[key] ?? copy.updateConfigGeneric,
1088
+ };
1089
+ }
1090
+
1091
+ function updatePresentationCopy(state, failed, copy) {
1092
+ if (failed) return { label: copy.updateRetry, detail: copy.updateRetry };
1093
+ if (typeof state?.configurationError === 'string') return updateConfigurationCopy(state, copy);
1094
+ const version = typeof state?.version === 'string' ? state.version : undefined;
1095
+ switch (state?.phase) {
1096
+ case 'available': {
1097
+ const label = version === undefined
1098
+ ? copy.updateAvailablePlain
1099
+ : formatCopy(copy.updateAvailable, { version });
1100
+ return { label, detail: label };
1101
+ }
1102
+ case 'downloading': {
1103
+ const percent = Math.max(0, Math.min(100, Math.round(Number(state.percent) || 0)));
1104
+ const label = formatCopy(copy.updateDownloading, { percent });
1105
+ return {
1106
+ label,
1107
+ detail: version === undefined
1108
+ ? label
1109
+ : formatCopy(copy.updateDownloadingDetail, { percent, version }),
1110
+ };
1111
+ }
1112
+ case 'verifying':
1113
+ return { label: copy.updateVerifying, detail: copy.updateVerifying };
1114
+ case 'installing':
1115
+ return { label: copy.updateInstalling, detail: copy.updateInstalling };
1116
+ case 'ready':
1117
+ return {
1118
+ label: copy.updateReady,
1119
+ detail: version === undefined
1120
+ ? copy.updateReady
1121
+ : formatCopy(copy.updateReadyDetail, { version }),
1122
+ };
1123
+ case 'error':
1124
+ return { label: copy.updateRetry, detail: updateFailureCopy(state, copy) };
1125
+ default:
1126
+ return { label: '', detail: '' };
1127
+ }
1128
+ }
1129
+
1130
+ /** One subscription shared by the rail button; null until the bridge answers. */
1131
+ function useDesktopUpdate() {
1132
+ const updates = React.useMemo(() => desktopUpdateBridge(), []);
1133
+ const [view, setView] = React.useState({ state: undefined, failed: false });
1134
+
1135
+ React.useEffect(() => {
1136
+ if (updates === undefined) return undefined;
1137
+ let live = true;
1138
+ let received = false;
1139
+ const apply = (state) => {
1140
+ if (!live) return;
1141
+ received = true;
1142
+ setView({ state, failed: false });
1143
+ };
1144
+ let unsubscribe;
1145
+ try {
1146
+ unsubscribe = updates.subscribe?.(apply);
1147
+ } catch {
1148
+ /* a bridge without a subscriber still gets the status probe */
1149
+ }
1150
+ Promise.resolve()
1151
+ .then(() => updates.status())
1152
+ .then(
1153
+ (state) => {
1154
+ if (live && !received) apply(state);
1155
+ },
1156
+ () => {
1157
+ if (live && !received) setView({ state: undefined, failed: true });
1158
+ },
1159
+ );
1160
+ return () => {
1161
+ live = false;
1162
+ try {
1163
+ unsubscribe?.();
1164
+ } catch {
1165
+ /* already detached by the shell */
1166
+ }
1167
+ };
1168
+ }, [updates]);
1169
+
1170
+ return { updates, ...view };
1171
+ }
1172
+
1173
+ /**
1174
+ * Desktop update entry above the settings gear. Available and ready are
1175
+ * actionable; busy phases are a 3x3 dot-matrix animation; failures keep
1176
+ * the same footprint with a danger tint and a retry glyph.
1177
+ */
1178
+ function IslandsUpdateButton() {
1179
+ const { updates, state, failed } = useDesktopUpdate();
1180
+ const [pending, setPending] = React.useState(false);
1181
+ const enabled = useEnabled();
1182
+ const lang = useLocale() ?? 'en';
1183
+ const copy = String(lang).toLowerCase().startsWith('zh') ? COPY.zh : COPY.en;
1184
+ const configurationError = typeof state?.configurationError === 'string';
1185
+ const phase = failed || configurationError ? 'error' : state?.phase;
1186
+ if (!enabled || updates === undefined || phase === undefined || phase === 'idle') return null;
1187
+ if (!['available', 'downloading', 'verifying', 'installing', 'ready', 'error'].includes(phase)) return null;
1188
+
1189
+ const clickable = phase === 'available' || phase === 'ready' || phase === 'error';
1190
+ const busy = pending || phase === 'downloading' || phase === 'verifying' || phase === 'installing';
1191
+ const { label, detail } = updatePresentationCopy(state, failed, copy);
1192
+ const open = () => {
1193
+ if (!clickable || pending) return;
1194
+ setPending(true);
1195
+ Promise.resolve()
1196
+ .then(() => updates.open())
1197
+ .catch(() => {})
1198
+ .finally(() => setPending(false));
1199
+ };
1200
+
1201
+ return h(
1202
+ 'button',
1203
+ {
1204
+ type: 'button',
1205
+ className: `isl-updateButton is-${phase}${clickable ? ' is-clickable' : ''}${pending ? ' is-pending' : ''}`,
1206
+ 'data-phase': phase,
1207
+ 'data-clickable': clickable ? 'true' : 'false',
1208
+ title: detail,
1209
+ 'aria-label': label,
1210
+ 'aria-disabled': clickable ? undefined : 'true',
1211
+ 'aria-busy': busy ? 'true' : undefined,
1212
+ onClick: open,
1213
+ },
1214
+ h(UpdateGlyph, { phase }),
1215
+ phase === 'error' ? h('span', { className: 'isl-updateErrorDot', 'aria-hidden': true }) : null,
1216
+ );
1217
+ }
1218
+
1219
+ const UPDATE_SHOWCASE_PHASES = ['available', 'downloading', 'verifying', 'installing', 'ready', 'error'];
1220
+ const UPDATE_STATE_LABELS = {
1221
+ available: 'updateStateAvailable',
1222
+ downloading: 'updateStateDownloading',
1223
+ verifying: 'updateStateVerifying',
1224
+ installing: 'updateStateInstalling',
1225
+ ready: 'updateStateReady',
1226
+ error: 'updateStateError',
1227
+ };
1228
+
1229
+ /** Static, non-interactive copies of the rail button for the settings page. */
1230
+ function IslandsUpdateShowcase({ copy }) {
1231
+ return h(
1232
+ 'div',
1233
+ { className: 'isl-updateShowcase' },
1234
+ h(
1235
+ 'div',
1236
+ { className: 'isl-updateShowcaseHead' },
1237
+ h('div', { className: 'isl-updateShowcaseTitle' }, copy.updateShowcaseTitle),
1238
+ h('div', { className: 'isl-updateShowcaseDesc' }, copy.updateShowcaseDesc),
1239
+ ),
1240
+ h(
1241
+ 'div',
1242
+ { className: 'isl-updateShowcaseGrid' },
1243
+ UPDATE_SHOWCASE_PHASES.map((phase) => {
1244
+ const label = copy[UPDATE_STATE_LABELS[phase]] ?? phase;
1245
+ return h(
1246
+ 'div',
1247
+ { className: 'isl-updateShowcaseItem', key: phase },
1248
+ h(
1249
+ 'div',
1250
+ { className: 'isl-updateShowcaseStage' },
1251
+ h(
1252
+ 'span',
1253
+ {
1254
+ className: `isl-updateButton is-preview is-${phase}`,
1255
+ 'data-phase': phase,
1256
+ title: label,
1257
+ 'aria-hidden': 'true',
1258
+ },
1259
+ h(UpdateGlyph, { phase }),
1260
+ phase === 'error' ? h('span', { className: 'isl-updateErrorDot' }) : null,
1261
+ ),
1262
+ ),
1263
+ h('div', { className: 'isl-updateShowcaseLabel' }, label),
1264
+ h('div', { className: 'isl-updateShowcasePhase' }, phase),
1265
+ );
1266
+ }),
1267
+ ),
1268
+ );
1269
+ }
1270
+
778
1271
  const EMPTY_MENU_STATE = Object.freeze({ current: null, groups: [], status: 'idle', retainedEffort: undefined, error: null });
779
1272
 
780
1273
  function modelIn(groups, selection) {
@@ -1503,8 +1996,12 @@ window.__ModuleLoader__.load({
1503
1996
  if (settled) return;
1504
1997
  settled = true;
1505
1998
  stop();
1506
- setCompat({ status: 'missing', missing, forced: false });
1507
- console.warn('[islands-ui] interface anchors missing; the skin stayed off:', missing);
1999
+ setCompat({ status: 'missing', missing, forced: false, version: shellVersion, dialect: shellDialect });
2000
+ console.warn('[islands-ui] interface anchors missing; the skin stayed off:', {
2001
+ version: shellVersion,
2002
+ dialect: shellDialect,
2003
+ missing,
2004
+ });
1508
2005
  // Someone who already switched the skin off does not need a popup; the
1509
2006
  // settings page still carries the explanation.
1510
2007
  if (readStored()) showCompatibilityToast();
@@ -1514,13 +2011,25 @@ window.__ModuleLoader__.load({
1514
2011
  if (settled) return;
1515
2012
  settled = true;
1516
2013
  stop();
1517
- setCompat({ status: 'ok', missing: [], forced: false });
2014
+ setCompat({ status: 'ok', missing: [], forced: false, version: shellVersion, dialect: shellDialect });
1518
2015
  activate();
1519
2016
  };
1520
2017
 
1521
2018
  const settle = () => {
1522
2019
  frameHandle = null;
1523
2020
  if (settled) return;
2021
+ // The version map picks the stylesheet, but the DOM is the authority on
2022
+ // what is actually rendered: if they disagree, trust the structure and
2023
+ // swap the variant before the skin turns on.
2024
+ const structure = detectShellDialect();
2025
+ if (structure !== null && structure !== 'unknown' && structure !== shellDialect) {
2026
+ console.warn('[islands-ui] shell structure differs from the reported version; selecting the matching stylesheet', {
2027
+ version: shellVersion,
2028
+ expected: shellDialect,
2029
+ actual: structure,
2030
+ });
2031
+ applyStylesheet(structure);
2032
+ }
1524
2033
  const missing = missingAnchors();
1525
2034
  if (missing.length === 0) {
1526
2035
  pass();
@@ -1583,7 +2092,9 @@ window.__ModuleLoader__.load({
1583
2092
  } catch {
1584
2093
  /* private mode: the choice still applies for this page. */
1585
2094
  }
1586
- setCompat({ status: 'ok', missing: [], forced: true });
2095
+ const structure = detectShellDialect();
2096
+ if (structure !== null && structure !== 'unknown') applyStylesheet(structure);
2097
+ setCompat({ status: 'ok', missing: [], forced: true, version: shellVersion, dialect: shellDialect });
1587
2098
  activate();
1588
2099
  }
1589
2100
 
@@ -1680,6 +2191,19 @@ window.__ModuleLoader__.load({
1680
2191
  h('div', { className: 'isl-settingsPageDesc' }, copy.description),
1681
2192
  ),
1682
2193
  ),
2194
+ h(
2195
+ 'div',
2196
+ { className: 'isl-settingsMeta' },
2197
+ h('span', null, copy.compatDetected),
2198
+ h('code', { className: 'isl-settingsMetaValue' }, shellVersion ?? 'unknown'),
2199
+ h('span', { className: 'isl-settingsMetaSeparator', 'aria-hidden': true }, '·'),
2200
+ h('span', null, copy.compatStructure),
2201
+ h(
2202
+ 'code',
2203
+ { className: 'isl-settingsMetaValue' },
2204
+ shellDialect === 'scroll' ? copy.compatStructureScroll : copy.compatStructureFlat,
2205
+ ),
2206
+ ),
1683
2207
  h(CompatibilityBanner, { copy, compat, onForce: forceEnable }),
1684
2208
  compat.forced ? h('div', { className: 'isl-compatForced' }, copy.compatForced) : null,
1685
2209
  h(
@@ -1751,6 +2275,9 @@ window.__ModuleLoader__.load({
1751
2275
  ),
1752
2276
  ),
1753
2277
  ),
2278
+ // Preview hidden on request. The component and its styles stay in place;
2279
+ // restore the next line to show the state gallery again.
2280
+ // h(IslandsUpdateShowcase, { copy }),
1754
2281
  );
1755
2282
  }
1756
2283
 
@@ -1779,13 +2306,22 @@ window.__ModuleLoader__.load({
1779
2306
  slotsService = ctx.slots;
1780
2307
  applyAccent(readAccent());
1781
2308
 
2309
+ // Pick the stylesheet before the first paint: the base sheet plus the
2310
+ // variant of the release the client booted with. The compatibility gate
2311
+ // verifies the mounted structure and can still swap it before the skin
2312
+ // turns on.
2313
+ shellVersion = readDshVersion();
2314
+ shellDialect = dialectForVersion(shellVersion) ?? SHELL_FLAT;
2315
+
1782
2316
  ctx.effect(() => {
1783
2317
  const tag = document.createElement('style');
1784
2318
  tag.dataset.plugin = 'dsh-islands-ui';
1785
2319
  tag.dataset.pluginCss = 'dsh-islands-ui/islands.css';
1786
- tag.textContent = CSS;
2320
+ tag.textContent = stylesheetFor(shellDialect);
2321
+ styleTag = tag;
1787
2322
  document.head.appendChild(tag);
1788
2323
  return () => {
2324
+ styleTag = null;
1789
2325
  tag.remove();
1790
2326
  document.body?.removeAttribute(ATTRIBUTE);
1791
2327
  };
@@ -1881,6 +2417,10 @@ window.__ModuleLoader__.load({
1881
2417
  ctx.slots.register({ name: 'shell.overlay', id: 'islands-rail-settings', order: -89 }, IslandsRailSettings),
1882
2418
  );
1883
2419
 
2420
+ ctx.slots.inject('shell.overlay', () =>
2421
+ ctx.slots.register({ name: 'shell.overlay', id: 'islands-update', order: -87 }, IslandsUpdateButton),
2422
+ );
2423
+
1884
2424
  ctx.slots.inject('shell.overlay', () =>
1885
2425
  ctx.slots.register({ name: 'shell.overlay', id: 'islands-pinned', order: -88 }, IslandsPinnedSection),
1886
2426
  );
@@ -2008,7 +2548,9 @@ window.__ModuleLoader__.load({
2008
2548
  );
2009
2549
 
2010
2550
  if (isForced()) {
2011
- setCompat({ status: 'ok', missing: [], forced: true });
2551
+ const structure = detectShellDialect();
2552
+ if (structure !== null && structure !== 'unknown') applyStylesheet(structure);
2553
+ setCompat({ status: 'ok', missing: [], forced: true, version: shellVersion, dialect: shellDialect });
2012
2554
  activate();
2013
2555
  return;
2014
2556
  }