@msb235/blits-panel 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/index.js +4211 -362
- package/dist/index.js.map +1 -1
- package/dist/ui/path.d.ts +2 -0
- package/package.json +6 -8
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ui","css","CSS","CSS","_Fragment","hueColor","hue","voiceHue","id","SVG","same","Circles","svg","rings","c","i","at","screen","ring","edge","Ids","object","subject","b","WINDOW_MS","CAP","AHEAD_MS","AHEAD_CAP_MS","Samples","windowMs","cap","list","last","s","drop","times","values","colors","weights","k","v","col","marksOf","now","timestamp","rate","back","backMs","KEY","slot","offer","o","offered","Outline","rect","picking","box","outline","opts","inPanel","ev","custom","x","y","hooks","els","el","n","e","onMove","onClick","hit","arm","onKey","armed","on","DEPTH","flatten","pose","key","depth","out","colorsOf","css","layersOf","isColor","kind","readPose","fields","named","entry","name","isNumbers","part","partsOf","BACKFILL_MS","BACKFILL_STEP_MS","LIST_MS","VOICES_MS","agent","fns","ids","registry","watched","curId","unwatch","hold","elsewhere","lastList","voicesAt","lastMarks","owners","circles","circling","emit","fn","event","entries","byId","current","mixInfo","sendMixes","holdInfo","sendHold","voices","handles","live","h","cued","weight","sendVoices","sendMarks","drawCircles","circle","text","subjectList","sendSubjects","next","sampleOf","p","frame","read","backfill","from","onFrame","freeHold","pickMix","pickSubject","listed","send","pickOnly","only","rest","offRegistry","change","timer","panelStyles","rangeOf","lo","hi","series","pad","insetRange","px","size","pathOf","d","pen","t","LABEL_ROOM","CSS$2","ChannelPlot","span","yMin","yMax","height","xMin","xMax","range","modelToPlot","playhead","label","Plot2D","ser","SHOWN","LAYER","GAP","CSS$1","ColorStrip","check","useId","layers","row","j","bands","cells","x0","x1","width","playing","lanesOf","known","byVoice","track","announced","m","marks","byKey","lane","lanes","l","a","axisOf","first","head","earliest","furthest","to","two","clockText","ms","sign","cs","secs","mins","hours","LANE","MAX_LANES","CHAR_PX","CSS","Plan","all","shown","rows","ahead","LaneRow","markTitle","labels","show","color","SpanBar","open","ends","free","Plots","useMemo","samples","drawn","picked","plan","mix","unread","names","weighed","w","initial","reduce","RATES","STEP_MS","PLACE","placed","kept","keep","onScreen","Panel","dispatch","useReducer","useRef","place","setPlace","useState","query","setQuery","hovered","setHovered","source","frontier","queued","draw","later","off","held","move","drag","target","onUp","clock","Fragment","docked","r","bar","Notes","note","mount","before","ours","createHistory","host","shadow","sheet","style","mountPoint","page","root","createRoot","ThemeProvider","gone","encode","value","decode","wireSource","stop","wire","command","serve","listen"],"sources":["../src/ui/hue.ts","../src/circles.ts","../src/ids.ts","../src/store.ts","../src/marks.ts","../src/offer.ts","../src/outline.ts","../src/picking.ts","../src/pose.ts","../src/agent.ts","../../../node_modules/@weasel-js/ui/dist/style.css?inline","../src/ui/panel.css?inline","../src/styles.ts","../src/ui/path.ts","../src/ui/ChannelPlot.tsx","../src/ui/ColorStrip.tsx","../src/ui/lanes.ts","../src/ui/time.ts","../src/ui/Plan.tsx","../src/ui/Plots.tsx","../src/ui/Panel.tsx","../src/mount.tsx","../src/wire.ts"],"sourcesContent":["export const hueColor = (hue: number) => `hsl(${hue} 70% 62%)`;\n\n/** A voice's hue, the same in every view that draws it. */\nexport const voiceHue = (id: number) => (id * 67) % 360;\n","import { hueColor, voiceHue } from './ui/hue.js';\n\nconst SVG = 'http://www.w3.org/2000/svg';\n\n/** A bounded voice's circle, in the units of the positions the mix was given. */\nexport interface Ring {\n voice: number;\n x: number;\n y: number;\n r: number;\n}\n\n/** Where a point in the mix's positions is on screen, in client coordinates. */\nexport type Screen = (x: number, y: number) => { x: number; y: number };\n\nconst same: Screen = (x, y) => ({ x, y });\n\n/** Draws each bounded voice's circle over the page, in the voice's hue. */\nexport class Circles {\n private svg: SVGSVGElement | null = null;\n\n draw(rings: readonly Ring[], screen: Screen = same): void {\n if (this.svg === null) {\n this.svg = document.createElementNS(SVG, 'svg');\n this.svg.setAttribute('data-blits-panel', 'circles');\n Object.assign(this.svg.style, {\n position: 'fixed',\n inset: '0',\n width: '100vw',\n height: '100vh',\n pointerEvents: 'none',\n zIndex: '2147483646',\n overflow: 'visible',\n });\n document.body.appendChild(this.svg);\n }\n const svg = this.svg;\n while (svg.childNodes.length > rings.length) svg.lastChild?.remove();\n rings.forEach((ring, i) => {\n let c = svg.childNodes[i] as SVGCircleElement | undefined;\n if (c === undefined) {\n c = document.createElementNS(SVG, 'circle');\n c.setAttribute('fill', 'none');\n c.setAttribute('stroke-width', '1.5');\n c.setAttribute('stroke-dasharray', '6 4');\n svg.appendChild(c);\n }\n const at = screen(ring.x, ring.y);\n const edge = screen(ring.x + ring.r, ring.y);\n c.setAttribute('cx', String(at.x));\n c.setAttribute('cy', String(at.y));\n c.setAttribute('r', String(Math.hypot(edge.x - at.x, edge.y - at.y)));\n c.setAttribute('stroke', hueColor(voiceHue(ring.voice)));\n });\n }\n\n clear(): void {\n this.svg?.remove();\n this.svg = null;\n }\n}\n","/** Numbers subjects as they cross the seam, holding the objects weakly. */\nexport class Ids {\n private weak = new WeakMap<object, number>();\n private strong = new Map<unknown, number>();\n private back = new Map<number, WeakRef<object> | { value: unknown }>();\n private next = 1;\n\n of(subject: unknown): number {\n const object = typeof subject === 'object' && subject !== null;\n let id = object ? this.weak.get(subject) : this.strong.get(subject);\n if (id !== undefined) return id;\n id = this.next++;\n if (object) {\n this.weak.set(subject, id);\n this.back.set(id, new WeakRef(subject));\n } else {\n this.strong.set(subject, id);\n this.back.set(id, { value: subject });\n }\n return id;\n }\n\n /** Forgets the ids of subjects that have been collected. */\n prune(): void {\n for (const [id, b] of this.back)\n if (b instanceof WeakRef && b.deref() === undefined) this.back.delete(id);\n }\n\n get(id: number): unknown {\n const b = this.back.get(id);\n if (b === undefined) return undefined;\n return b instanceof WeakRef ? b.deref() : b.value;\n }\n}\n","import type { Sample } from './protocol.js';\n\n/** How much the plots keep: this much mix time, and never more frames than `cap`. */\nexport const WINDOW_MS = 10_000;\nexport const CAP = 1200;\n/** How far past now the axis always runs, ms of mix time, and how far a mark ahead can stretch it. */\nexport const AHEAD_MS = 2_000;\nexport const AHEAD_CAP_MS = 30_000;\n\n/**\n * The picked subject's samples, by mix time. A sample at the time of the last replaces it, as the\n * frames of a paused mix do; one behind it drops everything after it, as a seek back does.\n */\nexport class Samples {\n private list: Sample[] = [];\n\n constructor(\n private readonly windowMs = WINDOW_MS,\n private readonly cap = CAP,\n ) {}\n\n get length(): number {\n return this.list.length;\n }\n\n reset(): void {\n this.list = [];\n }\n\n push(s: Sample): void {\n const list = this.list;\n const last = list[list.length - 1];\n if (last !== undefined && s.now <= last.now) {\n let i = list.length;\n while (i > 0 && (list[i - 1] as Sample).now >= s.now) i--;\n list.length = i;\n }\n list.push(s);\n let drop = 0;\n while (drop < list.length && (list[drop] as Sample).now < s.now - this.windowMs) drop++;\n drop = Math.max(drop, list.length - this.cap);\n if (drop > 0) list.splice(0, drop);\n }\n\n /**\n * The times, and each key's values in the same order: NaN where a sample lacks a number,\n * undefined where it lacks a color.\n */\n series(): {\n times: number[];\n values: Map<string, number[]>;\n colors: Map<string, (readonly string[] | undefined)[]>;\n weights: Map<number, number[]>;\n read: boolean[];\n } {\n const times = this.list.map((s) => s.now);\n const values = new Map<string, number[]>();\n const colors = new Map<string, (readonly string[] | undefined)[]>();\n const weights = new Map<number, number[]>();\n this.list.forEach((s, i) => {\n for (const [k, v] of Object.entries(s.values)) {\n let col = values.get(k);\n if (col === undefined) {\n col = new Array(times.length).fill(Number.NaN);\n values.set(k, col);\n }\n col[i] = v;\n }\n for (const [k, v] of Object.entries(s.colors ?? {})) {\n let col = colors.get(k);\n if (col === undefined) {\n col = new Array(times.length).fill(undefined);\n colors.set(k, col);\n }\n col[i] = v;\n }\n for (const [k, v] of Object.entries(s.weights)) {\n const id = Number(k);\n let col = weights.get(id);\n if (col === undefined) {\n col = new Array(times.length).fill(Number.NaN);\n weights.set(id, col);\n }\n col[i] = v;\n }\n });\n return { times, values, colors, weights, read: this.list.map((s) => s.read) };\n }\n}\n","import type { Watched } from '@msb235/blits';\nimport type { MarkInfo } from './protocol.js';\nimport { AHEAD_CAP_MS } from './store.js';\n\n/**\n * A mix's marks from `backMs` behind now, within its history, to `AHEAD_CAP_MS` ahead. `marks`\n * speaks the host's clock and the plots the mix's: a mark's lead on the last sync, at the mix's\n * rate, is its lead on now.\n */\nexport function marksOf(e: Watched, backMs: number): MarkInfo[] {\n const { now, timestamp } = e.mix;\n if (!Number.isFinite(now) || !Number.isFinite(timestamp)) return [];\n const rate = e.mix.rate > 0 ? e.mix.rate : 1;\n const back = now - Math.max(e.reach, now - backMs);\n try {\n return e.mix.marks(timestamp - back / rate, timestamp + AHEAD_CAP_MS / rate).map((k) => ({\n at: now + (k.timestamp - timestamp) * rate,\n mark: k.mark ?? null,\n voice: k.voice ?? null,\n name: k.name ?? null,\n tags: [...k.tags],\n track: k.track ?? null,\n }));\n } catch {\n return [];\n }\n}\n","import type { Screen } from './circles.js';\n\n/** What an app can tell any panel on the page about subjects the DOM cannot see. */\nexport interface Offer {\n /** The subject under a point in client coordinates. */\n pick?: (x: number, y: number) => unknown;\n /** Where a subject is on screen, in client coordinates. */\n outline?: (subject: unknown) => DOMRect | undefined;\n /** Where a point in the mix's positions is on screen, in client coordinates. */\n screen?: Screen;\n}\n\nconst KEY = Symbol.for('@msb235/blits-panel/offer/1');\nconst slot = globalThis as unknown as Record<symbol, Offer | undefined>;\n\n/**\n * Hands the app's own `pick`, `outline` and `screen` to whatever panel inspects the page: one `mount()`\n * put there, or the DevTools extension's. Kept on the page's global object, so it reaches a panel\n * bundled apart from the app. A later call replaces an earlier one.\n */\nexport function offer(o: Offer): void {\n slot[KEY] = { ...o };\n}\n\n/** What the app offered, read each time it is needed. */\nexport function offered(): Offer {\n return slot[KEY] ?? {};\n}\n","/** The box drawn over a subject on the page while it is hovered or picked from. */\nexport class Outline {\n el: HTMLDivElement | null = null;\n\n show(rect: DOMRect | undefined): void {\n if (rect === undefined) {\n this.el?.remove();\n this.el = null;\n return;\n }\n if (this.el === null) {\n this.el = document.createElement('div');\n this.el.setAttribute('data-blits-panel', 'outline');\n Object.assign(this.el.style, {\n position: 'fixed',\n pointerEvents: 'none',\n zIndex: '2147483647',\n border: '2px solid #e0457b',\n borderRadius: '2px',\n boxSizing: 'border-box',\n });\n document.body.appendChild(this.el);\n }\n Object.assign(this.el.style, {\n left: `${rect.left}px`,\n top: `${rect.top}px`,\n width: `${rect.width}px`,\n height: `${rect.height}px`,\n });\n }\n}\n","import { offered } from './offer.js';\nimport { Outline } from './outline.js';\n\ninterface Hooks {\n /** The mix that lists a subject, by id. */\n owner(subject: unknown): number | undefined;\n arming(on: boolean): void;\n picked(subject: unknown, mix: number): void;\n}\n\n/** Picking a subject by clicking it on the page, and the outline drawn over it. */\nexport function picking(\n opts: {\n pick?: (x: number, y: number) => unknown;\n outline?: (subject: unknown) => DOMRect | undefined;\n ignore?: Element;\n },\n hooks: Hooks,\n) {\n const box = new Outline();\n const outline = (s: unknown) => {\n let rect: DOMRect | undefined;\n if (s !== undefined)\n rect =\n (opts.outline ?? offered().outline)?.(s) ??\n (s instanceof Element ? s.getBoundingClientRect() : undefined);\n box.show(rect);\n };\n\n const inPanel = (ev: Event) =>\n opts.ignore !== undefined && ev.composedPath().includes(opts.ignore);\n\n /** The subject under a point, and the mix that lists it. */\n const at = (x: number, y: number): [unknown, number] | undefined => {\n const custom = (opts.pick ?? offered().pick)?.(x, y);\n if (custom !== undefined) {\n const e = hooks.owner(custom);\n if (e !== undefined) return [custom, e];\n }\n const els =\n typeof document.elementsFromPoint === 'function'\n ? document.elementsFromPoint(x, y)\n : [document.elementFromPoint(x, y)].filter((el): el is Element => el !== null);\n for (const el of els) {\n if (el === box.el || opts.ignore?.contains(el)) continue;\n for (let n: Element | null = el; n !== null; n = n.parentElement) {\n const e = hooks.owner(n);\n if (e !== undefined) return [n, e];\n }\n }\n return undefined;\n };\n\n const onMove = (ev: PointerEvent) => {\n if (inPanel(ev)) return;\n outline(at(ev.clientX, ev.clientY)?.[0]);\n };\n const onClick = (ev: MouseEvent) => {\n if (inPanel(ev)) return;\n ev.preventDefault();\n ev.stopPropagation();\n const hit = at(ev.clientX, ev.clientY);\n arm(false);\n if (hit !== undefined) hooks.picked(hit[0], hit[1]);\n };\n const onKey = (ev: KeyboardEvent) => {\n if (ev.key === 'Escape') arm(false);\n };\n let armed = false;\n const arm = (on: boolean) => {\n if (on === armed) return;\n armed = on;\n if (on) {\n document.addEventListener('pointermove', onMove, true);\n document.addEventListener('click', onClick, true);\n document.addEventListener('keydown', onKey, true);\n } else {\n document.removeEventListener('pointermove', onMove, true);\n document.removeEventListener('click', onClick, true);\n document.removeEventListener('keydown', onKey, true);\n outline(undefined);\n }\n hooks.arming(on);\n };\n\n return { arm, outline };\n}\n","import { css, layersOf, partsOf, type Watched } from '@msb235/blits';\n\nconst DEPTH = 3;\n\n/** Each numeric part of a pose under a flat key: `x`, `position[1]`, `color.l`. */\nexport function flatten(pose: unknown, out: Record<string, number> = {}, key = '', depth = 0) {\n if (typeof pose === 'number') {\n if (key !== '') out[key] = pose;\n } else if (Array.isArray(pose) || ArrayBuffer.isView(pose)) {\n if (depth < DEPTH)\n Array.from(pose as ArrayLike<unknown>).forEach((v, i) => {\n flatten(v, out, `${key}[${i}]`, depth + 1);\n });\n } else if (typeof pose === 'object' && pose !== null && depth < DEPTH)\n for (const [k, v] of Object.entries(pose))\n flatten(v, out, key === '' ? k : `${key}.${k}`, depth + 1);\n return out;\n}\n\n/** A color pose as the CSS color it shows, then an ordered blend mode's layers, bottom first. */\nexport const colorsOf = (pose: ArrayLike<number>): string[] => [\n css(pose),\n ...(layersOf(pose) ?? []),\n];\n\nconst isColor = (kind: string | undefined) => kind !== undefined && /^(?:color|ink)\\(/.test(kind);\n\n/**\n * A pose as the plots show it, each channel read by its kind. A color channel, blend modes\n * included, is the CSS color it shows, then an ordered mode's layers bottom first; an `affine`\n * channel is its parts, `at.x` to `at.scaleY`; any other channel is its numbers by `flatten`.\n */\nexport function readPose(\n pose: unknown,\n entry: Pick<Watched, 'channels' | 'kinds'>,\n): { values: Record<string, number>; colors: Record<string, string[]> } {\n const values: Record<string, number> = {};\n const colors: Record<string, string[]> = {};\n if (typeof pose !== 'object' || pose === null) return { values, colors };\n const fields = pose as Record<string, unknown>;\n const named = new Set(entry.channels);\n entry.channels.forEach((name, i) => {\n const v = fields[name];\n if (v === undefined) return;\n const kind = entry.kinds[i];\n if (isColor(kind) && isNumbers(v)) colors[name] = colorsOf(v);\n else if (kind === 'affine' && isNumbers(v))\n for (const [part, n] of Object.entries(partsOf(v))) values[`${name}.${part}`] = n;\n else flatten(v, values, name, 1);\n });\n for (const [k, v] of Object.entries(fields)) if (!named.has(k)) flatten(v, values, k, 1);\n return { values, colors };\n}\n\nconst isNumbers = (v: unknown): v is ArrayLike<number> =>\n Array.isArray(v) || (ArrayBuffer.isView(v) && !(v instanceof DataView));\n","import { type Finder, type Hold, type Watched, type WatchedFrame, watched } from '@msb235/blits';\nimport { Circles, type Ring, type Screen } from './circles.js';\nimport { Ids } from './ids.js';\nimport { marksOf } from './marks.js';\nimport { offered } from './offer.js';\nimport { picking } from './picking.js';\nimport { readPose } from './pose.js';\nimport type {\n Command,\n Event,\n HoldInfo,\n MixInfo,\n Sample,\n Source,\n SubjectInfo,\n VoiceInfo,\n} from './protocol.js';\n\n/** What the page side of the panel can be told about the app; `offer()` tells it the same from afar. */\nexport interface AgentOptions {\n /** The subject under a point in client coordinates, for scenes the DOM cannot see into. */\n pick?: (x: number, y: number) => unknown;\n /** Where a subject is on screen, in client coordinates; a DOM element's own box otherwise. */\n outline?: (subject: unknown) => DOMRect | undefined;\n /**\n * Where a point in the positions the mix was given (`mix.plot`) is on screen, in client\n * coordinates, for drawing a bounded voice's circle; the same numbers otherwise.\n */\n screen?: Screen;\n /** The panel's own element: picking on the page passes over it. */\n ignore?: Element;\n}\n\n/** How far back a newly picked subject's plot is filled from history, ms. */\nconst BACKFILL_MS = 10_000;\nconst BACKFILL_STEP_MS = 100;\n/** How often the subject list and the voices' weights are sent, ms. */\nconst LIST_MS = 500;\nconst VOICES_MS = 250;\n/**\n * The page side of the panel: finds the mixes, watches the one picked, holds its clock, and picks\n * and outlines subjects on the page. Speaks only in the protocol's plain data.\n */\nexport function agent(opts: AgentOptions = {}): Source & { dispose(): void } {\n const fns = new Set<(event: Event) => void>();\n const ids = new Ids();\n const registry = watched();\n // The picked mix by id, looked up each time: holding its entry would keep it alive.\n let curId: number | null = null;\n let subject: unknown;\n let unwatch: (() => void) | null = null;\n let hold: Hold | null = null;\n let elsewhere = false;\n let lastList = '';\n let voicesAt = Number.NEGATIVE_INFINITY;\n let lastMarks = '';\n let owners = new Map<unknown, number>();\n /** What each voice was cued with, by handle id; a voice's name, tags and track never change. */\n const named = new Map<\n number,\n {\n name: string | null;\n tags: string[];\n track: string | null;\n within: Readonly<Omit<Ring, 'voice'>> | Finder | undefined;\n }\n >();\n const circles = new Circles();\n let circling = false;\n\n const emit = (event: Event) => {\n for (const fn of [...fns]) fn(event);\n };\n const entries = () => registry.entries();\n const byId = (id: number) => entries().find((e) => e.id === id);\n const current = (): Watched | null => (curId === null ? null : (byId(curId) ?? null));\n\n const mixInfo = (e: Watched): MixInfo => ({\n id: e.id,\n name: e.name ?? `mix ${e.id}`,\n release: e.release,\n channels: [...e.channels],\n history: e.history === undefined ? null : { ...e.history },\n });\n const sendMixes = () => emit({ kind: 'mixes', mixes: entries().map(mixInfo) });\n\n const holdInfo = (): HoldInfo => {\n if (hold !== null) return { state: 'held', rate: hold.rate, now: hold.now, reach: hold.reach };\n const now = current()?.mix.now ?? Number.NaN;\n return { state: elsewhere ? 'elsewhere' : 'free', rate: 1, now, reach: now };\n };\n const sendHold = () => emit({ kind: 'hold', hold: holdInfo() });\n\n const voices = (): VoiceInfo[] => {\n const e = current();\n if (e === null) return [];\n const handles = e.mix.voices();\n const live = new Set(handles.map((h) => h.id));\n for (const id of named.keys()) if (!live.has(id)) named.delete(id);\n return handles.map((h) => {\n let v = named.get(h.id);\n if (v === undefined) {\n const cued = e.voice(h);\n v = {\n name: cued?.name ?? null,\n tags: [...(cued?.tags ?? [])],\n track: cued?.track ?? null,\n within: cued?.within,\n };\n named.set(h.id, v);\n }\n let weight = Number.NaN;\n if (subject !== undefined)\n try {\n weight = h.weightOf(subject);\n } catch {}\n return {\n id: h.id,\n name: v.name,\n tags: v.tags,\n track: v.track,\n state: h.state,\n weight,\n bounded: v.within !== undefined,\n };\n });\n };\n const sendVoices = () => {\n voicesAt = Date.now();\n emit({ kind: 'voices', voices: voices() });\n sendMarks();\n };\n\n const drawCircles = () => {\n const e = current();\n if (!circling || e === null) return circles.clear();\n const rings: Ring[] = [];\n for (const h of e.mix.voices()) {\n const c = named.get(h.id)?.within;\n // A finder's bound has no shape to draw.\n if (c !== undefined && !('find' in c)) rings.push({ voice: h.id, x: c.x, y: c.y, r: c.r });\n }\n circles.draw(rings, opts.screen ?? offered().screen);\n };\n const circle = (on: boolean) => {\n circling = on;\n // An `around` voice cued before `plot` was bounded after it was first listed.\n if (on) named.clear();\n sendVoices();\n drawCircles();\n emit({ kind: 'circles', on });\n };\n\n const sendMarks = () => {\n const e = current();\n const list = e === null ? [] : marksOf(e, BACKFILL_MS);\n const text = JSON.stringify(list);\n if (text === lastMarks) return;\n lastMarks = text;\n emit({ kind: 'marks', marks: list });\n };\n\n const subjectList = (e: Watched): SubjectInfo[] =>\n e.subjects().map((s) => ({ id: ids.of(s), label: e.label(s) }));\n\n /** Sends the subject list where it changed, and notes which mix lists each subject. */\n const sendSubjects = () => {\n const next = new Map<unknown, number>();\n const e = current();\n for (const x of entries()) for (const s of x.subjects()) if (!next.has(s)) next.set(s, x.id);\n if (e !== null) for (const s of e.subjects()) next.set(s, e.id);\n owners = next;\n ids.prune();\n if (e === null) return;\n const list = subjectList(e);\n const text = JSON.stringify(list);\n if (text === lastList) return;\n lastList = text;\n emit({ kind: 'subjects', subjects: list });\n };\n\n const sampleOf = (e: Watched, frame: WatchedFrame<unknown, unknown>): Sample | null => {\n let pose: unknown;\n for (const p of frame.probed) if (p.subject === subject) pose = p.pose;\n const read = pose === undefined;\n if (read)\n try {\n pose = e.read(subject);\n } catch {\n return null;\n }\n const weights: Record<number, number> = {};\n for (const h of frame.voices)\n try {\n weights[h.id] = h.weightOf(subject);\n } catch {}\n return { now: frame.now, ...readPose(pose, e), weights, read };\n };\n\n const backfill = (e: Watched): Sample[] => {\n const h = e.history;\n const now = e.mix.now;\n if (h === undefined || !Number.isFinite(now)) return [];\n const out: Sample[] = [];\n const from = Math.max(e.reach, now - Math.min(BACKFILL_MS, h.ms));\n for (let t = from; t < now; t += BACKFILL_STEP_MS)\n try {\n out.push({ now: t, ...readPose(e.read(subject, t), e), weights: {}, read: true });\n } catch {}\n return out;\n };\n\n const onFrame = (frame: WatchedFrame<unknown, unknown>) => {\n const e = current();\n if (e === null) return;\n if (subject !== undefined) {\n const s = sampleOf(e, frame);\n if (s !== null) emit({ kind: 'samples', samples: [s], reset: false });\n }\n if (Date.now() - voicesAt >= VOICES_MS) sendVoices();\n drawCircles();\n sendHold();\n };\n\n const freeHold = () => {\n hold?.free();\n hold = null;\n };\n\n const pickMix = (id: number | null) => {\n const e = id === null ? undefined : byId(id);\n if (hold !== null && (e === undefined || !hold.mixes.includes(e.mix))) freeHold();\n unwatch?.();\n unwatch = null;\n curId = e?.id ?? null;\n subject = undefined;\n lastList = '';\n lastMarks = '';\n elsewhere = false;\n named.clear();\n if (e !== undefined) unwatch = e.watch(onFrame);\n emit({ kind: 'picked', mix: curId, subject: null });\n emit({ kind: 'samples', samples: [], reset: true });\n sendSubjects();\n sendVoices();\n drawCircles();\n sendHold();\n };\n\n const pickSubject = (id: number | null) => {\n subject = id === null ? undefined : ids.get(id);\n const e = current();\n emit({ kind: 'picked', mix: e?.id ?? null, subject: subject === undefined ? null : id });\n emit({\n kind: 'samples',\n samples: e !== null && subject !== undefined ? backfill(e) : [],\n reset: true,\n });\n sendVoices();\n };\n\n const page = picking(opts, {\n // A mix knows subjects it reads unwatched, through pull, that its subject list leaves out.\n owner: (subject) => {\n const listed = owners.get(subject);\n if (listed !== undefined) return listed;\n const e = current();\n if (e?.knows?.(subject)) return e.id;\n return entries().find((x) => x.knows?.(subject))?.id;\n },\n arming: (on) => {\n if (on) sendSubjects();\n emit({ kind: 'arming', on });\n },\n picked: (s, e) => {\n if (curId !== e) pickMix(e);\n sendSubjects();\n pickSubject(ids.of(s));\n },\n });\n const { arm, outline } = page;\n\n const send = (c: Command) => {\n switch (c.kind) {\n case 'mix':\n pickMix(c.id);\n return;\n case 'subject':\n pickSubject(c.id);\n return;\n case 'hold':\n if (!c.on) freeHold();\n else if (hold === null && current() !== null)\n try {\n hold = (current() as Watched).hold();\n elsewhere = false;\n } catch {\n elsewhere = true;\n }\n sendHold();\n return;\n case 'rate':\n if (hold !== null) hold.rate = c.rate;\n sendHold();\n return;\n case 'step':\n try {\n hold?.step(c.ms);\n } catch {}\n sendHold();\n return;\n case 'seek':\n try {\n hold?.seek(c.to);\n } catch {}\n sendHold();\n return;\n case 'arm':\n arm(c.on);\n return;\n case 'circles':\n circle(c.on);\n return;\n case 'outline':\n outline(c.subject === null ? undefined : ids.get(c.subject));\n return;\n }\n };\n\n /** With nothing picked and one mix on the page, there is nothing to choose: pick it. */\n const pickOnly = () => {\n const [only, ...rest] = entries();\n if (curId === null && only !== undefined && rest.length === 0) pickMix(only.id);\n };\n\n const offRegistry = registry.on((change) => {\n sendMixes();\n if (change.kind === 'gone' && curId === change.id) pickMix(null);\n pickOnly();\n });\n pickOnly();\n const timer = setInterval(sendSubjects, LIST_MS);\n\n return {\n subscribe(fn) {\n fns.add(fn);\n fn({ kind: 'mixes', mixes: entries().map(mixInfo) });\n fn({\n kind: 'picked',\n mix: curId,\n subject: subject === undefined ? null : ids.of(subject),\n });\n fn({ kind: 'hold', hold: holdInfo() });\n fn({ kind: 'circles', on: circling });\n const e = current();\n if (e !== null) fn({ kind: 'subjects', subjects: subjectList(e) });\n fn({ kind: 'voices', voices: voices() });\n fn({ kind: 'marks', marks: e === null ? [] : marksOf(e, BACKFILL_MS) });\n return () => {\n fns.delete(fn);\n };\n },\n send,\n dispose() {\n arm(false);\n freeHold();\n unwatch?.();\n unwatch = null;\n clearInterval(timer);\n offRegistry();\n outline(undefined);\n circles.clear();\n fns.clear();\n },\n };\n}\n","/* What every motif shares: the stance slots (generated below) and the two\n colors derived from them. A motif paints its own geometry — border width,\n padding, radius — and reads only color and the title's type from the slots,\n so a theme's stance tokens can't erase the edge a motif is made of. */\n._frame_048aab,\n._frame_048aab * {\n box-sizing: border-box;\n}\n\n/* In `:where()` so a motif's own class can redefine the edge and the ink follows it. */\n:where(._frame_048aab) {\n /* The edge a motif outlines or fills with: the tint where one is named. */\n --_edge: var(--wzl-tint, var(--_s-border-color));\n /* Black or white, whichever reads on the edge color. 0.564 is the lightness at\n which the two reach WCAG's 4.5:1 together; the switch has to sit within a\n hundredth of it, or the losing side falls short there. */\n --_edge-ink: oklch(from var(--_edge) clamp(0, (0.564 - l) * 1000, 1) 0 0);\n}\n\n/* The motifs that paint the frame's fill, which is sunken by default, as a field's frame is. */\n._frame_048aab:where([data-motif='rule'], [data-motif='stereo'], [data-motif='tab'], [data-motif='titlebar']) {\n --wzl-input-surface: var(--wzl-surface);\n}\n\n/* BEGIN GENERATED stance rules: frame — `npm run gen:stances`, do not edit. */\n\n._frame_048aab {\n --wzl-tint: initial;\n}\n\n._frame_048aab {\n --_s-surface: var(--wzl-surface-sunken);\n --_s-border-color: color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface));\n --_s-border-style: solid;\n --_s-border-width: 0px;\n --_s-radius: var(--wzl-radius-md);\n --_s-pad: var(--wzl-prop-group-pad, 6px 10px 8px);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-display);\n --_s-title-weight: var(--wzl-font-weight-light);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: var(--wzl-params-label-case, uppercase);\n --_s-title-tracking: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n --_s-title-color: var(--wzl-fg-subtle);\n}\n\n._frame_048aab[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-clarify-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 0px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-clarify-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-aside-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 0px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-aside-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-advanced-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 0px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-advanced-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-debug-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 0px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-debug-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-preview-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 0px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-preview-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-confirm-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 0px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-confirm-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-cancel-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 0px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-cancel-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._frame_048aab[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._frame_048aab[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._frame_048aab {\n --_s-fill: var(--_s-surface);\n}\n\n._frame_048aab[data-tint],\n._frame_048aab[data-grade],\n._frame_048aab[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._frame_048aab[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: frame */\n\n/* A disabled frame's title, dimmed as a disabled row's label is. */\n._titleOff_048aab {\n opacity: 0.5;\n}\n/* A small title trailed by a rule, no box. It reads only the title's type\n and the rule's color from the slots of the frame it draws. */\n._title_7d0ddf {\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-tight);\n color: var(--_s-title-color);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._heading_7d0ddf {\n flex: 0 0 auto;\n margin: 0;\n font: inherit;\n}\n\n._title_7d0ddf > hr {\n flex: 1 1 auto;\n border: 0;\n border-top: 1px solid var(--_s-border-color);\n margin: 0;\n}\n\n._actions_7d0ddf {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n/* The title centered between two rules, on a sunken fill. Unlike the other\n motifs, every part of the box comes from the stance slots: this is the look\n the slots' defaults describe. */\n._rule_81c138 {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n padding: var(--_s-pad);\n}\n\n/* A tinted frame is one of a list of like frames; its edge says which. */\n._rule_81c138[data-tint] {\n border-left: 4px solid var(--wzl-tint);\n}\n\n._headRow_81c138 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n}\n\n/* The row takes the title's bottom margin, so the handle and actions center on the title itself. */\n._headRow_81c138 > ._title_81c138 {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n}\n\n._leading_81c138,\n._actions_81c138 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._title_81c138 {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n color: var(--_s-title-color);\n}\n\n._title_81c138 hr {\n border: 0;\n border-top: 1px solid var(--_s-border-color);\n margin: 0;\n}\n\n/* The title between the rules. The twisty hangs off the text's leading edge,\n out of flow, so the text centers as though it were not there. */\n._mid_81c138 {\n position: relative;\n min-width: 0;\n}\n\n/* Being out of flow, the twisty would sit on the leading rule; the rule stops at its box instead. */\n._title_81c138:has(> ._mid_81c138 > ._twisty_81c138) > hr:first-child {\n margin-inline-end: calc(\n var(--wzl-disclosure-target, var(--wzl-control-h-sm)) + var(--wzl-disclosure-gap, 4px) - var(--wzl-space-4)\n );\n}\n\n._twisty_81c138 {\n position: absolute;\n inset-inline-end: calc(100% + var(--wzl-disclosure-gap, 4px));\n top: 50%;\n translate: 0 -50%;\n}\n/* A raised sheet titled along the top. Every part of the box comes from the\n slots of the frame it draws — a panel's `--wzl-panel-*` ones by default. */\n._sheet_4ecab5 {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n padding: var(--_s-pad);\n box-shadow: var(--wzl-bevel-raised, none);\n backdrop-filter: blur(var(--_s-blur, 0));\n -webkit-backdrop-filter: blur(var(--_s-blur, 0));\n}\n\n._title_4ecab5 {\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-snug);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n color: var(--_s-title-color);\n padding: var(--_s-title-inset, 0);\n margin: 0 0 var(--wzl-prop-panel-title-gap, 8px);\n}\n\n._head_4ecab5 {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-panel-title-gap, 8px);\n}\n\n._head_4ecab5 > ._title_4ecab5 {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n align-self: var(--wzl-prop-panel-actions-align, center);\n}\n\n/* A folded frame is its heading alone, so the gap under the title goes too. */\n._sheet_4ecab5[data-collapsed] > ._head_4ecab5 {\n margin-bottom: 0;\n}\n\n/* The basis is a hook for content that has to line up with the sheet's body:\n a percentage of it is a share of the same width the body gets. */\n._actions_4ecab5 {\n display: flex;\n flex: 0 0 var(--wzl-prop-panel-actions-basis, auto);\n min-width: 0;\n align-self: var(--wzl-prop-panel-actions-align, center);\n align-items: var(--wzl-prop-panel-actions-align, center);\n gap: var(--wzl-space-2);\n margin-inline-start: auto;\n}\n/* The title cut into the top border. A fieldset for the notch as much as the\n grouping: a legend cuts the border rather than covering it, so the frame can\n sit on a translucent ground with no seam showing through the line. */\n._notch_f0bf0c {\n margin: 0;\n min-width: 0;\n padding: var(--wzl-space-1) var(--wzl-space-5) var(--wzl-space-4);\n border: 1px solid var(--_edge);\n border-radius: var(--wzl-radius-md);\n}\n\n._legend_f0bf0c {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-inline: var(--wzl-space-3);\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n color: var(--_s-title-color);\n}\n\n._label_f0bf0c {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n/* A legend is laid out by its fieldset, so the autos move it where\n `text-align` on either would not. */\n._legend_f0bf0c[data-align='center'] {\n margin-inline: auto;\n}\n\n._legend_f0bf0c[data-align='start'] {\n margin-inline: 0;\n}\n\n/* With actions, the legend spans the top edge: the title at one end, the\n actions at the other, and the run of border the legend displaces drawn\n between them. */\n._legend_f0bf0c[data-actions] {\n width: 100%;\n margin-inline: 0;\n}\n\n._run_f0bf0c {\n flex: 1;\n border-top: 1px solid var(--_edge);\n}\n\n._actions_f0bf0c {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n/* The tint fills the whole frame, and everything on it is drawn in an ink that\n reads there: black or white, from the fill's own lightness. */\n._plaque_561617 {\n /* The fill is the edge here, so the frame's edge ink is the plaque's ink. */\n --_edge: color-mix(in oklab, var(--_s-tint) var(--wzl-plaque-mix, 100%), var(--_s-surface));\n background: var(--_edge);\n border-radius: var(--wzl-radius-md);\n padding: var(--_s-pad);\n}\n\n/* The theme's colors redrawn against the fill. Set one element in, because\n the frame's own generated accent rules sit on the root at a specificity a\n motif's stylesheet can only tie, and a tie goes to load order. */\n._content_561617 {\n /* A plaque inside this one names its own mix or takes the default, never this one's. */\n --wzl-plaque-mix: initial;\n --wzl-fg: var(--_edge-ink);\n --wzl-fg-muted: color-mix(in oklab, var(--_edge-ink) 78%, var(--_edge));\n --wzl-fg-subtle: color-mix(in oklab, var(--_edge-ink) 60%, var(--_edge));\n --wzl-fg-on-accent: var(--_edge-ink);\n --wzl-border: color-mix(in oklab, var(--_edge-ink) 25%, var(--_edge));\n --wzl-surface-sunken: oklch(from var(--_edge) calc(l - 0.06) c h);\n --wzl-accent: color-mix(in oklab, var(--_edge-ink) 18%, var(--_edge));\n --wzl-accent-base: var(--wzl-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_edge-ink) 40%, var(--_edge));\n --wzl-accent-soft: color-mix(in oklab, var(--_edge-ink) 10%, var(--_edge));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--_edge-ink);\n --wzl-focus-ring: var(--_edge-ink);\n color: var(--wzl-fg);\n}\n\n._head_561617 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--_s-title-size);\n}\n\n._label_561617 {\n flex: 1 1 auto;\n min-width: 0;\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n/* The back of an A/V receiver: a bar along one edge, filled with the edge\n color, carries the title; the border around the rest is the same color. */\n._stereo_2a3f6f {\n display: flex;\n background: var(--_edge);\n border: 2px solid var(--_edge);\n border-radius: var(--wzl-radius-sm);\n}\n\n._stereo_2a3f6f[data-side='left'] {\n flex-direction: row;\n}\n\n._stereo_2a3f6f[data-side='right'] {\n flex-direction: row-reverse;\n}\n\n._stereo_2a3f6f[data-side='top'] {\n flex-direction: column;\n}\n\n._stereo_2a3f6f[data-side='bottom'] {\n flex-direction: column-reverse;\n}\n\n._bar_2a3f6f {\n flex: none;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-block: var(--wzl-space-1);\n padding-inline: var(--wzl-space-1);\n background: var(--_edge);\n color: var(--_edge-ink);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--_s-title-size);\n line-height: 1;\n white-space: nowrap;\n}\n\n._label_2a3f6f {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n/* Read from inside the frame: the letters' feet point at what the bar labels.\n A side bar's writing mode turns its inline axis, so `labelAlign`'s start and\n end follow the reading direction with no mapping of their own. */\n._stereo_2a3f6f[data-side='left'] > ._bar_2a3f6f {\n writing-mode: sideways-lr;\n}\n\n._stereo_2a3f6f[data-side='right'] > ._bar_2a3f6f {\n writing-mode: sideways-rl;\n}\n\n._bar_2a3f6f[data-align='start'] {\n justify-content: start;\n}\n\n._bar_2a3f6f[data-align='center'] {\n justify-content: center;\n}\n\n._bar_2a3f6f[data-align='end'] {\n justify-content: end;\n}\n\n._body_2a3f6f {\n flex: 1 1 auto;\n min-width: 0;\n padding: var(--_s-pad);\n background: var(--_s-fill);\n border-radius: var(--wzl-radius-sm);\n}\n\n._stereo_2a3f6f[data-invert] {\n background: var(--_edge-ink);\n border-color: var(--_edge-ink);\n}\n\n._stereo_2a3f6f[data-invert] > ._bar_2a3f6f {\n background: var(--_edge-ink);\n color: var(--_edge);\n}\n\n/* A heavy frame set in a tight grid of rows needs more air than the rows do. */\n._stereo_2a3f6f:not(:first-child) {\n margin-block-start: var(--wzl-space-2);\n}\n\n/* A side bar's title can outgrow the rows it labels; the rows then sit mid-height. */\n._stereo_2a3f6f:where([data-side='left'], [data-side='right']) > ._body_2a3f6f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n/* The rows keep a little more room on the bar's side, so they do not crowd its edge. A\n transparent border adds it over the theme's own padding, and the body's fill shows through. */\n._stereo_2a3f6f[data-side='left'] > ._body_2a3f6f {\n border-left: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='right'] > ._body_2a3f6f {\n border-right: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='top'] > ._body_2a3f6f {\n border-top: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='bottom'] > ._body_2a3f6f {\n border-bottom: var(--wzl-space-2) solid transparent;\n}\n/* A folder tab rising from the top edge, in the edge color, over an outlined box. */\n._tab_025206 {\n display: flex;\n flex-direction: column;\n}\n\n._tabRow_025206 {\n display: flex;\n padding-inline: var(--wzl-radius-md);\n}\n\n._tabRow_025206[data-align='start'] {\n justify-content: start;\n}\n\n._tabRow_025206[data-align='center'] {\n justify-content: center;\n}\n\n._tabRow_025206[data-align='end'] {\n justify-content: end;\n}\n\n._label_025206 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n max-width: 100%;\n padding: var(--wzl-space-1) var(--wzl-space-5);\n background: var(--_edge);\n color: var(--_edge-ink);\n border-radius: var(--wzl-radius-md) var(--wzl-radius-md) 0 0;\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: 1.2;\n}\n\n._text_025206 {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n._box_025206 {\n background: var(--_s-fill);\n border: 1px solid var(--_edge);\n border-radius: var(--wzl-radius-md);\n padding: var(--_s-pad);\n}\n\n/* The tab grows out of the box's edge: where it starts or ends, that corner is square. */\n._tab_025206:has(> ._tabRow_025206[data-align='start']) > ._box_025206 {\n border-start-start-radius: 0;\n}\n\n._tab_025206:has(> ._tabRow_025206[data-align='end']) > ._box_025206 {\n border-start-end-radius: 0;\n}\n/* A desktop window: a solid strip across the top carries the title, and the\n frame's edge is a line or, where the theme has one, a raised bevel. */\n._titlebar_d5a76d {\n --_strip: var(--wzl-titlebar-surface, var(--_edge));\n --_strip-ink: var(--wzl-titlebar-fg, var(--_edge-ink));\n background: var(--_s-fill);\n border: var(--wzl-titlebar-border, 1px solid var(--_edge));\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, none);\n padding: var(--wzl-titlebar-inset, 0);\n}\n\n/* A tint says which of its peers a frame is, so it outranks the theme's strip. */\n._titlebar_d5a76d[data-tint] {\n --_strip: var(--_edge);\n --_strip-ink: var(--_edge-ink);\n}\n\n._strip_d5a76d {\n /* What sits on the strip is drawn in its ink: the fold mark, a ghost button. */\n --wzl-fg: var(--_strip-ink);\n --wzl-disclosure-fill: var(--_strip-ink);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-1) var(--wzl-space-3);\n background: var(--_strip);\n color: var(--_strip-ink);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-titlebar-weight, var(--wzl-font-weight-bold));\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-snug);\n white-space: nowrap;\n}\n\n._mid_d5a76d {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: var(--wzl-titlebar-align, start);\n}\n\n/* The patch keeps a striped strip from running through the letters. */\n._label_d5a76d {\n background: var(--wzl-titlebar-label-surface, transparent);\n padding-inline: var(--wzl-titlebar-label-pad, 0);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n._body_d5a76d {\n padding: var(--_s-pad);\n}\n/* A sunken well, its heading over its body in a column. The fill and edge are\n the frame's slots; the spacing and the title's size are `--wzl-well-*`\n properties, which the surface drawing the well sets for itself. */\n._well_c6a498 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-well-gap, var(--wzl-space-3));\n padding: var(--wzl-well-pad, var(--wzl-space-4));\n background: var(--_s-fill);\n border: 1px solid var(--_s-border-color);\n border-radius: var(--wzl-well-radius, var(--wzl-radius-md));\n --wzl-input-surface: var(--wzl-surface);\n}\n\n/* A rule down the leading edge only, inset from the body on both sides. */\n._well_c6a498[data-edge='start'] {\n border: 0;\n border-inline-start: var(--wzl-well-rule, 2px) solid var(--_s-border-color);\n padding-inline: var(--wzl-well-inset-start, var(--wzl-space-5)) var(--wzl-well-inset-end, var(--wzl-space-4));\n}\n\n._head_c6a498 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n padding-bottom: var(--wzl-well-head-pad, 0);\n}\n\n._head_c6a498[data-ruled] {\n padding-bottom: var(--wzl-well-head-pad, var(--wzl-space-2));\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._row_c6a498 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* A control drawn in the heading sits at its far end, as `inline`. */\n._title_c6a498 {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: var(--wzl-space-2);\n min-width: 0;\n margin: 0;\n font-size: var(--wzl-well-title-size, var(--wzl-font-size-sm));\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg);\n opacity: var(--wzl-well-title-opacity, 1);\n}\n\n._well_c6a498[data-label='wide'] ._title_c6a498 {\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n._well_c6a498[data-label='wider'] ._title_c6a498 {\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n._actions_c6a498 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._note_c6a498 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n/* Laid over the viewport by `targetInFrame`; it takes no pointer of its own, and its overlays take theirs. */\n._frame_051a65 {\n position: absolute;\n margin: 0;\n border: 0;\n padding: 0;\n pointer-events: none;\n}\n\n/* Fixed makes a stacking context, so it takes the popover rung for the overlays it holds. */\n._fixed_051a65 {\n position: fixed;\n z-index: var(--wzl-z-popover);\n}\n\n._frame_051a65 > * {\n pointer-events: auto;\n}\n\n/* What React Aria places against; the frame's own size is reported for it. */\n._frame_051a65 > ._boundary_051a65 {\n position: absolute;\n width: 0;\n height: 0;\n pointer-events: none;\n}\n._code_a29c7a {\n --code-emphasis-fg: var(--wzl-emphasis-fg, var(--wzl-fg));\n /* A tint, grade, or stance accent paints over emphasis. */\n --code-fg: var(--_s-accent, var(--code-emphasis-fg));\n display: inline;\n padding: 0 var(--wzl-space-2);\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--code-fg) 12%, transparent);\n color: var(--code-fg);\n font-family: var(--wzl-font-mono);\n font-size: var(--code-font-size, 90%);\n line-height: inherit;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n -webkit-box-decoration-break: clone;\n box-decoration-break: clone;\n}\n\n._code_a29c7a[data-variant='plain'] {\n padding: 0;\n background: transparent;\n}\n\n._code_a29c7a[data-size='xs'] { --code-font-size: var(--wzl-font-size-xs); }\n._code_a29c7a[data-size='sm'] { --code-font-size: var(--wzl-font-size-sm); }\n._code_a29c7a[data-size='md'] { --code-font-size: var(--wzl-font-size); }\n\n/* BEGIN GENERATED stance rules: code — `npm run gen:stances`, do not edit. */\n\n._code_a29c7a {\n --wzl-tint: initial;\n}\n\n._code_a29c7a {\n --_s-accent: var(--wzl-tint);\n}\n\n._code_a29c7a[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._code_a29c7a[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: code */\n/* Keystroke \"key cap\" styling — each modifier and key in its own bordered chip. */\n._keys_952020,\n._key_952020 {\n --key-h: var(--wzl-control-h-xs);\n --key-font-size: var(--wzl-font-size-sm);\n}\n\n/* A KeyBank's own box stays out of the layout unless a class gives it one. */\n:where(._bank_952020) {\n display: contents;\n}\n\n/* Function-key legends print smaller, as on a real keyboard — except in a\n KeyBank, where every single-line legend prints at one size. */\n._key_952020[data-fn]:not([data-banked]) {\n --key-font-size: calc(var(--wzl-font-size-sm) * 0.85);\n}\n\n._keys_952020 {\n display: inline-flex;\n gap: 3px;\n /* Bottom-align so chips with text labels and chips with icon glyphs\n (arrows, modifier symbols) line up at the same bottom edge. Baseline\n drifts because text baselines sit above icon centers. */\n align-items: flex-end;\n /* When this whole sequence sits inline in surrounding text (e.g.\n \"Press <KeySequence> to confirm.\"), the row anchors to the\n surrounding line's bottom edge, not its baseline. */\n vertical-align: bottom;\n flex-wrap: wrap;\n}\n\n._keysEmpty_952020 {\n color: var(--wzl-fg-muted);\n}\n\n._sep_952020 {\n /* A key's height, so the glyph centers on the keys rather than riding the\n row's bottom edge. */\n display: inline-flex;\n align-items: center;\n height: var(--key-h);\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n}\n\n/* A keymap's label before its keys, `Loupe ▸ 2`: plain text, centered on the keys like `.sep`. */\n._leader_952020,\n._leaderSep_952020 {\n display: inline-flex;\n align-items: center;\n height: var(--key-h);\n font-size: var(--key-font-size);\n line-height: 1;\n white-space: nowrap;\n}\n\n._leaderSep_952020 {\n color: var(--wzl-fg-muted);\n}\n\n._key_952020 {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n height: var(--key-h);\n padding: 0 var(--wzl-space-2);\n /* No fill; border and legend follow currentColor, so a chip inline in\n colored prose or beside a colored badge takes the surrounding color. */\n background: transparent;\n border: 1px solid currentColor;\n border-bottom-width: 2px;\n border-radius: var(--wzl-radius-sm);\n color: currentColor;\n /* Keycaps are a deliberate exception to the site theme — the design-\n system UI font (often a display face like Oswald) is wrong for\n keyboard chips. Use a neutral sans stack so labels read like real\n key legends. Consumers wanting a specific face per chip pass the\n `font` prop on KeyCap. */\n font-family: ui-sans-serif, system-ui, sans-serif;\n /* --key-legend-scale is set by a KeyBank, or by a key printing two lines. */\n --key-legend-size: calc(var(--key-font-size) * var(--key-legend-scale, 1));\n --key-wrap-line-height: 0.85;\n font-size: var(--key-legend-size);\n font-weight: var(--wzl-font-weight-bold);\n line-height: 1;\n}\n\n/* A two-line legend, as keycaps print Pg / Up: centered, tight enough for both\n lines to fit a short key. Bottom-aligned so its first line's baseline cannot\n make a line box taller than the key. */\n._key_952020[data-wrapped] {\n white-space: pre-line;\n text-align: center;\n line-height: var(--key-wrap-line-height);\n vertical-align: bottom;\n}\n\n/* A symbol legend drawn as an icon, a little larger than the letters beside it\n so its strokes stay whole at legend sizes. */\n._legendIcon_952020 {\n flex: none;\n width: calc(var(--key-legend-size) * 1.25);\n height: calc(var(--key-legend-size) * 1.25);\n}\n\n/* The symbol's own character, for a screen reader and for copied text. */\n._legendText_952020 {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n/* Default chip is square — letters, digits, and single glyphs (⎋ ⌫ ↑ etc.)\n sit in a uniform key-cap box. */\n._key_952020[data-kind='square'] {\n width: var(--key-h);\n padding: 0;\n}\n\n/* Modifiers (⌘ ⇪ ⌥ ⌃) are wider to match the visual weight of how they\n appear on a real keyboard — and to differentiate them from the keys\n they modify in a stack. */\n._key_952020[data-kind='modifier'] {\n min-width: 26px;\n padding: 0 var(--wzl-space-3);\n}\n\n/* Tab / Enter / Space — actual wide keys on a real keyboard. */\n._key_952020[data-kind='wide'] {\n min-width: 32px;\n padding: 0 var(--wzl-space-4);\n}\n\n/* Inverse variant: light face, slightly-darker-than-face border, dark\n glyph — reads as a real keycap rather than a recessed slot in the panel. */\n._key_952020[data-variant='inverse'] {\n background: var(--wzl-fg);\n border-color: #25272c;\n color: var(--wzl-surface);\n}\n\n/* Optional: a dotted border at full currentColor. The dotted pattern alone\n carries the cue, since the default chip defers its color to the context\n and dimming would fight that. */\n._key_952020[data-inverted] {\n border-style: dotted;\n border-width: 1.5px;\n border-bottom-width: 1.5px;\n}\n\n/* Optional on the inverse variant: the face flips to dark, the legend drops\n to 60% opacity and the dotted border to 40% — three stacked cues for\n \"may be held but isn't required.\" */\n._key_952020[data-variant='inverse'][data-inverted] {\n background: var(--wzl-surface);\n color: color-mix(in srgb, var(--wzl-fg) 60%, transparent);\n border-color: color-mix(in srgb, var(--wzl-fg) 40%, transparent);\n}\n\n._shortcut_952020 ._key_952020 {\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-normal);\n}\n/* A keyboard drawn from a layout: each key absolutely placed in key units, so a layout of any shape\n needs no grid of its own. A consumer resizes the whole diagram with --key-diagram-unit. */\n._diagram_3a99df {\n --u: var(--key-diagram-unit, var(--wzl-control-h-xs));\n --gap: 3px;\n --pitch: calc(var(--u) + var(--gap));\n --caption-h: 0px;\n --pitch-y: calc(var(--pitch) + var(--caption-h));\n}\n\n._diagram_3a99df[data-captioned] {\n --caption-h: calc(var(--u) * 0.6);\n}\n\n._diagram_3a99df[data-lingers] {\n opacity: 0;\n transition: opacity 0.4s ease;\n}\n\n._diagram_3a99df[data-lingers][data-up] {\n opacity: 1;\n transition-duration: 0.12s;\n}\n\n._board_3a99df {\n position: relative;\n width: calc(var(--cols) * var(--pitch) - var(--gap));\n height: calc(var(--rows) * var(--pitch-y) - var(--gap));\n}\n\n._row_3a99df {\n display: inline-flex;\n gap: var(--gap);\n align-items: flex-start;\n vertical-align: bottom;\n}\n\n._slot_3a99df {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n color: var(--tint, inherit);\n}\n\n._board_3a99df ._slot_3a99df {\n position: absolute;\n left: calc(var(--x) * var(--pitch));\n top: calc(var(--y) * var(--pitch-y));\n width: calc(var(--w) * var(--pitch) - var(--gap));\n}\n\n/* Outranks the keycap's own width rules, (0,2,0): in a layout the slot sets the width. */\n._board_3a99df ._slot_3a99df > kbd._cap_3a99df {\n width: 100%;\n min-width: 0;\n padding: 0 var(--wzl-space-1);\n}\n\n._slot_3a99df > kbd._cap_3a99df {\n /* A whole keyboard of bold legends reads as a wall. */\n font-weight: var(--wzl-font-weight-normal);\n /* A key let go fades back, so a tap too quick to see held still shows. */\n transition: background-color 0.35s ease-out, border-color 0.35s ease-out, color 0.35s ease-out;\n}\n\n._slot_3a99df[data-tinted] > kbd._cap_3a99df {\n background: color-mix(in srgb, var(--tint) 14%, transparent);\n}\n\n._slot_3a99df[data-held] > kbd._cap_3a99df {\n background: var(--tint, var(--wzl-accent));\n border-color: var(--tint, var(--wzl-accent));\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n transition: none;\n}\n\n/* A tint may be any color, so its held face takes dark ink rather than the accent's. */\n._slot_3a99df[data-tinted][data-held] > kbd._cap_3a99df {\n color: rgb(0 0 0 / 0.85);\n}\n\n._slot_3a99df[data-dimmed] {\n opacity: 0.35;\n}\n\n._caption_3a99df {\n height: var(--caption-h);\n overflow: hidden;\n font-size: calc(var(--u) * 0.45);\n line-height: var(--caption-h);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n color: var(--tint, var(--wzl-fg-muted));\n}\n\n._caption_3a99df svg {\n width: calc(var(--u) * 0.5);\n height: calc(var(--u) * 0.5);\n vertical-align: middle;\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._diagram_3a99df[data-lingers],\n ._slot_3a99df > kbd._cap_3a99df {\n transition: none;\n }\n}\n._tooltip_7e1c86 {\n /* RAC sets no z-index. */\n z-index: var(--wzl-z-popover);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, 0 4px 16px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n line-height: 1.3;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n max-width: 260px;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._tooltip_7e1c86[data-entering],\n._tooltip_7e1c86[data-exiting] {\n opacity: 0;\n}\n\n._arrow_7e1c86 {\n position: absolute;\n}\n\n._arrow_7e1c86[data-placement='top'] {\n top: 100%;\n transform: translateX(-50%);\n}\n\n._arrow_7e1c86[data-placement='bottom'] {\n bottom: 100%;\n transform: translateX(-50%);\n}\n\n._arrow_7e1c86[data-placement='left'] {\n left: 100%;\n transform: translateY(-50%);\n}\n\n._arrow_7e1c86[data-placement='right'] {\n right: 100%;\n transform: translateY(-50%);\n}\n\n._arrow_7e1c86 svg {\n display: block;\n fill: var(--wzl-surface);\n stroke: var(--wzl-border);\n stroke-width: 1;\n}\n\n._arrow_7e1c86[data-placement='bottom'] svg {\n transform: rotate(180deg);\n}\n\n._arrow_7e1c86[data-placement='left'] svg {\n transform: rotate(-90deg);\n}\n\n._arrow_7e1c86[data-placement='right'] svg {\n transform: rotate(90deg);\n}\n._badge_634ccb {\n position: relative;\n display: inline-flex;\n align-items: baseline;\n vertical-align: baseline;\n gap: var(--badge-gap, 4px);\n /* The shorthand first: after `font-size` it would reset the size to the parent's. */\n font: inherit;\n font-size: var(--badge-font-size, var(--wzl-font-size-xs));\n text-transform: uppercase;\n letter-spacing: 0.04em;\n --badge-emphasis-edge: var(--wzl-emphasis-fg, var(--wzl-border));\n /* A tint, grade, or stance accent paints over emphasis. */\n --badge-edge: var(--_s-accent, var(--badge-emphasis-edge));\n --badge-fill: var(--wzl-surface);\n --badge-fg: var(--badge-edge);\n background: transparent;\n border: 0;\n /* Badges never carry text-decoration. Symmetric: a badge inside a link\n suppresses the link's underline on the badge's text; a link inside a\n badge suppresses its own underline. The chip's colored background is\n the affordance signal. */\n text-decoration: none;\n}\n._badge_634ccb * { text-decoration: none; }\n\n._badge_634ccb[data-size='xs'] {\n --badge-gap: 3px;\n --badge-pad-x: 4px;\n --badge-pad-y: 0px;\n --badge-font-size: var(--wzl-font-size-2xs);\n}\n\n._badge_634ccb[data-size='md'] {\n --badge-gap: 6px;\n --badge-pad-x: 10px;\n --badge-pad-y: 3px;\n --badge-font-size: var(--wzl-font-size-sm);\n}\n\n._deco_634ccb {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: visible;\n}\n._deco_634ccb .badge-fill { fill: var(--badge-fill); stroke: none; }\n._deco_634ccb .badge-stroke { fill: none; stroke: var(--badge-edge); stroke-width: var(--badge-stroke-width, 1px); vector-effect: non-scaling-stroke; }\n._deco_634ccb .badge-focus { fill: none; stroke: var(--badge-edge); stroke-width: calc(var(--badge-stroke-width, 1px) + 1px); vector-effect: non-scaling-stroke; opacity: 0.6; }\n._deco_634ccb .badge-bevel-light { fill: rgba(255, 255, 255, 0.22); stroke: none; }\n._deco_634ccb .badge-bevel-medium-light { fill: rgba(255, 255, 255, 0.10); stroke: none; }\n._deco_634ccb .badge-bevel-medium-dark { fill: rgba(0, 0, 0, 0.16); stroke: none; }\n._deco_634ccb .badge-bevel-dark { fill: rgba(0, 0, 0, 0.32); stroke: none; }\n\n._content_634ccb {\n position: relative;\n display: inline-flex;\n align-items: baseline;\n gap: inherit;\n z-index: 1;\n /* Text color stays off .badge: a currentColor-relative edge (muted) must resolve against the\n surrounding text in the fill and stroke, not against solid's label ink. */\n color: var(--badge-fg, var(--wzl-fg-muted));\n}\n\n\n._badge_634ccb[data-variant='outline'] {\n --badge-fill: var(--wzl-surface);\n --badge-fg: var(--badge-edge);\n}\n._badge_634ccb[data-variant='solid'] {\n --badge-fill: var(--badge-edge);\n /* White on a dark fill, near-black on a light one, flipping at OKLab L 0.65: a little above\n where the two inks tie, so a mid fill like danger keeps white, which reads cleaner there. */\n --badge-fg: oklch(from var(--badge-fill) clamp(0.18, (0.65 - l) * 1000, 1) 0 0 / 1);\n font-weight: var(--wzl-font-weight-bold);\n}\n._badge_634ccb[data-variant='subtle'] {\n --badge-fill: color-mix(in oklab, var(--badge-edge) 14%, transparent);\n --badge-fg: var(--badge-edge);\n}\n/* An ungraded badge's edge is a border gray that vanishes when the outline/subtle\n variants (above) reuse it as the text color — re-assert the muted fg. */\n._badge_634ccb:not([data-grade]):not([data-variant='solid']) { --badge-fg: var(--_s-accent, var(--wzl-emphasis-fg, var(--wzl-fg-muted))); }\n\n/* The `padding` prop arrives as the --badge-pad-<side> properties. */\n._badge_634ccb {\n --_pad-top: var(--badge-pad-top, calc(var(--badge-pad-y, 1px) + var(--badge-inset-top, 0px)));\n --_pad-right: var(--badge-pad-right, calc(var(--badge-pad-x, 6px) + var(--badge-inset-right, 0px)));\n --_pad-bottom: var(--badge-pad-bottom, calc(var(--badge-pad-y, 1px) + var(--badge-inset-bottom, 0px)));\n --_pad-left: var(--badge-pad-left, calc(var(--badge-pad-x, 6px) + var(--badge-inset-left, 0px)));\n padding: var(--_pad-top) var(--_pad-right) var(--_pad-bottom) var(--_pad-left);\n}\n\n._badge_634ccb[data-shape='pill'] {\n display: inline;\n border-radius: var(--wzl-radius-pill);\n box-sizing: border-box;\n -webkit-box-decoration-break: slice;\n box-decoration-break: slice;\n}\n._badge_634ccb[data-shape='pill'] ._content_634ccb,\n._badge_634ccb[data-shape='plain'] ._content_634ccb {\n display: inline;\n}\n._badge_634ccb[data-shape='pill'][data-variant='solid'],\n._badge_634ccb[data-shape='pill'][data-variant='subtle'] {\n background: var(--badge-fill);\n}\n/* Always reserve room for the border so variants that drop the visible stroke\n (e.g. subtle, or fragments after a slice) stay the same outer width. */\n._badge_634ccb[data-shape='pill'] {\n border: var(--badge-stroke-width, 1px) solid transparent;\n}\n._badge_634ccb[data-shape='pill'][data-variant='outline'],\n._badge_634ccb[data-shape='pill'][data-variant='solid'] {\n /* Real border instead of inset box-shadow so `box-decoration-break: slice` cleanly removes\n the border-right of fragment 1 / border-left of fragment 2 at the line break. */\n border-color: var(--badge-edge);\n}\n._badge_634ccb[data-shape='pill'][data-focused='true'] {\n outline: 2px solid color-mix(in oklab, var(--badge-edge) 60%, transparent);\n outline-offset: 2px;\n}\n\n._badge_634ccb[data-shape='plain'] {\n display: inline;\n background: transparent;\n --_pad-top: var(--badge-pad-top, 0px);\n --_pad-right: var(--badge-pad-right, 0px);\n --_pad-bottom: var(--badge-pad-bottom, 0px);\n --_pad-left: var(--badge-pad-left, 0px);\n letter-spacing: 0.04em;\n text-transform: none;\n color: var(--badge-fg);\n -webkit-box-decoration-break: slice;\n box-decoration-break: slice;\n}\n/* Plain paints no fill, so there is none for solid's ink to flip against: every variant takes\n the ink outline has, the one made to be read on whatever is behind the badge. */\n._badge_634ccb[data-shape='plain'] { --badge-fg: var(--badge-edge); }\n._badge_634ccb[data-shape='plain']:not([data-grade]) { --badge-fg: var(--_s-accent, var(--wzl-emphasis-fg, var(--wzl-fg-muted))); }\n._badge_634ccb[data-shape='plain'][data-focused='true'] {\n outline: 2px solid color-mix(in oklab, var(--badge-edge) 60%, transparent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n}\n\n._badge_634ccb[data-shape='plaque'] ._content_634ccb {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 -0.5px 0 rgba(0, 0, 0, 0.5);\n}\n\nbutton._badge_634ccb,\na._badge_634ccb {\n cursor: pointer;\n outline: 0;\n /* `border: 0` from the base rule would otherwise zero out the reserved width for buttons.\n Make it transparent + zero-width so the width matches the span form, but visible borders\n from shape-specific rules still apply on top. */\n border: 0 solid transparent;\n}\n/* A removable badge's label, standing in for the root as its button or link. The root\n draws the focus ring, from data-focused. */\n._target_634ccb {\n color: inherit;\n outline: 0;\n}\n._target_634ccb:is(a, [role='button']) { cursor: pointer; }\n\n/* The label takes a pointer over the whole badge but the remove control. A shape drawn as one\n box stretches the label over the root: unpositioned, `.content` keeps its z-index as a flex\n item and stops containing the label's absolute box. */\n._badge_634ccb:not([data-shape='pill'], [data-shape='plain']) > ._content_634ccb:has(> ._target_634ccb) { position: static; }\n._badge_634ccb:not([data-shape='pill'], [data-shape='plain']) ._target_634ccb::after {\n content: '';\n position: absolute;\n inset: 0;\n}\n/* Pill and plain are inline and can wrap, where an absolute box spans from the first fragment's\n start to the last one's end rather than covering the fragments. There the label's own inline\n box grows over the root's padding and border, fragment by fragment, and each growth is\n taken back by a margin so nothing moves. */\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) :is(._content_634ccb, ._target_634ccb) {\n -webkit-box-decoration-break: inherit;\n box-decoration-break: inherit;\n}\n._badge_634ccb[data-shape='pill'] { --_edge: var(--badge-stroke-width, 1px); }\n._badge_634ccb[data-shape='plain'] { --_edge: 0px; }\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) {\n --_hit-left: calc(var(--_pad-left) + var(--_edge));\n --_hit-right: calc(var(--_pad-right) + var(--_edge));\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb {\n padding: calc(var(--_pad-top) + var(--_edge)) 0 calc(var(--_pad-bottom) + var(--_edge)) var(--_hit-left);\n margin-left: calc(-1 * var(--_hit-left));\n}\n/* The label ends in a tail joined to its last word. Being nowrap is what keeps the control on\n that word's line: Chromium breaks before an inline-block whatever the text before it says,\n unless that text is nowrap. The tail's padding is the label's click target out to the badge's\n end, and its margin takes it back at once: a line breaker that meets extra width before\n anything takes it back wraps a badge whose own measured width fits. */\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > :has(+ ._remove_634ccb)::after {\n content: '\\2060';\n white-space: nowrap;\n padding-right: calc(var(--wzl-space-1) + var(--_remove-size) + var(--_hit-right));\n margin-right: calc(-1 * (var(--_remove-size) + var(--_hit-right)));\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._remove_634ccb {\n margin-left: 0;\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > ._target_634ccb::after {\n padding-block: calc(var(--_pad-top) + var(--_edge)) calc(var(--_pad-bottom) + var(--_edge));\n}\n/* A cloned break closes every fragment of the badge, so the label closes over each one too. Its\n last closing would reach past the badge's end, so there the tail gives the edge back. That\n closing is drawn where the tail leaves off, so the tail keeps its width and the control backs\n up into it instead. */\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb {\n padding-right: var(--_hit-right);\n margin-right: calc(-1 * var(--_hit-right));\n}\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > ._target_634ccb::after {\n margin-right: calc(-1 * var(--_hit-right));\n}\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb + ._remove_634ccb {\n margin-left: calc(-1 * var(--_remove-size));\n}\n\n/* Mixed from what the edge is made of: a property that reads itself is a cycle, and resolves to nothing. */\nbutton._badge_634ccb:hover,\na._badge_634ccb:hover,\n._badge_634ccb:has(._target_634ccb:is(a, [role='button']):hover) {\n --badge-edge: color-mix(in oklab, var(--_s-accent, var(--badge-emphasis-edge)) 88%, white);\n}\n@media (prefers-reduced-motion: reduce) {\n button._badge_634ccb:hover,\n a._badge_634ccb:hover,\n ._badge_634ccb:has(._target_634ccb:is(a, [role='button']):hover) { --badge-edge: var(--_s-accent, var(--badge-emphasis-edge)); }\n}\n\n._badge_634ccb { --_remove-size: 14px; --_remove-glyph: 10px; }\n._remove_634ccb {\n /* Above the label's stretched hit area. */\n position: relative;\n display: inline-block;\n width: var(--_remove-size);\n height: var(--_remove-size);\n margin-left: var(--wzl-space-1);\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: 50%;\n color: var(--badge-fg);\n cursor: pointer;\n /* The label's font, so `cap` below is the label's cap height. */\n font: inherit;\n /* Stands on the label's baseline in a margin box of no height, so it never grows the line or\n the badge, then drops until its middle is the middle of the capitals. The glyph is out of\n flow so that the box, having no baseline of its own, is aligned by its bottom edge. */\n vertical-align: baseline;\n align-self: baseline;\n margin-top: calc(-1 * var(--_remove-size));\n bottom: calc(0.35em - var(--_remove-size) / 2);\n bottom: calc(0.5cap - var(--_remove-size) / 2);\n}\n._remove_634ccb:hover { background: color-mix(in oklab, var(--badge-fg) 20%, transparent); }\n._remove_634ccb > svg {\n position: absolute;\n inset: 0;\n margin: auto;\n width: var(--_remove-glyph);\n height: var(--_remove-glyph);\n}\n._badge_634ccb[data-size='xs'] { --_remove-size: 12px; --_remove-glyph: 8px; }\n._badge_634ccb[data-size='md'] { --_remove-size: 16px; --_remove-glyph: 12px; }\n/* A plain badge is a bare run of text: its box is the font's own height, which is all the\n control has to fit in. */\n._badge_634ccb[data-shape='plain'] { --_remove-size: 1em; }\n\n/* BEGIN GENERATED stance rules: badge — `npm run gen:stances`, do not edit. */\n\n._badge_634ccb {\n --wzl-tint: initial;\n}\n\n._badge_634ccb {\n --_s-accent: var(--wzl-tint);\n}\n\n._badge_634ccb[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._badge_634ccb[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: badge */\n/* The form-row layout and the boxed frame a value sits in. Field and RadioGroup\n use the layout (`field`, `row`, `label`, `hint`, `error`); Input, Select,\n NumberField, UnitField and ComboBox add `control` to it and draw their value\n in a `frame`, which MenuButton's trigger and ListEditor's inputs wear too. */\n._field_1a89d8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._label_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n cursor: default;\n}\n\n._hint_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.4;\n}\n\n._error_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-danger);\n line-height: 1.4;\n}\n\n._row_1a89d8 {\n flex-direction: row;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._row_1a89d8 ._label_1a89d8 {\n flex: 1;\n min-width: 0;\n}\n\n/* A control fills its row. Beside its label, the label keeps its own width and\n the frame takes the rest; description and error (`below`) wrap onto a line of\n their own. A `fit` control keeps its own width instead. */\n._control_1a89d8 {\n width: 100%;\n min-width: 0;\n}\n\n._control_1a89d8._row_1a89d8 {\n align-items: center;\n flex-wrap: wrap;\n row-gap: var(--wzl-space-2);\n}\n\n._control_1a89d8._row_1a89d8 ._label_1a89d8 { flex: 0 0 auto; }\n._control_1a89d8._row_1a89d8:not(._fit_1a89d8) ._frame_1a89d8 { flex: 1 1 0; min-width: 0; }\n._control_1a89d8._row_1a89d8 ._below_1a89d8 { flex-basis: 100%; }\n\n._fit_1a89d8 {\n width: auto;\n max-width: 100%;\n align-items: flex-start;\n}\n\n/* A control restyling part of the frame sets the matching `--_frame-*`\n property rather than restating the declaration, so no rule here ties with\n one of its own on specificity and neither stylesheet has to load first. */\n._frame_1a89d8 {\n height: var(--_frame-h, var(--wzl-field-h, var(--wzl-control-h)));\n background: var(--_frame-bg, var(--wzl-input-surface, var(--wzl-surface-sunken)));\n border: var(--_frame-border, var(--wzl-field-border, 1px solid color-mix(in srgb, var(--wzl-border), var(--wzl-border-strong) 30%)));\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n color: var(--_frame-fg, var(--wzl-fg));\n font-size: var(--_frame-font-size, var(--wzl-field-font-size, var(--wzl-font-size)));\n line-height: 1;\n transition: border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n/* The face a frame falls back to, beneath any class: NumberField composes the\n numeric face onto its frame, and a tie here would go to whichever sheet loaded last. */\n:where(._frame_1a89d8) {\n font-family: var(--wzl-font-ui);\n}\n\n/* A frame holding a text box rings whenever it has focus; a button frame only\n for keyboard focus (`data-focus-visible` where React Aria marks it). */\n._frame_1a89d8:focus-within:not(button),\n._frame_1a89d8[data-focus-visible],\n._frame_1a89d8:focus-visible {\n border-color: var(--_frame-focus-border, var(--wzl-focus-ring));\n box-shadow: var(--_frame-focus-shadow, var(--wzl-field-focus-shadow, 0 0 0 1px var(--wzl-focus-ring)));\n outline: var(--_frame-focus-outline, none);\n}\n\n._field_1a89d8[data-invalid] ._frame_1a89d8 {\n border-color: var(--wzl-danger);\n}\n\n._field_1a89d8[data-disabled] ._frame_1a89d8,\n._frame_1a89d8[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._frame_1a89d8 input {\n flex: 1;\n min-width: 0;\n background: transparent;\n border: none;\n outline: none;\n color: inherit;\n font: inherit;\n}\n\n._frame_1a89d8 input::placeholder {\n color: var(--wzl-fg-subtle);\n}\n._frame_8d77af {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: 0 var(--wzl-field-pad-x);\n}\n\n._frame_8d77af input {\n padding: 0;\n}\n\n._adornment_8d77af {\n display: inline-flex;\n align-items: center;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-sm);\n pointer-events: none;\n}\n._handle_c30bf5 {\n flex-shrink: 0;\n width: 4px;\n align-self: stretch;\n cursor: ew-resize;\n background: transparent;\n border-left: 1px solid var(--wzl-border);\n /* The bar is 4px of hit area — thin enough to read as a seam, wide\n enough to grab. `touch-action: none` keeps a touch drag from being\n stolen by the scroll container it usually sits inside. */\n touch-action: none;\n}\n\n._handle_c30bf5._horizontal_c30bf5 {\n width: auto;\n height: 4px;\n align-self: auto;\n cursor: ns-resize;\n border-left: none;\n border-top: 1px solid var(--wzl-border);\n}\n\n._handle_c30bf5:hover {\n background: var(--wzl-border);\n}\n\n._handle_c30bf5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -1px;\n}\n._twisty_68cd0d {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* A floor, not a size: a control sized to a 12px glyph is a 12px target,\n which is under every pointer-size guideline there is. Stated as a minimum\n so a larger mark grows the target with it rather than being shrunk to fit\n — a flex item's default `flex-shrink: 1` would otherwise crush it. */\n min-width: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n min-height: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n padding: 0;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n background: none;\n /* Not the UA's buttontext: the disabled fill is --wzl-fg-subtle, a step down from the text beside it. */\n color: inherit;\n line-height: 1;\n cursor: pointer;\n}\n\n._twisty_68cd0d:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._twisty_68cd0d:disabled {\n cursor: not-allowed;\n}\n\n._mark_68cd0d {\n display: block;\n flex: none;\n}\n\n._lozenge_68cd0d {\n fill: var(--wzl-disclosure-fill, var(--wzl-accent));\n transition: fill var(--wzl-motion-fast) var(--wzl-ease-out-cubic);\n}\n\n._twisty_68cd0d:hover:not(:disabled) ._lozenge_68cd0d {\n fill: color-mix(in oklab, var(--wzl-disclosure-fill, var(--wzl-accent)), white 15%);\n}\n\n._twisty_68cd0d:disabled ._lozenge_68cd0d {\n fill: var(--wzl-fg-subtle);\n}\n\n._sign_68cd0d {\n fill: none;\n stroke: var(--wzl-fg-on-accent);\n stroke-width: 1;\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._lozenge_68cd0d {\n transition: none;\n }\n}\n\n._row_68cd0d {\n display: flex;\n align-items: center;\n gap: var(--wzl-disclosure-gap, 4px);\n}\n\n/* The row's content takes the rest and is allowed to shrink; the twisty is\n not, so a long label truncates rather than crushing the control. */\n._rowBody_68cd0d {\n flex: 1 1 auto;\n min-width: 0;\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */\n._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}\n\n._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}\n\n._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}\n\n._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}\n\n._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}\n\n._optionIcon_f29eb6 > svg {\n display: block;\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}._optionIcon_f29eb6 > svg {\n display: block;\n}/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n/* `orientation='row'`: the shared layout sets the trigger beside its label; a\n fit one keeps its own width there rather than the fill width below. */\n._row_da172f._fit_da172f ._trigger_da172f { width: auto; }\n\n._trigger_da172f {\n display: flex;\n width: 100%;\n align-items: center;\n gap: var(--wzl-space-3);\n /* Hooks, each defaulting to what the frame already draws: the visible box is\n this button, not the root a consumer's `className` lands on, so a surface\n that has to restyle it sets these rather than reaching in here. Together\n they draw the bare look too, for a surface that wants it from context\n rather than from `variant`: a transparent fill, no padding, the chevron\n hidden, the value underlined and an outline for focus. */\n padding: var(--wzl-select-pad, 0 var(--wzl-space-3) 0 var(--wzl-space-5));\n --_frame-h: var(--wzl-select-h);\n --_frame-bg: var(--wzl-select-bg);\n --_frame-border: var(--wzl-select-border);\n --_frame-fg: var(--wzl-select-fg, var(--wzl-fg));\n --_frame-font-size: var(--wzl-select-font-size);\n --_frame-focus-border: var(--wzl-select-focus-border);\n --_frame-focus-shadow: var(--wzl-select-focus-shadow);\n --_frame-focus-outline: var(--wzl-select-focus-outline);\n cursor: pointer;\n}\n\n._trigger_da172f[data-focus-visible] {\n outline-offset: 2px;\n}\n\n._value_da172f {\n flex: 1;\n min-width: 0;\n text-align: var(--wzl-select-align, left);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n /* The ellipsis needs `overflow: hidden`, which makes the line box a clip —\n the trigger's `line-height: 1` would cut this text's ascenders and\n descenders off. `normal` is the font's own leading, so it never can. */\n line-height: normal;\n /* Unset, the trigger's own weight. */\n font-weight: var(--wzl-select-weight);\n /* The underline hook: none unless a surface or `indicator` turns it on. */\n text-decoration-line: var(--wzl-select-underline, none);\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-decoration-color: var(--wzl-fg-subtle);\n text-underline-offset: 0.25em;\n transition: text-decoration-color var(--wzl-motion-fast);\n}\n\n._trigger_da172f:hover ._value_da172f,\n._trigger_da172f[data-focus-visible] ._value_da172f {\n text-decoration-style: solid;\n text-decoration-color: var(--wzl-fg-muted);\n}\n\n._select_da172f[data-open] ._value_da172f {\n text-decoration-style: solid;\n text-decoration-color: var(--wzl-accent);\n}\n\n/* `variant='bare'`: no box. The focus ring moves to an outline, since there is no border to recolor. */\n._bare_da172f ._trigger_da172f {\n padding: 0;\n background: transparent;\n border: var(--wzl-select-border, 1px solid transparent);\n}\n\n._bare_da172f ._trigger_da172f[data-focus-visible] {\n border-color: transparent;\n box-shadow: none;\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._value_da172f[data-placeholder] {\n color: var(--wzl-fg-subtle);\n text-decoration-color: var(--wzl-fg-subtle);\n}\n\n._chevron_da172f {\n display: var(--wzl-select-chevron, block);\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: 0 0 auto;\n}\n\n/* `indicator='underline'`: the value carries the affordance itself. A text\n decoration rather than a border, so it hugs the word and adds nothing to the\n box — the row's height and the value's width are the same either way. The\n rest of the underline's look sits on `.value`, shared with the hook. */\n._underlined_da172f ._value_da172f {\n text-decoration-line: underline;\n}\n\n/* Nothing sits beside the value, so the row's gap and the padding kept for a\n caret are the value's to spend. */\n._underlined_da172f ._trigger_da172f,\n._plain_da172f ._trigger_da172f {\n gap: 0;\n}\n\n._bare_da172f._underlined_da172f ._trigger_da172f,\n._bare_da172f._plain_da172f ._trigger_da172f {\n padding: 0;\n}\n\n/* A list that hangs below its trigger takes the trigger's width, so the two\n read as one control. One that opens over it is already tied to the trigger\n by its selected row — widening it to match would only add blank rule beside\n the labels. `data-align` is set on exactly the ones that do. */\n._popover_da172f:not([data-align]) {\n min-width: var(--trigger-width);\n}\n\n._popover_da172f {\n max-height: inherit;\n outline: none;\n}\n\n._option_da172f {\n}\n\n:is(._option_da172f, ._section_da172f) + ._section_da172f,\n._section_da172f + ._option_da172f {\n margin-top: var(--wzl-space-2);\n padding-top: var(--wzl-space-2);\n border-top: 1px solid var(--wzl-line-subtle);\n}\n\n._sectionHeader_da172f {\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg-subtle);\n}\n\n._optionLabel_da172f {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* A trigger that sets its value against its end edge gets a list that does the\n same, so the row that opened over the value stays on top of it. */\n._popover_da172f[data-align='end'] ._option_da172f {\n justify-content: flex-end;\n}\n\n._check_da172f {\n width: 10px;\n height: 10px;\n flex: 0 0 auto;\n opacity: 0;\n}\n\n._option_da172f[data-selected] ._check_da172f {\n opacity: 1;\n}\n\n._value_da172f ._check_da172f {\n display: none;\n}\n\n/* `width='fit'`: a hidden stack of every option label shares the value's grid\n cell, so the trigger sizes to its widest option and never resizes on select. */\n._fit_da172f ._trigger_da172f {\n display: grid;\n grid-template-columns: auto auto;\n}\n\n._fit_da172f._underlined_da172f ._trigger_da172f,\n._fit_da172f._plain_da172f ._trigger_da172f {\n grid-template-columns: auto;\n}\n\n._fit_da172f ._value_da172f,\n._fit_da172f ._sizer_da172f {\n grid-area: 1 / 1;\n}\n\n._fit_da172f ._chevron_da172f {\n grid-area: 1 / 2;\n}\n\n._sizer_da172f {\n}\n/* The label a `Checkbox` or a `Switch` wraps round its control and its text. */._toggleLabel_5ff28a {\n /* Holds the Switch's react-aria hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}\n\n._switch_b64abf {\n}\n\n._switch_b64abf[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._track_b64abf {\n position: relative;\n flex: 0 0 auto;\n width: 28px;\n height: 16px;\n /* A share of the text color, not a surface: a sunken fill vanishes on a surface as dark as it is,\n and leaves the thumb a dot with nothing round it. */\n background: color-mix(in srgb, var(--wzl-fg) 22%, transparent);\n /* Keeps the box the thumb is placed in; the track's fill shows through it. */\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-pill);\n box-shadow: var(--wzl-bevel-sunken, none);\n transition: background-color var(--wzl-motion-fast), border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._switch_b64abf[data-hovered] ._track_b64abf {\n border-color: var(--wzl-border-strong);\n}\n\n._switch_b64abf[data-hovered][data-selected] ._track_b64abf {\n border-color: color-mix(in oklab, var(--wzl-accent-strong) 60%, var(--wzl-fg));\n}\n\n._switch_b64abf[data-focus-visible] ._track_b64abf {\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._switch_b64abf[data-selected] ._track_b64abf {\n background: var(--wzl-accent-strong);\n}\n\n._thumb_b64abf {\n position: absolute;\n top: 1px;\n left: 1px;\n width: 12px;\n height: 12px;\n background: var(--wzl-fg);\n border-radius: 50%;\n box-shadow: var(--wzl-bevel-raised, none);\n transition: transform var(--wzl-motion-fast);\n}\n\n._switch_b64abf[data-selected] ._thumb_b64abf {\n transform: translateX(12px);\n background: var(--wzl-fg-on-accent);\n}\n\n._label_b64abf {\n line-height: 1.2;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */\n._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}\n\n/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */\n._item_3eaeae {\n opacity: var(--along-shown, 1);\n}\n\n/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */\n._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}\n\n._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}\n\n._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}\n\n/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */\n._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* Text drawn along the run by `useRunText`: the glyphs it stands in for are kept for layout and made transparent. */\n[data-run-text-hides] {\n -webkit-text-fill-color: transparent;\n}\n\n/* A field's value is no text node, so nothing is drawn in its place. */\n[data-run-text-hides] :is(input, textarea) {\n -webkit-text-fill-color: currentColor;\n}\n\n._bend_2023ee {\n position: absolute;\n left: 0;\n top: 0;\n inline-size: 0;\n block-size: 0;\n pointer-events: none;\n -webkit-text-fill-color: currentColor;\n}\n/* Shared by ToggleBar, ButtonBar and OptionsBar, which look alike and differ\n in what a segment does. Lives here rather than in any of them so none owns\n the others' styling.\n\n The track is a pill-shaped well. The selected segment is a flat accent\n fill or, as the theme's --wzl-gloss runs 0 to 1, a tinted glass cylinder\n of the same \"lozenge\" family as the standalone Button, faded in the way\n Button.module.css fades its own. Glass params come from the\n `--btn-*` custom properties (see Button.module.css) so the Button Lab\n can tune both surfaces with one set of sliders. */\n._root_21fce6 {\n display: inline-flex;\n height: var(--tb-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.18) 0%,\n rgba(0, 0, 0, 0.05) 100%\n );\n border-radius: var(--wzl-radius-pill);\n /* Clip segments to the track outline so interior corners read crisp and\n the selected segment's glass treatment doesn't paint over the rounded\n outer pixels. */\n overflow: hidden;\n box-shadow: var(\n --wzl-bevel-sunken,\n inset 0 1px 2px rgba(0, 0, 0, 0.4),\n 0 1px 0 rgba(255, 255, 255, 0.06)\n );\n /* The track clips, so without this a squeezing row shrinks it to nothing. */\n min-width: max-content;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n}\n\n._segment_21fce6 {\n position: relative;\n flex: 1 1 0;\n /* Equal widths when there is room, never narrower than the label. The\n segment clips its gloss, which otherwise drops its flex minimum to 0. */\n min-width: max-content;\n padding: 0 var(--wzl-space-6);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n margin: 0;\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-field-font-size, var(--btn-fontsize, var(--wzl-font-size)));\n line-height: 1;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n /* Only round the outer corners of the bar — middle segments stay square\n so the seams between them don't render as facing parentheses. */\n border-radius: 0;\n isolation: isolate;\n overflow: hidden;\n transition: color var(--wzl-motion-fast);\n}\n\n/* 8px around a 14px glyph is most of a segment. */\n._segment_21fce6:has(> svg) {\n padding: 0 5px;\n}\n\n._segment_21fce6:first-of-type {\n border-radius: 0;\n border-start-start-radius: var(--wzl-radius-pill);\n border-end-start-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:last-of-type {\n border-radius: 0;\n border-start-end-radius: var(--wzl-radius-pill);\n border-end-end-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* The track clips, so the ring stays inset, where a selected segment's\n accent fill would swallow it. */\n._segmentSelected_21fce6:focus-visible {\n outline-color: var(--wzl-fg-on-accent);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6:focus-visible {\n outline-color: var(--wzl-focus-ring);\n}\n\n._segment_21fce6:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n color: var(--wzl-fg);\n}\n\n/* Selected segment. Mirrors a confirm Button. */\n._segmentSelected_21fce6 {\n --_flat-fill: color-mix(in srgb, var(--wzl-accent) calc((1 - var(--wzl-gloss)) * 100%), transparent);\n background: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) var(--btn-top-alpha, 45%), transparent) 0%,\n color-mix(in srgb, var(--wzl-accent) var(--btn-upper-alpha, 70%), transparent) calc(var(--btn-equator, 52%) - var(--btn-equator-spread, 12%)),\n color-mix(in srgb, var(--wzl-accent) var(--btn-equator-tint, 95%), white) var(--btn-equator, 52%),\n var(--wzl-accent) calc(var(--btn-equator, 52%) + var(--btn-equator-spread, 12%) * 1.6),\n color-mix(in srgb, var(--wzl-accent) var(--btn-base-tint, 70%), black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur, 6px) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate, 1.3) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur, 6px) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate, 1.3) - 1) * var(--wzl-gloss)));\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n text-shadow:\n 0 1px 0 rgba(0, 0, 0, calc(var(--btn-text-shadow, 0.35) * var(--wzl-gloss))),\n var(--btn-text-inset-x, 0px) var(--btn-text-inset-y, 1px) 0 rgba(0, 0, 0, calc(var(--btn-text-inset, 0.55) * var(--wzl-gloss))),\n 0 0 6px rgba(0, 0, 0, calc(var(--btn-text-shadow, 0.35) * 0.5 * var(--wzl-gloss)));\n box-shadow: var(\n --wzl-bevel-raised,\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi, 0.42) * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo, 0.3) * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(var(--btn-rim, 0.22) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near, 0.3) * var(--wzl-gloss))),\n 0 2px 4px rgba(0, 0, 0, calc(var(--btn-drop-far, 0.18) * 0.8 * var(--wzl-gloss)))\n );\n}\n\n/* Specular gloss on the selected segment. Top corners inherit the\n segment's radius so they hug the upper edge cleanly; bottom corners\n are flattened so the gloss ends in a straight line at the equator\n instead of two little curves that read as `)(` brackets. */\n._segmentSelected_21fce6::before {\n content: '';\n position: absolute;\n inset: 1px 1px var(--btn-gloss-bottom, 50%) 1px;\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, var(--btn-gloss-top, 0.42)) 0%,\n rgba(255, 255, 255, var(--btn-gloss-mid, 0.12)) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n pointer-events: none;\n z-index: 1;\n opacity: var(--wzl-gloss);\n}\n\n._segmentSelected_21fce6 > * {\n position: relative;\n z-index: 2;\n}\n\n/* Mixed segment (`aria-pressed=\"mixed\"`) — the sources disagree. Reads as a\n deliberate third state rather than a dimmed \"on\": a flat accent wash with\n none of the selected segment's gloss/cylinder treatment, so it can't be\n mistaken for the glass lozenge at a glance. */\n._segmentMixed_21fce6 {\n background: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n color: var(--wzl-fg);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wzl-accent) 45%, transparent);\n}\n\n._segmentMixed_21fce6:hover:not(:disabled) {\n background: color-mix(in srgb, var(--wzl-accent) 32%, transparent);\n}\n\n._variant_minimal_21fce6 ._segmentMixed_21fce6 {\n background: color-mix(in srgb, var(--wzl-accent) 18%, transparent);\n box-shadow: none;\n color: var(--wzl-fg);\n}\n\n/* Small variant — ~60% of the default height, with proportionally reduced\n padding and font. Sized for dense surfaces (lab control panels, inline\n filters, etc.). */\n._size_sm_21fce6 {\n height: var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px));\n padding: 1px;\n}\n\n._size_sm_21fce6 ._segment_21fce6 {\n padding: 0 var(--wzl-space-4);\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n}\n\n/* `.size_sm .segment` outranks the glyph rule above on specificity. */\n._size_sm_21fce6 ._segment_21fce6:has(> svg) {\n padding: 0 3px;\n}\n\n/* Minimal variant — strips the pill track, glass selected state, inset\n shadows, and outer padding. Used in dense diagnostic surfaces (dispatch\n trace, lab inspectors) where the bar must read as plain text controls. */\n._variant_minimal_21fce6 {\n height: auto;\n padding: 0;\n background: none;\n border-radius: 0;\n box-shadow: none;\n gap: var(--wzl-space-1);\n}\n\n/* No font size here: the bar's `size` sets it, as under every variant. */\n._variant_minimal_21fce6 ._segment_21fce6 {\n padding: 0 var(--wzl-space-2);\n font-weight: var(--wzl-font-weight-medium);\n line-height: 1.4;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg-muted);\n transition: none;\n}\n\n._variant_minimal_21fce6 ._segment_21fce6:first-of-type,\n._variant_minimal_21fce6 ._segment_21fce6:last-of-type,\n._variant_minimal_21fce6 ._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-sm);\n}\n\n._variant_minimal_21fce6 ._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n color: var(--wzl-fg);\n background: var(--wzl-surface-hover);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6 {\n background: none;\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n color: var(--wzl-accent-fg);\n text-shadow: none;\n box-shadow: none;\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6::before {\n content: none;\n}\n\n/* Flat variant — no track, no glass, no pill: each segment is its own\n outlined cell. For property panels, where a bar sits in a row beside\n inputs and the glass cylinder makes it the loudest thing on the surface. */\n._variant_flat_21fce6 {\n padding: 0;\n background: none;\n border-radius: var(--wzl-radius-sm);\n box-shadow: none;\n overflow: visible;\n}\n\n._variant_flat_21fce6 ._segment_21fce6 {\n /* The same faint rule a text box draws, so a field's segments and its boxes read as one family. */\n border: var(--wzl-field-border, 1px solid color-mix(in srgb, var(--wzl-border), var(--wzl-border-strong) 30%));\n border-radius: 0;\n /* Sunken, so an unselected cell sits below the panel and the selected one\n reads as raised without needing the glass treatment back. */\n background: var(--wzl-surface-sunken);\n box-shadow: var(--wzl-bevel-sunken, none);\n color: var(--wzl-fg-muted);\n}\n\n/* Adjacent cells share one rule rather than stacking two. */\n._variant_flat_21fce6 ._segment_21fce6 ~ ._segment_21fce6 {\n margin-inline-start: -1px;\n}\n\n._variant_flat_21fce6 ._segment_21fce6:first-of-type {\n border-start-start-radius: var(--wzl-radius-sm);\n border-end-start-radius: var(--wzl-radius-sm);\n}\n\n._variant_flat_21fce6 ._segment_21fce6:last-of-type {\n border-start-end-radius: var(--wzl-radius-sm);\n border-end-end-radius: var(--wzl-radius-sm);\n}\n\n._variant_flat_21fce6 ._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n\n._variant_flat_21fce6 ._segmentSelected_21fce6 {\n /* Above its neighbors, or the next cell's left border covers its right one. */\n z-index: 1;\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n text-shadow: none;\n box-shadow: var(--wzl-bevel-raised, none);\n}\n\n._variant_flat_21fce6 ._segmentSelected_21fce6::before {\n content: none;\n}\n\n/* A vertical row: the well and its segments turned a quarter turn, each label still upright. */\n._root_21fce6[data-orientation='vertical'] {\n flex-direction: column;\n height: auto;\n min-width: 0;\n}\n\n._root_21fce6[data-orientation='vertical'] ._segment_21fce6 {\n min-height: calc(var(--tb-h, var(--wzl-control-h)) - 2 * var(--wzl-space-1));\n}\n\n._size_sm_21fce6[data-orientation='vertical'] ._segment_21fce6 {\n min-height: calc(var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px)) - 2px);\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:first-of-type {\n border-radius: var(--wzl-radius-pill) var(--wzl-radius-pill) 0 0;\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:last-of-type {\n border-radius: 0 0 var(--wzl-radius-pill) var(--wzl-radius-pill);\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-pill);\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6 ~ ._segment_21fce6 {\n margin-inline-start: 0;\n margin-block-start: -1px;\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6:first-of-type {\n border-radius: var(--wzl-radius-sm) var(--wzl-radius-sm) 0 0;\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6:last-of-type {\n border-radius: 0 0 var(--wzl-radius-sm) var(--wzl-radius-sm);\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A segmented row laid along a track shape, as `useRunRow` lays any row. The well and the lit segments are SVG\n strokes along the run; `--_h` is the well's thickness and the padding its rim, read back for the stroke ends. */\n._root_a9f786 {\n --_h: var(--tb-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n column-gap: 0;\n user-select: none;\n -webkit-user-select: none;\n}\n\n._root_a9f786[data-size='sm'] {\n --_h: var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px));\n padding: 1px;\n}\n\n/* Without a well the segments are boxes of their own, so they stand apart. */\n._root_a9f786:not([data-variant='default']) {\n padding: 0;\n column-gap: var(--wzl-space-1);\n}\n\n/* `.segment` sets `position: relative` at the specificity `onRun` sets `absolute`. */\n._root_a9f786 > [data-segment] {\n position: absolute;\n}\n\n._root_a9f786[data-variant='default'] > [data-segment] {\n block-size: calc(var(--_h) - 2 * var(--wzl-space-1));\n}\n\n._root_a9f786[data-variant='default'][data-size='sm'] > [data-segment] {\n block-size: calc(var(--_h) - 2px);\n}\n\n._root_a9f786[data-variant='flat'] > [data-segment] {\n block-size: var(--_h);\n margin: 0;\n}\n\n/* The lit stroke is behind the label, so the label takes the colors it would on a lit segment. */\n._root_a9f786[data-variant='default'] > [data-state='on'] {\n color: var(--wzl-fg-on-accent);\n --wzl-fg: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._root_a9f786[data-variant='default'] > [data-state='mixed'] {\n --wzl-fg-muted: var(--wzl-fg);\n}\n\n._well_a9f786 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n/* The straight well's top-to-bottom shade, at its midpoint. */\n._wellTrack_a9f786 {\n fill: none;\n stroke: rgba(0, 0, 0, 0.12);\n stroke-width: var(--_h);\n stroke-linecap: round;\n}\n\n._wellRim_a9f786 {\n fill: none;\n stroke: white;\n stroke-width: calc(var(--_h) - 2 * var(--wzl-space-1));\n stroke-linecap: round;\n}\n\n._root_a9f786[data-size='sm'] ._wellRim_a9f786 {\n stroke-width: calc(var(--_h) - 2px);\n}\n\n._lit_a9f786,\n._mixed_a9f786 {\n fill: none;\n stroke-width: var(--_h);\n}\n\n._lit_a9f786 {\n stroke: var(--wzl-accent);\n}\n\n._mixed_a9f786 {\n stroke: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n}\n/* The one skin for a native <input type=\"checkbox\">. Imported by Checkbox and by\n the property rows, which render the same DOM. The box keys off the input's own\n pseudo-classes; a label's hover reaches its control's :hover. */\n._checkbox_6bb7b4 {\n appearance: none;\n -webkit-appearance: none;\n position: relative;\n flex: 0 0 auto;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n margin: 0;\n /* Not the UA's fieldtext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n cursor: pointer;\n transition: background-color var(--wzl-motion-fast), border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._checkbox_6bb7b4:hover:not(:disabled) {\n border-color: var(--wzl-fg-muted);\n}\n\n._checkbox_6bb7b4:focus-visible {\n outline: none;\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._checkbox_6bb7b4:checked,\n._checkbox_6bb7b4:indeterminate {\n background: var(--wzl-accent-strong);\n border-color: var(--wzl-accent-strong);\n}\n\n._checkbox_6bb7b4[aria-invalid='true'] {\n border-color: var(--wzl-danger);\n}\n\n/* The mark is a mask filled with the on-accent color, so it follows the theme. */\n._checkbox_6bb7b4:checked::before,\n._checkbox_6bb7b4:indeterminate::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--wzl-fg-on-accent);\n -webkit-mask: var(--_check-mark) center / 100% 100% no-repeat;\n mask: var(--_check-mark) center / 100% 100% no-repeat;\n}\n\n._checkbox_6bb7b4:checked {\n --_check-mark: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpolyline points='3,7.5 6,10.5 11,4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n}\n\n._checkbox_6bb7b4:indeterminate {\n --_check-mark: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cline x1='3' y1='7' x2='11' y2='7' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");\n}\n\n._checkbox_6bb7b4:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._frame_f0cf2f {\n display: flex;\n align-items: stretch;\n overflow: hidden;\n}\n\n._frame_f0cf2f input {\n padding: 0 var(--wzl-field-pad-x);\n text-align: right;\n -moz-appearance: textfield;\n}\n\n._frame_f0cf2f input::-webkit-outer-spin-button,\n._frame_f0cf2f input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n._steppers_f0cf2f {\n display: flex;\n flex-direction: column;\n border-inline-start: 1px solid var(--wzl-border);\n}\n\n[data-stepper-side='start'] > ._steppers_f0cf2f {\n order: -1;\n border-inline-start: none;\n border-inline-end: 1px solid var(--wzl-border);\n}\n\n._stepper_f0cf2f {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-control-h-xs);\n flex: 1;\n /* The two share the frame's height; left to their glyphs' line boxes they\n overflow it, and the frame clips the lower one. */\n min-height: 0;\n height: auto;\n overflow: hidden;\n background: transparent;\n border: none;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n padding: 0;\n font: inherit;\n font-size: min(var(--wzl-font-size-2xs), calc(var(--wzl-field-h, var(--wzl-control-h)) * 0.35));\n line-height: 1;\n}\n\n._stepper_f0cf2f:not(:last-child) {\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._stepper_f0cf2f[data-hovered]:not([data-disabled]),\n._stepper_f0cf2f:hover:not(:disabled):not([data-rac]) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n\n._stepper_f0cf2f[data-pressed]:not([data-disabled]),\n._stepper_f0cf2f:active:not(:disabled):not([data-rac]) {\n background: var(--wzl-surface-pressed);\n}\n\n._stepper_f0cf2f[data-disabled],\n._stepper_f0cf2f:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* A disabled field dims at its frame, steppers included. */\n._frame_f0cf2f[data-disabled] ._stepper_f0cf2f:disabled {\n opacity: 1;\n}\n\n/* Mirrors the property rows' editable readout (`.readoutInput`), so a number\n sitting inside other chrome does not draw a second box around itself. */\n._ghost_f0cf2f {\n --_frame-h: auto;\n --_frame-bg: transparent;\n --_frame-border: 1px solid transparent;\n --_frame-fg: var(--wzl-accent-fg);\n --_frame-focus-shadow: none;\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._ghost_f0cf2f input {\n padding: 1px 0;\n}\n\n._ghost_f0cf2f:hover {\n background: color-mix(in srgb, currentColor 8%, transparent);\n}\n\n._ghost_f0cf2f:focus-within {\n background: var(--wzl-surface-sunken);\n}\n\n/* `width='fit'` states the field's width in characters: left alone an `<input>`\n asks for its 20-character intrinsic width, wider than most rows it sits in. */\n._fit_f0cf2f ._frame_f0cf2f {\n width: fit-content;\n max-width: 100%;\n}\n\n._fit_f0cf2f ._frame_f0cf2f input {\n flex: 0 0 auto;\n width: var(--wzl-number-field-width, 9ch);\n}\n/* The one skin for a native <input type=\"range\">. Imported by InlineRange and\n by the property rows, which render the same DOM and used to carry three\n independently authored copies of these rules. labkit's theme/base.less\n extends it onto a bare range under `.lk-root`, so it is the only copy.\n\n The track is painted here rather than left to `accent-color`: a UA fills the\n left of the track with the accent but draws the remainder near-white on a\n dark surface whatever `color-scheme` says, and overriding the track's\n background removes the accent fill instead of recoloring the remainder. */\n._range_04447f {\n appearance: none;\n -webkit-appearance: none;\n /* The slop: padding widens the hit box and the negative margin gives the space\n back. Border-box because the property rows and labkit set it on every descendant.\n No thumb slop: a native thumb re-centers on the pointer wherever a press lands. */\n box-sizing: border-box;\n width: calc(100% + 2 * var(--wzl-slider-track-slop));\n min-inline-size: calc(48px + 2 * var(--wzl-slider-track-slop));\n /* The box is taller than the track so the thumb has room to spill; a surface\n where the element itself IS the track overrides this. */\n height: calc(var(--wzl-range-box-h, 12px) + 2 * var(--wzl-slider-track-slop));\n padding: var(--wzl-slider-track-slop);\n margin: calc(-1 * var(--wzl-slider-track-slop));\n /* Transparent so the track pseudo-element shows; a surface that paints the element itself overrides it. */\n background: var(--wzl-range-bg, transparent);\n background-clip: content-box;\n cursor: pointer;\n}\n\n._range_04447f::-webkit-slider-runnable-track {\n height: var(--wzl-slider-track-h);\n border-radius: var(--wzl-radius-sm);\n background: var(\n --wzl-range-track-bg,\n color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-track-mix), transparent)\n );\n box-shadow: var(--wzl-bevel-sunken, none);\n}\n\n._range_04447f::-moz-range-track {\n height: var(--wzl-slider-track-h);\n border-radius: var(--wzl-radius-sm);\n background: var(\n --wzl-range-track-bg,\n color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-track-mix), transparent)\n );\n box-shadow: var(--wzl-bevel-sunken, none);\n}\n\n._range_04447f::-webkit-slider-thumb {\n appearance: none;\n -webkit-appearance: none;\n width: var(--wzl-slider-thumb-size);\n height: var(--wzl-slider-thumb-size);\n border: none;\n border-radius: 50%;\n background: color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-thumb-mix), transparent);\n box-shadow: var(--wzl-bevel-raised, none);\n /* WebKit and Blink hang the thumb from the track's top edge. A transform, not\n margin-top: Blink rounds a thumb margin to a whole CSS pixel, which leaves an\n odd track/thumb gap half a pixel off center at every DPR. */\n transform: translateY(calc((var(--wzl-slider-track-h) - var(--wzl-slider-thumb-size)) / 2));\n}\n\n._range_04447f::-moz-range-thumb {\n width: var(--wzl-slider-thumb-size);\n height: var(--wzl-slider-thumb-size);\n border: none;\n border-radius: 50%;\n background: color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-thumb-mix), transparent);\n box-shadow: var(--wzl-bevel-raised, none);\n}\n\n/* :where() keeps these at the specificity of `.range` alone, which is what a bare\n labkit range extending this skin needs to stay at zero. */\n._range_04447f:where(:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: calc(2px - var(--wzl-slider-track-slop));\n}\n\n._range_04447f:where(:disabled) {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n/* Alpha variant: a fainter track, used where the row already carries a color\n swatch and the slider must not compete with it. */\n._alpha_04447f::-webkit-slider-runnable-track {\n background: var(--wzl-range-track-bg, color-mix(in srgb, var(--wzl-accent) 10%, transparent));\n}\n\n._alpha_04447f::-moz-range-track {\n background: var(--wzl-range-track-bg, color-mix(in srgb, var(--wzl-accent) 10%, transparent));\n}\n\n/* A dead alpha track keeps its groove but loses its thumb, so the affordance\n reads inert rather than merely dimmed. Keyed off `:disabled`, which a color field\n already sets on the input — not off a class on the row. One rule per engine:\n Blink and WebKit drop a whole selector list that names a -moz- pseudo-element. */\n._alpha_04447f:disabled::-webkit-slider-runnable-track {\n background: color-mix(in srgb, var(--wzl-fg) 5%, transparent);\n}\n\n._alpha_04447f:disabled::-moz-range-track {\n background: color-mix(in srgb, var(--wzl-fg) 5%, transparent);\n}\n\n._alpha_04447f:disabled::-webkit-slider-thumb {\n background: transparent;\n}\n\n._alpha_04447f:disabled::-moz-range-thumb {\n background: transparent;\n}\n\n/* A track with stops draws them in the box's background, behind the track and the\n thumb; `useTrackStops` sets one layer per stop and where each sits. */\n._range_04447f._stops_04447f {\n background-image: var(--wzl-range-stop-marks);\n background-position: var(--wzl-range-stop-at);\n background-size: 1px 75%;\n background-repeat: no-repeat;\n background-origin: content-box;\n}\n/* Track and thumb come from the shared range skin. What is local to\n InlineRange is the filled-to-N% paint, which no other surface has:\n `--slider-fill` carries the value, since no static rule expresses it. */\n._range_d74229 {\n flex: 1;\n --wzl-range-bg: linear-gradient(\n to right,\n var(--wzl-accent) 0 var(--slider-fill, 0%),\n var(--wzl-border-strong) var(--slider-fill, 0%) 100%\n );\n --wzl-range-box-h: var(--wzl-slider-track-h);\n /* The gradient above IS the track, so the shared track paint must not land on top of it. */\n --wzl-range-track-bg: transparent;\n border-radius: var(--wzl-radius-pill);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* `InlineRange` owns the track; this only says how it shares the row. */\n._range_cb2254 {\n flex: 1;\n}\n\n._readout_cb2254 {\n /* Holds `100%`: three digits and a percent sign wider than a digit. */\n min-inline-size: 5ch;\n text-align: end;\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n opacity: 0.7;\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._root_367058 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n._chip_367058 {\n position: relative;\n display: inline-flex;\n border-radius: var(--wzl-radius-sm);\n overflow: hidden;\n}\n\n._color_367058 {\n inline-size: 28px;\n block-size: var(--wzl-control-h-sm);\n padding: 0;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: none;\n cursor: pointer;\n}\n\n._color_367058:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._color_367058:focus-visible {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n/* Indeterminate (mixed) presentation: checkerboard overlay atop the\n * swatch. pointer-events: none so the input stays clickable. */\n._root_367058[data-mixed] ._chip_367058::after {\n content: '';\n position: absolute;\n inset: 1px;\n border-radius: var(--wzl-radius-sm);\n pointer-events: none;\n background: var(--wzl-checker-layer);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* `position: relative` holds the spoken copy, which is out of flow, inside this box. */\n._quantity_efab3c {\n position: relative;\n white-space: nowrap;\n}\n\n/* What a value is measured in, and what a member is called, sit back from how much. */\n._quantity_efab3c :is([data-part='unit'], [data-part='percentSign'], [data-part='label']) {\n color: var(--wzl-fg-muted);\n}\n\n/* A copy takes the hidden text form instead of the MathML's bare digits. */\n._math_efab3c {\n user-select: none;\n}\n\n/* The UI face with proportional digits, not the browser's math font. Equal-width digits align a column\n * but tilt a fraction: a narrow 1 sits off center in a wide 6's slot. Only a math font carries the gap\n * between a fraction's bar and its digits, so without one the gap is set here. */\n._math_efab3c math {\n font-family: var(--wzl-font-ui);\n font-variant-numeric: proportional-nums;\n}\n\n/* The bar runs past the digits by the same amount on each side. */\n._math_efab3c mfrac > * {\n padding-inline: 0.1em;\n}\n\n._math_efab3c mfrac > :first-child {\n padding-block-end: 0.12em;\n}\n\n._math_efab3c mfrac > :last-child {\n padding-block-start: 0.12em;\n}\n\n._hidden_efab3c {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* A value in effect but not chosen here, drawn in the secondary accent rather than dimmed, which\n * reads as disabled. The one definition: compose it, or mix it into Less. Every accent name is\n * restated because each resolves where it is declared, so remapping the base alone moves none. */._inherited_60a07f {\n --wzl-accent: var(--wzl-secondary);\n --wzl-accent-base: var(--wzl-secondary-base);\n --wzl-accent-strong: var(--wzl-secondary-strong);\n --wzl-accent-soft: var(--wzl-secondary-soft);\n --wzl-accent-hover: var(--wzl-secondary-strong);\n --wzl-accent-fg: var(--wzl-secondary-fg);\n color: var(--wzl-secondary-fg);\n}\n\n/* The property-panel family's one CSS module, assembled from the sheets beside\n each component. They are imported rather than made modules of their own\n because the grid rules cross components (`.listPairs > .subpanel`,\n `.groupBody > :not(.rowColor)` name two in one selector), and a class is\n scoped to the module that declares it. Order is cascade order. */\n\n/* Authored against a border-box reset (labkit's `.lk-root *`). weasel-ui has no\n global reset, so the family restates it over its own subtrees. */\n._panel_bd66d5,\n._list_bd66d5,\n._row_bd66d5,\n._group_bd66d5,\n._subpanel_bd66d5,\n._panel_bd66d5 *,\n._list_bd66d5 *,\n._row_bd66d5 *,\n._group_bd66d5 *,\n._subpanel_bd66d5 * {\n box-sizing: border-box;\n}\n\n/* A panel is chrome: a drag across it should move a slider, not paint a\n selection over its labels. What the family shows as a value stays copyable,\n and a field stays one — Safari carries `none` into an input's caret. */\n._panel_bd66d5,\n._list_bd66d5,\n._row_bd66d5,\n._group_bd66d5,\n._subpanel_bd66d5 {\n -webkit-user-select: none;\n user-select: none;\n}\n\n/* Opted in with `selectable` (a debug panel's default): the whole family lets\n text select, reaching past each member's own `none`. */\n._panel_bd66d5[data-selectable='true'],\n._panel_bd66d5[data-selectable='true'] :is(._panel_bd66d5, ._list_bd66d5, ._row_bd66d5, ._group_bd66d5, ._subpanel_bd66d5, ._card_bd66d5, ._cardList_bd66d5) {\n -webkit-user-select: text;\n user-select: text;\n}\n\n._readout_bd66d5,\n._readoutInput_bd66d5,\n._row_bd66d5 input:not([type='range']):not([type='checkbox']):not([type='radio']),\n._row_bd66d5 textarea,\n._row_bd66d5 [contenteditable] {\n -webkit-user-select: text;\n user-select: text;\n}\n\n/* ── Container metrics ──────────────────────────────────────────────\n Every spacing number the family lays out with is read from a `--wzl-prop-*`\n custom property with its own value as the fallback, so a consumer can move\n any of them from an ancestor without selector surgery. The `density` classes\n below set them in preset bundles; nothing in this file declares one, so an\n inherited value always reaches the use site. */\n\n._panel_bd66d5[data-stance='preview'] {\n overflow: hidden;\n}\n\n/* The twisty's target is taller than a title's line; it overhangs the line\n rather than growing the header, which would read as space under the title. */\n._foldTwisty_bd66d5 {\n margin-block: -4px;\n}\n\n/* Hidden until the keyboard reaches it: still focusable, so `twisty=\"folded\"`\n leaves a way to fold that is not the pointer. It keeps its room while hidden,\n so the title is where it will be once the twisty shows. */\n._foldTwistyQuiet_bd66d5:not(:focus-visible) {\n opacity: 0;\n}\n\n/* A panel's `twisty=\"folded\"` twisty trails its header and adds nothing to the\n header's height, so the title sits where it does with no twisty at all,\n open or folded. */\n._foldTwistyTrailing_bd66d5 {\n margin-block: calc(var(--wzl-disclosure-target, var(--wzl-control-h-sm)) / -2);\n margin-inline-start: auto;\n}\n\n/* Hidden, it is out of the flow as well and holds no room. Under keyboard\n focus it shows over the header's end, where it stands once folded. */\n._foldTwistyTrailing_bd66d5._foldTwistyQuiet_bd66d5 {\n position: absolute;\n inset-inline-end: 0;\n top: 50%;\n margin: 0;\n translate: 0 -50%;\n}\n\n._foldTwistyTrailing_bd66d5._foldTwistyQuiet_bd66d5:not(:focus-visible) {\n pointer-events: none;\n}\n\n._foldTitle_bd66d5 {\n cursor: pointer;\n}\n\n._panelBody_bd66d5[hidden] {\n display: none;\n}\n\n/* Each panel resolves its slots into local names: the stance's own value,\n then — nested — the stance's nested value, falling back to the panel's base\n slot. The slots are @weasel-js/theme's STANCE_SLOTS. */\n/* BEGIN GENERATED stance rules: panel — `npm run gen:stances`, do not edit. */\n\n._panel_bd66d5[data-motif] {\n --wzl-tint: initial;\n}\n\n._panel_bd66d5[data-motif] {\n --_s-surface: var(--wzl-panel-surface);\n --_s-border-color: var(--wzl-panel-border-color);\n --_s-border-style: var(--wzl-panel-border-style);\n --_s-border-width: var(--wzl-panel-border-width);\n --_s-radius: var(--wzl-panel-radius);\n --_s-pad: var(--wzl-prop-panel-pad, var(--wzl-panel-pad));\n --_s-blur: var(--wzl-panel-blur);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-panel-title-font);\n --_s-title-weight: var(--wzl-panel-title-weight);\n --_s-title-size: var(--wzl-panel-title-size);\n --_s-title-case: var(--wzl-panel-title-case);\n --_s-title-tracking: var(--wzl-panel-title-tracking);\n --_s-title-color: var(--wzl-panel-title-color);\n --_s-title-inset: var(--wzl-panel-title-inset);\n}\n\n._panel_bd66d5[data-motif][data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-clarify-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-clarify-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-clarify-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-clarify-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-clarify-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='clarify'][data-nested] {\n --_s-surface: var(--wzl-stance-clarify-nested-surface, var(--wzl-stance-clarify-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-clarify-nested-border-color, var(--wzl-stance-clarify-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-clarify-nested-border-style, var(--wzl-stance-clarify-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-clarify-nested-border-width, var(--wzl-stance-clarify-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-clarify-nested-radius, var(--wzl-stance-clarify-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-clarify-nested-pad, var(--wzl-stance-clarify-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-clarify-nested-blur, var(--wzl-stance-clarify-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-clarify-nested-tint-mix, var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-nested-tint, var(--wzl-stance-clarify-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-nested-accent, var(--wzl-stance-clarify-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-clarify-nested-title-font, var(--wzl-stance-clarify-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-clarify-nested-title-weight, var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-clarify-nested-title-size, var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-clarify-nested-title-case, var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-clarify-nested-title-tracking, var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-clarify-nested-title-color, var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-clarify-nested-title-inset, var(--wzl-stance-clarify-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-aside-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-aside-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-aside-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-aside-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-aside-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='aside'][data-nested] {\n --_s-surface: var(--wzl-stance-aside-nested-surface, var(--wzl-stance-aside-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-aside-nested-border-color, var(--wzl-stance-aside-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-aside-nested-border-style, var(--wzl-stance-aside-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-aside-nested-border-width, var(--wzl-stance-aside-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-aside-nested-radius, var(--wzl-stance-aside-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-aside-nested-pad, var(--wzl-stance-aside-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-aside-nested-blur, var(--wzl-stance-aside-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-aside-nested-tint-mix, var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-nested-tint, var(--wzl-stance-aside-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-nested-accent, var(--wzl-stance-aside-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-aside-nested-title-font, var(--wzl-stance-aside-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-aside-nested-title-weight, var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-aside-nested-title-size, var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-aside-nested-title-case, var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-aside-nested-title-tracking, var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-aside-nested-title-color, var(--wzl-stance-aside-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-aside-nested-title-inset, var(--wzl-stance-aside-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-advanced-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-advanced-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-advanced-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-advanced-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-advanced-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='advanced'][data-nested] {\n --_s-surface: var(--wzl-stance-advanced-nested-surface, var(--wzl-stance-advanced-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-advanced-nested-border-color, var(--wzl-stance-advanced-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-advanced-nested-border-style, var(--wzl-stance-advanced-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-advanced-nested-border-width, var(--wzl-stance-advanced-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-advanced-nested-radius, var(--wzl-stance-advanced-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-advanced-nested-pad, var(--wzl-stance-advanced-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-advanced-nested-blur, var(--wzl-stance-advanced-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-advanced-nested-tint-mix, var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-nested-tint, var(--wzl-stance-advanced-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-nested-accent, var(--wzl-stance-advanced-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-advanced-nested-title-font, var(--wzl-stance-advanced-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-advanced-nested-title-weight, var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-advanced-nested-title-size, var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-advanced-nested-title-case, var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-advanced-nested-title-tracking, var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-advanced-nested-title-color, var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-advanced-nested-title-inset, var(--wzl-stance-advanced-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-debug-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-debug-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-debug-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-debug-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-debug-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='debug'][data-nested] {\n --_s-surface: var(--wzl-stance-debug-nested-surface, var(--wzl-stance-debug-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-debug-nested-border-color, var(--wzl-stance-debug-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-debug-nested-border-style, var(--wzl-stance-debug-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-debug-nested-border-width, var(--wzl-stance-debug-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-debug-nested-radius, var(--wzl-stance-debug-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-debug-nested-pad, var(--wzl-stance-debug-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-debug-nested-blur, var(--wzl-stance-debug-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-debug-nested-tint-mix, var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-nested-tint, var(--wzl-stance-debug-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-nested-accent, var(--wzl-stance-debug-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-debug-nested-title-font, var(--wzl-stance-debug-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-debug-nested-title-weight, var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-debug-nested-title-size, var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-debug-nested-title-case, var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-debug-nested-title-tracking, var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-debug-nested-title-color, var(--wzl-stance-debug-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-debug-nested-title-inset, var(--wzl-stance-debug-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-preview-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-preview-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-preview-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-preview-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-preview-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='preview'][data-nested] {\n --_s-surface: var(--wzl-stance-preview-nested-surface, var(--wzl-stance-preview-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-preview-nested-border-color, var(--wzl-stance-preview-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-preview-nested-border-style, var(--wzl-stance-preview-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-preview-nested-border-width, var(--wzl-stance-preview-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-preview-nested-radius, var(--wzl-stance-preview-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-preview-nested-pad, var(--wzl-stance-preview-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-preview-nested-blur, var(--wzl-stance-preview-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-preview-nested-tint-mix, var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-nested-tint, var(--wzl-stance-preview-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-nested-accent, var(--wzl-stance-preview-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-preview-nested-title-font, var(--wzl-stance-preview-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-preview-nested-title-weight, var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-preview-nested-title-size, var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-preview-nested-title-case, var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-preview-nested-title-tracking, var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-preview-nested-title-color, var(--wzl-stance-preview-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-preview-nested-title-inset, var(--wzl-stance-preview-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-confirm-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-confirm-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-confirm-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-confirm-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-confirm-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='confirm'][data-nested] {\n --_s-surface: var(--wzl-stance-confirm-nested-surface, var(--wzl-stance-confirm-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-confirm-nested-border-color, var(--wzl-stance-confirm-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-confirm-nested-border-style, var(--wzl-stance-confirm-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-confirm-nested-border-width, var(--wzl-stance-confirm-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-confirm-nested-radius, var(--wzl-stance-confirm-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-confirm-nested-pad, var(--wzl-stance-confirm-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-confirm-nested-blur, var(--wzl-stance-confirm-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-confirm-nested-tint-mix, var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-nested-tint, var(--wzl-stance-confirm-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-nested-accent, var(--wzl-stance-confirm-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-confirm-nested-title-font, var(--wzl-stance-confirm-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-confirm-nested-title-weight, var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-confirm-nested-title-size, var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-confirm-nested-title-case, var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-confirm-nested-title-tracking, var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-confirm-nested-title-color, var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-confirm-nested-title-inset, var(--wzl-stance-confirm-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-cancel-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-cancel-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-cancel-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-cancel-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-cancel-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='cancel'][data-nested] {\n --_s-surface: var(--wzl-stance-cancel-nested-surface, var(--wzl-stance-cancel-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-cancel-nested-border-color, var(--wzl-stance-cancel-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-cancel-nested-border-style, var(--wzl-stance-cancel-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-cancel-nested-border-width, var(--wzl-stance-cancel-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-cancel-nested-radius, var(--wzl-stance-cancel-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-cancel-nested-pad, var(--wzl-stance-cancel-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-cancel-nested-blur, var(--wzl-stance-cancel-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-cancel-nested-tint-mix, var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-nested-tint, var(--wzl-stance-cancel-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-nested-accent, var(--wzl-stance-cancel-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-cancel-nested-title-font, var(--wzl-stance-cancel-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-cancel-nested-title-weight, var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-cancel-nested-title-size, var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-cancel-nested-title-case, var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-cancel-nested-title-tracking, var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-cancel-nested-title-color, var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-cancel-nested-title-inset, var(--wzl-stance-cancel-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-emphasis='high'],\n._panel_bd66d5[data-motif][data-emphasis='high'][data-nested] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._panel_bd66d5[data-motif][data-emphasis='low'],\n._panel_bd66d5[data-motif][data-emphasis='low'][data-nested] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._panel_bd66d5[data-motif][data-grade],\n._panel_bd66d5[data-motif][data-grade][data-nested] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._panel_bd66d5[data-motif] {\n --_s-fill: var(--_s-surface);\n}\n\n._panel_bd66d5[data-motif][data-tint],\n._panel_bd66d5[data-motif][data-grade],\n._panel_bd66d5[data-motif][data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._panel_bd66d5[data-motif][data-tint],\n._panel_bd66d5[data-motif][data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._panel_bd66d5[data-motif][data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: panel */\n\n._list_bd66d5 {\n display: grid;\n /* A track list, for a container that knows it is too narrow for two columns:\n `minmax(0, 1fr)` stacks every row, and a full-width row still spans. */\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-row-gap, 4px);\n align-items: stretch;\n /* Read from the container-level name so a density set further up is not\n shadowed by this declaration. */\n --wzl-field-h: var(--wzl-prop-field-h, var(--wzl-control-h-sm));\n --wzl-field-pad-x: var(--wzl-prop-field-pad-x, 6px);\n /* A kit `<Select>` in a row is a field like any other, and its trigger reads\n its height from a standalone control's token rather than the panel's. */\n --wzl-select-h: var(--wzl-field-h);\n}\n\n/* Default packing: only color rows pair, everything else spans full width.\n Scoped to NOT apply in pairs mode (otherwise this 0,2,0 selector beats the\n pairs override below, which is only 0,1,0). */\n._list_bd66d5:not(._listPairs_bd66d5) > :not(._rowColor_bd66d5) {\n grid-column: 1 / -1;\n}\n\n/* `pack=\"pairs\"` flips that: every row auto-places into the 2-col grid two\n per row, and explicit full-width children opt in via the span helper class.\n The two rows of a pair set their labels on one line, whatever each holds: a\n row stretched to the pair's height centers or sinks its label instead. */\n._listPairs_bd66d5 > * {\n min-width: 0;\n align-self: first baseline;\n}\n\n._listPairs_bd66d5 > ._span_bd66d5,\n._listPairs_bd66d5 > ._subpanel_bd66d5,\n._listPairs_bd66d5 > h3 {\n grid-column: 1 / -1;\n}\n\n/* `pack=\"one-up\"` gives every row the full width, color rows included — the\n one packing a palette can be built from. */\n._listOneUp_bd66d5 > * {\n grid-column: 1 / -1;\n}\n\n/* ── density ────────────────────────────────────────────────────────\n `normal` states its values rather than omitting them, so a group can go back\n to the default inside a tighter panel. */\n\n._densityTight_bd66d5 {\n --wzl-prop-row-gap: 2px;\n --wzl-prop-subpanel-row-gap: 2px;\n --wzl-prop-column-gap: 8px;\n --wzl-prop-panel-pad: 10px 12px;\n --wzl-prop-panel-title-gap: 8px;\n --wzl-prop-group-pad: 4px 8px 6px;\n --wzl-prop-group-title-gap: 2px;\n --wzl-prop-field-h: 18px;\n --wzl-prop-field-pad-x: 5px;\n}\n\n._densityNormal_bd66d5 {\n --wzl-prop-row-gap: 4px;\n --wzl-prop-subpanel-row-gap: 3px;\n --wzl-prop-column-gap: 16px;\n --wzl-prop-panel-pad: 14px 16px;\n --wzl-prop-panel-title-gap: 12px;\n --wzl-prop-group-pad: 6px 10px 8px;\n --wzl-prop-group-title-gap: 4px;\n --wzl-prop-field-h: 20px;\n --wzl-prop-field-pad-x: 6px;\n}\n\n._densityRoomy_bd66d5 {\n --wzl-prop-row-gap: 8px;\n --wzl-prop-subpanel-row-gap: 7px;\n --wzl-prop-column-gap: 20px;\n --wzl-prop-panel-pad: 18px 20px;\n --wzl-prop-panel-title-gap: 16px;\n --wzl-prop-group-pad: 10px 14px 12px;\n --wzl-prop-group-title-gap: 6px;\n --wzl-prop-field-h: 24px;\n --wzl-prop-field-pad-x: 8px;\n}\n\n/* ── align ──────────────────────────────────────────────────────────\n Where an inline row's label and control sit on the row's cross axis.\n\n Two names, because a color row aligns twice: its items within their grid row,\n and the whole grid within the row's box. They agree except at `baseline`,\n which `align-content` does not take — there the grid goes to the top and the\n items find the label's baseline inside it.\n\n A row whose label and control are both one line of text reads a third:\n centering two runs of different sizes leaves their baselines apart, so there\n `center` means `baseline`. */\n\n._alignStart_bd66d5 {\n --wzl-prop-row-align: start;\n --wzl-prop-row-align-content: start;\n --wzl-prop-row-align-text: start;\n}\n\n._alignCenter_bd66d5 {\n --wzl-prop-row-align: center;\n --wzl-prop-row-align-content: center;\n --wzl-prop-row-align-text: baseline;\n}\n\n._alignEnd_bd66d5 {\n --wzl-prop-row-align: end;\n --wzl-prop-row-align-content: end;\n --wzl-prop-row-align-text: end;\n}\n\n._alignBaseline_bd66d5 {\n --wzl-prop-row-align: baseline;\n --wzl-prop-row-align-content: start;\n --wzl-prop-row-align-text: baseline;\n}\n\n/* ── Row ────────────────────────────────────────────────────────\n Default shape: label on top (with optional right-aligned readout),\n control below. */\n\n._row_bd66d5 {\n display: flex;\n flex-direction: column;\n /* Every row stands on the same floor, whatever it holds. A switch is 16px, a\n range track 12 and a field 20, so a column of mixed rows sets its own line\n spacing row by row and reads as ragged — which is what a reader sees first,\n long before any one control's height. Taller content still grows the row;\n this only stops a short one from collapsing under the field it sits beside. */\n min-height: var(--wzl-prop-row-h, var(--wzl-field-h, var(--wzl-control-h)));\n /* No gap by default — controls sit flush under their label, matching\n speech-balloons `.field { gap: 0 }`. Slider rows pull tighter still\n via a negative margin on the label below. */\n gap: 0;\n min-width: 0;\n /* What a row holds without setting its own size — a renderer's words — reads at the label's. */\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n/* `hug`: the row is as wide as its label and control, at the leading edge of\n its cell. */\n._hug_bd66d5 {\n justify-self: start;\n}\n\n/* Slider rows: pull the track up under the label so the row reads as one\n tight block rather than a label + a separate horizontal strip. Like every\n row, it sits at the top of its grid cell, level with the row beside it. */\n._row_bd66d5:not(._rowInline_bd66d5):has(> input[type='range']) > ._rowLabel_bd66d5 {\n /* Baseline-align (not center) so the readout input doesn't inflate the\n label-group height past the text baseline. */\n align-items: baseline;\n gap: var(--wzl-space-2);\n margin-bottom: -4px;\n}\n\n._rowLabel_bd66d5 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n display: flex;\n align-items: center;\n justify-content: var(--wzl-params-label-align, start);\n gap: var(--wzl-space-3);\n}\n\n/* A label track, only where a row runs label-beside-control: a stacked row's\n label already spans the row, and a width there would narrow it instead. */\n._row_bd66d5[data-changed] > ._rowLabel_bd66d5 {\n color: var(--wzl-accent-fg);\n}\n\n._row_bd66d5[data-mixed] > ._rowLabel_bd66d5 {\n color: var(--wzl-warning);\n}\n\n/* As `Checkbox` dims the text beside a disabled box: the control dims itself. */\n._row_bd66d5[data-disabled] > ._rowLabel_bd66d5 {\n opacity: 0.5;\n}\n\n._row_bd66d5[data-disabled] {\n cursor: not-allowed;\n}\n\n/* A slider's readout sits in the label, which has dimmed it once already. */\n._row_bd66d5[data-disabled] > ._rowLabel_bd66d5 ._readoutInput_bd66d5:disabled {\n opacity: 1;\n}\n\n._rowInline_bd66d5 > ._rowLabel_bd66d5,\n._rowColor_bd66d5:not(._rowBlock_bd66d5) > ._rowLabel_bd66d5,\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5) > ._rowLabel_bd66d5 {\n inline-size: var(--wzl-params-label-width, auto);\n}\n\n._readout_bd66d5 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n font-style: normal;\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-accent-fg);\n margin-left: auto;\n}\n\n/*\n * An inline row's readout, which the row draws after the control rather than\n * beside the label: its width changes with the value, and anything after it on\n * the row would be shoved sideways on every update.\n */\n._readoutAfter_bd66d5 {\n flex: 0 0 auto;\n margin-left: 0;\n}\n\n/* Bare readout text — the word a row shows while it is auto — carrying\n `.readoutInput`'s box, inside `.readoutGroup` just as the input is. The label\n is a baseline-aligned flex line, so anything taller above the baseline drags\n the whole line, label included, down with it: an input's border and padding\n did that for 3.5px on every pin toggle. Both states have to be the same box\n *and* the same nesting, because the group's own strut is 5px of the height. */\n._readoutText_bd66d5 {\n display: inline-block;\n /* The input's content box, not its line-height: a text input's inner editor\n will not shrink to a line-height below the font's own content area, so it\n renders 16px of content where a span renders 11px. Stating the height on\n both and filling it here is what makes the two boxes agree. */\n height: var(--wzl-field-h, var(--wzl-control-h-sm));\n line-height: calc(var(--wzl-field-h, var(--wzl-control-h-sm)) - 4px);\n border: 1px solid transparent;\n padding: 1px 0;\n}\n\n/* The pinned/auto affordance. Invisible at rest so a panel of thirty rows is\n not thirty dots; revealed by the row, and permanent once the row is auto. */\n/* The row's label is also its pin, so it says so when pointed at — the same\n dotted underline a compact `<Select>` puts under its value. */\n._autoToggle_bd66d5 {\n cursor: pointer;\n border-radius: var(--wzl-radius-sm);\n /* Above the slider track a stacked row pulls up under its label, which\n otherwise takes every click on the label once the row is pinned. */\n position: relative;\n z-index: 1;\n}\n\n/* The same dotted line a compact `<Select>` draws under its value. Stated\n longhand: the shorthand's `auto` thickness takes the font's, which at label\n size closes the gaps and reads as a solid rule. The line takes the label's\n own color — a label is already muted, and a subtler line under it is a 1px\n dotted rule nobody can see. */\n._autoToggle_bd66d5:hover {\n text-decoration: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-decoration-color: currentColor;\n text-underline-offset: 0.25em;\n}\n\n._autoToggle_bd66d5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._autoToggle_bd66d5[aria-disabled='true'] {\n cursor: default;\n text-decoration: none;\n}\n\n/* Single always-rendered <input> styled to read as a text label until focused. */\n._readoutInput_bd66d5 {\n font-size: inherit;\n font-style: inherit;\n font-weight: var(--wzl-font-weight-medium);\n /* Force leading-tight — the label parent inherits 1.2, which would make the\n input box ~3px taller than the speech-balloons reference. */\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-accent-fg);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n padding: 1px 0;\n margin: 0;\n /* Stated rather than left to the control's intrinsic size, which `.readoutText`\n cannot reproduce — see the note there. */\n height: var(--wzl-field-h, var(--wzl-control-h-sm));\n /* One width for every readout, so a column of sliders ends on one line; a range whose widest\n value (the fit, in digit-wide `ch`) will not fit it widens its own box. The box is\n border-box, so its border comes back on top, with half a `ch` for a glyph wider than a digit. */\n width: max(\n var(--wzl-property-readout-w, calc(4.5ch + 2px)),\n calc(var(--wzl-property-readout-fit, 0px) + 2px + 0.5ch)\n );\n text-align: right;\n cursor: text;\n outline: none;\n transition: background 80ms ease, border-color 80ms ease;\n -moz-appearance: textfield;\n}\n\n._readoutInput_bd66d5:hover:not(:disabled) {\n background: color-mix(in srgb, currentColor 8%, transparent);\n}\n\n._readoutInput_bd66d5:focus {\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n border-color: var(--wzl-focus-ring);\n}\n\n._readoutInput_bd66d5::-webkit-inner-spin-button,\n._readoutInput_bd66d5::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Inline-block (not flex) so the browser's native vertical-align for\n <sub>/<sup> still works inside — flex collapses baseline semantics\n and sinks superscripts onto the baseline. */\n._readoutGroup_bd66d5 {\n display: inline-block;\n white-space: nowrap;\n}\n\n/* Word-style units (e.g. \"px\") read as a small dim suffix next to the digits. */\n._readoutUnit_bd66d5 {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n line-height: var(--wzl-leading-tight);\n pointer-events: none;\n}\n\n/* An inline row's readout sits between the control and the next cell, so a unit\n beside it would take width from the track. It hangs below the digits instead,\n out of flow, so a row with a unit is the same size as one without. */\n._readoutAfter_bd66d5 ._readoutGroup_bd66d5 {\n position: relative;\n}\n\n._readoutAfter_bd66d5 ._readoutUnit_bd66d5 {\n position: absolute;\n top: 100%;\n right: 1px;\n margin-top: -4px;\n line-height: 1;\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n/* A number and its unit, on one line, the field taking what the unit leaves. */\n._fieldUnitGroup_bd66d5 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n white-space: nowrap;\n min-width: 0;\n}\n\n._fieldUnitGroup_bd66d5 > ._numberField_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Symbol units (e.g. `<sup>°</sup>`) lean on the browser's native super\n positioning in a readout. Just dim them to match — do NOT set\n line-height: 0, that would re-collapse the glyph onto the baseline. A flex\n item ignores `vertical-align`, so beside a field the glyph rides the top of\n the line instead. */\n._readoutGroup_bd66d5 sup,\n._fieldUnitGroup_bd66d5 sup {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n pointer-events: none;\n}\n\n._fieldUnitGroup_bd66d5 > ._unitMark_bd66d5 > sup {\n align-self: flex-start;\n}\n\n/* A unit's wrapper, marking it smaller than the value on purpose; it draws no box of its own. */\n._unitMark_bd66d5 {\n display: contents;\n}\n/* ── Inline layout: label sits to the left of the control. ────── */\n._rowInline_bd66d5 {\n flex-direction: row;\n align-items: var(--wzl-prop-row-align, center);\n /* Label on the left edge, field on the right: fields of different widths\n still line up as one rail down the column. */\n justify-content: space-between;\n gap: var(--wzl-space-3);\n}\n\n._rowInline_bd66d5 ._rowLabel_bd66d5 {\n /* The label never gives: shrinking it breaks a name like `silhouette_width`\n mid-word, since it carries no break opportunity of its own. The field is\n what yields as the column narrows. */\n flex: 0 0 auto;\n}\n\n/* A row past one line — a textarea or list editor beside the label, or a label\n that wrapped — reads from the top: centering puts the label's first line\n halfway down the control, level with nothing. First baseline sets the label's\n first line on the control's first line of text, and a control with no text\n (a switch, a box) sits on that line the way it does in running text. Outranks\n `align` and the select row's text alignment, which place a one-line row.\n `data-multiline` is measured by the row. */\n._row_bd66d5._rowInline_bd66d5:has(textarea, [role='group'] > ul),\n._row_bd66d5._rowInline_bd66d5[data-multiline],\n._row_bd66d5._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-multiline] {\n align-items: first baseline;\n}\n\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > ._rowLabel_bd66d5,\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > input[type='color'],\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > ._colorField_bd66d5 > :first-child {\n align-self: first baseline;\n}\n\n/* A textarea's baseline is its last line in some engines, so beside one the\n label goes to the top and steps down to the textarea's first line instead. */\n._rowInline_bd66d5:has(textarea) > ._rowLabel_bd66d5 {\n align-self: flex-start;\n padding-block-start: calc(var(--wzl-space-2) + 1px);\n}\n\n._rowInline_bd66d5 > input,\n._rowInline_bd66d5 > select,\n._rowInline_bd66d5 > ._toggleBar_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Fields size to their content, not to the row they happen to sit in: a number\n is a handful of digits and a short string is a word. Stated as a width and\n not as a `min(100%, …)`, because an auto-width sidebar sizes to what its\n fields ask for and a percentage asks for an input's 20-character default.\n Only a field set in the row itself: a surface that wraps its control in a\n slot of its own sizes it there. */\n._row_bd66d5 > ._numberField_bd66d5,\n._row_bd66d5 > ._fieldUnitGroup_bd66d5 > ._numberField_bd66d5 {\n flex: 0 1 auto;\n width: var(--wzl-prop-number-width, 9ch);\n max-width: 100%;\n}\n\n._row_bd66d5 > ._textField_bd66d5 {\n width: var(--wzl-prop-text-width, 16ch);\n max-width: 100%;\n}\n\n/* The property rows' fields set their text at the weight the readouts use.\n The attribute outranks the field's own `font: inherit`. */\n._numberField_bd66d5 input[type='text'],\n._textField_bd66d5 input[type='text'] {\n font-weight: var(--wzl-font-weight-medium);\n}\n\n/* A select is as tall as the fields around it. */\n._select_bd66d5 {\n --wzl-select-h: var(--wzl-field-h, var(--wzl-control-h));\n}\n\n/* Anywhere in a property row, however deep a surface wraps it, a select drops\n its box and reads as its value: a bold word, underlined. A dense row of\n settings reads its choices as words, and 10px of caret is a tenth of a short\n value's width. Set on the row because these hooks inherit. Every field's\n text is set at the label's size, which is what puts label and value on one\n baseline. */\n._row_bd66d5 {\n --wzl-field-font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n --wzl-select-weight: var(--wzl-font-weight-bold);\n --wzl-select-bg: transparent;\n --wzl-select-border: 1px solid transparent;\n --wzl-select-pad: 0;\n --wzl-select-chevron: none;\n --wzl-select-underline: underline;\n --wzl-select-focus-border: transparent;\n --wzl-select-focus-shadow: none;\n --wzl-select-focus-outline: 1px solid var(--wzl-focus-ring);\n}\n\n/* The rules from here to the select are for a native input a caller hands a\n row directly; every field kind draws a kit field that brings its own frame,\n and sits deeper than a child. */\n._row_bd66d5 > input[type='number']:not(._readoutInput_bd66d5) {\n width: var(--wzl-prop-number-width, 9ch);\n max-width: 100%;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5) {\n width: var(--wzl-prop-text-width, 16ch);\n max-width: 100%;\n}\n\n/* An inline row stays on one line: the field gives up width to the label as the\n column narrows, down to a floor that still shows a value. */\n._rowInline_bd66d5 > input:not(._readoutInput_bd66d5),\n._rowInline_bd66d5 > ._numberField_bd66d5,\n._rowInline_bd66d5 > ._fieldUnitGroup_bd66d5,\n._rowInline_bd66d5 > ._textField_bd66d5 {\n flex: 0 1 auto;\n min-width: 4ch;\n}\n\n/* Inline, a select fills the space beside its label and sets its value against\n the chevron, like a native one handed to the row. */\n._rowInline_bd66d5 > ._select_bd66d5 {\n flex: 1 1 auto;\n width: auto;\n min-width: 4ch;\n --wzl-select-align: right;\n}\n\n/* Two runs of text on one line read as one line or they read as broken, and\n centering two boxes is not aligning the text in them: a 13px label centered\n against a 15px value left the two baselines 1px apart, which is exactly the\n distance the eye reads as a mistake. Only the rows whose control is text — a\n checkbox or a swatch has no baseline of its own and would hang off the line\n instead. */\n._rowInline_bd66d5:has(> ._select_bd66d5) {\n align-items: var(--wzl-prop-row-align-text, baseline);\n}\n\n/* A select sized to its longest option starts wherever that width leaves it, so\n a column of them scatters its values. Filling the row and setting the value\n against the chevron gives them one rail. */\n._rowInline_bd66d5 > select {\n flex: 1 1 auto;\n min-width: 4ch;\n text-align: right;\n text-align-last: right;\n}\n\n._rowInline_bd66d5 input[type='range'] {\n width: auto;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5),\n._row_bd66d5 > input[type='number'] {\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n /* Height is stated rather than padded to, because the display face's line box\n is half again its font size — padding a field to size makes it 27px tall\n around 13px of text and no amount of trimming the padding fixes that. */\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0 var(--wzl-field-pad-x);\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n}\n\n/* Numbers right-align so a column of them shares a decimal position; text does\n not, so this cannot live in the rule the two share. */\n._row_bd66d5 > input[type='number'] {\n text-align: right;\n}\n\n/* Chrome reserves the spin-button gutter at the right edge whether or not the\n arrows are painted, so a right-aligned value stops ~20px short of its own\n border and the row reads as if something is missing from that space. The\n panel drives numbers by typing and dragging, never by the steppers.\n `.readoutInput` has always dropped them; this is the same removal for the\n typed field beside it. */\n._row_bd66d5 > input[type='number']::-webkit-inner-spin-button,\n._row_bd66d5 > input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5):focus,\n._row_bd66d5 > input[type='number']:focus {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n/* A dialog row's trigger reads as a field holding the value's summary, so a\n column of them lines up with the text fields around it. */\n._dialogTrigger_bd66d5 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n width: 100%;\n min-width: 4ch;\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0 var(--wzl-field-pad-x);\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n text-align: start;\n cursor: pointer;\n}\n\n._rowInline_bd66d5 > ._dialogTrigger_bd66d5 {\n flex: 1 1 auto;\n width: auto;\n}\n\n._dialogTrigger_bd66d5:hover {\n border-color: var(--wzl-border-strong);\n}\n\n._dialogTrigger_bd66d5:focus-visible {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n._dialogSummary_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._dialogGlyph_bd66d5 {\n flex: 0 0 auto;\n color: var(--wzl-fg-subtle);\n}\n\n/* A native select handed to a row renders borderless — chevron only,\n transparent background, no chrome. Keep the native arrow via appearance: auto\n so users still see something clickable. */\n._row_bd66d5 > select {\n background: transparent;\n color: var(--wzl-fg);\n border: 0;\n border-radius: 0;\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0;\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n cursor: pointer;\n}\n\n/* An outline rather than the boxed family's inset ring: a property-row select\n is borderless, so there is no border to recolour. */\n._row_bd66d5 > select:focus {\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n/* ── Color variant: label and swatch side-by-side, two per row in the grid.\n Switches to a 2-row grid when an alpha slider is rendered beneath. */\n/* `align-content: end` sinks the whole grid so a color row paired with a\n taller sibling keeps its alpha track on the neighbour's bottom edge. An\n explicit `align` overrides both that and the per-item alignment below, which\n is what a column of swatches read as a group needs. */\n._rowColor_bd66d5 {\n display: grid;\n grid-template-columns: 1fr auto;\n grid-template-rows: auto;\n align-content: var(--wzl-prop-row-align-content, end);\n column-gap: var(--wzl-space-4);\n row-gap: 0;\n min-width: 0;\n}\n\n._rowColor_bd66d5 ._rowLabel_bd66d5 {\n grid-column: 1;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n flex: initial;\n min-width: 0;\n}\n\n/* Padding: 0 is important — the native <input type=\"color\"> in some browsers (esp. Chrome) inflates beyond its\n declared box when given padding, which expands the grid row and pushes\n the paired slider track out of bottom alignment. */\n._rowColor_bd66d5 > input[type='color'] {\n grid-column: 2;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n box-sizing: border-box;\n width: 36px;\n height: var(--wzl-control-h-xs);\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n padding: 0;\n cursor: pointer;\n flex-shrink: 0;\n}\n\n/* A color field set directly in the row gives its parts to the row's grid:\n the swatch beside the label, and the opacity track with its readout on a\n second row beneath. Nested in another wrapper, it keeps its own line. */\n._rowColor_bd66d5 > ._colorField_bd66d5 {\n display: contents;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > :first-child {\n grid-column: 2;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n justify-self: end;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > input[type='range'] {\n grid-column: 1;\n grid-row: 2;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > :last-child:not(:first-child):not(input) {\n grid-column: 2;\n grid-row: 2;\n align-self: center;\n}\n\n/* `layout=\"block\"` stacks the color row: label, then swatch, then alpha. */\n._rowColor_bd66d5._rowBlock_bd66d5 {\n grid-template-columns: 1fr;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 ._rowLabel_bd66d5 {\n grid-column: 1;\n grid-row: 1;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 > input[type='color'],\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > :first-child {\n grid-column: 1;\n grid-row: 2;\n justify-self: start;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > input[type='range'] {\n grid-row: 3;\n}\n\n/* A block row has one column, so the readout rides at the track's end. */\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > :last-child:not(:first-child):not(input) {\n grid-column: 1;\n grid-row: 3;\n justify-self: end;\n}\n\n/* ── Checkbox variant: label-first inline layout. */\n._rowCheckbox_bd66d5 {\n flex-direction: row;\n align-items: var(--wzl-prop-row-align, center);\n /* Label on the leading edge and box on the trailing one, like every other\n inline row: a column of settings is read down its labels, and a box that\n leads its own row puts each label at a different indent. */\n justify-content: space-between;\n gap: var(--wzl-space-4);\n cursor: pointer;\n}\n\n._rowCheckbox_bd66d5 > input[type='checkbox']:not([role='switch']) {\n accent-color: var(--wzl-accent);\n width: 14px;\n height: 14px;\n cursor: pointer;\n}\n\n/* `layout=\"block\"` stacks the checkbox row: label above, box beneath, both on\n the leading edge — a block row's cross axis is the horizontal one. */\n._rowCheckbox_bd66d5._rowBlock_bd66d5 {\n flex-direction: column;\n align-items: var(--wzl-prop-row-align, start);\n}\n\n\n/* A state the control cannot draw itself: a switch has no indeterminate form,\n and nothing has an \"unset\" one. */\n._dimmed_bd66d5 {\n opacity: 0.55;\n}\n\n/* A slider cell's readout, beside its track rather than in a row's label line.\n Doubled so a row laying its cells out evenly does not stretch it. */\n._cellReadout_bd66d5._cellReadout_bd66d5 {\n flex: none;\n min-inline-size: 3ch;\n text-align: end;\n}\n\n._textarea_bd66d5 {\n width: 100%;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n font: inherit;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n resize: vertical;\n}\n\n._textarea_bd66d5:disabled,\n._readoutInput_bd66d5:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* ── Segmented toggle ─────────────────────────────────────────────\n A `ToggleBar`, filling the row the way a field does and standing at the\n row's field height rather than its own small size. */\n._row_bd66d5 > ._toggleBar_bd66d5 {\n display: flex;\n width: 100%;\n height: var(--wzl-field-h, var(--wzl-control-h));\n}\n\n/* A disabled inline paint: the editor itself, inert, dimmed here once since none of its controls is disabled. */\n._paintOff_bd66d5 {\n min-inline-size: 0;\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._paintOffBody_bd66d5 {\n display: contents;\n}\n\n/* ── PropertyGroup ──────────────────────────────────────────────────\n A MotifFrame around a grid of rows; the frame's motif draws the box and\n the title, and these rules lay out what it holds. */\n._group_bd66d5 {\n grid-column: 1 / -1;\n}\n\n/* Group help text: spans the grid, sits above the rows it describes. */\n._note_bd66d5 {\n grid-column: 1 / -1;\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n/* `hidden` on its own loses to the body's `display: grid` below. */\n._groupBody_bd66d5[hidden] {\n display: none;\n}\n\n._groupBody_bd66d5 {\n display: grid;\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-row-gap, 4px);\n align-items: stretch;\n}\n\n._group_bd66d5:not(._groupPairs_bd66d5) ._groupBody_bd66d5 > :not(._rowColor_bd66d5) {\n grid-column: 1 / -1;\n}\n\n._groupPairs_bd66d5 ._groupBody_bd66d5 > * {\n grid-column: auto;\n /* As a paired list's rows: see `.listPairs`. */\n align-self: first baseline;\n}\n\n._groupPairs_bd66d5 ._groupBody_bd66d5 > h3,\n._groupPairs_bd66d5 ._groupBody_bd66d5 > ._span_bd66d5,\n._groupPairs_bd66d5 ._groupBody_bd66d5 > ._subpanel_bd66d5 {\n grid-column: 1 / -1;\n}\n\n._groupOneUp_bd66d5 ._groupBody_bd66d5 > * {\n grid-column: 1 / -1;\n}\n\n/* ── Subpanel ────────────────────────────────────────────────────────\n A MotifFrame around a grid of rows; the frame's motif, `divider` unless\n told otherwise, draws the title, and these rules lay out what it holds. */\n._subpanelBody_bd66d5 {\n display: grid;\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-subpanel-row-gap, 3px);\n align-items: stretch;\n}\n\n/* `hidden` on its own loses to the body's `display: grid` above. */\n._subpanelBody_bd66d5[hidden] {\n display: none;\n}\n\n._subpanelBody_bd66d5 > * {\n min-width: 0;\n}\n\n._subpanelBody_bd66d5 > ._span_bd66d5 {\n grid-column: 1 / -1;\n}\n\n/* BEGIN GENERATED stance rules: subpanel — `npm run gen:stances`, do not edit. */\n\n._subpanel_bd66d5[data-motif] {\n --wzl-tint: initial;\n}\n\n._subpanel_bd66d5[data-motif] {\n --_s-border-color: var(--wzl-line-subtle);\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-display);\n --_s-title-weight: var(--wzl-font-weight-medium);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: var(--wzl-params-label-case, uppercase);\n --_s-title-tracking: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n --_s-title-color: var(--wzl-fg);\n}\n\n._subpanel_bd66d5[data-motif][data-stance='clarify'] {\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='aside'] {\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='advanced'] {\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='debug'] {\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='preview'] {\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='confirm'] {\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='cancel'] {\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._subpanel_bd66d5[data-motif][data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._subpanel_bd66d5[data-motif][data-grade] {\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._subpanel_bd66d5[data-motif][data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: subpanel */\n\n/* An auto row: the value is not pinned, and the row says only that. The\n control is hidden rather than removed, so the row keeps the height and the\n width it has while pinned and nothing below it moves on the toggle —\n `visibility` and not `opacity`, because a hidden control must also be out of\n reach of the pointer and the tab ring. The label and the readout are what\n stays: everything else in the row is the control. */\n._rowAuto_bd66d5 > :not(._rowLabel_bd66d5):not(._readout_bd66d5) {\n visibility: hidden;\n}\n\n._rowAuto_bd66d5 > ._rowLabel_bd66d5 {\n color: var(--wzl-fg-subtle);\n}\n\n/* An auto row that keeps drawing its control: the value is the one it inherits,\n drawn in the secondary accent so it reads as not chosen here. */\n._rowAutoInherited_bd66d5 {\n}\n\n/* A label and the hint after it, as one run of text. */\n._rowName_bd66d5 {\n min-width: 0;\n}\n\n/* Where an inherited value comes from, after the label. One box, so it moves to the next line whole, and\n wraps inside itself only where it is wider than the label track. */\n._rowHint_bd66d5 {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n max-inline-size: 100%;\n vertical-align: baseline;\n font-size: var(--wzl-font-size-2xs);\n color: var(--wzl-fg-subtle);\n margin-inline-start: var(--wzl-space-1);\n}\n\n/* A stacked row's readout sits inside the label and an inline row's sits after\n the control, so the label's case reached one and not the other: the same word\n read `AUTO` in one row and `auto` in the next. An auto row's readout is a\n word, not a number, so it takes the label recipe and both rows read alike. */\n/* `.autoWord` is the same word outside a row: the help tooltip's last line. */\n._rowAuto_bd66d5 ._readout_bd66d5,\n._autoWord_bd66d5 {\n font-style: normal;\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n color: var(--wzl-secondary-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n/* ── Row message: what is wrong with the row's value, under its control. ── */\n\n._rowError_bd66d5 {\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-danger);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n/* A row that lays its label beside its control wraps, so the message takes a line of its own beneath both. */\n._rowInline_bd66d5[data-invalid],\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-invalid] {\n flex-wrap: wrap;\n}\n\n._rowInline_bd66d5[data-invalid] > ._rowError_bd66d5,\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-invalid] > ._rowError_bd66d5 {\n flex: 1 0 100%;\n}\n\n._rowColor_bd66d5 > ._rowError_bd66d5 {\n grid-column: 1 / -1;\n grid-row: 2;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A row label that shows its help when hovered, with no ⓘ. */\n._label_f7c38e {\n min-width: 0;\n}\n\n/* ⓘ help affordance beside a row label. */\n._help_f7c38e {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.15em;\n height: 1.15em;\n padding: 0;\n border: 0;\n background: none;\n color: var(--wzl-fg-subtle);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n letter-spacing: normal;\n cursor: help;\n border-radius: var(--wzl-radius-sm);\n}\n\n/* In a row's label the glyph stands on the label's first line: left to the\n label's centering, it sits between the two lines of one that wrapped. */\n[data-property-row] ._help_f7c38e {\n font-size: inherit;\n align-self: flex-start;\n margin-block: calc((var(--wzl-leading-snug) * 1em - 1.15em) / 2);\n}\n\n._help_f7c38e:hover {\n color: var(--wzl-fg);\n border-color: transparent;\n}\n\n._help_f7c38e:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n color: var(--wzl-fg);\n}\n\n/* What the row reads when it is auto: its own line, under the description. */\n._auto_f7c38e {\n display: block;\n}\n\n._autoAfter_f7c38e {\n margin-block-start: var(--wzl-space-1);\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}._optionIcon_f29eb6 > svg {\n display: block;\n}/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._panel_d6f101 {\n position: fixed;\n z-index: var(--wzl-z-popover);\n min-width: 180px;\n padding: var(--wzl-space-2);\n color: var(--wzl-fg);\n user-select: none;\n}\n\n._row_d6f101 {\n display: grid;\n grid-template-columns: 1.25em 1fr auto;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n cursor: default;\n}\n\na._row_d6f101 {\n text-decoration: none;\n}\n\n._current_d6f101 {\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._access_d6f101 {\n text-decoration: underline;\n}\n\n._row_d6f101[data-highlighted] {\n background: var(--wzl-surface-hover);\n}\n\n._row_d6f101[aria-disabled='true'] {\n color: var(--wzl-fg-muted);\n}\n\n._icon_d6f101 {\n display: inline-flex;\n justify-content: center;\n}\n\n._label_d6f101 {\n white-space: nowrap;\n}\n\n._shortcut_d6f101 {\n color: var(--wzl-fg-muted);\n}\n\n._caret_d6f101 {\n justify-self: end;\n width: 10px;\n height: 10px;\n transform: rotate(-90deg);\n}\n\n._separator_d6f101 {\n height: 1px;\n margin: var(--wzl-space-1) 0;\n background: var(--wzl-border);\n}\n\n/* A number row's field or a color row's swatch, in the shortcut's column. */\n._value_d6f101 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-1);\n justify-self: end;\n}\n\n._unit_d6f101 {\n color: var(--wzl-fg-muted);\n}\n\n/* A text row's field draws no box until it is focused, as a number row's ghost field does. */\n._text_d6f101 {\n --_frame-h: auto;\n --_frame-bg: transparent;\n --_frame-border: 1px solid transparent;\n --_frame-focus-shadow: none;\n}\n\n._text_d6f101 input {\n width: 12ch;\n padding: 1px 0;\n}\n\n._text_d6f101:focus-within {\n --_frame-bg: var(--wzl-surface-sunken);\n}\n\n/* The popover a color row opens beside itself. */\n._picker_d6f101 {\n padding: var(--wzl-space-2);\n outline: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A field shown as its value: text in the control's place, at the control's height, with no box around it. */\n._readout_76d20d {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-block-size: var(--wzl-control-h);\n min-inline-size: 0;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n white-space: nowrap;\n user-select: text;\n}\n\n._unit_76d20d {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* Nothing to show, or several values that disagree. */\n._none_76d20d {\n color: var(--wzl-fg-muted);\n}\n\n._swatch_76d20d {\n flex: none;\n inline-size: 12px;\n block-size: 12px;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--readout-swatch, transparent);\n}\n._root_d0f47f {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}\n\n._patch_d0f47f {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._preview_d0f47f {\n inline-size: 34px;\n block-size: 34px;\n flex: 0 0 auto;\n border-radius: var(--wzl-radius-sm);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n._corners_d0f47f {\n display: grid;\n grid-template-columns: repeat(2, auto);\n gap: var(--wzl-space-2) var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n._corner_d0f47f {\n min-inline-size: 0;\n}\n/* The overlay covers the canvas but must not intercept tool input; only the\n * handles opt back into hit-testing. */\n._overlay_419b91 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n/* These sit over artwork of unknown color, not over the app's own surface,\n * so they are deliberately not themed: a themed handle disappears against\n * whatever the user painted underneath. White-on-dark reads on anything,\n * which is why every editor draws handles this way. */\n._guide_419b91 {\n fill: none;\n stroke: #ffffff;\n stroke-opacity: 0.7;\n stroke-dasharray: 4 4;\n paint-order: stroke;\n}\n\n._handle_419b91 {\n fill: #ffffff;\n stroke: #222222;\n stroke-width: 2;\n cursor: grab;\n pointer-events: auto;\n}\n\n._handle_419b91:active {\n cursor: grabbing;\n}\n\n._handle_419b91:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n/* A point that shapes an edge rather than ending one — drawn dark-on-light,\n * the inverse of the handle it hangs off, so the two read apart at a glance. */\n._control_419b91 {\n fill: #222222;\n stroke: #ffffff;\n stroke-width: 1.5;\n}\n\n/* A patch edge: the outline the handles reshape, solid so it reads as the\n * artwork's structure rather than as a construction line. */\n._edge_419b91 {\n fill: none;\n stroke: #ffffff;\n stroke-opacity: 0.85;\n stroke-width: 1;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */\n._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}\n\n/* A part that reads: turned upright where the run would stand it upside down. */\n._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* The invisible hit area past a slider's track and each thumb, spanned by `::before`. Both are measured from the\n padding box, so each 1px border comes back out. A thumb comes later in the tree, so its slop wins where the two\n overlap. */._trackSlop_842300::before,\n._thumbSlop_842300::before {\n content: '';\n position: absolute;\n inset: calc(-1px - var(--wzl-slider-track-slop));\n}._thumbSlop_842300::before {\n inset: calc(-1px - var(--wzl-slider-thumb-slop));\n}\n\n._root_a7d497 {\n /* The value span stops this far short of each end of the track. Half a\n * thumb puts an end thumb flush with the edge; `fractionToPosition` in\n * Slider.tsx is the same geometry for painters. */\n --rp-thumb-inset: calc(var(--rp-thumb-size, 14px) / 2);\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n}\n\n._row_a7d497 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._track_a7d497 {\n position: relative;\n flex: 1;\n min-width: 0;\n height: var(--rp-track-height, 24px);\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n cursor: var(--rp-track-cursor, crosshair);\n /* No `overflow: hidden` here — thumbs at extreme values would get\n * clipped at the track edges. The gradient/track-paint clip is\n * applied to `.trackInner` instead, which lets thumbs spill freely. */\n}\n\n/* A notched thumb draws no border, so its slop needs no 1px back. */\n._thumb_a7d497._notched_a7d497::before {\n inset: calc(-1 * var(--wzl-slider-thumb-slop));\n}\n\n._overhang_a7d497 {\n --rp-thumb-inset: 0px;\n}\n\n._rail_a7d497 {\n position: absolute;\n inset: 0 var(--rp-thumb-inset);\n}\n\n/* Draws nothing: its screen matrix maps a pointer into the rail's own px. */\n._railFrame_a7d497 {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n pointer-events: none;\n}\n\n._trackInner_a7d497 {\n position: absolute;\n inset: 0;\n border-radius: var(--wzl-radius-sm);\n overflow: hidden;\n}\n\n._thumb_a7d497 {\n position: absolute;\n /* Thumb extends 2px above + below the track for grabbability + visual\n * weight. Track itself stays its natural height; the thumb just spills. */\n top: -2px;\n bottom: -2px;\n width: var(--rp-thumb-size, 14px);\n margin-left: calc(var(--rp-thumb-size, 14px) / -2);\n display: flex;\n align-items: center;\n justify-content: center;\n /* Not --wzl-fg-muted: that follows currentColor, which here is the inverse text on the thumb. */\n background: color-mix(in srgb, var(--wzl-fg) 50%, transparent);\n border: 1px solid var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n cursor: ew-resize;\n /* Frosted-glass over the (often colorful) track. Cheap on modern GPUs;\n * gracefully degrades to just the partial-alpha background on engines\n * without backdrop-filter support. */\n backdrop-filter: blur(3px);\n -webkit-backdrop-filter: blur(3px);\n /* Subtle raise — sells the \"thumb is on top of the track\" hierarchy. */\n box-shadow: var(--wzl-bevel-raised, 0 1px 2px rgba(0, 0, 0, 0.2));\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-inverse);\n /* White halo so labels stay legible over wildly varying gradient\n * backgrounds (e.g. labels 'T' / 'P' / 'B' over teal, hue 200° over\n * yellow-green, etc.). */\n text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);\n}\n\n/* A dot is a circle centered on the track; a tab spans it and spills 2px past each edge. */\n._thumb_a7d497._dot_a7d497 {\n top: 50%;\n bottom: auto;\n height: var(--rp-thumb-size, 14px);\n transform: translateY(-50%);\n border-radius: 50%;\n}\n\n._thumb_a7d497:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._thumbActive_a7d497 {\n /* Visual marker for the dragging/focused thumb; subclass-overridable. */\n z-index: 1;\n}\n\n/* The row holds absolutely-positioned labels, so it has to state its own\n height: the text's, not the thumb's. It said 14px — the default thumb's\n size — which left 4px of dead space under the labels whatever the thumb's size. */\n._readoutsBelow_a7d497 {\n position: relative;\n margin-inline: var(--rp-thumb-inset);\n height: calc(var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n margin-top: var(--wzl-space-2);\n}\n\n._readoutBelow_a7d497 {\n position: absolute;\n transform: translateX(-50%);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n._readoutInline_a7d497 {\n display: inline-block;\n margin-inline-start: var(--wzl-space-4);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n vertical-align: middle;\n}\n\n._notched_a7d497 {\n background: var(--thumb-svg, none);\n background-size: 100% 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n /* Notched thumbs need to disable the .thumb defaults that paint to\n * the bounding box: backdrop-filter and box-shadow both ignore the\n * SVG's polygon/notch and would render through the notch cutout.\n * Use filter: drop-shadow instead — it traces the actual rendered\n * alpha (i.e. the polygon shape including the cut). */\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n box-shadow: none;\n filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));\n /* Default notched SVG (down-pointing pentagon, matches the perceptual-color experiment). */\n --thumb-svg: url(\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 30' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 2.52,0 7,10.3 11.48,0 14,0 14,30 0,30' fill='rgba(255,255,255,0.62)' stroke='rgba(0,0,0,0.55)' stroke-width='0.75' stroke-linejoin='miter'/%3E%3C/svg%3E\");\n}\n\n._ticks_a7d497 {\n position: absolute;\n inset: 0;\n /* A mark must never eat the track click that adds a thumb, nor the\n * pointerdown that starts a drag through it. */\n pointer-events: none;\n}\n\n._tick_a7d497 {\n position: absolute;\n top: var(--rp-tick-inset, 20%);\n bottom: var(--rp-tick-inset, 20%);\n width: var(--rp-tick-width, 1px);\n margin-left: calc(var(--rp-tick-width, 1px) / -2);\n border-radius: var(--wzl-radius-pill);\n background: var(--rp-tick-color, var(--wzl-border-strong));\n}\n\n/* The labels hang below the track out of flow, so the row reserves their\n * height and anything after it — the below-thumb readouts — clears them.\n * Padding, not margin: a margin would collapse into whatever follows. */\n._withStopLabels_a7d497 ._row_a7d497 {\n padding-bottom: calc(var(--wzl-space-xs) + var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n}\n\n._stopLabels_a7d497 {\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + var(--wzl-space-xs));\n height: calc(var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n pointer-events: none;\n}\n\n._stopLabel_a7d497 {\n position: absolute;\n transform: translateX(-50%);\n white-space: nowrap;\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-subtle);\n}\n\n/* An end label centers on its stop like the rest, but stops at the track's edge,\n * so a wide one can't spill past the control and misalign whatever sits beside it.\n * The rail is inset from that edge by `--rp-thumb-inset`. */\n._stopLabel_a7d497[data-edge=\"left\"] {\n transform: translateX(max(-50%, -1 * var(--rp-thumb-inset)));\n}\n\n._stopLabel_a7d497[data-edge=\"right\"] {\n transform: translateX(min(-50%, var(--rp-thumb-inset) - 100%));\n}\n\n._stopLabel_a7d497[data-selected] {\n color: var(--wzl-fg);\n font-weight: var(--wzl-font-weight-medium);\n}\n\n/* On a curve the root fills its containing block, and every part sits at its\n * place along the shape (`--at-x`, `--at-y`), tipped to it (`--at-angle`).\n * Only the band's stroke and the thumbs take pointers. */\n._curved_a7d497 {\n /* The band is half as thick as the stop ticks across it unless a track height is given;\n * the reach, ticks included, sizes what must clear or cover the whole band. */\n --rp-band: var(--rp-track-height, calc(var(--rp-tick-length, 14px) / 2));\n --rp-band-reach: max(var(--rp-band), var(--rp-tick-length, 14px));\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._band_a7d497 {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n._bandSlop_a7d497,\n._bandEdge_a7d497,\n._bandFace_a7d497 {\n fill: none;\n}\n\n._bandSlop_a7d497 {\n stroke: transparent;\n stroke-width: calc(var(--rp-band-reach) + 2 * var(--wzl-slider-track-slop));\n pointer-events: stroke;\n cursor: var(--rp-track-cursor, crosshair);\n}\n\n._bandEdge_a7d497 {\n stroke: var(--wzl-border);\n stroke-width: calc(var(--rp-band) + 2px);\n}\n\n._bandFace_a7d497 {\n stroke: var(--wzl-surface-sunken);\n stroke-width: var(--rp-band);\n}\n\n._paintLayer_a7d497 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n/* Each also takes `onRun`; this outranks what the straight rules give the same parts. */\n._curved_a7d497 ._thumb_a7d497,\n._curved_a7d497 ._tick_a7d497,\n._curved_a7d497 ._stopLabel_a7d497 {\n top: var(--at-y);\n bottom: auto;\n margin-left: 0;\n transform: var(--on-run);\n}\n\n._curved_a7d497 ._thumb_a7d497 {\n height: calc(var(--rp-band-reach) + 4px);\n pointer-events: auto;\n}\n\n._curved_a7d497 ._thumb_a7d497._dot_a7d497 {\n height: var(--rp-thumb-size, 14px);\n}\n\n._curved_a7d497 ._tick_a7d497 {\n height: var(--rp-tick-length, 14px);\n}\n\n._curved_a7d497 ._stopLabels_a7d497 {\n top: 0;\n bottom: 0;\n height: auto;\n}\n\n/* Down the run's normal, past the band: outside the circle on a bottom arc. */\n._curved_a7d497 ._stopLabel_a7d497 {\n transform: var(--on-run) translateY(calc(var(--rp-band-reach) / 2 + var(--wzl-space-xs) + 0.5lh)) var(--upright);\n}\n\n._readoutsAlong_a7d497 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._readoutAlong_a7d497 {\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* Below the stop labels' line, one row per step of --row. */\n._readoutsAlong_a7d497 > ._readoutAlong_a7d497 {\n transform: var(--on-run) translateY(calc(var(--rp-band-reach) / 2 + var(--wzl-space-xs) + (var(--row, 0) + 1.5) * 1lh)) var(--upright);\n}\n\n/* One stretch of track between neighboring thumbs, under the thumbs either side of it. */\n._region_a7d497 {\n position: absolute;\n top: 0;\n bottom: 0;\n}\n/* A curved track's paint, over the slider's band and as thick as its face. */\n._curve_081db4 {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n._stroke_081db4 {\n fill: none;\n stroke-width: var(--rp-band);\n}\n\n._dim_081db4 {\n stroke: var(--wzl-surface);\n}\n\n._stripe_081db4 {\n fill: var(--wzl-surface);\n}\n/* Sets its own height: a host's control-height default for bare buttons\n (labkit's) would otherwise stretch the square. */\n._close_8d163b {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-icon-button-size);\n height: var(--wzl-icon-button-size);\n padding: 0;\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n}\n\n._close_8d163b:hover:not(:disabled) {\n background: var(--wzl-surface-hover);\n border-color: transparent;\n color: var(--wzl-fg);\n}\n\n._close_8d163b:active:not(:disabled) {\n background: var(--wzl-surface-pressed);\n}\n\n._close_8d163b:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._close_8d163b:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n/* The ramp is painted over this, so a stop with less than full opacity shows\n * the checker through it rather than the panel. */\n._checker_d594b0 {\n position: absolute;\n inset: 0;\n background: var(--wzl-checker-layer);\n}\n\n/* Wide enough that a handle's color reads at a glance. */\n._track_d594b0 {\n --rp-thumb-size: 16px;\n}\n\n/* A handle's face fills the thumb inside its frame: the stop's color over the checker. */\n._stop_d594b0 {\n position: absolute;\n inset: var(--wzl-border-w);\n border-radius: calc(var(--wzl-radius-sm) - 2 * var(--wzl-border-w));\n background:\n linear-gradient(var(--stop), var(--stop)),\n var(--wzl-checker-layer);\n}\n\n._stop_d594b0[data-selected] {\n box-shadow:\n 0 0 0 2px var(--wzl-surface),\n 0 0 0 4px var(--wzl-accent);\n}\n\n/* The selected handle stays on top of a neighbor it overlaps. */\n._track_d594b0 [role='slider']:has([data-selected]) {\n z-index: 1;\n}\n\n._editor_d594b0 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* The opacity slider takes the slack; the swatch, the readouts, and the remove button keep their widths. */\n._color_d594b0 {\n flex: 1 1 auto;\n min-inline-size: 0;\n}\n\n._position_d594b0 {\n flex: 0 0 auto;\n /* Holds `100%` and `33.3%`. */\n --wzl-number-field-width: 6ch;\n}\n._root_f05b2c {\n min-inline-size: 0;\n}\n\n._body_f05b2c {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-inline-size: 0;\n}\n\n._root_f05b2c[data-disabled] ._body_f05b2c {\n opacity: 0.5;\n}\n\n._noEditor_f05b2c {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n/* Tile grid over the size switch. */\n._root_429eae {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n._grid_429eae {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(var(--wzl-swatch-size, 28px), 1fr));\n gap: 0;\n}\n\n/* The swatch's whole face is its own tile, so it must not carry a flat\n background — and the tile repeats at its own scale, not the swatch's. */\n._swatch_429eae {\n width: 100%;\n aspect-ratio: 1 / 1;\n min-width: 0;\n padding: 0;\n border: 0.5px solid var(--wzl-border);\n border-radius: 0;\n /* Not the UA's buttontext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n cursor: pointer;\n background-color: var(--wzl-surface-sunken);\n background-image: var(--tile-preview);\n background-repeat: repeat;\n background-size: 16px 16px;\n background-clip: padding-box;\n}\n\n._swatch_429eae:hover {\n border-color: var(--wzl-fg-muted);\n}\n\n/* A picture is shown whole rather than tiled at a fixed size. */\n._imageSwatch_429eae {\n display: grid;\n place-items: center;\n color: var(--wzl-fg-muted);\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n/* The upload swatch opens it; the input itself is never seen. */\n._fileInput_429eae {\n display: none;\n}\n\n._swatchActive_429eae {\n border-color: var(--wzl-accent);\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n/* Kind switch stacked over whichever paint body it selects. */\n._root_18de17 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* A value is in effect but nobody chose it. Never louder than mixed. */\n._unset_18de17 {\n opacity: 0.55;\n}\n\n/* A kind with no editor: named, not editable. */\n._noEditor_18de17 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n/* The opacity slider under a paint with no single color, laid out as the\n * solid's sits beside its swatch. */\n._opacity_18de17 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n/* What an inheriting paint paints: shown, not edited — it is the container's. */\n._inherited_18de17 {\n display: block;\n block-size: 18px; /* not-a-control */\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n background-color: var(--wzl-surface-raised);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n._inherited_18de17[data-empty] {\n background: var(--wzl-checker-layer);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._trigger_0aa693 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n min-inline-size: 0;\n padding: 1px var(--wzl-space-3) 1px 1px;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n cursor: pointer;\n}\n\n._trigger_0aa693[data-unset] {\n opacity: 0.6;\n}\n\n._trigger_0aa693[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._trigger_0aa693[data-focus-visible] {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n._swatch_0aa693 {\n /* A paint preview at a fixed 26:18 aspect, not a control box. */\n inline-size: 26px;\n block-size: 18px; /* not-a-control */\n flex: 0 0 auto;\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n /* Checker under the paint, so a translucent one reads as translucent. */\n background-color: var(--wzl-surface-raised);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n/* No paint to show: the checker stands in rather than an invented color. */\n._swatch_0aa693[data-empty],\n._trigger_0aa693[data-mixed] ._swatch_0aa693 {\n background: var(--wzl-checker-layer);\n}\n\n._label_0aa693 {\n flex: 1 1 auto;\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: start;\n}\n\n._popover_0aa693 {\n outline: none;\n}\n\n._body_0aa693 {\n inline-size: 240px;\n padding: var(--wzl-space-4);\n}\n._trigger_26c94d {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: 0 var(--wzl-space-3) 0 var(--wzl-space-5);\n white-space: nowrap;\n cursor: pointer;\n}\n\n._label_26c94d {\n color: var(--wzl-fg-subtle);\n}\n\n._trigger_26c94d[data-current] ._label_26c94d {\n color: var(--wzl-fg);\n}\n\n/* A trigger that is the text around it: a heading that opens a list. */\n._bare_26c94d {\n align-items: baseline;\n gap: var(--wzl-space-2);\n padding: 0;\n background: none;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: inherit;\n font: inherit;\n}\n\n._bare_26c94d ._label_26c94d {\n color: inherit;\n}\n\n._bare_26c94d:hover:not(:disabled) {\n color: var(--wzl-accent-fg);\n}\n\n._bare_26c94d:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._bare_26c94d:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._bare_26c94d ._chevron_26c94d {\n width: 0.5em;\n height: 0.5em;\n color: inherit;\n opacity: 0.6;\n}\n\n._chevron_26c94d {\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: 0 0 auto;\n}\n/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n\n._group_7a7e7d {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._group_7a7e7d[data-orientation=\"horizontal\"] {\n flex-direction: row;\n gap: var(--wzl-space-8);\n}\n\n._legend_7a7e7d {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._radio_7a7e7d {\n /* Holds react-aria's hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-size: var(--wzl-field-font-size, var(--wzl-font-size));\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}\n\n._radio_7a7e7d[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._dot_7a7e7d {\n position: relative;\n flex: 0 0 auto;\n width: 14px;\n height: 14px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border-strong);\n border-radius: 50%;\n box-shadow: var(--wzl-bevel-sunken, none);\n transition: border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._radio_7a7e7d[data-focus-visible] ._dot_7a7e7d {\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._radio_7a7e7d[data-hovered]:not([data-disabled]) ._dot_7a7e7d {\n border-color: var(--wzl-fg-muted);\n}\n\n._radio_7a7e7d[data-selected] ._dot_7a7e7d {\n border-color: var(--wzl-accent-strong);\n}\n\n._dot_7a7e7d::after {\n content: '';\n position: absolute;\n inset: 3px;\n border-radius: 50%;\n background: var(--wzl-accent-strong);\n transform: scale(0);\n transition: transform var(--wzl-motion-fast);\n}\n\n._radio_7a7e7d[data-selected] ._dot_7a7e7d::after {\n transform: scale(1);\n}\n\n/* A radio group laid along a track shape: its label and radios are placed on the run. */\n._along_7a7e7d {\n column-gap: var(--wzl-space-6);\n}\n\n._along_7a7e7d > ._alongGroup_7a7e7d {\n position: absolute;\n inset: 0;\n display: block;\n pointer-events: none;\n}\n\n._along_7a7e7d ._radio_7a7e7d {\n position: absolute;\n}\n\n/* The label names the group and has nothing to press. */\n._along_7a7e7d ._lead_7a7e7d {\n pointer-events: none;\n white-space: nowrap;\n}\n\n/* The description and error, hung from a spot one row in from the run's middle: `--hang` 1 hangs them below the spot\n * and -1 stands them on it, in their own tipped frame. */\n._hint_7a7e7d {\n}\n\n/* Outranks `.onRun`'s transform, which loads in no fixed order. */\n._along_7a7e7d ._hint_7a7e7d {\n display: flex;\n flex-direction: column;\n align-items: center;\n inline-size: max-content;\n text-align: center;\n transform: var(--on-run) translateY(calc(var(--hang) * 50%));\n}\n/* A button that is flat or Aqua glass by the theme's --wzl-gloss: each boxed\n variant lays a flat fill over its glass ramp and fades the fill out, and the\n gloss and shadows in, as the token runs 0 to 1. Every glass parameter is a\n custom property so the Button Lab can override per-instance via inline style. */\n._button_a9714b {\n --_flat: calc((1 - var(--wzl-gloss)) * 100%);\n\n /* ---- Tunables (with Aqua-biased defaults) ---- */\n /* Corner radius = 10% of the button's height (the shorter axis on every\n realistic button shape). Using calc against --btn-height keeps the\n corners circular rather than elliptical, which a % value would\n otherwise produce on a wide-but-short pill. */\n --btn-radius: var(--wzl-button-radius, calc(var(--btn-height) * 0.1));\n --btn-fontweight: var(--wzl-button-font-weight, var(--wzl-font-weight-medium));\n --btn-fontsize: var(--wzl-font-size);\n --btn-height: var(--wzl-control-h);\n --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-6));\n\n /* Body gradient — alpha-laced top, opaque bottom. Percentages are\n \"color-mix accent ratio\" so 45% = 45% accent + 55% transparent. */\n --btn-top-alpha: 45%;\n --btn-upper-alpha: 70%;\n --btn-equator: 52%; /* vertical position of the bright-to-deep transition */\n --btn-equator-spread: 12%; /* half-width of the equator transition band */\n --btn-equator-tint: 95%; /* accent vs white at equator */\n --btn-base-tint: 70%; /* accent vs black at base */\n --btn-blur: 6px;\n --btn-saturate: 1.3;\n\n /* Specular gloss (::before) */\n --btn-gloss-top: 0.42;\n --btn-gloss-mid: 0.12;\n --btn-gloss-bottom: 50%; /* inset from bottom — 50% = upper hemisphere */\n\n /* 3D shadows */\n --btn-rim: 0.22;\n --btn-drop-near: 0.30;\n --btn-drop-far: 0.18;\n --btn-inset-hi: 0.42;\n --btn-inset-lo: 0.3;\n\n /* Text — main shadow + a second engraving shadow you can angle.\n `inset-x` / `inset-y` are pre-projected offsets from `inset-angle` so\n the lab can drive them with a single slider. */\n --btn-text-shadow: 0.35;\n --btn-text-inset: 0.55;\n --btn-text-inset-x: 0px;\n --btn-text-inset-y: 1px;\n\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-3);\n border: none;\n border-radius: var(--btn-radius);\n font-family: var(--wzl-font-ui);\n font-weight: var(--btn-fontweight);\n font-style: normal;\n font-size: var(--wzl-field-font-size, var(--btn-fontsize));\n height: var(--btn-height);\n padding: 0 var(--btn-padx);\n line-height: 1;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n isolation: isolate;\n overflow: hidden;\n transition: filter var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast), transform 80ms;\n}\n\n/* Specular gloss — covers the upper hemisphere of the pill with a bright\n white sheen that fades to nothing by the equator. The single detail that\n sells the glass-cylinder illusion. */\n._button_a9714b::before {\n content: '';\n position: absolute;\n inset: 1px 1px var(--btn-gloss-bottom) 1px;\n /* Top corners hug the button's outline; bottom corners are flat so the\n gloss terminates in a straight line at the equator rather than two\n little arcs that read as `)(` brackets at smaller radii. */\n border-top-left-radius: var(--btn-radius);\n border-top-right-radius: var(--btn-radius);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, var(--btn-gloss-top)) 0%,\n rgba(255, 255, 255, var(--btn-gloss-mid)) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n pointer-events: none;\n z-index: 1;\n opacity: calc(var(--wzl-button-gloss, 1) * var(--wzl-gloss));\n transition: opacity var(--wzl-motion-fast);\n}\n\n._button_a9714b > * {\n position: relative;\n z-index: 2;\n}\n\n._button_a9714b:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._button_a9714b:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* ---------- Sizes — set defaults for the custom props ---------- */\n\n._size_sm_a9714b { --btn-height: var(--wzl-control-h-sm); --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-4)); --btn-fontsize: var(--wzl-font-size-sm); }\n._size_md_a9714b { --btn-height: var(--wzl-control-h); --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-6)); --btn-fontsize: var(--wzl-font-size); }\n\n._iconOnly_a9714b._size_sm_a9714b { width: var(--wzl-control-h-sm); --btn-padx: 0; }\n._iconOnly_a9714b._size_md_a9714b { width: var(--wzl-control-h); --btn-padx: 0; }\n\n/* ---------- Variants ---------- */\n\n/* Confirm stance on a solid button: tinted aqua glass — body uses --wzl-accent. The upper / equator\n / lower stops are positioned around --btn-equator so dragging the equator\n shifts the entire transition zone as one block. */\n._variant_solid_a9714b[data-stance='confirm'] {\n background: var(--wzl-button-confirm-surface, var(--btn-glass));\n text-shadow: var(--wzl-button-text-shadow, var(--btn-engraving));\n box-shadow: var(--wzl-button-confirm-bevel, var(--wzl-bevel-raised, var(--btn-relief)));\n --_flat-fill: color-mix(in srgb, var(--wzl-accent) var(--_flat), transparent);\n --btn-glass: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) var(--btn-top-alpha), transparent) 0%,\n color-mix(in srgb, var(--wzl-accent) var(--btn-upper-alpha), transparent) calc(var(--btn-equator) - var(--btn-equator-spread)),\n color-mix(in srgb, var(--wzl-accent) var(--btn-equator-tint), white) var(--btn-equator),\n var(--wzl-accent) calc(var(--btn-equator) + var(--btn-equator-spread) * 1.6),\n color-mix(in srgb, var(--wzl-accent) var(--btn-base-tint), black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n color: var(--wzl-button-confirm-fg, var(--wzl-fg-on-accent));\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n /* Main shadow below for legibility, then a second engraving shadow at a\n configurable angle (defaults below) — a near-black, lower-alpha stamp\n that sits underneath the glyphs and reads as recessed type. */\n --btn-engraving:\n 0 1px 0 light-dark(rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.4 * var(--wzl-gloss))), rgba(0, 0, 0, calc(var(--btn-text-shadow) * var(--wzl-gloss)))),\n var(--btn-text-inset-x) var(--btn-text-inset-y) 0\n light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-inset) * var(--wzl-gloss)))),\n 0 0 6px light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.5 * var(--wzl-gloss))));\n --btn-relief:\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi) * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo) * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(var(--btn-rim) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near) * var(--wzl-gloss))),\n 0 3px 6px rgba(0, 0, 0, calc(var(--btn-drop-far) * var(--wzl-gloss)));\n}\n\n._variant_solid_a9714b[data-stance='confirm']:hover:not(:disabled) {\n filter: brightness(1.08) saturate(1.06);\n}\n\n._variant_solid_a9714b[data-stance='confirm']:active:not(:disabled) {\n background: var(--wzl-button-confirm-pressed-surface, var(--btn-glass-pressed));\n box-shadow: var(--wzl-bevel-pressed, var(--btn-relief-pressed));\n --_flat-fill: color-mix(in srgb, color-mix(in srgb, var(--wzl-accent) 85%, black) var(--_flat), transparent);\n --btn-glass-pressed: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) 80%, black) 0%,\n color-mix(in srgb, var(--wzl-accent) 95%, black) 50%,\n color-mix(in srgb, var(--wzl-accent) 60%, white) 100%\n );\n --btn-relief-pressed:\n inset 0 2px 4px rgba(0, 0, 0, calc(0.35 * var(--wzl-gloss))),\n inset 0 -1px 0 rgba(255, 255, 255, calc(0.25 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc((var(--btn-rim) + 0.06) * var(--wzl-gloss)));\n transform: translateY(0.5px);\n}\n._variant_solid_a9714b[data-stance='confirm']:active::before { opacity: calc(0.3 * var(--wzl-gloss)); }\n\n/* Solid: neutral glass — drained of color. Flat, it is the raised\n surface, which needs a line around it to read as a button on a panel of\n the same surface; the line fades out as the glass's own rim fades in. */\n._variant_solid_a9714b {\n background: var(--wzl-button-surface, var(--btn-glass));\n text-shadow: var(--wzl-button-text-shadow, var(--btn-engraving));\n box-shadow: var(--wzl-bevel-raised, var(--btn-relief));\n --_flat-fill: color-mix(in srgb, var(--wzl-surface-raised) var(--_flat), transparent);\n --btn-glass: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-fg) 25%, transparent) 0%,\n color-mix(in srgb, var(--wzl-fg) 10%, transparent) calc(var(--btn-equator) - var(--btn-equator-spread)),\n color-mix(in srgb, var(--wzl-surface-raised) 90%, white) var(--btn-equator),\n var(--wzl-surface-raised) calc(var(--btn-equator) + var(--btn-equator-spread) * 1.6),\n color-mix(in srgb, var(--wzl-surface-sunken) 80%, black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n color: var(--wzl-fg);\n /* Dark type on a light body: a dark stamp under it reads as a smear of the\n glyph rather than depth, so light mode drops it. */\n --btn-engraving:\n 0 1px 0 light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.7 * var(--wzl-gloss)))),\n var(--btn-text-inset-x) var(--btn-text-inset-y) 0\n light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-inset) * 0.7 * var(--wzl-gloss))));\n --btn-relief:\n inset 0 0 0 1px color-mix(in srgb, var(--wzl-border-strong) var(--_flat), transparent),\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi) * 0.5 * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo) * 0.83 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc((var(--btn-rim) + 0.03) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near) * 0.93 * var(--wzl-gloss))),\n 0 3px 6px rgba(0, 0, 0, calc(var(--btn-drop-far) * 0.89 * var(--wzl-gloss)));\n}\n\n._variant_solid_a9714b:hover:not(:disabled) { filter: brightness(1.1); }\n\n._variant_solid_a9714b:active:not(:disabled) {\n background: var(--wzl-button-pressed-surface, var(--btn-glass-pressed));\n box-shadow: var(--wzl-bevel-pressed, var(--btn-relief-pressed));\n --_flat-fill: color-mix(in srgb, var(--wzl-surface-sunken) var(--_flat), transparent);\n --btn-glass-pressed: linear-gradient(var(--_flat-fill), var(--_flat-fill)),\n linear-gradient(180deg, var(--wzl-surface-sunken) 0%, var(--wzl-surface-raised) 100%);\n --btn-relief-pressed:\n inset 0 0 0 1px color-mix(in srgb, var(--wzl-border-strong) var(--_flat), transparent),\n inset 0 2px 4px rgba(0, 0, 0, calc(0.4 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(0.3 * var(--wzl-gloss)));\n transform: translateY(0.5px);\n}\n._variant_solid_a9714b:active::before { opacity: calc(0.2 * var(--wzl-gloss)); }\n\n/* Ghost: silhouette only — no glass body, no gloss. */\n._variant_ghost_a9714b {\n background: transparent;\n color: var(--wzl-fg);\n box-shadow: none;\n}\n._variant_ghost_a9714b::before { display: none; }\n\n._variant_ghost_a9714b:hover:not(:disabled):not(._pressed_a9714b) {\n background: var(--wzl-surface-hover);\n}\n\n/* A graded ghost stays quiet until pointed at, then shows its grade: a discard in a toolbar reddens on hover. */\n._variant_ghost_a9714b[data-grade]:hover:not(:disabled) {\n color: var(--_s-accent);\n box-shadow: inset 0 0 0 1px var(--_s-accent);\n}\n\n._variant_ghost_a9714b:active:not(:disabled) {\n background: var(--wzl-surface-pressed);\n}\n\n/* Link: text only, sized by the surrounding text rather than the control scale. */\n._variant_link_a9714b {\n display: inline;\n height: auto;\n padding: 0;\n border-radius: var(--wzl-radius-sm);\n background: transparent;\n box-shadow: none;\n text-shadow: none;\n font: inherit;\n line-height: inherit;\n text-align: start;\n overflow: visible;\n /* A tint, grade, or stance accent paints over emphasis. */\n color: var(--_s-accent, var(--btn-link-fg));\n text-decoration: underline;\n text-underline-offset: 0.15em;\n}\n._variant_link_a9714b { --btn-link-fg: var(--wzl-emphasis-fg, var(--wzl-accent-fg)); }\n\n._variant_link_a9714b::before { display: none; }\n._variant_link_a9714b ._label_a9714b { display: inline; }\n\n._variant_link_a9714b:hover:not(:disabled) {\n text-decoration-thickness: 2px;\n}\n\n/* ---------- Modifiers ---------- */\n\n._pressed_a9714b:not(:disabled) {\n background: var(--wzl-surface-pressed);\n color: var(--wzl-fg);\n box-shadow: var(--wzl-bevel-pressed, inset 0 1px 2px rgb(0 0 0 / 18%));\n}\n\n._variant_solid_a9714b[data-stance='confirm']._pressed_a9714b:not(:disabled) { filter: brightness(0.92); }\n\n._fullWidth_a9714b { width: 100%; }\n._loading_a9714b ._label_a9714b { opacity: 0.7; }\n\n/* ---------- Slots ---------- */\n\n._iconSlot_a9714b {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n\n._size_sm_a9714b ._iconSlot_a9714b > svg { width: var(--wzl-button-icon-size, 12px); height: var(--wzl-button-icon-size, 12px); }\n._size_md_a9714b ._iconSlot_a9714b > svg { width: var(--wzl-button-icon-size, 14px); height: var(--wzl-button-icon-size, 14px); }\n\n._label_a9714b { display: inline-block; }\n\n/* ---------- Spinner ---------- */\n\n._spinner_a9714b {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n animation: _wzl-btn-spin_a9714b 0.7s linear infinite;\n}\n\n@keyframes _wzl-btn-spin_a9714b {\n to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._spinner_a9714b {\n animation: none;\n }\n}\n\n/* BEGIN GENERATED stance rules: button — `npm run gen:stances`, do not edit. */\n\n._button_a9714b {\n --wzl-tint: initial;\n}\n\n._button_a9714b {\n --_s-accent: var(--wzl-tint);\n}\n\n._button_a9714b[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._button_a9714b[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: button */\n/* In :where() so an owner's class sizes and colors the handle without a specificity contest. */\n:where(._handle_0ec46e) {\n font: inherit;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border: 0;\n background: transparent;\n color: var(--wzl-fg-subtle);\n cursor: grab;\n touch-action: none;\n user-select: none;\n}\n\n:where(._handle_0ec46e):active {\n cursor: grabbing;\n}\n\n:where(._handle_0ec46e):disabled {\n cursor: default;\n}\n._editor_2316ed {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n /* A width that yields, not a floor: a dialog sizes to it, and a form row narrower than it keeps the editor inside. */\n inline-size: 28rem;\n max-inline-size: 100%;\n}\n\n._list_2316ed {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n._entry_2316ed {\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n._entry_2316ed[data-dragging] {\n opacity: 0.5;\n}\n\n/* Where a dragged entry would land: a line on the edge of the entry it would land against. */\n._entry_2316ed[data-drop-before] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._entry_2316ed[data-drop-after] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n._handle_2316ed {\n flex: none;\n align-self: stretch;\n padding: 0 var(--wzl-space-1);\n border-radius: var(--wzl-radius-sm);\n}\n\n._input_2316ed {\n flex: 1 1 auto;\n min-width: 0;\n padding: 0 var(--wzl-field-pad-x);\n}\n\n._control_2316ed {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n._empty_2316ed {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n\n._actions_2316ed {\n display: flex;\n}\n/* A frame that grows a line at a time as its chips wrap, rather than the one-line height a field keeps. */\n._field_65f58b {\n --_frame-h: auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n min-block-size: var(--wzl-field-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n box-sizing: border-box;\n cursor: text;\n}\n\n._slot_65f58b {\n position: relative;\n display: inline-flex;\n max-inline-size: 100%;\n cursor: default;\n}\n\n._slot_65f58b[data-dragging] {\n opacity: 0.5;\n}\n\n/* Where a dragged chip would land: a bar on the edge of the chip it would land against. */\n._slot_65f58b:is([data-drop-before], [data-drop-after])::before {\n content: '';\n position: absolute;\n inset-block: 0;\n inline-size: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n}\n\n._slot_65f58b[data-drop-before]::before {\n inset-inline-start: calc(-1 * var(--wzl-space-2) / 2 - 1px);\n}\n\n._slot_65f58b[data-drop-after]::before {\n inset-inline-end: calc(-1 * var(--wzl-space-2) / 2 - 1px);\n}\n\n/* A token is a value as typed, not a status: it keeps its case and the field's text size. Ungraded, its\n tint is the muted text color, since the border gray a badge falls back to vanishes on a sunken field. */\n._field_65f58b ._token_65f58b {\n --badge-font-size: var(--wzl-font-size-sm);\n --badge-emphasis-edge: var(--wzl-fg-muted);\n text-transform: none;\n letter-spacing: normal;\n max-inline-size: 100%;\n}\n\n._field_65f58b ._slot_65f58b ._token_65f58b:not([data-grade]) {\n --badge-fg: var(--wzl-fg);\n}\n\n._input_65f58b {\n flex: 1 0 7rem;\n min-inline-size: 7rem;\n block-size: calc(var(--wzl-field-h, var(--wzl-control-h)) - 2 * var(--wzl-space-1) - 2px);\n padding: 0 var(--wzl-space-1);\n}\n\n._popover_65f58b {\n outline: none;\n}\n\n._editor_65f58b {\n display: grid;\n gap: var(--wzl-space-2);\n inline-size: 220px;\n padding: var(--wzl-space-3);\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n\n._tabs_d11ff0 {\n display: flex;\n flex-direction: column;\n gap: 0;\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._tabs_d11ff0[data-orientation=\"horizontal\"] {\n flex-direction: column;\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] {\n flex-direction: row;\n gap: var(--wzl-space-6);\n}\n\n._list_d11ff0 {\n display: flex;\n gap: var(--wzl-space-1);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._list_d11ff0 {\n flex-direction: column;\n border-bottom: none;\n border-inline-end: 1px solid var(--wzl-border);\n padding-inline-end: var(--wzl-space-4);\n}\n\n._tab_d11ff0 {\n position: relative;\n padding: var(--wzl-space-3) var(--wzl-space-5);\n background: transparent;\n border: none;\n color: var(--wzl-fg-muted);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n cursor: pointer;\n outline: none;\n transition: color var(--wzl-motion-fast);\n}\n\n/* A tab's raised edge, under a theme that draws one: every side but the one its panel is on. The\n face runs past that side and is cut back to it, which leaves the bevel there outside the cut. */\n._tab_d11ff0::before {\n --_open: 8px;\n content: '';\n position: absolute;\n inset: 0 0 calc(-1 * var(--_open)) 0;\n clip-path: inset(0 0 var(--_open) 0);\n box-shadow: var(--wzl-bevel-raised, none);\n pointer-events: none;\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0::before {\n inset-block: 0;\n inset-inline: 0 calc(-1 * var(--_open));\n clip-path: inset(0 var(--_open) 0 0);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0:dir(rtl)::before {\n clip-path: inset(0 0 0 var(--_open));\n}\n\n._tab_d11ff0[data-hovered]:not([data-disabled]) {\n color: var(--wzl-fg);\n}\n\n._tab_d11ff0[data-selected] {\n color: var(--wzl-fg);\n}\n\n._tab_d11ff0[data-selected]::after {\n content: '';\n position: absolute;\n inset-inline: 0;\n bottom: -1px;\n height: 2px;\n background: var(--wzl-accent-strong);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0[data-selected]::after {\n inset-inline-start: auto;\n inset-inline-end: calc(-1 * (var(--wzl-space-4) + 1px));\n top: 0;\n bottom: 0;\n width: 2px;\n height: auto;\n}\n\n._tab_d11ff0[data-focus-visible] {\n box-shadow: inset 0 0 0 2px var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n}\n\n._tab_d11ff0[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._panel_d11ff0 {\n padding: var(--wzl-space-6) 0;\n outline: none;\n /* Inside an `Along`, which takes no input, the panel still does. */\n pointer-events: auto;\n}\n\n._panel_d11ff0[data-focus-visible] {\n box-shadow: inset 0 0 0 2px var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n}\n\n/* A tab list laid along a track shape: its tabs are placed on the run, and the rule is drawn along it. */\n._along_d11ff0 {\n column-gap: var(--wzl-space-1);\n}\n\n/* The list inside a run laid out around it. */\n._list_d11ff0._joined_d11ff0 {\n position: absolute;\n inset: 0;\n border-bottom: none;\n pointer-events: none;\n}\n\n._along_d11ff0 ._tab_d11ff0 {\n position: absolute;\n}\n\n/* The marker is drawn along the rule instead, so it bends with it. */\n._along_d11ff0 ._tab_d11ff0[data-selected]::after {\n display: none;\n}\n\n/* A tab whose top faces the inside of the bend has its panel on that side. */\n._along_d11ff0 ._tab_d11ff0[data-inside='top']::before {\n inset: calc(-1 * var(--_open)) 0 0 0;\n clip-path: inset(var(--_open) 0 0 0);\n}\n\n._rule_d11ff0 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n._ruleLine_d11ff0,\n._ruleMarker_d11ff0,\n._ruleDrop_d11ff0 {\n fill: none;\n}\n\n._ruleLine_d11ff0 {\n stroke: var(--wzl-border);\n stroke-width: 1px;\n}\n\n._ruleMarker_d11ff0 {\n stroke: var(--wzl-accent-strong);\n stroke-width: 2px;\n}\n\n._ruleDrop_d11ff0 {\n stroke: var(--wzl-accent);\n stroke-width: 2px;\n}\n/* A node a `showIf` hides, drawn because the surface was asked to: there to be picked, and plainly not what a\n reader of the form would see. */\n[data-pref-hidden] {\n opacity: 0.55;\n}\n\n._badge_7555d5 {\n margin-inline-start: var(--wzl-space-2);\n}\n\n/* On a line of its own, over a control that brings its own chrome. */\n._lead_7555d5 {\n margin-inline-start: 0;\n margin-block-end: var(--wzl-space-1);\n}\n\n._gapped_7555d5 {\n flex: none;\n margin-inline-start: 0;\n}\n/* A group or a section its `enableIf` turns off, in a heading that is no frame: its name dims as a frame's title does. */\n._off_4ccfd0 {\n opacity: 0.5;\n}\n/* The mark on whatever `selectionAttrs` names as selected, in every surface that draws one; `MARKED` in\n `selection.ts` is the same selector. A fragment has no box to mark, so a selected one marks its rows.\n The secondary accent: the primary one is a control's own (a checked box, a focused field), and a mark in it\n around a row of them reads as one more. */\n[data-pref-path][data-selected]:not([role='tab'], [data-pref-fragment]),\n[data-pref-fragment][data-selected] > [data-pref-path],\n[data-pref-path][data-pref-picked] {\n background: color-mix(in oklab, var(--wzl-secondary) 12%, transparent);\n outline: 1px solid var(--wzl-secondary);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n/* Ported from WeaselDraw's wd-prefs-* rules (apps/draw/src/app.css),\n * generalized onto theme tokens. Column width is overridable via\n * --wzl-prefs-column-width at any ancestor scope. */\n\n._columns_354a55 {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--wzl-space-6);\n overflow-y: auto;\n padding-right: var(--wzl-space-2);\n}\n\n._column_354a55 {\n flex: 0 0 var(--wzl-prefs-column-width, 300px);\n width: var(--wzl-prefs-column-width, 300px);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}\n\n/* The columns layout's groups are wells (`FORM_FRAMES`), set out here. Each frame states the whole set, so a\n well nested in another takes none of its spacing. */\n._panel_354a55,\n._subpanel_354a55 {\n --wzl-well-radius: var(--wzl-radius-sm);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n}\n\n._panel_354a55 {\n --wzl-well-gap: var(--wzl-space-4);\n --wzl-well-pad: var(--wzl-space-5);\n --wzl-well-head-pad: var(--wzl-space-2);\n}\n\n._subpanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: var(--wzl-space-1);\n --wzl-well-rule: var(--subpanel-rule);\n --wzl-well-inset-start: var(--subpanel-inset-start);\n --wzl-well-inset-end: var(--subpanel-inset-end);\n margin-top: var(--wzl-space-3);\n}\n\n/* The list layout's loose rows take the inset of the subpanels they sit over, so every label and control shares an edge. */\n._columnsLayout_354a55 > ._rows_354a55:has(> ._subpanel_354a55) > ._rowSlot_354a55 {\n padding-inline: calc(var(--subpanel-rule) + var(--subpanel-inset-start)) var(--subpanel-inset-end);\n}\n\n._rows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n}\n\n/* A leaf's row is a PropertyRow, inline; this only sets the form's type. */\n._row_354a55 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n cursor: default;\n}\n\n/* What a leaf's row sits in, so a selected one can be marked and found. */\n._rowSlot_354a55 {\n border-radius: var(--wzl-radius-sm);\n}\n\n/* A drag over the form: what it holds, drawn where it would land, and the rail entry it would go into. */\n[data-drop-placeholder] {\n outline: 1px dashed var(--wzl-accent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--wzl-accent) 10%, transparent);\n pointer-events: none;\n}\n\n[data-drop-placeholder] > * {\n opacity: 0.6;\n}\n\n/* Rail entries sit a pixel apart, so the outline is drawn inside the entry. */\n._railItem_354a55[data-drop-placeholder] {\n outline-offset: -1px;\n}\n\n._railItem_354a55[data-drop='into'] {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n/* The browser would otherwise scroll a pane to hold its rows still when a placeholder lands above them. */\n[data-dropping] ._pane_354a55 {\n overflow-anchor: none;\n}\n\n/* `kind: 'label'`: text among the rows. */\n/* Control slot — a share of the row rather than a fixed width, so a wide pane\n * widens the field instead of the gap before it. A long label still pushes it\n * narrower, down to the floor. Kit form controls are flex columns that fill it. */\n._rowControl_354a55 {\n flex: 0 1 60%;\n min-width: 110px;\n display: flex;\n align-items: center;\n /* A control narrower than the slot sits at the row's far edge, so the values line up down a pane;\n a select fills the slot, so its value is set to that edge inside it. */\n justify-content: flex-end;\n --wzl-select-align: end;\n}\n\n._unrenderable_354a55 {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n/* PrefsDialog header row: title text + optional headerExtra chrome. */\n._titleRow_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n flex: 1;\n min-width: 0;\n}\n\n._titleRow_354a55 > span:first-child {\n flex: 1;\n min-width: 0;\n}\n\n/* An object leaf renders its fields as its own rows. */\n._objectLeaf_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}\n\n/* Outranks the PropertyRow it styles, which is a flex row. */\n._objectLeaf_354a55 ._objectRow_354a55 {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n gap: var(--wzl-space-4);\n align-items: center;\n}\n\n/* The slot of a control whose renderer asked for the row's whole width (`wide`): the control is stretched to it,\n where a stacked built-in keeps the width it sets itself. */\n._rowControlFilled_354a55 > * {\n flex: 1 1 auto;\n min-inline-size: 0;\n}\n\n/* A control slot's own minimum is wider than this column gets in a narrow pane, and would run past the row. */\n._objectLeaf_354a55 ._objectRow_354a55 > ._rowControl_354a55 {\n min-width: 0;\n}\n\n._objectGroup_354a55 {\n margin: var(--wzl-space-2) 0 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}\n\n/* ---------------------------------------------------------------------------\n * Rail layout. The rail is the only chrome: no panels, because the surface\n * the form sits on already has a border and a card inside it restates one.\n * Width is overridable via --wzl-prefs-rail-width at any ancestor scope.\n * ------------------------------------------------------------------------ */\n\n._columnsLayout_354a55 {\n --subpanel-rule: 2px;\n --subpanel-inset-start: var(--wzl-space-5);\n --subpanel-inset-end: var(--wzl-space-4);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-height: 0;\n}\n\n._railLayout_354a55 {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n min-height: 0;\n block-size: 100%;\n /* The pane scrolls, not the layout: a rail that scrolled away with the\n settings would be useless exactly when it is needed. */\n overflow: hidden;\n}\n\n/* What `PrefsDialog` hands `Dialog` for its body in rail layout: the pane\n inside does the scrolling and the rail meets the dialog's own edges. */\n._railBody_354a55 {\n padding: 0;\n overflow: hidden;\n /* The modal sets only `max-height`, so the layout's `block-size: 100%`\n resolves against nothing and the pane grows to fit every row. As a flex\n item the layout takes the body's flexed height, which the cap does bound. */\n display: flex;\n flex-direction: column;\n /* A settled height: without one the dialog grows and shrinks as the reader\n moves between a two-row group and a twenty-row one, and the rail entry\n they are aiming at moves while they aim at it. */\n min-block-size: min(60vh, 420px);\n}\n\n/* Same reason across: a filter that narrows the schema to two rows should not pull the dialog's edges in\n around them. Set on the modal, whose percentages read the overlay: the room the box has, which in a\n contained portal is not the window. */\n:where(._railModal_354a55) {\n min-inline-size: min(800px, 100% - 32px);\n}\n\n._railBody_354a55 > ._railLayout_354a55 {\n flex: 1 1 auto;\n}\n\n._rail_354a55 {\n /* Never more than two fifths of the box: at its full width in a narrow\n container the rail takes the space the settings need and leaves a pane\n too thin to hold a row. The clamp belongs on the flex basis — an\n `inline-size` here is simply ignored, which is what made a first attempt\n at this look right and do nothing. The basis is the content box, so the 40% gives back the padding and border. */\n flex: 0 1 min(var(--wzl-prefs-rail-width, 176px), calc(40% - var(--wzl-space-2) - var(--wzl-space-8) - 1px));\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n /* The far side clears a scrollbar laid over the box, which takes no room of its own; one that takes room clears itself. */\n padding: var(--wzl-space-3) var(--wzl-space-8) var(--wzl-space-3) var(--wzl-space-2);\n background: var(--wzl-surface-sunken);\n border-right: 1px solid var(--wzl-border);\n overflow-y: auto;\n /* The rail is itself sunken, so a field taking the default surface would be\n the same color as the rail behind it. */\n --wzl-input-surface: var(--wzl-surface);\n}\n\n._railList_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n}\n\n._railItem_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border: none;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: var(--wzl-fg);\n font: inherit;\n /* The size of a control's text in the pane beside it. */\n font-size: var(--wzl-font-size);\n text-align: start;\n cursor: default;\n}\n\n._railItem_354a55:hover {\n background: var(--wzl-surface-raised);\n}\n\n._railItem_354a55:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* The entries nested under one, a step in from it. */\n._railNest_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding-left: calc(var(--wzl-space-7) - var(--wzl-space-3));\n}\n\n/* A foldable rail: each entry follows its fold mark, or a blank as wide where it has\n nothing to fold, so every name at one depth starts at one edge. */\n._railRow_354a55 {\n display: flex;\n align-items: center;\n}\n\n._railRow_354a55 > ._railItem_354a55 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n._railFold_354a55 {\n flex: 0 0 var(--wzl-control-h-sm);\n}\n\n/* The open page. */\n._railItem_354a55[data-rail-mark='current'] {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n/* Choosing it opens the first entry under it: it has no page of its own to show. */\n._railPasses_354a55 ._railName_354a55 {\n color: var(--wzl-fg-muted);\n}\n\n._railName_354a55 {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Last in the row: a count that changes as the reader types would otherwise\n shove the name on every keystroke. */\n._railCount_354a55 {\n margin-left: auto;\n font-size: var(--wzl-font-size-xs);\n opacity: 0.6;\n}\n\n._pane_354a55 {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n /* A placeholder's line can be the one that makes the pane scroll, and a scrollbar arriving would move every row. */\n scrollbar-gutter: stable;\n /* The gutter is no room where the scrollbar is laid over the box, so the far side clears it itself. */\n padding: var(--wzl-space-5) var(--wzl-space-8) var(--wzl-space-5) var(--wzl-space-6);\n}\n\n/* A scrollbar that takes room of its own (`markScrollbar`) is cleared by its gutter, so the far side pads as the\n near side does. */\n._rail_354a55[data-scrollbar] { padding-right: var(--wzl-space-2); }\n._pane_354a55[data-scrollbar] { padding-right: var(--wzl-space-6); }\n\n/* Rows that follow a group on the page stand off it as a group does. */\n._pane_354a55 > :not(._paneHead_354a55) + ._rows_354a55 {\n margin-top: var(--wzl-space-4);\n}\n\n._paneHead_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n margin-bottom: var(--wzl-space-5);\n}\n\n._paneTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xl);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._paneDesc_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n._paneSection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n margin-top: var(--wzl-space-6);\n}\n\n/* `as: 'fragment'`: a group with nothing of its own to draw. Its rows are laid out by whatever holds the group. */\n._fragment_354a55 {\n display: contents;\n}\n\n/* `as: 'panel'`: the one group in a pane that draws its own box, a well (`FORM_FRAMES.box`) at its defaults. */\n._panePanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n margin-top: var(--wzl-space-4);\n}\n\n/* An object's panel titles itself as the object's other groups do. */\n._objectPanel_354a55 {\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n}\n\n/* `as: 'tab'`: a `Tabs` strip, set off from the rows above it. */\n._paneTabs_354a55 {\n margin-top: var(--wzl-space-4);\n}\n\n._paneSubsection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin-top: var(--wzl-space-4);\n padding-left: var(--wzl-space-4);\n border-left: 2px solid var(--wzl-border);\n}\n\n._sectionTitle_354a55 {\n position: sticky;\n /* A sticky offset is measured from inside the pane's padding, so this takes the pane's top padding back\n off and the heading rests against the pane's edge, with no strip above it for rows to show in. */\n top: calc(-1 * var(--wzl-space-5));\n z-index: 1;\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* What is scrolled to inside a section stops below the heading stuck over it, at the height `stuckHeadingRef`\n measures; until it has, the heading's padding, border, and one line. */\n._paneSection_354a55 :where([data-pref-path]) {\n scroll-margin-top: var(\n --pref-stuck-height,\n calc(var(--wzl-space-3) + var(--wzl-space-2) + 1px + var(--wzl-font-size-sm) * var(--wzl-leading))\n );\n}\n\n._subsectionTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* In the rail layout a row is a grid, so the control track grows with the\n pane instead of holding at the columns layout's fixed slot. A stacked row\n keeps PropertyRow's own layout: its label over a control the row's width. */\n._railLayout_354a55 ._row_354a55:where(:not(._rowStacked_354a55)) {\n display: grid;\n /* The control track is capped rather than taking the rest: a number field\n as wide as the pane reads as a text area, and every row's control starts\n at the same x either way. */\n grid-template-columns:\n minmax(min(140px, 40% - var(--wzl-space-3)), var(--wzl-params-label-width, 240px))\n minmax(min(180px, 60%), 260px);\n}\n\n/* `rowsAcross={2}`, in the rail and list layouts: two rows side by side. A leaf that spans both keeps to them, its label in the first column\n and its control in the second; a stacked one has the whole line under its label already. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, [data-wide] > ._row_354a55:not(._rowStacked_354a55)) {\n --_across-gap: var(--wzl-prefs-across-gap, 28px);\n display: grid;\n /* Two columns, each at least half the line, so never three; and one once half the line is too narrow for a row. */\n grid-template-columns: repeat(auto-fit, minmax(max(120px, (100% - var(--_across-gap)) / 2), 1fr));\n /* Wide between the columns: a row's control ends where the next row's label begins. */\n gap: var(--wzl-space-3) var(--_across-gap);\n align-items: start;\n}\n\n/* The spanning leaf's label reads on the line of its control's first row. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] [data-wide] > ._row_354a55:not(._rowStacked_354a55) {\n align-items: baseline;\n}\n\n/* The label sits beside its control while both fit, and the control drops\n under it when they do not: a label never narrows below its own text. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n}\n\n/* One share of the row for every label short enough to take it, so a\n column's controls start at one x. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 > :first-child {\n flex: 1 0 40%;\n min-inline-size: max-content;\n max-inline-size: 100%;\n}\n\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55 {\n /* No `min-inline-size: 0`: a control wider than what is left of the line\n has to wrap under the label rather than run past the column. */\n flex: 1 1 var(--wzl-prefs-control-min, 80px);\n max-inline-size: 100%;\n}\n\n/* A checkbox needs only its own width beside the label, not a field's. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55:has(> input[type='checkbox']:only-child) {\n flex-basis: auto;\n min-inline-size: 0;\n}\n\n/* Anything in the grid that is not one leaf's row is a group, and runs the full width. A fragment's children are\n in the grid too, though not children of it. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, ._fragment_354a55) > :is(:not(._rowSlot_354a55), [data-wide]) {\n grid-column: 1 / -1;\n}\n\n._railLayout_354a55 ._rowControl_354a55 {\n flex: 1 1 auto;\n}\n\n._filter_354a55 {\n padding: 0 var(--wzl-space-1) var(--wzl-space-2);\n}\n\n._noMatches_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-6) 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n._noMatches_354a55 p {\n margin: 0;\n}\n\n._clearFilter_354a55 {\n padding: var(--wzl-space-1) var(--wzl-space-3);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n}\n\n/* A root drawn as a bar: the bar at its own size, with the room around it the form's to take a drop in. */\n._barRoot_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n/* A heading holding the control of a leaf marked `heading`: its name, then the control at the far end. */\n._headed_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* The control is drawn as a row's is, whatever the heading does to its own words. It is no label, so it turns\n the label recipe off for itself and what it holds, and reads it back in place of the heading's inherited case. */\n._headingControl_354a55 {\n --wzl-params-label-case: none;\n --wzl-params-label-tracking: normal;\n display: inline-flex;\n align-items: center;\n margin-inline-start: auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-normal);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* An `actions` leaf's rows, one under another. */\n._actionRows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}\n._label_2aa726 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n}\n\n._labelText_2aa726 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n}\n\n._labelNote_2aa726 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n._rule_2aa726 {\n inline-size: 100%;\n margin: var(--wzl-space-1) 0;\n border: 0;\n border-top: 1px solid var(--wzl-border);\n}\n/* A bar's or a toolbar's own name: a field label's face and case, one step up the weight scale from a label's light,\n so it reads above its fields' names. */._label_89c1e8 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n white-space: nowrap;\n}/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A bar's line. It has no frame: the strip it sits on is the host's. */\n._bar_c3637b {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--bar-gap, var(--wzl-space-3));\n min-inline-size: 0;\n /* Every control on the line stands at one height, so their edges line up: boxes, selects, segments and buttons. */\n --wzl-field-h: var(--wzl-control-h-sm);\n --wzl-select-h: var(--wzl-field-h);\n --tb-h: var(--wzl-field-h);\n}\n\n._bar_c3637b[data-orientation='vertical'] {\n flex-direction: column;\n align-items: stretch;\n /* A side bar is a toolbar's width: a control and its margins. A field wider than this turns to read down it. */\n --bar-side-max: calc(var(--wzl-control-h-sm) + 2 * var(--wzl-space-4));\n max-inline-size: var(--bar-side-max);\n}\n\n/* The strip itself, where the host draws none. Too long for its room, it scrolls. */\n._framed_c3637b {\n margin-block: var(--wzl-space-3);\n min-block-size: var(--wzl-tb-height);\n padding: 0 var(--wzl-space-3);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, none);\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\n._framed_c3637b[data-orientation='vertical'] {\n padding: var(--wzl-space-3) 0;\n overflow-x: visible;\n}\n\n/* A run of actions read as one control: a compact strip, its cells almost touching. */\n._segmented_c3637b {\n --bar-gap: 1px;\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-1);\n box-shadow: var(--wzl-bevel-raised, none);\n user-select: none;\n}\n\n/* One control is as long as its cells, in a block host or a stretching column. In `:where()` so a host class sizes it. */\n:where(._segmented_c3637b) {\n inline-size: fit-content;\n max-inline-size: 100%;\n}\n\n/* Opening what does not fit, a bar asks for the length that holds every cell (`--bar-natural`, which it measures),\n so a host sized to its content gives it that much. Squeezed below it, the bar shrinks and opens the rest from a\n menu; given room again, it grows back to it. */\n._bar_c3637b[data-overflow='menu'] {\n flex: 0 1 auto;\n box-sizing: border-box;\n inline-size: var(--bar-natural, auto);\n max-inline-size: 100%;\n overflow: visible;\n}\n\n._bar_c3637b[data-overflow='menu'][data-orientation='vertical'] {\n inline-size: auto;\n max-inline-size: var(--bar-side-max);\n block-size: var(--bar-natural, auto);\n max-block-size: 100%;\n min-block-size: 0;\n}\n\n._cell_c3637b {\n display: flex;\n flex: none;\n align-items: center;\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._cell_c3637b {\n justify-content: center;\n}\n\n/* Sets a run apart from its neighbors. */\n._divider_c3637b {\n flex: none;\n align-self: stretch;\n inline-size: 1px;\n margin-block: var(--wzl-space-2);\n background: var(--wzl-border);\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._divider_c3637b {\n inline-size: auto;\n block-size: 1px;\n margin-block: 0;\n margin-inline: var(--wzl-space-2);\n}\n\n/* A `separator` leaf. It keeps a cell of its own, unlike a divider, so it is always drawn where it was put. */\n._rule_c3637b {\n flex: none;\n inline-size: 1px;\n block-size: calc(var(--wzl-tb-height) - 2 * var(--wzl-space-2));\n background: var(--wzl-border);\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._cell_c3637b > ._rule_c3637b {\n flex: 1;\n block-size: 1px;\n margin-inline: var(--wzl-space-2);\n}\n\n/* The cells a line had no room for, one under another. */\n._menu_c3637b {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-4);\n}\n\n._menu_c3637b > ._divider_c3637b {\n inline-size: auto;\n block-size: 1px;\n margin: 0;\n}\n\n._menu_c3637b > ._cell_c3637b:has(> ._rule_c3637b) {\n align-self: stretch;\n}\n\n._menu_c3637b > ._cell_c3637b > ._rule_c3637b {\n flex: 1;\n block-size: 1px;\n}\n\n/* One field on a bar's line. `flex: none` keeps the bar from squeezing it:\n a bar too long for its room scrolls. */\n._field_c3637b {\n display: inline-flex;\n align-items: center;\n flex: none;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n /* Selects and number boxes sit at the size of the small segmented bars beside them. */\n --wzl-field-h: var(--wzl-control-h-sm);\n --wzl-field-font-size: var(--wzl-font-size-sm);\n}\n\n._label_c3637b {\n display: inline-flex;\n flex: none;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* The bar's own name or glyph at the start of its line. */\n._lead_c3637b {\n display: flex;\n align-items: center;\n flex: none;\n padding-inline: var(--wzl-space-2);\n}\n\n/* A lead that moves its bar in a dock. */\n._lead_c3637b[role='button'] {\n gap: var(--wzl-space-1);\n cursor: grab;\n border-radius: var(--wzl-radius-sm);\n user-select: none;\n touch-action: none;\n}\n\n._lead_c3637b[role='button']:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* A label after its control, as a switch and a checkbox have it. */\n._after_c3637b {\n flex: none;\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* A disabled control dims itself; the name beside it is the bar's to dim. */\n._field_c3637b:has(:disabled) > :is(._label_c3637b, ._after_c3637b) {\n opacity: 0.5;\n}\n\n/* A bar's budget is one line rather than a column, so a number carries only\n the digits it needs and a track stops short of pushing its neighbors off\n the end. */\n._number_c3637b {\n --wzl-number-field-width: 5ch;\n}\n\n._number_c3637b input[type='text'] {\n inline-size: var(--wzl-number-field-width);\n}\n\n._text_c3637b input[type='text'] {\n inline-size: 12ch;\n}\n\n._field_c3637b input[type='range'] {\n inline-size: 64px;\n flex: none;\n}\n\n/* The swatch fills a row's control column; here it is as wide as what it says. */\n._paint_c3637b > button {\n inline-size: auto;\n}\n\n._popTrigger_c3637b {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-block: 0;\n padding-inline: var(--wzl-space-4) var(--wzl-space-3);\n white-space: nowrap;\n cursor: pointer;\n}\n\n/* Down a side, a button with a glyph shows the glyph alone, and one without turns to read along the bar. */\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b[data-icon] {\n position: relative;\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b[data-icon] > ._popLabel_c3637b {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b:not([data-icon]) {\n writing-mode: sideways-lr;\n height: auto;\n block-size: var(--_frame-h, var(--wzl-field-h, var(--wzl-control-h)));\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b:not([data-icon]) > [data-caret] {\n rotate: -90deg;\n}\n\n._caret_c3637b {\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: none;\n}\n\n._popover_c3637b {\n outline: none;\n}\n\n._popBody_c3637b {\n inline-size: 260px;\n padding: var(--wzl-space-4);\n}\n\n/* A `label` leaf: words on the line, holding no value. */\n._words_c3637b {\n flex: none;\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* One action's button. Square around an icon; as wide as its words with a label. */\n._action_c3637b {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-2);\n width: var(--wzl-field-h, var(--wzl-tb-height));\n height: var(--wzl-field-h, var(--wzl-tb-height));\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n white-space: nowrap;\n cursor: pointer;\n}\n\n._actionLabeled_c3637b {\n width: auto;\n padding: 0 var(--wzl-space-3);\n}\n\n._action_c3637b:hover:not([disabled], [aria-disabled='true']),\n._action_c3637b[aria-expanded='true'] {\n background: var(--wzl-border);\n}\n\n._action_c3637b:active:not([disabled], [aria-disabled='true']) {\n background: color-mix(in srgb, var(--wzl-border) 70%, transparent);\n}\n\n._action_c3637b[aria-pressed='true'] {\n background: var(--wzl-accent);\n box-shadow: var(--wzl-bevel-pressed, none);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._action_c3637b[disabled],\n._action_c3637b[aria-disabled='true'],\n._popTrigger_c3637b[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._action_c3637b > svg {\n display: block;\n}\n\n/* An `actions` leaf's buttons: one cell, spaced as the bar spaces its cells. */\n._actions_c3637b {\n display: flex;\n align-items: center;\n gap: var(--bar-gap, var(--wzl-space-3));\n}\n\n._bar_c3637b[data-orientation='vertical'] ._actions_c3637b,\n._menu_c3637b ._actions_c3637b {\n flex-direction: column;\n}\n\n/* An action as a panel's row: its icon and label once, across the row. */\n._actionRow_c3637b {\n inline-size: 100%;\n justify-content: flex-start;\n border: 1px solid var(--wzl-border);\n background: var(--wzl-surface);\n}\n\n/* An action in a bar's overflow, as a menu row: the shortcut sits at the row's far end. */\n._actionMenu_c3637b {\n inline-size: 100%;\n justify-content: flex-start;\n gap: var(--wzl-space-3);\n}\n\n._actionShortcut_c3637b {\n margin-inline-start: auto;\n padding-inline-start: var(--wzl-space-4);\n color: var(--wzl-fg-muted);\n}\n\n._menu_c3637b > ._cell_c3637b:has(._actionMenu_c3637b) {\n align-self: stretch;\n}\n\n._menu_c3637b ._actions_c3637b:has(._actionMenu_c3637b) {\n flex-direction: column;\n align-items: stretch;\n}\n\n/* A marked `actions` button's wrapper: it lays out as the bare button would. */\n._unit_c3637b {\n display: flex;\n}\n\n/* A unit a reorder is dragging. Along a curve the item already fades by how much of it is on the run. */\n._cell_c3637b[data-bar-dragging] {\n opacity: calc(0.5 * var(--along-shown, 1));\n}\n\n._unit_c3637b[data-bar-dragging] {\n opacity: 0.5;\n}\n\n/* Where the dragged unit would land: a bar on that side of the unit it lands beside, drawn outside its box so nothing\n moves. Along a curve each item is turned to the run, so its own inline sides are the run's. */\n:is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n:is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b:dir(rtl) :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b:dir(rtl) :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b[data-orientation='vertical'] :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._bar_c3637b[data-orientation='vertical'] :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* The live region a reorder announces in: out of sight, still read. */\n._status_c3637b {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n/* In a vertical row a field's parts stack, each upright: its name over its box, a switch over its words. */\n._field_c3637b[data-orientation='vertical'] {\n flex-direction: column;\n gap: var(--wzl-space-1);\n /* Never squeezed by the bar, so it can tell it is too wide and turn. */\n inline-size: max-content;\n}\n\n/* A side bar's width is a control's, so its boxes keep to their contents. */\n._field_c3637b[data-orientation='vertical']:is(._number_c3637b, ._text_c3637b) input[type='text'] {\n padding-inline: var(--wzl-space-1);\n}\n\n._field_c3637b[data-orientation='vertical']._text_c3637b input[type='text'] {\n inline-size: 8ch;\n}\n\n/* A side bar is as wide as its widest field, so its boxes keep to their contents. */\n._field_c3637b[data-orientation='vertical']:is(._number_c3637b, ._text_c3637b) input[type='text'] {\n padding-inline: var(--wzl-space-1);\n}\n\n._field_c3637b[data-orientation='vertical']._text_c3637b input[type='text'] {\n inline-size: 8ch;\n}\n\n._field_c3637b[data-orientation='vertical'] input[type='range'] {\n writing-mode: vertical-lr;\n direction: rtl;\n}\n._trigger_672744 {\n display: inline-flex;\n flex: none;\n}\n\n._body_672744 {\n inline-size: 280px;\n}\n\n._title_672744 {\n margin: 0 0 var(--wzl-space-2);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n/* A field too wide for a side bar turns to read up it, its name before its control and each a control's height\n across. Its own attributes join the class so it outranks the stacked layout `.field[data-orientation]` gives. */\n._turned_a3e17d[data-orientation='vertical'][data-turned] {\n writing-mode: sideways-lr;\n flex-direction: row;\n}\n\n/* A control sets its height for a line; turned, that is its width across the bar, and its length is its words'. */\n._turned_a3e17d[data-turned] :is(button, div) {\n width: auto;\n height: auto;\n inline-size: auto;\n block-size: var(--wzl-field-h);\n}\n\n._turned_a3e17d[data-turned] [data-caret] {\n rotate: -90deg;\n}\n._mixed_e00c41 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n._word_e00c41 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.5;\n font-style: italic;\n}\n._entry_2ed30b {\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n._key_2ed30b {\n flex: 0 1 9rem;\n min-inline-size: 4rem;\n}\n\n._value_2ed30b {\n flex: 1 1 0;\n min-inline-size: 0;\n display: flex;\n justify-content: flex-end;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A bar laid along a track shape, as `useRunRow` lays any row. */\n._root_1d9e5b {\n column-gap: var(--bar-gap, var(--wzl-space-3));\n}\n\n._item_1d9e5b {\n}\n\n/* No line to stretch along, so a divider takes a line's height. */\n._root_1d9e5b > ._item_1d9e5b[role='separator'] {\n block-size: 1lh;\n margin-block: 0;\n}\n\n/* The lead names the bar and has nothing to press, unless it is the bar's handle. */\n._item_1d9e5b[data-bar-lead]:not([role='button']) {\n pointer-events: none;\n}\n._union_223b05 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}\n._mark_f9c7aa {\n display: inline-flex;\n flex: none;\n}\n\n/* The twisty's target is a line of text's height, and no taller; after a control, it keeps its own width. */\n._toggle_f9c7aa {\n --wzl-disclosure-target: var(--wzl-space-5);\n flex: none;\n}\n\n/* The marks and the toggle on a line of their own, over a control that brings its own chrome. */\n._lead_f9c7aa {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-1);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* What a row opens to, hung off the row it belongs to. */\n._body_f9c7aa,\n._branch_f9c7aa {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}\n\n._body_f9c7aa {\n margin-block-start: var(--wzl-space-2);\n margin-inline-start: var(--wzl-space-1);\n padding-inline-start: var(--wzl-space-4);\n border-inline-start: 2px solid var(--wzl-border-strong);\n}\n\n._branch_f9c7aa + ._branch_f9c7aa {\n margin-block-start: var(--wzl-space-2);\n}\n\n/* An outer option's name, over the inner selector's rows. */\n._branchName_f9c7aa {\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n}\n\n._branch_f9c7aa > :not(._branchName_f9c7aa) {\n margin-inline-start: var(--wzl-space-4);\n}\n/* A field's text is set at its row label's size. */\n._root_e21023 {\n display: flex;\n flex-direction: column;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n --wzl-field-font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n._header_e21023 {\n display: flex;\n align-items: baseline;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-4) 0;\n border-block-end: 1px solid var(--wzl-border);\n}\n\n._kind_e21023 {\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--wzl-font-size);\n}\n\n._breakdown_e21023 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.6;\n}\n\n._section_e21023 {\n padding: var(--wzl-space-3) 0 var(--wzl-space-4);\n border-block-end: 1px solid var(--wzl-border);\n}\n\n/* `as: 'panel'`: a section in a box of its own, a well (`FORM_FRAMES.box`) titled as the other sections are. */\n._sectionPanel_e21023,\n._objectPanel_e21023 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-3) var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n margin-block: var(--wzl-space-3);\n}\n\n._section_e21023:last-child {\n border-block-end: none;\n}\n\n._sectionTitle_e21023 {\n margin: 0 0 var(--wzl-space-3);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}\n\n/* As `Checkbox` dims the text beside a disabled box: the controls dim themselves. */\n._row_e21023[data-disabled] > ._rowLabel_e21023 {\n opacity: 0.5;\n}\n\n._row_e21023 {\n display: grid;\n grid-template-columns: 64px 1fr;\n gap: var(--wzl-space-3);\n align-items: center;\n margin-block-end: 5px;\n}\n\n._rowLabel_e21023 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n._rowControls_e21023 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-3);\n align-items: center;\n min-inline-size: 0;\n}\n\n/* Glyph plus its control, held together so the pair row wraps between\n fields rather than between a field and the icon naming it. */\n._namedField_e21023 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}\n\n._namedField_e21023 > svg {\n flex: none;\n opacity: 0.75;\n}\n\n._blockRow_e21023 {\n margin-block-end: 5px;\n}\n\n/* Fields paired into one row split it evenly, the way Position's x/y do. */\n._rowControls_e21023 > ._namedField_e21023 {\n flex: 1 1 0;\n}\n\n/* Except around a segmented bar, which is sized by its segments: an equal\n share of the row is wider than the buttons want to be. */\n._rowControls_e21023 > ._namedField_e21023:has(> ._toggle_e21023) {\n flex: 0 1 auto;\n}\n\n._rowControls_e21023 > * {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* A checkbox is its box, not a share of the row. Its own `flex: none` only ties with the rule above. */\n._rowControls_e21023 > input[type='checkbox'] {\n flex: none;\n}\n\n/* Bars sharing a row split the leftover between them, so the gap stays fixed\n and the width lands on the segments. A bar with the row to itself is sized\n by its segments instead — a third of 240px is a plate, not a button. */\n._rowControls_e21023 > ._toggle_e21023 {\n flex: 1 1 auto;\n}\n\n._rowControls_e21023 > ._toggle_e21023:only-child {\n flex: 0 1 auto;\n}\n\n/* A flag bar is sized by its glyphs rather than by a share of the row: an\n even split would fling one-letter segments to the margins. */\n._rowControls_e21023 > ._flagToggle_e21023 {\n flex: 0 0 auto;\n}\n\n._unrenderable_e21023 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.5;\n font-style: italic;\n}\n\n/* A `block` leaf that renders its own rows — an object leaf's fields. */\n._objectLeaf_e21023 {\n margin-block: var(--wzl-space-4) var(--wzl-space-2);\n}\n\n._objectLeaf_e21023 ._sectionTitle_e21023 {\n margin-block: 7px 5px;\n}\n\n/* Fields under a heading inside an object read as belonging to it. */\n._objectGroup_e21023 {\n padding-inline-start: var(--wzl-space-4);\n border-inline-start: 1px solid var(--wzl-border);\n margin-block-end: var(--wzl-space-2);\n}\n\n/* The slider's track; the row only says how it shares the space. */\n._slider_e21023 {\n flex: 1;\n}\n\n/* A section's title with the control of its heading leaf beside it. */\n._sectionHead_e21023 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-3);\n margin: 0 0 var(--wzl-space-3);\n}\n\n._sectionHead_e21023 > ._sectionTitle_e21023 {\n margin: 0;\n}\n\n._headingControl_e21023 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n._overlay_ca2b2e {\n position: fixed;\n inset: 0;\n background: var(--wzl-scrim);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: var(--wzl-z-modal);\n opacity: 0;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._overlay_ca2b2e[data-entering] {\n opacity: 0;\n}\n\n._overlay_ca2b2e[data-entering][data-rac] {\n opacity: 1;\n}\n\n._overlay_ca2b2e[data-exiting] {\n opacity: 0;\n}\n\n._overlay_ca2b2e[data-rac]:not([data-entering]):not([data-exiting]) {\n opacity: 1;\n}\n\n/* Inside a contained portal the container is the viewport: the scrim covers it, and the box fits it. */\n._overlay_ca2b2e[data-contained] {\n position: absolute;\n opacity: 1;\n}\n\n._overlay_ca2b2e[data-contained] > ._modal_ca2b2e {\n max-width: min(var(--wzl-dialog-max-width, 900px), calc(100% - 32px));\n max-height: calc(100% - 32px);\n}\n\n._modal_ca2b2e {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n box-shadow: var(--wzl-bevel-raised, 0 24px 64px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n max-width: min(var(--wzl-dialog-max-width, 900px), calc(100vw - 32px));\n max-height: calc(100vh - 32px);\n display: flex;\n flex-direction: column;\n outline: none;\n}\n\n/* BEGIN GENERATED stance rules: dialog — `npm run gen:stances`, do not edit. */\n\n._modal_ca2b2e {\n --wzl-tint: initial;\n}\n\n._modal_ca2b2e {\n --_s-surface: var(--wzl-surface);\n --_s-border-color: var(--wzl-border);\n --_s-border-style: solid;\n --_s-border-width: 1px;\n --_s-radius: var(--wzl-radius-md);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size);\n --_s-title-case: none;\n --_s-title-tracking: normal;\n --_s-title-color: var(--wzl-fg);\n}\n\n._modal_ca2b2e[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 1px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-clarify-title-case, none);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 1px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-aside-title-case, none);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 1px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-advanced-title-case, none);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 1px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-debug-title-case, none);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 1px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-preview-title-case, none);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 1px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-confirm-title-case, none);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 1px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-cancel-title-case, none);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._modal_ca2b2e[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._modal_ca2b2e[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._modal_ca2b2e {\n --_s-fill: var(--_s-surface);\n}\n\n._modal_ca2b2e[data-tint],\n._modal_ca2b2e[data-grade],\n._modal_ca2b2e[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._modal_ca2b2e[data-tint],\n._modal_ca2b2e[data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._modal_ca2b2e[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: dialog */\n\n/* In the page's flow, the box fits what holds it rather than the viewport. */\n._inline_ca2b2e {\n max-width: min(var(--wzl-dialog-max-width, 900px), 100%);\n max-height: 100%;\n min-height: 0;\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}\n\n._dialog_ca2b2e {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n outline: none;\n}\n\n._header_ca2b2e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n padding: var(--wzl-space-7) var(--wzl-space-8);\n border-bottom: 1px solid var(--wzl-border);\n flex: 0 0 auto;\n}\n\n._title_ca2b2e {\n flex: 1;\n margin: 0;\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n/* Defaults, not rules: `bodyClassName` exists to turn these off for content\n that scrolls itself, and a plain class would tie with it on specificity and\n be decided by stylesheet order. Every body declaration is here for that\n reason — `min-height` left in a plain rule silently beat a consumer class\n asking the body to hold a height, and the dialog resized itself around\n every pane. */\n:where(._body_ca2b2e) {\n flex: 1;\n min-height: 0;\n overflow: auto;\n padding: var(--wzl-space-8);\n}\n\n._footer_ca2b2e {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-6) var(--wzl-space-8);\n border-top: 1px solid var(--wzl-border);\n flex: 0 0 auto;\n}\n._along_0a495a {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n._label_73060e {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._char_73060e {\n white-space: pre;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._root_3eb26c {\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n display: flex;\n flex-direction: column;\n --be-gap: var(--wzl-space-1);\n gap: var(--be-gap);\n}\n\n/* Mid-drag the pointer runs ahead of what it drags, onto bands that would take its hover fill and cursor for a\n * frame; the session listens on the document, so nothing inside needs the pointer until the drag ends. */\n._root_3eb26c[data-dragging] * {\n pointer-events: none;\n}\n\n._root_3eb26c[data-dragging='seam'] {\n cursor: ew-resize;\n}\n\n._root_3eb26c[data-dragging='band'] {\n cursor: grabbing;\n}\n\n._label_3eb26c {\n font: var(--wzl-font-weight-medium) var(--wzl-font-size-sm) / var(--wzl-leading-tight) var(--wzl-font-ui);\n color: var(--wzl-fg-muted);\n}\n\n/* The ruler carries the ticks and is the split affordance: a click anywhere\n * on it divides the band underneath. The band strip below owns selection and\n * body drags, so neither gesture has to guess which the pointer meant. Ticks\n * reach down across the gap to the strip, but take no pointer, so the hit\n * area stays the ruler's own box. */\n._ruler_3eb26c {\n position: relative;\n height: var(--be-ruler-height, 22px);\n cursor: crosshair;\n}\n\n._tick_3eb26c {\n position: absolute;\n left: var(--be-at);\n bottom: calc(-1 * var(--be-gap));\n width: 1px;\n height: calc(6px + var(--be-gap));\n background: var(--wzl-fg-subtle);\n pointer-events: none;\n}\n\n._tickLabel_3eb26c {\n position: absolute;\n bottom: calc(9px + var(--be-gap));\n left: 50%;\n transform: translateX(-50%);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* Taller where a label stacks, so a fraction's numerator stays inside the strip. */\n._ruler_3eb26c:has(mfrac) {\n height: var(--be-ruler-height, 30px);\n}\n\n/* A label that would crowd a neighbor that outranks it gives way; its notch stays. */\n._tickLabel_3eb26c[data-crowded] {\n visibility: hidden;\n}\n\n/* The range's own ends: heavier than an ordinary tick, and labeled inward so\n * the text stays over the track rather than hanging off it. */\n._endTick_3eb26c {\n background: var(--wzl-fg-muted);\n}\n\n._endTick_3eb26c ._tickLabel_3eb26c {\n color: var(--wzl-fg);\n}\n\n/* Drawn just inside the track's right edge rather than one pixel past it. */\n._maxTick_3eb26c {\n margin-left: -1px;\n}\n\n._startLabel_3eb26c {\n transform: none;\n}\n\n._endLabel_3eb26c {\n left: auto;\n right: 0;\n transform: none;\n}\n\n._bands_3eb26c {\n position: relative;\n height: var(--be-band-height, 34px);\n}\n\n/* The box the strip runs in: the whole track, but for the stretch an end pulled inward vacated. */\n._stripBox_3eb26c {\n position: absolute;\n top: 0;\n bottom: 0;\n left: var(--be-from);\n width: calc(var(--be-to) - var(--be-from));\n}\n\n/* The bands are a `Slider`: its track is bare and as tall as the strip, its\n * regions are the bands, and its thumbs are the seams. Its direction is held\n * to ltr because the ruler, the ghosts and the edges are laid out ltr. */\n._strip_3eb26c {\n --rp-track-height: var(--be-band-height, 34px);\n direction: ltr;\n}\n\n._strip_3eb26c [data-slider-track] {\n background: none;\n border: none;\n box-shadow: none;\n cursor: default;\n}\n\n._strip_3eb26c [data-slider-track]::before {\n content: none;\n}\n\n._band_3eb26c {\n position: absolute;\n inset: 0;\n display: flex;\n unicode-bidi: plaintext;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n padding: 0 var(--wzl-space-2);\n margin: 0;\n background: var(--wzl-surface-raised);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: var(--wzl-font-weight-medium) var(--wzl-font-size-sm) / var(--wzl-leading-tight) var(--wzl-font-ui);\n cursor: grab;\n}\n\n._band_3eb26c:hover {\n background: var(--wzl-surface-hover);\n}\n\n._band_3eb26c:active {\n cursor: grabbing;\n}\n\n._band_3eb26c:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n/* First and last bands are pinned to `min` / `max`, so their bodies do not\n * translate — the cursor should not promise otherwise. */\n._pinned_3eb26c {\n cursor: default;\n}\n\n._pinned_3eb26c:active {\n cursor: default;\n}\n\n/* Accent mixed toward transparent rather than a flat token, so the tint\n reads over whatever surface the consumer's theme puts behind it. */\n._selected_3eb26c {\n background: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n border-color: var(--wzl-accent);\n box-shadow: inset 0 0 0 1px var(--wzl-accent);\n color: var(--wzl-fg);\n}\n\n/* A locked band holds its length when the range is rescaled. The hatch is\n layered over whatever fill the band already has, selected or not. */\n._band_3eb26c._locked_3eb26c,\n._band_3eb26c._locked_3eb26c:hover {\n background-image: repeating-linear-gradient(\n -45deg,\n color-mix(in srgb, var(--wzl-fg-muted) 28%, transparent) 0 1px,\n transparent 1px 6px\n );\n}\n\n/* Clipped along the track only: the line is one em tall, and `hidden` cuts descenders to it. */\n._bandContent_3eb26c {\n overflow-x: clip;\n overflow-y: visible;\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n}\n\n/* Where a dragged band or seam started, held until the drag ends. */\n._bandGhost_3eb26c {\n position: absolute;\n top: 0;\n bottom: 0;\n left: var(--be-from);\n width: calc(var(--be-to) - var(--be-from));\n border: 1px dashed var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n pointer-events: none;\n}\n\n._seamGhost_3eb26c {\n position: absolute;\n left: var(--be-at);\n top: -3px;\n bottom: -3px;\n width: 0;\n border-left: 1px dashed var(--wzl-border-strong);\n pointer-events: none;\n}\n\n/* Wider than the line it draws: a 1px seam is unhittable. A seam is one of\n * the strip's thumbs, whose own look is undone here, and a range edge. */\n._seam_3eb26c,\n._strip_3eb26c [role='slider'] {\n position: absolute;\n top: -3px;\n bottom: -3px;\n width: 11px;\n margin-left: -5px;\n z-index: 1;\n cursor: ew-resize;\n background: none;\n border: none;\n border-radius: 0;\n box-shadow: none;\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n}\n\n._seam_3eb26c {\n left: var(--be-at);\n}\n\n/* A thumb's slop is drawn in its `::before`; the seam needs no more than its own width. */\n._strip_3eb26c [role='slider']::before {\n content: none;\n}\n\n._seam_3eb26c::after,\n._strip_3eb26c [role='slider']::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 5px;\n width: 1px;\n background: var(--wzl-border-strong);\n}\n\n._seam_3eb26c:hover::after,\n._seam_3eb26c:focus-visible::after,\n._strip_3eb26c [role='slider']:hover::after,\n._strip_3eb26c [role='slider']:focus-visible::after {\n background: var(--wzl-accent);\n width: 2px;\n}\n\n._seam_3eb26c:focus-visible,\n._strip_3eb26c [role='slider']:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: 0;\n border-radius: var(--wzl-radius-sm);\n}\n\n/* An end of the whole range. Drawn heavier than a seam so it reads as the\n * boundary the bands live inside rather than one more division. */\n._edge_3eb26c::after {\n width: 2px;\n left: 4px;\n}\n\n._edge_3eb26c:hover::after,\n._edge_3eb26c:focus-visible::after {\n width: 3px;\n}\n._anchor_0d970d {\n position: fixed;\n pointer-events: none;\n}\n\n._popover_0d970d {\n /* RAC sets no z-index. */\n z-index: var(--wzl-z-popover);\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n box-shadow: var(--wzl-bevel-raised, 0 12px 40px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n max-width: 320px;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._popover_0d970d[data-entering],\n._popover_0d970d[data-exiting] {\n opacity: 0;\n}\n\n/* BEGIN GENERATED stance rules: callout — `npm run gen:stances`, do not edit. */\n\n._popover_0d970d {\n --wzl-tint: initial;\n}\n\n._popover_0d970d {\n --_s-surface: color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface));\n --_s-border-color: var(--wzl-accent-strong);\n --_s-border-style: solid;\n --_s-border-width: 1px;\n --_s-radius: var(--wzl-radius-md);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size);\n --_s-title-case: none;\n --_s-title-tracking: normal;\n --_s-title-color: var(--wzl-fg);\n}\n\n._popover_0d970d[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 1px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-clarify-title-case, none);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 1px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-aside-title-case, none);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 1px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-advanced-title-case, none);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 1px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-debug-title-case, none);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 1px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-preview-title-case, none);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 1px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-confirm-title-case, none);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 1px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-cancel-title-case, none);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._popover_0d970d[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._popover_0d970d[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._popover_0d970d {\n --_s-fill: var(--_s-surface);\n}\n\n._popover_0d970d[data-tint],\n._popover_0d970d[data-grade],\n._popover_0d970d[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._popover_0d970d[data-tint],\n._popover_0d970d[data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._popover_0d970d[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: callout */\n\n._arrow_0d970d svg {\n display: block;\n fill: var(--_s-fill);\n stroke: var(--_s-border-color);\n stroke-width: 1;\n}\n\n._arrow_0d970d[data-placement='bottom'] svg {\n transform: rotate(180deg);\n}\n\n._arrow_0d970d[data-placement='left'] svg {\n transform: rotate(-90deg);\n}\n\n._arrow_0d970d[data-placement='right'] svg {\n transform: rotate(90deg);\n}\n\n._dialog_0d970d {\n outline: none;\n max-height: inherit;\n display: flex;\n flex-direction: column;\n}\n\n._header_0d970d {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-5) var(--wzl-space-6) 0;\n}\n\n._title_0d970d {\n margin: 0;\n flex: 1;\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n._body_0d970d {\n padding: var(--wzl-space-4) var(--wzl-space-6) var(--wzl-space-5);\n font-size: var(--wzl-font-size);\n line-height: 1.4;\n overflow-y: auto;\n}\n\n._footer_0d970d {\n display: flex;\n justify-content: flex-end;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-6) var(--wzl-space-5);\n}\n/* Horizontal strip above the workspace for contextual tool options.\n Fixed height, so the controls inside never change the row's size.\n\n Overflow: when controls exceed the available width, `.controls`\n scrolls horizontally rather than wrapping (which would grow the row\n and defeat the fixed height above) or clipping (which\n would hide controls with no way to reach them). A flyout/long-press\n affordance was considered and rejected — grouped, directly visible\n layouts are preferred in this repo. */\n\n._root_fb8dad {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n height: var(--wzl-tb-height);\n padding: 0 var(--wzl-space-4);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n box-shadow: var(--wzl-bevel-raised, none);\n color: var(--wzl-fg);\n overflow: hidden;\n}\n\n._label_fb8dad {\n flex: 0 0 auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n._controls_fb8dad {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: thin;\n}\n\n/* Firefox gets a thin scrollbar for free via `scrollbar-width` above.\n * Chromium/WebKit need it spelled out — on a classic (non-overlay)\n * scrollbar theme (default on Windows Chrome/Edge), an unstyled\n * horizontal scrollbar is ~15-17px tall and renders *inside* this box,\n * clipping/off-centering the row's controls. That would reintroduce the\n * exact height instability the scroll-over-wrap overflow choice above\n * exists to avoid — just at the row's inner edge instead of its outer\n * one. Pin it thin and out of the way instead. */\n._controls_fb8dad::-webkit-scrollbar {\n height: 4px;\n}\n._controls_fb8dad::-webkit-scrollbar-track {\n background: transparent;\n}\n._controls_fb8dad::-webkit-scrollbar-thumb {\n background: var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n/* The label a `Checkbox` or a `Switch` wraps round its control and its text. */._toggleLabel_5ff28a {\n /* Holds the Switch's react-aria hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}\n/* The box itself is `checkbox.module.css`, shared with the property rows; this\n is only the label around it. */\n._checkbox_b600bc {\n}\n\n/* The box dims itself on :disabled, so only the text is dimmed here. */\n._checkbox_b600bc[data-disabled] {\n cursor: not-allowed;\n}\n\n._checkbox_b600bc[data-disabled] ._label_b600bc {\n opacity: 0.5;\n}\n\n._label_b600bc {\n line-height: 1.2;\n}\n._block_e42b36 {\n margin: 0;\n overflow: auto;\n font-family: var(--wzl-font-mono);\n color: var(--wzl-fg);\n tab-size: 2;\n}\n\n._block_e42b36:focus-visible {\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: -1px;\n}\n\n._block_e42b36 code {\n display: grid;\n font: inherit;\n}\n\n._line_e42b36 {\n display: block;\n white-space: pre;\n}\n\n._numbered_e42b36 ._line_e42b36 {\n display: grid;\n grid-template-columns: var(--code-gutter) 1fr;\n column-gap: 1.5ch;\n}\n\n._lineNo_e42b36 {\n color: var(--wzl-fg-muted);\n text-align: end;\n user-select: none;\n}\n\n/* prism's token classes, which it sets on each span. */\n._block_e42b36 .token.keyword,\n._block_e42b36 .token.builtin,\n._block_e42b36 .token.operator.arrow {\n color: var(--wzl-code-keyword);\n}\n\n._block_e42b36 .token.string,\n._block_e42b36 .token.char,\n._block_e42b36 .token.template-string,\n._block_e42b36 .token.attr-value,\n._block_e42b36 .token.regex {\n color: var(--wzl-code-string);\n}\n\n._block_e42b36 .token.number {\n color: var(--wzl-code-number);\n}\n\n._block_e42b36 .token.boolean,\n._block_e42b36 .token.constant,\n._block_e42b36 .token.null,\n._block_e42b36 .token.nil {\n color: var(--wzl-code-constant);\n}\n\n._block_e42b36 .token.property,\n._block_e42b36 .token.attr-name,\n._block_e42b36 .token.tag {\n color: var(--wzl-code-property);\n}\n\n._block_e42b36 .token.function,\n._block_e42b36 .token.class-name,\n._block_e42b36 .token.maybe-class-name {\n color: var(--wzl-code-name);\n}\n\n._block_e42b36 .token.punctuation,\n._block_e42b36 .token.comment {\n color: var(--wzl-fg-muted);\n}\n\n._block_e42b36 .token.comment {\n font-style: italic;\n}\n/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n\n._frame_45a197 {\n display: flex;\n align-items: stretch;\n overflow: hidden;\n}\n\n._frame_45a197 input {\n padding: 0 var(--wzl-field-pad-x);\n}\n\n/* A request is out: the rows on screen are the previous query's, so mark them\n stale rather than clearing the list out from under the arrow keys. */\n._frame_45a197:has(input[aria-busy='true'])::after {\n content: '';\n align-self: center;\n flex: none;\n width: 10px;\n height: 10px;\n margin-right: var(--wzl-space-2);\n border: 1.5px solid var(--wzl-fg-subtle);\n border-top-color: transparent;\n border-radius: 50%;\n animation: _spin_45a197 700ms linear infinite;\n}\n\n@keyframes _spin_45a197 {\n to {\n transform: rotate(1turn);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._frame_45a197:has(input[aria-busy='true'])::after {\n animation: none;\n border-top-color: var(--wzl-fg-subtle);\n opacity: 0.5;\n }\n}\n\n._openButton_45a197 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-icon-button-size);\n background: transparent;\n border: none;\n border-left: 1px solid var(--wzl-border);\n color: var(--wzl-fg-muted);\n cursor: pointer;\n padding: 0;\n}\n\n._openButton_45a197[data-hovered]:not([data-disabled]) {\n color: var(--wzl-fg);\n}\n\n._openButton_45a197 svg {\n width: 10px;\n height: 10px;\n}\n\n._popover_45a197 {\n min-width: var(--trigger-width);\n outline: none;\n}\n\n._empty_45a197 {\n padding: var(--wzl-space-3) var(--wzl-space-4);\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-sm);\n}\n\n._error_45a197 {\n padding: var(--wzl-space-3) var(--wzl-space-4);\n color: var(--wzl-danger);\n font-size: var(--wzl-font-size-sm);\n}\n\n/* `width='fit'`: a hidden stack of every option label shares the input's grid\n cell, so the field is wide enough for whichever option is chosen and takes\n no more of the row than that. */\n._fit_45a197 ._frame_45a197 {\n display: grid;\n grid-template-columns: auto auto;\n width: fit-content;\n max-width: 100%;\n}\n\n/* `width: 0` keeps the input's 20-character intrinsic width out of the track\n sizing — the sizer is what the column measures — and `min-width` then\n stretches it back across whatever that came to. */\n._fit_45a197 ._frame_45a197 input {\n grid-area: 1 / 1;\n width: 0;\n min-width: 100%;\n}\n\n._fit_45a197 ._sizer_45a197 {\n grid-area: 1 / 1;\n}\n\n._fit_45a197 ._openButton_45a197 {\n grid-area: 1 / 2;\n}\n\n._sizer_45a197 {\n padding: 0 var(--wzl-field-pad-x);\n}\n/* A fixed height, so the centered box does not jump as filtering shrinks the list. */\n._palette_b74f0e {\n width: 440px;\n max-width: calc(100vw - 32px);\n height: min(70vh, 520px);\n}\n\n._body_b74f0e {\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n padding: 0;\n}\n\n._input_b74f0e {\n background: var(--wzl-surface-sunken);\n border: none;\n border-bottom: 1px solid var(--wzl-border);\n color: var(--wzl-fg);\n font-family: inherit;\n font-size: var(--wzl-font-size-md);\n padding: var(--wzl-space-6) var(--wzl-space-7);\n outline: none;\n}\n._input_b74f0e::placeholder {\n color: var(--wzl-fg-muted);\n}\n._input_b74f0e:focus {\n border-bottom-color: var(--wzl-accent);\n}\n\n._list_b74f0e {\n list-style: none;\n margin: 0;\n padding: var(--wzl-space-2);\n overflow-y: auto;\n flex: 1 1 auto;\n}\n\n._row_b74f0e {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-6);\n padding: 7px var(--wzl-space-5);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg);\n cursor: pointer;\n}\n._rowActive_b74f0e {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n._rowDisabled_b74f0e {\n opacity: 0.4;\n cursor: default;\n}\n\n._label_b74f0e {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._tag_b74f0e {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n flex-shrink: 0;\n}\n\n._reason_b74f0e {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n flex-shrink: 0;\n}\n\n._shortcuts_b74f0e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex-shrink: 0;\n}\n\n._empty_b74f0e {\n padding: 18px var(--wzl-space-7);\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg-muted);\n text-align: center;\n}\n\n._selection_b74f0e {\n margin-inline-end: auto;\n}\n\n._selection_b74f0e,\n._hint_b74f0e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n._root_1cefc4 {\n /* Component-local vars layered over the theme tokens. Each var resolves\n * to a semantic token from @weasel-js/theme; consumers override\n * either the curve-* var (component scope) or the wzl-* token (app\n * scope) without touching this file.\n *\n * Background / grid / axis tokens live on Plot2D now (this component\n * composes Plot2D, which paints the background and chrome). */\n --curve-line: var(--wzl-curve-color);\n --curve-line-width: var(--wzl-curve-width);\n --curve-fill: color-mix(in srgb, var(--curve-line) 30%, transparent);\n --curve-anchor-fill: var(--wzl-surface);\n --curve-anchor-stroke: var(--curve-line);\n --curve-anchor-active-fill: var(--curve-line);\n --curve-pinned-fill: var(--wzl-fg-subtle);\n}\n\n._fill_1cefc4 {\n fill: var(--curve-fill);\n stroke: none;\n pointer-events: none;\n}\n\n._curve_1cefc4 {\n stroke: var(--curve-line);\n stroke-width: var(--curve-line-width);\n fill: none;\n pointer-events: stroke;\n}\n\n._anchor_1cefc4 {\n fill: var(--curve-anchor-fill);\n stroke: var(--curve-anchor-stroke);\n stroke-width: 1.5;\n cursor: grab;\n}\n\n._anchor_1cefc4:hover {\n fill: var(--curve-anchor-active-fill);\n}\n\n._anchor_1cefc4._active_1cefc4 {\n fill: var(--curve-anchor-active-fill);\n cursor: grabbing;\n}\n\n._anchor_1cefc4._pinned_1cefc4 {\n fill: var(--curve-pinned-fill);\n cursor: default;\n}\n\n/* Caller-set locked anchors share the gray pinned fill but signal\n * \"not interactive at all\" via the not-allowed cursor. */\n._anchor_1cefc4._locked_1cefc4 {\n cursor: not-allowed;\n}\n\n/* Endpoint vertices render as diamonds (rotated squares) instead of\n * circles, so they read as a different category of handle. The shape\n * is enforced inline via SVG <rect transform>; this class only adds\n * the hover/active styling. */\n._endpoint_1cefc4 {\n /* No fill / stroke overrides — endpoint visuals reuse .anchor /\n * .anchor.pinned / .anchor.active styling. The class exists as a\n * marker for future per-endpoint styling needs. */\n}\n\n/* Focus is drawn on the mark itself: an outline on an SVG shape rings its\n bounding box, which the nearest scroll container clips. */\n._anchor_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-width: 2;\n}\n\n/* ── keyframe layer ─────────────────────────────────────────────────── */\n\n._keyframe_1cefc4 {\n fill: var(--curve-key-fill, var(--wzl-fg-muted));\n cursor: grab;\n}\n\n._keyframe_1cefc4[aria-current='true'] { fill: var(--curve-selected, var(--wzl-accent-strong)); }\n._keyframe_1cefc4:focus-visible,\n._handle_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-width: 2;\n}\n\n._segmentTarget_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-opacity: 0.5;\n}\n\n/* The committed key holds while its ghost tracks the pointer, so a drag\n reads as a move from somewhere to somewhere. */\n._keyframe_1cefc4[data-dragging='true'] { opacity: 0.4; }\n\n._keyframeGhost_1cefc4 {\n fill: var(--curve-selected-soft, var(--wzl-accent-soft));\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n stroke-dasharray: 2 2;\n pointer-events: none;\n}\n\n._segmentBand_1cefc4 {\n fill: var(--curve-selected-soft, var(--wzl-accent-soft));\n pointer-events: none;\n}\n\n/* Carries focus and a name for each segment; hit testing is geometric. */\n._segmentTarget_1cefc4 {\n fill: none;\n stroke: transparent;\n stroke-width: 8;\n pointer-events: none;\n}\n\n._handle_1cefc4 {\n fill: var(--wzl-surface);\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n cursor: grab;\n}\n\n._handleStem_1cefc4 {\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n pointer-events: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._root_b8a5db {\n /* Component-local vars layered over theme tokens. Consumers override\n * either the plot-* var (component scope) or the wzl-* token (app\n * scope). */\n --plot-bg: var(--wzl-surface-sunken);\n --plot-grid: var(--wzl-line);\n /* Axes get full foreground contrast — they're the plot frame, the\n * most prominent structural element after caller-rendered content. */\n --plot-axis: var(--wzl-fg);\n --plot-tick: var(--wzl-line-subtle);\n --plot-tick-label: var(--wzl-fg-muted);\n /* Knocks the tick line out from behind an inside label. */\n --plot-tick-label-halo: var(--plot-bg);\n\n display: block;\n /* Caller-rendered marks at the very edge (e.g. CurveEditor anchors)\n * extend past the SVG box by their radius — let them paint over the\n * host page instead of being half-clipped. */\n overflow: visible;\n background: var(--plot-bg);\n user-select: none;\n touch-action: none;\n outline: none;\n}\n\n/* Keyboard-only focus ring. Caller opts in via `tabIndex`. */\n._root_b8a5db:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._grid_b8a5db {\n stroke: var(--plot-grid);\n stroke-width: 1;\n fill: none;\n}\n\n._axis_b8a5db {\n stroke: var(--plot-axis);\n stroke-width: var(--wzl-line-width);\n fill: none;\n}\n\n._tick_b8a5db {\n stroke: var(--plot-tick);\n stroke-width: 1;\n fill: none;\n}\n\n._tickLabels_b8a5db { pointer-events: none; }\n\n._tickLabel_b8a5db {\n fill: var(--plot-tick-label);\n font-size: var(--wzl-font-size-xs);\n}\n\n._tickLabel_b8a5db[data-placement='inside'] {\n stroke: var(--plot-tick-label-halo);\n stroke-width: 3px;\n stroke-linejoin: round;\n paint-order: stroke;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._grid_807591 {\n position: relative;\n width: 100%;\n}\n\n._table_807591 {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--wzl-font-size-sm);\n /* A select in a cell is one of the row's values, so it is set at the row's size. */\n --wzl-select-font-size: var(--wzl-font-size-sm);\n}\n\n._table_807591 th,\n._table_807591 td {\n text-align: left;\n padding: 3px var(--wzl-space-3);\n vertical-align: middle;\n}\n._numeric_807591 {\n}\n._table_807591 ._numeric_807591 {\n text-align: end;\n}\n._table_807591 tbody tr {\n border-bottom: 1px solid var(--wzl-line-subtle);\n}\n\n._table_807591 th {\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n position: sticky;\n top: 0;\n background: var(--wzl-surface);\n z-index: 1;\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._sortButton_807591 {\n all: unset;\n cursor: pointer;\n user-select: none;\n display: block;\n width: 100%;\n}\n._sortButton_807591:hover { color: var(--wzl-fg); }\n._sortButton_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n._sortActive_807591 { color: var(--wzl-fg); }\n\n._empty_807591 {\n color: var(--wzl-fg-muted);\n font-style: italic;\n padding: var(--wzl-space-4) 0;\n text-align: center;\n}\n\n/* Drag-handle column. */\n._handleCol_807591 { width: 14px; }\n._handleCell_807591 { width: 14px; }\n/* A cell's height is a minimum, and naming one is what lets the button's 100% resolve. */\n._table_807591 ._handleCell_807591 { padding: 0; height: 1px; }\n._handle_807591 {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 3px var(--wzl-space-3);\n color: var(--wzl-fg-muted);\n}\n._handle_807591:hover { color: var(--wzl-fg); }\n._handle_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._dragging_807591 { opacity: 0.4; }\n\n._dropBefore_807591 > td { box-shadow: inset 0 2px 0 0 var(--wzl-accent); }\n._dropAfter_807591 > td { box-shadow: inset 0 -2px 0 0 var(--wzl-accent); }\n\n/* Row activation (`onRowClick`). */\n._clickable_807591 { cursor: pointer; }\n._clickable_807591:hover > td { background: var(--wzl-surface-hover); }\n._clickable_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* Disclosure column and the detail row it opens. */\n._detailCol_807591,\n._detailCell_807591 {\n width: var(--wzl-control-h-sm);\n padding-inline: 0;\n text-align: center;\n}\n._table_807591 ._detailCell_807591 { padding-block: 0; }\n._detailRow_807591 > td {\n padding: var(--wzl-space-2) var(--wzl-space-3) var(--wzl-space-3);\n background: var(--wzl-surface-sunken);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._list_2197df {\n display: grid;\n grid-template-columns: var(--wzl-params-label-width, auto) minmax(0, 1fr);\n column-gap: var(--wzl-space-6);\n row-gap: var(--wzl-space-1);\n margin: 0;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n._list_2197df[data-layout='block'] {\n grid-template-columns: minmax(0, 1fr);\n}\n\n._row_2197df {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n /* A label meets the first line of its value, however many lines that runs to. */\n align-items: baseline;\n}\n\n._rowLabel_2197df {\n display: flex;\n align-items: baseline;\n justify-content: var(--wzl-params-label-align, start);\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n._value_2197df {\n margin: 0;\n min-width: 0;\n /* The floor a property row stands on, so the two share a rhythm side by side. */\n min-height: var(--wzl-prop-row-h, var(--wzl-field-h, var(--wzl-control-h)));\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-2);\n overflow-wrap: anywhere;\n color: var(--wzl-fg);\n}\n\n._value_2197df[data-empty] {\n color: var(--wzl-fg-muted);\n}\n\n._list_2197df[data-values='figures'] {\n grid-template-columns: var(--wzl-params-label-width, auto) minmax(min-content, 1fr);\n}\n\n/* Set by the row from its own `values` or its list's. Declared after `.value`,\n which it overrides at equal specificity. */\n._figures_2197df {\n justify-content: flex-end;\n text-align: end;\n /* On the cell, not the track, so ch measures the figures' own face. */\n min-width: var(--wzl-detail-figure-min-width, 8ch);\n white-space: pre;\n overflow-wrap: normal;\n}\n\n._dot_2197df {\n flex: none;\n width: 0.5em;\n height: 0.5em;\n border-radius: 50%;\n background: currentColor;\n}\n\n._row_2197df[data-grade] ._dot_2197df { background: var(--wzl-grade); }\n\n._title_2197df {\n margin: 0 0 var(--wzl-space-3);\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n._root_7d5675 {\n position: relative;\n /* Read by Slider's track and stop marks. Detents run the full height of the\n * track so they read as notches rather than as tally marks beside it. */\n --rp-tick-inset: 0;\n --rp-tick-width: 1px;\n --rp-tick-color: var(--wzl-border-strong);\n --rp-track-cursor: pointer;\n font-family: var(--wzl-font-ui);\n}\n\n._slider_7d5675 {\n width: 100%;\n}\n\n._ghost_e01963 {\n position: fixed;\n z-index: var(--wzl-z-drag);\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding: 1px;\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n box-shadow: var(--wzl-bevel-raised, 0 4px 12px var(--wzl-shadow));\n opacity: 0.85;\n pointer-events: none;\n}\n\n._centered_e01963 {\n translate: -50% -50%;\n}\n\n._bare_e01963 {\n padding: 0;\n border-radius: 0;\n background: none;\n box-shadow: none;\n}\n._row_c23e0f {\n display: inline-flex;\n align-items: stretch;\n gap: var(--powerline-gap, 0.2em);\n}\n\n._matrix_c23e0f {\n display: grid;\n gap: var(--wzl-space-6);\n}\n\n/* Reset Badge's opinionated text defaults — Powerline segments should pick up\n * the surrounding text style instead of forcing uppercase / 10px / extra\n * tracking. Consumers can still override via className on Powerline. */\n._segment_c23e0f {\n font-size: inherit;\n text-transform: none;\n letter-spacing: normal;\n}\n._muted_24bbd6 { opacity: 0.55; }\n/* A gesture segment baseline-aligns its text; a KeyCap inside it has its own box and sits off-center without this. */\n._keyCap_24bbd6 { align-self: center; }\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._diagram_b112e8 {\n display: grid;\n gap: var(--wzl-space-3);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}\n\n._input_b112e8 {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-2) var(--wzl-space-4);\n margin: 0;\n color: var(--wzl-fg-muted);\n}\n._field_b112e8 { display: flex; align-items: baseline; gap: var(--wzl-space-1); }\n._field_b112e8 dt { margin: 0; }\n._field_b112e8 dd {\n margin: 0;\n color: var(--wzl-fg);\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._stage_b112e8 {\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n background: var(--wzl-surface);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n /* Ids and rules do not wrap mid-word; a narrow host scrolls the stage instead. */\n overflow-x: auto;\n}\n._stage_b112e8[data-filter] { background: var(--wzl-surface-sunken); }\n\n._stageTitle_b112e8 {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-2);\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n._stageTitle_b112e8 + ._table_b112e8 { margin-top: var(--wzl-space-2); }\n._note_b112e8 { color: var(--wzl-fg-muted); font-weight: var(--wzl-font-weight-medium); }\n\n._table_b112e8 { width: 100%; border-collapse: collapse; }\n._table_b112e8 th {\n text-align: start;\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n}\n._table_b112e8 td {\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-top: 1px solid var(--wzl-border);\n vertical-align: top;\n white-space: nowrap;\n}\n\n._table_b112e8 code { white-space: nowrap; overflow-wrap: normal; }\n\n._routes_b112e8 { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--wzl-space-1); }\n\n._num_b112e8 {\n text-align: end;\n white-space: nowrap;\n}\n\n._srOnly_b112e8 {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n._muted_b112e8 { color: var(--wzl-fg-muted); }\n\n._walk_b112e8 { color: var(--wzl-fg-muted); }\n._walk_b112e8[data-walk='fired'],\n._walk_b112e8[data-walk='would-fire'] { color: var(--wzl-success); font-weight: var(--wzl-font-weight-bold); }\n._walk_b112e8[data-walk='declined'],\n._walk_b112e8[data-walk='empty-handle'],\n._walk_b112e8[data-walk='misbound'],\n._walk_b112e8[data-walk='no-such-action'] { color: var(--wzl-fg); }\n\n._winner_b112e8 td { background: color-mix(in srgb, var(--wzl-success) 12%, transparent); }\n._winner_b112e8 td:first-child { box-shadow: inset 3px 0 var(--wzl-success); }\n\n._nothing_b112e8 { margin: 0; color: var(--wzl-fg-muted); }\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._root_644963 {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* The two chips overlap on a diagonal: fill up-left, behind; stroke\n down-right, in front, so the fill shows through the stroke's hole. */\n._pair_644963 {\n --chip: 32px;\n --offset: 12px;\n --ring: 8px;\n position: relative;\n inline-size: calc(var(--chip) + var(--offset));\n block-size: calc(var(--chip) + var(--offset));\n}\n\n._chip_644963 {\n position: absolute;\n inline-size: var(--chip);\n block-size: var(--chip);\n box-sizing: border-box;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._chip_644963[data-slot='fill'] {\n inset-block-start: 0;\n inset-inline-start: 0;\n}\n\n._chip_644963[data-slot='stroke'] {\n inset-block-end: 0;\n inset-inline-end: 0;\n}\n\n._chip_644963[data-focused] {\n border-color: var(--wzl-fg);\n box-shadow: 0 0 0 1px var(--wzl-fg);\n}\n\n._chip_644963:has(._input_644963:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* The paint sits over the checker, so a translucent one reads as such. */\n._well_644963 {\n position: absolute;\n inset: 0;\n overflow: hidden;\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n background: var(--wzl-checker-layer);\n}\n\n/* The stroke well is a ring: the mask subtracts the content box from the\n padding box, so whatever is behind the chip shows through its hole. */\n._chip_644963[data-slot='stroke'] ._well_644963 {\n box-sizing: border-box;\n padding: var(--ring);\n mask:\n linear-gradient(#000, #000) padding-box,\n linear-gradient(#000, #000) content-box;\n mask-composite: exclude;\n}\n\n/* The hole's edge, so a focused stroke reads as focused on both sides. */\n._chip_644963[data-slot='stroke'][data-focused]::before {\n content: '';\n position: absolute;\n inset: calc(var(--ring) - var(--wzl-border-w));\n border: 1px solid var(--wzl-fg);\n border-radius: 0;\n pointer-events: none;\n}\n\n._paint_644963 {\n position: absolute;\n inset: 0;\n}\n\n/* No paint: the surface crossed by the danger diagonal. */\n._chip_644963[data-none] ._well_644963 {\n background:\n linear-gradient(\n 45deg,\n transparent calc(50% - 1px),\n var(--wzl-danger) calc(50% - 1px),\n var(--wzl-danger) calc(50% + 1px),\n transparent calc(50% + 1px)\n ),\n var(--wzl-surface);\n}\n\n/* The native picker covers its chip, invisible: it takes the click and the\n keyboard focus, and the well draws the paint. */\n._input_644963 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n margin: 0;\n padding: 0;\n border: 0;\n opacity: 0;\n cursor: pointer;\n}\n\n._buttons_644963 {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--wzl-space-1);\n}\n/* One height and one inset for every sidebar list. A panel stacking two of\n them has to have their rows line up, which is what a private copy of this\n file per list stopped happening. */\n._list_0838d3 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n line-height: var(--wzl-leading-snug);\n user-select: none;\n -webkit-user-select: none;\n position: relative;\n width: 100%;\n}\n\n._row_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-4);\n height: var(--wzl-control-h);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n background: transparent;\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n overflow: hidden;\n white-space: nowrap;\n}\n\n._row_0838d3:hover {\n background: var(--wzl-surface-hover);\n}\n\n._row_0838d3:focus-visible,\n._row_0838d3:has(> ._cell_0838d3:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* A grid row's label cell takes the row's focus; the ring is drawn on the row\n so it looks the same as a listbox option's. */\n._cell_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex: 1 1 auto;\n min-width: 0;\n align-self: stretch;\n outline: none;\n}\n\n._trailing_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n flex: none;\n}\n\n._label_0838d3 {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n._selected_0838d3,\n._selected_0838d3:hover {\n background: var(--wzl-border);\n color: var(--wzl-fg);\n}\n\n/* Drag feedback. The seam is an outer shadow of the row beside it: it needs no\n measured offset, adds no element for a drag to count as a row, and escapes\n the row's own `overflow: hidden`. */\n._row_0838d3[data-drop='before'] { box-shadow: 0 -2px 0 0 var(--wzl-accent); }\n._row_0838d3[data-drop='after'] { box-shadow: 0 2px 0 0 var(--wzl-accent); }\n._row_0838d3[data-dragging] { opacity: 0.4; }\n\n/* Present but not in effect. */\n._muted_0838d3 {\n color: var(--wzl-fg-subtle);\n}\n\n._empty_0838d3 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A Jog laid along a track shape; `useRunRow` places its parts. */\n._root_a908ba {\n column-gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n/* A row of transport controls on the panel surface, sized to sit in a bar\n * beside a title or a caption rather than to own a strip of its own. */\n\n._jog_1060cb {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n}\n\n._scrub_1060cb {\n flex: 1 1 auto;\n min-width: 80px;\n margin-inline: var(--wzl-space-2);\n}\n\n._readout_1060cb {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n white-space: pre;\n}\n\n._caption_1060cb {\n overflow: hidden;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n._hint_a7bd5f {\n display: inline-flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-3) var(--wzl-space-5);\n border-radius: var(--wzl-radius-md);\n background: color-mix(in srgb, var(--wzl-surface-raised) 88%, transparent);\n backdrop-filter: blur(var(--wzl-glass-blur));\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-sm);\n}\n\n._title_a7bd5f {\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._rows_a7bd5f {\n display: grid;\n grid-template-columns: auto 1fr;\n gap: var(--wzl-space-1) var(--wzl-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n._row_a7bd5f {\n display: contents;\n}\n\n._keys_a7bd5f,\n._gesture_a7bd5f {\n justify-self: end;\n}\n\n._gesture_a7bd5f {\n color: var(--wzl-fg-muted);\n}\n\n._label_a7bd5f {\n white-space: nowrap;\n}\n._panel_5920db {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 260px;\n padding: var(--wzl-space-4) var(--wzl-space-5);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n}\n\n._header_5920db {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-3);\n}\n\n._title_5920db {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n._field_53f0ad {\n display: grid;\n gap: var(--wzl-space-3);\n grid-column: 1 / -1;\n box-sizing: border-box;\n}\n\n._field_53f0ad * {\n box-sizing: border-box;\n}\n\n._plot_53f0ad {\n position: relative;\n width: 100%;\n}\n\n._marks_53f0ad {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._actions_53f0ad {\n display: flex;\n gap: var(--wzl-space-3);\n justify-self: start;\n}\n\n._action_53f0ad {\n background: transparent;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n padding: var(--wzl-space-2) var(--wzl-space-5);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n cursor: pointer;\n}\n\n._action_53f0ad:hover {\n background: var(--wzl-surface-raised);\n}\n/* Row box, hover and selection are `ItemList`'s, so a layer list and the\n history list stacked under it agree. What is here is only what a layer has. */\n._root_a78043,\n._root_a78043 * {\n box-sizing: border-box;\n}\n\n._root_a78043 {\n display: grid;\n gap: var(--wzl-space-4);\n}\n\n._head_a78043 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-4);\n}\n\n._title_a78043 {\n margin: 0;\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-font-size-lg);\n color: var(--wzl-fg);\n}\n\n._palette_a78043 {\n display: flex;\n gap: var(--wzl-space-2);\n}\n\n._add_a78043 {\n font: inherit;\n height: var(--wzl-control-h);\n background: transparent;\n border: 1px dashed var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-1) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n cursor: pointer;\n}\n\n._add_a78043:hover {\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n}\n\n._level_a78043 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n position: relative;\n width: 100%;\n}\n\n/* A level of cards is a `PropertyList`, so the controls in each body take the\n panel's density; its rows are spaced like cards rather than lines. */\n._level_a78043._cards_a78043 {\n display: grid;\n row-gap: var(--wzl-space-3);\n}\n\n._entry_a78043 {\n min-width: 0;\n}\n\n/* A run of rows among cards is a grid to assistive tech and no box: its rows stay the level's own items. */\n._run_a78043 {\n display: contents;\n}\n\n/* `PropertyList` spans its own children across its two columns; a run's rows are one step further in. */\n._run_a78043 > ._entry_a78043 {\n grid-column: 1 / -1;\n}\n\n._row_a78043 {\n user-select: none;\n}\n\n/* The cell a row must own. It adds no box: the row lays its content out. */\n._cell_a78043 {\n display: contents;\n}\n\n/* A child's twisty sits under its parent's grip. */\n._children_a78043 {\n padding-left: calc(var(--wzl-disclosure-target, var(--wzl-control-h-sm)) + var(--wzl-space-4));\n}\n\n/* The layer the drag picked up holds its place, faded, while its ghost follows the pointer. */\n._dragging_a78043 {\n opacity: 0.5;\n}\n\n/* Where the drop would land: a line on the edge of the layer it would land against. */\n._dropBefore_a78043 {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._dropAfter_a78043 {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* One width for the grip and the lock, so a fixed row's label lines up. */\n._grip_a78043,\n._lock_a78043 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n min-width: 13px;\n color: var(--wzl-fg-muted);\n}\n\n._row_a78043:not([data-fixed]):not([data-locked]) {\n cursor: grab;\n}\n\n._row_a78043:not([data-fixed]):not([data-locked]):active {\n cursor: grabbing;\n}\n\n._stop_a78043 {\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n/* Holds the twisty column open on rows with nothing to expand, so labels line up down a level. */\n._twistyGap_a78043 {\n flex: 0 0 auto;\n width: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n}\n\n/* Sized, so the empty column a fixed row keeps is the checkbox's width. */\n._check_a78043 {\n flex: 0 0 auto;\n width: 13px;\n height: 13px;\n margin: 0;\n accent-color: var(--wzl-accent);\n}\n\n._handle_a78043 {\n padding: var(--wzl-space-1) var(--wzl-space-2);\n min-width: var(--wzl-icon-button-size);\n height: var(--wzl-icon-button-size);\n border-radius: var(--wzl-radius-sm);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--wzl-font-size);\n}\n\n._card_a78043[data-tint] ._handle_a78043 {\n background: var(--wzl-tint);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._entry_a78043[data-selected] > ._card_a78043 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -1px;\n}\n\n/* An annotation row: dimmed, so content reads first, and marked as left out of export. */\n._nonPrinting_a78043 {\n color: var(--wzl-fg-muted);\n}\n\n._nonPrintingMark_a78043 {\n flex: none;\n margin-inline-start: auto;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-xs);\n}\n\n/* The lock column, at the row's end. */\n._lockToggle_a78043 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 16px;\n height: 16px;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--wzl-fg-subtle);\n cursor: pointer;\n}\n\n._lockToggle_a78043[aria-pressed='true'] {\n color: var(--wzl-fg);\n}\n\n/* An unlocked layer's padlock shows only on a hovered row or card, or once focused.\n Hidden by opacity, so it keeps its column and its place in the tab order. */\n@media (hover: hover) {\n ._lockToggle_a78043[aria-pressed='false'] {\n opacity: 0;\n }\n\n ._row_a78043:hover ._lockToggle_a78043,\n ._card_a78043:hover ._lockToggle_a78043,\n ._lockToggle_a78043:focus-visible {\n opacity: 1;\n }\n}\n\n/* The field a rename opens in place of the label. */\n._rename_a78043 {\n flex: 1 1 auto;\n min-width: 0;\n font: inherit;\n padding: 0 var(--wzl-space-1);\n border: 1px solid var(--wzl-accent);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._readout_9a8e59 {\n position: absolute;\n bottom: var(--wzl-space-6);\n left: 50%;\n translate: -50% 0;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-5);\n padding: var(--wzl-space-2) var(--wzl-space-5);\n border-radius: var(--wzl-radius-md);\n background: color-mix(in srgb, var(--wzl-surface-raised) 78%, transparent);\n backdrop-filter: blur(var(--wzl-glass-blur));\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n z-index: var(--wzl-z-overlay);\n}\n\n._actions_9a8e59 {\n flex: none;\n display: flex;\n gap: var(--wzl-space-2);\n}\n\n._cell_9a8e59 {\n display: inline-flex;\n gap: var(--wzl-space-2);\n align-items: baseline;\n}\n\n._name_9a8e59 {\n color: var(--wzl-fg-muted);\n}\n\n/* Sized for the widest value a page holds, so a live readout does not shift its neighbors. */\n._value_9a8e59 {\n min-width: 9ch;\n text-align: end;\n}\n/* The menubar, then the runs that are not menus. */\n._root_44db33 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n min-width: 0;\n}\n\n._bar_44db33 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-width: 0;\n}\n\n._title_44db33 {\n display: inline-flex;\n flex: none;\n align-items: center;\n padding: var(--wzl-space-1) var(--wzl-space-3);\n background: none;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: inherit;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n white-space: nowrap;\n cursor: default;\n user-select: none;\n}\n\n._title_44db33:hover,\n._title_44db33[aria-expanded='true'] {\n background: var(--wzl-surface-hover);\n}\n\n._title_44db33[aria-disabled='true'] {\n color: var(--wzl-fg-muted);\n background: none;\n}\n\n._title_44db33:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n/* A bar's height, not its content's: a font arriving late must not resize what the strip sits under. */\n._strip_3bcaf6 {\n box-sizing: border-box;\n display: flex;\n align-items: stretch;\n height: var(--wzl-tb-height);\n min-width: 0;\n background: var(--wzl-surface);\n border-top: 1px solid var(--wzl-border);\n font-family: var(--wzl-font-ui);\n}\n\n._tabs_3bcaf6 {\n min-width: 0;\n}\n\n/* The strip sits under what it switches, so its tabs hang from the top edge: the rules below\n restate `Tabs`' bottom-edge ones, and carry the strip's class to outrank them. */\n._strip_3bcaf6 ._list_3bcaf6 {\n flex: 1;\n border-bottom: none;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\n._strip_3bcaf6 ._tab_3bcaf6 {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0 var(--wzl-space-4);\n white-space: nowrap;\n user-select: none;\n}\n\n._strip_3bcaf6 ._tab_3bcaf6[data-selected]::after {\n top: -1px;\n bottom: auto;\n}\n\n._dragging_3bcaf6 {\n opacity: 0.5;\n}\n\n/* Where the drop would land: a line on the edge of the tab it would land against. */\n._strip_3bcaf6 ._dropBefore_3bcaf6 {\n box-shadow: inset 2px 0 0 var(--wzl-accent);\n}\n\n._strip_3bcaf6 ._dropAfter_3bcaf6 {\n box-shadow: inset -2px 0 0 var(--wzl-accent);\n}\n\n._rename_3bcaf6 {\n width: 12ch;\n padding: 0 var(--wzl-space-1);\n font: inherit;\n color: var(--wzl-fg);\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n outline: none;\n}\n\n._add_3bcaf6 {\n flex-shrink: 0;\n padding: 0 var(--wzl-space-3);\n font: inherit;\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg-muted);\n background: transparent;\n border: none;\n cursor: pointer;\n}\n\n._add_3bcaf6:hover {\n color: var(--wzl-fg);\n}\n\n._add_3bcaf6:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._ghost_3bcaf6 {\n display: block;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* A strip laid along a track shape: no strip to draw, only the tabs on the run. */\n._along_3bcaf6 ._tab_3bcaf6 {\n white-space: nowrap;\n user-select: none;\n}\n._table_8fe0a0 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n /* A grid wider than its sidebar scrolls inside it rather than stretching the panel. */\n max-inline-size: 100%;\n overflow-x: auto;\n}\n\n._cell_8fe0a0 {\n min-inline-size: 4rem;\n inline-size: 100%;\n}\n\n._heading_8fe0a0 {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n}\n\n._nested_8fe0a0 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n padding-inline-start: var(--wzl-space-4);\n}\n\n._rowActions_8fe0a0 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-1);\n}\n\n._add_8fe0a0 {\n align-self: flex-start;\n}\n/* The editor and each group in it measure their own width: a row lays out by the room its group has. */\n._editor_b42abc,\n._group_b42abc {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n container-type: inline-size;\n}\n\n._quantifier_b42abc { flex: 0 1 8rem; min-inline-size: 0; }\n\n/* A group among the rows: its own rows, set in from a rule down their side. */\n._group_b42abc {\n padding-inline-start: var(--wzl-space-3);\n border-inline-start: 2px solid var(--wzl-border);\n}\n\n/* The quantifier, then the button that removes the group. */\n._head_b42abc {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n}\n\n/* Copy and Paste, at the end of the editor's first line, after what the last press of either had to say. */\n._clipboard_b42abc {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n margin-inline-start: auto;\n min-inline-size: 0;\n}\n._clipboard_b42abc > button { flex: none; }\n._said_b42abc {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n/*\n * A row reads across: the pref, a comparison, the value compared against, and the button that removes it. The\n * comparison and value columns are one width in every row, so a group's rows line up down each. A second\n * comparison of the same pref takes the line under the first, after an `and` in the pref's column.\n */\n._row_b42abc {\n display: grid;\n grid-template-columns: minmax(0, 1fr) 7.5rem 8rem auto;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n align-items: center;\n}\n\n._pref_b42abc { grid-column: 1; min-inline-size: 0; }\n._comparison_b42abc { grid-column: 2; min-inline-size: 0; }\n/* A comparison that takes no value beside it has the value's column too. */\n._comparisonAlone_b42abc,\n._text_b42abc { grid-column: 2 / 4; min-inline-size: 0; }\n._removeRow_b42abc { grid-column: 4; }\n\n._value_b42abc {\n grid-column: 3;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-inline-size: 0;\n}\n._value_b42abc > :first-child { flex: 1 1 auto; min-inline-size: 0; }\n\n._and_b42abc {\n grid-column: 1;\n justify-self: end;\n}\n\n._choices_b42abc {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n padding-inline-start: var(--wzl-space-3);\n}\n\n/* Too narrow for a row to read across: the pref takes a line, and each comparison the line under it. */\n@container (max-width: 24rem) {\n ._row_b42abc { grid-template-columns: minmax(0, 1fr) minmax(0, 8rem) auto; }\n ._pref_b42abc { grid-column: 1 / 3; }\n ._removeRow_b42abc { grid-column: 3; grid-row: 1; }\n ._comparison_b42abc { grid-column: 1; }\n ._comparisonAlone_b42abc,\n ._text_b42abc { grid-column: 1 / 3; }\n ._value_b42abc { grid-column: 2; }\n ._and_b42abc { display: none; }\n}\n\n/* A path is what the code spells, beside the name a person reads: in the list a pref is picked from, and not on\n the row, where the name is enough. */\n._path_b42abc {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-xs);\n color: var(--wzl-fg-muted);\n}\n._pref_b42abc button ._path_b42abc { display: none; }\n\n._text_b42abc { overflow-wrap: anywhere; }\n\n._foot_b42abc {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._add_b42abc { flex: 1 1 auto; min-inline-size: 0; }\n._foot_b42abc > button { flex: none; white-space: nowrap; }\n\n._and_b42abc,\n._empty_b42abc {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n._problem_b42abc {\n grid-column: 1 / -1;\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-danger);\n overflow-wrap: anywhere;\n}\n._button_eb89b5 {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-1);\n min-width: 44px;\n padding: var(--wzl-space-3) var(--wzl-space-2);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n cursor: default;\n font-family: inherit;\n font-size: var(--wzl-font-size-xs);\n line-height: 1.1;\n position: relative;\n}\n._button_eb89b5:hover:not([disabled]) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n._button_eb89b5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n._button_eb89b5._active_eb89b5 {\n background: var(--wzl-surface-pressed);\n border-color: var(--wzl-accent);\n box-shadow: var(--wzl-bevel-pressed, none);\n color: var(--wzl-fg);\n}\n._button_eb89b5[disabled] {\n opacity: 0.4;\n}\n\n._icon_eb89b5 { display: block; }\n._icon_eb89b5 > svg { display: block; }\n._label_eb89b5 { font-size: var(--wzl-font-size-xs); }\n._shortcut_eb89b5 {\n color: var(--wzl-fg-muted);\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* The corner triangle that says the button holds more tools. */\n._menuMark_eb89b5 {\n position: absolute;\n inset-inline-end: 2px;\n inset-block-end: 2px;\n width: 5px;\n height: 5px;\n background: var(--wzl-fg-muted);\n clip-path: polygon(100% 0, 100% 100%, 0 100%);\n}\n\n._menuMark_eb89b5:dir(rtl) {\n clip-path: polygon(0 0, 100% 100%, 0 100%);\n}\n._group_a2aebf {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n}\n._group_a2aebf._horizontal_a2aebf {\n flex-direction: row;\n}\n._group_a2aebf._grid_a2aebf {\n display: grid;\n grid-template-columns: repeat(var(--wzl-tool-columns), minmax(0, 1fr));\n}\n._tree_d5c8c7,\n._group_d5c8c7 {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n._tree_d5c8c7 {\n /* The fold mark's width (DisclosureMark's 13px) plus the row gap: the gutter a mark hangs in. */\n --tree-mark: 13px;\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-2));\n user-select: none;\n -webkit-user-select: none;\n width: 100%;\n}\n\n/* Folded by its branches' leading glyphs, the gutter holds one and the space after it, and the glyph hangs in it as the mark would. */\n._tree_d5c8c7[data-fold='leading'] {\n --tree-mark: var(--wzl-tree-fold-size, 16px);\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-3));\n}\n\n/* `hang`: the gutter is wide enough for a leaf's glyph, which hangs in it as a branch's mark does. */\n._tree_d5c8c7[data-hang]:not([data-guides]) {\n --tree-hung: var(--wzl-tree-leading-size, 16px);\n}\n\n._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) {\n --tree-gutter: calc(max(var(--tree-mark), var(--tree-hung)) + var(--wzl-space-2));\n}\n\n._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) ._twisty_d5c8c7 {\n width: calc(var(--tree-gutter) - var(--wzl-space-2));\n}\n\n._tree_d5c8c7[data-hang]:not([data-guides]) ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 > ._leading_d5c8c7 {\n inline-size: var(--tree-hung);\n margin-inline-start: calc(-1 * (var(--tree-hung) + var(--wzl-space-2)));\n}\n\n/* One gutter, so a child's mark sits under its parent's label. */\n._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-gutter));\n}\n\n/* Each level stands a mark's width in from the one above, half of it past the bracket. */\n._tree_d5c8c7[data-guides] ._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-mark));\n}\n\n/* A branch's mark is the start of its name, so a row with no mark starts its name where a branch beside it starts its mark. */\n._tree_d5c8c7[data-guides] ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-leaf-indent, 0);\n}\n\n/* `--wzl-tree-root-leaf-indent`: the same for a leaf no branch holds, for a host whose own text stands at another edge. */\n._tree_d5c8c7[data-guides] > ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-root-leaf-indent, var(--wzl-tree-leaf-indent, 0));\n}\n\n/* A bracket down the side of an open branch's rows: straight from under the middle of the branch's mark, and curving\n in at its foot. The foot's edge is there, unseen, so the curve keeps its weight to the turn's middle and stops.\n A list that is not a tree takes it too, placed by `--guide-at` and with its top dropped by `--guide-from`. */\n._guide_d5c8c7 { position: relative; }\n\n._guide_d5c8c7::before {\n content: '';\n position: absolute;\n inset-block: var(--guide-from, 0) var(--wzl-space-1);\n inset-inline-start: var(--guide-at, calc(var(--tree-mark) / 2));\n inline-size: 10px;\n border-inline-start: 1px solid var(--wzl-tree-guide, var(--wzl-fg-subtle));\n border-block-end: 1px solid transparent;\n border-end-start-radius: 10px;\n pointer-events: none;\n}\n\n._item_d5c8c7 {\n outline: none;\n}\n\n._row_d5c8c7 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block: 0;\n padding-inline: var(--tree-gutter) var(--wzl-space-2);\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n white-space: nowrap;\n overflow: hidden;\n}\n\n._row_d5c8c7:hover {\n background: var(--wzl-surface-hover);\n}\n\n._item_d5c8c7:focus-visible > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._item_d5c8c7[aria-selected='true'] > ._row_d5c8c7 {\n background: var(--wzl-tree-selected, var(--wzl-border));\n}\n\n._row_d5c8c7[href] {\n text-decoration: none;\n cursor: pointer;\n}\n\n._item_d5c8c7[aria-current='true'] > ._row_d5c8c7 {\n color: var(--wzl-tree-current, var(--wzl-accent-fg));\n}\n\n._item_d5c8c7[data-muted] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n}\n\n._item_d5c8c7[aria-disabled='true'] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n cursor: not-allowed;\n}\n\n/* The mark hangs in the row's gutter, so every label at one level starts at the same x\n whether or not its row is a branch. */\n._twisty_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 13px;\n margin-inline-start: calc(-1 * var(--tree-gutter));\n align-self: stretch;\n color: var(--wzl-fg-muted);\n}\n\n._row_d5c8c7:hover > ._twisty_d5c8c7 {\n color: var(--wzl-fg);\n}\n\n._leading_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n}\n\n/* `--wzl-tree-leading-size`: every leading glyph sits in a square of that side, whatever the host handed in. One\n of another shape is scaled to fit inside it, and centered. Unset, a glyph keeps its own size. */\n._leading_d5c8c7 {\n justify-content: center;\n inline-size: var(--wzl-tree-leading-size, auto);\n block-size: var(--wzl-tree-leading-size, auto);\n}\n\n._leading_d5c8c7 > :is(svg, img) {\n max-inline-size: 100%;\n max-block-size: 100%;\n}\n\n._leading_d5c8c7[data-tree-twisty] {\n cursor: pointer;\n width: var(--wzl-tree-leading-size, var(--wzl-tree-fold-size, 16px));\n /* The row's gap is narrower than the gutter leaves after the glyph: the label starts where the gutter ends. */\n margin-inline: calc(-1 * var(--tree-gutter)) calc(var(--wzl-space-3) - var(--wzl-space-2));\n}\n\n._label_d5c8c7 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n._trailing_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._empty_d5c8c7 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n\n/* Drop marks: a line on the edge the drop lands at, or a ring on the branch it lands in. An 'after' mark sits on\n the li, which encloses the subtree, so it lands under the last descendant at the row's own indent. */\n._item_d5c8c7[data-drop] { position: relative; }\n\n._item_d5c8c7[data-drop='before']::before,\n._item_d5c8c7[data-drop='after']::after {\n content: '';\n position: absolute;\n inset-inline: var(--tree-gutter) 0;\n height: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n pointer-events: none;\n}\n._item_d5c8c7[data-drop='before']::before { top: -1px; }\n._item_d5c8c7[data-drop='after']::after { bottom: -1px; }\n\n._item_d5c8c7[data-drop='into'] > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n._item_d5c8c7[data-dragging] > ._row_d5c8c7 { opacity: 0.5; }\n\n._tree_d5c8c7[data-drag-effect='copy'] ._row_d5c8c7 { cursor: copy; }\n._tree_d5c8c7[data-drag-effect='link'] ._row_d5c8c7 { cursor: alias; }\n\n._ghostRow_d5c8c7 {\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n display: flex;\n align-items: center;\n padding-inline: var(--wzl-space-2);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n}\n\n._ghostEffect_d5c8c7 { flex: none; margin-inline-end: var(--wzl-space-1); color: var(--wzl-accent-fg); }\n/* Each kind names its color in `--_kind`, which the badge takes as its tint. The six code tokens\n are tuned per mode; the swatches are not, so they lean toward the foreground to stay\n legible on either ground. */\n._number_d8cf37 { --_kind: var(--wzl-code-number); }\n._boolean_d8cf37 { --_kind: var(--wzl-code-constant); }\n._string_d8cf37 { --_kind: var(--wzl-code-string); }\n._enum_d8cf37 { --_kind: var(--wzl-code-keyword); }\n._object_d8cf37 { --_kind: var(--wzl-code-property); }\n._field_d8cf37 { --_kind: var(--wzl-code-name); }\n._color_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-fuchsia) 55%, var(--wzl-fg)); }\n._paint_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-citron) 55%, var(--wzl-fg)); }\n._list_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-teal) 55%, var(--wzl-fg)); }\n._map_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-sky) 55%, var(--wzl-fg)); }\n._union_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-violet) 55%, var(--wzl-fg)); }\n._action_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-rose) 55%, var(--wzl-fg)); }\n/* The panel's own look sits in :where(), so a consumer's class on any part\n outranks it whatever order the stylesheets load in. */\n\n:where(._panel_ef43e1) {\n /* Vertical only: the body spans the panel's full width, and the title row's\n own controls carry the horizontal inset. */\n padding: var(--wzl-space-4) 0;\n background: var(--_s-fill);\n color: var(--wzl-fg);\n}\n\n:where(._titleRow_ef43e1) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--wzl-space-2);\n padding: 0;\n}\n\n/* The title's inset and type, shared by the static title and the collapse\n button so the two line up. */\n:where(._titleBox_ef43e1) {\n flex: 1 1 auto;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n:where(._title_ef43e1) {\n min-width: 0;\n}\n\n:where(._titleButton_ef43e1) {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n background: transparent;\n border: 0;\n line-height: inherit;\n cursor: pointer;\n text-align: start;\n}\n:where(._titleButton_ef43e1:hover) {\n color: var(--wzl-fg);\n}\n\n:where(._actions_ef43e1),\n:where(._trailing_ef43e1) {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n margin-inline-end: var(--wzl-space-2);\n}\n\n:where(._hideButton_ef43e1) {\n margin-inline-end: var(--wzl-space-2);\n}\n\n:where(._panel_ef43e1._collapsed_ef43e1) {\n padding-bottom: var(--wzl-space-2);\n}\n\n:where(._body_ef43e1) {\n padding: 0;\n}\n\n:where(._panel_ef43e1[data-fill]) {\n display: flex;\n flex: 1 1 0;\n flex-direction: column;\n min-height: 0;\n}\n\n:where(._panel_ef43e1[data-fill] > ._body_ef43e1) {\n display: flex;\n flex: 1 1 0;\n flex-direction: column;\n min-height: 0;\n}\n\n/* BEGIN GENERATED stance rules: sidebar-panel — `npm run gen:stances`, do not edit. */\n\n:where(._panel_ef43e1) {\n --wzl-tint: initial;\n}\n\n:where(._panel_ef43e1) {\n --_s-surface: var(--wzl-surface);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: uppercase;\n --_s-title-tracking: 0.05em;\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n:where(._panel_ef43e1)[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-emphasis='high'] {\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n:where(._panel_ef43e1)[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n:where(._panel_ef43e1)[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n:where(._panel_ef43e1) {\n --_s-fill: var(--_s-surface);\n}\n\n:where(._panel_ef43e1)[data-tint],\n:where(._panel_ef43e1)[data-grade],\n:where(._panel_ef43e1)[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n:where(._panel_ef43e1)[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: sidebar-panel */\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n._options_b9a2b2 { display: grid; gap: var(--wzl-space-2); }\n._pairRow_b9a2b2 { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }\n._unitRow_b9a2b2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }\n._acceptRow_b9a2b2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }\n._optionHeads_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n/* Holds the remove button's column open, so the heads sit over the fields. */\n._optionHeadSpacer_b9a2b2 { inline-size: var(--wzl-icon-button-size); }\n/* The stored value is code and the label is prose; the faces say which is which on every row. */\n/* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */\n._symbol_b9a2b2 input { font-family: var(--wzl-font-mono); }\n/* Derived from the keys above it, so it is text to read and copy, not a field. */\n._pathText_b9a2b2 { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }\n._number_b9a2b2 { }\n._number_b9a2b2 input { text-align: right; }\n/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */\n._editor_b9a2b2 {\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n display: grid;\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);\n grid-template-rows: auto minmax(0, 1fr) auto auto;\n gap: var(--wzl-space-3) var(--wzl-space-2);\n min-height: 0;\n height: 100%;\n}\n/* Across the top of every pane: what acts on the schema as a whole. */\n._bar_b9a2b2 {\n grid-column: 1 / -1;\n display: grid;\n /* Equal sides, so the tools sit at the bar's middle whatever either side holds. */\n grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._barLead_b9a2b2,\n._barTools_b9a2b2,\n._barEnd_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }\n._barEnd_b9a2b2 { justify-content: flex-end; }\n._treeFilter_b9a2b2 { margin-block-end: var(--wzl-space-2); }\n._middle_b9a2b2 { display: grid; align-content: start; min-height: 0; overflow: auto; }\n._pane_b9a2b2 { min-height: 0; overflow: auto; }\n/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */\n._structurePane_b9a2b2 { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }\n/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a\n group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */\n._structurePane_b9a2b2 { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }\n._structurePane_b9a2b2 ._paneTitle_b9a2b2 { padding-inline-start: var(--structure-text-inset); }\n/* Less the inset the tree gives what it draws when it has no rows. */\n._structurePane_b9a2b2 ._storedEmpty_b9a2b2 { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }\n/* Less the field's own 1px border. */\n._structurePane_b9a2b2 ._treeFilter_b9a2b2 { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }\n._structureHandle_b9a2b2 { grid-column: 2; grid-row: 2 / -1; }\n._listed_b9a2b2 {\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto\n minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));\n}\n/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */\n._aside_b9a2b2 { grid-column: 7; grid-row: 2 / -1; }\n._asideHandle_b9a2b2 { grid-column: 6; grid-row: 2 / -1; }\n/* The tree reads at the size of the fields in the pane beside it. */\n._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2 { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }\n._treeArea_b9a2b2, ._listBody_b9a2b2 { overflow: auto; }\n/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */\n._listPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }\n._listBody_b9a2b2 { flex: 1; min-height: 0; }\n._treeArea_b9a2b2 { flex: 1; }\n/* A setting starts its name where its group's name starts, past the group's glyph. */\n._treeArea_b9a2b2, ._settingsTree_b9a2b2 { --wzl-tree-leaf-indent: var(--wzl-space-2); }\n/* A group's glyph folds it, and says it is open. */\n:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }\n/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */\n._storedArea_b9a2b2 { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }\n._storedArea_b9a2b2[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }\n._storedEmpty_b9a2b2 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._previewPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }\n/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */\n._previewStage_b9a2b2 {\n background: var(--wzl-workspace);\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: flex-start;\n justify-content: safe center;\n padding: 24px;\n overflow: auto;\n}\n/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */\n._previewStage_b9a2b2[data-held] { justify-content: flex-start; padding: 0; }\n._previewStage_b9a2b2[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }\n/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */\n._previewDialog_b9a2b2 { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }\n/* A host's own drawing of the asset, at whatever size it takes. */\n._previewHosted_b9a2b2 { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }\n/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */\n._previewPanel_b9a2b2 {\n flex: none;\n inline-size: min(360px, 100%);\n max-block-size: 100%;\n overflow: auto;\n padding-inline: var(--wzl-space-4);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}\n/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */\n._previewBar_b9a2b2 { flex: none; zoom: var(--preview-zoom, 1); }\n._zoom_b9a2b2 { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }\n/* Sized for 400%, so the range beside it holds still as the figure changes. */\n._zoomReadout_b9a2b2 {\n flex: none;\n min-inline-size: 4ch;\n text-align: end;\n font-size: var(--wzl-font-size-sm);\n}\n._paneHeader_b9a2b2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding-block: var(--wzl-space-1);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._paneTitle_b9a2b2 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n._paneTools_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }\n._treeKey_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }\n/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */\n._treeLeaf_b9a2b2 { font-weight: var(--wzl-font-weight-normal); }\n/* A setting the layout shown already points at. */\n._pointed_b9a2b2 { color: var(--wzl-fg-muted); }\n._addForm_b9a2b2 { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }\n._addActions_b9a2b2 { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }\n._notice_b9a2b2:not(:empty) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-inline-start: 3px solid var(--wzl-warning);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-sm);\n /* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */\n margin-block-end: var(--wzl-space-2);\n}\n/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */\n._shelfHandle_b9a2b2 { grid-column: 3 / 6; grid-row: 3; }\n._shelf_b9a2b2 {\n grid-column: 3 / 6;\n grid-row: 4;\n block-size: var(--shelf-h);\n display: flex;\n gap: var(--wzl-space-3);\n min-height: 0;\n}\n/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */\n._shelfSlot_b9a2b2 { display: contents; }\n/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */\n._shelfPane_b9a2b2 { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }\n._export_b9a2b2 { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }\n._export_b9a2b2 ._exportBody_b9a2b2 { flex: 1; min-height: 0; }\n._exportHead_b9a2b2 {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._exportHead_b9a2b2 ._paneTools_b9a2b2 { align-self: center; }\n/* The head draws the rule under the tabs, so it runs under the tools too. */\n._export_b9a2b2 ._exportTabs_b9a2b2 { border-bottom: none; }\n._export_b9a2b2 ._exportTab_b9a2b2 { padding: var(--wzl-space-1) var(--wzl-space-3); }\n/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */\n._export_b9a2b2 ._exportPane_b9a2b2 { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }\n._export_b9a2b2 ._exportPane_b9a2b2[inert] { display: none; }\n._code_b9a2b2 {\n flex: 1;\n min-height: 0;\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n}\n._changeList_b9a2b2 { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }\n._changed_b9a2b2 { color: var(--wzl-accent-fg); }\n/* Tool buttons dragged into the tree or the preview to add a node there. */\n._palette_b9a2b2 {\n display: flex;\n gap: var(--wzl-space-2);\n inline-size: fit-content;\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n user-select: none;\n}\n._paletteRule_b9a2b2 { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }\n._paletteTool_b9a2b2 { display: flex; touch-action: none; }\n._palette_b9a2b2 ._paletteTool_b9a2b2 > button { cursor: grab; }\n/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */\n._ghostNode_b9a2b2 { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }\n._ghostPage_b9a2b2 {\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}\n/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */\n._treeCount_b9a2b2 { margin-inline-end: var(--wzl-space-1); }\n/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */\n:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) ._treeCount_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }\n._draftNote_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n\n/* How many nodes a drag carries, on the corner of the one it draws. */\n._ghostCount_b9a2b2 {\n position: absolute;\n top: -6px;\n right: -6px;\n}\n\n._autoValue_b9a2b2 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}\n\n._autoValueControl_b9a2b2 {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */\n._lockedForm_b9a2b2 { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }\n/* A node's name and description beside its glyph, which stands as tall as the two rows. */\n._identity_b9a2b2 { position: relative; --identity-icon: 48px; }\n._identity_b9a2b2 :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }\n._identityIcon_b9a2b2 {\n position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);\n display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));\n color: var(--wzl-fg);\n}\n._identityIcon_b9a2b2 > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }\n\n._autoValueControl_b9a2b2:disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* Ported from WeaselDraw's wd-prefs-* rules (apps/draw/src/app.css),\n * generalized onto theme tokens. Column width is overridable via\n * --wzl-prefs-column-width at any ancestor scope. */._columns_354a55 {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--wzl-space-6);\n overflow-y: auto;\n padding-right: var(--wzl-space-2);\n}._column_354a55 {\n flex: 0 0 var(--wzl-prefs-column-width, 300px);\n width: var(--wzl-prefs-column-width, 300px);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}/* The columns layout's groups are wells (`FORM_FRAMES`), set out here. Each frame states the whole set, so a\n well nested in another takes none of its spacing. */._panel_354a55,\n._subpanel_354a55 {\n --wzl-well-radius: var(--wzl-radius-sm);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n}._panel_354a55 {\n --wzl-well-gap: var(--wzl-space-4);\n --wzl-well-pad: var(--wzl-space-5);\n --wzl-well-head-pad: var(--wzl-space-2);\n}._subpanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: var(--wzl-space-1);\n --wzl-well-rule: var(--subpanel-rule);\n --wzl-well-inset-start: var(--subpanel-inset-start);\n --wzl-well-inset-end: var(--subpanel-inset-end);\n margin-top: var(--wzl-space-3);\n}/* The list layout's loose rows take the inset of the subpanels they sit over, so every label and control shares an edge. */._columnsLayout_354a55 > ._rows_354a55:has(> ._subpanel_354a55) > ._rowSlot_354a55 {\n padding-inline: calc(var(--subpanel-rule) + var(--subpanel-inset-start)) var(--subpanel-inset-end);\n}._rows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n}/* A leaf's row is a PropertyRow, inline; this only sets the form's type. */._row_354a55 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n cursor: default;\n}/* What a leaf's row sits in, so a selected one can be marked and found. */._rowSlot_354a55 {\n border-radius: var(--wzl-radius-sm);\n}/* A drag over the form: what it holds, drawn where it would land, and the rail entry it would go into. */[data-drop-placeholder] {\n outline: 1px dashed var(--wzl-accent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--wzl-accent) 10%, transparent);\n pointer-events: none;\n}[data-drop-placeholder] > * {\n opacity: 0.6;\n}/* Rail entries sit a pixel apart, so the outline is drawn inside the entry. */._railItem_354a55[data-drop-placeholder] {\n outline-offset: -1px;\n}._railItem_354a55[data-drop='into'] {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}/* The browser would otherwise scroll a pane to hold its rows still when a placeholder lands above them. */[data-dropping] ._pane_354a55 {\n overflow-anchor: none;\n}/* `kind: 'label'`: text among the rows. *//* Control slot — a share of the row rather than a fixed width, so a wide pane\n * widens the field instead of the gap before it. A long label still pushes it\n * narrower, down to the floor. Kit form controls are flex columns that fill it. */._rowControl_354a55 {\n flex: 0 1 60%;\n min-width: 110px;\n display: flex;\n align-items: center;\n /* A control narrower than the slot sits at the row's far edge, so the values line up down a pane;\n a select fills the slot, so its value is set to that edge inside it. */\n justify-content: flex-end;\n --wzl-select-align: end;\n}._unrenderable_354a55 {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}/* PrefsDialog header row: title text + optional headerExtra chrome. */._titleRow_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n flex: 1;\n min-width: 0;\n}._titleRow_354a55 > span:first-child {\n flex: 1;\n min-width: 0;\n}/* An object leaf renders its fields as its own rows. */._objectLeaf_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}/* Outranks the PropertyRow it styles, which is a flex row. */._objectLeaf_354a55 ._objectRow_354a55 {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n gap: var(--wzl-space-4);\n align-items: center;\n}/* The slot of a control whose renderer asked for the row's whole width (`wide`): the control is stretched to it,\n where a stacked built-in keeps the width it sets itself. */._rowControlFilled_354a55 > * {\n flex: 1 1 auto;\n min-inline-size: 0;\n}/* A control slot's own minimum is wider than this column gets in a narrow pane, and would run past the row. */._objectLeaf_354a55 ._objectRow_354a55 > ._rowControl_354a55 {\n min-width: 0;\n}._objectGroup_354a55 {\n margin: var(--wzl-space-2) 0 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}/* ---------------------------------------------------------------------------\n * Rail layout. The rail is the only chrome: no panels, because the surface\n * the form sits on already has a border and a card inside it restates one.\n * Width is overridable via --wzl-prefs-rail-width at any ancestor scope.\n * ------------------------------------------------------------------------ */._columnsLayout_354a55 {\n --subpanel-rule: 2px;\n --subpanel-inset-start: var(--wzl-space-5);\n --subpanel-inset-end: var(--wzl-space-4);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-height: 0;\n}._railLayout_354a55 {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n min-height: 0;\n block-size: 100%;\n /* The pane scrolls, not the layout: a rail that scrolled away with the\n settings would be useless exactly when it is needed. */\n overflow: hidden;\n}/* What `PrefsDialog` hands `Dialog` for its body in rail layout: the pane\n inside does the scrolling and the rail meets the dialog's own edges. */._railBody_354a55 {\n padding: 0;\n overflow: hidden;\n /* The modal sets only `max-height`, so the layout's `block-size: 100%`\n resolves against nothing and the pane grows to fit every row. As a flex\n item the layout takes the body's flexed height, which the cap does bound. */\n display: flex;\n flex-direction: column;\n /* A settled height: without one the dialog grows and shrinks as the reader\n moves between a two-row group and a twenty-row one, and the rail entry\n they are aiming at moves while they aim at it. */\n min-block-size: min(60vh, 420px);\n}/* Same reason across: a filter that narrows the schema to two rows should not pull the dialog's edges in\n around them. Set on the modal, whose percentages read the overlay: the room the box has, which in a\n contained portal is not the window. */:where(._railModal_354a55) {\n min-inline-size: min(800px, 100% - 32px);\n}._railBody_354a55 > ._railLayout_354a55 {\n flex: 1 1 auto;\n}._rail_354a55 {\n /* Never more than two fifths of the box: at its full width in a narrow\n container the rail takes the space the settings need and leaves a pane\n too thin to hold a row. The clamp belongs on the flex basis — an\n `inline-size` here is simply ignored, which is what made a first attempt\n at this look right and do nothing. The basis is the content box, so the 40% gives back the padding and border. */\n flex: 0 1 min(var(--wzl-prefs-rail-width, 176px), calc(40% - var(--wzl-space-2) - var(--wzl-space-8) - 1px));\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n /* The far side clears a scrollbar laid over the box, which takes no room of its own; one that takes room clears itself. */\n padding: var(--wzl-space-3) var(--wzl-space-8) var(--wzl-space-3) var(--wzl-space-2);\n background: var(--wzl-surface-sunken);\n border-right: 1px solid var(--wzl-border);\n overflow-y: auto;\n /* The rail is itself sunken, so a field taking the default surface would be\n the same color as the rail behind it. */\n --wzl-input-surface: var(--wzl-surface);\n}._railList_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n}._railItem_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border: none;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: var(--wzl-fg);\n font: inherit;\n /* The size of a control's text in the pane beside it. */\n font-size: var(--wzl-font-size);\n text-align: start;\n cursor: default;\n}._railItem_354a55:hover {\n background: var(--wzl-surface-raised);\n}._railItem_354a55:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}/* The entries nested under one, a step in from it. */._railNest_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding-left: calc(var(--wzl-space-7) - var(--wzl-space-3));\n}/* A foldable rail: each entry follows its fold mark, or a blank as wide where it has\n nothing to fold, so every name at one depth starts at one edge. */._railRow_354a55 {\n display: flex;\n align-items: center;\n}._railRow_354a55 > ._railItem_354a55 {\n flex: 1 1 auto;\n min-width: 0;\n}._railFold_354a55 {\n flex: 0 0 var(--wzl-control-h-sm);\n}/* The open page. */._railItem_354a55[data-rail-mark='current'] {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}/* Choosing it opens the first entry under it: it has no page of its own to show. */._railPasses_354a55 ._railName_354a55 {\n color: var(--wzl-fg-muted);\n}._railName_354a55 {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}/* Last in the row: a count that changes as the reader types would otherwise\n shove the name on every keystroke. */._railCount_354a55 {\n margin-left: auto;\n font-size: var(--wzl-font-size-xs);\n opacity: 0.6;\n}._pane_354a55 {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n /* A placeholder's line can be the one that makes the pane scroll, and a scrollbar arriving would move every row. */\n scrollbar-gutter: stable;\n /* The gutter is no room where the scrollbar is laid over the box, so the far side clears it itself. */\n padding: var(--wzl-space-5) var(--wzl-space-8) var(--wzl-space-5) var(--wzl-space-6);\n}/* A scrollbar that takes room of its own (`markScrollbar`) is cleared by its gutter, so the far side pads as the\n near side does. */._rail_354a55[data-scrollbar] { padding-right: var(--wzl-space-2); }._pane_354a55[data-scrollbar] { padding-right: var(--wzl-space-6); }/* Rows that follow a group on the page stand off it as a group does. */._pane_354a55 > :not(._paneHead_354a55) + ._rows_354a55 {\n margin-top: var(--wzl-space-4);\n}._paneHead_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n margin-bottom: var(--wzl-space-5);\n}._paneTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xl);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}._paneDesc_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}._paneSection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n margin-top: var(--wzl-space-6);\n}/* `as: 'fragment'`: a group with nothing of its own to draw. Its rows are laid out by whatever holds the group. */._fragment_354a55 {\n display: contents;\n}/* `as: 'panel'`: the one group in a pane that draws its own box, a well (`FORM_FRAMES.box`) at its defaults. */._panePanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n margin-top: var(--wzl-space-4);\n}/* An object's panel titles itself as the object's other groups do. */._objectPanel_354a55 {\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n}/* `as: 'tab'`: a `Tabs` strip, set off from the rows above it. */._paneTabs_354a55 {\n margin-top: var(--wzl-space-4);\n}._paneSubsection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin-top: var(--wzl-space-4);\n padding-left: var(--wzl-space-4);\n border-left: 2px solid var(--wzl-border);\n}._sectionTitle_354a55 {\n position: sticky;\n /* A sticky offset is measured from inside the pane's padding, so this takes the pane's top padding back\n off and the heading rests against the pane's edge, with no strip above it for rows to show in. */\n top: calc(-1 * var(--wzl-space-5));\n z-index: 1;\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* What is scrolled to inside a section stops below the heading stuck over it, at the height `stuckHeadingRef`\n measures; until it has, the heading's padding, border, and one line. */._paneSection_354a55 :where([data-pref-path]) {\n scroll-margin-top: var(\n --pref-stuck-height,\n calc(var(--wzl-space-3) + var(--wzl-space-2) + 1px + var(--wzl-font-size-sm) * var(--wzl-leading))\n );\n}._subsectionTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* In the rail layout a row is a grid, so the control track grows with the\n pane instead of holding at the columns layout's fixed slot. A stacked row\n keeps PropertyRow's own layout: its label over a control the row's width. */._railLayout_354a55 ._row_354a55:where(:not(._rowStacked_354a55)) {\n display: grid;\n /* The control track is capped rather than taking the rest: a number field\n as wide as the pane reads as a text area, and every row's control starts\n at the same x either way. */\n grid-template-columns:\n minmax(min(140px, 40% - var(--wzl-space-3)), var(--wzl-params-label-width, 240px))\n minmax(min(180px, 60%), 260px);\n}/* `rowsAcross={2}`, in the rail and list layouts: two rows side by side. A leaf that spans both keeps to them, its label in the first column\n and its control in the second; a stacked one has the whole line under its label already. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, [data-wide] > ._row_354a55:not(._rowStacked_354a55)) {\n --_across-gap: var(--wzl-prefs-across-gap, 28px);\n display: grid;\n /* Two columns, each at least half the line, so never three; and one once half the line is too narrow for a row. */\n grid-template-columns: repeat(auto-fit, minmax(max(120px, (100% - var(--_across-gap)) / 2), 1fr));\n /* Wide between the columns: a row's control ends where the next row's label begins. */\n gap: var(--wzl-space-3) var(--_across-gap);\n align-items: start;\n}/* The spanning leaf's label reads on the line of its control's first row. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] [data-wide] > ._row_354a55:not(._rowStacked_354a55) {\n align-items: baseline;\n}/* The label sits beside its control while both fit, and the control drops\n under it when they do not: a label never narrows below its own text. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n}/* One share of the row for every label short enough to take it, so a\n column's controls start at one x. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 > :first-child {\n flex: 1 0 40%;\n min-inline-size: max-content;\n max-inline-size: 100%;\n}:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55 {\n /* No `min-inline-size: 0`: a control wider than what is left of the line\n has to wrap under the label rather than run past the column. */\n flex: 1 1 var(--wzl-prefs-control-min, 80px);\n max-inline-size: 100%;\n}/* A checkbox needs only its own width beside the label, not a field's. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55:has(> input[type='checkbox']:only-child) {\n flex-basis: auto;\n min-inline-size: 0;\n}/* Anything in the grid that is not one leaf's row is a group, and runs the full width. A fragment's children are\n in the grid too, though not children of it. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, ._fragment_354a55) > :is(:not(._rowSlot_354a55), [data-wide]) {\n grid-column: 1 / -1;\n}._railLayout_354a55 ._rowControl_354a55 {\n flex: 1 1 auto;\n}._filter_354a55 {\n padding: 0 var(--wzl-space-1) var(--wzl-space-2);\n}._noMatches_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-6) 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}._noMatches_354a55 p {\n margin: 0;\n}._clearFilter_354a55 {\n padding: var(--wzl-space-1) var(--wzl-space-3);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n}/* A root drawn as a bar: the bar at its own size, with the room around it the form's to take a drop in. */._barRoot_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}/* A heading holding the control of a leaf marked `heading`: its name, then the control at the far end. */._headed_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}/* The control is drawn as a row's is, whatever the heading does to its own words. It is no label, so it turns\n the label recipe off for itself and what it holds, and reads it back in place of the heading's inherited case. */._headingControl_354a55 {\n --wzl-params-label-case: none;\n --wzl-params-label-tracking: normal;\n display: inline-flex;\n align-items: center;\n margin-inline-start: auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-normal);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* An `actions` leaf's rows, one under another. */._actionRows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}/* One height and one inset for every sidebar list. A panel stacking two of\n them has to have their rows line up, which is what a private copy of this\n file per list stopped happening. */._list_0838d3 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n line-height: var(--wzl-leading-snug);\n user-select: none;\n -webkit-user-select: none;\n position: relative;\n width: 100%;\n}._row_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-4);\n height: var(--wzl-control-h);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n background: transparent;\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n overflow: hidden;\n white-space: nowrap;\n}._row_0838d3:hover {\n background: var(--wzl-surface-hover);\n}._row_0838d3:focus-visible,\n._row_0838d3:has(> ._cell_0838d3:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}/* A grid row's label cell takes the row's focus; the ring is drawn on the row\n so it looks the same as a listbox option's. */._cell_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex: 1 1 auto;\n min-width: 0;\n align-self: stretch;\n outline: none;\n}._trailing_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n flex: none;\n}._label_0838d3 {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}._selected_0838d3,\n._selected_0838d3:hover {\n background: var(--wzl-border);\n color: var(--wzl-fg);\n}/* Drag feedback. The seam is an outer shadow of the row beside it: it needs no\n measured offset, adds no element for a drag to count as a row, and escapes\n the row's own `overflow: hidden`. */._row_0838d3[data-drop='before'] { box-shadow: 0 -2px 0 0 var(--wzl-accent); }._row_0838d3[data-drop='after'] { box-shadow: 0 2px 0 0 var(--wzl-accent); }._row_0838d3[data-dragging] { opacity: 0.4; }/* Present but not in effect. */._muted_0838d3 {\n color: var(--wzl-fg-subtle);\n}._empty_0838d3 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}._options_b9a2b2 { display: grid; gap: var(--wzl-space-2); }._pairRow_b9a2b2 { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }._unitRow_b9a2b2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }._acceptRow_b9a2b2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }._optionHeads_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* Holds the remove button's column open, so the heads sit over the fields. */._optionHeadSpacer_b9a2b2 { inline-size: var(--wzl-icon-button-size); }/* The stored value is code and the label is prose; the faces say which is which on every row. *//* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */._symbol_b9a2b2 input { font-family: var(--wzl-font-mono); }/* Derived from the keys above it, so it is text to read and copy, not a field. */._pathText_b9a2b2 { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }._number_b9a2b2 { }._number_b9a2b2 input { text-align: right; }/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */._editor_b9a2b2 {\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n display: grid;\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);\n grid-template-rows: auto minmax(0, 1fr) auto auto;\n gap: var(--wzl-space-3) var(--wzl-space-2);\n min-height: 0;\n height: 100%;\n}/* Across the top of every pane: what acts on the schema as a whole. */._bar_b9a2b2 {\n grid-column: 1 / -1;\n display: grid;\n /* Equal sides, so the tools sit at the bar's middle whatever either side holds. */\n grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._barLead_b9a2b2,\n._barTools_b9a2b2,\n._barEnd_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._barEnd_b9a2b2 { justify-content: flex-end; }._treeFilter_b9a2b2 { margin-block-end: var(--wzl-space-2); }._middle_b9a2b2 { display: grid; align-content: start; min-height: 0; overflow: auto; }._pane_b9a2b2 { min-height: 0; overflow: auto; }/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */._structurePane_b9a2b2 { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a\n group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */._structurePane_b9a2b2 { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }._structurePane_b9a2b2 ._paneTitle_b9a2b2 { padding-inline-start: var(--structure-text-inset); }/* Less the inset the tree gives what it draws when it has no rows. */._structurePane_b9a2b2 ._storedEmpty_b9a2b2 { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }/* Less the field's own 1px border. */._structurePane_b9a2b2 ._treeFilter_b9a2b2 { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }._structureHandle_b9a2b2 { grid-column: 2; grid-row: 2 / -1; }._listed_b9a2b2 {\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto\n minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));\n}/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */._aside_b9a2b2 { grid-column: 7; grid-row: 2 / -1; }._asideHandle_b9a2b2 { grid-column: 6; grid-row: 2 / -1; }/* The tree reads at the size of the fields in the pane beside it. */._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2 { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }._treeArea_b9a2b2, ._listBody_b9a2b2 { overflow: auto; }/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */._listPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }._listBody_b9a2b2 { flex: 1; min-height: 0; }._treeArea_b9a2b2 { flex: 1; }/* A setting starts its name where its group's name starts, past the group's glyph. */._treeArea_b9a2b2, ._settingsTree_b9a2b2 { --wzl-tree-leaf-indent: var(--wzl-space-2); }/* A group's glyph folds it, and says it is open. */:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */._storedArea_b9a2b2 { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }._storedArea_b9a2b2[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }._storedEmpty_b9a2b2 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }._previewPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */._previewStage_b9a2b2 {\n background: var(--wzl-workspace);\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: flex-start;\n justify-content: safe center;\n padding: 24px;\n overflow: auto;\n}/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */._previewStage_b9a2b2[data-held] { justify-content: flex-start; padding: 0; }._previewStage_b9a2b2[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */._previewDialog_b9a2b2 { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }/* A host's own drawing of the asset, at whatever size it takes. */._previewHosted_b9a2b2 { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */._previewPanel_b9a2b2 {\n flex: none;\n inline-size: min(360px, 100%);\n max-block-size: 100%;\n overflow: auto;\n padding-inline: var(--wzl-space-4);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */._previewBar_b9a2b2 { flex: none; zoom: var(--preview-zoom, 1); }._zoom_b9a2b2 { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }/* Sized for 400%, so the range beside it holds still as the figure changes. */._zoomReadout_b9a2b2 {\n flex: none;\n min-inline-size: 4ch;\n text-align: end;\n font-size: var(--wzl-font-size-sm);\n}._paneHeader_b9a2b2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding-block: var(--wzl-space-1);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._paneTitle_b9a2b2 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}._paneTools_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._treeKey_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */._treeLeaf_b9a2b2 { font-weight: var(--wzl-font-weight-normal); }/* A setting the layout shown already points at. */._pointed_b9a2b2 { color: var(--wzl-fg-muted); }._addForm_b9a2b2 { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }._addActions_b9a2b2 { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }._notice_b9a2b2:not(:empty) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-inline-start: 3px solid var(--wzl-warning);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-sm);\n /* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */\n margin-block-end: var(--wzl-space-2);\n}/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */._shelfHandle_b9a2b2 { grid-column: 3 / 6; grid-row: 3; }._shelf_b9a2b2 {\n grid-column: 3 / 6;\n grid-row: 4;\n block-size: var(--shelf-h);\n display: flex;\n gap: var(--wzl-space-3);\n min-height: 0;\n}/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */._shelfSlot_b9a2b2 { display: contents; }/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */._shelfPane_b9a2b2 { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }._export_b9a2b2 { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }._export_b9a2b2 ._exportBody_b9a2b2 { flex: 1; min-height: 0; }._exportHead_b9a2b2 {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._exportHead_b9a2b2 ._paneTools_b9a2b2 { align-self: center; }/* The head draws the rule under the tabs, so it runs under the tools too. */._export_b9a2b2 ._exportTabs_b9a2b2 { border-bottom: none; }._export_b9a2b2 ._exportTab_b9a2b2 { padding: var(--wzl-space-1) var(--wzl-space-3); }/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */._export_b9a2b2 ._exportPane_b9a2b2 { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }._export_b9a2b2 ._exportPane_b9a2b2[inert] { display: none; }._code_b9a2b2 {\n flex: 1;\n min-height: 0;\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n}._changeList_b9a2b2 { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }._changed_b9a2b2 { color: var(--wzl-accent-fg); }/* Tool buttons dragged into the tree or the preview to add a node there. */._palette_b9a2b2 {\n display: flex;\n gap: var(--wzl-space-2);\n inline-size: fit-content;\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n user-select: none;\n}._paletteRule_b9a2b2 { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }._paletteTool_b9a2b2 { display: flex; touch-action: none; }._palette_b9a2b2 ._paletteTool_b9a2b2 > button { cursor: grab; }/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */._ghostNode_b9a2b2 { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }._ghostPage_b9a2b2 {\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */._treeCount_b9a2b2 { margin-inline-end: var(--wzl-space-1); }/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) ._treeCount_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }._draftNote_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* How many nodes a drag carries, on the corner of the one it draws. */._ghostCount_b9a2b2 {\n position: absolute;\n top: -6px;\n right: -6px;\n}._autoValue_b9a2b2 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}._autoValueControl_b9a2b2 {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */._lockedForm_b9a2b2 { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }/* A node's name and description beside its glyph, which stands as tall as the two rows. */._identity_b9a2b2 { position: relative; --identity-icon: 48px; }._identity_b9a2b2 :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }._identityIcon_b9a2b2 {\n position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);\n display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));\n color: var(--wzl-fg);\n}._identityIcon_b9a2b2 > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }._autoValueControl_b9a2b2:disabled {\n opacity: 0.5;\n pointer-events: none;\n}._tree_d5c8c7,\n._group_d5c8c7 {\n list-style: none;\n margin: 0;\n padding: 0;\n}._tree_d5c8c7 {\n /* The fold mark's width (DisclosureMark's 13px) plus the row gap: the gutter a mark hangs in. */\n --tree-mark: 13px;\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-2));\n user-select: none;\n -webkit-user-select: none;\n width: 100%;\n}/* Folded by its branches' leading glyphs, the gutter holds one and the space after it, and the glyph hangs in it as the mark would. */._tree_d5c8c7[data-fold='leading'] {\n --tree-mark: var(--wzl-tree-fold-size, 16px);\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-3));\n}/* `hang`: the gutter is wide enough for a leaf's glyph, which hangs in it as a branch's mark does. */._tree_d5c8c7[data-hang]:not([data-guides]) {\n --tree-hung: var(--wzl-tree-leading-size, 16px);\n}._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) {\n --tree-gutter: calc(max(var(--tree-mark), var(--tree-hung)) + var(--wzl-space-2));\n}._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) ._twisty_d5c8c7 {\n width: calc(var(--tree-gutter) - var(--wzl-space-2));\n}._tree_d5c8c7[data-hang]:not([data-guides]) ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 > ._leading_d5c8c7 {\n inline-size: var(--tree-hung);\n margin-inline-start: calc(-1 * (var(--tree-hung) + var(--wzl-space-2)));\n}/* One gutter, so a child's mark sits under its parent's label. */._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-gutter));\n}/* Each level stands a mark's width in from the one above, half of it past the bracket. */._tree_d5c8c7[data-guides] ._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-mark));\n}/* A branch's mark is the start of its name, so a row with no mark starts its name where a branch beside it starts its mark. */._tree_d5c8c7[data-guides] ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-leaf-indent, 0);\n}/* `--wzl-tree-root-leaf-indent`: the same for a leaf no branch holds, for a host whose own text stands at another edge. */._tree_d5c8c7[data-guides] > ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-root-leaf-indent, var(--wzl-tree-leaf-indent, 0));\n}/* A bracket down the side of an open branch's rows: straight from under the middle of the branch's mark, and curving\n in at its foot. The foot's edge is there, unseen, so the curve keeps its weight to the turn's middle and stops.\n A list that is not a tree takes it too, placed by `--guide-at` and with its top dropped by `--guide-from`. */._guide_d5c8c7 { position: relative; }._guide_d5c8c7::before {\n content: '';\n position: absolute;\n inset-block: var(--guide-from, 0) var(--wzl-space-1);\n inset-inline-start: var(--guide-at, calc(var(--tree-mark) / 2));\n inline-size: 10px;\n border-inline-start: 1px solid var(--wzl-tree-guide, var(--wzl-fg-subtle));\n border-block-end: 1px solid transparent;\n border-end-start-radius: 10px;\n pointer-events: none;\n}._item_d5c8c7 {\n outline: none;\n}._row_d5c8c7 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block: 0;\n padding-inline: var(--tree-gutter) var(--wzl-space-2);\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n white-space: nowrap;\n overflow: hidden;\n}._row_d5c8c7:hover {\n background: var(--wzl-surface-hover);\n}._item_d5c8c7:focus-visible > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}._item_d5c8c7[aria-selected='true'] > ._row_d5c8c7 {\n background: var(--wzl-tree-selected, var(--wzl-border));\n}._row_d5c8c7[href] {\n text-decoration: none;\n cursor: pointer;\n}._item_d5c8c7[aria-current='true'] > ._row_d5c8c7 {\n color: var(--wzl-tree-current, var(--wzl-accent-fg));\n}._item_d5c8c7[data-muted] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n}._item_d5c8c7[aria-disabled='true'] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n cursor: not-allowed;\n}/* The mark hangs in the row's gutter, so every label at one level starts at the same x\n whether or not its row is a branch. */._twisty_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 13px;\n margin-inline-start: calc(-1 * var(--tree-gutter));\n align-self: stretch;\n color: var(--wzl-fg-muted);\n}._row_d5c8c7:hover > ._twisty_d5c8c7 {\n color: var(--wzl-fg);\n}._leading_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n}/* `--wzl-tree-leading-size`: every leading glyph sits in a square of that side, whatever the host handed in. One\n of another shape is scaled to fit inside it, and centered. Unset, a glyph keeps its own size. */._leading_d5c8c7 {\n justify-content: center;\n inline-size: var(--wzl-tree-leading-size, auto);\n block-size: var(--wzl-tree-leading-size, auto);\n}._leading_d5c8c7 > :is(svg, img) {\n max-inline-size: 100%;\n max-block-size: 100%;\n}._leading_d5c8c7[data-tree-twisty] {\n cursor: pointer;\n width: var(--wzl-tree-leading-size, var(--wzl-tree-fold-size, 16px));\n /* The row's gap is narrower than the gutter leaves after the glyph: the label starts where the gutter ends. */\n margin-inline: calc(-1 * var(--tree-gutter)) calc(var(--wzl-space-3) - var(--wzl-space-2));\n}._label_d5c8c7 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}._trailing_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}._empty_d5c8c7 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}/* Drop marks: a line on the edge the drop lands at, or a ring on the branch it lands in. An 'after' mark sits on\n the li, which encloses the subtree, so it lands under the last descendant at the row's own indent. */._item_d5c8c7[data-drop] { position: relative; }._item_d5c8c7[data-drop='before']::before,\n._item_d5c8c7[data-drop='after']::after {\n content: '';\n position: absolute;\n inset-inline: var(--tree-gutter) 0;\n height: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n pointer-events: none;\n}._item_d5c8c7[data-drop='before']::before { top: -1px; }._item_d5c8c7[data-drop='after']::after { bottom: -1px; }._item_d5c8c7[data-drop='into'] > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}._item_d5c8c7[data-dragging] > ._row_d5c8c7 { opacity: 0.5; }._tree_d5c8c7[data-drag-effect='copy'] ._row_d5c8c7 { cursor: copy; }._tree_d5c8c7[data-drag-effect='link'] ._row_d5c8c7 { cursor: alias; }._ghostRow_d5c8c7 {\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n display: flex;\n align-items: center;\n padding-inline: var(--wzl-space-2);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n}._ghostEffect_d5c8c7 { flex: none; margin-inline-end: var(--wzl-space-1); color: var(--wzl-accent-fg); }\n/* Set as the prefs dialog's own list of pages is: a heading, and its assets a step in under it. */\n._list_5f859c { user-select: none; -webkit-user-select: none; }\n._row_5f859c {\n margin-inline-start: calc(var(--heading-icon) + var(--wzl-space-2));\n font-weight: var(--wzl-font-weight-light);\n}\n._label_5f859c { min-width: 0; white-space: nowrap; }\n._changed_5f859c { }\n._row_5f859c[data-rail-mark='current'] ._changed_5f859c { color: var(--wzl-secondary-strong); }\n._group_5f859c { --heading-icon: 16px; display: flex; flex-direction: column; gap: 1px; }\n/* Bracketed as the structure tree brackets an open branch, from under the heading's glyph. */\n._open_5f859c {\n --guide-from: var(--wzl-control-h);\n --guide-at: calc(var(--wzl-space-3) + var(--heading-icon) / 2);\n}\n._group_5f859c + ._group_5f859c { margin-block-start: var(--wzl-space-3); }\n._heading_5f859c {\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n}\n._fold_5f859c {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n width: 100%;\n block-size: var(--wzl-control-h);\n padding: 0 var(--wzl-space-3);\n border: 0;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n._headingIcon_5f859c, ._rowIcon_5f859c { flex: none; color: var(--wzl-fg-muted); }\n._fold_5f859c:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n._badge_5f859c { flex: none; margin-inline-start: auto; }\n/* Each heading names its badge's color in `--_heading`, leaning toward the foreground as a pref kind's badge does. */\n._dialog_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-violet) 55%, var(--wzl-fg)); }\n._properties_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-teal) 55%, var(--wzl-fg)); }\n._panel_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-blue) 55%, var(--wzl-fg)); }\n._toolbar_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-amber) 55%, var(--wzl-fg)); }\n._menu_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-rose) 55%, var(--wzl-fg)); }\n._bundle_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-green) 55%, var(--wzl-fg)); }\n._row_5f859c[data-rail-mark='current'] ._badge_5f859c { --_heading: var(--wzl-fg-on-accent); }\n._dynamic_5f859c { flex: none; color: var(--wzl-fg-muted); }\n._picker_0ef77d { display: grid; gap: var(--wzl-space-2); inline-size: min(560px, 80vw); }\n._note_0ef77d { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n/* The grid scrolls in its own pane so a long icon set never lengthens the dialog past the window. */\n._list_0ef77d {\n display: grid; gap: var(--wzl-space-2);\n max-block-size: 60vh; overflow-y: auto;\n border: 1px solid var(--wzl-border); padding: var(--wzl-space-2);\n}\n._group_0ef77d { display: grid; gap: var(--wzl-space-1); }\n._heading_0ef77d { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n._grid_0ef77d { display: grid; grid-template-columns: repeat(auto-fill, 2rem); gap: var(--wzl-space-1); }\n._cell_0ef77d { display: grid; place-items: center; block-size: 2rem; inline-size: 2rem; cursor: pointer; }\n._cell_0ef77d:hover { background: color-mix(in srgb, var(--wzl-accent) 15%, transparent); }\n._chosen_0ef77d, ._chosen_0ef77d:hover {\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n background: var(--wzl-accent); color: var(--wzl-fg-on-accent);\n}\n._list_0ef77d:focus-visible ._active_0ef77d { outline: 2px solid var(--wzl-focus-ring); outline-offset: -2px; }\n._field_ab38de { display: grid; gap: var(--wzl-space-2); min-inline-size: 0; }\n._bar_ab38de { display: flex; flex-wrap: wrap; gap: var(--wzl-space-2); align-items: center; }\n._current_ab38de { font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); overflow-wrap: anywhere; }\n._unregistered_ab38de { margin-inline-start: var(--wzl-space-2); color: var(--wzl-danger); font-family: var(--wzl-font-body); }\n._loads_46ca35 { display: flex; flex-direction: column; gap: var(--wzl-space-3); font-size: var(--wzl-font-size); color: var(--wzl-fg); }\n._title_46ca35 { margin: 0; font-size: var(--wzl-font-size); font-weight: var(--wzl-font-weight-medium); }\n._empty_46ca35 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._part_46ca35 { display: flex; flex-direction: column; gap: var(--wzl-space-1); }\n._heading_46ca35 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._ids_46ca35 { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--wzl-space-1) var(--wzl-space-3); font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); }\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* The invisible hit area past a slider's track and each thumb, spanned by `::before`. Both are measured from the\n padding box, so each 1px border comes back out. A thumb comes later in the tree, so its slop wins where the two\n overlap. */._trackSlop_842300::before,\n._thumbSlop_842300::before {\n content: '';\n position: absolute;\n inset: calc(-1px - var(--wzl-slider-track-slop));\n}._thumbSlop_842300::before {\n inset: calc(-1px - var(--wzl-slider-thumb-slop));\n}\n\n._slider_98b6da {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] {\n flex-direction: row;\n align-items: stretch;\n width: 28px;\n height: 160px;\n}\n\n._head_98b6da {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--wzl-space-4);\n}\n\n._label_98b6da {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._output_98b6da {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n._track_98b6da {\n position: relative;\n height: 6px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._track_98b6da {\n width: 6px;\n height: 100%;\n}\n\n._fill_98b6da {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--wzl-accent-strong);\n border-radius: var(--wzl-radius-sm);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._fill_98b6da {\n left: 0;\n right: 0;\n}\n\n._thumb_98b6da {\n /* RAC positions the thumb along the track and translates it by half its own\n size on both axes; the cross-axis anchor is ours to set. */\n top: 50%;\n width: 14px;\n height: 14px;\n background: var(--wzl-fg-muted);\n border: 1px solid var(--wzl-border-strong);\n border-radius: 50%;\n cursor: ew-resize;\n outline: none;\n transition: box-shadow var(--wzl-motion-fast);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._thumb_98b6da {\n left: 50%;\n cursor: ns-resize;\n}\n\n._thumb_98b6da[data-focus-visible] {\n box-shadow: 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._thumb_98b6da[data-dragging] {\n background: var(--wzl-accent-strong);\n}\n\n._slider_98b6da[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._bar_876aa9 {\n display: inline-flex;\n align-items: baseline;\n gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-xs);\n white-space: nowrap;\n}\n\n._rule_876aa9 {\n flex: none;\n width: var(--wzl-scale-bar-px);\n height: var(--wzl-space-2);\n border: 1px solid currentcolor;\n border-top: none;\n}\n\n._label_876aa9 {\n min-width: 6ch;\n}\n\n._drawn_876aa9 {\n color: var(--wzl-fg-muted);\n}\n._sidebar_fd29a8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n}\n\n._sidebar_fd29a8._left_fd29a8 {\n border-right: 1px solid var(--wzl-border);\n}\n._sidebar_fd29a8._right_fd29a8 {\n border-left: 1px solid var(--wzl-border);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._bar_89218f {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-8);\n flex-shrink: 0;\n /* One line, always. A bar that grows a second line takes it from the canvas\n above it, and a readout that changes width would do that on and off as it\n ticks. Too narrow for its contents clips them instead. */\n overflow: hidden;\n padding: var(--wzl-space-2) var(--wzl-space-6);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n background: var(--wzl-surface);\n border-top: 1px solid var(--wzl-border);\n}\n\n._item_89218f {\n white-space: nowrap;\n}\n\n._muted_89218f {\n opacity: 0.6;\n}\n\n._hasTitle_89218f {\n cursor: help;\n}\n\n._spacer_89218f {\n margin-inline-start: auto;\n}\n\n/* The gap moves into each item's padding so a hairline sits halfway between\n two of them. */\n._divided_89218f {\n gap: 0;\n}\n._divided_89218f > ._item_89218f {\n padding: 0 calc(var(--wzl-space-8) / 2);\n}\n._divided_89218f > ._item_89218f + ._item_89218f {\n border-inline-start: 1px solid var(--wzl-line-subtle);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n\n._grid_f76bdc {\n display: grid;\n /* Half-column tracks, so a short last row can sit centered between two columns. */\n grid-template-columns: repeat(var(--tracks), minmax(0, 1fr));\n}\n\n/* The glyph's box; a ring's swatch already is one, placed absolutely by its ring. */\n._grid_f76bdc > ._swatch_f76bdc {\n position: relative;\n grid-column-end: span 2;\n}\n\n._grid_f76bdc > ._swatch_f76bdc[data-row-lead] {\n grid-column-start: calc(1 + var(--lead));\n}\n\n._swatch_f76bdc {\n aspect-ratio: 1 / 1;\n min-inline-size: 0;\n padding: 0;\n border: 0.5px solid var(--wzl-border);\n border-radius: 0;\n /* Not the UA's buttontext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n /* The color over the checker, so a translucent swatch reads as one. */\n background:\n linear-gradient(var(--swatch), var(--swatch)),\n var(--wzl-checker-layer);\n background-clip: padding-box;\n cursor: pointer;\n}\n\n/* Out of flow, so a glyph never sizes its swatch. */\n._glyph_f76bdc {\n position: absolute;\n inset: 0;\n display: grid;\n place-items: center;\n overflow: hidden;\n color: var(--swatch-ink, inherit);\n font-size: var(--wzl-font-size-2xs);\n font-weight: var(--wzl-font-weight-bold);\n line-height: 1;\n pointer-events: none;\n}\n\n._swatch_f76bdc:hover {\n border-color: var(--wzl-fg-muted);\n}\n\n._swatch_f76bdc[aria-current] {\n border-color: var(--wzl-accent);\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n\n._swatch_f76bdc:focus-visible {\n position: relative;\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* No paint: the checker crossed by the danger diagonal. */\n._swatch_f76bdc[data-none] {\n background:\n linear-gradient(\n 45deg,\n transparent calc(50% - 1px),\n var(--wzl-danger) calc(50% - 1px),\n var(--wzl-danger) calc(50% + 1px),\n transparent calc(50% + 1px)\n ),\n var(--wzl-checker-layer);\n}\n\n/* On a curved shape: every row a ring of its own, which `useRunRow` lays its items along. */\n._rings_f76bdc {\n --swatch-size: 20px;\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._ringGroup_f76bdc {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._ring_f76bdc {\n column-gap: var(--wzl-space-2);\n}\n\n._ring_f76bdc > ._swatch_f76bdc {\n inline-size: var(--swatch-size);\n block-size: var(--swatch-size);\n}\n\n/* A grid swatch goes relative to lift its focus ring; one on a ring stays where it was placed. */\n._ring_f76bdc > ._swatch_f76bdc:focus-visible {\n position: absolute;\n}\n\n/* A ring's drag band is a pitch wide, so it never takes a press meant for the ring beside it. */\n._ring_f76bdc > svg > path {\n stroke-width: calc(var(--swatch-size) + var(--wzl-space-2));\n}\n\n._ringExtra_f76bdc {\n white-space: nowrap;\n}\n._root_a991c8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* On a curved shape the rings lie over the shape's box, and only the swatches take input. */\n._rings_a991c8 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._section_a991c8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n min-inline-size: 0;\n}\n\n._heading_a991c8 {\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-medium);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n color: var(--wzl-fg-muted);\n}\n\n._empty_a991c8 {\n margin: 0;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n._frame_4057f9 {\n --_frame-h: auto;\n display: flex;\n padding: var(--wzl-space-2) var(--wzl-field-pad-x);\n line-height: 1.4;\n}\n\n._frame_4057f9 textarea {\n flex: 1;\n min-width: 0;\n padding: 0;\n background: transparent;\n border: none;\n outline: none;\n color: inherit;\n font: inherit;\n resize: vertical;\n}\n\n._frame_4057f9 textarea::placeholder {\n color: var(--wzl-fg-subtle);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n\n._ruler_f2d463 {\n position: relative;\n height: var(--wzl-control-h);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n cursor: ew-resize;\n user-select: none;\n overflow: hidden;\n}\n\n._tick_f2d463 {\n position: absolute;\n top: 0;\n transform: translateX(2px);\n color: var(--wzl-fg-muted);\n pointer-events: none;\n white-space: nowrap;\n}\n\n._tick_f2d463::before {\n content: '';\n position: absolute;\n left: -2px;\n top: 0;\n bottom: 0;\n border-left: 1px solid var(--wzl-border);\n}\n\n._playhead_f2d463 {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background: var(--wzl-accent-strong);\n pointer-events: none;\n}\n\n._lane_f2d463 {\n display: flex;\n align-items: stretch;\n min-height: var(--wzl-control-h-sm);\n border-bottom: 1px solid var(--wzl-line-subtle);\n}\n\n._laneLabel_f2d463 {\n /* Must match `.gutter`'s width exactly, or every key sits off the ruler. */\n box-sizing: border-box;\n flex: 0 0 var(--wzl-timeline-label-w, 120px);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-inline: var(--wzl-space-3);\n padding-inline-start: calc(var(--wzl-space-3) + var(--depth, 0) * var(--wzl-space-6));\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._lane_f2d463[data-depth='1'] ._laneLabel_f2d463 { --depth: 1; }\n._lane_f2d463[data-depth='2'] ._laneLabel_f2d463 { --depth: 2; }\n._lane_f2d463[data-depth='3'] ._laneLabel_f2d463 { --depth: 3; }\n\n._disclosure_f2d463 { display: inline-flex; flex: none; cursor: pointer; }\n\n._laneTrack_f2d463 {\n position: relative;\n flex: 1 1 auto;\n min-width: 0;\n background: var(--wzl-surface);\n}\n\n._key_f2d463, ._eventMark_f2d463 {\n position: absolute;\n top: 50%;\n width: var(--wzl-handle-size);\n height: var(--wzl-handle-size);\n margin-left: calc(var(--wzl-handle-size) / -2);\n background: var(--wzl-fg-muted);\n cursor: ew-resize;\n}\n\n._key_f2d463 { transform: translateY(-50%) rotate(45deg); }\n._eventMark_f2d463 { transform: translateY(-50%); border-radius: 50%; }\n\n._key_f2d463[aria-current='true'], ._eventMark_f2d463[aria-current='true'] { background: var(--wzl-accent-strong); }\n._key_f2d463:focus-visible, ._eventMark_f2d463:focus-visible { outline: 2px solid var(--wzl-focus-ring); outline-offset: 1px; }\n\n/* The key stays drawn where it was committed while its ghost tracks the\n pointer, so the drag reads as a move from somewhere to somewhere. */\n._key_f2d463[data-dragging='true'], ._eventMark_f2d463[data-dragging='true'] { opacity: 0.4; }\n\n._keyGhost_f2d463, ._eventGhost_f2d463 {\n position: absolute;\n top: 50%;\n width: var(--wzl-handle-size);\n height: var(--wzl-handle-size);\n margin-left: calc(var(--wzl-handle-size) / -2);\n background: var(--wzl-accent-soft);\n border: 1px dashed var(--wzl-accent-strong);\n pointer-events: none;\n}\n\n._keyGhost_f2d463 { transform: translateY(-50%) rotate(45deg); }\n._eventGhost_f2d463 { transform: translateY(-50%); border-radius: 50%; }\n\n._lane_f2d463[data-mode='graph'] { min-height: 72px; }\n\n/* A numeric lane in graph mode is a curve editor filling the track. */\n._graphHost_f2d463 {\n position: absolute;\n inset: 0;\n}\n\n/* Out-specifies the editor's own defaults: the lane keeps the track's ground\n and the timeline's accent line rather than a plot's. */\n._graphHost_f2d463 ._graph_f2d463 {\n --plot-bg: transparent;\n --curve-line: var(--wzl-accent-strong);\n --curve-line-width: 1px;\n}\n\n/* A graph lane's value labels hang off the track's start edge into the label\n column, so the lane's own label ellipsizes before it reaches them. */\n._lane_f2d463[data-graph='true'] ._laneLabel_f2d463 {\n padding-inline-end: calc(var(--wzl-space-3) + var(--wzl-timeline-value-axis-w, 32px));\n}\n\n._nestedBar_f2d463 {\n position: absolute;\n top: 4px;\n bottom: 4px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._transport_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._transportButton_f2d463 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: var(--wzl-icon-button-size);\n padding: var(--wzl-space-1) var(--wzl-space-3);\n /* Sits on `--wzl-surface-raised`, so a transparent fill and a border that\n close in value leave it reading as text rather than as a control. */\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: inherit;\n cursor: pointer;\n}\n\n._transportButton_f2d463:hover { border-color: var(--wzl-fg-muted); }\n\n._transportButton_f2d463[aria-checked='true'] {\n background: var(--wzl-accent-soft);\n border-color: var(--wzl-accent-strong);\n color: var(--wzl-accent-fg);\n}\n\n/* The bar's chrome lives on the row, so controls beside `<Transport>` sit\n inside it rather than hanging off the panel's corner. `.transport` keeps its\n own chrome for standalone use. */\n._transportRow_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding-inline-end: var(--wzl-space-3);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._transportRow_f2d463 > ._transport_f2d463 {\n flex: 1 1 auto;\n border-bottom: 0;\n background: transparent;\n}\n\n/* The playhead rewrites this every frame and gains a digit at 10s. Its sizer\n holds the cell at the duration's width, so a transport sized to its content\n does not widen; last in the row, it also takes whatever slack the row has. */\n._time_f2d463 {\n display: inline-grid;\n margin-inline-start: auto;\n text-align: end;\n color: var(--wzl-fg-muted);\n}\n._rate_f2d463 { display: inline-flex; align-items: center; gap: var(--wzl-space-3); color: var(--wzl-fg-muted); }\n._rateSlider_f2d463 { width: 88px; }\n\n/* The detents carry no labels in a bar this dense, so the chosen rate is said\n once, here, in a cell as wide as the widest rate on offer. */\n._rateReadout_f2d463 {\n display: inline-grid;\n text-align: end;\n color: var(--wzl-fg);\n}\n\n._time_f2d463 > *,\n._rateReadout_f2d463 > * {\n grid-area: 1 / 1;\n}\n\n._sizer_f2d463 {\n}\n\n._root_f2d463 {\n display: flex;\n flex-direction: column;\n min-height: 0;\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n /* `--wzl-font-ui` is condensed, so it reads a size smaller than it measures.\n Everything below inherits this; override per rule only to go up. */\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-snug);\n}\n\n._label_f2d463 { padding: var(--wzl-space-2) var(--wzl-space-3); color: var(--wzl-fg-muted); }\n\n._body_f2d463 { display: flex; align-items: stretch; }\n._gutter_f2d463 { box-sizing: border-box; flex: 0 0 var(--wzl-timeline-label-w, 120px); border-right: 1px solid var(--wzl-border); }\n._rulerWrap_f2d463 { flex: 1 1 auto; min-width: 0; }\n\n._lanes_f2d463 {\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n._inspector_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-top: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._segment_f2d463 {\n position: absolute;\n top: 0;\n bottom: 0;\n cursor: pointer;\n}\n\n._segment_f2d463[aria-current='true'] { background: var(--wzl-accent-soft); }\n._segment_f2d463:focus-visible { outline: 2px solid var(--wzl-focus-ring); outline-offset: -2px; }\n\n._easingPicker_f2d463 { display: inline-flex; align-items: center; gap: var(--wzl-space-3); }\n._easingLabel_f2d463 { color: var(--wzl-fg-muted); }\n\n._easingPreview_f2d463 {\n width: 32px;\n height: 32px; /* not-a-control */\n fill: none;\n stroke: var(--wzl-accent-strong);\n stroke-width: 1;\n border: 1px solid var(--wzl-border);\n}\n\n/* The play glyph turned around, for the switch that runs playback backward. */\n._backward_a7ae77 {\n transform: scaleX(-1);\n}\n\n/* The one control in the bar with no natural width: it takes the slack. */\n._scrub_a7ae77 {\n flex: 1 1 auto;\n min-width: 80px;\n}\n._region_82468d {\n position: fixed;\n z-index: var(--wzl-z-toast);\n display: flex;\n /* RAC unshifts new toasts to the front of the DOM (newest-first), and the\n * ol/li wrappers are display:contents, so the flex direction alone\n * decides which end of the stack the newest toast lands on. Base\n * (bottom corners): column-reverse puts DOM-first (newest) at the\n * bottom, hugging the corner. Top corners override back to column so\n * DOM-first still hugs the top edge. */\n flex-direction: column-reverse;\n gap: var(--wzl-space-4);\n max-width: 420px;\n outline: none;\n}\n\n._bottomRight_82468d { bottom: 16px; right: 16px; }\n._bottomLeft_82468d { bottom: 16px; left: 16px; }\n._topRight_82468d { top: 16px; right: 16px; flex-direction: column; }\n._topLeft_82468d { top: 16px; left: 16px; flex-direction: column; }\n\n._toast_82468d {\n --toast-accent: var(--wzl-grade);\n /* Groups every toast under one ident so toastViewTransitions.css can\n * target `::view-transition-new/old(.wzl-toast)` without knowing the\n * per-toast view-transition-name (set inline in Toast.tsx). */\n view-transition-class: wzl-toast;\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-4);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-inline-start: 3px solid var(--toast-accent);\n border-radius: var(--wzl-radius-md);\n box-shadow: 0 8px 24px var(--wzl-shadow);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n padding: var(--wzl-space-7) var(--wzl-space-8);\n outline: none;\n}\n\n._region_82468d[data-focus-visible],\n._toast_82468d[data-focus-visible] {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._content_82468d {\n flex: 1;\n min-width: 0;\n}\n\n._title_82468d {\n display: block;\n font-size: var(--wzl-font-size-lg);\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._description_82468d {\n display: block;\n margin-top: var(--wzl-space-2);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg-muted);\n}\n\n/* Given a container, the stack sits in its corner rather than the viewport's. */\n._contained_82468d {\n position: absolute;\n}\n/* View-transition choreography for the toast stack.\n *\n * Deliberately global (not a CSS module): view-transition pseudo-elements\n * attach to the document root, and the `.wzl-toast` argument must match\n * the literal `view-transition-class` set in Toast.module.css — none of\n * these idents may be hashed.\n *\n * Everything is scoped by `:root.wzl-toast-vt`, which queue.ts holds set\n * only for the lifetime of a toast-triggered transition:\n * - un-naming :root keeps the rest of the page out of the transition,\n * so it stays live (canvas keeps animating) instead of freezing into\n * a snapshot;\n * - pointer-events: none keeps the transition overlay from swallowing\n * input while a background notification animates.\n *\n * Reduced-motion users never get here (queue.ts skips the view transition\n * entirely).\n */\n\n:root.wzl-toast-vt {\n view-transition-name: none;\n}\n\n:root.wzl-toast-vt::view-transition {\n pointer-events: none;\n}\n\n/* Entering toast: rise + fade. `:only-child` restricts the rule to\n * genuine entries — a group with an old+new pair is a surviving toast\n * reflowing, which keeps the default smooth position animation. */\n:root.wzl-toast-vt::view-transition-new(.wzl-toast):only-child {\n animation: wzl-toast-enter var(--wzl-motion-medium) var(--wzl-ease-out-cubic) both;\n}\n\n/* Exiting toast: quick fade + slight shrink. */\n:root.wzl-toast-vt::view-transition-old(.wzl-toast):only-child {\n animation: wzl-toast-exit var(--wzl-motion-fast) var(--wzl-ease-in-cubic) both;\n}\n\n@keyframes wzl-toast-enter {\n from {\n opacity: 0;\n translate: 0 16px;\n }\n}\n\n@keyframes wzl-toast-exit {\n to {\n opacity: 0;\n scale: 0.92;\n }\n}\n/* Every control in the panel sits at the smallest control height, so a set of\n ninety tokens reads as a list rather than a form. */\n._panel_c10a29 {\n --tp-rail: min(36%, 10rem);\n --wzl-field-h: var(--wzl-control-h-xs);\n --wzl-control-h-sm: var(--wzl-control-h-xs);\n --wzl-font-size: var(--wzl-font-size-sm);\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._section_c10a29 {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._section_c10a29 + ._section_c10a29 {\n border-top: var(--wzl-border-w) solid var(--wzl-line-subtle);\n}\n\n._sectionHead_c10a29 {\n padding-block: var(--wzl-space-xs);\n color: var(--wzl-fg-muted);\n font-family: var(--wzl-font-display);\n font-size: var(--wzl-font-size-xs);\n letter-spacing: var(--wzl-tracking-wider);\n text-transform: uppercase;\n}\n\n._sectionBody_c10a29 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n padding-block-end: var(--wzl-space-sm);\n}\n\n/* Name, control, reset: the third column holds the reset when there is one,\n so a value never shifts sideways as it is overridden. */\n._row_c10a29,\n._family_c10a29,\n._scale_c10a29 {\n display: grid;\n grid-template-columns: var(--tp-rail) minmax(0, 1fr) 16px;\n align-items: center;\n column-gap: var(--wzl-space-xs);\n min-width: 0;\n}\n\n._name_c10a29 {\n grid-column: 1;\n overflow: hidden;\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-xs);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._row_c10a29[data-overridden] > ._name_c10a29,\n._family_c10a29:has(._swatch_c10a29[data-overridden]) > ._name_c10a29,\n._scale_c10a29:has([data-overridden]) > ._name_c10a29 {\n color: var(--wzl-accent-fg);\n}\n\n/* A run's group name, shown on its first row and held invisibly on the rest so their suffixes line up. */\n._lead_c10a29 {\n margin-inline-end: 0.4em;\n color: var(--wzl-fg-muted);\n}\n\n._lead_c10a29[data-hidden] {\n visibility: hidden;\n}\n\n._row_c10a29[data-unset] > ._name_c10a29 {\n color: var(--wzl-fg-subtle);\n}\n\n._edit_c10a29 {\n grid-column: 2;\n display: flex;\n max-width: 18rem;\n align-items: center;\n gap: var(--wzl-space-xs);\n min-width: 0;\n}\n\n._reset_c10a29 {\n --wzl-control-h-sm: 16px;\n grid-column: 3;\n justify-self: center;\n color: var(--wzl-fg-muted);\n}\n\n._field_c10a29 {\n --wzl-font-ui: var(--wzl-font-mono);\n --wzl-font-size: var(--wzl-font-size-xs);\n flex: 1;\n min-width: 0;\n}\n\n._number_c10a29 {\n --wzl-font-size: var(--wzl-font-size-xs);\n flex: 1;\n min-width: 0;\n}\n\n/* A lone number needs a few digits, not the rail's whole remainder. */\n._edit_c10a29 > ._number_c10a29 {\n flex: 0 1 5rem;\n}\n\n._unit_c10a29 {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* × and + read as operators, so they sit at text size rather than unit size. */\n._op_c10a29 {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n}\n\n/* Padding inflates a native color input past its box in Chrome. */\n._swatchInput_c10a29 {\n box-sizing: border-box;\n flex-shrink: 0;\n width: 14px;\n height: 12px;\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n}\n\n._chip_c10a29 {\n flex-shrink: 0;\n width: 14px;\n height: 12px;\n background: var(--token-color);\n border-radius: var(--wzl-radius-sm);\n box-shadow: inset 0 0 0 1px var(--wzl-line);\n}\n\n._curve_c10a29 {\n flex-shrink: 0;\n width: 16px;\n /* Square easing-curve artwork: not-a-control */\n height: 16px;\n color: var(--wzl-fg);\n}\n\n._strip_c10a29 {\n grid-column: 2;\n display: flex;\n height: var(--wzl-control-h-xs);\n overflow: hidden;\n border: var(--wzl-border-w) solid var(--wzl-line);\n border-radius: var(--wzl-radius-sm);\n}\n\n._swatch_c10a29 {\n flex: 1 1 0;\n min-width: 0;\n height: 100%;\n padding: 0;\n background: var(--token-color);\n border: 0;\n border-radius: 0;\n cursor: pointer;\n}\n\n._swatch_c10a29[data-overridden] {\n box-shadow: inset 0 -3px 0 var(--wzl-accent);\n}\n\n._swatch_c10a29[aria-pressed='true'],\n._swatch_c10a29:focus-visible {\n position: relative;\n z-index: 1;\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._tip_c10a29 {\n display: flex;\n gap: var(--wzl-space-sm);\n align-items: baseline;\n}\n\n._tip_c10a29 code {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-xs);\n}\n\n/* A picked swatch's editor opens under the strip, its name on the same rail. */\n._family_c10a29 > ._row_c10a29 {\n grid-column: 1 / -1;\n margin-block-start: var(--wzl-space-1);\n}\n\n._scale_c10a29 {\n row-gap: var(--wzl-space-1);\n}\n\n/* Its steps take the panel's full width under the name, where a rail-width\n column would hold three of them. */\n._scaleBody_c10a29 {\n display: contents;\n}\n\n._scaleBody_c10a29 > ._rule_c10a29 {\n grid-column: 2 / -1;\n grid-row: 1;\n justify-content: flex-end;\n}\n\n._scaleBody_c10a29 > ._steps_c10a29 {\n grid-column: 1 / -1;\n}\n\n/* A scale the slider cannot draw: a grid of steps, each labeled by what its name adds. */\n._steps_c10a29 {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));\n gap: var(--wzl-space-1);\n}\n\n._rule_c10a29 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-1) var(--wzl-space-xs);\n min-width: 0;\n}\n\n._ruleLabel_c10a29 {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n._rule_c10a29 ._number_c10a29 {\n flex: 0 0 4.5ch;\n text-align: end;\n}\n\n._step_c10a29 {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._stepLabel_c10a29 {\n overflow: hidden;\n padding-inline-end: calc(var(--wzl-field-pad-x) + var(--wzl-border-w));\n text-align: end;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._step_c10a29[data-overridden] ._stepLabel_c10a29 {\n color: var(--wzl-accent-fg);\n}\n\n._stepEdit_c10a29 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-width: 0;\n}\n\n._stepEdit_c10a29 ._number_c10a29 {\n text-align: end;\n}\n\n/* The rule controls take the reset's column, so a scale's reset sits at the end of its name. */\n._scale_c10a29 > ._reset_c10a29 {\n grid-column: 1;\n grid-row: 1;\n justify-self: end;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* Under the name, across the panel's full width, as the grid of steps was. */\n._slider_49a37c {\n grid-column: 1 / -1;\n min-width: 0;\n padding-inline: var(--wzl-space-sm);\n}\n\n._readout_49a37c {\n display: flex;\n flex-direction: column;\n align-items: center;\n line-height: 1.2;\n}\n\n._label_49a37c {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n._readout_49a37c[data-overridden] ._label_49a37c {\n color: var(--wzl-accent-fg);\n}\n\n._amount_49a37c {\n font-size: var(--wzl-font-size-2xs);\n}\n._palette_9c3966 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-2);\n box-shadow: var(--wzl-bevel-raised, none);\n user-select: none;\n}\n._palette_9c3966._horizontal_9c3966 {\n flex-direction: row;\n}\n\n/* Marker only — `useRovingTabIndex` finds the palette's buttons by this class.\n Carries no styles; deleting it breaks keyboard navigation. */\n._paletteBtn_9c3966 {}\n\n/* A button a press carries out: a touch drag carries rather than scrolls. */\n._carrySource_9c3966 {\n touch-action: none;\n}\n\n/* Applied to ineligible tool buttons in the active mode. */\n._ineligibleBtn_9c3966 {\n opacity: 0.35;\n cursor: not-allowed;\n}\n\n._separator_9c3966 {\n background: var(--wzl-border);\n}\n._palette_9c3966:not(._horizontal_9c3966) ._separator_9c3966 {\n height: 1px;\n margin: var(--wzl-space-1) 0;\n}\n._palette_9c3966._horizontal_9c3966 ._separator_9c3966 {\n width: 1px;\n margin: 0 var(--wzl-space-1);\n}\n/* A bar's or a toolbar's own name: a field label's face and case, one step up the weight scale from a label's light,\n so it reads above its fields' names. */._label_89c1e8 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n white-space: nowrap;\n}\n\n:where(._toolbar_7115cf) {\n gap: var(--wzl-space-sm);\n padding: var(--wzl-space-1) var(--wzl-space-sm);\n}\n\n._toolbar_7115cf {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n._wrap_7115cf { flex-wrap: wrap; }\n\n:where(._group_7115cf) {\n gap: var(--wzl-space-1);\n}\n\n._group_7115cf {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n/* The rule belongs between groups, so it rides on the group rather than being a node the caller has to interleave. */\n._group_7115cf + ._group_7115cf {\n padding-inline-start: var(--wzl-space-sm);\n border-inline-start: 1px solid var(--wzl-line-subtle);\n}\n\n._end_7115cf { margin-inline-start: auto; }\n\n/* A group pushed to the end already reads as separated by the gap. */\n._end_7115cf + ._group_7115cf,\n._group_7115cf + ._end_7115cf {\n padding-inline-start: 0;\n border-inline-start: none;\n}\n\n._spacer_7115cf { flex: 1; }\n\n._sm_7115cf {\n --wzl-control-h: 22px;\n --wzl-button-icon-size: 16px;\n --wzl-button-pad-x: var(--wzl-space-sm);\n --wzl-button-font-weight: var(--wzl-font-weight-normal);\n}\n\n._framed_7115cf {\n min-height: calc(var(--wzl-control-h) + 4px);\n background: var(--wzl-surface-raised);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._title_7115cf {\n margin-inline-end: var(--wzl-space-sm);\n}\n/* Docks round a workspace. An edge with no bars draws nothing, so its track collapses. */\n._root_3a9c7d {\n position: relative;\n display: grid;\n grid-template:\n 'top top top' auto\n 'left main right' minmax(0, 1fr)\n 'bottom bottom bottom' auto\n / auto minmax(0, 1fr) auto;\n height: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n._top_3a9c7d {\n grid-area: top;\n}\n\n._bottom_3a9c7d {\n grid-area: bottom;\n}\n\n._left_3a9c7d {\n grid-area: left;\n}\n\n._right_3a9c7d {\n grid-area: right;\n}\n\n._top_3a9c7d,\n._bottom_3a9c7d {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._left_3a9c7d,\n._right_3a9c7d {\n display: flex;\n min-height: 0;\n}\n\n/* Isolated, so nothing in the workspace stacks above the floating layer. */\n._main_3a9c7d {\n grid-area: main;\n position: relative;\n isolation: isolate;\n min-width: 0;\n min-height: 0;\n}\n\n/* Floating bars sit over the whole dock, docks and workspace alike. The layer lets the pointer through; its bars\n don't. */\n._layer_3a9c7d {\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n}\n\n._floating_3a9c7d {\n position: absolute;\n left: var(--dock-float-x, 0);\n top: var(--dock-float-y, 0);\n display: flex;\n pointer-events: auto;\n}\n\n._floating_3a9c7d:not([data-placed]),\n._floating_3a9c7d:empty,\n._floating_3a9c7d:has(> ._host_3a9c7d:empty) {\n visibility: hidden;\n}\n\n._floating_3a9c7d[data-dock-dragging] {\n box-shadow: 0 4px 16px var(--wzl-shadow);\n}\n\n/* The room a lifted bar's slot keeps while the bar floats under the pointer. */\n._hold_3a9c7d {\n inline-size: var(--dock-hold-w);\n block-size: var(--dock-hold-h);\n}\n\n/* An empty dock a dragged bar may enter: a strip along its edge to drop on. */\n._empty_3a9c7d {\n position: absolute;\n border: 1px dashed var(--wzl-accent);\n border-radius: var(--wzl-radius-sm);\n}\n\n._empty_3a9c7d[data-dock-edge='top'] {\n inset: 0 0 auto;\n block-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='bottom'] {\n inset: auto 0 0;\n block-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='left'] {\n inset: 0 auto 0 0;\n inline-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='right'] {\n inset: 0 0 0 auto;\n inline-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-drop] {\n border-style: solid;\n background: color-mix(in srgb, var(--wzl-accent) 20%, transparent);\n}\n\n._dock_3a9c7d {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._left_3a9c7d > ._dock_3a9c7d,\n._right_3a9c7d > ._dock_3a9c7d {\n flex-direction: row;\n min-height: 0;\n}\n\n._row_3a9c7d {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-width: 0;\n}\n\n._left_3a9c7d ._row_3a9c7d,\n._right_3a9c7d ._row_3a9c7d {\n flex-direction: column;\n align-items: stretch;\n min-height: 0;\n}\n\n/* What the dock draws round each bar, so a drag can mark it. A squeezed row shrinks it no shorter than its bar's\n least length (`--dock-least`, which the bar reports), so the long bars give up their items before a short one loses\n its only item. */\n._slot_3a9c7d {\n display: flex;\n min-inline-size: var(--dock-least, 0);\n}\n\n._left_3a9c7d ._slot_3a9c7d,\n._right_3a9c7d ._slot_3a9c7d {\n flex-direction: column;\n min-inline-size: 0;\n min-block-size: var(--dock-least, 0);\n}\n\n/* The element a bar is drawn into, which moves with the bar from slot to slot; the bar lays out as the slot's own. */\n._host_3a9c7d {\n display: contents;\n}\n\n/* A bar whose content draws nothing takes no room, nor a gap in its row. */\n._slot_3a9c7d:empty,\n._slot_3a9c7d:has(> ._host_3a9c7d:empty) {\n display: none;\n}\n\n/* A bar a drag has lifted. */\n._slot_3a9c7d[data-dock-dragging] {\n opacity: 0.5;\n}\n\n/* Where the lifted bar would land: a bar on that side of the bar it lands beside, drawn outside its box so nothing\n moves. */\n._slot_3a9c7d[data-dock-drop='before'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d[data-dock-drop='after'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d:dir(rtl)[data-dock-drop='before'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d:dir(rtl)[data-dock-drop='after'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._left_3a9c7d ._slot_3a9c7d[data-dock-drop='before'],\n._right_3a9c7d ._slot_3a9c7d[data-dock-drop='before'] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._left_3a9c7d ._slot_3a9c7d[data-dock-drop='after'],\n._right_3a9c7d ._slot_3a9c7d[data-dock-drop='after'] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* A new row the lifted bar would make: a 2px line between rows, taking no room. */\n._newRow_3a9c7d {\n flex: none;\n block-size: 0;\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n\n._left_3a9c7d ._newRow_3a9c7d,\n._right_3a9c7d ._newRow_3a9c7d {\n block-size: auto;\n inline-size: 0;\n}\n\n/* A dock the lifted bar may not enter. */\n._dock_3a9c7d[data-dock-unavailable] {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* The live region a keyboard move announces in: out of sight, still read. */\n._status_3a9c7d {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n/*$vite$:1*/",":host {\n all: initial;\n}\n\n.bp-root {\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n}\n\n.bp-pill,\n.bp-window {\n position: fixed;\n z-index: 2147483646;\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);\n}\n\n.bp-pill {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n cursor: grab;\n}\n\n.bp-window {\n display: flex;\n flex-direction: column;\n width: 640px;\n height: 420px;\n min-width: 360px;\n min-height: 200px;\n border-radius: 8px;\n overflow: hidden;\n resize: both;\n}\n\n.bp-bar {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-sunken);\n cursor: grab;\n}\n\n.bp-root button,\n.bp-root select,\n.bp-root input {\n font: inherit;\n color: inherit;\n background: var(--wzl-surface-raised);\n border: 1px solid var(--wzl-border);\n border-radius: 4px;\n padding: 1px 6px;\n}\n\n.bp-root button:disabled,\n.bp-root select:disabled,\n.bp-root input:disabled {\n opacity: 0.45;\n}\n\n.bp-root button.bp-on {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n border-color: var(--wzl-accent);\n}\n\n.bp-scrub {\n flex: 1;\n min-width: 80px;\n padding: 0;\n}\n\n.bp-name {\n font-weight: 600;\n white-space: nowrap;\n}\n\n.bp-time {\n font-variant-numeric: tabular-nums;\n min-width: 7ch;\n margin-inline-start: auto;\n text-align: end;\n}\n\n.bp-note {\n margin: 0;\n padding: 2px 8px;\n color: var(--wzl-fg-muted);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n.bp-body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n\n.bp-side {\n width: 200px;\n flex: none;\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 6px;\n border-right: 1px solid var(--wzl-border);\n overflow: auto;\n}\n\n.bp-row {\n display: flex;\n gap: 4px;\n}\n\n.bp-search {\n flex: 1;\n min-width: 0;\n}\n\n.bp-list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.bp-root .bp-item {\n display: block;\n width: 100%;\n text-align: start;\n border-color: transparent;\n background: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bp-head {\n margin: 6px 0 0;\n font-size: inherit;\n font-weight: 600;\n color: var(--wzl-fg-muted);\n}\n\n.bp-row:has(> .bp-head) {\n align-items: baseline;\n margin-top: 6px;\n}\n\n.bp-row > .bp-head {\n flex: 1;\n margin: 0;\n}\n\n.bp-voice {\n display: grid;\n grid-template-columns: 1fr auto 5ch;\n gap: 6px;\n padding: 1px 6px;\n}\n\n.bp-num {\n font-variant-numeric: tabular-nums;\n text-align: end;\n}\n\n.bp-muted {\n color: var(--wzl-fg-muted);\n}\n\n.bp-plots {\n flex: 1;\n overflow: auto;\n padding: 6px 8px;\n margin: 0;\n}\n\n.bp-window.bp-docked {\n position: static;\n width: 100%;\n height: 100%;\n min-width: 0;\n border: none;\n border-radius: 0;\n box-shadow: none;\n resize: none;\n}\n","import ui from '@weasel-js/ui/style.css?inline';\nimport css from './ui/panel.css?inline';\n\n/** Every stylesheet the panel needs, as text, for a host to put where the panel renders. */\nexport const panelStyles: string = `${ui}\\n${css}`;\n","export interface Series {\n id: string;\n hue: number;\n /** Overrides the color a hue gives. */\n color?: string;\n values: readonly number[];\n thick?: boolean;\n}\n\nexport function rangeOf(series: readonly Series[]): [number, number] {\n let lo = Number.POSITIVE_INFINITY;\n let hi = Number.NEGATIVE_INFINITY;\n for (const s of series)\n for (const v of s.values)\n if (Number.isFinite(v)) {\n if (v < lo) lo = v;\n if (v > hi) hi = v;\n }\n if (!Number.isFinite(lo)) return [-0.5, 0.5];\n if (hi - lo < 1e-9) return [lo - 0.5, hi + 0.5];\n const pad = (hi - lo) * 0.05;\n return [lo - pad, hi + pad];\n}\n\n/** Widens [lo, hi] so `px` pixels of a `size`-pixel axis lie beyond each end. */\nexport function insetRange([lo, hi]: [number, number], px: number, size: number): [number, number] {\n const pad = ((hi - lo) * px) / Math.max(1, size - 2 * px);\n return [lo - pad, hi + pad];\n}\n\nexport function pathOf(\n times: readonly number[],\n values: readonly number[],\n x: (t: number) => number,\n y: (v: number) => number,\n): string {\n let d = '';\n let pen = false;\n times.forEach((t, i) => {\n const v = values[i];\n if (v === undefined || !Number.isFinite(v)) {\n pen = false;\n return;\n }\n d += `${pen ? 'L' : 'M'}${Math.round(x(t) * 100) / 100} ${Math.round(y(v) * 100) / 100}`;\n pen = true;\n });\n return d;\n}\n","import { modelToPlot, Plot2D } from '@weasel-js/ui';\nimport { hueColor } from './hue.js';\nimport { insetRange, pathOf, rangeOf, type Series } from './path.js';\n\nexport interface ChannelPlotProps {\n label: string;\n times: readonly number[];\n series: readonly Series[];\n playhead: number;\n /** The span of time drawn; the samples' own span otherwise. */\n range?: readonly [number, number];\n width?: number;\n height?: number;\n}\n\nconst LABEL_ROOM = 8; // px kept clear above and below the data so edge tick labels fit\n\n// Carried with the component, so it draws the same in a page, a shadow root, or an app's tree.\nconst CSS = `\n.bp-plot { margin: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }\n.bp-plot-surface { margin-block-end: calc(var(--wzl-font-size-xs) + 6px); }\n.bp-plot-label { font-family: var(--wzl-font-ui); font-size: var(--wzl-font-size-xs); color: var(--wzl-fg-muted); }\n.bp-plot-thin, .bp-plot-thick { fill: none; stroke-linejoin: round; }\n.bp-plot-thin { stroke-width: 1; opacity: 0.65; }\n.bp-plot-thick { stroke-width: 2.5; }\n.bp-plot-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n`;\n\n/**\n * Values over time, one line per series, with a playhead: the plot the playground's inspector\n * and the panel both draw.\n */\nexport function ChannelPlot({\n label,\n times,\n series,\n playhead,\n range: span,\n width = 320,\n height = 90,\n}: ChannelPlotProps) {\n const [yMin, yMax] = insetRange(rangeOf(series), LABEL_ROOM, height);\n const xMin = span?.[0] ?? times[0] ?? 0;\n const xMax = Math.max(xMin + 1e-9, span?.[1] ?? times[times.length - 1] ?? 1);\n const range = { xMin, xMax, yMin, yMax };\n const size = { width, height };\n const x = (t: number) => modelToPlot({ x: t, y: yMin }, range, size).x;\n const y = (v: number) => modelToPlot({ x: xMin, y: v }, range, size).y;\n const px = x(Math.min(xMax, Math.max(xMin, playhead)));\n return (\n <figure className=\"bp-plot\">\n <style>{CSS}</style>\n <figcaption className=\"bp-plot-label\">{label}</figcaption>\n <Plot2D\n width={width}\n height={height}\n xRange={[xMin, xMax]}\n yRange={[yMin, yMax]}\n className=\"bp-plot-surface\"\n axes={false}\n xTicks={{ labels: 'outside' }}\n yTicks={{ labels: 'inside' }}\n aria-label={label}\n >\n {series.map((ser) => (\n <path\n key={ser.id}\n className={ser.thick ? 'bp-plot-thick' : 'bp-plot-thin'}\n d={pathOf(times, ser.values, x, y)}\n stroke={ser.color ?? hueColor(ser.hue)}\n />\n ))}\n <line className=\"bp-plot-playhead\" x1={px} x2={px} y1={0} y2={height} />\n </Plot2D>\n </figure>\n );\n}\n","import { modelToPlot } from '@weasel-js/ui';\nimport { useId } from 'react';\n\nexport interface ColorStripProps {\n label: string;\n times: readonly number[];\n /** Each sample's colors: the one shown, then an ordered blend mode's layers, bottom first. */\n colors: readonly (readonly string[] | undefined)[];\n playhead: number;\n /** The span of time drawn; the samples' own span otherwise. */\n range?: readonly [number, number];\n width?: number;\n}\n\nconst SHOWN = 22;\nconst LAYER = 9;\nconst GAP = 2;\n\n// Carried with the component, so it draws the same in a page, a shadow root, or an app's tree.\nconst CSS = `\n.bp-strip { margin: 0 0 6px; display: grid; gap: 2px; }\n.bp-strip-label { font-family: var(--wzl-font-ui); font-size: var(--wzl-font-size-xs); color: var(--wzl-fg-muted); }\n.bp-strip-check-a { fill: var(--wzl-surface-sunken); }\n.bp-strip-check-b { fill: var(--wzl-border); }\n.bp-strip-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n.bp-strip-layer-label { font-family: var(--wzl-font-ui); font-size: 8px; fill: var(--wzl-fg-muted); }\n`;\n\n/**\n * A color channel over time: a band painted with the color it shows at each sample, over a\n * checkerboard so its opacity reads, and a thin band per layer of an ordered blend mode beneath.\n */\nexport function ColorStrip({\n label,\n times,\n colors,\n playhead,\n range: span,\n width = 320,\n}: ColorStripProps) {\n const check = `bp-check${useId().replace(/[^\\w-]/g, '')}`;\n const layers = colors.reduce((n, c) => Math.max(n, (c?.length ?? 1) - 1), 0);\n const height = SHOWN + layers * (LAYER + GAP);\n const xMin = span?.[0] ?? times[0] ?? 0;\n const xMax = Math.max(xMin + 1e-9, span?.[1] ?? times[times.length - 1] ?? 1);\n const range = { xMin, xMax, yMin: 0, yMax: 1 };\n const x = (t: number) => modelToPlot({ x: t, y: 0 }, range, { width, height }).x;\n const px = x(Math.min(xMax, Math.max(xMin, playhead)));\n const row = (j: number) =>\n j === 0 ? { y: 0, h: SHOWN } : { y: SHOWN + (j - 1) * (LAYER + GAP) + GAP, h: LAYER };\n const bands = Array.from({ length: layers + 1 }, (_, j) => ({\n name: j === 0 ? 'shown' : `layer ${j}`,\n layer: j,\n ...row(j),\n }));\n const cells: { key: string; x: number; w: number; y: number; h: number; fill: string }[] = [];\n times.forEach((t, i) => {\n const c = colors[i];\n if (c === undefined) return;\n const x0 = x(t);\n const x1 = i + 1 < times.length ? x(times[i + 1] as number) : x0 + 1;\n if (x1 <= 0 || x0 >= width) return;\n c.forEach((fill, j) => {\n const { y, h } = row(j);\n cells.push({ key: `${i}:${j}`, x: x0, w: Math.max(1, x1 - x0 + 0.5), y, h, fill });\n });\n });\n return (\n <figure className=\"bp-strip\">\n <style>{CSS}</style>\n <figcaption className=\"bp-strip-label\">{label}</figcaption>\n <svg width={width} height={height} role=\"img\" aria-label={label}>\n <defs>\n <pattern id={check} width={8} height={8} patternUnits=\"userSpaceOnUse\">\n <rect className=\"bp-strip-check-a\" width={8} height={8} />\n <rect className=\"bp-strip-check-b\" width={4} height={4} />\n <rect className=\"bp-strip-check-b\" x={4} y={4} width={4} height={4} />\n </pattern>\n </defs>\n {bands.map((b) => (\n <rect key={b.name} y={b.y} width={width} height={b.h} fill={`url(#${check})`} />\n ))}\n {cells.map((c) => (\n <rect key={c.key} x={c.x} y={c.y} width={c.w} height={c.h} fill={c.fill} />\n ))}\n {bands.slice(1).map((b) => (\n <text key={b.name} className=\"bp-strip-layer-label\" x={2} y={b.y + LAYER - 1}>\n {b.layer}\n </text>\n ))}\n <line className=\"bp-strip-playhead\" x1={px} x2={px} y1={0} y2={height} />\n </svg>\n </figure>\n );\n}\n","import type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport { AHEAD_CAP_MS, AHEAD_MS, WINDOW_MS } from '../store.js';\nimport { voiceHue } from './hue.js';\n\n/** One voice's stretch of the plan. */\nexport interface Span {\n voice: number;\n label: string;\n marks: MarkInfo[];\n /** Its start, or -Infinity where that lies before what was listed. */\n from: number;\n /** Its end, or Infinity where none is known: it loops for good, or ends past the cap. */\n to: number;\n}\n\n/** One row of the plan: a track's voices, or a voice with no track on its own. */\nexport interface Lane {\n /** The track's name, or `#` and the voice's id for a voice with none. */\n key: string;\n label: string;\n hue: number;\n spans: Span[];\n /** Where its earliest voice starts. */\n from: number;\n}\n\nconst playing = new Set(['live', 'frozen', 'fading']);\n\n/**\n * The plan by track, earliest start first: a lane for each track, holding its voices, and one for\n * each voice with none, from what the marks list and the voices playing on without one; and the\n * marks the host announced.\n */\nexport function lanesOf(\n marks: readonly MarkInfo[],\n voices: readonly VoiceInfo[],\n): { lanes: Lane[]; announced: MarkInfo[] } {\n const known = new Map(voices.map((v) => [v.id, v]));\n const byVoice = new Map<number, { span: Span; track: string | null }>();\n const span = (id: number, name: string | null, track: string | null) => {\n let s = byVoice.get(id);\n if (s === undefined) {\n const v = known.get(id);\n s = {\n span: {\n voice: id,\n label: v?.name ?? name ?? `#${id}`,\n marks: [],\n from: Number.NEGATIVE_INFINITY,\n to: Number.POSITIVE_INFINITY,\n },\n track: v?.track ?? track,\n };\n byVoice.set(id, s);\n }\n return s.span;\n };\n const announced: MarkInfo[] = [];\n for (const m of marks) {\n if (m.voice === null) {\n announced.push(m);\n continue;\n }\n const s = span(m.voice, m.name, m.track);\n s.marks.push(m);\n if (m.mark === 'start') s.from = m.at;\n if (m.mark === 'end') s.to = m.at;\n }\n for (const v of voices) if (playing.has(v.state)) span(v.id, v.name, v.track);\n\n const byKey = new Map<string, Lane>();\n for (const { span: s, track } of byVoice.values()) {\n const key = track ?? `#${s.voice}`;\n let lane = byKey.get(key);\n if (lane === undefined) {\n lane = { key, label: track ?? s.label, hue: voiceHue(s.voice), spans: [], from: s.from };\n byKey.set(key, lane);\n }\n lane.spans.push(s);\n lane.from = Math.min(lane.from, s.from);\n }\n const lanes = [...byKey.values()];\n for (const l of lanes) l.spans.sort((a, b) => a.from - b.from || a.voice - b.voice);\n lanes.sort((a, b) => a.from - b.from || (a.spans[0]?.voice ?? 0) - (b.spans[0]?.voice ?? 0));\n return { lanes, announced };\n}\n\n/**\n * The span the plan and plots share: back to the first sample, or the earliest mark within the\n * plots' window, and ahead `AHEAD_MS`, stretched to the furthest mark up to `AHEAD_CAP_MS`.\n */\nexport function axisOf(\n head: number,\n times: readonly number[],\n marks: readonly MarkInfo[],\n): [number, number] {\n const first = times[0];\n const last = times[times.length - 1];\n if (!Number.isFinite(head)) return [first ?? 0, Math.max((first ?? 0) + 1, last ?? 1)];\n let earliest = head - AHEAD_MS;\n let furthest = head + AHEAD_MS;\n for (const m of marks) {\n if (m.at < earliest) earliest = m.at;\n if (m.at > furthest) furthest = m.at;\n }\n const from = first ?? Math.max(head - WINDOW_MS, earliest);\n const to = Math.max(Math.min(furthest, head + AHEAD_CAP_MS), last ?? head);\n return [from, Math.max(from + 1, to)];\n}\n","const two = (n: number) => String(n).padStart(2, '0');\n\n/** A clock reading in ms as `12.34s`, `1:05.20`, or `2:03:07.50`; `—` for one that isn't finite. */\nexport function clockText(ms: number): string {\n if (!Number.isFinite(ms)) return '—';\n const sign = ms < 0 ? '-' : '';\n const cs = Math.floor(Math.abs(ms) / 10);\n const secs = (cs % 6000) / 100;\n const mins = Math.floor(cs / 6000) % 60;\n const hours = Math.floor(cs / 360000);\n if (hours === 0 && mins === 0) return `${sign}${secs.toFixed(2)}s`;\n const s = secs.toFixed(2).padStart(5, '0');\n return hours === 0 ? `${sign}${mins}:${s}` : `${sign}${hours}:${two(mins)}:${s}`;\n}\n","import type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport { hueColor } from './hue.js';\nimport { type Lane, lanesOf, type Span } from './lanes.js';\nimport { clockText } from './time.js';\n\nconst LANE = 30;\nconst MAX_LANES = 12;\n/** Roughly how wide one character of a 9 px label draws, for keeping labels apart. */\nconst CHAR_PX = 5.2;\n\nconst CSS = `\n.bp-plan { margin: 0 0 8px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }\n.bp-plan svg { display: block; overflow: visible; }\n.bp-plan-text { font-family: var(--wzl-font-ui); font-size: 9px; fill: var(--wzl-fg-muted); }\n.bp-plan-name { font-family: var(--wzl-font-ui); font-size: 10px; fill: var(--wzl-fg); }\n.bp-plan-ahead { fill: var(--wzl-fg); opacity: 0.05; }\n.bp-plan-bar { opacity: 0.4; }\n.bp-plan-tick { stroke-width: 1.5; }\n.bp-plan-said { stroke: var(--wzl-fg-muted); stroke-dasharray: 3 3; stroke-width: 1; }\n.bp-plan-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n`;\n\nexport interface PlanProps {\n marks: readonly MarkInfo[];\n voices: readonly VoiceInfo[];\n range: readonly [number, number];\n playhead: number;\n width?: number;\n}\n\n/**\n * The plan on the plots' time axis: a lane per track, each of its voices a bar from its start to\n * its end, an arrow where no end is known, a tick at each mark, and what the host announced across\n * them all. A voice with no track has a lane of its own.\n */\nexport function Plan({ marks, voices, range, playhead, width = 320 }: PlanProps) {\n const [xMin, xMax] = range;\n const { lanes, announced: all } = lanesOf(marks, voices);\n const announced = all.filter((m) => m.at >= xMin && m.at <= xMax);\n const shown = lanes.slice(0, MAX_LANES);\n const x = (t: number) => ((Math.min(xMax, Math.max(xMin, t)) - xMin) / (xMax - xMin)) * width;\n const rows = shown.length + (announced.length > 0 ? 1 : 0);\n const height = Math.max(1, rows) * LANE;\n const head = Number.isFinite(playhead) ? x(playhead) : null;\n const ahead = Number.isFinite(playhead) ? xMax - playhead : 0;\n return (\n <figure className=\"bp-plan\" aria-label=\"plan\">\n <style>{CSS}</style>\n <figcaption className=\"bp-plot-label\">\n plan{ahead > 0 ? `, ${clockText(ahead)} ahead` : ''}\n {lanes.length > shown.length && ` · ${lanes.length - shown.length} more lanes`}\n </figcaption>\n <svg width={width} height={height} role=\"img\" aria-label=\"plan\">\n {head !== null && (\n <rect className=\"bp-plan-ahead\" x={head} y={0} width={width - head} height={height} />\n )}\n {rows === 0 && (\n <text className=\"bp-plan-text\" x={4} y={LANE / 2 + 3}>\n nothing planned\n </text>\n )}\n {shown.map((l, i) => (\n <LaneRow key={l.key} lane={l} y={i * LANE} x={x} xMin={xMin} xMax={xMax} />\n ))}\n {announced.map((m) => (\n <line\n key={`said-${m.name}-${m.at}`}\n className=\"bp-plan-said\"\n x1={x(m.at)}\n x2={x(m.at)}\n y1={0}\n y2={height}\n >\n <title>{markTitle(m)}</title>\n </line>\n ))}\n {announced.length > 0 && (\n <g transform={`translate(0 ${shown.length * LANE})`}>\n <text className=\"bp-plan-name\" x={2} y={10}>\n announced\n </text>\n {labels(announced, x).map(({ m, show }) => (\n <g key={`a-${m.name}-${m.at}`}>\n <path\n d={`M${x(m.at)} 12l4 4l-4 4l-4 -4z`}\n fill=\"var(--wzl-fg)\"\n aria-label={markTitle(m)}\n >\n <title>{markTitle(m)}</title>\n </path>\n {show && (\n <text className=\"bp-plan-text\" x={x(m.at) + 6} y={LANE - 2}>\n {m.name ?? ''}\n </text>\n )}\n </g>\n ))}\n </g>\n )}\n {head !== null && (\n <line className=\"bp-plan-playhead\" x1={head} x2={head} y1={0} y2={height} />\n )}\n </svg>\n </figure>\n );\n}\n\nfunction LaneRow({\n lane,\n y,\n x,\n xMin,\n xMax,\n}: {\n lane: Lane;\n y: number;\n x: (t: number) => number;\n xMin: number;\n xMax: number;\n}) {\n const color = hueColor(lane.hue);\n const x0 = x(lane.from);\n return (\n <g transform={`translate(0 ${y})`} aria-label={lane.label}>\n <text className=\"bp-plan-name\" x={Math.max(2, Math.min(x0, x(xMax) - 60)) + 2} y={9}>\n {lane.label}\n </text>\n {lane.spans.map((s) => (\n <SpanBar key={s.voice} span={s} color={color} x={x} xMin={xMin} xMax={xMax} />\n ))}\n </g>\n );\n}\n\nfunction SpanBar({\n span,\n color,\n x,\n xMin,\n xMax,\n}: {\n span: Span;\n color: string;\n x: (t: number) => number;\n xMin: number;\n xMax: number;\n}) {\n const x0 = x(span.from);\n const open = !(span.to <= xMax);\n const x1 = open ? x(xMax) - 6 : x(span.to);\n const ends =\n span.to === Number.POSITIVE_INFINITY\n ? 'no end known: plays on'\n : `gone at ${clockText(span.to)}`;\n return (\n <g aria-label={`${span.label}: ${ends}`}>\n {x1 > x0 && (\n <rect className=\"bp-plan-bar\" x={x0} y={13} width={x1 - x0} height={5} fill={color}>\n <title>{`${span.label}: ${ends}`}</title>\n </rect>\n )}\n {open && (\n <path d={`M${x1} 10l6 5.5l-6 5.5z`} fill={color}>\n <title>{ends}</title>\n </path>\n )}\n {labels(\n span.marks.filter((m) => m.at >= xMin && m.at <= xMax),\n x,\n ).map(({ m, show }) => (\n <g key={`${m.mark}-${m.at}`}>\n <line className=\"bp-plan-tick\" x1={x(m.at)} x2={x(m.at)} y1={10} y2={21} stroke={color}>\n <title>{markTitle(m)}</title>\n </line>\n {show && (\n <text className=\"bp-plan-text\" x={x(m.at) + 2} y={LANE - 2}>\n {m.mark ?? ''}\n </text>\n )}\n </g>\n ))}\n </g>\n );\n}\n\n/** Which marks have room for their label beside them, left to right. */\nfunction labels(marks: readonly MarkInfo[], x: (t: number) => number) {\n let free = Number.NEGATIVE_INFINITY;\n return marks.map((m) => {\n const at = x(m.at);\n const text = (m.voice === null ? m.name : m.mark) ?? '';\n const show = at >= free;\n if (show) free = at + 4 + text.length * CHAR_PX;\n return { m, show };\n });\n}\n\nfunction markTitle(m: MarkInfo): string {\n const what =\n m.voice === null ? `announced ${m.name ?? ''}` : `${m.name ?? `#${m.voice}`} ${m.mark}`;\n return `${what} at ${clockText(m.at)}`;\n}\n","import { useMemo } from 'react';\nimport type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport type { Samples } from '../store.js';\nimport { ChannelPlot } from './ChannelPlot.js';\nimport { ColorStrip } from './ColorStrip.js';\nimport { voiceHue } from './hue.js';\nimport { axisOf } from './lanes.js';\nimport { Plan } from './Plan.js';\nimport type { Series } from './path.js';\n\n/** The plan, then the picked subject's channels and the voices' weights on it, on one time axis. */\nexport function Plots({\n samples,\n drawn,\n voices,\n marks,\n playhead,\n picked,\n mix,\n}: {\n samples: Samples;\n drawn: number;\n voices: VoiceInfo[];\n marks: MarkInfo[];\n playhead: number;\n picked: boolean;\n mix: boolean;\n}) {\n // biome-ignore lint/correctness/useExhaustiveDependencies: `drawn` says the samples changed\n const series = useMemo(() => samples.series(), [samples, drawn]);\n const { times, values, colors, weights, read } = series;\n const head = Number.isFinite(playhead) ? playhead : (times[times.length - 1] ?? Number.NaN);\n const range = axisOf(head, picked ? times : [], marks);\n const plan = mix && <Plan marks={marks} voices={voices} range={range} playhead={head} />;\n if (!picked)\n return (\n <div className=\"bp-plots\">\n {plan}\n <p className=\"bp-muted\">Pick a subject to plot its channels.</p>\n </div>\n );\n const unread = read[read.length - 1] === true ? ' · read, not shown' : '';\n const names = new Map(voices.map((v) => [v.id, v.name ?? `#${v.id}`]));\n const weighed: Series[] = [...weights].map(([id, w]) => ({\n id: names.get(id) ?? `#${id}`,\n hue: voiceHue(id),\n values: w,\n }));\n return (\n <div className=\"bp-plots\">\n {plan}\n {[...colors].map(([key, c]) => (\n <ColorStrip\n key={key}\n label={`${key}${unread}`}\n times={times}\n colors={c}\n range={range}\n playhead={head}\n />\n ))}\n {[...values].map(([key, v]) => (\n <ChannelPlot\n key={key}\n label={`${key}${unread}`}\n times={times}\n range={range}\n playhead={head}\n series={[{ id: key, hue: 0, color: 'var(--wzl-fg)', values: v, thick: true }]}\n />\n ))}\n {weighed.length > 0 && (\n <ChannelPlot\n label=\"weightOf\"\n times={times}\n range={range}\n playhead={head}\n series={weighed}\n />\n )}\n </div>\n );\n}\n","import { type ReactNode, useEffect, useReducer, useRef, useState } from 'react';\nimport type {\n Event,\n HoldInfo,\n MarkInfo,\n MixInfo,\n Source,\n SubjectInfo,\n VoiceInfo,\n} from '../protocol.js';\nimport { Samples } from '../store.js';\nimport { Plots } from './Plots.js';\nimport { clockText } from './time.js';\n\ninterface State {\n mixes: MixInfo[];\n mix: number | null;\n subject: number | null;\n subjects: SubjectInfo[];\n voices: VoiceInfo[];\n marks: MarkInfo[];\n hold: HoldInfo;\n arming: boolean;\n circles: boolean;\n /** Bumped as samples arrive, so the plots draw again. */\n drawn: number;\n}\n\nconst initial: State = {\n mixes: [],\n mix: null,\n subject: null,\n subjects: [],\n voices: [],\n marks: [],\n hold: { state: 'free', rate: 1, now: Number.NaN, reach: Number.NaN },\n arming: false,\n circles: false,\n drawn: 0,\n};\n\ntype Action = Event | { kind: 'drawn' };\n\nfunction reduce(s: State, a: Action): State {\n switch (a.kind) {\n case 'mixes':\n return { ...s, mixes: a.mixes };\n case 'picked':\n return { ...s, mix: a.mix, subject: a.subject, subjects: a.mix === s.mix ? s.subjects : [] };\n case 'subjects':\n return { ...s, subjects: a.subjects };\n case 'voices':\n return { ...s, voices: a.voices };\n case 'marks':\n return { ...s, marks: a.marks };\n case 'hold':\n return { ...s, hold: a.hold };\n case 'arming':\n return { ...s, arming: a.on };\n case 'circles':\n return { ...s, circles: a.on };\n case 'drawn':\n return { ...s, drawn: s.drawn + 1 };\n default:\n // An agent newer than this panel may send kinds it does not know.\n return s;\n }\n}\n\nconst RATES = [0, 0.1, 0.25, 0.5, 1, 2];\nconst STEP_MS = 1000 / 60;\nconst PLACE = 'blits-panel:place';\n\n/** Where the window was left, kept per viewer; the corner when nothing was kept. */\nfunction placed(): { x: number; y: number; open: boolean } {\n try {\n const kept = JSON.parse(localStorage.getItem(PLACE) ?? 'null');\n if (kept && typeof kept.x === 'number' && typeof kept.y === 'number') return kept;\n } catch {}\n return { x: 16, y: 16, open: false };\n}\nfunction keep(p: { x: number; y: number; open: boolean }) {\n try {\n localStorage.setItem(PLACE, JSON.stringify(p));\n } catch {}\n}\n\n/** Keeps at least the panel's corner on screen, so a place kept from a larger window stays reachable. */\nfunction onScreen(x: number, y: number): { x: number; y: number } {\n const w = typeof innerWidth === 'number' ? innerWidth : 1024;\n const h = typeof innerHeight === 'number' ? innerHeight : 768;\n return {\n x: Math.min(Math.max(0, x), Math.max(0, w - 120)),\n y: Math.min(Math.max(0, y), Math.max(0, h - 40)),\n };\n}\n\nexport interface PanelProps {\n source: Source;\n /** Fills its container, with no pill and no dragging: for a host such as a DevTools tab. */\n docked?: boolean;\n /** More controls for the top bar, from the host. */\n bar?: ReactNode;\n}\n\n/** The panel: a pill in a corner that opens into a window over the page, or docked, the window alone. */\nexport function Panel({ source, docked = false, bar }: PanelProps) {\n const [s, dispatch] = useReducer(reduce, initial);\n const samples = useRef(new Samples());\n const [place, setPlace] = useState(() => {\n const p = placed();\n return { ...p, ...onScreen(p.x, p.y) };\n });\n const [query, setQuery] = useState('');\n const [hovered, setHovered] = useState<number | null>(null);\n // A row can vanish under the pointer, which then never leaves it: clear its outline here.\n useEffect(() => {\n if (hovered !== null && !s.subjects.some((x) => x.id === hovered)) {\n setHovered(null);\n source.send({ kind: 'outline', subject: null });\n }\n }, [hovered, s.subjects, source]);\n const frontier = useRef(Number.NEGATIVE_INFINITY);\n\n useEffect(() => {\n // Samples and the clock come every frame of the mix; both are drawn at most once a frame here.\n let queued = 0;\n let hold: HoldInfo | null = null;\n const draw = () => {\n queued = 0;\n if (hold !== null) dispatch({ kind: 'hold', hold });\n hold = null;\n dispatch({ kind: 'drawn' });\n };\n const later = () => {\n if (queued === 0) queued = requestAnimationFrame(draw);\n };\n const off = source.subscribe((e) => {\n if (e.kind === 'samples') {\n if (e.reset) samples.current.reset();\n for (const x of e.samples) samples.current.push(x);\n later();\n } else if (e.kind === 'hold') {\n hold = e.hold;\n later();\n } else dispatch(e);\n });\n return () => {\n off();\n if (queued !== 0) cancelAnimationFrame(queued);\n };\n }, [source]);\n\n const send = source.send.bind(source);\n const mix = s.mixes.find((m) => m.id === s.mix);\n const held = s.hold.state === 'held';\n if (held && s.hold.now > frontier.current) frontier.current = s.hold.now;\n if (!held) frontier.current = Number.NEGATIVE_INFINITY;\n\n const move = (open: boolean, x = place.x, y = place.y) => {\n const next = { ...onScreen(x, y), open };\n setPlace(next);\n keep(next);\n };\n\n const drag = (ev: React.PointerEvent) => {\n if ((ev.target as Element).closest('button, select, input')) return;\n const from = { x: ev.clientX - place.x, y: ev.clientY - place.y };\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n const open = place.open;\n const onMove = (e: PointerEvent) => move(open, e.clientX - from.x, e.clientY - from.y);\n const onUp = () => {\n target.removeEventListener('pointermove', onMove);\n target.removeEventListener('pointerup', onUp);\n target.removeEventListener('pointercancel', onUp);\n target.removeEventListener('lostpointercapture', onUp);\n };\n target.addEventListener('pointermove', onMove);\n target.addEventListener('pointerup', onUp);\n target.addEventListener('pointercancel', onUp);\n target.addEventListener('lostpointercapture', onUp);\n };\n\n const clock = (\n <>\n <button\n type=\"button\"\n className={held ? 'bp-on' : ''}\n disabled={mix === undefined}\n title={\n s.hold.state === 'elsewhere'\n ? 'held elsewhere: try again'\n : held\n ? 'free the clock'\n : 'hold the clock'\n }\n onClick={() => send({ kind: 'hold', on: !held })}\n >\n {held ? '▶' : '⏸'}\n </button>\n <button\n type=\"button\"\n disabled={!held}\n title=\"step one frame\"\n onClick={() => send({ kind: 'step', ms: STEP_MS })}\n >\n ⏭\n </button>\n <input\n type=\"range\"\n className=\"bp-scrub\"\n aria-label=\"scrub\"\n disabled={!held || !(frontier.current > s.hold.reach)}\n min={held ? s.hold.reach : 0}\n max={held ? frontier.current : 1}\n step=\"any\"\n value={held ? s.hold.now : 0}\n onChange={(e) => send({ kind: 'seek', to: Number(e.currentTarget.value) })}\n />\n </>\n );\n\n if (!docked && !place.open)\n return (\n <div className=\"bp-pill\" style={{ left: place.x, top: place.y }} onPointerDown={drag}>\n <span className=\"bp-name\">{mix?.name ?? 'blits'}</span>\n {clock}\n <button type=\"button\" title=\"open\" onClick={() => move(true)}>\n ⤢\n </button>\n <span className=\"bp-time\">{clockText(s.hold.now)}</span>\n </div>\n );\n\n const shown = s.subjects.filter((x) => x.label.toLowerCase().includes(query.toLowerCase()));\n return (\n <div\n className={docked ? 'bp-window bp-docked' : 'bp-window'}\n style={docked ? undefined : { left: place.x, top: place.y }}\n >\n <div className=\"bp-bar\" onPointerDown={docked ? undefined : drag}>\n <select\n aria-label=\"mix\"\n value={s.mix ?? ''}\n onChange={(e) =>\n send({\n kind: 'mix',\n id: e.currentTarget.value === '' ? null : Number(e.currentTarget.value),\n })\n }\n >\n <option value=\"\">pick a mix</option>\n {s.mixes.map((m) => (\n <option key={m.id} value={m.id}>\n {m.name}\n </option>\n ))}\n </select>\n {clock}\n <select\n aria-label=\"rate\"\n disabled={!held}\n value={s.hold.rate}\n onChange={(e) => send({ kind: 'rate', rate: Number(e.currentTarget.value) })}\n >\n {RATES.map((r) => (\n <option key={r} value={r}>\n ×{r}\n </option>\n ))}\n </select>\n {bar}\n {!docked && (\n <button type=\"button\" title=\"collapse\" onClick={() => move(false)}>\n ⤡\n </button>\n )}\n <span className=\"bp-time\">{clockText(s.hold.now)}</span>\n </div>\n {mix !== undefined && <Notes mix={mix} hold={s.hold} />}\n <div className=\"bp-body\">\n <div className=\"bp-side\">\n <div className=\"bp-row\">\n <button\n type=\"button\"\n className={s.arming ? 'bp-on' : ''}\n disabled={mix === undefined && s.mixes.length === 0}\n title=\"pick a subject on the page\"\n onClick={() => send({ kind: 'arm', on: !s.arming })}\n >\n ◎ pick\n </button>\n <input\n className=\"bp-search\"\n placeholder=\"subjects\"\n aria-label=\"filter subjects\"\n value={query}\n onChange={(e) => setQuery(e.currentTarget.value)}\n />\n </div>\n <ul className=\"bp-list\" aria-label=\"subjects\">\n {shown.map((x) => (\n <li key={x.id}>\n <button\n type=\"button\"\n className={x.id === s.subject ? 'bp-item bp-on' : 'bp-item'}\n onClick={() => send({ kind: 'subject', id: x.id })}\n onPointerEnter={() => {\n setHovered(x.id);\n send({ kind: 'outline', subject: x.id });\n }}\n onPointerLeave={() => {\n setHovered(null);\n send({ kind: 'outline', subject: null });\n }}\n >\n {x.label}\n </button>\n </li>\n ))}\n </ul>\n <div className=\"bp-row\">\n <h3 className=\"bp-head\">voices</h3>\n <button\n type=\"button\"\n className={s.circles ? 'bp-on' : ''}\n disabled={!s.circles && !s.voices.some((v) => v.bounded)}\n title=\"draw each bounded voice's circle on the page\"\n onClick={() => send({ kind: 'circles', on: !s.circles })}\n >\n ◯ circles\n </button>\n </div>\n <ul className=\"bp-list\" aria-label=\"voices\">\n {s.voices.map((v) => (\n <li key={v.id} className=\"bp-voice\">\n <span>\n {v.name ?? `#${v.id}`}\n {v.bounded && (\n <span className=\"bp-muted\" title=\"bounded to a circle\">\n {' ◯'}\n </span>\n )}\n </span>\n <span className=\"bp-muted\">{v.state}</span>\n <span className=\"bp-num\">\n {Number.isFinite(v.weight) ? v.weight.toFixed(2) : ''}\n </span>\n </li>\n ))}\n </ul>\n </div>\n <Plots\n samples={samples.current}\n drawn={s.drawn}\n voices={s.voices}\n marks={s.marks}\n playhead={s.hold.now}\n picked={s.subject !== null}\n mix={mix !== undefined}\n />\n </div>\n </div>\n );\n}\n\nfunction Notes({ mix, hold }: { mix: MixInfo; hold: HoldInfo }) {\n const h = mix.history;\n const note =\n h === null\n ? 'no history: made before the panel, or the panel was told not to add it, so it only pauses and steps forward'\n : !h.tape\n ? 'no tape: it only pauses and steps forward'\n : h.added\n ? `history: ${(h.ms / 1000).toFixed(0)} s, added by the debugger`\n : `history: ${(h.ms / 1000).toFixed(0)} s, its own`;\n return (\n <p className=\"bp-note\">\n {note}\n {hold.state === 'elsewhere' && ' · its clock is held elsewhere'}\n </p>\n );\n}\n","import { watched } from '@msb235/blits';\nimport { createHistory } from '@weasel-js/history';\nimport { ThemeProvider } from '@weasel-js/theme/react';\nimport { createRoot } from 'react-dom/client';\nimport { type AgentOptions, agent } from './agent.js';\nimport { panelStyles } from './styles.js';\nimport { Panel } from './ui/Panel.js';\n\nexport interface MountOptions extends Omit<AgentOptions, 'ignore'> {\n /**\n * How far back every mix made from now on can scrub, ms, where it names no history of its own;\n * `false` adds none. Default 10 s, unless the app already set `watched().history`, which then\n * stands. A mix made before `mount` keeps what it has.\n */\n history?: number | false;\n}\n\n/**\n * Puts the panel on the page: a pill in a corner that opens into a window over every blits mix\n * on it. Call it before the app makes its mixes, so they keep the history scrubbing back needs.\n * Returns what takes it off again, freeing any clock it holds.\n */\nexport function mount(opts: MountOptions = {}): () => void {\n const registry = watched();\n const before = registry.history;\n // A default the app or another panel already set stands, unless this one names its own.\n const ms = opts.history ?? (before === undefined ? 10_000 : false);\n const ours = ms === false ? undefined : { ms, tape: createHistory };\n if (ours !== undefined) registry.history = ours;\n\n const host = document.createElement('div');\n host.setAttribute('data-blits-panel', '');\n const shadow = host.attachShadow({ mode: 'open' });\n if ('adoptedStyleSheets' in shadow && typeof CSSStyleSheet.prototype.replaceSync === 'function') {\n const sheets = [panelStyles].map((text) => {\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(text);\n return sheet;\n });\n shadow.adoptedStyleSheets = sheets;\n } else\n for (const text of [panelStyles]) {\n const style = document.createElement('style');\n style.textContent = text;\n shadow.appendChild(style);\n }\n const mountPoint = document.createElement('div');\n shadow.appendChild(mountPoint);\n document.body.appendChild(host);\n\n const page = agent({ ...opts, ignore: host });\n const root = createRoot(mountPoint);\n root.render(\n <ThemeProvider selection={{ mode: 'auto' }} className=\"bp-root\">\n <Panel source={page} />\n </ThemeProvider>,\n );\n\n let gone = false;\n return () => {\n if (gone) return;\n gone = true;\n root.unmount();\n page.dispose();\n host.remove();\n if (ours !== undefined && registry.history === ours) registry.history = before;\n };\n}\n","import type { Command, Event, Source } from './protocol.js';\n\n/**\n * One end of a channel that carries strings: a `chrome.runtime.Port`, a window bridge, a\n * `MessagePort`. The panel's two halves talk across one when they are not in the same page.\n */\nexport interface Wire {\n send(text: string): void;\n /** Returns what stops listening. */\n listen(fn: (text: string) => void): () => void;\n}\n\ntype Message = { e: Event } | { c: Command } | { hello: true };\n\n/** JSON, keeping the numbers JSON has no word for: NaN and the infinities. */\nexport function encode(value: unknown): string {\n return JSON.stringify(value, (_k, v) =>\n typeof v === 'number' && !Number.isFinite(v) ? { $n: String(v) } : v,\n );\n}\n\nexport function decode<T>(text: string): T {\n return JSON.parse(text, (_k, v) =>\n v !== null && typeof v === 'object' && typeof v.$n === 'string' && Object.keys(v).length === 1\n ? Number(v.$n)\n : v,\n ) as T;\n}\n\n/**\n * The panel's side of a wire: a `Source` whose events come from `serve` on the other end. Asks\n * the other end for the state as it stands on its first subscriber, so nothing sent before the\n * panel was listening is missed.\n */\nexport function wireSource(wire: Wire): Source & { refresh(): void; close(): void } {\n const fns = new Set<(event: Event) => void>();\n const stop = wire.listen((text) => {\n const m = decode<Message>(text);\n if ('e' in m) for (const fn of [...fns]) fn(m.e);\n });\n return {\n subscribe(fn) {\n fns.add(fn);\n if (fns.size === 1) wire.send(encode({ hello: true }));\n return () => {\n fns.delete(fn);\n };\n },\n send(command) {\n wire.send(encode({ c: command }));\n },\n /** Asks the other end for its state again, as after it was replaced by a reload. */\n refresh() {\n wire.send(encode({ hello: true }));\n },\n close() {\n stop();\n fns.clear();\n },\n };\n}\n\n/** The page's side of a wire: hands `source`'s events across and its commands back. */\nexport function serve(source: Source, wire: Wire): () => void {\n let off = () => {};\n const listen = () => {\n off();\n off = source.subscribe((e) => wire.send(encode({ e })));\n };\n const stop = wire.listen((text) => {\n const m = decode<Message>(text);\n if ('hello' in m) listen();\n else if ('c' in m) source.send(m.c);\n });\n listen();\n return () => {\n stop();\n off();\n };\n}\n"],"x_google_ignoreList":[10],"mappings":";;;;;;;;AAAA,IAAaK,KAAY,MAAgB,OAAOC,EAAI,YAGvCC,KAAY,MAAgBC,IAAK,KAAM,KCD9CC,IAAM,8BAaNC,KAAgB,GAAG,OAAO;CAAE;CAAG;AAAE,IAG1BC,IAAb,MAAqB;CACnB,MAAoC;CAEpC,KAAK,GAAwB,IAAiBD,GAAY;EACxD,A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5D,IAAIlC,UAAY,CAAC,GACXmC,UAAe;EAEnB,AADAnC,EAAI,GACJ,IAAML,EAAO,WAAW,MAAMqC,EAAK,KAAKL,EAAO,EAAE,EAAE,CAAC,CAAC,CAAC;CACxD,GACMI,IAAOC,EAAK,QAAQ,MAAS;EACjC,IAAM3G,IAAIwG,EAAgB/K,CAAI;EAC9B,AAAI,WAAWuE,IAAG8G,EAAO,IAChB,OAAO9G,KAAGsE,EAAO,KAAKtE,EAAE,CAAC;CACpC,CAAC;CAED,OADA8G,EAAO,SACM;EAEX,AADAJ,EAAK,GACL/B,EAAI;CACN;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["createEmitter","createEmitter","nth","NUMBER","NO_PALETTE","flatten","ui","css","CSS","CSS","_Fragment","hueColor","hue","voiceHue","id","SVG","same","Circles","svg","rings","c","i","at","screen","ring","edge","Ids","object","subject","b","WINDOW_MS","CAP","AHEAD_MS","AHEAD_CAP_MS","Samples","windowMs","cap","list","last","s","drop","times","values","colors","weights","k","v","col","marksOf","now","timestamp","rate","back","backMs","KEY","slot","offer","o","offered","Outline","rect","picking","box","outline","opts","inPanel","ev","custom","x","y","hooks","els","el","n","e","onMove","onClick","hit","arm","onKey","armed","on","DEPTH","flatten","pose","key","depth","out","colorsOf","css","layersOf","isColor","kind","readPose","fields","named","entry","name","isNumbers","part","partsOf","BACKFILL_MS","BACKFILL_STEP_MS","LIST_MS","VOICES_MS","agent","fns","ids","registry","watched","curId","unwatch","hold","elsewhere","lastList","voicesAt","lastMarks","owners","circles","circling","emit","fn","event","entries","byId","current","mixInfo","sendMixes","holdInfo","sendHold","voices","handles","live","h","cued","weight","sendVoices","sendMarks","drawCircles","circle","text","subjectList","sendSubjects","next","sampleOf","p","frame","read","backfill","from","onFrame","freeHold","pickMix","pickSubject","listed","send","pickOnly","only","rest","offRegistry","change","timer","createEmitter$1","listeners","held","listener","args","err","snapshot","stacks","total","project","entryToSerial","logger","nearest","serial","stack","undo","undoStack","redo","redoStack","floor","floorId","reachable","pending","forks","kept","cut","branches","grew","waiting","carried","rebuilt","serialToEntry","se","snapshot2","nextEntryId","seen","touchedIdsFromOps","op","ops","a","\"id\"","\"node\"","\"nodes\"","opToSerial","forwardOps","baseOps","placeholderOp","rebuildSerialOp","viaCustom","so","label","sameSerialOps","sameCoalesceKeys","top","incoming","counts","entryView","stepOf","createApplier","applyUnwinding","adapter","applyAllOrNothing","anyMutated","done","r","idle","settle","foldEntry","merged","anyCaused","appliedHalves","RESUMERS","_resumeJournalInternal","j","createJournalInternal","inner","createHistory","inherited","selection","version","changed","bump","forkedAtEntryId","parent","selectionBefore","state","journal","nested","_journalAccessInternal","onClose","JOURNAL_ACCESS","access","history","SILENT","activeJournal","coalesceWindowMs","options","historyLimit","onEvict","branching","customRebuild","coalesceAnchorVersion","stepped","step","reportEvicted","evict","branch","evictFloor","stranded","forkPoint","retireRedo","future","enforceLimit","invertEntry","readSelection","stepBack","leaving","coalesced","stepForward","walkTo","walked","canCoalesce","pushOrCoalesce","applied","owned","fold","record","options2","had","start","t","evicted","view","first","chosen","serialized","HEX","parseHexBytes","input","digits","long","byte","hexToRgbBytes","bytes","SRGB_TO_LINEAR","lut","linearToSrgbByte","srgbU8ToOklab","linearSrgbToOklab","g","l","rl","gl","bl","m","lp","mp","sp","oklabToLinearSrgb","L","A","B","inGamut","clipToGamut","lo","hi","oklabToSrgbU8","oklabToOklch","oklchToOklab","C","hex2","oklchDegToHex","hueDeg","hexToOklchDeg","hex","srgbToLinear","linearToSrgb","hslToSrgb","q","hk","hueToChannel","srgbToHsl","max","min","d","ACHROMATIC_EPS","lerpHueDeg","dh","h2","h1","method","lerpPolar","lerp3","clamp01","srgbToOklabFloat","oklabToSrgbClipped","interpolateSrgb","space","to","lin","polar","L2","C2","H","s2","l2","parseColor","cached","CACHE","result","parseColorUncached","CACHE_MAX","parseHex","lower","NAMED_COLORS","parsed","parseRgbFunction","parseHslFunction","parseColorFunction","parseOkFunction","rgbaToHex","rgba","f","base","unwrapFn","splitChannels","body","parts2","slash","head","alpha","parts","parseChannel","tok","n2","clamp012","parseAlpha","channels","parseHue","sat","parsePercentOrNumber","lit","rgb","lch","second","relativeLuminance","luminanceContrast","nth$1","item","items","refKey","index","resolver","byName","palette","ctx","visit","visiting","external","resolvePaletteColor","source","hex23","colorLiteralToHex","z","color","colorLiteralToCss","cssColorLiteral","coords","hexToRgb","toHex","toLch","chromaCap","luminance","contrast","hueGap","toLab","deltaE","l1","a1","b1","a2","b2","peakLightness","bestL","bestC","PEAK","hueIndex","peakAt","place","HUE_NAMES","hueName","ceil","uniqueNames","hues","equalizeChroma","hexes","target","sum","wanted","anchored","bestDistance","pk","farthestFirst","order","best","bestGap","gap","floorDegrees","searchHues","minGapDeg","anchorHues","anchorHexes","toHexPreview","freeCount","weighted","between","placed","anchorMeta","metaFor","free","penalty","short","score","seeds","seedStep","span","jitter","divisor","STEPS","penaltyAt","descend","meta","offset","iteration","improved","beforeP","beforeC","delta","candidate","trialMeta","afterP","useChroma","bestScore","seed","repaired","tuned","pairwiseMin","summarize","cs","swatches","ls","surface","generate","found","feasible","anchoredFlags","names","position","DEFAULT_CONSTRAINTS","NUMBER$1","readCssNumber","createEmitter","isDev","isPlainPrototype","proto","isPlainObject","value","isByAxis","fullSelection","def","axes","mergeAxes","child","selectionKey","full","pick","cur","axis","fontStack","serializeTokenValue","type","localSelections","chain","link","tokensAt","local","picked","withAlpha","parseRgba","mixAlpha","round","atAlpha","places","REF","refTarget","path","dot","resolveTokens","inProgress","resolveOne","token","tokens","themeChain","theme","themeAxes","resolveTheme","sel","BAKED_THEMES","\"weasel\"","\"name\"","\"extends\"","\"axes\"","\"mode\"","\"default\"","\"values\"","\"dark\"","\"scheme\"","\"light\"","\"density\"","\"compact\"","\"comfortable\"","\"roomy\"","\"tokens\"","\"type\"","\"value\"","\"by\"","\"description\"","\"surface\"","\"fg\"","\"border\"","\"shadow\"","\"scrim\"","\"alpha\"","\"line\"","\"accent\"","\"secondary\"","\"danger\"","\"warning\"","\"success\"","\"info\"","\"workspace\"","\"gloss\"","\"leading\"","\"backdrop\"","\"ramps\"","\"gray\"","\"swatch\"","\"tints\"","\"ramp\"","weaselTheme","heaviest","members","most","blendNumbers","unit","blendColors","mixed","blend","blendTheme","shares","given","share","one","resolved","STYLE_ID","sheets","styleRootOf","root","documentOf","write","selector","variants","Sheet","holdRule","variant","mine","sheet","released","left","holds","applyTheme","releaseRule","letGo","NUMBER","RELATIVE","MIX","fraction","pct","resolveCurrentColor","rel","mix","wrap","generated","generatedColors","findRampSteps","steps","ramp","rampSteps","themeTints","fallback","defaultContext","pickStep","rampProperty","isRamp","colorItemAt","NO_PALETTE$1","tintsOf","propertyOf","ref","tokenLiteral","property","isRef","tintSource","tints","themeSource","colorSourceLiteral","literalCss","literal","tintCss","colorSourceCss","themeRefCss","nth","namedThemeRef","fnCtx","DEFAULT_COLOR_SCHEME","QUERY2","query","systemColorScheme","watchColorScheme","still","serverScheme","useSystemColorScheme","useSyncExternalStore","follow","leafAt","tree","flatten$1","prefix","sameLeaves","createKitSettingsStore","own","overrides","leaves","notify","unhookParent","off","nextLeaves","NO_KIT_SETTINGS","createContext","useResolvedColorMode","system","preference","ThemeContext","NO_PALETTE","ThemeProvider","useRef","autoMode","systemMode","useMemo","release","useLayoutEffect","attrs","warned","warnUnknownAxisValues","defaultTints","useTints","useContext","useColorCss","useCallback","panelStyles","NORMAL","DEFAULT_MODES","IMPLICIT_TAGS","allowedCapabilitiesOf","mode","activeModeOf","resolveDeviceProfile","coarsePointer","detected","KEYS","empty","get","isDebugEnabled","namespace","dlog","replacedFormat","self","built","DEFAULT_TICKS","tickStep","raw","count","power","error","MAX_DECIMALS","decimalsOf","niceStep","mag","rough","norm","countable","onGrid","stepTicks","spacedTicks","domain","length","minSpacing","perUnit","decimals","inset","formatNumber","fixed","niceDomain","down","up","linearScale","range","d0","d1","r0","r1","map","format","MAX_DECIMALS2","tickDecimals","formatTick","SECOND","MINUTE","HOUR","DAY","modelToPlot","xFrac","yFrac","plot","plotToModel","Plot2D_module_default","TICK_SPACING_PX","TICK_INSET_PX","LABEL_GAP_PX","resolveTicks","settings","eps","gaps","even","set","pixels","toPlot","Plot2D","forwardRef","props","svgRef","modelRange","xRange","yRange","plotSize","width","height","clientToPlot","useEffect","useImperativeHandle","pt","coordsOf","xTickList","xTicks","yTickList","yTicks","yInside","yLabelsRef","yLabelWidth","setYLabelWidth","useState","yLabelKey","measure","widest","prev","cls","className","renderTickLines","renderTickLabels","placement","outside","onPointerDown","onContextMenu","grid","divisions","fractions","children","rangeOf","series","pad","timeSpan","insetRange","px","size","pathOf","pen","LABEL_ROOM","CSS$2","ChannelPlot","yMin","yMax","xMin","xMax","playhead","ser","SHOWN","LAYER","GAP","CSS$1","ColorStrip","check","useId","layers","row","bands","cells","x0","x1","playing","lanesOf","known","byVoice","track","announced","marks","byKey","lane","lanes","axisOf","earliest","furthest","two","clockText","ms","sign","secs","mins","hours","LANE","MAX_LANES","CHAR_PX","CSS","Plan","all","shown","rows","ahead","LaneRow","markTitle","labels","show","SpanBar","open","ends","Plots","samples","drawn","plan","unread","weighed","w","initial","reduce","RATES","STEP_MS","PLACE","keep","onScreen","Panel","dispatch","useReducer","setPlace","setQuery","hovered","setHovered","frontier","queued","draw","later","move","drag","onUp","clock","Fragment","docked","bar","Notes","note","mount","before","ours","host","shadow","style","mountPoint","page","createRoot","gone","encode","decode","wireSource","stop","wire","command","serve","listen"],"sources":["../src/ui/hue.ts","../src/circles.ts","../src/ids.ts","../src/store.ts","../src/marks.ts","../src/offer.ts","../src/outline.ts","../src/picking.ts","../src/pose.ts","../src/agent.ts","../../../node_modules/@weasel-js/history/node_modules/@weasel-js/registry/dist/index.js","../../../node_modules/@weasel-js/history/dist/index.js","../node_modules/@weasel-js/paint/dist/index.js","../node_modules/@weasel-js/theme/dist/chunk-44CG54ZK.js","../node_modules/@weasel-js/theme/dist/chunk-M3R5MV7Q.js","../node_modules/@weasel-js/registry/dist/index.js","../node_modules/@weasel-js/theme/dist/chunk-P5F3GZV6.js","../node_modules/@weasel-js/theme/dist/chunk-OP5VYXEZ.js","../node_modules/@weasel-js/theme/dist/chunk-X2KI4SSJ.js","../node_modules/@weasel-js/theme/dist/chunk-ZU4EOJAA.js","../node_modules/@weasel-js/react/dist/index.js","../node_modules/@weasel-js/theme/dist/react.js","../node_modules/@weasel-js/ui/dist/style.css?inline","../src/ui/panel.css?inline","../src/styles.ts","../node_modules/@weasel-js/modes/dist/chunk-JTCUDYBI.js","../node_modules/@weasel-js/modes/dist/index.js","../node_modules/@weasel-js/routing/dist/chunk-SYDUHBQN.js","../node_modules/@weasel-js/plot/dist/chunk-7S5P3NK4.js","../node_modules/@weasel-js/ui/dist/chunks/Plot2D-CZdMztKQ.js","../src/ui/path.ts","../src/ui/ChannelPlot.tsx","../src/ui/ColorStrip.tsx","../src/ui/lanes.ts","../src/ui/time.ts","../src/ui/Plan.tsx","../src/ui/Plots.tsx","../src/ui/Panel.tsx","../src/mount.tsx","../src/wire.ts"],"sourcesContent":["export const hueColor = (hue: number) => `hsl(${hue} 70% 62%)`;\n\n/** A voice's hue, the same in every view that draws it. */\nexport const voiceHue = (id: number) => (id * 67) % 360;\n","import { hueColor, voiceHue } from './ui/hue.js';\n\nconst SVG = 'http://www.w3.org/2000/svg';\n\n/** A bounded voice's circle, in the units of the positions the mix was given. */\nexport interface Ring {\n voice: number;\n x: number;\n y: number;\n r: number;\n}\n\n/** Where a point in the mix's positions is on screen, in client coordinates. */\nexport type Screen = (x: number, y: number) => { x: number; y: number };\n\nconst same: Screen = (x, y) => ({ x, y });\n\n/** Draws each bounded voice's circle over the page, in the voice's hue. */\nexport class Circles {\n private svg: SVGSVGElement | null = null;\n\n draw(rings: readonly Ring[], screen: Screen = same): void {\n if (this.svg === null) {\n this.svg = document.createElementNS(SVG, 'svg');\n this.svg.setAttribute('data-blits-panel', 'circles');\n Object.assign(this.svg.style, {\n position: 'fixed',\n inset: '0',\n width: '100vw',\n height: '100vh',\n pointerEvents: 'none',\n zIndex: '2147483646',\n overflow: 'visible',\n });\n document.body.appendChild(this.svg);\n }\n const svg = this.svg;\n while (svg.childNodes.length > rings.length) svg.lastChild?.remove();\n rings.forEach((ring, i) => {\n let c = svg.childNodes[i] as SVGCircleElement | undefined;\n if (c === undefined) {\n c = document.createElementNS(SVG, 'circle');\n c.setAttribute('fill', 'none');\n c.setAttribute('stroke-width', '1.5');\n c.setAttribute('stroke-dasharray', '6 4');\n svg.appendChild(c);\n }\n const at = screen(ring.x, ring.y);\n const edge = screen(ring.x + ring.r, ring.y);\n c.setAttribute('cx', String(at.x));\n c.setAttribute('cy', String(at.y));\n c.setAttribute('r', String(Math.hypot(edge.x - at.x, edge.y - at.y)));\n c.setAttribute('stroke', hueColor(voiceHue(ring.voice)));\n });\n }\n\n clear(): void {\n this.svg?.remove();\n this.svg = null;\n }\n}\n","/** Numbers subjects as they cross the seam, holding the objects weakly. */\nexport class Ids {\n private weak = new WeakMap<object, number>();\n private strong = new Map<unknown, number>();\n private back = new Map<number, WeakRef<object> | { value: unknown }>();\n private next = 1;\n\n of(subject: unknown): number {\n const object = typeof subject === 'object' && subject !== null;\n let id = object ? this.weak.get(subject) : this.strong.get(subject);\n if (id !== undefined) return id;\n id = this.next++;\n if (object) {\n this.weak.set(subject, id);\n this.back.set(id, new WeakRef(subject));\n } else {\n this.strong.set(subject, id);\n this.back.set(id, { value: subject });\n }\n return id;\n }\n\n /** Forgets the ids of subjects that have been collected. */\n prune(): void {\n for (const [id, b] of this.back)\n if (b instanceof WeakRef && b.deref() === undefined) this.back.delete(id);\n }\n\n get(id: number): unknown {\n const b = this.back.get(id);\n if (b === undefined) return undefined;\n return b instanceof WeakRef ? b.deref() : b.value;\n }\n}\n","import type { Sample } from './protocol.js';\n\n/** How much the plots keep: this much mix time, and never more frames than `cap`. */\nexport const WINDOW_MS = 10_000;\nexport const CAP = 1200;\n/** How far past now the axis always runs, ms of mix time, and how far a mark ahead can stretch it. */\nexport const AHEAD_MS = 2_000;\nexport const AHEAD_CAP_MS = 30_000;\n\n/**\n * The picked subject's samples, by mix time. A sample at the time of the last replaces it, as the\n * frames of a paused mix do; one behind it drops everything after it, as a seek back does.\n */\nexport class Samples {\n private list: Sample[] = [];\n\n constructor(\n private readonly windowMs = WINDOW_MS,\n private readonly cap = CAP,\n ) {}\n\n get length(): number {\n return this.list.length;\n }\n\n reset(): void {\n this.list = [];\n }\n\n push(s: Sample): void {\n const list = this.list;\n const last = list[list.length - 1];\n if (last !== undefined && s.now <= last.now) {\n let i = list.length;\n while (i > 0 && (list[i - 1] as Sample).now >= s.now) i--;\n list.length = i;\n }\n list.push(s);\n let drop = 0;\n while (drop < list.length && (list[drop] as Sample).now < s.now - this.windowMs) drop++;\n drop = Math.max(drop, list.length - this.cap);\n if (drop > 0) list.splice(0, drop);\n }\n\n /**\n * The times, and each key's values in the same order: NaN where a sample lacks a number,\n * undefined where it lacks a color.\n */\n series(): {\n times: number[];\n values: Map<string, number[]>;\n colors: Map<string, (readonly string[] | undefined)[]>;\n weights: Map<number, number[]>;\n read: boolean[];\n } {\n const times = this.list.map((s) => s.now);\n const values = new Map<string, number[]>();\n const colors = new Map<string, (readonly string[] | undefined)[]>();\n const weights = new Map<number, number[]>();\n this.list.forEach((s, i) => {\n for (const [k, v] of Object.entries(s.values)) {\n let col = values.get(k);\n if (col === undefined) {\n col = new Array(times.length).fill(Number.NaN);\n values.set(k, col);\n }\n col[i] = v;\n }\n for (const [k, v] of Object.entries(s.colors ?? {})) {\n let col = colors.get(k);\n if (col === undefined) {\n col = new Array(times.length).fill(undefined);\n colors.set(k, col);\n }\n col[i] = v;\n }\n for (const [k, v] of Object.entries(s.weights)) {\n const id = Number(k);\n let col = weights.get(id);\n if (col === undefined) {\n col = new Array(times.length).fill(Number.NaN);\n weights.set(id, col);\n }\n col[i] = v;\n }\n });\n return { times, values, colors, weights, read: this.list.map((s) => s.read) };\n }\n}\n","import type { Watched } from '@msb235/blits';\nimport type { MarkInfo } from './protocol.js';\nimport { AHEAD_CAP_MS } from './store.js';\n\n/**\n * A mix's marks from `backMs` behind now, within its history, to `AHEAD_CAP_MS` ahead. `marks`\n * speaks the host's clock and the plots the mix's: a mark's lead on the last sync, at the mix's\n * rate, is its lead on now.\n */\nexport function marksOf(e: Watched, backMs: number): MarkInfo[] {\n const { now, timestamp } = e.mix;\n if (!Number.isFinite(now) || !Number.isFinite(timestamp)) return [];\n const rate = e.mix.rate > 0 ? e.mix.rate : 1;\n const back = now - Math.max(e.reach, now - backMs);\n try {\n return e.mix.marks(timestamp - back / rate, timestamp + AHEAD_CAP_MS / rate).map((k) => ({\n at: now + (k.timestamp - timestamp) * rate,\n mark: k.mark ?? null,\n voice: k.voice ?? null,\n name: k.name ?? null,\n tags: [...k.tags],\n track: k.track ?? null,\n }));\n } catch {\n return [];\n }\n}\n","import type { Screen } from './circles.js';\n\n/** What an app can tell any panel on the page about subjects the DOM cannot see. */\nexport interface Offer {\n /** The subject under a point in client coordinates. */\n pick?: (x: number, y: number) => unknown;\n /** Where a subject is on screen, in client coordinates. */\n outline?: (subject: unknown) => DOMRect | undefined;\n /** Where a point in the mix's positions is on screen, in client coordinates. */\n screen?: Screen;\n}\n\nconst KEY = Symbol.for('@msb235/blits-panel/offer/1');\nconst slot = globalThis as unknown as Record<symbol, Offer | undefined>;\n\n/**\n * Hands the app's own `pick`, `outline` and `screen` to whatever panel inspects the page: one `mount()`\n * put there, or the DevTools extension's. Kept on the page's global object, so it reaches a panel\n * bundled apart from the app. A later call replaces an earlier one.\n */\nexport function offer(o: Offer): void {\n slot[KEY] = { ...o };\n}\n\n/** What the app offered, read each time it is needed. */\nexport function offered(): Offer {\n return slot[KEY] ?? {};\n}\n","/** The box drawn over a subject on the page while it is hovered or picked from. */\nexport class Outline {\n el: HTMLDivElement | null = null;\n\n show(rect: DOMRect | undefined): void {\n if (rect === undefined) {\n this.el?.remove();\n this.el = null;\n return;\n }\n if (this.el === null) {\n this.el = document.createElement('div');\n this.el.setAttribute('data-blits-panel', 'outline');\n Object.assign(this.el.style, {\n position: 'fixed',\n pointerEvents: 'none',\n zIndex: '2147483647',\n border: '2px solid #e0457b',\n borderRadius: '2px',\n boxSizing: 'border-box',\n });\n document.body.appendChild(this.el);\n }\n Object.assign(this.el.style, {\n left: `${rect.left}px`,\n top: `${rect.top}px`,\n width: `${rect.width}px`,\n height: `${rect.height}px`,\n });\n }\n}\n","import { offered } from './offer.js';\nimport { Outline } from './outline.js';\n\ninterface Hooks {\n /** The mix that lists a subject, by id. */\n owner(subject: unknown): number | undefined;\n arming(on: boolean): void;\n picked(subject: unknown, mix: number): void;\n}\n\n/** Picking a subject by clicking it on the page, and the outline drawn over it. */\nexport function picking(\n opts: {\n pick?: (x: number, y: number) => unknown;\n outline?: (subject: unknown) => DOMRect | undefined;\n ignore?: Element;\n },\n hooks: Hooks,\n) {\n const box = new Outline();\n const outline = (s: unknown) => {\n let rect: DOMRect | undefined;\n if (s !== undefined)\n rect =\n (opts.outline ?? offered().outline)?.(s) ??\n (s instanceof Element ? s.getBoundingClientRect() : undefined);\n box.show(rect);\n };\n\n const inPanel = (ev: Event) =>\n opts.ignore !== undefined && ev.composedPath().includes(opts.ignore);\n\n /** The subject under a point, and the mix that lists it. */\n const at = (x: number, y: number): [unknown, number] | undefined => {\n const custom = (opts.pick ?? offered().pick)?.(x, y);\n if (custom !== undefined) {\n const e = hooks.owner(custom);\n if (e !== undefined) return [custom, e];\n }\n const els =\n typeof document.elementsFromPoint === 'function'\n ? document.elementsFromPoint(x, y)\n : [document.elementFromPoint(x, y)].filter((el): el is Element => el !== null);\n for (const el of els) {\n if (el === box.el || opts.ignore?.contains(el)) continue;\n for (let n: Element | null = el; n !== null; n = n.parentElement) {\n const e = hooks.owner(n);\n if (e !== undefined) return [n, e];\n }\n }\n return undefined;\n };\n\n const onMove = (ev: PointerEvent) => {\n if (inPanel(ev)) return;\n outline(at(ev.clientX, ev.clientY)?.[0]);\n };\n const onClick = (ev: MouseEvent) => {\n if (inPanel(ev)) return;\n ev.preventDefault();\n ev.stopPropagation();\n const hit = at(ev.clientX, ev.clientY);\n arm(false);\n if (hit !== undefined) hooks.picked(hit[0], hit[1]);\n };\n const onKey = (ev: KeyboardEvent) => {\n if (ev.key === 'Escape') arm(false);\n };\n let armed = false;\n const arm = (on: boolean) => {\n if (on === armed) return;\n armed = on;\n if (on) {\n document.addEventListener('pointermove', onMove, true);\n document.addEventListener('click', onClick, true);\n document.addEventListener('keydown', onKey, true);\n } else {\n document.removeEventListener('pointermove', onMove, true);\n document.removeEventListener('click', onClick, true);\n document.removeEventListener('keydown', onKey, true);\n outline(undefined);\n }\n hooks.arming(on);\n };\n\n return { arm, outline };\n}\n","import { css, layersOf, partsOf, type Watched } from '@msb235/blits';\n\nconst DEPTH = 3;\n\n/** Each numeric part of a pose under a flat key: `x`, `position[1]`, `color.l`. */\nexport function flatten(pose: unknown, out: Record<string, number> = {}, key = '', depth = 0) {\n if (typeof pose === 'number') {\n if (key !== '') out[key] = pose;\n } else if (Array.isArray(pose) || ArrayBuffer.isView(pose)) {\n if (depth < DEPTH)\n Array.from(pose as ArrayLike<unknown>).forEach((v, i) => {\n flatten(v, out, `${key}[${i}]`, depth + 1);\n });\n } else if (typeof pose === 'object' && pose !== null && depth < DEPTH)\n for (const [k, v] of Object.entries(pose))\n flatten(v, out, key === '' ? k : `${key}.${k}`, depth + 1);\n return out;\n}\n\n/** A color pose as the CSS color it shows, then an ordered blend mode's layers, bottom first. */\nexport const colorsOf = (pose: ArrayLike<number>): string[] => [\n css(pose),\n ...(layersOf(pose) ?? []),\n];\n\nconst isColor = (kind: string | undefined) => kind !== undefined && /^(?:color|ink)\\(/.test(kind);\n\n/**\n * A pose as the plots show it, each channel read by its kind. A color channel, blend modes\n * included, is the CSS color it shows, then an ordered mode's layers bottom first; an `affine`\n * channel is its parts, `at.x` to `at.scaleY`; any other channel is its numbers by `flatten`.\n */\nexport function readPose(\n pose: unknown,\n entry: Pick<Watched, 'channels' | 'kinds'>,\n): { values: Record<string, number>; colors: Record<string, string[]> } {\n const values: Record<string, number> = {};\n const colors: Record<string, string[]> = {};\n if (typeof pose !== 'object' || pose === null) return { values, colors };\n const fields = pose as Record<string, unknown>;\n const named = new Set(entry.channels);\n entry.channels.forEach((name, i) => {\n const v = fields[name];\n if (v === undefined) return;\n const kind = entry.kinds[i];\n if (isColor(kind) && isNumbers(v)) colors[name] = colorsOf(v);\n else if (kind === 'affine' && isNumbers(v))\n for (const [part, n] of Object.entries(partsOf(v))) values[`${name}.${part}`] = n;\n else flatten(v, values, name, 1);\n });\n for (const [k, v] of Object.entries(fields)) if (!named.has(k)) flatten(v, values, k, 1);\n return { values, colors };\n}\n\nconst isNumbers = (v: unknown): v is ArrayLike<number> =>\n Array.isArray(v) || (ArrayBuffer.isView(v) && !(v instanceof DataView));\n","import { type Finder, type Hold, type Watched, type WatchedFrame, watched } from '@msb235/blits';\nimport { Circles, type Ring, type Screen } from './circles.js';\nimport { Ids } from './ids.js';\nimport { marksOf } from './marks.js';\nimport { offered } from './offer.js';\nimport { picking } from './picking.js';\nimport { readPose } from './pose.js';\nimport type {\n Command,\n Event,\n HoldInfo,\n MixInfo,\n Sample,\n Source,\n SubjectInfo,\n VoiceInfo,\n} from './protocol.js';\n\n/** What the page side of the panel can be told about the app; `offer()` tells it the same from afar. */\nexport interface AgentOptions {\n /** The subject under a point in client coordinates, for scenes the DOM cannot see into. */\n pick?: (x: number, y: number) => unknown;\n /** Where a subject is on screen, in client coordinates; a DOM element's own box otherwise. */\n outline?: (subject: unknown) => DOMRect | undefined;\n /**\n * Where a point in the positions the mix was given (`mix.plot`) is on screen, in client\n * coordinates, for drawing a bounded voice's circle; the same numbers otherwise.\n */\n screen?: Screen;\n /** The panel's own element: picking on the page passes over it. */\n ignore?: Element;\n}\n\n/** How far back a newly picked subject's plot is filled from history, ms. */\nconst BACKFILL_MS = 10_000;\nconst BACKFILL_STEP_MS = 100;\n/** How often the subject list and the voices' weights are sent, ms. */\nconst LIST_MS = 500;\nconst VOICES_MS = 250;\n/**\n * The page side of the panel: finds the mixes, watches the one picked, holds its clock, and picks\n * and outlines subjects on the page. Speaks only in the protocol's plain data.\n */\nexport function agent(opts: AgentOptions = {}): Source & { dispose(): void } {\n const fns = new Set<(event: Event) => void>();\n const ids = new Ids();\n const registry = watched();\n // The picked mix by id, looked up each time: holding its entry would keep it alive.\n let curId: number | null = null;\n let subject: unknown;\n let unwatch: (() => void) | null = null;\n let hold: Hold | null = null;\n let elsewhere = false;\n let lastList = '';\n let voicesAt = Number.NEGATIVE_INFINITY;\n let lastMarks = '';\n let owners = new Map<unknown, number>();\n /** What each voice was cued with, by handle id; a voice's name, tags and track never change. */\n const named = new Map<\n number,\n {\n name: string | null;\n tags: string[];\n track: string | null;\n within: Readonly<Omit<Ring, 'voice'>> | Finder | undefined;\n }\n >();\n const circles = new Circles();\n let circling = false;\n\n const emit = (event: Event) => {\n for (const fn of [...fns]) fn(event);\n };\n const entries = () => registry.entries();\n const byId = (id: number) => entries().find((e) => e.id === id);\n const current = (): Watched | null => (curId === null ? null : (byId(curId) ?? null));\n\n const mixInfo = (e: Watched): MixInfo => ({\n id: e.id,\n name: e.name ?? `mix ${e.id}`,\n release: e.release,\n channels: [...e.channels],\n history: e.history === undefined ? null : { ...e.history },\n });\n const sendMixes = () => emit({ kind: 'mixes', mixes: entries().map(mixInfo) });\n\n const holdInfo = (): HoldInfo => {\n if (hold !== null) return { state: 'held', rate: hold.rate, now: hold.now, reach: hold.reach };\n const now = current()?.mix.now ?? Number.NaN;\n return { state: elsewhere ? 'elsewhere' : 'free', rate: 1, now, reach: now };\n };\n const sendHold = () => emit({ kind: 'hold', hold: holdInfo() });\n\n const voices = (): VoiceInfo[] => {\n const e = current();\n if (e === null) return [];\n const handles = e.mix.voices();\n const live = new Set(handles.map((h) => h.id));\n for (const id of named.keys()) if (!live.has(id)) named.delete(id);\n return handles.map((h) => {\n let v = named.get(h.id);\n if (v === undefined) {\n const cued = e.voice(h);\n v = {\n name: cued?.name ?? null,\n tags: [...(cued?.tags ?? [])],\n track: cued?.track ?? null,\n within: cued?.within,\n };\n named.set(h.id, v);\n }\n let weight = Number.NaN;\n if (subject !== undefined)\n try {\n weight = h.weightOf(subject);\n } catch {}\n return {\n id: h.id,\n name: v.name,\n tags: v.tags,\n track: v.track,\n state: h.state,\n weight,\n bounded: v.within !== undefined,\n };\n });\n };\n const sendVoices = () => {\n voicesAt = Date.now();\n emit({ kind: 'voices', voices: voices() });\n sendMarks();\n };\n\n const drawCircles = () => {\n const e = current();\n if (!circling || e === null) return circles.clear();\n const rings: Ring[] = [];\n for (const h of e.mix.voices()) {\n const c = named.get(h.id)?.within;\n // A finder's bound has no shape to draw.\n if (c !== undefined && !('find' in c)) rings.push({ voice: h.id, x: c.x, y: c.y, r: c.r });\n }\n circles.draw(rings, opts.screen ?? offered().screen);\n };\n const circle = (on: boolean) => {\n circling = on;\n // An `around` voice cued before `plot` was bounded after it was first listed.\n if (on) named.clear();\n sendVoices();\n drawCircles();\n emit({ kind: 'circles', on });\n };\n\n const sendMarks = () => {\n const e = current();\n const list = e === null ? [] : marksOf(e, BACKFILL_MS);\n const text = JSON.stringify(list);\n if (text === lastMarks) return;\n lastMarks = text;\n emit({ kind: 'marks', marks: list });\n };\n\n const subjectList = (e: Watched): SubjectInfo[] =>\n e.subjects().map((s) => ({ id: ids.of(s), label: e.label(s) }));\n\n /** Sends the subject list where it changed, and notes which mix lists each subject. */\n const sendSubjects = () => {\n const next = new Map<unknown, number>();\n const e = current();\n for (const x of entries()) for (const s of x.subjects()) if (!next.has(s)) next.set(s, x.id);\n if (e !== null) for (const s of e.subjects()) next.set(s, e.id);\n owners = next;\n ids.prune();\n if (e === null) return;\n const list = subjectList(e);\n const text = JSON.stringify(list);\n if (text === lastList) return;\n lastList = text;\n emit({ kind: 'subjects', subjects: list });\n };\n\n const sampleOf = (e: Watched, frame: WatchedFrame<unknown, unknown>): Sample | null => {\n let pose: unknown;\n for (const p of frame.probed) if (p.subject === subject) pose = p.pose;\n const read = pose === undefined;\n if (read)\n try {\n pose = e.read(subject);\n } catch {\n return null;\n }\n const weights: Record<number, number> = {};\n for (const h of frame.voices)\n try {\n weights[h.id] = h.weightOf(subject);\n } catch {}\n return { now: frame.now, ...readPose(pose, e), weights, read };\n };\n\n const backfill = (e: Watched): Sample[] => {\n const h = e.history;\n const now = e.mix.now;\n if (h === undefined || !Number.isFinite(now)) return [];\n const out: Sample[] = [];\n const from = Math.max(e.reach, now - Math.min(BACKFILL_MS, h.ms));\n for (let t = from; t < now; t += BACKFILL_STEP_MS)\n try {\n out.push({ now: t, ...readPose(e.read(subject, t), e), weights: {}, read: true });\n } catch {}\n return out;\n };\n\n const onFrame = (frame: WatchedFrame<unknown, unknown>) => {\n const e = current();\n if (e === null) return;\n if (subject !== undefined) {\n const s = sampleOf(e, frame);\n if (s !== null) emit({ kind: 'samples', samples: [s], reset: false });\n }\n if (Date.now() - voicesAt >= VOICES_MS) sendVoices();\n drawCircles();\n sendHold();\n };\n\n const freeHold = () => {\n hold?.free();\n hold = null;\n };\n\n const pickMix = (id: number | null) => {\n const e = id === null ? undefined : byId(id);\n if (hold !== null && (e === undefined || !hold.mixes.includes(e.mix))) freeHold();\n unwatch?.();\n unwatch = null;\n curId = e?.id ?? null;\n subject = undefined;\n lastList = '';\n lastMarks = '';\n elsewhere = false;\n named.clear();\n if (e !== undefined) unwatch = e.watch(onFrame);\n emit({ kind: 'picked', mix: curId, subject: null });\n emit({ kind: 'samples', samples: [], reset: true });\n sendSubjects();\n sendVoices();\n drawCircles();\n sendHold();\n };\n\n const pickSubject = (id: number | null) => {\n subject = id === null ? undefined : ids.get(id);\n const e = current();\n emit({ kind: 'picked', mix: e?.id ?? null, subject: subject === undefined ? null : id });\n emit({\n kind: 'samples',\n samples: e !== null && subject !== undefined ? backfill(e) : [],\n reset: true,\n });\n sendVoices();\n };\n\n const page = picking(opts, {\n // A mix knows subjects it reads unwatched, through pull, that its subject list leaves out.\n owner: (subject) => {\n const listed = owners.get(subject);\n if (listed !== undefined) return listed;\n const e = current();\n if (e?.knows?.(subject)) return e.id;\n return entries().find((x) => x.knows?.(subject))?.id;\n },\n arming: (on) => {\n if (on) sendSubjects();\n emit({ kind: 'arming', on });\n },\n picked: (s, e) => {\n if (curId !== e) pickMix(e);\n sendSubjects();\n pickSubject(ids.of(s));\n },\n });\n const { arm, outline } = page;\n\n const send = (c: Command) => {\n switch (c.kind) {\n case 'mix':\n pickMix(c.id);\n return;\n case 'subject':\n pickSubject(c.id);\n return;\n case 'hold':\n if (!c.on) freeHold();\n else if (hold === null && current() !== null)\n try {\n hold = (current() as Watched).hold();\n elsewhere = false;\n } catch {\n elsewhere = true;\n }\n sendHold();\n return;\n case 'rate':\n if (hold !== null) hold.rate = c.rate;\n sendHold();\n return;\n case 'step':\n try {\n hold?.step(c.ms);\n } catch {}\n sendHold();\n return;\n case 'seek':\n try {\n hold?.seek(c.to);\n } catch {}\n sendHold();\n return;\n case 'arm':\n arm(c.on);\n return;\n case 'circles':\n circle(c.on);\n return;\n case 'outline':\n outline(c.subject === null ? undefined : ids.get(c.subject));\n return;\n }\n };\n\n /** With nothing picked and one mix on the page, there is nothing to choose: pick it. */\n const pickOnly = () => {\n const [only, ...rest] = entries();\n if (curId === null && only !== undefined && rest.length === 0) pickMix(only.id);\n };\n\n const offRegistry = registry.on((change) => {\n sendMixes();\n if (change.kind === 'gone' && curId === change.id) pickMix(null);\n pickOnly();\n });\n pickOnly();\n const timer = setInterval(sendSubjects, LIST_MS);\n\n return {\n subscribe(fn) {\n fns.add(fn);\n fn({ kind: 'mixes', mixes: entries().map(mixInfo) });\n fn({\n kind: 'picked',\n mix: curId,\n subject: subject === undefined ? null : ids.of(subject),\n });\n fn({ kind: 'hold', hold: holdInfo() });\n fn({ kind: 'circles', on: circling });\n const e = current();\n if (e !== null) fn({ kind: 'subjects', subjects: subjectList(e) });\n fn({ kind: 'voices', voices: voices() });\n fn({ kind: 'marks', marks: e === null ? [] : marksOf(e, BACKFILL_MS) });\n return () => {\n fns.delete(fn);\n };\n },\n send,\n dispose() {\n arm(false);\n freeHold();\n unwatch?.();\n unwatch = null;\n clearInterval(timer);\n offRegistry();\n outline(undefined);\n circles.clear();\n fns.clear();\n },\n };\n}\n","// src/emitter.ts\nfunction createEmitter() {\n const listeners = /* @__PURE__ */ new Set();\n let held = null;\n return {\n subscribe(listener) {\n listeners.add(listener);\n held = null;\n return () => {\n listeners.delete(listener);\n held = null;\n };\n },\n emit(...args) {\n if (listeners.size === 0) return;\n for (const listener of held ??= [...listeners]) {\n if (!listeners.has(listener)) continue;\n try {\n listener(...args);\n } catch (err) {\n console.error(\"weasel: a subscriber threw\", err);\n }\n }\n },\n get size() {\n return listeners.size;\n }\n };\n}\n\n// src/reflectable.ts\nfunction createReflectable() {\n const stacks = /* @__PURE__ */ new Map();\n const listeners = createEmitter();\n let version = 0;\n let snapshot = null;\n function changed() {\n version++;\n listeners.emit();\n }\n const reflection = {\n get: (key) => stacks.get(key)?.at(-1)?.value,\n has: (key) => stacks.has(key),\n entries() {\n if (snapshot?.version === version) return snapshot.entries;\n const entries = [];\n for (const [key, stack] of stacks) {\n const live = stack.at(-1);\n entries.push(Object.freeze({\n key,\n live,\n value: live.value,\n source: live.source,\n shadowed: Object.freeze(stack.slice(0, -1))\n }));\n }\n snapshot = { version, entries: Object.freeze(entries) };\n return snapshot.entries;\n },\n subscribe: listeners.subscribe,\n getVersion: () => version\n };\n function release(key, registrant) {\n const stack = stacks.get(key);\n const i = stack ? stack.lastIndexOf(registrant) : -1;\n if (i === -1) return false;\n stack.splice(i, 1);\n if (stack.length === 0) stacks.delete(key);\n changed();\n return true;\n }\n return {\n ...reflection,\n reflection,\n release,\n push(key, value, options) {\n const registrant = Object.freeze({ value, source: options?.source });\n const stack = stacks.get(key);\n if (stack) stack.push(registrant);\n else stacks.set(key, [registrant]);\n changed();\n return () => {\n release(key, registrant);\n };\n },\n set(key, value, options) {\n const registrant = Object.freeze({ value, source: options?.source });\n const stack = stacks.get(key);\n if (stack) stack[stack.length - 1] = registrant;\n else stacks.set(key, [registrant]);\n changed();\n },\n delete(key) {\n if (!stacks.delete(key)) return false;\n changed();\n return true;\n },\n clear() {\n if (stacks.size === 0) return;\n stacks.clear();\n changed();\n },\n bump: changed\n };\n}\n\n// src/isDev.ts\nfunction isDev() {\n try {\n return process.env.NODE_ENV !== \"production\";\n } catch {\n return true;\n }\n}\n\n// src/isPlainObject.ts\nfunction isPlainPrototype(proto) {\n return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null;\n}\nfunction isPlainObject(value) {\n return typeof value === \"object\" && value !== null && isPlainPrototype(Object.getPrototypeOf(value));\n}\n\n// src/deepEqual.ts\nfunction deepEqual(a, b, opts = {}) {\n if (Object.is(a, b)) return true;\n if (Array.isArray(a) || Array.isArray(b)) {\n return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((v, i) => deepEqual(v, b[i], opts));\n }\n if (!isPlainObject(a) || !isPlainObject(b)) return false;\n if (opts.undefinedAsAbsent) {\n return [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])].every((k) => deepEqual(a[k], b[k], opts));\n }\n const keys = Object.keys(a);\n return keys.length === Object.keys(b).length && keys.every((k) => Object.hasOwn(b, k) && deepEqual(a[k], b[k], opts));\n}\n\n// src/sameList.ts\nfunction sameList(a, b, same = (x, y) => x === y) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) if (!same(a[i], b[i])) return false;\n return true;\n}\n\n// src/mixed.ts\nvar MIXED = /* @__PURE__ */ Symbol(\"weasel:mixed\");\n\n// src/match.ts\nvar BY_TEXT = { by: \"text\" };\nfunction matchQuery(query, entry) {\n const q = query.trim().toLowerCase();\n if (q === \"\") return BY_TEXT;\n if (entry.text.some((t) => t !== void 0 && t.toLowerCase().includes(q))) return BY_TEXT;\n const tag = entry.tags?.find((t) => t.toLowerCase().includes(q));\n return tag === void 0 ? null : { by: \"tag\", tag };\n}\nfunction hasTag(tags, tag) {\n return tags?.includes(tag) ?? false;\n}\n\nexport { MIXED, createEmitter, createReflectable, deepEqual, hasTag, isDev, isPlainObject, isPlainPrototype, matchQuery, sameList };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","import { createEmitter } from '@weasel-js/registry';\n\n// src/history.ts\n\n// src/serialized.ts\nfunction snapshot(stacks, logger) {\n const { undoStack, redoStack, forks, floorId, nextEntryId } = stacks;\n let total = 0;\n const project = (entries) => {\n total += entries.length;\n return entries.map((e) => entryToSerial(e, logger));\n };\n const nearest = (stack) => {\n const serial = project(stack);\n return serial.slice(serial.lastIndexOf(null) + 1);\n };\n const undo = nearest(undoStack);\n const redo = nearest(redoStack);\n const floor = undo.length === undoStack.length ? floorId : undoStack[undoStack.length - undo.length - 1].id;\n const reachable = /* @__PURE__ */ new Set([floor, ...[...undo, ...redo].map((e) => e.id)]);\n let pending = [...forks].flatMap(([at, kept]) => kept.map((b) => {\n const serial = project(b);\n const cut = serial.indexOf(null);\n return { at, entries: cut < 0 ? serial : serial.slice(0, cut) };\n })).filter((b) => b.entries.length > 0);\n const branches = [];\n for (let grew = true; grew; ) {\n grew = false;\n const waiting = [];\n for (const b of pending) {\n if (!reachable.has(b.at)) {\n waiting.push(b);\n continue;\n }\n branches.push(b);\n for (const e of b.entries) reachable.add(e.id);\n grew = true;\n }\n pending = waiting;\n }\n const carried = undo.length + redo.length + branches.reduce((n, b) => n + b.entries.length, 0);\n return {\n version: 1,\n undoStack: undo,\n redoStack: redo,\n ...branches.length > 0 ? { branches } : {},\n ...floor !== 0 ? { floor } : {},\n nextEntryId,\n droppedEntries: total - carried\n };\n}\nfunction rebuilt(snapshot2, custom, logger) {\n const entry = (se) => serialToEntry(se, custom, logger);\n const undoStack = snapshot2.undoStack.map(entry);\n const redoStack = snapshot2.redoStack.map(entry);\n const forks = /* @__PURE__ */ new Map();\n for (const b of snapshot2.branches ?? []) {\n const entries = b.entries.map(entry);\n const kept = forks.get(b.at);\n if (kept) kept.push(entries);\n else forks.set(b.at, [entries]);\n }\n let nextEntryId = snapshot2.nextEntryId;\n const seen = [undoStack, redoStack, ...[...forks.values()].flat()];\n for (const entries of seen) for (const e of entries) if (e.id >= nextEntryId) nextEntryId = e.id + 1;\n return { undoStack, redoStack, forks, floorId: snapshot2.floor ?? 0, nextEntryId };\n}\nfunction touchedIdsFromOps(ops) {\n const ids = /* @__PURE__ */ new Set();\n for (const op of ops) {\n if (op.args === null || typeof op.args !== \"object\") continue;\n const a = op.args;\n if (typeof a[\"id\"] === \"string\") {\n ids.add(a[\"id\"]);\n } else if (a[\"node\"] !== null && typeof a[\"node\"] === \"object\") {\n const n = a[\"node\"];\n if (typeof n[\"id\"] === \"string\") ids.add(n[\"id\"]);\n } else if (Array.isArray(a[\"nodes\"])) {\n for (const n of a[\"nodes\"]) {\n const id = n !== null && typeof n === \"object\" ? n[\"id\"] : void 0;\n if (typeof id === \"string\") ids.add(id);\n }\n }\n }\n return ids;\n}\nfunction opToSerial(op) {\n if (typeof op.name !== \"string\") return null;\n return { name: op.name, args: op.args };\n}\nfunction entryToSerial(e, logger) {\n const forwardOps = [];\n for (const op of e.forwardOps) {\n const s = opToSerial(op);\n if (s === null) {\n logger.log(`serialize: dropping entry id=${e.id} \"${e.label}\" \\u2014 forwardOp without name`);\n return null;\n }\n forwardOps.push(s);\n }\n const baseOps = [];\n for (const op of e.baseOps) {\n const s = opToSerial(op);\n if (s === null) {\n logger.log(`serialize: dropping entry id=${e.id} \"${e.label}\" \\u2014 baseOp without name`);\n return null;\n }\n baseOps.push(s);\n }\n return {\n id: e.id,\n label: e.label,\n forwardOps,\n baseOps,\n pushes: e.pushes,\n timestamp: e.timestamp,\n ...e.selectionBefore ? { selectionBefore: e.selectionBefore } : {},\n ...e.selectionAfter ? { selectionAfter: e.selectionAfter } : {}\n };\n}\nfunction placeholderOp(name, args, label) {\n const op = {\n name,\n args,\n label,\n apply: () => \"noop\",\n invert: () => op\n };\n return op;\n}\nfunction rebuildSerialOp(so, label, custom, logger) {\n const viaCustom = custom ? custom(so.name, so.args) : null;\n if (viaCustom !== null) return viaCustom;\n logger.log(`restore: unknown op name \"${so.name}\" \\u2014 substituting no-op placeholder`);\n return placeholderOp(so.name, so.args, label);\n}\nfunction sameSerialOps(a, b) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n try {\n return JSON.stringify(a) === JSON.stringify(b);\n } catch {\n return false;\n }\n}\nfunction serialToEntry(se, custom, logger) {\n const forwardOps = se.forwardOps.map((so) => rebuildSerialOp(so, se.label, custom, logger));\n const baseOps = sameSerialOps(se.forwardOps, se.baseOps) ? forwardOps : se.baseOps.map((so) => rebuildSerialOp(so, se.label, custom, logger));\n return {\n id: se.id,\n label: se.label,\n forwardOps,\n baseOps,\n timestamp: se.timestamp ?? 0,\n pushes: se.pushes ?? 1,\n // Re-derive touchedIds from the rebuilt ops rather than trying to\n // round-trip the Set through the serialized form (Sets aren't JSON-safe).\n touchedIds: touchedIdsFromOps(forwardOps),\n ...se.selectionBefore ? { selectionBefore: [...se.selectionBefore] } : {},\n ...se.selectionAfter ? { selectionAfter: [...se.selectionAfter] } : {}\n };\n}\n\n// src/entryOps.ts\nfunction sameCoalesceKeys(top, incoming) {\n if (top.length === 0 || incoming.length === 0 || top.length !== incoming.length) return false;\n const counts = /* @__PURE__ */ new Map();\n for (const op of top) {\n const k = op.coalesceKey;\n if (k === void 0) return false;\n counts.set(k, (counts.get(k) ?? 0) + 1);\n }\n for (const op of incoming) {\n const k = op.coalesceKey;\n const c = k === void 0 ? 0 : counts.get(k) ?? 0;\n if (!c) return false;\n counts.set(k, c - 1);\n }\n return true;\n}\nfunction entryView(e) {\n return {\n id: e.id,\n label: e.label,\n timestamp: e.timestamp,\n pushes: e.pushes,\n touchedIds: e.touchedIds,\n ...e.selectionBefore ? { selectionBefore: e.selectionBefore } : {},\n ...e.selectionAfter ? { selectionAfter: e.selectionAfter } : {}\n };\n}\nfunction stepOf(kind, entries = []) {\n return { kind, entries: entries.map((e) => ({ id: e.id, label: e.label, ops: e.forwardOps })) };\n}\nfunction createApplier(adapter, logger) {\n function applyUnwinding(ops) {\n for (const op of ops) {\n try {\n op.apply(adapter);\n } catch (err) {\n logger.warn(`unwinding a failed step: op \"${op.name ?? \"?\"}\" threw: ${String(err)}`);\n }\n }\n }\n function applyAllOrNothing(ops, settle, idle) {\n let anyMutated = false;\n let done = 0;\n try {\n for (; done < ops.length; done++) {\n const r = ops[done].apply(adapter);\n if (r !== false && r !== \"noop\") anyMutated = true;\n else idle?.push(ops[done]);\n }\n } catch (err) {\n if (done > 0) {\n applyUnwinding(ops.slice(0, done).reverse().map((op) => op.invert()));\n if (settle) applyUnwinding(settle());\n }\n throw err;\n }\n return anyMutated;\n }\n return applyAllOrNothing;\n}\nfunction foldEntry(top, ops, at) {\n const same = top.forwardOps === top.baseOps;\n top.forwardOps = [...top.forwardOps, ...ops];\n top.baseOps = same ? top.forwardOps : [...top.baseOps, ...ops];\n top.timestamp = at;\n top.pushes++;\n const merged = new Set(top.touchedIds);\n for (const id of touchedIdsFromOps(ops)) merged.add(id);\n top.touchedIds = merged;\n}\nfunction anyCaused(ops) {\n for (let i = 0; i < ops.length; i++) if (ops[i].caused !== void 0) return true;\n return false;\n}\nfunction appliedHalves(entries) {\n const forwardOps = entries.flatMap((e) => e.forwardOps);\n if (entries.every((e) => e.forwardOps === e.baseOps)) return { forwardOps, baseOps: forwardOps };\n return { forwardOps, baseOps: entries.flatMap((e) => e.baseOps) };\n}\nvar RESUMERS = /* @__PURE__ */ new WeakMap();\nfunction _resumeJournalInternal(j) {\n const r = RESUMERS.get(j);\n if (!r) throw new Error(\"Journal is not resumable (already committed or cancelled)\");\n r();\n}\nfunction createJournalInternal(parent, adapter, opts, onClose, inherited = {}) {\n const inner = createHistory(adapter, {\n ...inherited,\n ...opts.coalesceWindowMs !== void 0 ? { coalesceWindowMs: opts.coalesceWindowMs } : {}\n });\n const selection = inherited.selection;\n let version = 0;\n const changed = createEmitter();\n function bump() {\n version++;\n changed.emit();\n }\n inner.subscribe(bump);\n const forkedAtEntryId = parent.currentEntryId();\n const selectionBefore = selection ? [...selection.get()] : void 0;\n let state = \"active\";\n const targetId = opts.targetId;\n const journal = {\n targetId,\n forkedAtEntryId,\n applyBatch(ops, label) {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n inner.applyOps(ops, label);\n },\n undo() {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n inner.undo();\n },\n redo() {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n inner.redo();\n },\n canUndo() {\n return inner.canUndo();\n },\n canRedo() {\n return inner.canRedo();\n },\n entries() {\n return inner.entries();\n },\n seal() {\n inner.seal();\n },\n observe: (listener) => inner.observe(listener),\n beginJournal(nested) {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n return inner.beginJournal(nested);\n },\n getVersion: () => version,\n subscribe: changed.subscribe,\n commit(label) {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n const { forwardOps, baseOps } = _journalAccessInternal(inner).appliedOps();\n _journalAccessInternal(parent).record(\n forwardOps,\n baseOps,\n label,\n selectionBefore ? { selectionBefore } : void 0\n );\n state = \"closed\";\n RESUMERS.delete(journal);\n onClose?.();\n bump();\n },\n cancel() {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n inner.goto(0);\n state = \"closed\";\n RESUMERS.delete(journal);\n onClose?.();\n bump();\n },\n suspend() {\n if (state !== \"active\") throw new Error(\"Journal is not active\");\n state = \"suspended\";\n onClose?.();\n bump();\n },\n isActive() {\n return state === \"active\";\n }\n };\n RESUMERS.set(journal, () => {\n if (state !== \"suspended\") throw new Error(\"Journal is not suspended\");\n state = \"active\";\n bump();\n });\n return journal;\n}\n\n// src/history.ts\nvar JOURNAL_ACCESS = /* @__PURE__ */ new WeakMap();\nfunction _journalAccessInternal(history) {\n const access = JOURNAL_ACCESS.get(history);\n if (!access) throw new Error(\"Not a history built by createHistory\");\n return access;\n}\nvar SILENT = { log: () => {\n}, warn: () => {\n} };\nfunction createHistory(adapter, options = {}) {\n const undoStack = [];\n const redoStack = [];\n let activeJournal = null;\n const coalesceWindowMs = options.coalesceWindowMs ?? 0;\n const now = options.now ?? (() => Date.now());\n const historyLimit = Math.max(0, options.historyLimit ?? Infinity);\n const onEvict = options.onEvict;\n const branching = options.branching ?? false;\n const forks = /* @__PURE__ */ new Map();\n let floorId = 0;\n const customRebuild = options.rebuildOp;\n const selection = options.selection;\n const logger = options.debug ?? SILENT;\n let nextEntryId = 1;\n let version = 0;\n let coalesceAnchorVersion = -1;\n const changed = createEmitter();\n const stepped = createEmitter();\n function bump(step) {\n version++;\n if (step && stepped.size > 0) stepped.emit(step);\n changed.emit();\n }\n function reportEvicted(entries) {\n if (!onEvict) return;\n for (const e of entries) {\n try {\n onEvict({ id: e.id, label: e.label, forwardOps: e.forwardOps, baseOps: e.baseOps });\n } catch (err) {\n logger.warn(`onEvict callback threw for entry id=${e.id} \"${e.label}\": ${String(err)}`);\n }\n }\n }\n function evict(entries) {\n reportEvicted(entries);\n for (const e of entries) {\n const kept = forks.get(e.id);\n if (!kept) continue;\n forks.delete(e.id);\n for (const branch of kept) evict(branch);\n }\n }\n function evictFloor(entries) {\n for (const e of entries) {\n if (onEvict) reportEvicted([e]);\n const stranded = forks.size > 0 ? forks.get(floorId) : void 0;\n if (stranded !== void 0) forks.delete(floorId);\n floorId = e.id;\n if (stranded !== void 0) for (const branch of stranded) evict(branch);\n }\n }\n function forkPoint() {\n return undoStack[undoStack.length - 1]?.id ?? floorId;\n }\n function retireRedo(at) {\n if (redoStack.length === 0) return;\n const future = redoStack.splice(0);\n if (!branching) return evict(future);\n const kept = forks.get(at);\n if (kept) kept.push(future.reverse());\n else forks.set(at, [future.reverse()]);\n }\n function enforceLimit() {\n while (undoStack.length > historyLimit) {\n evictFloor([undoStack.shift()]);\n }\n }\n const applyAllOrNothing = createApplier(adapter, logger);\n function invertEntry(entry) {\n return [...entry.baseOps].reverse().map((op) => op.invert());\n }\n function readSelection() {\n return selection ? [...selection.get()] : void 0;\n }\n function stepBack(entry) {\n const leaving = readSelection();\n const coalesced = entry.forwardOps !== entry.baseOps;\n applyAllOrNothing(invertEntry(entry), coalesced ? () => entry.forwardOps : void 0);\n if (leaving) entry.selectionAfter = leaving;\n if (selection && entry.selectionBefore) selection.set(entry.selectionBefore);\n }\n function stepForward(entry) {\n const leaving = readSelection();\n const coalesced = entry.forwardOps !== entry.baseOps;\n applyAllOrNothing(entry.forwardOps, coalesced ? () => invertEntry(entry) : void 0);\n if (leaving) entry.selectionBefore = leaving;\n if (selection && entry.selectionAfter) selection.set(entry.selectionAfter);\n }\n function walkTo(n) {\n const walked = [];\n while (undoStack.length > n) {\n const entry = undoStack[undoStack.length - 1];\n stepBack(entry);\n undoStack.pop();\n redoStack.push(entry);\n walked.push(entry);\n }\n while (undoStack.length < n && redoStack.length > 0) {\n const entry = redoStack[redoStack.length - 1];\n stepForward(entry);\n redoStack.pop();\n undoStack.push(entry);\n walked.push(entry);\n }\n return walked;\n }\n function canCoalesce(top, incoming) {\n const windowMs = typeof coalesceWindowMs === \"function\" ? coalesceWindowMs() : coalesceWindowMs;\n if (!(windowMs > 0) || top.coalesceKey !== void 0 || version !== coalesceAnchorVersion || now() - top.timestamp > windowMs) return false;\n return sameCoalesceKeys(top.forwardOps, incoming);\n }\n function pushOrCoalesce(applied, label, owned = false) {\n if (applied.length === 0) return;\n const selectionBefore = readSelection();\n const idle = [];\n const anyMutated = applyAllOrNothing(applied, void 0, idle);\n const kept = idle.length === 0 ? applied : applied.filter((op) => !(op.elideNoop && idle.includes(op)));\n const ops = anyCaused(kept) ? kept.flatMap((op) => op.caused?.() ?? [op]) : owned || kept !== applied ? kept : kept.slice();\n if (!anyMutated) {\n logger.warn(\n `'${label}' batch was a no-op \\u2014 every op reported false/'noop'. Skipping the undo entry; consider gating the dispatch upstream to avoid the wasted work.`\n );\n return;\n }\n if (ops.length === 0) return;\n const incoming = touchedIdsFromOps(ops);\n const top = undoStack[undoStack.length - 1];\n if (top && canCoalesce(top, ops)) {\n top.forwardOps = ops;\n top.timestamp = now();\n top.pushes++;\n if (incoming.size > 0) {\n const merged = new Set(top.touchedIds);\n for (const id of incoming) merged.add(id);\n top.touchedIds = merged;\n }\n logger.log(`coalesce '${label}' into entry id=${top.id} (${ops.length} ops)`);\n bump(stepped.size > 0 ? { kind: \"coalesce\", entries: [{ id: top.id, label: top.label, ops }] } : void 0);\n coalesceAnchorVersion = version;\n return;\n }\n logger.log(`push '${label}' (${ops.length} ops)`);\n const at = forkPoint();\n const entry = {\n id: nextEntryId++,\n forwardOps: ops,\n baseOps: ops,\n label,\n timestamp: now(),\n pushes: 1,\n touchedIds: incoming,\n ...selectionBefore ? { selectionBefore } : {}\n };\n undoStack.push(entry);\n retireRedo(at);\n enforceLimit();\n bump(stepped.size > 0 ? stepOf(\"push\", [entry]) : void 0);\n coalesceAnchorVersion = version;\n }\n function fold(top, ops) {\n foldEntry(top, ops, now());\n bump(stepped.size > 0 ? { kind: \"coalesce\", entries: [{ id: top.id, label: top.label, ops }] } : void 0);\n coalesceAnchorVersion = version;\n }\n function record(forwardOps, baseOps, label, options2 = {}) {\n if (forwardOps.length === 0) return;\n const key = options2.coalesceKey;\n const top = undoStack[undoStack.length - 1];\n if (key !== void 0 && top?.coalesceKey === key && version === coalesceAnchorVersion && forwardOps === baseOps) {\n return fold(top, forwardOps);\n }\n const at = forkPoint();\n const entry = {\n id: nextEntryId++,\n forwardOps,\n baseOps,\n label,\n timestamp: now(),\n pushes: 1,\n touchedIds: touchedIdsFromOps(forwardOps),\n ...options2.selectionBefore ? { selectionBefore: [...options2.selectionBefore] } : {},\n ...key !== void 0 ? { coalesceKey: key } : {}\n };\n undoStack.push(entry);\n retireRedo(at);\n enforceLimit();\n bump(stepped.size > 0 ? stepOf(\"push\", [entry]) : void 0);\n if (key !== void 0) coalesceAnchorVersion = version;\n }\n const history = {\n apply(op, label) {\n pushOrCoalesce([op], label ?? op.label ?? \"\", true);\n },\n applyOps(ops, label) {\n pushOrCoalesce(ops, label);\n },\n undo() {\n if (undoStack.length === 0) return;\n bump(stepOf(\"undo\", walkTo(undoStack.length - 1)));\n },\n redo() {\n if (redoStack.length === 0) return;\n bump(stepOf(\"redo\", walkTo(undoStack.length + 1)));\n },\n seal() {\n coalesceAnchorVersion = -1;\n },\n canUndo: () => undoStack.length > 0,\n canRedo: () => redoStack.length > 0,\n undoDepth: () => undoStack.length,\n redoDepth: () => redoStack.length,\n clear: () => {\n const had = undoStack.length > 0 || redoStack.length > 0 || forks.size > 0;\n undoStack.length = 0;\n redoStack.length = 0;\n forks.clear();\n floorId = 0;\n if (had) bump(stepOf(\"clear\"));\n },\n entries() {\n return {\n undo: undoStack.map(entryView),\n redo: [...redoStack].reverse().map(entryView)\n };\n },\n goto(n) {\n const total = undoStack.length + redoStack.length;\n if (n < 0 || n > total || n === undoStack.length) return;\n const start = undoStack.length;\n let walked;\n try {\n walked = walkTo(n);\n } catch (err) {\n try {\n walkTo(start);\n } catch (back) {\n logger.warn(`goto: returning to depth ${start} threw: ${String(back)}`);\n }\n if (undoStack.length !== start) bump();\n throw err;\n }\n bump(stepOf(\"goto\", walked));\n },\n timestampAt(i) {\n if (i < 0) return void 0;\n if (i < undoStack.length) return undoStack[i].timestamp;\n return redoStack[redoStack.length - 1 - (i - undoStack.length)]?.timestamp;\n },\n depthAt(t) {\n let n = undoStack.length;\n while (n > 0 && undoStack[n - 1].timestamp > t) n--;\n if (n < undoStack.length) return n;\n for (let r = redoStack.length - 1; r >= 0 && redoStack[r].timestamp <= t; r--) n++;\n return n;\n },\n prune(t) {\n let k = 0;\n while (k < undoStack.length && undoStack[k].timestamp < t) k++;\n if (k === 0) return;\n const evicted = undoStack.splice(0, k);\n evictFloor(evicted);\n bump(stepOf(\"prune\", evicted));\n },\n branches() {\n const view = (entries, current) => {\n const first = entries[0];\n return { id: first.id, label: first.label, timestamp: first.timestamp, length: entries.length, current };\n };\n const out = (forks.get(forkPoint()) ?? []).map((b) => view(b, false));\n if (redoStack.length > 0) out.push(view([...redoStack].reverse(), true));\n return out.sort((a, b) => a.id - b.id);\n },\n switchBranch(id) {\n if (redoStack[redoStack.length - 1]?.id === id) return;\n const at = forkPoint();\n const kept = forks.get(at) ?? [];\n const i = kept.findIndex((b) => b[0].id === id);\n if (i < 0) throw new Error(`No branch ${id} forks from entry ${at}`);\n const [chosen] = kept.splice(i, 1);\n if (redoStack.length > 0) kept.push(redoStack.splice(0).reverse());\n if (kept.length > 0) forks.set(at, kept);\n else forks.delete(at);\n redoStack.push(...[...chosen].reverse());\n bump(stepOf(\"branch\", chosen));\n },\n getVersion: () => version,\n subscribe: changed.subscribe,\n observe: stepped.subscribe,\n serialize: () => snapshot({ undoStack, redoStack, forks, floorId, nextEntryId }, logger),\n recordEntry(ops, label, options2) {\n record(ops, ops, label, options2);\n },\n allForwardOps() {\n const out = [];\n for (const e of undoStack) {\n for (const op of e.forwardOps) out.push(op);\n }\n return out;\n },\n currentEntryId: () => nextEntryId,\n beginJournal(opts) {\n if (activeJournal !== null && activeJournal.isActive()) {\n throw new Error(\"A journal is already active \\u2014 commit, cancel, or suspend it first\");\n }\n const j = createJournalInternal(history, adapter, opts, () => {\n activeJournal = null;\n }, {\n coalesceWindowMs,\n now,\n debug: logger,\n ...selection ? { selection } : {}\n });\n activeJournal = j;\n return j;\n },\n activeJournal: () => activeJournal?.isActive() ? activeJournal : null,\n resumeJournal(journal) {\n if (activeJournal !== null && activeJournal !== journal && activeJournal.isActive()) {\n throw new Error(\"A journal is already active \\u2014 commit, cancel, or suspend it first\");\n }\n _resumeJournalInternal(journal);\n activeJournal = journal;\n },\n restore(serialized) {\n const next = rebuilt(serialized, customRebuild, logger);\n undoStack.splice(0, undoStack.length, ...next.undoStack);\n redoStack.splice(0, redoStack.length, ...next.redoStack);\n forks.clear();\n for (const [at, kept] of next.forks) forks.set(at, kept);\n floorId = next.floorId;\n nextEntryId = next.nextEntryId;\n bump(stepOf(\"restore\"));\n }\n };\n JOURNAL_ACCESS.set(history, {\n appliedOps: () => appliedHalves(undoStack),\n record\n });\n return history;\n}\n\n// src/swapOp.ts\nfunction swapOp({ name, label, before, after, emit, coalesceKey }) {\n const forward = {\n label,\n name,\n args: { before, after },\n ...coalesceKey !== void 0 ? { coalesceKey } : {},\n apply: () => emit(after),\n invert: () => ({ label, apply: () => emit(before), invert: () => forward })\n };\n return forward;\n}\n\nexport { createHistory, swapOp, touchedIdsFromOps };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","// src/commandPaint.ts\nfunction isSolidPaint(paint) {\n return paint != null && (paint.kind === void 0 || paint.kind === \"solid\");\n}\n\n// src/strokeTrim.ts\nfunction strokeTrimKey(trim) {\n if (trim === void 0) return \"\";\n return `trim(${atKey(trim.start ?? 0)},${atKey(trim.end ?? 1)},${trim.pace ?? \"length\"})`;\n}\nfunction atKey(at) {\n if (typeof at === \"number\") return String(at);\n if (\"length\" in at) return `l${at.length}`;\n if (\"anchor\" in at) return `a${at.anchor}`;\n return `s${at.subpath}`;\n}\n\n// src/resolvePaint.ts\nvar INHERIT = \"inherit\";\nfunction resolveFill(fill, inherited = null) {\n if (fill === INHERIT) return inherited;\n return fill?.paint == null ? null : fill;\n}\nfunction resolveStroke(stroke, inherited = null) {\n if (stroke === INHERIT) return inherited;\n return stroke?.paint == null ? null : stroke;\n}\n\n// src/paintKey.ts\nfunction canonical(value) {\n if (Array.isArray(value)) return `[${value.map(canonical).join(\",\")}]`;\n if (typeof value !== \"object\" || value === null) return JSON.stringify(value) ?? \"null\";\n const fields = Object.keys(value).sort().filter((k) => value[k] !== void 0).map((k) => `${JSON.stringify(k)}:${canonical(value[k])}`);\n return `{${fields.join(\",\")}}`;\n}\nvar structuralKeys = /* @__PURE__ */ new WeakMap();\nvar strokeShapeKeys = /* @__PURE__ */ new WeakMap();\nfunction paintKey(paint) {\n if (paint == null) return \"none\";\n if (isSolidPaint(paint)) return `solid:${paint.color}:${paint.opacity ?? 1}`;\n let key = structuralKeys.get(paint);\n if (key === void 0) {\n key = canonical(paint);\n structuralKeys.set(paint, key);\n }\n return key;\n}\nfunction fillHasInk(fill) {\n return resolveFill(fill) !== null;\n}\nfunction strokeHasInk(stroke) {\n const painted = resolveStroke(stroke);\n if (painted === null) return false;\n const width = painted.width ?? 1;\n return (typeof width === \"number\" ? width : width.px) > 0;\n}\nfunction strokeKey(stroke) {\n if (!strokeHasInk(stroke)) return \"none\";\n let shape = strokeShapeKeys.get(stroke);\n if (shape === void 0) {\n const { paint: _paint, width, join, cap, miterLimit, align, dash, ...rest } = stroke;\n shape = canonical({\n ...rest,\n width: width ?? 1,\n join: join ?? \"miter\",\n cap: cap ?? \"butt\",\n miterLimit: miterLimit ?? 4,\n align: align ?? \"center\",\n dash: dash ?? []\n });\n strokeShapeKeys.set(stroke, shape);\n }\n return `${shape}|${paintKey(stroke.paint)}`;\n}\n\n// src/patternPaint.ts\nvar TILE_KINDS = [\"hatch\", \"crosshatch\", \"dots\", \"chunks\"];\nvar TILE_KIND_SET = new Set(TILE_KINDS);\nfunction isTileKind(kind) {\n return kind !== void 0 && TILE_KIND_SET.has(kind);\n}\nfunction isTilePaint(paint) {\n return isTileKind(paint.kind);\n}\nfunction isImagePatternPaint(paint) {\n return paint.kind === \"image\";\n}\nfunction isPatternPaint(paint) {\n return paint.kind === \"texture\" || paint.kind === \"image\" || isTileKind(paint.kind);\n}\nfunction patternPlacementOf(paint) {\n const { units, origin, transform, opacity } = paint;\n return {\n ...units !== void 0 ? { units } : {},\n ...origin !== void 0 ? { origin } : {},\n ...transform !== void 0 ? { transform } : {},\n ...opacity !== void 0 ? { opacity } : {}\n };\n}\nfunction tileSpecOf(paint) {\n const { units: _units, origin: _origin, transform: _transform, opacity: _opacity, ...spec } = paint;\n return spec;\n}\n\n// src/patternTransform.ts\nfunction composePatternTransform(parts) {\n const { rotation = 0, scaleX = 1, scaleY = 1, skewX = 0 } = parts;\n const cos = Math.cos(rotation);\n const sin = Math.sin(rotation);\n const shear = Math.tan(skewX) * scaleY;\n return [\n cos * scaleX,\n sin * scaleX,\n cos * shear - sin * scaleY,\n sin * shear + cos * scaleY\n ];\n}\nfunction decomposePatternTransform(t) {\n if (!t) return { rotation: 0, scaleX: 1, scaleY: 1, skewX: 0 };\n const [a, b, c, d] = t;\n const scaleX = Math.hypot(a, b);\n const rotation = scaleX === 0 ? 0 : Math.atan2(b, a);\n const cos = Math.cos(rotation);\n const sin = Math.sin(rotation);\n const shear = c * cos + d * sin;\n const scaleY = d * cos - c * sin;\n const skewX = scaleY === 0 ? 0 : Math.atan(shear / scaleY);\n return { rotation, scaleX, scaleY, skewX };\n}\n\n// src/vertexWidth.ts\nvar usable = (v) => typeof v === \"number\" && Number.isFinite(v) && v >= 0;\nfunction vertexHalfWidths(entry, fallback) {\n const half = fallback / 2;\n if (typeof entry === \"number\") return usable(entry) ? { left: entry / 2, right: entry / 2 } : { left: half, right: half };\n if (entry == null || typeof entry !== \"object\") return { left: half, right: half };\n return { left: usable(entry.left) ? entry.left : half, right: usable(entry.right) ? entry.right : half };\n}\nfunction vertexWidthFromSides(left, right) {\n return Math.abs(left - right) <= 1e-9 * Math.max(1, Math.abs(left), Math.abs(right)) ? left + right : { left, right };\n}\nfunction scaleVertexWidth(entry, k) {\n return typeof entry === \"number\" ? entry * k : { left: entry.left * k, right: entry.right * k };\n}\nfunction widestHalfWidth(width, vertexWidths) {\n let widest = width / 2;\n if (vertexWidths) {\n for (const entry of vertexWidths) {\n const { left, right } = vertexHalfWidths(entry, width);\n widest = Math.max(widest, left, right);\n }\n }\n return widest;\n}\n\n// src/paint.ts\nfunction resolveScreenLength(value, scale) {\n if (typeof value === \"number\") return value;\n if (!Number.isFinite(scale) || scale === 0) return value.px;\n return value.px / scale;\n}\nfunction alignedStrokeRect(rect, align, width = 1) {\n if (align === \"center\") return rect;\n const sign = align === \"inner\" ? -1 : 1;\n const d = sign * width / 2;\n return {\n x: rect.x - d,\n y: rect.y - d,\n width: rect.width + 2 * d,\n height: rect.height + 2 * d\n };\n}\nvar STROKE_DASH_RATIOS = {\n dashed: [3, 2],\n dotted: [1, 2]\n};\nfunction dashWidth(width) {\n const w = typeof width === \"object\" ? width.px : width ?? 1;\n return Number.isFinite(w) && w > 0 ? w : 1;\n}\nfunction dashForStrokeStyle(style, width) {\n if (style !== \"dashed\" && style !== \"dotted\") return void 0;\n const w = dashWidth(width);\n return STROKE_DASH_RATIOS[style].map((r) => r * w);\n}\nvar MAX_DASH_RUNS = 1e5;\nfunction dashPattern(dash, length) {\n if (dash === void 0 || dash.length === 0) return \"solid\";\n if (!dash.every(Number.isFinite)) return \"non-finite\";\n if (dash.some((v) => v < 0) || !dash.some((v) => v > 0)) return \"solid\";\n if (length !== void 0) {\n const period = dash.reduce((a, b) => a + b, 0);\n if (length / period * dash.length > MAX_DASH_RUNS) return \"solid\";\n }\n return dash;\n}\nfunction strokeDashStyleOf(dash, width) {\n const pattern = dashPattern(dash);\n if (pattern === \"solid\") return \"solid\";\n if (pattern === \"non-finite\") return \"custom\";\n const w = dashWidth(width);\n for (const style of [\"dashed\", \"dotted\"]) {\n const preset = STROKE_DASH_RATIOS[style];\n if (pattern.length === preset.length && preset.every((r, i) => Math.abs(pattern[i] - r * w) <= w * 1e-3)) {\n return style;\n }\n }\n return \"custom\";\n}\n\n// src/hex.ts\nvar HEX = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;\nfunction parseHexBytes(input) {\n if (!HEX.test(input)) return null;\n const digits = input.slice(1);\n const long = digits.length <= 4 ? digits.replace(/./g, \"$&$&\") : digits;\n const byte = (i) => Number.parseInt(long.slice(i, i + 2), 16);\n return [byte(0), byte(2), byte(4), long.length === 8 ? byte(6) : 255];\n}\nfunction hexToRgbBytes(input) {\n const bytes = parseHexBytes(input);\n if (!bytes) throw new Error(`not a hex color: \"${input}\"`);\n return [bytes[0], bytes[1], bytes[2]];\n}\n\n// src/shortArc.ts\nvar TWO_PI = Math.PI * 2;\nfunction shortArc(dh) {\n const r = dh % TWO_PI;\n return r > Math.PI ? r - TWO_PI : r < -Math.PI ? r + TWO_PI : r;\n}\n\n// src/colorSpaces.ts\nvar SRGB_TO_LINEAR = (() => {\n const lut = new Float64Array(256);\n for (let i = 0; i < 256; i++) {\n const c = i / 255;\n lut[i] = c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);\n }\n return lut;\n})();\nfunction linearToSrgbByte(c) {\n if (c <= 0) return 0;\n if (c >= 1) return 255;\n const v = c <= 31308e-7 ? c * 12.92 : 1.055 * Math.pow(c, 1 / 2.4) - 0.055;\n return Math.round(v * 255);\n}\nvar f2u = (v) => Math.max(0, Math.min(255, Math.round(v * 255)));\nfunction srgbFloatToOklab(r, g, b) {\n return srgbU8ToOklab(f2u(r), f2u(g), f2u(b));\n}\nfunction srgbU8ToOklab(r, g, b) {\n return linearSrgbToOklab(SRGB_TO_LINEAR[r & 255], SRGB_TO_LINEAR[g & 255], SRGB_TO_LINEAR[b & 255]);\n}\nfunction linearSrgbToOklab(rl, gl, bl) {\n const l = 0.4122214708 * rl + 0.5363325363 * gl + 0.0514459929 * bl;\n const m = 0.2119034982 * rl + 0.6806995451 * gl + 0.1073969566 * bl;\n const s = 0.0883024619 * rl + 0.2817188376 * gl + 0.6299787005 * bl;\n const lp = Math.cbrt(l);\n const mp = Math.cbrt(m);\n const sp = Math.cbrt(s);\n return [\n 0.2104542553 * lp + 0.793617785 * mp - 0.0040720468 * sp,\n 1.9779984951 * lp - 2.428592205 * mp + 0.4505937099 * sp,\n 0.0259040371 * lp + 0.7827717662 * mp - 0.808675766 * sp\n ];\n}\nfunction oklabToLinearSrgb(L, A, B) {\n const lp = L + 0.3963377774 * A + 0.2158037573 * B;\n const mp = L - 0.1055613458 * A - 0.0638541728 * B;\n const sp = L - 0.0894841775 * A - 1.291485548 * B;\n const l = lp * lp * lp;\n const m = mp * mp * mp;\n const s = sp * sp * sp;\n return [\n 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,\n -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,\n -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s\n ];\n}\nfunction inGamut(rl, gl, bl) {\n const eps = 1e-6;\n return rl >= -eps && rl <= 1 + eps && gl >= -eps && gl <= 1 + eps && bl >= -eps && bl <= 1 + eps;\n}\nfunction clipToGamut(L, A, B) {\n let [rl, gl, bl] = oklabToLinearSrgb(L, A, B);\n if (inGamut(rl, gl, bl)) return [rl, gl, bl];\n let lo = 0;\n let hi = 1;\n for (let i = 0; i < 5; i++) {\n const t = (lo + hi) / 2;\n [rl, gl, bl] = oklabToLinearSrgb(L, A * t, B * t);\n if (inGamut(rl, gl, bl)) lo = t;\n else hi = t;\n }\n [rl, gl, bl] = oklabToLinearSrgb(L, A * lo, B * lo);\n return [rl, gl, bl];\n}\nfunction oklabToSrgbU8(L, A, B) {\n const [rl, gl, bl] = clipToGamut(L, A, B);\n return [linearToSrgbByte(rl), linearToSrgbByte(gl), linearToSrgbByte(bl)];\n}\nfunction lerpOklab(from, to, t) {\n return [\n from[0] + (to[0] - from[0]) * t,\n from[1] + (to[1] - from[1]) * t,\n from[2] + (to[2] - from[2]) * t\n ];\n}\nfunction mixOklab(a, b, p) {\n const alpha = a[3] * p + b[3] * (1 - p);\n if (alpha === 0) return [0, 0, 0, 0];\n const la = srgbFloatToOklab(a[0], a[1], a[2]);\n const lb = srgbFloatToOklab(b[0], b[1], b[2]);\n const mix = (i) => (la[i] * a[3] * p + lb[i] * b[3] * (1 - p)) / alpha;\n const [r, g, bl] = oklabToSrgbU8(mix(0), mix(1), mix(2));\n return [r / 255, g / 255, bl / 255, alpha];\n}\nfunction oklabToOklch(L, A, B) {\n const C = Math.hypot(A, B);\n const h = Math.atan2(B, A);\n return [L, C, h];\n}\nfunction oklchToOklab(L, C, h) {\n return [L, C * Math.cos(h), C * Math.sin(h)];\n}\nfunction lerpOklch(from, to, t) {\n const [L1, C1, h1Raw] = from;\n const [L2, C2, h2Raw] = to;\n const C_EPS = 1e-4;\n const h1 = C1 < C_EPS ? h2Raw : h1Raw;\n const h2 = C2 < C_EPS ? h1Raw : h2Raw;\n const dh = shortArc(h2 - h1);\n return [\n L1 + (L2 - L1) * t,\n C1 + (C2 - C1) * t,\n h1 + dh * t\n ];\n}\nvar u2f = (v) => v / 255;\nfunction lerpColorArray(from, to, t, space = \"rgb\") {\n if (from.length !== to.length) {\n throw new Error(`lerpColorArray: length mismatch (from=${from.length}, to=${to.length})`);\n }\n if (from.length % 4 !== 0) {\n throw new Error(`lerpColorArray: length ${from.length} not divisible by 4`);\n }\n const out = new Array(from.length);\n const n = from.length / 4;\n if (space === \"rgb\") {\n for (let i = 0; i < from.length; i++) {\n out[i] = from[i] + (to[i] - from[i]) * t;\n }\n return out;\n }\n if (space === \"oklch\") {\n for (let i = 0; i < n; i++) {\n const k = i * 4;\n const fLab = srgbU8ToOklab(f2u(from[k]), f2u(from[k + 1]), f2u(from[k + 2]));\n const tLab = srgbU8ToOklab(f2u(to[k]), f2u(to[k + 1]), f2u(to[k + 2]));\n const fLch = oklabToOklch(fLab[0], fLab[1], fLab[2]);\n const tLch = oklabToOklch(tLab[0], tLab[1], tLab[2]);\n const midLch = lerpOklch(fLch, tLch, t);\n const midLab = oklchToOklab(midLch[0], midLch[1], midLch[2]);\n const [r, g, b] = oklabToSrgbU8(midLab[0], midLab[1], midLab[2]);\n out[k] = u2f(r);\n out[k + 1] = u2f(g);\n out[k + 2] = u2f(b);\n out[k + 3] = from[k + 3] + (to[k + 3] - from[k + 3]) * t;\n }\n return out;\n }\n for (let i = 0; i < n; i++) {\n const k = i * 4;\n const fLab = srgbU8ToOklab(f2u(from[k]), f2u(from[k + 1]), f2u(from[k + 2]));\n const tLab = srgbU8ToOklab(f2u(to[k]), f2u(to[k + 1]), f2u(to[k + 2]));\n const mid = lerpOklab(fLab, tLab, t);\n const [r, g, b] = oklabToSrgbU8(mid[0], mid[1], mid[2]);\n out[k] = u2f(r);\n out[k + 1] = u2f(g);\n out[k + 2] = u2f(b);\n out[k + 3] = from[k + 3] + (to[k + 3] - from[k + 3]) * t;\n }\n return out;\n}\nvar hex2 = (v) => Math.max(0, Math.min(255, Math.round(v))).toString(16).padStart(2, \"0\");\nfunction oklchDegToHex(L, C, hueDeg) {\n const [l, a, b] = oklchToOklab(L, C, hueDeg * Math.PI / 180);\n const [r, g, bl] = oklabToSrgbU8(l, a, b);\n return `#${hex2(r)}${hex2(g)}${hex2(bl)}`;\n}\nfunction hexToOklchDeg(hex) {\n const [L, A, B] = srgbU8ToOklab(...hexToRgbBytes(hex));\n const [l, c, h] = oklabToOklch(L, A, B);\n return { L: l, C: c, H: (h * 180 / Math.PI % 360 + 360) % 360 };\n}\nfunction srgbToLinear(c) {\n const a = Math.abs(c);\n const v = a <= 0.04045 ? a / 12.92 : Math.pow((a + 0.055) / 1.055, 2.4);\n return c < 0 ? -v : v;\n}\nfunction linearToSrgb(c) {\n const a = Math.abs(c);\n const v = a <= 31308e-7 ? a * 12.92 : 1.055 * Math.pow(a, 1 / 2.4) - 0.055;\n return c < 0 ? -v : v;\n}\nfunction hslToSrgb(h, s, l) {\n if (s === 0) return [l, l, l];\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n const hk = h / 360;\n return [hueToChannel(p, q, hk + 1 / 3), hueToChannel(p, q, hk), hueToChannel(p, q, hk - 1 / 3)];\n}\nfunction hueToChannel(p, q, t) {\n if (t < 0) t += 1;\n if (t > 1) t -= 1;\n if (t < 1 / 6) return p + (q - p) * 6 * t;\n if (t < 1 / 2) return q;\n if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction srgbToHsl(r, g, b) {\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n const d = max - min;\n if (d === 0) return [0, 0, l];\n const s = d / (1 - Math.abs(2 * l - 1));\n let h;\n if (max === r) h = (g - b) / d % 6;\n else if (max === g) h = (b - r) / d + 2;\n else h = (r - g) / d + 4;\n return [(h * 60 % 360 + 360) % 360, s, l];\n}\nvar ACHROMATIC_EPS = 1e-4;\nfunction lerpHueDeg(h1, h2, t, method) {\n let dh = ((h2 - h1) % 360 + 360) % 360;\n if (method === \"shorter\") {\n if (dh > 180) dh -= 360;\n } else if (dh > 0 && dh < 180) {\n dh -= 360;\n }\n return ((h1 + dh * t) % 360 + 360) % 360;\n}\nfunction lerpPolar(a, b, t, method) {\n const h1 = a[0] < ACHROMATIC_EPS ? b[1] : a[1];\n const h2 = b[0] < ACHROMATIC_EPS ? a[1] : b[1];\n return [a[0] + (b[0] - a[0]) * t, lerpHueDeg(h1, h2, t, method), a[2] + (b[2] - a[2]) * t];\n}\nvar lerp3 = (a, b, t) => [\n a[0] + (b[0] - a[0]) * t,\n a[1] + (b[1] - a[1]) * t,\n a[2] + (b[2] - a[2]) * t\n];\nvar clamp01 = (v) => v < 0 ? 0 : v > 1 ? 1 : v;\nvar srgbToOklabFloat = (c) => linearSrgbToOklab(srgbToLinear(c[0]), srgbToLinear(c[1]), srgbToLinear(c[2]));\nfunction oklabToSrgbClipped(L, A, B) {\n const [rl, gl, bl] = clipToGamut(L, A, B);\n return [clamp01(linearToSrgb(rl)), clamp01(linearToSrgb(gl)), clamp01(linearToSrgb(bl))];\n}\nfunction interpolateSrgb(from, to, t, space = \"oklch\", hue = \"shorter\") {\n switch (space) {\n case \"srgb\":\n return lerp3(from, to, t);\n case \"srgb-linear\": {\n const lin = (c) => [srgbToLinear(c[0]), srgbToLinear(c[1]), srgbToLinear(c[2])];\n const [r, g, b] = lerp3(lin(from), lin(to), t);\n return [linearToSrgb(r), linearToSrgb(g), linearToSrgb(b)];\n }\n case \"oklab\": {\n const [L, A, B] = lerp3(srgbToOklabFloat(from), srgbToOklabFloat(to), t);\n return oklabToSrgbClipped(L, A, B);\n }\n case \"oklch\": {\n const polar = (c) => {\n const [L2, C2, h] = oklabToOklch(...srgbToOklabFloat(c));\n return [C2, (h * 180 / Math.PI % 360 + 360) % 360, L2];\n };\n const [C, H, L] = lerpPolar(polar(from), polar(to), t, hue);\n const [l, a, b] = oklchToOklab(L, C, H * Math.PI / 180);\n return oklabToSrgbClipped(l, a, b);\n }\n case \"hsl\": {\n const polar = (c) => {\n const [h2, s2, l2] = srgbToHsl(c[0], c[1], c[2]);\n return [s2, h2, l2];\n };\n const [s, h, l] = lerpPolar(polar(from), polar(to), t, hue);\n return hslToSrgb(h, s, l);\n }\n }\n}\n\n// src/color.ts\nfunction parseColor(input) {\n const cached = CACHE.get(input);\n if (cached !== void 0) return cached;\n const result = parseColorUncached(input);\n if (CACHE.size >= CACHE_MAX) CACHE.clear();\n CACHE.set(input, result);\n return result;\n}\nvar CACHE = /* @__PURE__ */ new Map();\nvar CACHE_MAX = 1024;\nfunction parseColorUncached(input) {\n const s = input.trim();\n if (s.startsWith(\"#\")) return parseHex(s);\n const lower = s.toLowerCase();\n const named = NAMED_COLORS[lower];\n if (named !== void 0) return named;\n if (lower.startsWith(\"rgb\")) {\n const parsed = parseRgbFunction(lower);\n if (parsed) return parsed;\n }\n if (lower.startsWith(\"hsl\")) {\n const parsed = parseHslFunction(lower);\n if (parsed) return parsed;\n }\n if (lower.startsWith(\"color(\")) {\n const parsed = parseColorFunction(lower);\n if (parsed) return parsed;\n }\n if (lower.startsWith(\"ok\")) {\n const parsed = parseOkFunction(lower);\n if (parsed) return parsed;\n }\n throw new Error(`parseColor: unrecognized color \"${input}\"`);\n}\nvar RESOLVE_COLOR_CACHE_CAP = 1024;\nvar resolveColorCache = /* @__PURE__ */ new Map();\nfunction resolveColor(input) {\n const hit = resolveColorCache.get(input);\n if (hit) return hit;\n if (resolveColorCache.size >= RESOLVE_COLOR_CACHE_CAP) {\n resolveColorCache.clear();\n }\n const parsed = parseColor(input);\n const frozen = parsed;\n resolveColorCache.set(input, frozen);\n return frozen;\n}\nfunction parseColorToRgba255(input) {\n const [r, g, b, a] = parseColor(input);\n return [\n Math.round(r * 255),\n Math.round(g * 255),\n Math.round(b * 255),\n Math.round(a * 255)\n ];\n}\nfunction normalizeHex(input, form) {\n const hex = tryNormalizeHex(input, form);\n if (hex === void 0) throw new Error(`normalizeHex: invalid hex \"${input}\"`);\n return hex;\n}\nfunction tryNormalizeHex(input, form) {\n const trimmed = input.trim();\n const hashed = trimmed.startsWith(\"#\") ? trimmed : `#${trimmed}`;\n const bytes = parseHexBytes(hashed);\n if (!bytes) return void 0;\n const digits = bytes.map((n) => n.toString(16).padStart(2, \"0\")).join(\"\");\n const alpha = form ? form === \"rgba\" : hashed.length === 5 || hashed.length === 9;\n return `#${alpha ? digits : digits.slice(0, 6)}`;\n}\nfunction hexToRgba(input) {\n return parseHex(normalizeHex(input));\n}\nfunction rgbaToHex(rgba) {\n const [r, g, b] = rgba;\n const a = rgba.length === 4 ? rgba[3] : 1;\n const f = (n) => Math.max(0, Math.min(255, Math.round(n * 255))).toString(16).padStart(2, \"0\");\n const base = `#${f(r)}${f(g)}${f(b)}`;\n return a >= 1 ? base : `${base}${f(a)}`;\n}\nfunction parseHex(s) {\n const bytes = parseHexBytes(s);\n if (!bytes) throw new Error(`parseColor: invalid hex \"${s}\"`);\n return [bytes[0] / 255, bytes[1] / 255, bytes[2] / 255, bytes[3] / 255];\n}\nfunction unwrapFn(s, name) {\n if (!s.startsWith(name + \"(\") || !s.endsWith(\")\")) return null;\n return s.slice(name.length + 1, -1).trim();\n}\nfunction splitChannels(body) {\n if (body.includes(\",\")) {\n const parts2 = body.split(\",\").map((p) => p.trim());\n if (parts2.length !== 3 && parts2.length !== 4) return null;\n return {\n rgb: [parts2[0], parts2[1], parts2[2]],\n alpha: parts2.length === 4 ? parts2[3] : null\n };\n }\n const slash = body.indexOf(\"/\");\n const head = (slash === -1 ? body : body.slice(0, slash)).trim();\n const alpha = slash === -1 ? null : body.slice(slash + 1).trim();\n const parts = head.split(/\\s+/);\n if (parts.length !== 3) return null;\n if (alpha !== null && alpha === \"\") return null;\n return { rgb: [parts[0], parts[1], parts[2]], alpha };\n}\nfunction parseChannel(tok, max) {\n if (tok.endsWith(\"%\")) {\n const n2 = Number(tok.slice(0, -1));\n if (!Number.isFinite(n2)) return null;\n return clamp012(n2 / 100);\n }\n const n = Number(tok);\n if (!Number.isFinite(n)) return null;\n return clamp012(n / max);\n}\nfunction parseAlpha(tok) {\n if (tok === null) return 1;\n if (tok.endsWith(\"%\")) {\n const n2 = Number(tok.slice(0, -1));\n return Number.isFinite(n2) ? clamp012(n2 / 100) : 1;\n }\n const n = Number(tok);\n return Number.isFinite(n) ? clamp012(n) : 1;\n}\nfunction parseRgbFunction(s) {\n const body = unwrapFn(s, \"rgba\") ?? unwrapFn(s, \"rgb\");\n if (body === null) return null;\n const channels = splitChannels(body);\n if (!channels) return null;\n const r = parseChannel(channels.rgb[0], 255);\n const g = parseChannel(channels.rgb[1], 255);\n const b = parseChannel(channels.rgb[2], 255);\n if (r === null || g === null || b === null) return null;\n return [r, g, b, parseAlpha(channels.alpha)];\n}\nfunction parseHslFunction(s) {\n const body = unwrapFn(s, \"hsla\") ?? unwrapFn(s, \"hsl\");\n if (body === null) return null;\n const channels = splitChannels(body);\n if (!channels) return null;\n const h = parseHue(channels.rgb[0]);\n const sat = parsePercentOrNumber(channels.rgb[1]);\n const lit = parsePercentOrNumber(channels.rgb[2]);\n if (h === null || sat === null || lit === null) return null;\n const [r, g, b] = hslToSrgb(h, sat, lit);\n return [r, g, b, parseAlpha(channels.alpha)];\n}\nfunction parseColorFunction(s) {\n const body = unwrapFn(s, \"color\");\n const space = body?.match(/^(srgb-linear|srgb)\\s+/);\n if (!body || !space || body.includes(\",\")) return null;\n const channels = splitChannels(body.slice(space[0].length));\n if (!channels) return null;\n const rgb = channels.rgb.map((tok) => parseChannel(tok, 1));\n if (rgb.some((c) => c === null)) return null;\n const [r, g, b] = space[1] === \"srgb\" ? rgb : rgb.map((c) => linearToSrgb(c));\n return [clamp012(r), clamp012(g), clamp012(b), parseAlpha(channels.alpha)];\n}\nfunction parseOkFunction(s) {\n const lch = unwrapFn(s, \"oklch\");\n const body = lch ?? unwrapFn(s, \"oklab\");\n if (body === null || body.includes(\",\")) return null;\n const channels = splitChannels(body);\n if (!channels) return null;\n const L = parsePercentOrNumber(channels.rgb[0]);\n const second = Number(channels.rgb[1]);\n if (L === null || !Number.isFinite(second)) return null;\n let A = second;\n let B = Number(channels.rgb[2]);\n if (lch !== null) {\n const h = parseHue(channels.rgb[2]);\n if (h === null) return null;\n [, A, B] = oklchToOklab(L, second, h * (Math.PI / 180));\n } else if (!Number.isFinite(B)) return null;\n const [r, g, b] = oklabToLinearSrgb(L, A, B).map((c) => clamp012(linearToSrgb(c)));\n return [r, g, b, parseAlpha(channels.alpha)];\n}\nfunction parseHue(tok) {\n let n;\n if (tok.endsWith(\"deg\")) n = Number(tok.slice(0, -3));\n else if (tok.endsWith(\"grad\")) n = Number(tok.slice(0, -4)) * 0.9;\n else if (tok.endsWith(\"rad\")) n = Number(tok.slice(0, -3)) * (180 / Math.PI);\n else if (tok.endsWith(\"turn\")) n = Number(tok.slice(0, -4)) * 360;\n else n = Number(tok);\n if (!Number.isFinite(n)) return null;\n return (n % 360 + 360) % 360;\n}\nfunction parsePercentOrNumber(tok) {\n if (tok.endsWith(\"%\")) {\n const n2 = Number(tok.slice(0, -1));\n return Number.isFinite(n2) ? clamp012(n2 / 100) : null;\n }\n const n = Number(tok);\n return Number.isFinite(n) ? clamp012(n) : null;\n}\nfunction clamp012(n) {\n return n < 0 ? 0 : n > 1 ? 1 : n;\n}\nvar NAMED_COLORS = (() => {\n const hex = {\n aliceblue: 15792383,\n antiquewhite: 16444375,\n aqua: 65535,\n aquamarine: 8388564,\n azure: 15794175,\n beige: 16119260,\n bisque: 16770244,\n black: 0,\n blanchedalmond: 16772045,\n blue: 255,\n blueviolet: 9055202,\n brown: 10824234,\n burlywood: 14596231,\n cadetblue: 6266528,\n chartreuse: 8388352,\n chocolate: 13789470,\n coral: 16744272,\n cornflowerblue: 6591981,\n cornsilk: 16775388,\n crimson: 14423100,\n cyan: 65535,\n darkblue: 139,\n darkcyan: 35723,\n darkgoldenrod: 12092939,\n darkgray: 11119017,\n darkgreen: 25600,\n darkgrey: 11119017,\n darkkhaki: 12433259,\n darkmagenta: 9109643,\n darkolivegreen: 5597999,\n darkorange: 16747520,\n darkorchid: 10040012,\n darkred: 9109504,\n darksalmon: 15308410,\n darkseagreen: 9419919,\n darkslateblue: 4734347,\n darkslategray: 3100495,\n darkslategrey: 3100495,\n darkturquoise: 52945,\n darkviolet: 9699539,\n deeppink: 16716947,\n deepskyblue: 49151,\n dimgray: 6908265,\n dimgrey: 6908265,\n dodgerblue: 2003199,\n firebrick: 11674146,\n floralwhite: 16775920,\n forestgreen: 2263842,\n fuchsia: 16711935,\n gainsboro: 14474460,\n ghostwhite: 16316671,\n gold: 16766720,\n goldenrod: 14329120,\n gray: 8421504,\n green: 32768,\n greenyellow: 11403055,\n grey: 8421504,\n honeydew: 15794160,\n hotpink: 16738740,\n indianred: 13458524,\n indigo: 4915330,\n ivory: 16777200,\n khaki: 15787660,\n lavender: 15132410,\n lavenderblush: 16773365,\n lawngreen: 8190976,\n lemonchiffon: 16775885,\n lightblue: 11393254,\n lightcoral: 15761536,\n lightcyan: 14745599,\n lightgoldenrodyellow: 16448210,\n lightgray: 13882323,\n lightgreen: 9498256,\n lightgrey: 13882323,\n lightpink: 16758465,\n lightsalmon: 16752762,\n lightseagreen: 2142890,\n lightskyblue: 8900346,\n lightslategray: 7833753,\n lightslategrey: 7833753,\n lightsteelblue: 11584734,\n lightyellow: 16777184,\n lime: 65280,\n limegreen: 3329330,\n linen: 16445670,\n magenta: 16711935,\n maroon: 8388608,\n mediumaquamarine: 6737322,\n mediumblue: 205,\n mediumorchid: 12211667,\n mediumpurple: 9662683,\n mediumseagreen: 3978097,\n mediumslateblue: 8087790,\n mediumspringgreen: 64154,\n mediumturquoise: 4772300,\n mediumvioletred: 13047173,\n midnightblue: 1644912,\n mintcream: 16121850,\n mistyrose: 16770273,\n moccasin: 16770229,\n navajowhite: 16768685,\n navy: 128,\n oldlace: 16643558,\n olive: 8421376,\n olivedrab: 7048739,\n orange: 16753920,\n orangered: 16729344,\n orchid: 14315734,\n palegoldenrod: 15657130,\n palegreen: 10025880,\n paleturquoise: 11529966,\n palevioletred: 14381203,\n papayawhip: 16773077,\n peachpuff: 16767673,\n peru: 13468991,\n pink: 16761035,\n plum: 14524637,\n powderblue: 11591910,\n purple: 8388736,\n rebeccapurple: 6697881,\n red: 16711680,\n rosybrown: 12357519,\n royalblue: 4286945,\n saddlebrown: 9127187,\n salmon: 16416882,\n sandybrown: 16032864,\n seagreen: 3050327,\n seashell: 16774638,\n sienna: 10506797,\n silver: 12632256,\n skyblue: 8900331,\n slateblue: 6970061,\n slategray: 7372944,\n slategrey: 7372944,\n snow: 16775930,\n springgreen: 65407,\n steelblue: 4620980,\n tan: 13808780,\n teal: 32896,\n thistle: 14204888,\n tomato: 16737095,\n turquoise: 4251856,\n violet: 15631086,\n wheat: 16113331,\n white: 16777215,\n whitesmoke: 16119285,\n yellow: 16776960,\n yellowgreen: 10145074\n };\n const out = {\n transparent: [0, 0, 0, 0]\n };\n for (const name in hex) {\n const n = hex[name];\n out[name] = [(n >> 16 & 255) / 255, (n >> 8 & 255) / 255, (n & 255) / 255, 1];\n }\n return out;\n})();\n\n// src/contrast.ts\nvar hex22 = (v) => Math.max(0, Math.min(255, Math.round(v))).toString(16).padStart(2, \"0\");\nfunction contrastLineColor(background, strength) {\n const rgb = parseHexBytes(background.trim());\n if (!rgb) return `rgba(0, 0, 0, ${strength})`;\n const [L, A, B] = srgbU8ToOklab(rgb[0], rgb[1], rgb[2]);\n const next = L > 0.5 ? Math.max(0, L - strength) : Math.min(1, L + strength);\n const [r, g, b] = oklabToSrgbU8(next, A, B);\n return `#${hex22(r)}${hex22(g)}${hex22(b)}`;\n}\nfunction relativeLuminance(r, g, b) {\n return 0.2126 * srgbToLinear(r) + 0.7152 * srgbToLinear(g) + 0.0722 * srgbToLinear(b);\n}\nfunction luminanceContrast(a, b) {\n return (Math.max(a, b) + 0.05) / (Math.min(a, b) + 0.05);\n}\nfunction contrastRatio(foreground, background) {\n let fg;\n let bg;\n try {\n fg = parseColor(foreground);\n bg = parseColor(background);\n } catch {\n return null;\n }\n const a = fg[3];\n const lf = relativeLuminance(a * fg[0] + (1 - a) * bg[0], a * fg[1] + (1 - a) * bg[1], a * fg[2] + (1 - a) * bg[2]);\n return luminanceContrast(lf, relativeLuminance(bg[0], bg[1], bg[2]));\n}\nfunction wcagLevels(ratio, largeText) {\n return { aa: ratio >= (largeText ? 3 : 4.5), aaa: ratio >= (largeText ? 4.5 : 7) };\n}\n\n// src/gradient.ts\nfunction isGradientPaint(fill) {\n if (fill == null) return false;\n return fill.kind === \"linear-gradient\" || fill.kind === \"radial-gradient\" || fill.kind === \"conic-gradient\";\n}\nfunction resolveGradientStops(stops) {\n return [...stops].sort((a, b) => a.offset - b.offset).map((s) => ({ offset: s.offset, rgba: resolveColor(s.color) }));\n}\nfunction sampleResolvedStops(stops, t, space = \"rgb\") {\n if (stops.length === 0) return TRANSPARENT;\n const first = stops[0];\n const last = stops[stops.length - 1];\n if (t <= first.offset) return first.rgba;\n if (t >= last.offset) return last.rgba;\n for (let i = 0; i < stops.length - 1; i++) {\n const lo = stops[i];\n const hi = stops[i + 1];\n if (t < lo.offset || t > hi.offset) continue;\n const span = hi.offset - lo.offset;\n if (span <= 0) return hi.rgba;\n const f = (t - lo.offset) / span;\n const [r, g, b, a] = lerpColorArray(lo.rgba, hi.rgba, f, space);\n return [r, g, b, a];\n }\n return last.rgba;\n}\nvar TRANSPARENT = [0, 0, 0, 0];\nfunction sampleGradientStops(stops, t, space = \"rgb\") {\n if (stops.length === 0) return \"rgba(0,0,0,0)\";\n return rgbaToHex(sampleResolvedStops(resolveGradientStops(stops), t, space));\n}\nfunction withGradientKind(fill, kind) {\n if (fill.kind === kind) return fill;\n const common = {\n stops: fill.stops,\n units: fill.units,\n interpolate: fill.interpolate,\n opacity: fill.opacity\n };\n const { center, radius, angle } = gradientGeometry(fill);\n if (kind === \"linear-gradient\") {\n const dx = Math.cos(angle) * radius;\n const dy = Math.sin(angle) * radius;\n return {\n kind: \"linear-gradient\",\n from: { x: center.x - dx, y: center.y - dy },\n to: { x: center.x + dx, y: center.y + dy },\n ...common\n };\n }\n if (kind === \"radial-gradient\") {\n return { kind: \"radial-gradient\", center, radius, ...common };\n }\n return { kind: \"conic-gradient\", center, angle, ...common };\n}\nfunction gradientGeometry(fill) {\n if (fill.kind === \"linear-gradient\") {\n const dx = fill.to.x - fill.from.x;\n const dy = fill.to.y - fill.from.y;\n return {\n center: { x: (fill.from.x + fill.to.x) / 2, y: (fill.from.y + fill.to.y) / 2 },\n radius: Math.hypot(dx, dy) / 2,\n angle: Math.atan2(dy, dx)\n };\n }\n if (fill.kind === \"radial-gradient\") {\n return { center: fill.center, radius: fill.radius, angle: 0 };\n }\n return { center: fill.center, radius: conicArmRadius(fill.units), angle: fill.angle };\n}\nfunction conicArmRadius(units) {\n return units === \"bounds\" ? 0.5 : 50;\n}\nfunction gradientForBounds(kind, bounds, stops, units) {\n const center = { x: bounds.x + bounds.width / 2, y: bounds.y + bounds.height / 2 };\n if (kind === \"linear-gradient\") {\n return {\n kind: \"linear-gradient\",\n from: { x: bounds.x, y: center.y },\n to: { x: bounds.x + bounds.width, y: center.y },\n stops,\n units\n };\n }\n if (kind === \"radial-gradient\") {\n return {\n kind: \"radial-gradient\",\n center,\n radius: Math.max(bounds.width, bounds.height) / 2,\n stops,\n units\n };\n }\n return { kind: \"conic-gradient\", center, angle: 0, stops, units };\n}\n\n// src/lerpPaint.ts\nfunction rgbaOf(color, opacity) {\n const [r, g, b, a] = parseColor(color);\n return [r, g, b, a * (opacity ?? 1)];\n}\nfunction mixColor(a, b, t) {\n return mixOklab(a, b, 1 - t);\n}\nfunction solidOf(rgba) {\n const color = rgbaToHex([rgba[0], rgba[1], rgba[2]]);\n return rgba[3] >= 1 ? { color } : { color, opacity: rgba[3] };\n}\nfunction solidRgba(paint) {\n if (paint.kind !== void 0 && paint.kind !== \"solid\") return null;\n return rgbaOf(paint.color, paint.opacity);\n}\nvar lerp = (a, b, t) => a + (b - a) * t;\nfunction lerpPaint(a, b, t) {\n if (a === void 0 && b === void 0) return void 0;\n if (a === void 0 || b === void 0) {\n const only = a ?? b;\n const rgba = solidRgba(only);\n if (rgba === null) return t < 0.5 ? a : b;\n const clear = [rgba[0], rgba[1], rgba[2], 0];\n return solidOf(a === void 0 ? mixColor(clear, rgba, t) : mixColor(rgba, clear, t));\n }\n const sa = solidRgba(a);\n const sb = solidRgba(b);\n if (sa !== null && sb !== null) return solidOf(mixColor(sa, sb, t));\n if (isGradientPaint(a) && isGradientPaint(b)) {\n const mixed = lerpGradient(a, b, t);\n if (mixed !== null) return mixed;\n }\n return t < 0.5 ? a : b;\n}\nfunction lerpStops(a, b, t) {\n return a.map((stop, i) => {\n const other = b[i];\n return { offset: lerp(stop.offset, other.offset, t), color: mixStopColor(stop.color, other.color, t) };\n });\n}\nfunction mixStopColor(a, b, t) {\n if (a === b) return a;\n const ca = rgbaOf(a, 1), cb = rgbaOf(b, 1);\n const mixed = mixColor(ca, cb, t);\n if (mixed[3] > 0) return rgbaToHex(mixed);\n const [r, g, bl] = mixColor([ca[0], ca[1], ca[2], 1], [cb[0], cb[1], cb[2], 1], t);\n return rgbaToHex([r, g, bl, 0]);\n}\nfunction lerpGradient(a, b, t) {\n if (a.kind !== b.kind || a.stops.length !== b.stops.length) return null;\n if ((a.units ?? \"screen\") !== (b.units ?? \"screen\")) return null;\n const pt = (p, q) => ({ x: lerp(p.x, q.x, t), y: lerp(p.y, q.y, t) });\n const stops = lerpStops(a.stops, b.stops, t);\n const opacity = a.opacity === void 0 && b.opacity === void 0 ? void 0 : lerp(a.opacity ?? 1, b.opacity ?? 1, t);\n const near = t < 0.5 ? a : b;\n const common = {\n stops,\n ...near.units === void 0 ? {} : { units: near.units },\n ...near.interpolate === void 0 ? {} : { interpolate: near.interpolate },\n ...opacity === void 0 ? {} : { opacity }\n };\n if (a.kind === \"linear-gradient\" && b.kind === \"linear-gradient\") {\n return { kind: \"linear-gradient\", from: pt(a.from, b.from), to: pt(a.to, b.to), ...common };\n }\n if (a.kind === \"radial-gradient\" && b.kind === \"radial-gradient\") {\n return { kind: \"radial-gradient\", center: pt(a.center, b.center), radius: lerp(a.radius, b.radius, t), ...common };\n }\n if (a.kind === \"conic-gradient\" && b.kind === \"conic-gradient\") {\n return { kind: \"conic-gradient\", center: pt(a.center, b.center), angle: lerp(a.angle, b.angle, t), ...common };\n }\n return null;\n}\nfunction lerpFill(a, b, t) {\n if (a == null && b == null) return t < 0.5 ? a : b;\n const paint = lerpPaint(a?.paint, b?.paint, t);\n return paint === void 0 ? {} : { paint };\n}\nfunction lerpWidth(a, b, t) {\n if (a === void 0 && b === void 0) return void 0;\n if (typeof a === \"object\" && typeof b === \"object\") return { px: lerp(a.px, b.px, t) };\n if (typeof a !== \"object\" && typeof b !== \"object\") return lerp(a ?? 1, b ?? 1, t);\n return t < 0.5 ? a : b;\n}\nfunction lerpStroke(a, b, t) {\n if (a == null && b == null) return t < 0.5 ? a : b;\n const near = (t < 0.5 ? a : b) ?? (a ?? b);\n const paint = lerpPaint(a?.paint, b?.paint, t);\n const zero = (s) => typeof s.width === \"object\" ? { px: 0 } : 0;\n const width = lerpWidth(a == null ? zero(b) : a.width, b == null ? zero(a) : b.width, t);\n const { paint: _p, width: _w, vertexColors: _vc, vertexWidths: _vw, ...rest } = near;\n return {\n ...rest,\n ...paint === void 0 ? {} : { paint },\n ...width === void 0 ? {} : { width }\n };\n}\n\n// src/palette.ts\nfunction nth(items, n) {\n if (!Number.isInteger(n) || n < 0) return void 0;\n let i = 0;\n for (const item of items) if (i++ === n) return item;\n return void 0;\n}\nvar refKey = (name, index) => `${index}:${name}`;\nfunction resolver(palette, external) {\n const byName = /* @__PURE__ */ new Map();\n for (const e of palette.entries) if (!byName.has(e.name)) byName.set(e.name, e);\n const ctx = (visiting) => ({ resolve: (s) => visit(s, visiting) });\n const visit = (s, visiting) => {\n if (s == null) return null;\n if (typeof s === \"function\") return visit(s(ctx(visiting)), visiting);\n if (\"space\" in s) return s;\n const index = s.index ?? 0;\n const key = refKey(s.ref, index);\n if (visiting.has(key)) return null;\n const next = new Set(visiting).add(key);\n const entry = byName.get(s.ref);\n if (!entry) return visit(external?.(s), next);\n if (\"color\" in entry) return index === 0 ? visit(entry.color, next) : null;\n return visit(nth(entry.colors(ctx(next)), index), next);\n };\n return { byName, ctx, visit };\n}\nfunction resolvePaletteColor(palette, source, external) {\n return resolver(palette, external).visit(source, /* @__PURE__ */ new Set());\n}\nfunction* resolvePaletteColors(palette, name, external) {\n const { byName, ctx, visit } = resolver(palette, external);\n const entry = byName.get(name);\n if (!entry) return;\n if (\"color\" in entry) {\n yield visit(entry.color, /* @__PURE__ */ new Set([refKey(name, 0)]));\n return;\n }\n let i = 0;\n for (const item of entry.colors(ctx(/* @__PURE__ */ new Set()))) {\n yield visit(item, /* @__PURE__ */ new Set([refKey(name, i++)]));\n }\n}\nvar hex23 = (v) => Math.max(0, Math.min(255, Math.round(v))).toString(16).padStart(2, \"0\");\nfunction colorLiteralToHex(color) {\n const [x, y, z] = color.coords;\n if (z === void 0) return null;\n let rgb;\n switch (color.space) {\n case \"srgb\":\n rgb = [x * 255, y * 255, z * 255];\n break;\n case \"oklab\":\n rgb = oklabToSrgbU8(x, y, z);\n break;\n case \"oklch\":\n rgb = oklabToSrgbU8(...oklchToOklab(x, y, z * Math.PI / 180));\n break;\n default:\n return null;\n }\n const a = color.alpha ?? 1;\n return `#${rgb.map(hex23).join(\"\")}${a < 1 ? hex23(a * 255) : \"\"}`;\n}\nfunction colorLiteralToCss(color) {\n if (color.coords.length < 3) return null;\n const hex = colorLiteralToHex(color);\n if (hex) return hex;\n const a = color.alpha ?? 1;\n return `color(${color.space} ${color.coords.join(\" \")}${a < 1 ? ` / ${a}` : \"\"})`;\n}\nfunction cssColorLiteral(css) {\n const [r, g, b, a] = parseColor(css);\n const coords = [r, g, b];\n return a < 1 ? { space: \"srgb\", coords, alpha: a } : { space: \"srgb\", coords };\n}\nfunction hexToColorLiteral(hex) {\n const bytes = hex.length === 7 || hex.length === 9 ? parseHexBytes(hex) : null;\n if (!bytes) return null;\n const [r, g, b, a] = bytes.map((v) => v / 255);\n const coords = [r, g, b];\n return hex.length === 9 ? { space: \"srgb\", coords, alpha: a } : { space: \"srgb\", coords };\n}\n\nexport { INHERIT, MAX_DASH_RUNS, STROKE_DASH_RATIOS, TILE_KINDS, alignedStrokeRect, colorLiteralToCss, colorLiteralToHex, composePatternTransform, contrastLineColor, contrastRatio, cssColorLiteral, dashForStrokeStyle, dashPattern, decomposePatternTransform, fillHasInk, gradientForBounds, gradientGeometry, hexToColorLiteral, hexToOklchDeg, hexToRgbBytes, hexToRgba, hslToSrgb, interpolateSrgb, isGradientPaint, isImagePatternPaint, isPatternPaint, isSolidPaint, isTileKind, isTilePaint, lerpColorArray, lerpFill, lerpOklab, lerpOklch, lerpPaint, lerpStroke, linearSrgbToOklab, linearToSrgb, luminanceContrast, mixOklab, normalizeHex, oklabToLinearSrgb, oklabToOklch, oklabToSrgbU8, oklchDegToHex, oklchToOklab, paintKey, parseColor, parseColorToRgba255, parseHexBytes, patternPlacementOf, relativeLuminance, resolveColor, resolveFill, resolveGradientStops, resolvePaletteColor, resolvePaletteColors, resolveScreenLength, resolveStroke, rgbaToHex, sampleGradientStops, sampleResolvedStops, scaleVertexWidth, srgbFloatToOklab, srgbToHsl, srgbToLinear, srgbU8ToOklab, strokeDashStyleOf, strokeHasInk, strokeKey, strokeTrimKey, tileSpecOf, tryNormalizeHex, vertexHalfWidths, vertexWidthFromSides, wcagLevels, widestHalfWidth, withGradientKind };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","import { hexToRgbBytes, oklchDegToHex, hexToOklchDeg, relativeLuminance, luminanceContrast, srgbU8ToOklab } from '@weasel-js/paint';\n\n// src/engine/color/oklch.ts\nvar hexToRgb = hexToRgbBytes;\nvar toHex = oklchDegToHex;\nvar toLch = hexToOklchDeg;\nfunction chromaCap(L, H) {\n return toLch(toHex(L, 0.5, H)).C;\n}\nfunction luminance(hex) {\n const [r, g, b] = hexToRgb(hex);\n return relativeLuminance(r / 255, g / 255, b / 255);\n}\nfunction contrast(a, b) {\n return luminanceContrast(luminance(a), luminance(b));\n}\nfunction hueGap(a, b) {\n const d = Math.abs(a - b) % 360;\n return Math.min(d, 360 - d);\n}\nfunction toLab(hex) {\n const [r, g, b] = hexToRgb(hex);\n return srgbU8ToOklab(r, g, b);\n}\nvar CHROMA_WEIGHT = 3;\nfunction deltaE(a, b) {\n const [l1, a1, b1] = toLab(a);\n const [l2, a2, b2] = toLab(b);\n return Math.hypot(l1 - l2, CHROMA_WEIGHT * (a1 - a2), CHROMA_WEIGHT * (b1 - b2));\n}\nfunction vividAt(L, H) {\n return toHex(L, chromaCap(L, H), H);\n}\n\n// src/engine/color/generate.ts\nfunction peakLightness(H) {\n let bestL = 0.5;\n let bestC = -1;\n for (let L = 0.32; L <= 0.96; L += 0.01) {\n const c = chromaCap(L, H);\n if (c > bestC) {\n bestC = c;\n bestL = L;\n }\n }\n return bestL;\n}\nvar PEAK = new Array(360);\nvar hueIndex = (H) => (Math.round(H) % 360 + 360) % 360;\nvar peakAt = (H) => PEAK[hueIndex(H)] ??= peakLightness(hueIndex(H));\nfunction place(H, c) {\n const L = peakAt(H) + (c.lightnessTarget - peakAt(H)) * c.lightnessPull;\n return toHex(L, chromaCap(L, H) * c.chromaFraction, H);\n}\nvar HUE_NAMES = [\n [15, \"rose\"],\n [45, \"red\"],\n [62, \"orange\"],\n [85, \"amber\"],\n [100, \"gold\"],\n [122, \"yellow\"],\n [138, \"lime\"],\n [165, \"green\"],\n [195, \"teal\"],\n [218, \"cyan\"],\n [245, \"sky\"],\n [275, \"blue\"],\n [310, \"violet\"],\n [345, \"fuchsia\"]\n];\nfunction hueName(H) {\n for (const [ceil, name] of HUE_NAMES) if (H < ceil) return name;\n return \"rose\";\n}\nfunction uniqueNames(hues) {\n const seen = /* @__PURE__ */ new Map();\n return hues.map((h) => {\n const base = hueName(h);\n const n = (seen.get(base) ?? 0) + 1;\n seen.set(base, n);\n return n === 1 ? base : `${base}-${n}`;\n });\n}\nfunction equalizeChroma(hexes, k, anchored) {\n if (k <= 0) return hexes;\n const lch = hexes.map(toLch);\n const target = lch.reduce((sum, x) => sum + x.C, 0) / lch.length;\n return lch.map((x, i) => {\n const wanted = x.C + (target - x.C) * k;\n if (anchored[i]) return toHex(x.L, Math.min(wanted, chromaCap(x.L, x.H)), x.H);\n if (chromaCap(x.L, x.H) >= wanted) return toHex(x.L, wanted, x.H);\n let bestL = x.L;\n let bestDistance = Infinity;\n for (let L = 0.3; L <= 0.96; L += 5e-3) {\n if (chromaCap(L, x.H) >= wanted) {\n const d = Math.abs(L - x.L);\n if (d < bestDistance) {\n bestDistance = d;\n bestL = L;\n }\n }\n }\n if (bestDistance === Infinity) {\n const pk = peakAt(x.H);\n return toHex(pk, chromaCap(pk, x.H), x.H);\n }\n return toHex(bestL, wanted, x.H);\n });\n}\nfunction farthestFirst(hues) {\n const order = [0];\n while (order.length < hues.length) {\n let best = -1;\n let bestGap = -1;\n for (let i = 0; i < hues.length; i += 1) {\n if (order.includes(i)) continue;\n const gap = Math.min(...order.map((j) => hueGap(hues[i], hues[j])));\n if (gap > bestGap) {\n bestGap = gap;\n best = i;\n }\n }\n order.push(best);\n }\n return order;\n}\nfunction floorDegrees(c) {\n return c.hueFloor <= 0 ? 0 : c.hueFloor * 360 / Math.max(1, c.count);\n}\nfunction searchHues(c) {\n const minGapDeg = floorDegrees(c);\n const anchorHues = c.anchors.map((a) => a.hue);\n const anchorHexes = c.anchors.map(toHexPreview);\n const freeCount = c.count - c.anchors.length;\n if (freeCount < 0) return null;\n const weighted = (hex) => {\n const [L, a, b] = toLab(hex);\n return [L, CHROMA_WEIGHT * a, CHROMA_WEIGHT * b];\n };\n const between = (p, q) => Math.hypot(p[0] - q[0], p[1] - q[1], p[2] - q[2]);\n const placed = /* @__PURE__ */ new Map();\n const at = (H) => {\n const key = (Math.round(H) % 360 + 360) % 360;\n let v = placed.get(key);\n if (!v) {\n const hex = place(key, c);\n const lch = toLch(hex);\n v = {\n hex,\n hue: lch.H,\n contrast: contrast(hex, c.surface),\n chroma: lch.C,\n surfaceDistance: deltaE(hex, c.surface),\n lab: weighted(hex)\n };\n placed.set(key, v);\n }\n return v;\n };\n const anchorMeta = anchorHexes.map((hex) => {\n const lch = toLch(hex);\n return {\n hex,\n hue: lch.H,\n contrast: contrast(hex, c.surface),\n chroma: lch.C,\n surfaceDistance: deltaE(hex, c.surface),\n lab: weighted(hex)\n };\n });\n const metaFor = (free) => [...anchorMeta, ...free.map(at)];\n const penalty = (free) => {\n const m = metaFor(free);\n let p = 0;\n if (minGapDeg > 0) {\n for (let i = 0; i < m.length; i += 1) {\n for (let j = i + 1; j < m.length; j += 1) {\n const short = minGapDeg - hueGap(m[i].hue, m[j].hue);\n if (short > 0) p += short;\n }\n }\n }\n if (c.minContrast > 0) {\n for (const x of m) {\n const short = c.minContrast - x.contrast;\n if (short > 0) p += short * 40;\n }\n }\n if (c.minSurfaceDistance > 0) {\n for (const x of m) {\n const short = c.minSurfaceDistance - x.surfaceDistance;\n if (short > 0) p += short * 400;\n }\n }\n if (c.minDistance > 0) {\n for (let i = 0; i < m.length; i += 1) {\n for (let j = i + 1; j < m.length; j += 1) {\n const short = c.minDistance - between(m[i].lab, m[j].lab);\n if (short > 0) p += short * 400;\n }\n }\n }\n return p;\n };\n const score = (free) => {\n const m = metaFor(free);\n return m.reduce((sum, x) => sum + x.chroma, 0) / m.length;\n };\n if (freeCount === 0) return penalty([]) > 0 ? null : [];\n const seeds = [];\n const seedStep = Math.max(6, Math.round(freeCount * 1.6));\n for (let start = 0; start < 360; start += seedStep) {\n seeds.push(Array.from({ length: freeCount }, (_, i) => Math.round((start + i * 360 / freeCount) % 360)));\n }\n if (anchorHues.length > 0) {\n const base = anchorHues[0];\n const span = 360 - 2 * Math.max(minGapDeg, 1);\n for (let jitter = -8; jitter <= 8; jitter += 2) {\n for (const divisor of [Math.max(1, freeCount - 1), freeCount]) {\n seeds.push(\n Array.from(\n { length: freeCount },\n (_, i) => Math.round(((base + minGapDeg + jitter + i * span / divisor) % 360 + 360) % 360)\n )\n );\n }\n }\n }\n const STEPS = [-16, -8, -4, -2, -1, 1, 2, 4, 8, 16];\n const penaltyAt = (m, i) => {\n let p = 0;\n const x = m[i];\n if (c.minContrast > 0) {\n const short = c.minContrast - x.contrast;\n if (short > 0) p += short * 40;\n }\n if (c.minSurfaceDistance > 0) {\n const short = c.minSurfaceDistance - x.surfaceDistance;\n if (short > 0) p += short * 400;\n }\n for (let j = 0; j < m.length; j += 1) {\n if (j === i) continue;\n if (minGapDeg > 0) {\n const short = minGapDeg - hueGap(x.hue, m[j].hue);\n if (short > 0) p += short;\n }\n if (c.minDistance > 0) {\n const short = c.minDistance - between(x.lab, m[j].lab);\n if (short > 0) p += short * 400;\n }\n }\n return p;\n };\n const descend = (hues, useChroma, keepLegal) => {\n const current = [...hues];\n let meta = metaFor(current);\n const offset = anchorMeta.length;\n for (let iteration = 0; iteration < 120; iteration += 1) {\n let improved = false;\n for (let i = 0; i < freeCount; i += 1) {\n const slot = offset + i;\n const beforeP = penaltyAt(meta, slot);\n const beforeC = meta[slot].chroma;\n for (const delta of STEPS) {\n const next = ((current[i] + delta) % 360 + 360) % 360;\n if (next === current[i]) continue;\n const candidate = at(next);\n const trialMeta = meta.slice();\n trialMeta[slot] = candidate;\n const afterP = penaltyAt(trialMeta, slot);\n const better = useChroma ? (keepLegal ? afterP <= beforeP : true) && candidate.chroma > beforeC : afterP < beforeP;\n if (!better) continue;\n if (keepLegal && afterP > beforeP) continue;\n current[i] = next;\n meta = trialMeta;\n improved = true;\n break;\n }\n }\n if (!improved) break;\n }\n return current;\n };\n let best = null;\n let bestScore = -1;\n for (const seed of seeds) {\n const repaired = penalty(seed) > 0 ? descend(seed, false, false) : seed;\n if (penalty(repaired) > 0) continue;\n const tuned = descend(repaired, true, true);\n if (penalty(tuned) > 0) continue;\n const s = score(tuned);\n if (s > bestScore) {\n bestScore = s;\n best = tuned;\n }\n }\n return best;\n}\nfunction pairwiseMin(hexes) {\n if (hexes.length < 2) return 1;\n let min = Infinity;\n for (let i = 0; i < hexes.length; i += 1) {\n for (let j = i + 1; j < hexes.length; j += 1) min = Math.min(min, deltaE(hexes[i], hexes[j]));\n }\n return min;\n}\nfunction summarize(swatches, surface) {\n const cs = swatches.map((s) => s.lch.C);\n const ls = swatches.map((s) => s.lch.L);\n let gap = 360;\n for (let i = 0; i < swatches.length; i += 1) {\n for (let j = i + 1; j < swatches.length; j += 1) {\n gap = Math.min(gap, hueGap(swatches[i].lch.H, swatches[j].lch.H));\n }\n }\n return {\n meanChroma: cs.reduce((a, b) => a + b, 0) / (cs.length || 1),\n chromaSpread: Math.max(...cs) - Math.min(...cs),\n lightnessSpread: Math.max(...ls) - Math.min(...ls),\n minHueGap: swatches.length > 1 ? gap : 360,\n hueFloorShare: swatches.length > 1 ? gap * swatches.length / 360 : 1,\n minContrast: Math.min(...swatches.map((s) => contrast(s.hex, surface))),\n minSurfaceDistance: Math.min(...swatches.map((s) => deltaE(s.hex, surface))),\n minDistance: pairwiseMin(swatches.map((s) => s.hex))\n };\n}\nfunction generate(c) {\n const found = searchHues(c);\n const feasible = found !== null;\n const free = found ?? Array.from(\n { length: Math.max(0, c.count - c.anchors.length) },\n (_, i) => Math.round(i * 360 / Math.max(1, c.count - c.anchors.length))\n );\n const hues = [...c.anchors.map((a) => a.hue), ...free];\n const anchoredFlags = [...c.anchors.map(() => true), ...free.map(() => false)];\n const raw = [\n ...c.anchors.map(toHexPreview),\n ...free.map((h) => place(h, c))\n ];\n const hexes = equalizeChroma(raw, c.equalize, anchoredFlags);\n const order = c.order === \"farthest\" ? farthestFirst(hues) : [...hues.keys()].sort((a, b) => hues[a] - hues[b]);\n const names = uniqueNames(order.map((i) => toLch(hexes[i]).H));\n const swatches = order.map((i, position) => ({\n name: c.anchors[i]?.name ?? names[position],\n hex: hexes[i],\n lch: toLch(hexes[i]),\n anchored: anchoredFlags[i],\n contrast: contrast(hexes[i], c.surface)\n }));\n return { swatches, stats: summarize(swatches, c.surface), feasible };\n}\nvar DEFAULT_CONSTRAINTS = {\n count: 10,\n hueFloor: 0.9,\n minContrast: 4,\n surface: \"#181a1e\",\n lightnessTarget: 0.72,\n lightnessPull: 0.4,\n chromaFraction: 0.95,\n equalize: 0,\n minSurfaceDistance: 0.25,\n minDistance: 0.22,\n anchors: [],\n order: \"farthest\"\n};\nfunction toHexPreview(a) {\n const cap = chromaCap(a.lightness, a.hue);\n return toHex(a.lightness, a.chroma === void 0 ? cap : Math.min(a.chroma, cap), a.hue);\n}\nfunction anchorFromHex(hex, name) {\n const { L, C, H } = toLch(hex);\n return {\n name: name ?? hueName(H),\n hue: Math.round(H),\n lightness: Number(L.toFixed(3)),\n chroma: Number(C.toFixed(4))\n };\n}\n\nexport { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt };\n//# sourceMappingURL=chunk-44CG54ZK.js.map\n//# sourceMappingURL=chunk-44CG54ZK.js.map","// src/cssNumber.ts\nvar NUMBER = /^(-?(?:\\d+\\.?\\d*|\\.\\d+))([a-z%]*)$/i;\nfunction readCssNumber(css) {\n const m = NUMBER.exec(css.trim());\n return m ? { value: Number(m[1]), unit: m[2] } : void 0;\n}\n\nexport { readCssNumber };\n//# sourceMappingURL=chunk-M3R5MV7Q.js.map\n//# sourceMappingURL=chunk-M3R5MV7Q.js.map","// src/emitter.ts\nfunction createEmitter() {\n const listeners = /* @__PURE__ */ new Set();\n let held = null;\n return {\n subscribe(listener) {\n listeners.add(listener);\n held = null;\n return () => {\n listeners.delete(listener);\n held = null;\n };\n },\n emit(...args) {\n if (listeners.size === 0) return;\n for (const listener of held ??= [...listeners]) {\n if (!listeners.has(listener)) continue;\n try {\n listener(...args);\n } catch (err) {\n console.error(\"weasel: a subscriber threw\", err);\n }\n }\n },\n get size() {\n return listeners.size;\n }\n };\n}\n\n// src/reflectable.ts\nfunction createReflectable() {\n const stacks = /* @__PURE__ */ new Map();\n const listeners = createEmitter();\n let version = 0;\n let snapshot = null;\n function changed() {\n version++;\n listeners.emit();\n }\n const reflection = {\n get: (key) => stacks.get(key)?.at(-1)?.value,\n has: (key) => stacks.has(key),\n entries() {\n if (snapshot?.version === version) return snapshot.entries;\n const entries = [];\n for (const [key, stack] of stacks) {\n const live = stack.at(-1);\n entries.push(Object.freeze({\n key,\n live,\n value: live.value,\n source: live.source,\n shadowed: Object.freeze(stack.slice(0, -1))\n }));\n }\n snapshot = { version, entries: Object.freeze(entries) };\n return snapshot.entries;\n },\n subscribe: listeners.subscribe,\n getVersion: () => version\n };\n function release(key, registrant) {\n const stack = stacks.get(key);\n const i = stack ? stack.lastIndexOf(registrant) : -1;\n if (i === -1) return false;\n stack.splice(i, 1);\n if (stack.length === 0) stacks.delete(key);\n changed();\n return true;\n }\n return {\n ...reflection,\n reflection,\n release,\n push(key, value, options) {\n const registrant = Object.freeze({ value, source: options?.source });\n const stack = stacks.get(key);\n if (stack) stack.push(registrant);\n else stacks.set(key, [registrant]);\n changed();\n return () => {\n release(key, registrant);\n };\n },\n set(key, value, options) {\n const registrant = Object.freeze({ value, source: options?.source });\n const stack = stacks.get(key);\n if (stack) stack[stack.length - 1] = registrant;\n else stacks.set(key, [registrant]);\n changed();\n },\n delete(key) {\n if (!stacks.delete(key)) return false;\n changed();\n return true;\n },\n clear() {\n if (stacks.size === 0) return;\n stacks.clear();\n changed();\n },\n bump: changed\n };\n}\n\n// src/isDev.ts\nfunction isDev() {\n try {\n return process.env.NODE_ENV !== \"production\";\n } catch {\n return true;\n }\n}\n\n// src/isPlainObject.ts\nfunction isPlainPrototype(proto) {\n return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null;\n}\nfunction isPlainObject(value) {\n return typeof value === \"object\" && value !== null && isPlainPrototype(Object.getPrototypeOf(value));\n}\n\n// src/deepEqual.ts\nfunction deepEqual(a, b, opts = {}) {\n if (Object.is(a, b)) return true;\n if (Array.isArray(a) || Array.isArray(b)) {\n return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((v, i) => deepEqual(v, b[i], opts));\n }\n if (!isPlainObject(a) || !isPlainObject(b)) return false;\n if (opts.undefinedAsAbsent) {\n return [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])].every((k) => deepEqual(a[k], b[k], opts));\n }\n const keys = Object.keys(a);\n return keys.length === Object.keys(b).length && keys.every((k) => Object.hasOwn(b, k) && deepEqual(a[k], b[k], opts));\n}\n\n// src/sameList.ts\nfunction sameList(a, b, same = (x, y) => x === y) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) if (!same(a[i], b[i])) return false;\n return true;\n}\n\n// src/mixed.ts\nvar MIXED = /* @__PURE__ */ Symbol(\"weasel:mixed\");\n\n// src/match.ts\nvar BY_TEXT = { by: \"text\" };\nfunction matchQuery(query, entry) {\n const q = query.trim().toLowerCase();\n if (q === \"\") return BY_TEXT;\n if (entry.text.some((t) => t !== void 0 && t.toLowerCase().includes(q))) return BY_TEXT;\n const tag = entry.tags?.find((t) => t.toLowerCase().includes(q));\n return tag === void 0 ? null : { by: \"tag\", tag };\n}\nfunction hasTag(tags, tag) {\n return tags?.includes(tag) ?? false;\n}\n\nexport { MIXED, createEmitter, createReflectable, deepEqual, hasTag, isDev, isPlainObject, isPlainPrototype, matchQuery, sameList };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","import { isPlainObject } from '@weasel-js/registry';\n\n// src/axes.ts\nfunction isByAxis(v) {\n return isPlainObject(v) && typeof v.by === \"string\";\n}\nfunction fullSelection(axes, selection = {}) {\n const out = {};\n for (const [name, def] of Object.entries(axes)) {\n const v = selection[name];\n out[name] = v !== void 0 && v in def.values ? v : def.default;\n }\n return out;\n}\nfunction mergeAxes(parent, child) {\n const out = { ...parent };\n for (const [name, def] of Object.entries(child)) {\n out[name] = { ...def, values: { ...parent[name]?.values, ...def.values } };\n }\n return out;\n}\nfunction enumerateSelections(axes) {\n let out = [{}];\n for (const [name, def] of Object.entries(axes)) {\n out = out.flatMap((s) => Object.keys(def.values).map((v) => ({ ...s, [name]: v })));\n }\n return out;\n}\nfunction selectionKey(axes, selection) {\n const full = fullSelection(axes, selection);\n return Object.keys(axes).map((a) => `${a}=${full[a]}`).join(\",\");\n}\nfunction pick(v, selection) {\n let cur = v;\n while (isByAxis(cur)) {\n const axis = cur.by;\n const value = selection[axis];\n if (value === void 0 || value === \"by\" || !(value in cur)) return { ok: false, axis, value: value ?? \"\" };\n cur = cur[value];\n }\n return { ok: true, value: cur };\n}\nfunction pickAll(record, selection) {\n const out = {};\n for (const [name, v] of Object.entries(record)) {\n const picked = pick(v, selection);\n if (picked.ok) out[name] = picked.value;\n }\n return out;\n}\n\nexport { enumerateSelections, fullSelection, isByAxis, mergeAxes, pick, pickAll, selectionKey };\n//# sourceMappingURL=chunk-P5F3GZV6.js.map\n//# sourceMappingURL=chunk-P5F3GZV6.js.map","import { pick, mergeAxes, fullSelection } from './chunk-P5F3GZV6.js';\nimport { parseColor } from '@weasel-js/paint';\n\n// src/dtcg/value.ts\nfunction fontStack(value) {\n return value.map((f) => typeof f === \"string\" && /\\s/.test(f) ? `'${f}'` : String(f)).join(\", \");\n}\nfunction serializeTokenValue(type, value) {\n if (Array.isArray(value)) {\n if (type === \"cubicBezier\") return `cubic-bezier(${value.join(\", \")})`;\n if (type === \"fontFamily\") return fontStack(value);\n return value.join(\", \");\n }\n return String(value);\n}\nvar BEZIER = /^cubic-bezier\\(\\s*([^)]*)\\)$/i;\nfunction parseTokenValue(type, text) {\n const raw = text.trim();\n if (type === \"cubicBezier\") {\n const inner = BEZIER.exec(raw)?.[1] ?? raw;\n const parts = inner.split(\",\").map((p) => Number(p.trim()));\n return parts.length === 4 && parts.every((n) => Number.isFinite(n)) ? parts : raw;\n }\n if (type === \"fontFamily\") {\n const families = raw.split(\",\").map((f) => f.trim().replace(/^['\"]|['\"]$/g, \"\").trim()).filter((f) => f !== \"\");\n return families.length > 0 ? families : raw;\n }\n return raw;\n}\n\n// src/chainTokens.ts\nfunction localSelections(chain, selection) {\n let axes = {};\n return chain.map((link) => {\n axes = mergeAxes(axes, link.axes);\n return { ...selection, ...fullSelection(axes, selection) };\n });\n}\nfunction tokenAt(chain, name, selection) {\n const local = localSelections(chain, selection);\n for (let i = chain.length - 1; i >= 0; i--) {\n const { tokens } = chain[i];\n if (!Object.hasOwn(tokens, name)) continue;\n const picked = pick(tokens[name], local[i]);\n if (picked.ok) return picked.value;\n }\n return void 0;\n}\nfunction tokensAt(chain, selection) {\n const local = localSelections(chain, selection);\n const out = {};\n chain.forEach((link, i) => {\n for (const [name, v] of Object.entries(link.tokens)) {\n const picked = pick(v, local[i]);\n if (picked.ok) out[name] = picked.value;\n }\n });\n return out;\n}\nfunction withAlpha(color, alpha) {\n const rgba = parseRgba(color.trim());\n if (!rgba) return mixAlpha(color.trim(), alpha);\n const [r, g, b, a] = rgba;\n return `rgba(${r}, ${g}, ${b}, ${round(a * alpha, 3)})`;\n}\nfunction mixAlpha(color, alpha) {\n return `color-mix(in srgb, ${color} ${round(alpha * 100, 4)}%, transparent)`;\n}\nfunction atAlpha(color, alpha) {\n const rgba = parseRgba(color.trim());\n if (!rgba) return `rgb(from ${color.trim()} r g b / ${alpha})`;\n const [r, g, b] = rgba;\n return `rgba(${r}, ${g}, ${b}, ${round(alpha, 3)})`;\n}\nfunction round(n, places) {\n return Number(n.toFixed(places));\n}\nfunction parseRgba(s) {\n if (!/^(?:#|rgba?\\(|transparent$)/i.test(s)) return null;\n let c;\n try {\n c = parseColor(s);\n } catch {\n return null;\n }\n return [Math.round(c[0] * 255), Math.round(c[1] * 255), Math.round(c[2] * 255), c[3]];\n}\n\n// src/dtcg/resolve.ts\nvar REF = /^\\{([^}]+)\\}$/;\nfunction refTarget(value) {\n if (typeof value !== \"string\") return null;\n const m = REF.exec(value.trim());\n if (!m) return null;\n const path = m[1];\n const dot = path.indexOf(\".\");\n return dot === -1 ? path : path.slice(dot + 1);\n}\nfunction resolveTokens(tokens) {\n const out = {};\n const inProgress = /* @__PURE__ */ new Set();\n const resolveOne = (name) => {\n const cached = out[name];\n if (cached !== void 0) return cached;\n const token = tokens[name];\n if (!token) throw new Error(`Unknown token \"${name}\"`);\n if (inProgress.has(name)) {\n throw new Error(`Reference cycle at token \"${name}\" (${[...inProgress].join(\" \\u2192 \")})`);\n }\n inProgress.add(name);\n const target = refTarget(token.value);\n let value;\n if (target === null) {\n value = serializeTokenValue(token.type, token.value);\n } else if (!tokens[target]) {\n throw new Error(`Token \"${name}\" references \"${target}\", which is not defined`);\n } else {\n value = resolveOne(target);\n }\n if (token.alpha !== void 0) value = withAlpha(value, token.alpha);\n inProgress.delete(name);\n out[name] = value;\n return value;\n };\n for (const name of Object.keys(tokens)) resolveOne(name);\n return out;\n}\n\n// src/resolveTheme.ts\nfunction themeChain(theme) {\n const out = [];\n for (let t = theme; t; t = t.extends) out.unshift(t);\n return out;\n}\nfunction themeAxes(theme) {\n return themeChain(theme).reduce((axes, t) => mergeAxes(axes, t.axes), {});\n}\nfunction resolveTheme(theme, selection = {}) {\n const sel = fullSelection(themeAxes(theme), selection);\n const out = {};\n for (const [name, value] of Object.entries(resolveTokens(tokensAt(themeChain(theme), sel)))) out[`--wzl-${name}`] = value;\n return out;\n}\n\nexport { atAlpha, mixAlpha, parseTokenValue, refTarget, resolveTheme, resolveTokens, serializeTokenValue, themeAxes, themeChain, tokenAt, tokensAt, withAlpha };\n//# sourceMappingURL=chunk-OP5VYXEZ.js.map\n//# sourceMappingURL=chunk-OP5VYXEZ.js.map","import { isByAxis } from './chunk-P5F3GZV6.js';\nimport { isPlainObject } from '@weasel-js/registry';\n\n// src/generated/themes.ts\nvar THEMES = {\n \"weasel\": {\n name: \"weasel\",\n axes: { \"mode\": { \"default\": \"dark\", \"values\": { \"dark\": { \"scheme\": \"dark\" }, \"light\": { \"scheme\": \"light\" } } }, \"density\": { \"default\": \"comfortable\", \"values\": { \"compact\": {}, \"comfortable\": {}, \"roomy\": {} } } },\n selections: {\n \"mode=dark,density=compact\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#262a66\",\n \"--wzl-accent-base\": \"#5b63c9\",\n \"--wzl-accent-strong\": \"#8c94ee\",\n \"--wzl-secondary-soft\": \"#704e09\",\n \"--wzl-secondary-base\": \"#dc9d15\",\n \"--wzl-secondary-strong\": \"#f1cb8d\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"9px\",\n \"--wzl-font-size-xs\": \"10px\",\n \"--wzl-font-size-sm\": \"11px\",\n \"--wzl-font-size-md\": \"13px\",\n \"--wzl-font-size-lg\": \"16px\",\n \"--wzl-font-size-xl\": \"20px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#181a1e\",\n \"--wzl-surface-raised\": \"#25272c\",\n \"--wzl-surface-popover\": \"#25272c\",\n \"--wzl-surface-sunken\": \"#0e0f12\",\n \"--wzl-fg\": \"#e6e7e9\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.7)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.98)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.96)\",\n \"--wzl-border\": \"#25272c\",\n \"--wzl-border-strong\": \"#6f737b\",\n \"--wzl-accent-fg\": \"#8c94ee\",\n \"--wzl-secondary-fg\": \"#dc9d15\",\n \"--wzl-fg-inverse\": \"#0e0f12\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.6)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#955cf9\",\n \"--wzl-code-string\": \"#48e628\",\n \"--wzl-code-number\": \"#e69628\",\n \"--wzl-code-constant\": \"#3ee1cb\",\n \"--wzl-code-property\": \"#36bff2\",\n \"--wzl-code-name\": \"#fa4590\",\n \"--wzl-panel-surface\": \"#25272c\",\n \"--wzl-panel-border-color\": \"#25272c\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"16px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#e6e7e9\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#181a1e\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"10px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(230, 231, 233, 0.2)\",\n \"--wzl-line-strong\": \"rgba(230, 231, 233, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(230, 231, 233, 0.12)\",\n \"--wzl-curve-color\": \"#8c94ee\",\n \"--wzl-accent\": \"#5b63c9\",\n \"--wzl-accent-hover\": \"#8c94ee\",\n \"--wzl-secondary\": \"#dc9d15\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#8c94ee\",\n \"--wzl-glass-tint\": \"#5b63c9\",\n \"--wzl-surface-hover\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(230, 231, 233, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"28px\",\n \"--wzl-control-h-xs\": \"18px\",\n \"--wzl-control-h-sm\": \"20px\",\n \"--wzl-control-h\": \"24px\",\n \"--wzl-icon-button-size\": \"22px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"40%\",\n \"--wzl-slider-thumb-mix\": \"100%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#25272c\",\n \"--wzl-checker-b\": \"#181a1e\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#272727\",\n \"--wzl-workspace-line\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"13px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n },\n \"mode=dark,density=comfortable\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#262a66\",\n \"--wzl-accent-base\": \"#5b63c9\",\n \"--wzl-accent-strong\": \"#8c94ee\",\n \"--wzl-secondary-soft\": \"#704e09\",\n \"--wzl-secondary-base\": \"#dc9d15\",\n \"--wzl-secondary-strong\": \"#f1cb8d\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"10px\",\n \"--wzl-font-size-xs\": \"12px\",\n \"--wzl-font-size-sm\": \"13px\",\n \"--wzl-font-size-md\": \"15px\",\n \"--wzl-font-size-lg\": \"18px\",\n \"--wzl-font-size-xl\": \"23px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#181a1e\",\n \"--wzl-surface-raised\": \"#25272c\",\n \"--wzl-surface-popover\": \"#25272c\",\n \"--wzl-surface-sunken\": \"#0e0f12\",\n \"--wzl-fg\": \"#e6e7e9\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.7)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.98)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.96)\",\n \"--wzl-border\": \"#25272c\",\n \"--wzl-border-strong\": \"#6f737b\",\n \"--wzl-accent-fg\": \"#8c94ee\",\n \"--wzl-secondary-fg\": \"#dc9d15\",\n \"--wzl-fg-inverse\": \"#0e0f12\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.6)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#955cf9\",\n \"--wzl-code-string\": \"#48e628\",\n \"--wzl-code-number\": \"#e69628\",\n \"--wzl-code-constant\": \"#3ee1cb\",\n \"--wzl-code-property\": \"#36bff2\",\n \"--wzl-code-name\": \"#fa4590\",\n \"--wzl-panel-surface\": \"#25272c\",\n \"--wzl-panel-border-color\": \"#25272c\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"18px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#e6e7e9\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#181a1e\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"12px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(230, 231, 233, 0.2)\",\n \"--wzl-line-strong\": \"rgba(230, 231, 233, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(230, 231, 233, 0.12)\",\n \"--wzl-curve-color\": \"#8c94ee\",\n \"--wzl-accent\": \"#5b63c9\",\n \"--wzl-accent-hover\": \"#8c94ee\",\n \"--wzl-secondary\": \"#dc9d15\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#8c94ee\",\n \"--wzl-glass-tint\": \"#5b63c9\",\n \"--wzl-surface-hover\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(230, 231, 233, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"32px\",\n \"--wzl-control-h-xs\": \"22px\",\n \"--wzl-control-h-sm\": \"24px\",\n \"--wzl-control-h\": \"28px\",\n \"--wzl-icon-button-size\": \"26px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"40%\",\n \"--wzl-slider-thumb-mix\": \"100%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#25272c\",\n \"--wzl-checker-b\": \"#181a1e\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#272727\",\n \"--wzl-workspace-line\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"15px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n },\n \"mode=dark,density=roomy\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#262a66\",\n \"--wzl-accent-base\": \"#5b63c9\",\n \"--wzl-accent-strong\": \"#8c94ee\",\n \"--wzl-secondary-soft\": \"#704e09\",\n \"--wzl-secondary-base\": \"#dc9d15\",\n \"--wzl-secondary-strong\": \"#f1cb8d\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"12px\",\n \"--wzl-font-size-xs\": \"14px\",\n \"--wzl-font-size-sm\": \"15px\",\n \"--wzl-font-size-md\": \"18px\",\n \"--wzl-font-size-lg\": \"22px\",\n \"--wzl-font-size-xl\": \"28px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#181a1e\",\n \"--wzl-surface-raised\": \"#25272c\",\n \"--wzl-surface-popover\": \"#25272c\",\n \"--wzl-surface-sunken\": \"#0e0f12\",\n \"--wzl-fg\": \"#e6e7e9\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.7)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.98)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.96)\",\n \"--wzl-border\": \"#25272c\",\n \"--wzl-border-strong\": \"#6f737b\",\n \"--wzl-accent-fg\": \"#8c94ee\",\n \"--wzl-secondary-fg\": \"#dc9d15\",\n \"--wzl-fg-inverse\": \"#0e0f12\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.6)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#955cf9\",\n \"--wzl-code-string\": \"#48e628\",\n \"--wzl-code-number\": \"#e69628\",\n \"--wzl-code-constant\": \"#3ee1cb\",\n \"--wzl-code-property\": \"#36bff2\",\n \"--wzl-code-name\": \"#fa4590\",\n \"--wzl-panel-surface\": \"#25272c\",\n \"--wzl-panel-border-color\": \"#25272c\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"22px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#e6e7e9\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#181a1e\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.54)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"14px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(230, 231, 233, 0.2)\",\n \"--wzl-line-strong\": \"rgba(230, 231, 233, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(230, 231, 233, 0.12)\",\n \"--wzl-curve-color\": \"#8c94ee\",\n \"--wzl-accent\": \"#5b63c9\",\n \"--wzl-accent-hover\": \"#8c94ee\",\n \"--wzl-secondary\": \"#dc9d15\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#8c94ee\",\n \"--wzl-glass-tint\": \"#5b63c9\",\n \"--wzl-surface-hover\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(230, 231, 233, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"38px\",\n \"--wzl-control-h-xs\": \"26px\",\n \"--wzl-control-h-sm\": \"28px\",\n \"--wzl-control-h\": \"34px\",\n \"--wzl-icon-button-size\": \"32px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"40%\",\n \"--wzl-slider-thumb-mix\": \"100%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#25272c\",\n \"--wzl-checker-b\": \"#181a1e\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#272727\",\n \"--wzl-workspace-line\": \"rgba(230, 231, 233, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"18px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n },\n \"mode=light,density=compact\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#312e81\",\n \"--wzl-accent-base\": \"#4338ca\",\n \"--wzl-accent-strong\": \"#6366f1\",\n \"--wzl-secondary-soft\": \"#016458\",\n \"--wzl-secondary-base\": \"#3ee1cb\",\n \"--wzl-secondary-strong\": \"#94e3d5\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"9px\",\n \"--wzl-font-size-xs\": \"10px\",\n \"--wzl-font-size-sm\": \"11px\",\n \"--wzl-font-size-md\": \"13px\",\n \"--wzl-font-size-lg\": \"16px\",\n \"--wzl-font-size-xl\": \"20px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#f5f5f6\",\n \"--wzl-surface-raised\": \"#e6e7e9\",\n \"--wzl-surface-popover\": \"#e6e7e9\",\n \"--wzl-surface-sunken\": \"#c9cbcf\",\n \"--wzl-fg\": \"#0e0f12\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.73)\",\n \"--wzl-border\": \"#c9cbcf\",\n \"--wzl-border-strong\": \"#4d5058\",\n \"--wzl-accent-fg\": \"#4338ca\",\n \"--wzl-secondary-fg\": \"#016458\",\n \"--wzl-fg-inverse\": \"#f5f5f6\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.18)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#6d28d9\",\n \"--wzl-code-string\": \"#15803d\",\n \"--wzl-code-number\": \"#b45309\",\n \"--wzl-code-constant\": \"#0f766e\",\n \"--wzl-code-property\": \"#0369a1\",\n \"--wzl-code-name\": \"#be123c\",\n \"--wzl-panel-surface\": \"#e6e7e9\",\n \"--wzl-panel-border-color\": \"#c9cbcf\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"16px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#0e0f12\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#f5f5f6\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"10px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(14, 15, 18, 0.2)\",\n \"--wzl-line-strong\": \"rgba(14, 15, 18, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(14, 15, 18, 0.12)\",\n \"--wzl-curve-color\": \"#6366f1\",\n \"--wzl-accent\": \"#4338ca\",\n \"--wzl-accent-hover\": \"#6366f1\",\n \"--wzl-secondary\": \"#3ee1cb\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#6366f1\",\n \"--wzl-glass-tint\": \"#4338ca\",\n \"--wzl-surface-hover\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(14, 15, 18, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"28px\",\n \"--wzl-control-h-xs\": \"18px\",\n \"--wzl-control-h-sm\": \"20px\",\n \"--wzl-control-h\": \"24px\",\n \"--wzl-icon-button-size\": \"22px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"18%\",\n \"--wzl-slider-thumb-mix\": \"70%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#c9cbcf\",\n \"--wzl-checker-b\": \"#f5f5f6\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#e7e7e7\",\n \"--wzl-workspace-line\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"13px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n },\n \"mode=light,density=comfortable\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#312e81\",\n \"--wzl-accent-base\": \"#4338ca\",\n \"--wzl-accent-strong\": \"#6366f1\",\n \"--wzl-secondary-soft\": \"#016458\",\n \"--wzl-secondary-base\": \"#3ee1cb\",\n \"--wzl-secondary-strong\": \"#94e3d5\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"10px\",\n \"--wzl-font-size-xs\": \"12px\",\n \"--wzl-font-size-sm\": \"13px\",\n \"--wzl-font-size-md\": \"15px\",\n \"--wzl-font-size-lg\": \"18px\",\n \"--wzl-font-size-xl\": \"23px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#f5f5f6\",\n \"--wzl-surface-raised\": \"#e6e7e9\",\n \"--wzl-surface-popover\": \"#e6e7e9\",\n \"--wzl-surface-sunken\": \"#c9cbcf\",\n \"--wzl-fg\": \"#0e0f12\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.73)\",\n \"--wzl-border\": \"#c9cbcf\",\n \"--wzl-border-strong\": \"#4d5058\",\n \"--wzl-accent-fg\": \"#4338ca\",\n \"--wzl-secondary-fg\": \"#016458\",\n \"--wzl-fg-inverse\": \"#f5f5f6\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.18)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#6d28d9\",\n \"--wzl-code-string\": \"#15803d\",\n \"--wzl-code-number\": \"#b45309\",\n \"--wzl-code-constant\": \"#0f766e\",\n \"--wzl-code-property\": \"#0369a1\",\n \"--wzl-code-name\": \"#be123c\",\n \"--wzl-panel-surface\": \"#e6e7e9\",\n \"--wzl-panel-border-color\": \"#c9cbcf\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"18px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#0e0f12\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#f5f5f6\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"12px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(14, 15, 18, 0.2)\",\n \"--wzl-line-strong\": \"rgba(14, 15, 18, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(14, 15, 18, 0.12)\",\n \"--wzl-curve-color\": \"#6366f1\",\n \"--wzl-accent\": \"#4338ca\",\n \"--wzl-accent-hover\": \"#6366f1\",\n \"--wzl-secondary\": \"#3ee1cb\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#6366f1\",\n \"--wzl-glass-tint\": \"#4338ca\",\n \"--wzl-surface-hover\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(14, 15, 18, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"32px\",\n \"--wzl-control-h-xs\": \"22px\",\n \"--wzl-control-h-sm\": \"24px\",\n \"--wzl-control-h\": \"28px\",\n \"--wzl-icon-button-size\": \"26px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"18%\",\n \"--wzl-slider-thumb-mix\": \"70%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#c9cbcf\",\n \"--wzl-checker-b\": \"#f5f5f6\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#e7e7e7\",\n \"--wzl-workspace-line\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"15px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n },\n \"mode=light,density=roomy\": {\n \"--wzl-gray-50\": \"#f5f5f6\",\n \"--wzl-gray-100\": \"#e6e7e9\",\n \"--wzl-gray-200\": \"#c9cbcf\",\n \"--wzl-gray-300\": \"#9ea1a8\",\n \"--wzl-gray-400\": \"#6f737b\",\n \"--wzl-gray-500\": \"#4d5058\",\n \"--wzl-gray-600\": \"#383b42\",\n \"--wzl-gray-700\": \"#25272c\",\n \"--wzl-gray-800\": \"#181a1e\",\n \"--wzl-gray-900\": \"#0e0f12\",\n \"--wzl-accent-soft\": \"#312e81\",\n \"--wzl-accent-base\": \"#4338ca\",\n \"--wzl-accent-strong\": \"#6366f1\",\n \"--wzl-secondary-soft\": \"#016458\",\n \"--wzl-secondary-base\": \"#3ee1cb\",\n \"--wzl-secondary-strong\": \"#94e3d5\",\n \"--wzl-swatch-fuchsia\": \"#f641f7\",\n \"--wzl-swatch-green\": \"#48e628\",\n \"--wzl-swatch-sky\": \"#36bff2\",\n \"--wzl-swatch-amber\": \"#e69628\",\n \"--wzl-swatch-teal\": \"#3ee1cb\",\n \"--wzl-swatch-red\": \"#f75034\",\n \"--wzl-swatch-blue\": \"#407ef7\",\n \"--wzl-swatch-citron\": \"#d5d23a\",\n \"--wzl-swatch-rose\": \"#fa4590\",\n \"--wzl-swatch-violet\": \"#955cf9\",\n \"--wzl-font-size-2xs\": \"12px\",\n \"--wzl-font-size-xs\": \"14px\",\n \"--wzl-font-size-sm\": \"15px\",\n \"--wzl-font-size-md\": \"18px\",\n \"--wzl-font-size-lg\": \"22px\",\n \"--wzl-font-size-xl\": \"28px\",\n \"--wzl-space-1\": \"2px\",\n \"--wzl-space-2\": \"4px\",\n \"--wzl-space-3\": \"6px\",\n \"--wzl-space-4\": \"8px\",\n \"--wzl-space-5\": \"10px\",\n \"--wzl-space-6\": \"12px\",\n \"--wzl-space-7\": \"14px\",\n \"--wzl-space-8\": \"16px\",\n \"--wzl-surface\": \"#f5f5f6\",\n \"--wzl-surface-raised\": \"#e6e7e9\",\n \"--wzl-surface-popover\": \"#e6e7e9\",\n \"--wzl-surface-sunken\": \"#c9cbcf\",\n \"--wzl-fg\": \"#0e0f12\",\n \"--wzl-fg-muted\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-fg-muted-on-accent\": \"rgb(from currentColor r g b / 0.78)\",\n \"--wzl-fg-subtle-on-accent\": \"rgb(from currentColor r g b / 0.73)\",\n \"--wzl-border\": \"#c9cbcf\",\n \"--wzl-border-strong\": \"#4d5058\",\n \"--wzl-accent-fg\": \"#4338ca\",\n \"--wzl-secondary-fg\": \"#016458\",\n \"--wzl-fg-inverse\": \"#f5f5f6\",\n \"--wzl-shadow\": \"rgba(0, 0, 0, 0.18)\",\n \"--wzl-scrim\": \"rgba(0, 0, 0, 0.4)\",\n \"--wzl-code-keyword\": \"#6d28d9\",\n \"--wzl-code-string\": \"#15803d\",\n \"--wzl-code-number\": \"#b45309\",\n \"--wzl-code-constant\": \"#0f766e\",\n \"--wzl-code-property\": \"#0369a1\",\n \"--wzl-code-name\": \"#be123c\",\n \"--wzl-panel-surface\": \"#e6e7e9\",\n \"--wzl-panel-border-color\": \"#c9cbcf\",\n \"--wzl-panel-border-style\": \"solid\",\n \"--wzl-panel-border-width\": \"1px\",\n \"--wzl-radius-lg\": \"14px\",\n \"--wzl-panel-radius\": \"14px\",\n \"--wzl-panel-pad\": \"14px 16px\",\n \"--wzl-glass-blur\": \"3px\",\n \"--wzl-panel-blur\": \"3px\",\n \"--wzl-panel-tint-mix\": \"14%\",\n \"--wzl-font-display\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-panel-title-font\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-weight-light\": \"200\",\n \"--wzl-panel-title-weight\": \"200\",\n \"--wzl-panel-title-size\": \"22px\",\n \"--wzl-panel-title-case\": \"none\",\n \"--wzl-panel-title-tracking\": \"0.01em\",\n \"--wzl-panel-title-color\": \"#0e0f12\",\n \"--wzl-panel-title-inset\": \"0\",\n \"--wzl-stance-clarify-border-width\": \"0\",\n \"--wzl-stance-clarify-radius\": \"8px\",\n \"--wzl-stance-clarify-tint-mix\": \"22%\",\n \"--wzl-stance-clarify-nested-radius\": \"6px\",\n \"--wzl-stance-clarify-nested-surface\": \"#f5f5f6\",\n \"--wzl-stance-aside-surface\": \"transparent\",\n \"--wzl-line-subtle\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-border-color\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-stance-aside-blur\": \"0px\",\n \"--wzl-stance-aside-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-advanced-title-color\": \"rgb(from currentColor r g b / 0.64)\",\n \"--wzl-stance-debug-border-style\": \"dashed\",\n \"--wzl-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-font\": \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n \"--wzl-stance-debug-title-case\": \"none\",\n \"--wzl-stance-preview-pad\": \"0\",\n \"--wzl-stance-preview-title-size\": \"14px\",\n \"--wzl-stance-preview-title-case\": \"none\",\n \"--wzl-stance-preview-title-inset\": \"6px 10px 0\",\n \"--wzl-danger-base\": \"#d94a3f\",\n \"--wzl-warning-base\": \"#d99a3f\",\n \"--wzl-success-base\": \"#2ec27e\",\n \"--wzl-info-base\": \"#7ab8d4\",\n \"--wzl-fg-on-accent\": \"#f5f5f6\",\n \"--wzl-line\": \"rgba(14, 15, 18, 0.2)\",\n \"--wzl-line-strong\": \"rgba(14, 15, 18, 0.4)\",\n \"--wzl-border-on-sunken\": \"rgba(14, 15, 18, 0.12)\",\n \"--wzl-curve-color\": \"#6366f1\",\n \"--wzl-accent\": \"#4338ca\",\n \"--wzl-accent-hover\": \"#6366f1\",\n \"--wzl-secondary\": \"#3ee1cb\",\n \"--wzl-danger\": \"#d94a3f\",\n \"--wzl-warning\": \"#d99a3f\",\n \"--wzl-success\": \"#2ec27e\",\n \"--wzl-info\": \"#7ab8d4\",\n \"--wzl-focus-ring\": \"#6366f1\",\n \"--wzl-glass-tint\": \"#4338ca\",\n \"--wzl-surface-hover\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-surface-pressed\": \"rgba(14, 15, 18, 0.18)\",\n \"--wzl-radius-sm\": \"3px\",\n \"--wzl-radius-md\": \"5px\",\n \"--wzl-radius-pill\": \"999px\",\n \"--wzl-border-w\": \"1px\",\n \"--wzl-line-width\": \"2px\",\n \"--wzl-curve-width\": \"3px\",\n \"--wzl-tb-height\": \"38px\",\n \"--wzl-control-h-xs\": \"26px\",\n \"--wzl-control-h-sm\": \"28px\",\n \"--wzl-control-h\": \"34px\",\n \"--wzl-icon-button-size\": \"32px\",\n \"--wzl-slider-track-h\": \"4px\",\n \"--wzl-slider-thumb-size\": \"8px\",\n \"--wzl-slider-track-slop\": \"6px\",\n \"--wzl-slider-thumb-slop\": \"6px\",\n \"--wzl-slider-track-mix\": \"18%\",\n \"--wzl-slider-thumb-mix\": \"70%\",\n \"--wzl-handle-size\": \"9px\",\n \"--wzl-handle-size-sm\": \"7px\",\n \"--wzl-handle-size-lg\": \"10px\",\n \"--wzl-handle-dot-size\": \"8px\",\n \"--wzl-handle-dot-size-sm\": \"7px\",\n \"--wzl-checker-a\": \"#c9cbcf\",\n \"--wzl-checker-b\": \"#f5f5f6\",\n \"--wzl-checker-size\": \"8px\",\n \"--wzl-workspace-surface\": \"#e7e7e7\",\n \"--wzl-workspace-line\": \"rgba(14, 15, 18, 0.1)\",\n \"--wzl-workspace\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"--wzl-field-pad-x\": \"8px\",\n \"--wzl-gloss\": \"0\",\n \"--wzl-font-size\": \"18px\",\n \"--wzl-tracking-none\": \"0\",\n \"--wzl-tracking-wide\": \"0.06em\",\n \"--wzl-tracking-wider\": \"0.08em\",\n \"--wzl-z-toolbar\": \"10\",\n \"--wzl-z-overlay\": \"20\",\n \"--wzl-z-hud\": \"900\",\n \"--wzl-z-modal\": \"1000\",\n \"--wzl-z-toast\": \"1100\",\n \"--wzl-z-popover\": \"1200\",\n \"--wzl-z-drag\": \"10000\",\n \"--wzl-leading-tight\": \"1\",\n \"--wzl-leading-snug\": \"1.2\",\n \"--wzl-leading\": \"1.4\",\n \"--wzl-backdrop\": \"none\",\n \"--wzl-motion-fast\": \"120ms\",\n \"--wzl-motion-medium\": \"240ms\",\n \"--wzl-ease-in-cubic\": \"cubic-bezier(0.32, 0, 0.67, 0)\",\n \"--wzl-ease-out-cubic\": \"cubic-bezier(0.33, 1, 0.68, 1)\",\n \"--wzl-ease-in-out-cubic\": \"cubic-bezier(0.65, 0, 0.35, 1)\",\n \"--wzl-ease-out-back\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"--wzl-font-ui\": \"Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif\",\n \"--wzl-font-numeric\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"--wzl-font-body\": \"Inter, system-ui, -apple-system, 'Segoe UI', sans-serif\",\n \"--wzl-font-weight-normal\": \"300\",\n \"--wzl-font-weight-medium\": \"350\",\n \"--wzl-font-weight-bold\": \"400\",\n \"--wzl-space-xs\": \"4px\",\n \"--wzl-space-sm\": \"8px\",\n \"--wzl-space-md\": \"12px\",\n \"--wzl-space-lg\": \"16px\"\n }\n }\n }\n};\nvar THEME_SOURCES = {\n \"weasel\": {\n \"name\": \"weasel\",\n \"axes\": {\n \"mode\": {\n \"default\": \"dark\",\n \"values\": {\n \"dark\": {\n \"scheme\": \"dark\"\n },\n \"light\": {\n \"scheme\": \"light\"\n }\n }\n },\n \"density\": {\n \"default\": \"comfortable\",\n \"values\": {\n \"compact\": {},\n \"comfortable\": {},\n \"roomy\": {}\n }\n }\n },\n \"seeds\": {\n \"ui-base\": {\n \"by\": \"density\",\n \"compact\": 13,\n \"comfortable\": 15,\n \"roomy\": 18\n }\n },\n \"ramps\": {\n \"gray\": {\n \"kind\": \"lightness\",\n \"steps\": [\n \"50\",\n \"100\",\n \"200\",\n \"300\",\n \"400\",\n \"500\",\n \"600\",\n \"700\",\n \"800\",\n \"900\"\n ],\n \"lightness\": [\n 0.973,\n 0.163\n ],\n \"curve\": 0.41,\n \"hue\": 266,\n \"chroma\": {\n \"peak\": 0.0116,\n \"darkBias\": 0.84\n }\n },\n \"accent\": {\n \"kind\": \"lightness\",\n \"steps\": [\n \"soft\",\n \"base\",\n \"strong\"\n ],\n \"lightness\": [\n 0.252,\n 0.471\n ],\n \"curve\": 0,\n \"anchor\": {\n \"base\": {\n \"by\": \"mode\",\n \"dark\": \"#5b63c9\",\n \"light\": \"#4338ca\"\n }\n }\n },\n \"secondary\": {\n \"kind\": \"lightness\",\n \"steps\": [\n \"soft\",\n \"base\",\n \"strong\"\n ],\n \"lightness\": [\n 0.45,\n 0.86\n ],\n \"curve\": 0,\n \"chroma\": {\n \"peak\": 0.149,\n \"lightBias\": 1.5,\n \"darkBias\": 1.5\n },\n \"anchor\": {\n \"base\": {\n \"by\": \"mode\",\n \"dark\": \"#dc9d15\",\n \"light\": \"#3ee1cb\"\n }\n }\n },\n \"swatch\": {\n \"kind\": \"categorical\",\n \"steps\": [\n \"fuchsia\",\n \"green\",\n \"sky\",\n \"amber\",\n \"teal\",\n \"red\",\n \"blue\",\n \"citron\",\n \"rose\",\n \"violet\"\n ],\n \"gates\": {\n \"hueFloor\": 0.9,\n \"minContrast\": 4,\n \"surface\": \"#181a1e\",\n \"lightnessTarget\": 0.72,\n \"lightnessPull\": 0.4,\n \"chromaFraction\": 0.95,\n \"equalize\": 0,\n \"minSurfaceDistance\": 0.25,\n \"minDistance\": 0.22,\n \"order\": \"farthest\"\n }\n }\n },\n \"scales\": {\n \"font-size\": {\n \"steps\": [\n \"2xs\",\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\"\n ],\n \"base\": \"{seeds.ui-base}\",\n \"factors\": [\n 0.66,\n 0.77,\n 0.85,\n 1,\n 1.23,\n 1.54\n ],\n \"description\": \"Chrome type ramp. Hand-tuned factors rather than a ratio: the small end is compressed because chrome text stops being legible before a geometric ramp stops shrinking.\",\n \"describe\": {\n \"2xs\": \"Shortcut keys and index badges. The floor for chrome text.\",\n \"xs\": \"Tool-button labels under an icon.\",\n \"sm\": \"Chrome labels, status readouts, section headings.\",\n \"md\": \"Controls and body text.\",\n \"lg\": \"Panel and dialog titles.\",\n \"xl\": \"The largest chrome text \\u2014 a lab or app title.\"\n }\n },\n \"space\": {\n \"steps\": [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\"\n ],\n \"base\": 2,\n \"step\": 2,\n \"description\": \"Spacing ladder, 2px rungs. Invariant across density: the rungs are finer than any density factor could resolve without rounding two of them onto the same pixel.\"\n }\n },\n \"semantics\": {\n \"surface\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-800\",\n \"type\": \"color\"\n },\n \"light\": {\n \"ref\": \"gray-50\",\n \"type\": \"color\"\n }\n },\n \"surface-raised\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-700\",\n \"type\": \"color\"\n },\n \"light\": {\n \"ref\": \"gray-100\",\n \"type\": \"color\"\n }\n },\n \"surface-popover\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"surface-raised\",\n \"type\": \"color\",\n \"description\": \"Background of a dropdown, menu or other popover list. Follows surface-raised unless a theme needs floating lists to read differently from the panels beneath them.\"\n },\n \"light\": {\n \"ref\": \"surface-raised\",\n \"type\": \"color\"\n }\n },\n \"surface-sunken\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-900\",\n \"type\": \"color\"\n },\n \"light\": {\n \"ref\": \"gray-200\",\n \"type\": \"color\"\n }\n },\n \"fg\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-100\",\n \"type\": \"color\"\n },\n \"light\": {\n \"ref\": \"gray-900\",\n \"type\": \"color\"\n }\n },\n \"fg-muted\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"rgb(from currentColor r g b / 0.7)\",\n \"type\": \"color\",\n \"description\": \"Secondary text: the text color in effect where it is used, at reduced alpha, so it steps down from whatever text it sits beside on any surface. The alpha is absolute, so muted text nested in muted text stays one step down. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n },\n \"light\": {\n \"value\": \"rgb(from currentColor r g b / 0.78)\",\n \"type\": \"color\",\n \"description\": \"Secondary text: the text color in effect where it is used, at reduced alpha, so it steps down from whatever text it sits beside on any surface. The alpha is absolute, so muted text nested in muted text stays one step down. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n }\n },\n \"fg-subtle\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"rgb(from currentColor r g b / 0.54)\",\n \"type\": \"color\",\n \"description\": \"Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n },\n \"light\": {\n \"value\": \"rgb(from currentColor r g b / 0.64)\",\n \"type\": \"color\",\n \"description\": \"Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n }\n },\n \"fg-muted-on-accent\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"rgb(from currentColor r g b / 0.98)\",\n \"type\": \"color\",\n \"description\": \"Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show.\"\n },\n \"light\": {\n \"value\": \"rgb(from currentColor r g b / 0.78)\",\n \"type\": \"color\",\n \"description\": \"Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show.\"\n }\n },\n \"fg-subtle-on-accent\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"rgb(from currentColor r g b / 0.96)\",\n \"type\": \"color\",\n \"description\": \"Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes.\"\n },\n \"light\": {\n \"value\": \"rgb(from currentColor r g b / 0.73)\",\n \"type\": \"color\",\n \"description\": \"Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes.\"\n }\n },\n \"border\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-700\",\n \"type\": \"color\"\n },\n \"light\": {\n \"ref\": \"gray-200\",\n \"type\": \"color\"\n }\n },\n \"border-strong\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-400\",\n \"type\": \"color\",\n \"description\": \"The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes.\"\n },\n \"light\": {\n \"ref\": \"gray-500\",\n \"type\": \"color\"\n }\n },\n \"accent-fg\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"accent-strong\",\n \"type\": \"color\",\n \"description\": \"Accent for foreground use \\u2014 text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces.\"\n },\n \"light\": {\n \"ref\": \"accent-base\",\n \"type\": \"color\",\n \"description\": \"Flips to the deep base in light mode, where it is the legible one.\"\n }\n },\n \"secondary-fg\": {\n \"ramp\": \"secondary\",\n \"contrast\": {\n \"min\": 4.5,\n \"against\": [\n \"surface\"\n ]\n },\n \"description\": \"Secondary accent for foreground use: a second voice beside the accent, such as a value the panel derived rather than one the user set. Picked from the ramp so it clears 4.5:1 on the surface in both modes.\"\n },\n \"fg-inverse\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"gray-900\",\n \"type\": \"color\",\n \"description\": \"Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive.\"\n },\n \"light\": {\n \"ref\": \"gray-50\",\n \"type\": \"color\",\n \"description\": \"Flips with the mode \\u2014 see the dark layer.\"\n }\n },\n \"shadow\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"rgba(0, 0, 0, 0.6)\",\n \"type\": \"color\",\n \"description\": \"Elevation. Always darker than any surface \\u2014 never derived from fg, which is near-white on dark.\"\n },\n \"light\": {\n \"value\": \"rgba(0, 0, 0, 0.18)\",\n \"type\": \"color\"\n }\n },\n \"scrim\": {\n \"value\": \"rgba(0, 0, 0, 0.4)\",\n \"type\": \"color\",\n \"description\": \"What a modal dims the page behind it with.\"\n },\n \"code-keyword\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-violet\",\n \"type\": \"color\",\n \"description\": \"Keywords in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#6d28d9\",\n \"type\": \"color\"\n }\n },\n \"code-string\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-green\",\n \"type\": \"color\",\n \"description\": \"String literals in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#15803d\",\n \"type\": \"color\"\n }\n },\n \"code-number\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-amber\",\n \"type\": \"color\",\n \"description\": \"Numbers in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#b45309\",\n \"type\": \"color\"\n }\n },\n \"code-constant\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-teal\",\n \"type\": \"color\",\n \"description\": \"true, false, null and undefined in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#0f766e\",\n \"type\": \"color\"\n }\n },\n \"code-property\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-sky\",\n \"type\": \"color\",\n \"description\": \"Property keys and attribute names in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#0369a1\",\n \"type\": \"color\"\n }\n },\n \"code-name\": {\n \"by\": \"mode\",\n \"dark\": {\n \"ref\": \"swatch-rose\",\n \"type\": \"color\",\n \"description\": \"Functions, classes and other names in highlighted code.\"\n },\n \"light\": {\n \"value\": \"#be123c\",\n \"type\": \"color\"\n }\n }\n },\n \"components\": {\n \"panel-surface\": {\n \"value\": \"{surface-raised}\",\n \"type\": \"color\",\n \"description\": \"Fill of a PropertyPanel.\"\n },\n \"panel-border-color\": {\n \"value\": \"{border}\",\n \"type\": \"color\"\n },\n \"panel-border-style\": {\n \"value\": \"solid\",\n \"type\": \"string\"\n },\n \"panel-border-width\": {\n \"value\": \"1px\",\n \"type\": \"dimension\"\n },\n \"panel-radius\": {\n \"value\": \"{radius-lg}\",\n \"type\": \"dimension\"\n },\n \"panel-pad\": {\n \"value\": \"14px 16px\",\n \"type\": \"dimension\",\n \"description\": \"A panel\\u2019s padding when no density sets one.\"\n },\n \"panel-blur\": {\n \"value\": \"{glass-blur}\",\n \"type\": \"dimension\"\n },\n \"panel-tint-mix\": {\n \"value\": \"14%\",\n \"type\": \"number\",\n \"description\": \"How much of a panel\\u2019s tint mixes into its surface.\"\n },\n \"panel-title-font\": {\n \"value\": \"{font-display}\",\n \"type\": \"fontFamily\"\n },\n \"panel-title-weight\": {\n \"value\": \"{font-weight-light}\",\n \"type\": \"fontWeight\"\n },\n \"panel-title-size\": {\n \"value\": \"{font-size-lg}\",\n \"type\": \"dimension\"\n },\n \"panel-title-case\": {\n \"value\": \"none\",\n \"type\": \"string\"\n },\n \"panel-title-tracking\": {\n \"value\": \"0.01em\",\n \"type\": \"dimension\"\n },\n \"panel-title-color\": {\n \"value\": \"{fg}\",\n \"type\": \"color\"\n },\n \"panel-title-inset\": {\n \"value\": \"0\",\n \"type\": \"dimension\"\n },\n \"stance-clarify-border-width\": {\n \"value\": \"0\",\n \"type\": \"dimension\"\n },\n \"stance-clarify-radius\": {\n \"value\": \"8px\",\n \"type\": \"dimension\"\n },\n \"stance-clarify-tint-mix\": {\n \"value\": \"22%\",\n \"type\": \"number\"\n },\n \"stance-clarify-nested-radius\": {\n \"value\": \"6px\",\n \"type\": \"dimension\"\n },\n \"stance-clarify-nested-surface\": {\n \"value\": \"{surface}\",\n \"type\": \"color\",\n \"description\": \"A clarify panel inside another sits back into it.\"\n },\n \"stance-aside-surface\": {\n \"value\": \"transparent\",\n \"type\": \"color\"\n },\n \"stance-aside-border-color\": {\n \"value\": \"{line-subtle}\",\n \"type\": \"color\"\n },\n \"stance-aside-blur\": {\n \"value\": \"0px\",\n \"type\": \"dimension\"\n },\n \"stance-aside-title-color\": {\n \"value\": \"{fg-subtle}\",\n \"type\": \"color\"\n },\n \"stance-advanced-title-color\": {\n \"value\": \"{fg-subtle}\",\n \"type\": \"color\"\n },\n \"stance-debug-border-style\": {\n \"value\": \"dashed\",\n \"type\": \"string\"\n },\n \"stance-debug-title-font\": {\n \"value\": \"{font-mono}\",\n \"type\": \"fontFamily\"\n },\n \"stance-debug-title-case\": {\n \"value\": \"none\",\n \"type\": \"string\"\n },\n \"stance-preview-pad\": {\n \"value\": \"0\",\n \"type\": \"dimension\"\n },\n \"stance-preview-title-size\": {\n \"value\": \"{font-size-xs}\",\n \"type\": \"dimension\"\n },\n \"stance-preview-title-case\": {\n \"value\": \"none\",\n \"type\": \"string\"\n },\n \"stance-preview-title-inset\": {\n \"value\": \"6px 10px 0\",\n \"type\": \"dimension\"\n }\n },\n \"pins\": {\n \"gray-50\": {\n \"value\": \"#f5f5f6\",\n \"type\": \"color\"\n },\n \"gray-100\": {\n \"value\": \"#e6e7e9\",\n \"type\": \"color\"\n },\n \"gray-200\": {\n \"value\": \"#c9cbcf\",\n \"type\": \"color\"\n },\n \"gray-300\": {\n \"value\": \"#9ea1a8\",\n \"type\": \"color\"\n },\n \"gray-400\": {\n \"value\": \"#6f737b\",\n \"type\": \"color\"\n },\n \"gray-500\": {\n \"value\": \"#4d5058\",\n \"type\": \"color\"\n },\n \"gray-600\": {\n \"value\": \"#383b42\",\n \"type\": \"color\"\n },\n \"gray-700\": {\n \"value\": \"#25272c\",\n \"type\": \"color\"\n },\n \"gray-800\": {\n \"value\": \"#181a1e\",\n \"type\": \"color\"\n },\n \"gray-900\": {\n \"value\": \"#0e0f12\",\n \"type\": \"color\"\n },\n \"accent-soft\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"#262a66\",\n \"type\": \"color\"\n },\n \"light\": {\n \"value\": \"#312e81\",\n \"type\": \"color\"\n }\n },\n \"accent-base\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"#5b63c9\",\n \"type\": \"color\",\n \"description\": \"Periwinkle. Anchors primary actions on dark surfaces.\"\n },\n \"light\": {\n \"value\": \"#4338ca\",\n \"type\": \"color\",\n \"description\": \"Indigo. Anchors primary actions on light surfaces.\"\n }\n },\n \"accent-strong\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"#8c94ee\",\n \"type\": \"color\"\n },\n \"light\": {\n \"value\": \"#6366f1\",\n \"type\": \"color\"\n }\n },\n \"danger-base\": {\n \"value\": \"#d94a3f\",\n \"type\": \"color\"\n },\n \"warning-base\": {\n \"value\": \"#d99a3f\",\n \"type\": \"color\"\n },\n \"success-base\": {\n \"value\": \"#2ec27e\",\n \"type\": \"color\"\n },\n \"info-base\": {\n \"value\": \"#7ab8d4\",\n \"type\": \"color\"\n },\n \"fg-on-accent\": {\n \"value\": \"{gray-50}\",\n \"type\": \"color\"\n },\n \"line-subtle\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.1,\n \"description\": \"Barely-there separators (table rows).\"\n },\n \"line\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.2,\n \"description\": \"Primary gridlines on sunken surfaces.\"\n },\n \"line-strong\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.4,\n \"description\": \"Axes and emphasized dividers.\"\n },\n \"border-on-sunken\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.12,\n \"description\": \"The edge of a box filled with surface-sunken. Stepped from the text color, because light mode's border is the sunken fill's own gray.\"\n },\n \"curve-color\": {\n \"value\": \"{accent-strong}\",\n \"type\": \"color\",\n \"description\": \"Drawn data curves. Routes through the bright accent because accent-base is too dim on sunken surfaces.\"\n },\n \"accent\": {\n \"value\": \"{accent-base}\",\n \"type\": \"color\"\n },\n \"accent-hover\": {\n \"value\": \"{accent-strong}\",\n \"type\": \"color\"\n },\n \"secondary\": {\n \"value\": \"{secondary-base}\",\n \"type\": \"color\",\n \"description\": \"Honey amber in dark mode and teal in light, where a darkened amber reads as brown. A fill; use secondary-fg for text.\"\n },\n \"danger\": {\n \"value\": \"{danger-base}\",\n \"type\": \"color\"\n },\n \"warning\": {\n \"value\": \"{warning-base}\",\n \"type\": \"color\"\n },\n \"success\": {\n \"value\": \"{success-base}\",\n \"type\": \"color\"\n },\n \"info\": {\n \"value\": \"{info-base}\",\n \"type\": \"color\"\n },\n \"focus-ring\": {\n \"value\": \"{accent-strong}\",\n \"type\": \"color\"\n },\n \"glass-tint\": {\n \"value\": \"{accent}\",\n \"type\": \"color\",\n \"description\": \"Frosted-glass tint. Components compose it as color-mix(in srgb, var(--wzl-glass-tint) 78%, transparent) with backdrop-filter: blur(3px).\"\n },\n \"surface-hover\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.1,\n \"description\": \"Hover wash over a raised surface. Same formula as line-subtle, different job \\u2014 do not collapse them.\"\n },\n \"surface-pressed\": {\n \"value\": \"{fg}\",\n \"type\": \"color\",\n \"alpha\": 0.18,\n \"description\": \"Pressed wash over a raised surface.\"\n },\n \"swatch-fuchsia\": {\n \"value\": \"#f641f7\",\n \"type\": \"color\",\n \"description\": \"First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87\\xB0 apart, all ten 32\\xB0). Mode-invariant on purpose \\u2014 a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one.\"\n },\n \"swatch-green\": {\n \"value\": \"#48e628\",\n \"type\": \"color\"\n },\n \"swatch-sky\": {\n \"value\": \"#36bff2\",\n \"type\": \"color\"\n },\n \"swatch-amber\": {\n \"value\": \"#e69628\",\n \"type\": \"color\"\n },\n \"swatch-teal\": {\n \"value\": \"#3ee1cb\",\n \"type\": \"color\"\n },\n \"swatch-red\": {\n \"value\": \"#f75034\",\n \"type\": \"color\"\n },\n \"swatch-blue\": {\n \"value\": \"#407ef7\",\n \"type\": \"color\"\n },\n \"swatch-citron\": {\n \"value\": \"#d5d23a\",\n \"type\": \"color\"\n },\n \"swatch-rose\": {\n \"value\": \"#fa4590\",\n \"type\": \"color\"\n },\n \"swatch-violet\": {\n \"value\": \"#955cf9\",\n \"type\": \"color\"\n },\n \"radius-sm\": {\n \"value\": \"3px\",\n \"type\": \"dimension\"\n },\n \"radius-md\": {\n \"value\": \"5px\",\n \"type\": \"dimension\"\n },\n \"radius-lg\": {\n \"value\": \"14px\",\n \"type\": \"dimension\"\n },\n \"radius-pill\": {\n \"value\": \"999px\",\n \"type\": \"dimension\",\n \"description\": \"Fully rounded ends \\u2014 segmented controls, progress tracks.\"\n },\n \"border-w\": {\n \"value\": \"1px\",\n \"type\": \"dimension\"\n },\n \"line-width\": {\n \"value\": \"2px\",\n \"type\": \"dimension\",\n \"description\": \"Structural lines \\u2014 gridlines, dividers, axes.\"\n },\n \"curve-width\": {\n \"value\": \"3px\",\n \"type\": \"dimension\",\n \"description\": \"Drawn data curves. Heavier than structural lines so data reads as primary content.\"\n },\n \"tb-height\": {\n \"by\": \"density\",\n \"compact\": {\n \"value\": \"28px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n },\n \"comfortable\": {\n \"value\": \"32px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n },\n \"roomy\": {\n \"value\": \"38px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n }\n },\n \"control-h-xs\": {\n \"by\": \"density\",\n \"compact\": {\n \"value\": \"18px\",\n \"type\": \"dimension\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n },\n \"comfortable\": {\n \"value\": \"22px\",\n \"type\": \"dimension\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n },\n \"roomy\": {\n \"value\": \"26px\",\n \"type\": \"dimension\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n }\n },\n \"control-h-sm\": {\n \"by\": \"density\",\n \"compact\": {\n \"value\": \"20px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n },\n \"comfortable\": {\n \"value\": \"24px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n },\n \"roomy\": {\n \"value\": \"28px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n }\n },\n \"control-h\": {\n \"by\": \"density\",\n \"compact\": {\n \"value\": \"24px\",\n \"type\": \"dimension\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n },\n \"comfortable\": {\n \"value\": \"28px\",\n \"type\": \"dimension\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n },\n \"roomy\": {\n \"value\": \"34px\",\n \"type\": \"dimension\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n }\n },\n \"icon-button-size\": {\n \"by\": \"density\",\n \"compact\": {\n \"value\": \"22px\",\n \"type\": \"dimension\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n },\n \"comfortable\": {\n \"value\": \"26px\",\n \"type\": \"dimension\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n },\n \"roomy\": {\n \"value\": \"32px\",\n \"type\": \"dimension\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n }\n },\n \"slider-track-h\": {\n \"value\": \"4px\",\n \"type\": \"dimension\",\n \"description\": \"Height of a linear range track. The kit's single-thumb ranges all wear this; Slider's default 24px canvas track does not.\"\n },\n \"slider-thumb-size\": {\n \"value\": \"8px\",\n \"type\": \"dimension\",\n \"description\": \"Diameter of a linear range thumb.\"\n },\n \"slider-track-slop\": {\n \"value\": \"6px\",\n \"type\": \"dimension\",\n \"description\": \"How far past a range track's edge a press still lands on it. Invisible, and overlaps whatever sits beside the track rather than taking layout space.\"\n },\n \"slider-thumb-slop\": {\n \"value\": \"6px\",\n \"type\": \"dimension\",\n \"description\": \"How far past a range thumb's edge a press still grabs the thumb rather than landing on the track. Sits over the track's own slop.\"\n },\n \"slider-track-mix\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"40%\",\n \"type\": \"dimension\",\n \"description\": \"Proportion of accent-fg in a range track, as a color-mix percentage \\u2014 not a color. Mixed into a real property, never into another custom property. Higher in dark mode, where a light tint of the accent sinks into the surface.\"\n },\n \"light\": {\n \"value\": \"18%\",\n \"type\": \"dimension\",\n \"description\": \"Proportion of accent-fg in a range track, as a color-mix percentage \\u2014 not a color.\"\n }\n },\n \"slider-thumb-mix\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"100%\",\n \"type\": \"dimension\",\n \"description\": \"Proportion of accent-fg in a range thumb, as a color-mix percentage \\u2014 not a color. Solid in dark mode.\"\n },\n \"light\": {\n \"value\": \"70%\",\n \"type\": \"dimension\",\n \"description\": \"Proportion of accent-fg in a range thumb, as a color-mix percentage \\u2014 not a color.\"\n }\n },\n \"handle-size\": {\n \"value\": \"9px\",\n \"type\": \"dimension\",\n \"description\": \"Edge of a draggable handle on a plot or timeline \\u2014 a keyframe diamond, a timeline key, an event mark. The default rank; -sm and -lg are the two deliberate departures from it.\"\n },\n \"handle-size-sm\": {\n \"value\": \"7px\",\n \"type\": \"dimension\",\n \"description\": \"A handle that is drawn but not draggable \\u2014 a locked or pinned point. Smaller so it reads as inert next to a live one.\"\n },\n \"handle-size-lg\": {\n \"value\": \"10px\",\n \"type\": \"dimension\",\n \"description\": \"A handle that is a category of its own rather than one of a row \\u2014 a curve's endpoint. Larger so it separates from the handles it sits in line with.\"\n },\n \"handle-dot-size\": {\n \"value\": \"8px\",\n \"type\": \"dimension\",\n \"description\": \"Diameter of a round handle \\u2014 a plain anchor on a curve. Its own rank beside handle-size, because a circle and a diamond of one edge do not read as one size.\"\n },\n \"handle-dot-size-sm\": {\n \"value\": \"7px\",\n \"type\": \"dimension\",\n \"description\": \"A round handle that belongs to another point \\u2014 a bezier control handle at the end of its stem.\"\n },\n \"checker-a\": {\n \"value\": \"{border}\",\n \"type\": \"color\",\n \"description\": \"One square of the transparency checker drawn under a paint that is empty, mixed or translucent. weasel-ui builds the checker layer once, in components/checker.module.css: compose its `checker` class and paint with var(--wzl-checker-layer).\"\n },\n \"checker-b\": {\n \"value\": \"{surface}\",\n \"type\": \"color\",\n \"description\": \"The other square of the transparency checker.\"\n },\n \"checker-size\": {\n \"value\": \"8px\",\n \"type\": \"dimension\",\n \"description\": \"Edge of one repeat of the transparency checker: two squares by two.\"\n },\n \"workspace-surface\": {\n \"by\": \"mode\",\n \"dark\": {\n \"value\": \"#272727\",\n \"type\": \"color\",\n \"description\": \"Ground of a canvas app's workspace \\u2014 the area around the document page: surface-raised with its tint taken out (its OKLCH chroma set to 0).\"\n },\n \"light\": {\n \"value\": \"#e7e7e7\",\n \"type\": \"color\"\n }\n },\n \"workspace-line\": {\n \"value\": \"{line-subtle}\",\n \"type\": \"color\",\n \"description\": \"Marks drawn over workspace-surface, such as its diagonal stripes, so the page reads as the thing on top.\"\n },\n \"workspace\": {\n \"value\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"type\": \"gradient\",\n \"description\": \"The workspace as one background layer: workspace-surface struck with wide diagonal bands of workspace-line. Use it as an element's whole background.\"\n },\n \"field-pad-x\": {\n \"value\": \"8px\",\n \"type\": \"dimension\",\n \"description\": \"Horizontal padding inside a boxed field. Pairs with --wzl-field-h, which is a container override and has no :root default.\"\n },\n \"gloss\": {\n \"value\": 0,\n \"type\": \"number\",\n \"description\": \"How much glass a boxed button and a selected segment wear, from 0 to 1: at 0 a flat fill, at 1 the full ramp, specular gloss, rim, and drop shadow.\"\n },\n \"glass-blur\": {\n \"value\": \"3px\",\n \"type\": \"dimension\",\n \"description\": \"Backdrop blur radius for frosted surfaces. Pairs with glass-tint.\"\n },\n \"font-size\": {\n \"value\": \"{font-size-md}\",\n \"type\": \"dimension\",\n \"description\": \"Controls and body text.\"\n },\n \"tracking-none\": {\n \"value\": \"0\",\n \"type\": \"dimension\"\n },\n \"tracking-wide\": {\n \"value\": \"0.06em\",\n \"type\": \"dimension\",\n \"description\": \"Uppercase section headings.\"\n },\n \"tracking-wider\": {\n \"value\": \"0.08em\",\n \"type\": \"dimension\",\n \"description\": \"Uppercase at 11px and below.\"\n },\n \"z-toolbar\": {\n \"value\": 10,\n \"type\": \"number\",\n \"description\": \"Chrome pinned over a workspace.\"\n },\n \"z-overlay\": {\n \"value\": 20,\n \"type\": \"number\",\n \"description\": \"A panel or readout floating over the chrome.\"\n },\n \"z-hud\": {\n \"value\": 900,\n \"type\": \"number\",\n \"description\": \"Debug readouts, over the app and under anything modal.\"\n },\n \"z-modal\": {\n \"value\": 1e3,\n \"type\": \"number\",\n \"description\": \"A dialog or lightbox and its scrim.\"\n },\n \"z-toast\": {\n \"value\": 1100,\n \"type\": \"number\",\n \"description\": \"Toasts, which stay readable over a dialog.\"\n },\n \"z-popover\": {\n \"value\": 1200,\n \"type\": \"number\",\n \"description\": \"Tooltips and callouts, which a dialog or a toast can open.\"\n },\n \"z-drag\": {\n \"value\": 1e4,\n \"type\": \"number\",\n \"description\": \"A drag ghost, over everything it can be dragged across.\"\n },\n \"leading-tight\": {\n \"value\": 1,\n \"type\": \"number\",\n \"description\": \"Single-line controls; the box sets the height.\"\n },\n \"leading-snug\": {\n \"value\": 1.2,\n \"type\": \"number\",\n \"description\": \"Headings and two-line labels.\"\n },\n \"leading\": {\n \"value\": 1.4,\n \"type\": \"number\",\n \"description\": \"Body and anything that wraps.\"\n },\n \"backdrop\": {\n \"value\": \"none\",\n \"type\": \"gradient\",\n \"description\": \"Layered backdrop fill for a page or lab root. `none` here; a theme with a signature background sets it.\"\n },\n \"motion-fast\": {\n \"value\": \"120ms\",\n \"type\": \"duration\",\n \"description\": \"Micro-interactions \\u2014 hover, focus, pressed.\"\n },\n \"motion-medium\": {\n \"value\": \"240ms\",\n \"type\": \"duration\",\n \"description\": \"Entrances and exits \\u2014 toasts, popovers, panels.\"\n },\n \"ease-in-cubic\": {\n \"value\": [\n 0.32,\n 0,\n 0.67,\n 0\n ],\n \"type\": \"cubicBezier\"\n },\n \"ease-out-cubic\": {\n \"value\": [\n 0.33,\n 1,\n 0.68,\n 1\n ],\n \"type\": \"cubicBezier\"\n },\n \"ease-in-out-cubic\": {\n \"value\": [\n 0.65,\n 0,\n 0.35,\n 1\n ],\n \"type\": \"cubicBezier\"\n },\n \"ease-out-back\": {\n \"value\": [\n 0.34,\n 1.56,\n 0.64,\n 1\n ],\n \"type\": \"cubicBezier\"\n },\n \"font-ui\": {\n \"value\": [\n \"Oswald\",\n \"Helvetica Neue Condensed\",\n \"Arial Narrow\",\n \"system-ui\",\n \"sans-serif\"\n ],\n \"type\": \"fontFamily\",\n \"description\": \"Condensed UI/display face. The heavier cuts get blocky at any size, so the weight tokens stay in the 200-400 range.\"\n },\n \"font-numeric\": {\n \"value\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"type\": \"fontFamily\",\n \"description\": \"The UI face with equal-width digits, for numbers read down a column or updated in place. Oswald Tabular carries only 0-9 and the figure space (U+2007); every other character falls through to the UI face.\"\n },\n \"font-display\": {\n \"value\": [\n \"Oswald\",\n \"Helvetica Neue Condensed\",\n \"Arial Narrow\",\n \"system-ui\",\n \"sans-serif\"\n ],\n \"type\": \"fontFamily\"\n },\n \"font-body\": {\n \"value\": [\n \"Inter\",\n \"system-ui\",\n \"-apple-system\",\n \"Segoe UI\",\n \"sans-serif\"\n ],\n \"type\": \"fontFamily\"\n },\n \"font-mono\": {\n \"value\": [\n \"ui-monospace\",\n \"SFMono-Regular\",\n \"Menlo\",\n \"Consolas\",\n \"monospace\"\n ],\n \"type\": \"fontFamily\"\n },\n \"font-weight-light\": {\n \"value\": 200,\n \"type\": \"fontWeight\"\n },\n \"font-weight-normal\": {\n \"value\": 300,\n \"type\": \"fontWeight\"\n },\n \"font-weight-medium\": {\n \"value\": 350,\n \"type\": \"fontWeight\"\n },\n \"font-weight-bold\": {\n \"value\": 400,\n \"type\": \"fontWeight\"\n },\n \"space-xs\": {\n \"value\": \"{space-2}\",\n \"type\": \"dimension\",\n \"description\": \"Alias for space-2. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-sm\": {\n \"value\": \"{space-4}\",\n \"type\": \"dimension\",\n \"description\": \"Alias for space-4. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-md\": {\n \"value\": \"{space-6}\",\n \"type\": \"dimension\",\n \"description\": \"Alias for space-6. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-lg\": {\n \"value\": \"{space-8}\",\n \"type\": \"dimension\",\n \"description\": \"Alias for space-8. The t-shirt names name every other rung of the ladder.\"\n }\n },\n \"tints\": {\n \"ramp\": \"swatch\"\n }\n }\n};\nvar BAKED_THEMES = {\n \"weasel\": {\n \"name\": \"weasel\",\n \"extends\": null,\n \"axes\": {\n \"mode\": {\n \"default\": \"dark\",\n \"values\": {\n \"dark\": {\n \"scheme\": \"dark\"\n },\n \"light\": {\n \"scheme\": \"light\"\n }\n }\n },\n \"density\": {\n \"default\": \"comfortable\",\n \"values\": {\n \"compact\": {},\n \"comfortable\": {},\n \"roomy\": {}\n }\n }\n },\n \"tokens\": {\n \"gray-50\": {\n \"type\": \"color\",\n \"value\": \"#f5f5f6\"\n },\n \"gray-100\": {\n \"type\": \"color\",\n \"value\": \"#e6e7e9\"\n },\n \"gray-200\": {\n \"type\": \"color\",\n \"value\": \"#c9cbcf\"\n },\n \"gray-300\": {\n \"type\": \"color\",\n \"value\": \"#9ea1a8\"\n },\n \"gray-400\": {\n \"type\": \"color\",\n \"value\": \"#6f737b\"\n },\n \"gray-500\": {\n \"type\": \"color\",\n \"value\": \"#4d5058\"\n },\n \"gray-600\": {\n \"type\": \"color\",\n \"value\": \"#383b42\"\n },\n \"gray-700\": {\n \"type\": \"color\",\n \"value\": \"#25272c\"\n },\n \"gray-800\": {\n \"type\": \"color\",\n \"value\": \"#181a1e\"\n },\n \"gray-900\": {\n \"type\": \"color\",\n \"value\": \"#0e0f12\"\n },\n \"accent-soft\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#262a66\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#312e81\"\n }\n },\n \"accent-base\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#5b63c9\",\n \"description\": \"Periwinkle. Anchors primary actions on dark surfaces.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#4338ca\",\n \"description\": \"Indigo. Anchors primary actions on light surfaces.\"\n }\n },\n \"accent-strong\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#8c94ee\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#6366f1\"\n }\n },\n \"secondary-soft\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#704e09\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#016458\"\n }\n },\n \"secondary-base\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#dc9d15\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#3ee1cb\"\n }\n },\n \"secondary-strong\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#f1cb8d\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#94e3d5\"\n }\n },\n \"swatch-fuchsia\": {\n \"type\": \"color\",\n \"value\": \"#f641f7\",\n \"description\": \"First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87\\xB0 apart, all ten 32\\xB0). Mode-invariant on purpose \\u2014 a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one.\"\n },\n \"swatch-green\": {\n \"type\": \"color\",\n \"value\": \"#48e628\"\n },\n \"swatch-sky\": {\n \"type\": \"color\",\n \"value\": \"#36bff2\"\n },\n \"swatch-amber\": {\n \"type\": \"color\",\n \"value\": \"#e69628\"\n },\n \"swatch-teal\": {\n \"type\": \"color\",\n \"value\": \"#3ee1cb\"\n },\n \"swatch-red\": {\n \"type\": \"color\",\n \"value\": \"#f75034\"\n },\n \"swatch-blue\": {\n \"type\": \"color\",\n \"value\": \"#407ef7\"\n },\n \"swatch-citron\": {\n \"type\": \"color\",\n \"value\": \"#d5d23a\"\n },\n \"swatch-rose\": {\n \"type\": \"color\",\n \"value\": \"#fa4590\"\n },\n \"swatch-violet\": {\n \"type\": \"color\",\n \"value\": \"#955cf9\"\n },\n \"font-size-2xs\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"9px\",\n \"description\": \"Shortcut keys and index badges. The floor for chrome text.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"10px\",\n \"description\": \"Shortcut keys and index badges. The floor for chrome text.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"12px\",\n \"description\": \"Shortcut keys and index badges. The floor for chrome text.\"\n }\n },\n \"font-size-xs\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"10px\",\n \"description\": \"Tool-button labels under an icon.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"12px\",\n \"description\": \"Tool-button labels under an icon.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"14px\",\n \"description\": \"Tool-button labels under an icon.\"\n }\n },\n \"font-size-sm\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"11px\",\n \"description\": \"Chrome labels, status readouts, section headings.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"13px\",\n \"description\": \"Chrome labels, status readouts, section headings.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"15px\",\n \"description\": \"Chrome labels, status readouts, section headings.\"\n }\n },\n \"font-size-md\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"13px\",\n \"description\": \"Controls and body text.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"15px\",\n \"description\": \"Controls and body text.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"18px\",\n \"description\": \"Controls and body text.\"\n }\n },\n \"font-size-lg\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"16px\",\n \"description\": \"Panel and dialog titles.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"18px\",\n \"description\": \"Panel and dialog titles.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"22px\",\n \"description\": \"Panel and dialog titles.\"\n }\n },\n \"font-size-xl\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"20px\",\n \"description\": \"The largest chrome text \\u2014 a lab or app title.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"23px\",\n \"description\": \"The largest chrome text \\u2014 a lab or app title.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"28px\",\n \"description\": \"The largest chrome text \\u2014 a lab or app title.\"\n }\n },\n \"space-1\": {\n \"type\": \"dimension\",\n \"value\": \"2px\"\n },\n \"space-2\": {\n \"type\": \"dimension\",\n \"value\": \"4px\"\n },\n \"space-3\": {\n \"type\": \"dimension\",\n \"value\": \"6px\"\n },\n \"space-4\": {\n \"type\": \"dimension\",\n \"value\": \"8px\"\n },\n \"space-5\": {\n \"type\": \"dimension\",\n \"value\": \"10px\"\n },\n \"space-6\": {\n \"type\": \"dimension\",\n \"value\": \"12px\"\n },\n \"space-7\": {\n \"type\": \"dimension\",\n \"value\": \"14px\"\n },\n \"space-8\": {\n \"type\": \"dimension\",\n \"value\": \"16px\"\n },\n \"surface\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-800}\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-50}\"\n }\n },\n \"surface-raised\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-700}\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-100}\"\n }\n },\n \"surface-popover\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{surface-raised}\",\n \"description\": \"Background of a dropdown, menu or other popover list. Follows surface-raised unless a theme needs floating lists to read differently from the panels beneath them.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{surface-raised}\"\n }\n },\n \"surface-sunken\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-900}\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-200}\"\n }\n },\n \"fg\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-100}\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-900}\"\n }\n },\n \"fg-muted\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.7)\",\n \"description\": \"Secondary text: the text color in effect where it is used, at reduced alpha, so it steps down from whatever text it sits beside on any surface. The alpha is absolute, so muted text nested in muted text stays one step down. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.78)\",\n \"description\": \"Secondary text: the text color in effect where it is used, at reduced alpha, so it steps down from whatever text it sits beside on any surface. The alpha is absolute, so muted text nested in muted text stays one step down. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n }\n },\n \"fg-subtle\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.54)\",\n \"description\": \"Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.64)\",\n \"description\": \"Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes.\"\n }\n },\n \"fg-muted-on-accent\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.98)\",\n \"description\": \"Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.78)\",\n \"description\": \"Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show.\"\n }\n },\n \"fg-subtle-on-accent\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.96)\",\n \"description\": \"Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"rgb(from currentColor r g b / 0.73)\",\n \"description\": \"Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes.\"\n }\n },\n \"border\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-700}\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-200}\"\n }\n },\n \"border-strong\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-400}\",\n \"description\": \"The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-500}\"\n }\n },\n \"accent-fg\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{accent-strong}\",\n \"description\": \"Accent for foreground use \\u2014 text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{accent-base}\",\n \"description\": \"Flips to the deep base in light mode, where it is the legible one.\"\n }\n },\n \"secondary-fg\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{secondary-base}\",\n \"description\": \"Secondary accent for foreground use: a second voice beside the accent, such as a value the panel derived rather than one the user set. Picked from the ramp so it clears 4.5:1 on the surface in both modes.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{secondary-soft}\",\n \"description\": \"Secondary accent for foreground use: a second voice beside the accent, such as a value the panel derived rather than one the user set. Picked from the ramp so it clears 4.5:1 on the surface in both modes.\"\n }\n },\n \"fg-inverse\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{gray-900}\",\n \"description\": \"Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"{gray-50}\",\n \"description\": \"Flips with the mode \\u2014 see the dark layer.\"\n }\n },\n \"shadow\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"rgba(0, 0, 0, 0.6)\",\n \"description\": \"Elevation. Always darker than any surface \\u2014 never derived from fg, which is near-white on dark.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"rgba(0, 0, 0, 0.18)\"\n }\n },\n \"scrim\": {\n \"type\": \"color\",\n \"value\": \"rgba(0, 0, 0, 0.4)\",\n \"description\": \"What a modal dims the page behind it with.\"\n },\n \"code-keyword\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-violet}\",\n \"description\": \"Keywords in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#6d28d9\"\n }\n },\n \"code-string\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-green}\",\n \"description\": \"String literals in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#15803d\"\n }\n },\n \"code-number\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-amber}\",\n \"description\": \"Numbers in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#b45309\"\n }\n },\n \"code-constant\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-teal}\",\n \"description\": \"true, false, null and undefined in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#0f766e\"\n }\n },\n \"code-property\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-sky}\",\n \"description\": \"Property keys and attribute names in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#0369a1\"\n }\n },\n \"code-name\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"{swatch-rose}\",\n \"description\": \"Functions, classes and other names in highlighted code.\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#be123c\"\n }\n },\n \"panel-surface\": {\n \"type\": \"color\",\n \"value\": \"{surface-raised}\",\n \"description\": \"Fill of a PropertyPanel.\"\n },\n \"panel-border-color\": {\n \"type\": \"color\",\n \"value\": \"{border}\"\n },\n \"panel-border-style\": {\n \"type\": \"string\",\n \"value\": \"solid\"\n },\n \"panel-border-width\": {\n \"type\": \"dimension\",\n \"value\": \"1px\"\n },\n \"panel-radius\": {\n \"type\": \"dimension\",\n \"value\": \"{radius-lg}\"\n },\n \"panel-pad\": {\n \"type\": \"dimension\",\n \"value\": \"14px 16px\",\n \"description\": \"A panel\\u2019s padding when no density sets one.\"\n },\n \"panel-blur\": {\n \"type\": \"dimension\",\n \"value\": \"{glass-blur}\"\n },\n \"panel-tint-mix\": {\n \"type\": \"number\",\n \"value\": \"14%\",\n \"description\": \"How much of a panel\\u2019s tint mixes into its surface.\"\n },\n \"panel-title-font\": {\n \"type\": \"fontFamily\",\n \"value\": \"{font-display}\"\n },\n \"panel-title-weight\": {\n \"type\": \"fontWeight\",\n \"value\": \"{font-weight-light}\"\n },\n \"panel-title-size\": {\n \"type\": \"dimension\",\n \"value\": \"{font-size-lg}\"\n },\n \"panel-title-case\": {\n \"type\": \"string\",\n \"value\": \"none\"\n },\n \"panel-title-tracking\": {\n \"type\": \"dimension\",\n \"value\": \"0.01em\"\n },\n \"panel-title-color\": {\n \"type\": \"color\",\n \"value\": \"{fg}\"\n },\n \"panel-title-inset\": {\n \"type\": \"dimension\",\n \"value\": \"0\"\n },\n \"stance-clarify-border-width\": {\n \"type\": \"dimension\",\n \"value\": \"0\"\n },\n \"stance-clarify-radius\": {\n \"type\": \"dimension\",\n \"value\": \"8px\"\n },\n \"stance-clarify-tint-mix\": {\n \"type\": \"number\",\n \"value\": \"22%\"\n },\n \"stance-clarify-nested-radius\": {\n \"type\": \"dimension\",\n \"value\": \"6px\"\n },\n \"stance-clarify-nested-surface\": {\n \"type\": \"color\",\n \"value\": \"{surface}\",\n \"description\": \"A clarify panel inside another sits back into it.\"\n },\n \"stance-aside-surface\": {\n \"type\": \"color\",\n \"value\": \"transparent\"\n },\n \"stance-aside-border-color\": {\n \"type\": \"color\",\n \"value\": \"{line-subtle}\"\n },\n \"stance-aside-blur\": {\n \"type\": \"dimension\",\n \"value\": \"0px\"\n },\n \"stance-aside-title-color\": {\n \"type\": \"color\",\n \"value\": \"{fg-subtle}\"\n },\n \"stance-advanced-title-color\": {\n \"type\": \"color\",\n \"value\": \"{fg-subtle}\"\n },\n \"stance-debug-border-style\": {\n \"type\": \"string\",\n \"value\": \"dashed\"\n },\n \"stance-debug-title-font\": {\n \"type\": \"fontFamily\",\n \"value\": \"{font-mono}\"\n },\n \"stance-debug-title-case\": {\n \"type\": \"string\",\n \"value\": \"none\"\n },\n \"stance-preview-pad\": {\n \"type\": \"dimension\",\n \"value\": \"0\"\n },\n \"stance-preview-title-size\": {\n \"type\": \"dimension\",\n \"value\": \"{font-size-xs}\"\n },\n \"stance-preview-title-case\": {\n \"type\": \"string\",\n \"value\": \"none\"\n },\n \"stance-preview-title-inset\": {\n \"type\": \"dimension\",\n \"value\": \"6px 10px 0\"\n },\n \"danger-base\": {\n \"type\": \"color\",\n \"value\": \"#d94a3f\"\n },\n \"warning-base\": {\n \"type\": \"color\",\n \"value\": \"#d99a3f\"\n },\n \"success-base\": {\n \"type\": \"color\",\n \"value\": \"#2ec27e\"\n },\n \"info-base\": {\n \"type\": \"color\",\n \"value\": \"#7ab8d4\"\n },\n \"fg-on-accent\": {\n \"type\": \"color\",\n \"value\": \"{gray-50}\"\n },\n \"line-subtle\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.1,\n \"description\": \"Barely-there separators (table rows).\"\n },\n \"line\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.2,\n \"description\": \"Primary gridlines on sunken surfaces.\"\n },\n \"line-strong\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.4,\n \"description\": \"Axes and emphasized dividers.\"\n },\n \"border-on-sunken\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.12,\n \"description\": \"The edge of a box filled with surface-sunken. Stepped from the text color, because light mode's border is the sunken fill's own gray.\"\n },\n \"curve-color\": {\n \"type\": \"color\",\n \"value\": \"{accent-strong}\",\n \"description\": \"Drawn data curves. Routes through the bright accent because accent-base is too dim on sunken surfaces.\"\n },\n \"accent\": {\n \"type\": \"color\",\n \"value\": \"{accent-base}\"\n },\n \"accent-hover\": {\n \"type\": \"color\",\n \"value\": \"{accent-strong}\"\n },\n \"secondary\": {\n \"type\": \"color\",\n \"value\": \"{secondary-base}\",\n \"description\": \"Honey amber in dark mode and teal in light, where a darkened amber reads as brown. A fill; use secondary-fg for text.\"\n },\n \"danger\": {\n \"type\": \"color\",\n \"value\": \"{danger-base}\"\n },\n \"warning\": {\n \"type\": \"color\",\n \"value\": \"{warning-base}\"\n },\n \"success\": {\n \"type\": \"color\",\n \"value\": \"{success-base}\"\n },\n \"info\": {\n \"type\": \"color\",\n \"value\": \"{info-base}\"\n },\n \"focus-ring\": {\n \"type\": \"color\",\n \"value\": \"{accent-strong}\"\n },\n \"glass-tint\": {\n \"type\": \"color\",\n \"value\": \"{accent}\",\n \"description\": \"Frosted-glass tint. Components compose it as color-mix(in srgb, var(--wzl-glass-tint) 78%, transparent) with backdrop-filter: blur(3px).\"\n },\n \"surface-hover\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.1,\n \"description\": \"Hover wash over a raised surface. Same formula as line-subtle, different job \\u2014 do not collapse them.\"\n },\n \"surface-pressed\": {\n \"type\": \"color\",\n \"value\": \"{fg}\",\n \"alpha\": 0.18,\n \"description\": \"Pressed wash over a raised surface.\"\n },\n \"radius-sm\": {\n \"type\": \"dimension\",\n \"value\": \"3px\"\n },\n \"radius-md\": {\n \"type\": \"dimension\",\n \"value\": \"5px\"\n },\n \"radius-lg\": {\n \"type\": \"dimension\",\n \"value\": \"14px\"\n },\n \"radius-pill\": {\n \"type\": \"dimension\",\n \"value\": \"999px\",\n \"description\": \"Fully rounded ends \\u2014 segmented controls, progress tracks.\"\n },\n \"border-w\": {\n \"type\": \"dimension\",\n \"value\": \"1px\"\n },\n \"line-width\": {\n \"type\": \"dimension\",\n \"value\": \"2px\",\n \"description\": \"Structural lines \\u2014 gridlines, dividers, axes.\"\n },\n \"curve-width\": {\n \"type\": \"dimension\",\n \"value\": \"3px\",\n \"description\": \"Drawn data curves. Heavier than structural lines so data reads as primary content.\"\n },\n \"tb-height\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"28px\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"32px\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"38px\",\n \"description\": \"Height of a horizontal toolbar strip (ButtonBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges.\"\n }\n },\n \"control-h-xs\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"18px\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"22px\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"26px\",\n \"description\": \"Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm.\"\n }\n },\n \"control-h-sm\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"20px\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"24px\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"28px\",\n \"description\": \"Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control.\"\n }\n },\n \"control-h\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"24px\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"28px\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"34px\",\n \"description\": \"Height of an interactive control \\u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in.\"\n }\n },\n \"icon-button-size\": {\n \"by\": \"density\",\n \"compact\": {\n \"type\": \"dimension\",\n \"value\": \"22px\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n },\n \"comfortable\": {\n \"type\": \"dimension\",\n \"value\": \"26px\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n },\n \"roomy\": {\n \"type\": \"dimension\",\n \"value\": \"32px\",\n \"description\": \"Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes.\"\n }\n },\n \"slider-track-h\": {\n \"type\": \"dimension\",\n \"value\": \"4px\",\n \"description\": \"Height of a linear range track. The kit's single-thumb ranges all wear this; Slider's default 24px canvas track does not.\"\n },\n \"slider-thumb-size\": {\n \"type\": \"dimension\",\n \"value\": \"8px\",\n \"description\": \"Diameter of a linear range thumb.\"\n },\n \"slider-track-slop\": {\n \"type\": \"dimension\",\n \"value\": \"6px\",\n \"description\": \"How far past a range track's edge a press still lands on it. Invisible, and overlaps whatever sits beside the track rather than taking layout space.\"\n },\n \"slider-thumb-slop\": {\n \"type\": \"dimension\",\n \"value\": \"6px\",\n \"description\": \"How far past a range thumb's edge a press still grabs the thumb rather than landing on the track. Sits over the track's own slop.\"\n },\n \"slider-track-mix\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"dimension\",\n \"value\": \"40%\",\n \"description\": \"Proportion of accent-fg in a range track, as a color-mix percentage \\u2014 not a color. Mixed into a real property, never into another custom property. Higher in dark mode, where a light tint of the accent sinks into the surface.\"\n },\n \"light\": {\n \"type\": \"dimension\",\n \"value\": \"18%\",\n \"description\": \"Proportion of accent-fg in a range track, as a color-mix percentage \\u2014 not a color.\"\n }\n },\n \"slider-thumb-mix\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"dimension\",\n \"value\": \"100%\",\n \"description\": \"Proportion of accent-fg in a range thumb, as a color-mix percentage \\u2014 not a color. Solid in dark mode.\"\n },\n \"light\": {\n \"type\": \"dimension\",\n \"value\": \"70%\",\n \"description\": \"Proportion of accent-fg in a range thumb, as a color-mix percentage \\u2014 not a color.\"\n }\n },\n \"handle-size\": {\n \"type\": \"dimension\",\n \"value\": \"9px\",\n \"description\": \"Edge of a draggable handle on a plot or timeline \\u2014 a keyframe diamond, a timeline key, an event mark. The default rank; -sm and -lg are the two deliberate departures from it.\"\n },\n \"handle-size-sm\": {\n \"type\": \"dimension\",\n \"value\": \"7px\",\n \"description\": \"A handle that is drawn but not draggable \\u2014 a locked or pinned point. Smaller so it reads as inert next to a live one.\"\n },\n \"handle-size-lg\": {\n \"type\": \"dimension\",\n \"value\": \"10px\",\n \"description\": \"A handle that is a category of its own rather than one of a row \\u2014 a curve's endpoint. Larger so it separates from the handles it sits in line with.\"\n },\n \"handle-dot-size\": {\n \"type\": \"dimension\",\n \"value\": \"8px\",\n \"description\": \"Diameter of a round handle \\u2014 a plain anchor on a curve. Its own rank beside handle-size, because a circle and a diamond of one edge do not read as one size.\"\n },\n \"handle-dot-size-sm\": {\n \"type\": \"dimension\",\n \"value\": \"7px\",\n \"description\": \"A round handle that belongs to another point \\u2014 a bezier control handle at the end of its stem.\"\n },\n \"checker-a\": {\n \"type\": \"color\",\n \"value\": \"{border}\",\n \"description\": \"One square of the transparency checker drawn under a paint that is empty, mixed or translucent. weasel-ui builds the checker layer once, in components/checker.module.css: compose its `checker` class and paint with var(--wzl-checker-layer).\"\n },\n \"checker-b\": {\n \"type\": \"color\",\n \"value\": \"{surface}\",\n \"description\": \"The other square of the transparency checker.\"\n },\n \"checker-size\": {\n \"type\": \"dimension\",\n \"value\": \"8px\",\n \"description\": \"Edge of one repeat of the transparency checker: two squares by two.\"\n },\n \"workspace-surface\": {\n \"by\": \"mode\",\n \"dark\": {\n \"type\": \"color\",\n \"value\": \"#272727\",\n \"description\": \"Ground of a canvas app's workspace \\u2014 the area around the document page: surface-raised with its tint taken out (its OKLCH chroma set to 0).\"\n },\n \"light\": {\n \"type\": \"color\",\n \"value\": \"#e7e7e7\"\n }\n },\n \"workspace-line\": {\n \"type\": \"color\",\n \"value\": \"{line-subtle}\",\n \"description\": \"Marks drawn over workspace-surface, such as its diagonal stripes, so the page reads as the thing on top.\"\n },\n \"workspace\": {\n \"type\": \"gradient\",\n \"value\": \"repeating-linear-gradient(45deg, transparent 0 8px, var(--wzl-workspace-line) 8px 16px) var(--wzl-workspace-surface)\",\n \"description\": \"The workspace as one background layer: workspace-surface struck with wide diagonal bands of workspace-line. Use it as an element's whole background.\"\n },\n \"field-pad-x\": {\n \"type\": \"dimension\",\n \"value\": \"8px\",\n \"description\": \"Horizontal padding inside a boxed field. Pairs with --wzl-field-h, which is a container override and has no :root default.\"\n },\n \"gloss\": {\n \"type\": \"number\",\n \"value\": 0,\n \"description\": \"How much glass a boxed button and a selected segment wear, from 0 to 1: at 0 a flat fill, at 1 the full ramp, specular gloss, rim, and drop shadow.\"\n },\n \"glass-blur\": {\n \"type\": \"dimension\",\n \"value\": \"3px\",\n \"description\": \"Backdrop blur radius for frosted surfaces. Pairs with glass-tint.\"\n },\n \"font-size\": {\n \"type\": \"dimension\",\n \"value\": \"{font-size-md}\",\n \"description\": \"Controls and body text.\"\n },\n \"tracking-none\": {\n \"type\": \"dimension\",\n \"value\": \"0\"\n },\n \"tracking-wide\": {\n \"type\": \"dimension\",\n \"value\": \"0.06em\",\n \"description\": \"Uppercase section headings.\"\n },\n \"tracking-wider\": {\n \"type\": \"dimension\",\n \"value\": \"0.08em\",\n \"description\": \"Uppercase at 11px and below.\"\n },\n \"z-toolbar\": {\n \"type\": \"number\",\n \"value\": 10,\n \"description\": \"Chrome pinned over a workspace.\"\n },\n \"z-overlay\": {\n \"type\": \"number\",\n \"value\": 20,\n \"description\": \"A panel or readout floating over the chrome.\"\n },\n \"z-hud\": {\n \"type\": \"number\",\n \"value\": 900,\n \"description\": \"Debug readouts, over the app and under anything modal.\"\n },\n \"z-modal\": {\n \"type\": \"number\",\n \"value\": 1e3,\n \"description\": \"A dialog or lightbox and its scrim.\"\n },\n \"z-toast\": {\n \"type\": \"number\",\n \"value\": 1100,\n \"description\": \"Toasts, which stay readable over a dialog.\"\n },\n \"z-popover\": {\n \"type\": \"number\",\n \"value\": 1200,\n \"description\": \"Tooltips and callouts, which a dialog or a toast can open.\"\n },\n \"z-drag\": {\n \"type\": \"number\",\n \"value\": 1e4,\n \"description\": \"A drag ghost, over everything it can be dragged across.\"\n },\n \"leading-tight\": {\n \"type\": \"number\",\n \"value\": 1,\n \"description\": \"Single-line controls; the box sets the height.\"\n },\n \"leading-snug\": {\n \"type\": \"number\",\n \"value\": 1.2,\n \"description\": \"Headings and two-line labels.\"\n },\n \"leading\": {\n \"type\": \"number\",\n \"value\": 1.4,\n \"description\": \"Body and anything that wraps.\"\n },\n \"backdrop\": {\n \"type\": \"gradient\",\n \"value\": \"none\",\n \"description\": \"Layered backdrop fill for a page or lab root. `none` here; a theme with a signature background sets it.\"\n },\n \"motion-fast\": {\n \"type\": \"duration\",\n \"value\": \"120ms\",\n \"description\": \"Micro-interactions \\u2014 hover, focus, pressed.\"\n },\n \"motion-medium\": {\n \"type\": \"duration\",\n \"value\": \"240ms\",\n \"description\": \"Entrances and exits \\u2014 toasts, popovers, panels.\"\n },\n \"ease-in-cubic\": {\n \"type\": \"cubicBezier\",\n \"value\": [\n 0.32,\n 0,\n 0.67,\n 0\n ]\n },\n \"ease-out-cubic\": {\n \"type\": \"cubicBezier\",\n \"value\": [\n 0.33,\n 1,\n 0.68,\n 1\n ]\n },\n \"ease-in-out-cubic\": {\n \"type\": \"cubicBezier\",\n \"value\": [\n 0.65,\n 0,\n 0.35,\n 1\n ]\n },\n \"ease-out-back\": {\n \"type\": \"cubicBezier\",\n \"value\": [\n 0.34,\n 1.56,\n 0.64,\n 1\n ]\n },\n \"font-ui\": {\n \"type\": \"fontFamily\",\n \"value\": [\n \"Oswald\",\n \"Helvetica Neue Condensed\",\n \"Arial Narrow\",\n \"system-ui\",\n \"sans-serif\"\n ],\n \"description\": \"Condensed UI/display face. The heavier cuts get blocky at any size, so the weight tokens stay in the 200-400 range.\"\n },\n \"font-numeric\": {\n \"type\": \"fontFamily\",\n \"value\": \"'Oswald Tabular', var(--wzl-font-ui)\",\n \"description\": \"The UI face with equal-width digits, for numbers read down a column or updated in place. Oswald Tabular carries only 0-9 and the figure space (U+2007); every other character falls through to the UI face.\"\n },\n \"font-display\": {\n \"type\": \"fontFamily\",\n \"value\": [\n \"Oswald\",\n \"Helvetica Neue Condensed\",\n \"Arial Narrow\",\n \"system-ui\",\n \"sans-serif\"\n ]\n },\n \"font-body\": {\n \"type\": \"fontFamily\",\n \"value\": [\n \"Inter\",\n \"system-ui\",\n \"-apple-system\",\n \"Segoe UI\",\n \"sans-serif\"\n ]\n },\n \"font-mono\": {\n \"type\": \"fontFamily\",\n \"value\": [\n \"ui-monospace\",\n \"SFMono-Regular\",\n \"Menlo\",\n \"Consolas\",\n \"monospace\"\n ]\n },\n \"font-weight-light\": {\n \"type\": \"fontWeight\",\n \"value\": 200\n },\n \"font-weight-normal\": {\n \"type\": \"fontWeight\",\n \"value\": 300\n },\n \"font-weight-medium\": {\n \"type\": \"fontWeight\",\n \"value\": 350\n },\n \"font-weight-bold\": {\n \"type\": \"fontWeight\",\n \"value\": 400\n },\n \"space-xs\": {\n \"type\": \"dimension\",\n \"value\": \"{space-2}\",\n \"description\": \"Alias for space-2. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-sm\": {\n \"type\": \"dimension\",\n \"value\": \"{space-4}\",\n \"description\": \"Alias for space-4. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-md\": {\n \"type\": \"dimension\",\n \"value\": \"{space-6}\",\n \"description\": \"Alias for space-6. The t-shirt names name every other rung of the ladder.\"\n },\n \"space-lg\": {\n \"type\": \"dimension\",\n \"value\": \"{space-8}\",\n \"description\": \"Alias for space-8. The t-shirt names name every other rung of the ladder.\"\n }\n },\n \"ramps\": {\n \"gray\": [\n \"50\",\n \"100\",\n \"200\",\n \"300\",\n \"400\",\n \"500\",\n \"600\",\n \"700\",\n \"800\",\n \"900\"\n ],\n \"accent\": [\n \"soft\",\n \"base\",\n \"strong\"\n ],\n \"secondary\": [\n \"soft\",\n \"base\",\n \"strong\"\n ],\n \"swatch\": [\n \"fuchsia\",\n \"green\",\n \"sky\",\n \"amber\",\n \"teal\",\n \"red\",\n \"blue\",\n \"citron\",\n \"rose\",\n \"violet\"\n ]\n },\n \"tints\": {\n \"ramp\": \"swatch\"\n }\n }\n};\nvar isPinObject = (v) => isPlainObject(v) && \"value\" in v;\nfunction toRaw(v) {\n if (isByAxis(v)) {\n const out = { by: v.by };\n for (const [k, x] of Object.entries(v)) if (k !== \"by\") out[k] = toRaw(x);\n return out;\n }\n const obj = isPinObject(v) ? v : { value: v };\n const raw = { type: obj.type ?? \"unknown\", value: obj.value, alpha: obj.alpha, description: obj.description };\n return obj.scope === void 0 ? raw : { ...raw, scope: obj.scope };\n}\nvar weaselTheme = {\n name: \"weasel\",\n extends: null,\n axes: BAKED_THEMES.weasel.axes,\n tokens: BAKED_THEMES.weasel.tokens,\n ramps: BAKED_THEMES.weasel.ramps,\n tints: BAKED_THEMES.weasel.tints\n};\nfunction defineTheme(input) {\n if (typeof input.extends === \"string\") {\n throw new Error(\n `Theme \"${input.name}\" extends \"${input.extends}\" by name; defineTheme needs the Theme itself (e.g. weaselTheme), not a definition's name.`\n );\n }\n const rules = [\"seeds\", \"ramps\", \"scales\", \"semantics\"].filter((k) => Object.keys(input[k] ?? {}).length > 0);\n if (rules.length > 0) {\n throw new Error(\n `Theme \"${input.name}\" has ${rules.join(\", \")}, which need deriving. Bake it with \\`bake\\` from @weasel-js/theme/engine.`\n );\n }\n const tokens = {};\n for (const [name, v] of Object.entries({ ...input.components, ...input.pins })) tokens[name] = toRaw(v);\n return {\n name: input.name,\n extends: input.extends === void 0 ? weaselTheme : input.extends,\n axes: input.axes ?? {},\n tokens,\n ...input.tints !== void 0 ? { tints: input.tints } : {}\n };\n}\n\nexport { BAKED_THEMES, THEMES, THEME_SOURCES, defineTheme, weaselTheme };\n//# sourceMappingURL=chunk-X2KI4SSJ.js.map\n//# sourceMappingURL=chunk-X2KI4SSJ.js.map","import { generate, DEFAULT_CONSTRAINTS } from './chunk-44CG54ZK.js';\nimport { readCssNumber } from './chunk-M3R5MV7Q.js';\nimport { themeAxes, resolveTheme, atAlpha, withAlpha, themeChain } from './chunk-OP5VYXEZ.js';\nimport { weaselTheme } from './chunk-X2KI4SSJ.js';\nimport { fullSelection } from './chunk-P5F3GZV6.js';\nimport { resolvePaletteColor, colorLiteralToCss, parseColor, interpolateSrgb, rgbaToHex, cssColorLiteral } from '@weasel-js/paint';\n\nvar heaviest = (members) => members.reduce((most, m) => m.weight > most.weight ? m : most).css;\nfunction blendNumbers(members) {\n let sum = 0;\n let total = 0;\n let unit;\n for (const { css, weight } of members) {\n const read = readCssNumber(css);\n if (!read || unit !== void 0 && read.unit !== unit) return void 0;\n unit = read.unit;\n sum += read.value * weight;\n total += weight;\n }\n return `${Number((sum / total).toFixed(4))}${unit}`;\n}\nfunction blendColors(members) {\n let mixed;\n let total = 0;\n for (const { css, weight } of members) {\n let next;\n try {\n next = parseColor(css);\n } catch {\n return void 0;\n }\n total += weight;\n if (!mixed) {\n mixed = [...next];\n continue;\n }\n const t = weight / total;\n const [r, g, b] = interpolateSrgb([mixed[0], mixed[1], mixed[2]], [next[0], next[1], next[2]], t, \"oklch\");\n mixed = [r, g, b, mixed[3] + (next[3] - mixed[3]) * t];\n }\n return rgbaToHex(mixed);\n}\nfunction blend(members) {\n if (members.every((m) => m.css === members[0].css)) return members[0].css;\n return blendNumbers(members) ?? blendColors(members) ?? heaviest(members);\n}\nfunction blendTheme(theme, weights, selection = {}) {\n const axes = themeAxes(theme);\n let at = [{ selection: fullSelection(axes, selection), weight: 1 }];\n for (const [axis, shares] of Object.entries(weights)) {\n if (!Object.hasOwn(axes, axis)) continue;\n const given = Object.entries(shares).filter(([value, share]) => share > 0 && Object.hasOwn(axes[axis].values, value));\n if (given.length === 0) continue;\n at = at.flatMap((one) => given.map(([value, share]) => ({ selection: { ...one.selection, [axis]: value }, weight: one.weight * share })));\n }\n const resolved = at.map((one) => ({ tokens: resolveTheme(theme, one.selection), weight: one.weight }));\n if (resolved.length === 1) return resolved[0].tokens;\n const out = {};\n const names = new Set(resolved.flatMap((one) => Object.keys(one.tokens)));\n for (const name of names) {\n out[name] = blend(resolved.filter((one) => one.tokens[name] !== void 0).map((one) => ({ css: one.tokens[name], weight: one.weight })));\n }\n return out;\n}\n\n// src/themeSheet.ts\nvar STYLE_ID = \"wzl-themes\";\nvar sheets = /* @__PURE__ */ new WeakMap();\nfunction styleRootOf(el) {\n const root = el.getRootNode();\n return root instanceof (el.ownerDocument.defaultView?.ShadowRoot ?? ShadowRoot) ? root : el.ownerDocument;\n}\nvar documentOf = (root) => \"host\" in root ? root.ownerDocument : root;\nvar only = (id) => id === 0 ? \"\" : `:where([data-wzl-variant='${id}'])`;\nfunction write(root, held) {\n const css = [...held.rules].flatMap(([selector, variants]) => (\n // The bare rule first: it matches a variant's elements too, and the variant's has to win the tie.\n [...variants].sort((a, b) => a.id - b.id).map((v) => `${selector}${only(v.id)} { ${v.body} }`)\n )).join(\"\\n\");\n const win = documentOf(root).defaultView;\n const Sheet = win?.CSSStyleSheet;\n if (Sheet && \"replaceSync\" in Sheet.prototype && Array.isArray(root.adoptedStyleSheets)) {\n if (!held.sheet) {\n held.sheet = new Sheet();\n root.adoptedStyleSheets = [...root.adoptedStyleSheets, held.sheet];\n }\n held.sheet.replaceSync(css);\n return;\n }\n if (!held.styleEl) {\n held.styleEl = documentOf(root).createElement(\"style\");\n held.styleEl.id = STYLE_ID;\n (\"host\" in root ? root : root.head).appendChild(held.styleEl);\n }\n held.styleEl.textContent = css;\n}\nfunction holdRule(root, selector, body) {\n let held = sheets.get(root);\n if (!held) sheets.set(root, held = { rules: /* @__PURE__ */ new Map(), sheet: null, styleEl: null });\n const variants = held.rules.get(selector) ?? [];\n let variant = variants.find((v) => v.body === body);\n if (variant) {\n variant.holds++;\n } else {\n let id = 0;\n while (variants.some((v) => v.id === id)) id++;\n variant = { id, body, holds: 1 };\n held.rules.set(selector, [...variants, variant]);\n write(root, held);\n }\n const mine = variant;\n const sheet = held;\n let released = false;\n return {\n variant: mine.id,\n release: () => {\n if (released) return;\n released = true;\n if (--mine.holds > 0) return;\n const left = (sheet.rules.get(selector) ?? []).filter((v) => v !== mine);\n if (left.length > 0) sheet.rules.set(selector, left);\n else sheet.rules.delete(selector);\n write(root, sheet);\n }\n };\n}\n\n// src/applyTheme.ts\nvar holds = /* @__PURE__ */ new WeakMap();\nfunction applyTheme(el, theme, selection = {}, options = {}) {\n if (typeof document === \"undefined\") return () => {\n };\n const axes = themeAxes(theme);\n const sel = fullSelection(axes, selection);\n const body = Object.entries(options.weights ? blendTheme(theme, options.weights, sel) : resolveTheme(theme, sel)).map(([name, value]) => `${name}: ${value};`).join(\" \");\n const names = Object.keys(axes);\n const selector = `[data-wzl-theme='${theme.name}']${names.map((a) => `[data-wzl-${a}='${sel[a]}']`).join(\"\")}`;\n const { variant, release: releaseRule } = holdRule(styleRootOf(el), selector, body);\n holds.get(el)?.();\n el.setAttribute(\"data-wzl-theme\", theme.name);\n for (const a of names) el.setAttribute(`data-wzl-${a}`, sel[a]);\n if (variant === 0) el.removeAttribute(\"data-wzl-variant\");\n else el.setAttribute(\"data-wzl-variant\", String(variant));\n const letGo = () => {\n holds.delete(el);\n releaseRule();\n };\n holds.set(el, letGo);\n return () => {\n if (holds.get(el) !== letGo) return;\n letGo();\n for (const a of [\"theme\", \"variant\", ...names]) el.removeAttribute(`data-wzl-${a}`);\n };\n}\n\n// src/currentColor.ts\nvar NUMBER = String.raw`(\\d*\\.?\\d+)(%?)`;\nvar RELATIVE = new RegExp(String.raw`^rgb\\(\\s*from\\s+currentcolor\\s+r\\s+g\\s+b\\s*/\\s*${NUMBER}\\s*\\)$`, \"i\");\nvar MIX = new RegExp(String.raw`^color-mix\\(\\s*in\\s+[\\w-]+\\s*,\\s*currentcolor\\s+${NUMBER}\\s*,\\s*transparent\\s*\\)$`, \"i\");\nvar fraction = (n, pct) => Number(n) / (pct ? 100 : 1);\nfunction resolveCurrentColor(value, current) {\n const v = value.trim();\n if (!/currentcolor/i.test(v)) return value;\n if (/^currentcolor$/i.test(v)) return current;\n const rel = RELATIVE.exec(v);\n if (rel) return atAlpha(current, fraction(rel[1], rel[2]));\n const mix = MIX.exec(v);\n if (mix && mix[2] === \"%\") return withAlpha(current, fraction(mix[1], mix[2]));\n throw new Error(`resolveCurrentColor: cannot flatten \"${value}\"`);\n}\n\n// src/colorMode.ts\nfunction isColorModePreference(v) {\n return v === \"auto\" || v === \"light\" || v === \"dark\";\n}\n\n// src/colorListItems.ts\nvar wrap = (i, n) => (Math.trunc(i) % n + n) % n;\nvar generated = /* @__PURE__ */ new Map();\nfunction generatedColors({ generate: g }) {\n const key = JSON.stringify([g.count, g.gates ?? {}]);\n let colors = generated.get(key);\n if (!colors) {\n const palette = generate({ ...DEFAULT_CONSTRAINTS, ...g.gates, count: g.count, anchors: [] });\n colors = palette.swatches.map((s) => s.hex.toLowerCase());\n generated.set(key, colors);\n }\n return colors;\n}\nfunction findRampSteps(theme, ramp) {\n for (const t of themeChain(theme).reverse()) {\n const steps = t.ramps?.[ramp];\n if (steps) return steps;\n }\n return void 0;\n}\nfunction rampSteps(theme, ramp) {\n const steps = findRampSteps(theme, ramp);\n if (!steps) throw new Error(`Theme \"${theme.name}\" has no ramp \"${ramp}\"`);\n return steps;\n}\nfunction themeTints(theme) {\n for (const t of themeChain(theme).reverse()) if (t.tints) return t.tints;\n return { ramp: \"swatch\" };\n}\nvar fallback;\nvar defaultContext = () => fallback ??= { theme: weaselTheme, resolved: resolveTheme(weaselTheme) };\nvar pickStep = (list, i, theme) => {\n const steps = rampSteps(theme, list.ramp);\n return steps[wrap(i, steps.length)];\n};\nvar rampProperty = (list, i, theme) => `--wzl-${list.ramp}-${pickStep(list, i, theme)}`;\nvar isRamp = (list) => typeof list !== \"function\" && \"ramp\" in list;\nfunction colorItemAt(list, i) {\n if (typeof list === \"function\") return list(i);\n const colors = \"generate\" in list ? generatedColors(list) : list;\n if (colors.length === 0) throw new Error(\"colorAt: empty color list\");\n return colors[wrap(i, colors.length)];\n}\nfunction colorCount(list, ctx = defaultContext()) {\n if (typeof list === \"function\") return void 0;\n if (\"ramp\" in list) return rampSteps(ctx.theme, list.ramp).length;\n return \"generate\" in list ? list.generate.count : list.length;\n}\nvar TINT_REF = \"tint\";\nvar NO_PALETTE = { entries: [] };\nvar tintsOf = (ctx) => ctx.tints ?? themeTints(ctx.theme);\nfunction parsed(css) {\n try {\n return cssColorLiteral(css);\n } catch {\n return null;\n }\n}\nfunction propertyOf(ref, ctx) {\n if (ref.ref.startsWith(\"--\")) return ref.index === void 0 ? ref.ref : null;\n if (ref.index === void 0) return `--wzl-${ref.ref}`;\n const step = findRampSteps(ctx.theme, ref.ref)?.[ref.index];\n return step === void 0 ? null : `--wzl-${ref.ref}-${step}`;\n}\nfunction tokenLiteral(property, ctx) {\n const value = ctx.resolved[property];\n if (value === void 0) return null;\n try {\n return parsed(resolveCurrentColor(value, ctx.resolved[\"--wzl-fg\"]));\n } catch {\n return null;\n }\n}\nvar isRef = (source) => typeof source !== \"function\" && \"ref\" in source;\nfunction tintSource(index, ctx) {\n const tints = tintsOf(ctx);\n if (isRamp(tints)) return tokenLiteral(rampProperty(tints, index, ctx.theme), ctx);\n const item = colorItemAt(tints, index);\n return typeof item === \"string\" ? parsed(item) : item;\n}\nfunction themeSource(ref, ctx) {\n if (ref.ref === TINT_REF) return tintSource(ref.index ?? 0, ctx);\n const property = propertyOf(ref, ctx);\n return property === null ? null : tokenLiteral(property, ctx);\n}\nfunction colorSourceLiteral(source, ctx = defaultContext()) {\n return resolvePaletteColor(ctx.palette ?? NO_PALETTE, source, (ref) => themeSource(ref, ctx));\n}\nfunction literalCss(source, ctx) {\n const literal = colorSourceLiteral(source, ctx);\n return literal && colorLiteralToCss(literal);\n}\nfunction tintCss(source, ctx) {\n const tints = tintsOf(ctx);\n const index = source.index ?? 0;\n if (isRamp(tints)) return `var(${rampProperty(tints, index, ctx.theme)})`;\n const item = colorItemAt(tints, index);\n if (typeof item === \"string\") return item;\n return isRef(item) && item.ref !== TINT_REF ? colorSourceCss(item, ctx) : literalCss(source, ctx);\n}\nfunction themeRefCss(ref, ctx) {\n if (ref.ref === TINT_REF) return tintCss(ref, ctx);\n const property = propertyOf(ref, ctx);\n if (property === null) return null;\n return ref.ref.startsWith(\"--\") || tokenLiteral(property, ctx) ? `var(${property})` : null;\n}\nfunction nth(items, n) {\n let i = 0;\n for (const item of items) if (i++ === n) return item;\n return void 0;\n}\nfunction namedThemeRef(source, ctx) {\n const entries = ctx.palette?.entries ?? [];\n const seen = /* @__PURE__ */ new Set();\n let read = false;\n const fnCtx = {\n resolve: (s) => {\n read = true;\n return colorSourceLiteral(s, ctx);\n }\n };\n let at = source;\n while (at != null && !read) {\n if (typeof at === \"function\") {\n at = at(fnCtx);\n continue;\n }\n if (!isRef(at)) return null;\n const { ref, index = 0 } = at;\n const entry = entries.find((e) => e.name === ref);\n if (!entry) return at;\n const key = `${index}:${ref}`;\n if (seen.has(key)) return null;\n seen.add(key);\n if (\"color\" in entry) at = index === 0 ? entry.color : null;\n else at = nth(entry.colors(fnCtx), index);\n }\n return null;\n}\nfunction colorSourceCss(source, ctx = defaultContext()) {\n const named = namedThemeRef(source, ctx);\n return named ? themeRefCss(named, ctx) : literalCss(source, ctx);\n}\n\nexport { TINT_REF, applyTheme, blendTheme, colorCount, colorItemAt, colorSourceCss, colorSourceLiteral, defaultContext, isColorModePreference, isRamp, rampProperty, rampSteps, resolveCurrentColor, themeTints };\n//# sourceMappingURL=chunk-ZU4EOJAA.js.map\n//# sourceMappingURL=chunk-ZU4EOJAA.js.map","import { createEmitter } from '@weasel-js/registry';\nexport { isDev, sameList } from '@weasel-js/registry';\nimport { createContext, useState, useRef, useCallback, useMemo, useInsertionEffect, useEffect, useSyncExternalStore, useLayoutEffect, useContext, createElement } from 'react';\n\n// src/assignRef.ts\nfunction assignRef(ref, value) {\n if (typeof ref === \"function\") ref(value);\n else if (ref) ref.current = value;\n}\n\n// src/adoptCss.ts\nfunction styleRootOf(el) {\n const root = el.getRootNode();\n return root instanceof (el.ownerDocument.defaultView?.ShadowRoot ?? ShadowRoot) ? root : el.ownerDocument;\n}\nfunction adoptCss(root, css, styleId) {\n const doc = \"host\" in root ? root.ownerDocument : root;\n const Sheet = doc.defaultView?.CSSStyleSheet;\n if (Sheet && \"replaceSync\" in Sheet.prototype && Array.isArray(root.adoptedStyleSheets)) {\n const sheet = new Sheet();\n sheet.replaceSync(css);\n root.adoptedStyleSheets = [...root.adoptedStyleSheets, sheet];\n return {\n write: (next) => sheet.replaceSync(next),\n release: () => {\n root.adoptedStyleSheets = root.adoptedStyleSheets.filter((s) => s !== sheet);\n }\n };\n }\n const style = doc.createElement(\"style\");\n if (styleId !== void 0) style.id = styleId;\n style.textContent = css;\n (\"host\" in root ? root : doc.head).appendChild(style);\n return {\n write: (next) => {\n style.textContent = next;\n },\n release: () => style.remove()\n };\n}\nvar held = /* @__PURE__ */ new WeakMap();\nfunction adoptCssOnce(el, css) {\n const root = styleRootOf(el);\n let rules = held.get(root);\n if (rules === void 0) held.set(root, rules = /* @__PURE__ */ new Set());\n if (rules.has(css)) return;\n rules.add(css);\n adoptCss(root, css);\n}\nfunction __resetAdoptedCss() {\n held = /* @__PURE__ */ new WeakMap();\n}\nfunction useCanvasFocus(options = {}) {\n const { initial = false, tabIndex = 0 } = options;\n const [focused, setFocusedState] = useState(initial);\n const focusedRef = useRef(initial);\n const onFocus = useCallback(() => {\n if (!focusedRef.current) {\n focusedRef.current = true;\n setFocusedState(true);\n }\n }, []);\n const onBlur = useCallback(() => {\n if (focusedRef.current) {\n focusedRef.current = false;\n setFocusedState(false);\n }\n }, []);\n const getFocused = useCallback(() => focusedRef.current, []);\n const setFocused = useCallback((next) => {\n if (focusedRef.current === next) return;\n focusedRef.current = next;\n setFocusedState(next);\n }, []);\n const focusProps = useMemo(() => ({ tabIndex, onFocus, onBlur }), [tabIndex, onFocus, onBlur]);\n return {\n focused,\n focusProps,\n getFocused,\n setFocused\n };\n}\nfunction useLatest(value) {\n const ref = useRef(value);\n useInsertionEffect(() => {\n ref.current = value;\n });\n return ref;\n}\nfunction useNearViewport(ref, margin, initial = true) {\n const [near, setNear] = useState(() => initial || typeof IntersectionObserver === \"undefined\");\n useEffect(() => {\n const el = ref.current;\n if (!el || typeof IntersectionObserver === \"undefined\") return;\n const recheck = () => {\n observer.unobserve(el);\n observer.observe(el);\n };\n let watching = false;\n const watch = (on) => {\n if (on === watching) return;\n watching = on;\n if (on) {\n document.addEventListener(\"scroll\", recheck, { capture: true, passive: true });\n window.addEventListener(\"resize\", recheck);\n } else {\n document.removeEventListener(\"scroll\", recheck, { capture: true });\n window.removeEventListener(\"resize\", recheck);\n }\n };\n const observer = new IntersectionObserver(\n (entries) => {\n const last = entries.at(-1);\n if (!last) return;\n const root = last.rootBounds;\n const box = last.boundingClientRect;\n setNear(\n root ? box.bottom >= root.top && box.top <= root.bottom && box.right >= root.left && box.left <= root.right : last.isIntersecting\n );\n watch(Boolean(root) && !last.isIntersecting);\n },\n { root: document, rootMargin: margin }\n );\n observer.observe(el);\n return () => {\n observer.disconnect();\n watch(false);\n };\n }, [ref, margin]);\n return near;\n}\nvar QUERY = \"(prefers-reduced-motion: reduce)\";\nfunction prefersReducedMotion() {\n return typeof matchMedia === \"function\" && matchMedia(QUERY).matches;\n}\nfunction subscribe(onChange) {\n if (typeof matchMedia !== \"function\") return () => {\n };\n const list = matchMedia(QUERY);\n list.addEventListener?.(\"change\", onChange);\n return () => list.removeEventListener?.(\"change\", onChange);\n}\nfunction usePrefersReducedMotion() {\n return useSyncExternalStore(subscribe, prefersReducedMotion, () => false);\n}\nvar DEFAULT_COLOR_SCHEME = \"dark\";\nvar QUERY2 = \"(prefers-color-scheme: light)\";\nvar query = () => typeof matchMedia === \"function\" ? matchMedia(QUERY2) : null;\nfunction systemColorScheme() {\n return query()?.matches ? \"light\" : DEFAULT_COLOR_SCHEME;\n}\nfunction watchColorScheme(fn) {\n const list = query();\n list?.addEventListener?.(\"change\", fn);\n return () => list?.removeEventListener?.(\"change\", fn);\n}\nvar still = () => () => {\n};\nvar serverScheme = () => DEFAULT_COLOR_SCHEME;\nfunction useSystemColorScheme(follow = true) {\n return useSyncExternalStore(follow ? watchColorScheme : still, systemColorScheme, serverScheme);\n}\nvar documentHidden = () => typeof document !== \"undefined\" && document.hidden;\nvar resolveTarget = (target) => typeof target === \"function\" ? target() : target?.current ?? null;\nfunction useVisibleRaf(frame, options = {}) {\n const frameRef = useLatest(frame);\n const optsRef = useLatest(options);\n const rafRef = useRef(null);\n const pendingRef = useRef(false);\n const suspendedRef = useRef(false);\n const aliveRef = useRef(true);\n const intersectingRef = useRef(true);\n const observerRef = useRef(null);\n const observedRef = useRef(null);\n const handleRef = useRef(null);\n const isVisible = useCallback(\n () => optsRef.current.dangerouslyRunWhenHidden === true || !documentHidden() && intersectingRef.current,\n [optsRef]\n );\n const cancelRaf = useCallback(() => {\n if (rafRef.current === null) return;\n (optsRef.current.cancelFrame ?? cancelAnimationFrame)(rafRef.current);\n rafRef.current = null;\n }, [optsRef]);\n const scheduleRaf = useCallback(() => {\n if (rafRef.current !== null || !aliveRef.current) return;\n rafRef.current = (optsRef.current.requestFrame ?? requestAnimationFrame)((time) => {\n rafRef.current = null;\n if (!aliveRef.current || !pendingRef.current || !isVisible()) return;\n pendingRef.current = false;\n frameRef.current(time, handleRef.current);\n });\n }, [frameRef, isVisible, optsRef]);\n const syncObserver = useCallback(() => {\n const io = observerRef.current;\n if (!io) return;\n const el = resolveTarget(optsRef.current.target);\n if (el === observedRef.current) return;\n if (observedRef.current) io.unobserve(observedRef.current);\n observedRef.current = el;\n intersectingRef.current = true;\n if (el) io.observe(el);\n }, [optsRef]);\n const syncGate = useCallback(() => {\n if (!isVisible()) {\n if (suspendedRef.current) return;\n suspendedRef.current = true;\n cancelRaf();\n optsRef.current.onSuspend?.();\n return;\n }\n if (!suspendedRef.current) return;\n suspendedRef.current = false;\n if (!aliveRef.current) return;\n optsRef.current.onResume?.();\n if (pendingRef.current) scheduleRaf();\n }, [cancelRaf, isVisible, optsRef, scheduleRaf]);\n const request = useCallback(() => {\n if (!aliveRef.current) return;\n syncObserver();\n pendingRef.current = true;\n if (!isVisible()) {\n syncGate();\n return;\n }\n scheduleRaf();\n }, [isVisible, scheduleRaf, syncGate, syncObserver]);\n const cancel = useCallback(() => {\n pendingRef.current = false;\n cancelRaf();\n }, [cancelRaf]);\n useLayoutEffect(() => {\n aliveRef.current = true;\n document.addEventListener(\"visibilitychange\", syncGate);\n if (typeof IntersectionObserver !== \"undefined\") {\n observerRef.current = new IntersectionObserver((entries) => {\n intersectingRef.current = entries.some((e) => e.isIntersecting);\n syncGate();\n });\n syncObserver();\n }\n return () => {\n aliveRef.current = false;\n document.removeEventListener(\"visibilitychange\", syncGate);\n observerRef.current?.disconnect();\n observerRef.current = null;\n observedRef.current = null;\n intersectingRef.current = true;\n cancelRaf();\n pendingRef.current = false;\n suspendedRef.current = false;\n };\n }, [cancelRaf, syncGate, syncObserver]);\n const handle = useMemo(() => ({ request, cancel, isVisible }), [request, cancel, isVisible]);\n useLayoutEffect(() => {\n handleRef.current = handle;\n }, [handle]);\n return handle;\n}\nfunction useStableByContent(value, same) {\n const held2 = useRef(value);\n const out = held2.current === value || same(held2.current, value) ? held2.current : value;\n useInsertionEffect(() => {\n held2.current = out;\n });\n return out;\n}\nfunction leafAt(tree, path) {\n let at = tree;\n for (const key of path.split(\".\")) {\n if (at === null || typeof at !== \"object\" || !Object.hasOwn(at, key)) return void 0;\n at = at[key];\n }\n return at;\n}\nfunction flatten(tree, prefix, out) {\n if (tree === null || typeof tree !== \"object\") return out;\n for (const [key, value] of Object.entries(tree)) {\n if (value === void 0) continue;\n const path = prefix === \"\" ? key : `${prefix}.${key}`;\n if (value !== null && typeof value === \"object\") flatten(value, path, out);\n else out.set(path, value);\n }\n return out;\n}\nvar sameLeaves = (a, b) => a.size === b.size && [...a].every(([path, value]) => b.has(path) && Object.is(b.get(path), value));\nfunction createKitSettingsStore(overrides = {}, parent = null) {\n let own = overrides;\n let leaves = flatten(own, \"\", /* @__PURE__ */ new Map());\n const listeners = createEmitter();\n const notify = () => listeners.emit();\n let unhookParent = null;\n return {\n get(path) {\n const value = leafAt(own, path);\n return value !== void 0 ? value : parent?.get(path);\n },\n subscribe(listener) {\n const off = listeners.subscribe(listener);\n if (parent && unhookParent === null) unhookParent = parent.subscribe(notify);\n return () => {\n off();\n if (listeners.size === 0 && unhookParent) {\n unhookParent();\n unhookParent = null;\n }\n };\n },\n set(next) {\n const nextLeaves = flatten(next, \"\", /* @__PURE__ */ new Map());\n own = next;\n if (sameLeaves(leaves, nextLeaves)) return;\n leaves = nextLeaves;\n notify();\n }\n };\n}\nvar NO_KIT_SETTINGS = createKitSettingsStore();\nvar KitSettingsContext = createContext(NO_KIT_SETTINGS);\nfunction KitSettingsProvider({ value, children }) {\n const parent = useContext(KitSettingsContext);\n const [store, setStore] = useState(() => ({ parent, store: createKitSettingsStore(value, parent) }));\n if (store.parent !== parent) setStore({ parent, store: createKitSettingsStore(value, parent) });\n useLayoutEffect(() => {\n store.store.set(value);\n }, [store, value]);\n return createElement(KitSettingsContext.Provider, { value: store.store }, children);\n}\nfunction useKitSettings() {\n return useContext(KitSettingsContext);\n}\nfunction useKitSetting(path) {\n const store = useKitSettings();\n const read = useCallback(() => store.get(path), [store, path]);\n return useSyncExternalStore(store.subscribe, read, read);\n}\n\nexport { DEFAULT_COLOR_SCHEME, KitSettingsProvider, NO_KIT_SETTINGS, __resetAdoptedCss, adoptCss, adoptCssOnce, assignRef, createKitSettingsStore, prefersReducedMotion, styleRootOf, systemColorScheme, useCanvasFocus, useKitSetting, useKitSettings, useLatest, useNearViewport, usePrefersReducedMotion, useStableByContent, useSystemColorScheme, useVisibleRaf, watchColorScheme };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","import { isColorModePreference, themeTints, applyTheme, colorSourceCss, colorSourceLiteral } from './chunk-ZU4EOJAA.js';\nexport { isColorModePreference } from './chunk-ZU4EOJAA.js';\nimport './chunk-44CG54ZK.js';\nimport './chunk-M3R5MV7Q.js';\nimport { themeAxes, resolveTheme } from './chunk-OP5VYXEZ.js';\nimport { weaselTheme } from './chunk-X2KI4SSJ.js';\nimport { fullSelection, selectionKey } from './chunk-P5F3GZV6.js';\nimport { colorLiteralToHex } from '@weasel-js/paint';\nimport { createContext, useState, useCallback, useRef, useMemo, useLayoutEffect, useContext } from 'react';\nimport { isDev } from '@weasel-js/registry';\nimport { useSystemColorScheme } from '@weasel-js/react';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction useResolvedColorMode(preference) {\n const system = useSystemColorScheme(preference === \"auto\");\n return preference === \"auto\" ? system : preference;\n}\nfunction defaultStorage() {\n try {\n return globalThis.localStorage ?? void 0;\n } catch {\n return void 0;\n }\n}\nfunction useColorModePreference(options = {}) {\n const { storageKey, storage, defaultPreference = \"auto\" } = options;\n const [preference, setState] = useState(() => {\n if (storageKey === void 0) return defaultPreference;\n try {\n const stored = (storage ?? defaultStorage())?.getItem(storageKey);\n return isColorModePreference(stored) ? stored : defaultPreference;\n } catch {\n return defaultPreference;\n }\n });\n const setPreference = useCallback(\n (next) => {\n setState(next);\n if (storageKey === void 0) return;\n try {\n (storage ?? defaultStorage())?.setItem(storageKey, next);\n } catch {\n }\n },\n [storageKey, storage]\n );\n return { preference, setPreference, mode: useResolvedColorMode(preference) };\n}\nvar ThemeContext = createContext(null);\nvar NO_PALETTE = { entries: [] };\nfunction ThemeProvider({\n theme = weaselTheme,\n selection,\n tints,\n palette = NO_PALETTE,\n className,\n style,\n children\n}) {\n const ref = useRef(null);\n const axes = themeAxes(theme);\n const autoMode = selection?.mode === \"auto\" && !(\"auto\" in (axes.mode?.values ?? {}));\n const systemMode = useResolvedColorMode(autoMode ? \"auto\" : \"dark\");\n const given = autoMode ? { ...selection, mode: systemMode } : selection;\n const full = fullSelection(axes, given);\n warnUnknownAxisValues(theme, axes, given);\n const key = selectionKey(axes, full);\n const value = useMemo(\n () => ({ theme, selection: full, resolved: resolveTheme(theme, full), tints: tints ?? themeTints(theme), palette }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [theme, key, tints, palette]\n );\n const release = useRef(null);\n useLayoutEffect(() => {\n if (ref.current) release.current = applyTheme(ref.current, theme, value.selection);\n }, [theme, value]);\n useLayoutEffect(() => () => release.current?.(), []);\n const attrs = Object.fromEntries(Object.keys(axes).map((a) => [`data-wzl-${a}`, full[a]]));\n return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children: /* @__PURE__ */ jsx(\"div\", { ref, className, style, \"data-wzl-theme\": theme.name, ...attrs, children }) });\n}\nvar warned = /* @__PURE__ */ new Set();\nfunction warnUnknownAxisValues(theme, axes, selection) {\n if (!selection || !isDev()) return;\n for (const [axis, value] of Object.entries(selection)) {\n const def = axes[axis];\n if (!def || value in def.values) continue;\n const key = `${theme.name}\\0${axis}\\0${value}`;\n if (warned.has(key)) continue;\n warned.add(key);\n console.warn(\n `[weasel theme] ThemeProvider: theme \"${theme.name}\" has no ${axis} \"${value}\"; using \"${def.default}\". Its ${axis} values: ${Object.keys(def.values).join(\", \")}.`\n );\n }\n}\nfunction useTheme() {\n const ctx = useContext(ThemeContext);\n if (!ctx) throw new Error(\"useTheme must be used inside a <ThemeProvider>\");\n return ctx;\n}\nfunction useThemeOptional() {\n return useContext(ThemeContext);\n}\nvar defaultTints;\nfunction useTints() {\n const ctx = useContext(ThemeContext);\n if (ctx) return ctx;\n return defaultTints ??= {\n theme: weaselTheme,\n selection: fullSelection(themeAxes(weaselTheme)),\n resolved: resolveTheme(weaselTheme),\n tints: themeTints(weaselTheme),\n palette: NO_PALETTE\n };\n}\nfunction useColorCss() {\n const ctx = useTints();\n return useCallback((source) => source == null ? void 0 : colorSourceCss(source, ctx) ?? void 0, [ctx]);\n}\nfunction useColorHex() {\n const ctx = useTints();\n return useCallback((source) => {\n if (source == null) return void 0;\n const literal = colorSourceLiteral(source, ctx);\n return (literal && colorLiteralToHex(literal)) ?? void 0;\n }, [ctx]);\n}\n\nexport { ThemeContext, ThemeProvider, useColorCss, useColorHex, useColorModePreference, useResolvedColorMode, useTheme, useThemeOptional, useTints };\n//# sourceMappingURL=react.js.map\n//# sourceMappingURL=react.js.map","/* What every motif shares: the stance slots (generated below) and the two\n colors derived from them. A motif paints its own geometry — border width,\n padding, radius — and reads only color and the title's type from the slots,\n so a theme's stance tokens can't erase the edge a motif is made of. */\n._frame_048aab,\n._frame_048aab * {\n box-sizing: border-box;\n}\n\n/* In `:where()` so a motif's own class can redefine the edge and the ink follows it. */\n:where(._frame_048aab) {\n /* The edge a motif outlines or fills with: the tint where one is named. */\n --_edge: var(--wzl-tint, var(--_s-border-color));\n /* Black or white, whichever reads on the edge color. 0.564 is the lightness at\n which the two reach WCAG's 4.5:1 together; the switch has to sit within a\n hundredth of it, or the losing side falls short there. */\n --_edge-ink: oklch(from var(--_edge) clamp(0, (0.564 - l) * 1000, 1) 0 0);\n}\n\n/* The motifs that paint the frame's fill, which is sunken by default, as a field's frame is. */\n._frame_048aab:where([data-motif='rule'], [data-motif='stereo'], [data-motif='tab'], [data-motif='titlebar']) {\n --wzl-input-surface: var(--wzl-surface);\n}\n\n/* BEGIN GENERATED stance rules: frame — `npm run gen:stances`, do not edit. */\n\n._frame_048aab {\n --wzl-tint: initial;\n}\n\n._frame_048aab {\n --_s-surface: var(--wzl-surface-sunken);\n --_s-border-color: color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface));\n --_s-border-style: solid;\n --_s-border-width: 0px;\n --_s-radius: var(--wzl-radius-md);\n --_s-pad: var(--wzl-prop-group-pad, 6px 10px 8px);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-display);\n --_s-title-weight: var(--wzl-font-weight-light);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: var(--wzl-params-label-case, uppercase);\n --_s-title-tracking: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n --_s-title-color: var(--wzl-fg-subtle);\n}\n\n._frame_048aab[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-clarify-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 0px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-clarify-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-aside-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 0px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-aside-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-advanced-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 0px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-advanced-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-debug-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 0px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-debug-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-preview-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 0px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-preview-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-confirm-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 0px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-confirm-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface-sunken));\n --_s-border-color: var(--wzl-stance-cancel-border-color, color-mix(in oklab, var(--wzl-fg) 12%, var(--_s-surface)));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 0px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-pad: var(--wzl-stance-cancel-pad, var(--wzl-prop-group-pad, 6px 10px 8px));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-subtle));\n}\n\n._frame_048aab[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._frame_048aab[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._frame_048aab[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._frame_048aab {\n --_s-fill: var(--_s-surface);\n}\n\n._frame_048aab[data-tint],\n._frame_048aab[data-grade],\n._frame_048aab[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._frame_048aab[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: frame */\n\n/* A disabled frame's title, dimmed as a disabled row's label is. */\n._titleOff_048aab {\n opacity: 0.5;\n}\n/* A small title trailed by a rule, no box. It reads only the title's type\n and the rule's color from the slots of the frame it draws. */\n._title_7d0ddf {\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-tight);\n color: var(--_s-title-color);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._heading_7d0ddf {\n flex: 0 0 auto;\n margin: 0;\n font: inherit;\n}\n\n._title_7d0ddf > hr {\n flex: 1 1 auto;\n border: 0;\n border-top: 1px solid var(--_s-border-color);\n margin: 0;\n}\n\n._actions_7d0ddf {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n/* The title centered between two rules, on a sunken fill. Unlike the other\n motifs, every part of the box comes from the stance slots: this is the look\n the slots' defaults describe. */\n._rule_81c138 {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n padding: var(--_s-pad);\n}\n\n/* A tinted frame is one of a list of like frames; its edge says which. */\n._rule_81c138[data-tint] {\n border-left: 4px solid var(--wzl-tint);\n}\n\n._headRow_81c138 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n}\n\n/* The row takes the title's bottom margin, so the handle and actions center on the title itself. */\n._headRow_81c138 > ._title_81c138 {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n}\n\n._leading_81c138,\n._actions_81c138 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._title_81c138 {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n color: var(--_s-title-color);\n}\n\n._title_81c138 hr {\n border: 0;\n border-top: 1px solid var(--_s-border-color);\n margin: 0;\n}\n\n/* The title between the rules. The twisty hangs off the text's leading edge,\n out of flow, so the text centers as though it were not there. */\n._mid_81c138 {\n position: relative;\n min-width: 0;\n}\n\n/* Being out of flow, the twisty would sit on the leading rule; the rule stops at its box instead. */\n._title_81c138:has(> ._mid_81c138 > ._twisty_81c138) > hr:first-child {\n margin-inline-end: calc(\n var(--wzl-disclosure-target, var(--wzl-control-h-sm)) + var(--wzl-disclosure-gap, 4px) - var(--wzl-space-4)\n );\n}\n\n._twisty_81c138 {\n position: absolute;\n inset-inline-end: calc(100% + var(--wzl-disclosure-gap, 4px));\n top: 50%;\n translate: 0 -50%;\n}\n/* A raised sheet titled along the top. Every part of the box comes from the\n slots of the frame it draws — a panel's `--wzl-panel-*` ones by default. */\n._sheet_4ecab5 {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n padding: var(--_s-pad);\n box-shadow: var(--wzl-bevel-raised, none);\n backdrop-filter: blur(var(--_s-blur, 0));\n -webkit-backdrop-filter: blur(var(--_s-blur, 0));\n}\n\n._title_4ecab5 {\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-snug);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n color: var(--_s-title-color);\n padding: var(--_s-title-inset, 0);\n margin: 0 0 var(--wzl-prop-panel-title-gap, 8px);\n}\n\n._head_4ecab5 {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n margin: 0 0 var(--wzl-prop-panel-title-gap, 8px);\n}\n\n._head_4ecab5 > ._title_4ecab5 {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n align-self: var(--wzl-prop-panel-actions-align, center);\n}\n\n/* A folded frame is its heading alone, so the gap under the title goes too. */\n._sheet_4ecab5[data-collapsed] > ._head_4ecab5 {\n margin-bottom: 0;\n}\n\n/* The basis is a hook for content that has to line up with the sheet's body:\n a percentage of it is a share of the same width the body gets. */\n._actions_4ecab5 {\n display: flex;\n flex: 0 0 var(--wzl-prop-panel-actions-basis, auto);\n min-width: 0;\n align-self: var(--wzl-prop-panel-actions-align, center);\n align-items: var(--wzl-prop-panel-actions-align, center);\n gap: var(--wzl-space-2);\n margin-inline-start: auto;\n}\n/* The title cut into the top border. A fieldset for the notch as much as the\n grouping: a legend cuts the border rather than covering it, so the frame can\n sit on a translucent ground with no seam showing through the line. */\n._notch_f0bf0c {\n margin: 0;\n min-width: 0;\n padding: var(--wzl-space-1) var(--wzl-space-5) var(--wzl-space-4);\n border: 1px solid var(--_edge);\n border-radius: var(--wzl-radius-md);\n}\n\n._legend_f0bf0c {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-inline: var(--wzl-space-3);\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n color: var(--_s-title-color);\n}\n\n._label_f0bf0c {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n/* A legend is laid out by its fieldset, so the autos move it where\n `text-align` on either would not. */\n._legend_f0bf0c[data-align='center'] {\n margin-inline: auto;\n}\n\n._legend_f0bf0c[data-align='start'] {\n margin-inline: 0;\n}\n\n/* With actions, the legend spans the top edge: the title at one end, the\n actions at the other, and the run of border the legend displaces drawn\n between them. */\n._legend_f0bf0c[data-actions] {\n width: 100%;\n margin-inline: 0;\n}\n\n._run_f0bf0c {\n flex: 1;\n border-top: 1px solid var(--_edge);\n}\n\n._actions_f0bf0c {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n/* The tint fills the whole frame, and everything on it is drawn in an ink that\n reads there: black or white, from the fill's own lightness. */\n._plaque_561617 {\n /* The fill is the edge here, so the frame's edge ink is the plaque's ink. */\n --_edge: color-mix(in oklab, var(--_s-tint) var(--wzl-plaque-mix, 100%), var(--_s-surface));\n background: var(--_edge);\n border-radius: var(--wzl-radius-md);\n padding: var(--_s-pad);\n}\n\n/* The theme's colors redrawn against the fill. Set one element in, because\n the frame's own generated accent rules sit on the root at a specificity a\n motif's stylesheet can only tie, and a tie goes to load order. */\n._content_561617 {\n /* A plaque inside this one names its own mix or takes the default, never this one's. */\n --wzl-plaque-mix: initial;\n --wzl-fg: var(--_edge-ink);\n --wzl-fg-muted: color-mix(in oklab, var(--_edge-ink) 78%, var(--_edge));\n --wzl-fg-subtle: color-mix(in oklab, var(--_edge-ink) 60%, var(--_edge));\n --wzl-fg-on-accent: var(--_edge-ink);\n --wzl-border: color-mix(in oklab, var(--_edge-ink) 25%, var(--_edge));\n --wzl-surface-sunken: oklch(from var(--_edge) calc(l - 0.06) c h);\n --wzl-accent: color-mix(in oklab, var(--_edge-ink) 18%, var(--_edge));\n --wzl-accent-base: var(--wzl-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_edge-ink) 40%, var(--_edge));\n --wzl-accent-soft: color-mix(in oklab, var(--_edge-ink) 10%, var(--_edge));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--_edge-ink);\n --wzl-focus-ring: var(--_edge-ink);\n color: var(--wzl-fg);\n}\n\n._head_561617 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--_s-title-size);\n}\n\n._label_561617 {\n flex: 1 1 auto;\n min-width: 0;\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n/* The back of an A/V receiver: a bar along one edge, filled with the edge\n color, carries the title; the border around the rest is the same color. */\n._stereo_2a3f6f {\n display: flex;\n background: var(--_edge);\n border: 2px solid var(--_edge);\n border-radius: var(--wzl-radius-sm);\n}\n\n._stereo_2a3f6f[data-side='left'] {\n flex-direction: row;\n}\n\n._stereo_2a3f6f[data-side='right'] {\n flex-direction: row-reverse;\n}\n\n._stereo_2a3f6f[data-side='top'] {\n flex-direction: column;\n}\n\n._stereo_2a3f6f[data-side='bottom'] {\n flex-direction: column-reverse;\n}\n\n._bar_2a3f6f {\n flex: none;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-block: var(--wzl-space-1);\n padding-inline: var(--wzl-space-1);\n background: var(--_edge);\n color: var(--_edge-ink);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--_s-title-size);\n line-height: 1;\n white-space: nowrap;\n}\n\n._label_2a3f6f {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n/* Read from inside the frame: the letters' feet point at what the bar labels.\n A side bar's writing mode turns its inline axis, so `labelAlign`'s start and\n end follow the reading direction with no mapping of their own. */\n._stereo_2a3f6f[data-side='left'] > ._bar_2a3f6f {\n writing-mode: sideways-lr;\n}\n\n._stereo_2a3f6f[data-side='right'] > ._bar_2a3f6f {\n writing-mode: sideways-rl;\n}\n\n._bar_2a3f6f[data-align='start'] {\n justify-content: start;\n}\n\n._bar_2a3f6f[data-align='center'] {\n justify-content: center;\n}\n\n._bar_2a3f6f[data-align='end'] {\n justify-content: end;\n}\n\n._body_2a3f6f {\n flex: 1 1 auto;\n min-width: 0;\n padding: var(--_s-pad);\n background: var(--_s-fill);\n border-radius: var(--wzl-radius-sm);\n}\n\n._stereo_2a3f6f[data-invert] {\n background: var(--_edge-ink);\n border-color: var(--_edge-ink);\n}\n\n._stereo_2a3f6f[data-invert] > ._bar_2a3f6f {\n background: var(--_edge-ink);\n color: var(--_edge);\n}\n\n/* A heavy frame set in a tight grid of rows needs more air than the rows do. */\n._stereo_2a3f6f:not(:first-child) {\n margin-block-start: var(--wzl-space-2);\n}\n\n/* A side bar's title can outgrow the rows it labels; the rows then sit mid-height. */\n._stereo_2a3f6f:where([data-side='left'], [data-side='right']) > ._body_2a3f6f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n/* The rows keep a little more room on the bar's side, so they do not crowd its edge. A\n transparent border adds it over the theme's own padding, and the body's fill shows through. */\n._stereo_2a3f6f[data-side='left'] > ._body_2a3f6f {\n border-left: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='right'] > ._body_2a3f6f {\n border-right: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='top'] > ._body_2a3f6f {\n border-top: var(--wzl-space-2) solid transparent;\n}\n\n._stereo_2a3f6f[data-side='bottom'] > ._body_2a3f6f {\n border-bottom: var(--wzl-space-2) solid transparent;\n}\n/* A folder tab rising from the top edge, in the edge color, over an outlined box. */\n._tab_025206 {\n display: flex;\n flex-direction: column;\n}\n\n._tabRow_025206 {\n display: flex;\n padding-inline: var(--wzl-radius-md);\n}\n\n._tabRow_025206[data-align='start'] {\n justify-content: start;\n}\n\n._tabRow_025206[data-align='center'] {\n justify-content: center;\n}\n\n._tabRow_025206[data-align='end'] {\n justify-content: end;\n}\n\n._label_025206 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n max-width: 100%;\n padding: var(--wzl-space-1) var(--wzl-space-5);\n background: var(--_edge);\n color: var(--_edge-ink);\n border-radius: var(--wzl-radius-md) var(--wzl-radius-md) 0 0;\n font-family: var(--_s-title-font);\n font-weight: var(--_s-title-weight);\n font-size: var(--_s-title-size);\n line-height: 1.2;\n}\n\n._text_025206 {\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n._box_025206 {\n background: var(--_s-fill);\n border: 1px solid var(--_edge);\n border-radius: var(--wzl-radius-md);\n padding: var(--_s-pad);\n}\n\n/* The tab grows out of the box's edge: where it starts or ends, that corner is square. */\n._tab_025206:has(> ._tabRow_025206[data-align='start']) > ._box_025206 {\n border-start-start-radius: 0;\n}\n\n._tab_025206:has(> ._tabRow_025206[data-align='end']) > ._box_025206 {\n border-start-end-radius: 0;\n}\n/* A desktop window: a solid strip across the top carries the title, and the\n frame's edge is a line or, where the theme has one, a raised bevel. */\n._titlebar_d5a76d {\n --_strip: var(--wzl-titlebar-surface, var(--_edge));\n --_strip-ink: var(--wzl-titlebar-fg, var(--_edge-ink));\n background: var(--_s-fill);\n border: var(--wzl-titlebar-border, 1px solid var(--_edge));\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, none);\n padding: var(--wzl-titlebar-inset, 0);\n}\n\n/* A tint says which of its peers a frame is, so it outranks the theme's strip. */\n._titlebar_d5a76d[data-tint] {\n --_strip: var(--_edge);\n --_strip-ink: var(--_edge-ink);\n}\n\n._strip_d5a76d {\n /* What sits on the strip is drawn in its ink: the fold mark, a ghost button. */\n --wzl-fg: var(--_strip-ink);\n --wzl-disclosure-fill: var(--_strip-ink);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-1) var(--wzl-space-3);\n background: var(--_strip);\n color: var(--_strip-ink);\n font-family: var(--_s-title-font);\n font-weight: var(--wzl-titlebar-weight, var(--wzl-font-weight-bold));\n font-size: var(--_s-title-size);\n line-height: var(--wzl-leading-snug);\n white-space: nowrap;\n}\n\n._mid_d5a76d {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: var(--wzl-titlebar-align, start);\n}\n\n/* The patch keeps a striped strip from running through the letters. */\n._label_d5a76d {\n background: var(--wzl-titlebar-label-surface, transparent);\n padding-inline: var(--wzl-titlebar-label-pad, 0);\n letter-spacing: var(--_s-title-tracking);\n text-transform: var(--_s-title-case);\n}\n\n._body_d5a76d {\n padding: var(--_s-pad);\n}\n/* A sunken well, its heading over its body in a column. The fill and edge are\n the frame's slots; the spacing and the title's size are `--wzl-well-*`\n properties, which the surface drawing the well sets for itself. */\n._well_c6a498 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-well-gap, var(--wzl-space-3));\n padding: var(--wzl-well-pad, var(--wzl-space-4));\n background: var(--_s-fill);\n border: 1px solid var(--_s-border-color);\n border-radius: var(--wzl-well-radius, var(--wzl-radius-md));\n --wzl-input-surface: var(--wzl-surface);\n}\n\n/* A rule down the leading edge only, inset from the body on both sides. */\n._well_c6a498[data-edge='start'] {\n border: 0;\n border-inline-start: var(--wzl-well-rule, 2px) solid var(--_s-border-color);\n padding-inline: var(--wzl-well-inset-start, var(--wzl-space-5)) var(--wzl-well-inset-end, var(--wzl-space-4));\n}\n\n._head_c6a498 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n padding-bottom: var(--wzl-well-head-pad, 0);\n}\n\n._head_c6a498[data-ruled] {\n padding-bottom: var(--wzl-well-head-pad, var(--wzl-space-2));\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._row_c6a498 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* A control drawn in the heading sits at its far end, as `inline`. */\n._title_c6a498 {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: var(--wzl-space-2);\n min-width: 0;\n margin: 0;\n font-size: var(--wzl-well-title-size, var(--wzl-font-size-sm));\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg);\n opacity: var(--wzl-well-title-opacity, 1);\n}\n\n._well_c6a498[data-label='wide'] ._title_c6a498 {\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n._well_c6a498[data-label='wider'] ._title_c6a498 {\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n._actions_c6a498 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._note_c6a498 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n/* Laid over the viewport by `targetInFrame`; it takes no pointer of its own, and its overlays take theirs. */\n._frame_051a65 {\n position: absolute;\n margin: 0;\n border: 0;\n padding: 0;\n pointer-events: none;\n}\n\n/* Fixed makes a stacking context, so it takes the popover rung for the overlays it holds. */\n._fixed_051a65 {\n position: fixed;\n z-index: var(--wzl-z-popover);\n}\n\n._frame_051a65 > * {\n pointer-events: auto;\n}\n\n/* What React Aria places against; the frame's own size is reported for it. */\n._frame_051a65 > ._boundary_051a65 {\n position: absolute;\n width: 0;\n height: 0;\n pointer-events: none;\n}\n._code_a29c7a {\n --code-emphasis-fg: var(--wzl-emphasis-fg, var(--wzl-fg));\n /* A tint, grade, or stance accent paints over emphasis. */\n --code-fg: var(--_s-accent, var(--code-emphasis-fg));\n display: inline;\n padding: 0 var(--wzl-space-2);\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--code-fg) 12%, transparent);\n color: var(--code-fg);\n font-family: var(--wzl-font-mono);\n font-size: var(--code-font-size, 90%);\n line-height: inherit;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n -webkit-box-decoration-break: clone;\n box-decoration-break: clone;\n}\n\n._code_a29c7a[data-variant='plain'] {\n padding: 0;\n background: transparent;\n}\n\n._code_a29c7a[data-size='xs'] { --code-font-size: var(--wzl-font-size-xs); }\n._code_a29c7a[data-size='sm'] { --code-font-size: var(--wzl-font-size-sm); }\n._code_a29c7a[data-size='md'] { --code-font-size: var(--wzl-font-size); }\n\n/* BEGIN GENERATED stance rules: code — `npm run gen:stances`, do not edit. */\n\n._code_a29c7a {\n --wzl-tint: initial;\n}\n\n._code_a29c7a {\n --_s-accent: var(--wzl-tint);\n}\n\n._code_a29c7a[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._code_a29c7a[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._code_a29c7a[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: code */\n/* Keystroke \"key cap\" styling — each modifier and key in its own bordered chip. */\n._keys_952020,\n._key_952020 {\n --key-h: var(--wzl-control-h-xs);\n --key-font-size: var(--wzl-font-size-sm);\n}\n\n/* A KeyBank's own box stays out of the layout unless a class gives it one. */\n:where(._bank_952020) {\n display: contents;\n}\n\n/* Function-key legends print smaller, as on a real keyboard — except in a\n KeyBank, where every single-line legend prints at one size. */\n._key_952020[data-fn]:not([data-banked]) {\n --key-font-size: calc(var(--wzl-font-size-sm) * 0.85);\n}\n\n._keys_952020 {\n display: inline-flex;\n gap: 3px;\n /* Bottom-align so chips with text labels and chips with icon glyphs\n (arrows, modifier symbols) line up at the same bottom edge. Baseline\n drifts because text baselines sit above icon centers. */\n align-items: flex-end;\n /* When this whole sequence sits inline in surrounding text (e.g.\n \"Press <KeySequence> to confirm.\"), the row anchors to the\n surrounding line's bottom edge, not its baseline. */\n vertical-align: bottom;\n flex-wrap: wrap;\n}\n\n._keysEmpty_952020 {\n color: var(--wzl-fg-muted);\n}\n\n._sep_952020 {\n /* A key's height, so the glyph centers on the keys rather than riding the\n row's bottom edge. */\n display: inline-flex;\n align-items: center;\n height: var(--key-h);\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n}\n\n/* A keymap's label before its keys, `Loupe ▸ 2`: plain text, centered on the keys like `.sep`. */\n._leader_952020,\n._leaderSep_952020 {\n display: inline-flex;\n align-items: center;\n height: var(--key-h);\n font-size: var(--key-font-size);\n line-height: 1;\n white-space: nowrap;\n}\n\n._leaderSep_952020 {\n color: var(--wzl-fg-muted);\n}\n\n._key_952020 {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n height: var(--key-h);\n padding: 0 var(--wzl-space-2);\n /* No fill; border and legend follow currentColor, so a chip inline in\n colored prose or beside a colored badge takes the surrounding color. */\n background: transparent;\n border: 1px solid currentColor;\n border-bottom-width: 2px;\n border-radius: var(--wzl-radius-sm);\n color: currentColor;\n /* Keycaps are a deliberate exception to the site theme — the design-\n system UI font (often a display face like Oswald) is wrong for\n keyboard chips. Use a neutral sans stack so labels read like real\n key legends. Consumers wanting a specific face per chip pass the\n `font` prop on KeyCap. */\n font-family: ui-sans-serif, system-ui, sans-serif;\n /* --key-legend-scale is set by a KeyBank, or by a key printing two lines. */\n --key-legend-size: calc(var(--key-font-size) * var(--key-legend-scale, 1));\n --key-wrap-line-height: 0.85;\n font-size: var(--key-legend-size);\n font-weight: var(--wzl-font-weight-bold);\n line-height: 1;\n}\n\n/* A two-line legend, as keycaps print Pg / Up: centered, tight enough for both\n lines to fit a short key. Bottom-aligned so its first line's baseline cannot\n make a line box taller than the key. */\n._key_952020[data-wrapped] {\n white-space: pre-line;\n text-align: center;\n line-height: var(--key-wrap-line-height);\n vertical-align: bottom;\n}\n\n/* A symbol legend drawn as an icon, a little larger than the letters beside it\n so its strokes stay whole at legend sizes. */\n._legendIcon_952020 {\n flex: none;\n width: calc(var(--key-legend-size) * 1.25);\n height: calc(var(--key-legend-size) * 1.25);\n}\n\n/* The symbol's own character, for a screen reader and for copied text. */\n._legendText_952020 {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n/* Default chip is square — letters, digits, and single glyphs (⎋ ⌫ ↑ etc.)\n sit in a uniform key-cap box. */\n._key_952020[data-kind='square'] {\n width: var(--key-h);\n padding: 0;\n}\n\n/* Modifiers (⌘ ⇪ ⌥ ⌃) are wider to match the visual weight of how they\n appear on a real keyboard — and to differentiate them from the keys\n they modify in a stack. */\n._key_952020[data-kind='modifier'] {\n min-width: 26px;\n padding: 0 var(--wzl-space-3);\n}\n\n/* Tab / Enter / Space — actual wide keys on a real keyboard. */\n._key_952020[data-kind='wide'] {\n min-width: 32px;\n padding: 0 var(--wzl-space-4);\n}\n\n/* Inverse variant: light face, slightly-darker-than-face border, dark\n glyph — reads as a real keycap rather than a recessed slot in the panel. */\n._key_952020[data-variant='inverse'] {\n background: var(--wzl-fg);\n border-color: #25272c;\n color: var(--wzl-surface);\n}\n\n/* Optional: a dotted border at full currentColor. The dotted pattern alone\n carries the cue, since the default chip defers its color to the context\n and dimming would fight that. */\n._key_952020[data-inverted] {\n border-style: dotted;\n border-width: 1.5px;\n border-bottom-width: 1.5px;\n}\n\n/* Optional on the inverse variant: the face flips to dark, the legend drops\n to 60% opacity and the dotted border to 40% — three stacked cues for\n \"may be held but isn't required.\" */\n._key_952020[data-variant='inverse'][data-inverted] {\n background: var(--wzl-surface);\n color: color-mix(in srgb, var(--wzl-fg) 60%, transparent);\n border-color: color-mix(in srgb, var(--wzl-fg) 40%, transparent);\n}\n\n._shortcut_952020 ._key_952020 {\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-normal);\n}\n/* A keyboard drawn from a layout: each key absolutely placed in key units, so a layout of any shape\n needs no grid of its own. A consumer resizes the whole diagram with --key-diagram-unit. */\n._diagram_3a99df {\n --u: var(--key-diagram-unit, var(--wzl-control-h-xs));\n --gap: 3px;\n --pitch: calc(var(--u) + var(--gap));\n --caption-h: 0px;\n --pitch-y: calc(var(--pitch) + var(--caption-h));\n}\n\n._diagram_3a99df[data-captioned] {\n --caption-h: calc(var(--u) * 0.6);\n}\n\n._diagram_3a99df[data-lingers] {\n opacity: 0;\n transition: opacity 0.4s ease;\n}\n\n._diagram_3a99df[data-lingers][data-up] {\n opacity: 1;\n transition-duration: 0.12s;\n}\n\n._board_3a99df {\n position: relative;\n width: calc(var(--cols) * var(--pitch) - var(--gap));\n height: calc(var(--rows) * var(--pitch-y) - var(--gap));\n}\n\n._row_3a99df {\n display: inline-flex;\n gap: var(--gap);\n align-items: flex-start;\n vertical-align: bottom;\n}\n\n._slot_3a99df {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n color: var(--tint, inherit);\n}\n\n._board_3a99df ._slot_3a99df {\n position: absolute;\n left: calc(var(--x) * var(--pitch));\n top: calc(var(--y) * var(--pitch-y));\n width: calc(var(--w) * var(--pitch) - var(--gap));\n}\n\n/* Outranks the keycap's own width rules, (0,2,0): in a layout the slot sets the width. */\n._board_3a99df ._slot_3a99df > kbd._cap_3a99df {\n width: 100%;\n min-width: 0;\n padding: 0 var(--wzl-space-1);\n}\n\n._slot_3a99df > kbd._cap_3a99df {\n /* A whole keyboard of bold legends reads as a wall. */\n font-weight: var(--wzl-font-weight-normal);\n /* A key let go fades back, so a tap too quick to see held still shows. */\n transition: background-color 0.35s ease-out, border-color 0.35s ease-out, color 0.35s ease-out;\n}\n\n._slot_3a99df[data-tinted] > kbd._cap_3a99df {\n background: color-mix(in srgb, var(--tint) 14%, transparent);\n}\n\n._slot_3a99df[data-held] > kbd._cap_3a99df {\n background: var(--tint, var(--wzl-accent));\n border-color: var(--tint, var(--wzl-accent));\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n transition: none;\n}\n\n/* A tint may be any color, so its held face takes dark ink rather than the accent's. */\n._slot_3a99df[data-tinted][data-held] > kbd._cap_3a99df {\n color: rgb(0 0 0 / 0.85);\n}\n\n._slot_3a99df[data-dimmed] {\n opacity: 0.35;\n}\n\n._caption_3a99df {\n height: var(--caption-h);\n overflow: hidden;\n font-size: calc(var(--u) * 0.45);\n line-height: var(--caption-h);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n color: var(--tint, var(--wzl-fg-muted));\n}\n\n._caption_3a99df svg {\n width: calc(var(--u) * 0.5);\n height: calc(var(--u) * 0.5);\n vertical-align: middle;\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._diagram_3a99df[data-lingers],\n ._slot_3a99df > kbd._cap_3a99df {\n transition: none;\n }\n}\n._tooltip_7e1c86 {\n /* RAC sets no z-index. */\n z-index: var(--wzl-z-popover);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, 0 4px 16px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n line-height: 1.3;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n max-width: 260px;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._tooltip_7e1c86[data-entering],\n._tooltip_7e1c86[data-exiting] {\n opacity: 0;\n}\n\n._arrow_7e1c86 {\n position: absolute;\n}\n\n._arrow_7e1c86[data-placement='top'] {\n top: 100%;\n transform: translateX(-50%);\n}\n\n._arrow_7e1c86[data-placement='bottom'] {\n bottom: 100%;\n transform: translateX(-50%);\n}\n\n._arrow_7e1c86[data-placement='left'] {\n left: 100%;\n transform: translateY(-50%);\n}\n\n._arrow_7e1c86[data-placement='right'] {\n right: 100%;\n transform: translateY(-50%);\n}\n\n._arrow_7e1c86 svg {\n display: block;\n fill: var(--wzl-surface);\n stroke: var(--wzl-border);\n stroke-width: 1;\n}\n\n._arrow_7e1c86[data-placement='bottom'] svg {\n transform: rotate(180deg);\n}\n\n._arrow_7e1c86[data-placement='left'] svg {\n transform: rotate(-90deg);\n}\n\n._arrow_7e1c86[data-placement='right'] svg {\n transform: rotate(90deg);\n}\n._badge_634ccb {\n position: relative;\n display: inline-flex;\n align-items: baseline;\n vertical-align: baseline;\n gap: var(--badge-gap, 4px);\n /* The shorthand first: after `font-size` it would reset the size to the parent's. */\n font: inherit;\n font-size: var(--badge-font-size, var(--wzl-font-size-xs));\n text-transform: uppercase;\n letter-spacing: 0.04em;\n --badge-emphasis-edge: var(--wzl-emphasis-fg, var(--wzl-border));\n /* A tint, grade, or stance accent paints over emphasis. */\n --badge-edge: var(--_s-accent, var(--badge-emphasis-edge));\n --badge-fill: var(--wzl-surface);\n --badge-fg: var(--badge-edge);\n background: transparent;\n border: 0;\n /* Badges never carry text-decoration. Symmetric: a badge inside a link\n suppresses the link's underline on the badge's text; a link inside a\n badge suppresses its own underline. The chip's colored background is\n the affordance signal. */\n text-decoration: none;\n}\n._badge_634ccb * { text-decoration: none; }\n\n._badge_634ccb[data-size='xs'] {\n --badge-gap: 3px;\n --badge-pad-x: 4px;\n --badge-pad-y: 0px;\n --badge-font-size: var(--wzl-font-size-2xs);\n}\n\n._badge_634ccb[data-size='md'] {\n --badge-gap: 6px;\n --badge-pad-x: 10px;\n --badge-pad-y: 3px;\n --badge-font-size: var(--wzl-font-size-sm);\n}\n\n._deco_634ccb {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: visible;\n}\n._deco_634ccb .badge-fill { fill: var(--badge-fill); stroke: none; }\n._deco_634ccb .badge-stroke { fill: none; stroke: var(--badge-edge); stroke-width: var(--badge-stroke-width, 1px); vector-effect: non-scaling-stroke; }\n._deco_634ccb .badge-focus { fill: none; stroke: var(--badge-edge); stroke-width: calc(var(--badge-stroke-width, 1px) + 1px); vector-effect: non-scaling-stroke; opacity: 0.6; }\n._deco_634ccb .badge-bevel-light { fill: rgba(255, 255, 255, 0.22); stroke: none; }\n._deco_634ccb .badge-bevel-medium-light { fill: rgba(255, 255, 255, 0.10); stroke: none; }\n._deco_634ccb .badge-bevel-medium-dark { fill: rgba(0, 0, 0, 0.16); stroke: none; }\n._deco_634ccb .badge-bevel-dark { fill: rgba(0, 0, 0, 0.32); stroke: none; }\n\n._content_634ccb {\n position: relative;\n display: inline-flex;\n align-items: baseline;\n gap: inherit;\n z-index: 1;\n /* Text color stays off .badge: a currentColor-relative edge (muted) must resolve against the\n surrounding text in the fill and stroke, not against solid's label ink. */\n color: var(--badge-fg, var(--wzl-fg-muted));\n}\n\n\n._badge_634ccb[data-variant='outline'] {\n --badge-fill: var(--wzl-surface);\n --badge-fg: var(--badge-edge);\n}\n._badge_634ccb[data-variant='solid'] {\n --badge-fill: var(--badge-edge);\n /* White on a dark fill, near-black on a light one, flipping at OKLab L 0.65: a little above\n where the two inks tie, so a mid fill like danger keeps white, which reads cleaner there. */\n --badge-fg: oklch(from var(--badge-fill) clamp(0.18, (0.65 - l) * 1000, 1) 0 0 / 1);\n font-weight: var(--wzl-font-weight-bold);\n}\n._badge_634ccb[data-variant='subtle'] {\n --badge-fill: color-mix(in oklab, var(--badge-edge) 14%, transparent);\n --badge-fg: var(--badge-edge);\n}\n/* An ungraded badge's edge is a border gray that vanishes when the outline/subtle\n variants (above) reuse it as the text color — re-assert the muted fg. */\n._badge_634ccb:not([data-grade]):not([data-variant='solid']) { --badge-fg: var(--_s-accent, var(--wzl-emphasis-fg, var(--wzl-fg-muted))); }\n\n/* The `padding` prop arrives as the --badge-pad-<side> properties. */\n._badge_634ccb {\n --_pad-top: var(--badge-pad-top, calc(var(--badge-pad-y, 1px) + var(--badge-inset-top, 0px)));\n --_pad-right: var(--badge-pad-right, calc(var(--badge-pad-x, 6px) + var(--badge-inset-right, 0px)));\n --_pad-bottom: var(--badge-pad-bottom, calc(var(--badge-pad-y, 1px) + var(--badge-inset-bottom, 0px)));\n --_pad-left: var(--badge-pad-left, calc(var(--badge-pad-x, 6px) + var(--badge-inset-left, 0px)));\n padding: var(--_pad-top) var(--_pad-right) var(--_pad-bottom) var(--_pad-left);\n}\n\n._badge_634ccb[data-shape='pill'] {\n display: inline;\n border-radius: var(--wzl-radius-pill);\n box-sizing: border-box;\n -webkit-box-decoration-break: slice;\n box-decoration-break: slice;\n}\n._badge_634ccb[data-shape='pill'] ._content_634ccb,\n._badge_634ccb[data-shape='plain'] ._content_634ccb {\n display: inline;\n}\n._badge_634ccb[data-shape='pill'][data-variant='solid'],\n._badge_634ccb[data-shape='pill'][data-variant='subtle'] {\n background: var(--badge-fill);\n}\n/* Always reserve room for the border so variants that drop the visible stroke\n (e.g. subtle, or fragments after a slice) stay the same outer width. */\n._badge_634ccb[data-shape='pill'] {\n border: var(--badge-stroke-width, 1px) solid transparent;\n}\n._badge_634ccb[data-shape='pill'][data-variant='outline'],\n._badge_634ccb[data-shape='pill'][data-variant='solid'] {\n /* Real border instead of inset box-shadow so `box-decoration-break: slice` cleanly removes\n the border-right of fragment 1 / border-left of fragment 2 at the line break. */\n border-color: var(--badge-edge);\n}\n._badge_634ccb[data-shape='pill'][data-focused='true'] {\n outline: 2px solid color-mix(in oklab, var(--badge-edge) 60%, transparent);\n outline-offset: 2px;\n}\n\n._badge_634ccb[data-shape='plain'] {\n display: inline;\n background: transparent;\n --_pad-top: var(--badge-pad-top, 0px);\n --_pad-right: var(--badge-pad-right, 0px);\n --_pad-bottom: var(--badge-pad-bottom, 0px);\n --_pad-left: var(--badge-pad-left, 0px);\n letter-spacing: 0.04em;\n text-transform: none;\n color: var(--badge-fg);\n -webkit-box-decoration-break: slice;\n box-decoration-break: slice;\n}\n/* Plain paints no fill, so there is none for solid's ink to flip against: every variant takes\n the ink outline has, the one made to be read on whatever is behind the badge. */\n._badge_634ccb[data-shape='plain'] { --badge-fg: var(--badge-edge); }\n._badge_634ccb[data-shape='plain']:not([data-grade]) { --badge-fg: var(--_s-accent, var(--wzl-emphasis-fg, var(--wzl-fg-muted))); }\n._badge_634ccb[data-shape='plain'][data-focused='true'] {\n outline: 2px solid color-mix(in oklab, var(--badge-edge) 60%, transparent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n}\n\n._badge_634ccb[data-shape='plaque'] ._content_634ccb {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 -0.5px 0 rgba(0, 0, 0, 0.5);\n}\n\nbutton._badge_634ccb,\na._badge_634ccb {\n cursor: pointer;\n outline: 0;\n /* `border: 0` from the base rule would otherwise zero out the reserved width for buttons.\n Make it transparent + zero-width so the width matches the span form, but visible borders\n from shape-specific rules still apply on top. */\n border: 0 solid transparent;\n}\n/* A removable badge's label, standing in for the root as its button or link. The root\n draws the focus ring, from data-focused. */\n._target_634ccb {\n color: inherit;\n outline: 0;\n}\n._target_634ccb:is(a, [role='button']) { cursor: pointer; }\n\n/* The label takes a pointer over the whole badge but the remove control. A shape drawn as one\n box stretches the label over the root: unpositioned, `.content` keeps its z-index as a flex\n item and stops containing the label's absolute box. */\n._badge_634ccb:not([data-shape='pill'], [data-shape='plain']) > ._content_634ccb:has(> ._target_634ccb) { position: static; }\n._badge_634ccb:not([data-shape='pill'], [data-shape='plain']) ._target_634ccb::after {\n content: '';\n position: absolute;\n inset: 0;\n}\n/* Pill and plain are inline and can wrap, where an absolute box spans from the first fragment's\n start to the last one's end rather than covering the fragments. There the label's own inline\n box grows over the root's padding and border, fragment by fragment, and each growth is\n taken back by a margin so nothing moves. */\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) :is(._content_634ccb, ._target_634ccb) {\n -webkit-box-decoration-break: inherit;\n box-decoration-break: inherit;\n}\n._badge_634ccb[data-shape='pill'] { --_edge: var(--badge-stroke-width, 1px); }\n._badge_634ccb[data-shape='plain'] { --_edge: 0px; }\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) {\n --_hit-left: calc(var(--_pad-left) + var(--_edge));\n --_hit-right: calc(var(--_pad-right) + var(--_edge));\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb {\n padding: calc(var(--_pad-top) + var(--_edge)) 0 calc(var(--_pad-bottom) + var(--_edge)) var(--_hit-left);\n margin-left: calc(-1 * var(--_hit-left));\n}\n/* The label ends in a tail joined to its last word. Being nowrap is what keeps the control on\n that word's line: Chromium breaks before an inline-block whatever the text before it says,\n unless that text is nowrap. The tail's padding is the label's click target out to the badge's\n end, and its margin takes it back at once: a line breaker that meets extra width before\n anything takes it back wraps a badge whose own measured width fits. */\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > :has(+ ._remove_634ccb)::after {\n content: '\\2060';\n white-space: nowrap;\n padding-right: calc(var(--wzl-space-1) + var(--_remove-size) + var(--_hit-right));\n margin-right: calc(-1 * (var(--_remove-size) + var(--_hit-right)));\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._remove_634ccb {\n margin-left: 0;\n}\n._badge_634ccb:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > ._target_634ccb::after {\n padding-block: calc(var(--_pad-top) + var(--_edge)) calc(var(--_pad-bottom) + var(--_edge));\n}\n/* A cloned break closes every fragment of the badge, so the label closes over each one too. Its\n last closing would reach past the badge's end, so there the tail gives the edge back. That\n closing is drawn where the tail leaves off, so the tail keeps its width and the control backs\n up into it instead. */\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb {\n padding-right: var(--_hit-right);\n margin-right: calc(-1 * var(--_hit-right));\n}\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._content_634ccb > ._target_634ccb::after {\n margin-right: calc(-1 * var(--_hit-right));\n}\n._badge_634ccb[data-break='clone']:is([data-shape='pill'], [data-shape='plain']) ._target_634ccb + ._remove_634ccb {\n margin-left: calc(-1 * var(--_remove-size));\n}\n\n/* Mixed from what the edge is made of: a property that reads itself is a cycle, and resolves to nothing. */\nbutton._badge_634ccb:hover,\na._badge_634ccb:hover,\n._badge_634ccb:has(._target_634ccb:is(a, [role='button']):hover) {\n --badge-edge: color-mix(in oklab, var(--_s-accent, var(--badge-emphasis-edge)) 88%, white);\n}\n@media (prefers-reduced-motion: reduce) {\n button._badge_634ccb:hover,\n a._badge_634ccb:hover,\n ._badge_634ccb:has(._target_634ccb:is(a, [role='button']):hover) { --badge-edge: var(--_s-accent, var(--badge-emphasis-edge)); }\n}\n\n._badge_634ccb { --_remove-size: 14px; --_remove-glyph: 10px; }\n._remove_634ccb {\n /* Above the label's stretched hit area. */\n position: relative;\n display: inline-block;\n width: var(--_remove-size);\n height: var(--_remove-size);\n margin-left: var(--wzl-space-1);\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: 50%;\n color: var(--badge-fg);\n cursor: pointer;\n /* The label's font, so `cap` below is the label's cap height. */\n font: inherit;\n /* Stands on the label's baseline in a margin box of no height, so it never grows the line or\n the badge, then drops until its middle is the middle of the capitals. The glyph is out of\n flow so that the box, having no baseline of its own, is aligned by its bottom edge. */\n vertical-align: baseline;\n align-self: baseline;\n margin-top: calc(-1 * var(--_remove-size));\n bottom: calc(0.35em - var(--_remove-size) / 2);\n bottom: calc(0.5cap - var(--_remove-size) / 2);\n}\n._remove_634ccb:hover { background: color-mix(in oklab, var(--badge-fg) 20%, transparent); }\n._remove_634ccb > svg {\n position: absolute;\n inset: 0;\n margin: auto;\n width: var(--_remove-glyph);\n height: var(--_remove-glyph);\n}\n._badge_634ccb[data-size='xs'] { --_remove-size: 12px; --_remove-glyph: 8px; }\n._badge_634ccb[data-size='md'] { --_remove-size: 16px; --_remove-glyph: 12px; }\n/* A plain badge is a bare run of text: its box is the font's own height, which is all the\n control has to fit in. */\n._badge_634ccb[data-shape='plain'] { --_remove-size: 1em; }\n\n/* BEGIN GENERATED stance rules: badge — `npm run gen:stances`, do not edit. */\n\n._badge_634ccb {\n --wzl-tint: initial;\n}\n\n._badge_634ccb {\n --_s-accent: var(--wzl-tint);\n}\n\n._badge_634ccb[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._badge_634ccb[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._badge_634ccb[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: badge */\n/* The form-row layout and the boxed frame a value sits in. Field and RadioGroup\n use the layout (`field`, `row`, `label`, `hint`, `error`); Input, Select,\n NumberField, UnitField and ComboBox add `control` to it and draw their value\n in a `frame`, which MenuButton's trigger and ListEditor's inputs wear too. */\n._field_1a89d8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._label_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n cursor: default;\n}\n\n._hint_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.4;\n}\n\n._error_1a89d8 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-danger);\n line-height: 1.4;\n}\n\n._row_1a89d8 {\n flex-direction: row;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._row_1a89d8 ._label_1a89d8 {\n flex: 1;\n min-width: 0;\n}\n\n/* A control fills its row. Beside its label, the label keeps its own width and\n the frame takes the rest; description and error (`below`) wrap onto a line of\n their own. A `fit` control keeps its own width instead. */\n._control_1a89d8 {\n width: 100%;\n min-width: 0;\n}\n\n._control_1a89d8._row_1a89d8 {\n align-items: center;\n flex-wrap: wrap;\n row-gap: var(--wzl-space-2);\n}\n\n._control_1a89d8._row_1a89d8 ._label_1a89d8 { flex: 0 0 auto; }\n._control_1a89d8._row_1a89d8:not(._fit_1a89d8) ._frame_1a89d8 { flex: 1 1 0; min-width: 0; }\n._control_1a89d8._row_1a89d8 ._below_1a89d8 { flex-basis: 100%; }\n\n._fit_1a89d8 {\n width: auto;\n max-width: 100%;\n align-items: flex-start;\n}\n\n/* A control restyling part of the frame sets the matching `--_frame-*`\n property rather than restating the declaration, so no rule here ties with\n one of its own on specificity and neither stylesheet has to load first. */\n._frame_1a89d8 {\n height: var(--_frame-h, var(--wzl-field-h, var(--wzl-control-h)));\n background: var(--_frame-bg, var(--wzl-input-surface, var(--wzl-surface-sunken)));\n border: var(--_frame-border, var(--wzl-field-border, 1px solid color-mix(in srgb, var(--wzl-border), var(--wzl-border-strong) 30%)));\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n color: var(--_frame-fg, var(--wzl-fg));\n font-size: var(--_frame-font-size, var(--wzl-field-font-size, var(--wzl-font-size)));\n line-height: 1;\n transition: border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n/* The face a frame falls back to, beneath any class: NumberField composes the\n numeric face onto its frame, and a tie here would go to whichever sheet loaded last. */\n:where(._frame_1a89d8) {\n font-family: var(--wzl-font-ui);\n}\n\n/* A frame holding a text box rings whenever it has focus; a button frame only\n for keyboard focus (`data-focus-visible` where React Aria marks it). */\n._frame_1a89d8:focus-within:not(button),\n._frame_1a89d8[data-focus-visible],\n._frame_1a89d8:focus-visible {\n border-color: var(--_frame-focus-border, var(--wzl-focus-ring));\n box-shadow: var(--_frame-focus-shadow, var(--wzl-field-focus-shadow, 0 0 0 1px var(--wzl-focus-ring)));\n outline: var(--_frame-focus-outline, none);\n}\n\n._field_1a89d8[data-invalid] ._frame_1a89d8 {\n border-color: var(--wzl-danger);\n}\n\n._field_1a89d8[data-disabled] ._frame_1a89d8,\n._frame_1a89d8[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._frame_1a89d8 input {\n flex: 1;\n min-width: 0;\n background: transparent;\n border: none;\n outline: none;\n color: inherit;\n font: inherit;\n}\n\n._frame_1a89d8 input::placeholder {\n color: var(--wzl-fg-subtle);\n}\n._frame_8d77af {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: 0 var(--wzl-field-pad-x);\n}\n\n._frame_8d77af input {\n padding: 0;\n}\n\n._adornment_8d77af {\n display: inline-flex;\n align-items: center;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-sm);\n pointer-events: none;\n}\n._handle_c30bf5 {\n flex-shrink: 0;\n width: 4px;\n align-self: stretch;\n cursor: ew-resize;\n background: transparent;\n border-left: 1px solid var(--wzl-border);\n /* The bar is 4px of hit area — thin enough to read as a seam, wide\n enough to grab. `touch-action: none` keeps a touch drag from being\n stolen by the scroll container it usually sits inside. */\n touch-action: none;\n}\n\n._handle_c30bf5._horizontal_c30bf5 {\n width: auto;\n height: 4px;\n align-self: auto;\n cursor: ns-resize;\n border-left: none;\n border-top: 1px solid var(--wzl-border);\n}\n\n._handle_c30bf5:hover {\n background: var(--wzl-border);\n}\n\n._handle_c30bf5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -1px;\n}\n._twisty_68cd0d {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* A floor, not a size: a control sized to a 12px glyph is a 12px target,\n which is under every pointer-size guideline there is. Stated as a minimum\n so a larger mark grows the target with it rather than being shrunk to fit\n — a flex item's default `flex-shrink: 1` would otherwise crush it. */\n min-width: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n min-height: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n padding: 0;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n background: none;\n /* Not the UA's buttontext: the disabled fill is --wzl-fg-subtle, a step down from the text beside it. */\n color: inherit;\n line-height: 1;\n cursor: pointer;\n}\n\n._twisty_68cd0d:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._twisty_68cd0d:disabled {\n cursor: not-allowed;\n}\n\n._mark_68cd0d {\n display: block;\n flex: none;\n}\n\n._lozenge_68cd0d {\n fill: var(--wzl-disclosure-fill, var(--wzl-accent));\n transition: fill var(--wzl-motion-fast) var(--wzl-ease-out-cubic);\n}\n\n._twisty_68cd0d:hover:not(:disabled) ._lozenge_68cd0d {\n fill: color-mix(in oklab, var(--wzl-disclosure-fill, var(--wzl-accent)), white 15%);\n}\n\n._twisty_68cd0d:disabled ._lozenge_68cd0d {\n fill: var(--wzl-fg-subtle);\n}\n\n._sign_68cd0d {\n fill: none;\n stroke: var(--wzl-fg-on-accent);\n stroke-width: 1;\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._lozenge_68cd0d {\n transition: none;\n }\n}\n\n._row_68cd0d {\n display: flex;\n align-items: center;\n gap: var(--wzl-disclosure-gap, 4px);\n}\n\n/* The row's content takes the rest and is allowed to shrink; the twisty is\n not, so a long label truncates rather than crushing the control. */\n._rowBody_68cd0d {\n flex: 1 1 auto;\n min-width: 0;\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */\n._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}\n\n._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}\n\n._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}\n\n._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}\n\n._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}\n\n._optionIcon_f29eb6 > svg {\n display: block;\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}._optionIcon_f29eb6 > svg {\n display: block;\n}/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n/* `orientation='row'`: the shared layout sets the trigger beside its label; a\n fit one keeps its own width there rather than the fill width below. */\n._row_da172f._fit_da172f ._trigger_da172f { width: auto; }\n\n._trigger_da172f {\n display: flex;\n width: 100%;\n align-items: center;\n gap: var(--wzl-space-3);\n /* Hooks, each defaulting to what the frame already draws: the visible box is\n this button, not the root a consumer's `className` lands on, so a surface\n that has to restyle it sets these rather than reaching in here. Together\n they draw the bare look too, for a surface that wants it from context\n rather than from `variant`: a transparent fill, no padding, the chevron\n hidden, the value underlined and an outline for focus. */\n padding: var(--wzl-select-pad, 0 var(--wzl-space-3) 0 var(--wzl-space-5));\n --_frame-h: var(--wzl-select-h);\n --_frame-bg: var(--wzl-select-bg);\n --_frame-border: var(--wzl-select-border);\n --_frame-fg: var(--wzl-select-fg, var(--wzl-fg));\n --_frame-font-size: var(--wzl-select-font-size);\n --_frame-focus-border: var(--wzl-select-focus-border);\n --_frame-focus-shadow: var(--wzl-select-focus-shadow);\n --_frame-focus-outline: var(--wzl-select-focus-outline);\n cursor: pointer;\n}\n\n._trigger_da172f[data-focus-visible] {\n outline-offset: 2px;\n}\n\n._value_da172f {\n flex: 1;\n min-width: 0;\n text-align: var(--wzl-select-align, left);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n /* The ellipsis needs `overflow: hidden`, which makes the line box a clip —\n the trigger's `line-height: 1` would cut this text's ascenders and\n descenders off. `normal` is the font's own leading, so it never can. */\n line-height: normal;\n /* Unset, the trigger's own weight. */\n font-weight: var(--wzl-select-weight);\n /* The underline hook: none unless a surface or `indicator` turns it on. */\n text-decoration-line: var(--wzl-select-underline, none);\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-decoration-color: var(--wzl-fg-subtle);\n text-underline-offset: 0.25em;\n transition: text-decoration-color var(--wzl-motion-fast);\n}\n\n._trigger_da172f:hover ._value_da172f,\n._trigger_da172f[data-focus-visible] ._value_da172f {\n text-decoration-style: solid;\n text-decoration-color: var(--wzl-fg-muted);\n}\n\n._select_da172f[data-open] ._value_da172f {\n text-decoration-style: solid;\n text-decoration-color: var(--wzl-accent);\n}\n\n/* `variant='bare'`: no box. The focus ring moves to an outline, since there is no border to recolor. */\n._bare_da172f ._trigger_da172f {\n padding: 0;\n background: transparent;\n border: var(--wzl-select-border, 1px solid transparent);\n}\n\n._bare_da172f ._trigger_da172f[data-focus-visible] {\n border-color: transparent;\n box-shadow: none;\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._value_da172f[data-placeholder] {\n color: var(--wzl-fg-subtle);\n text-decoration-color: var(--wzl-fg-subtle);\n}\n\n._chevron_da172f {\n display: var(--wzl-select-chevron, block);\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: 0 0 auto;\n}\n\n/* `indicator='underline'`: the value carries the affordance itself. A text\n decoration rather than a border, so it hugs the word and adds nothing to the\n box — the row's height and the value's width are the same either way. The\n rest of the underline's look sits on `.value`, shared with the hook. */\n._underlined_da172f ._value_da172f {\n text-decoration-line: underline;\n}\n\n/* Nothing sits beside the value, so the row's gap and the padding kept for a\n caret are the value's to spend. */\n._underlined_da172f ._trigger_da172f,\n._plain_da172f ._trigger_da172f {\n gap: 0;\n}\n\n._bare_da172f._underlined_da172f ._trigger_da172f,\n._bare_da172f._plain_da172f ._trigger_da172f {\n padding: 0;\n}\n\n/* A list that hangs below its trigger takes the trigger's width, so the two\n read as one control. One that opens over it is already tied to the trigger\n by its selected row — widening it to match would only add blank rule beside\n the labels. `data-align` is set on exactly the ones that do. */\n._popover_da172f:not([data-align]) {\n min-width: var(--trigger-width);\n}\n\n._popover_da172f {\n max-height: inherit;\n outline: none;\n}\n\n._option_da172f {\n}\n\n:is(._option_da172f, ._section_da172f) + ._section_da172f,\n._section_da172f + ._option_da172f {\n margin-top: var(--wzl-space-2);\n padding-top: var(--wzl-space-2);\n border-top: 1px solid var(--wzl-line-subtle);\n}\n\n._sectionHeader_da172f {\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg-subtle);\n}\n\n._optionLabel_da172f {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* A trigger that sets its value against its end edge gets a list that does the\n same, so the row that opened over the value stays on top of it. */\n._popover_da172f[data-align='end'] ._option_da172f {\n justify-content: flex-end;\n}\n\n._check_da172f {\n width: 10px;\n height: 10px;\n flex: 0 0 auto;\n opacity: 0;\n}\n\n._option_da172f[data-selected] ._check_da172f {\n opacity: 1;\n}\n\n._value_da172f ._check_da172f {\n display: none;\n}\n\n/* `width='fit'`: a hidden stack of every option label shares the value's grid\n cell, so the trigger sizes to its widest option and never resizes on select. */\n._fit_da172f ._trigger_da172f {\n display: grid;\n grid-template-columns: auto auto;\n}\n\n._fit_da172f._underlined_da172f ._trigger_da172f,\n._fit_da172f._plain_da172f ._trigger_da172f {\n grid-template-columns: auto;\n}\n\n._fit_da172f ._value_da172f,\n._fit_da172f ._sizer_da172f {\n grid-area: 1 / 1;\n}\n\n._fit_da172f ._chevron_da172f {\n grid-area: 1 / 2;\n}\n\n._sizer_da172f {\n}\n/* The label a `Checkbox` or a `Switch` wraps round its control and its text. */._toggleLabel_5ff28a {\n /* Holds the Switch's react-aria hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n /* The row reports its text's baseline; the control centers on the text instead of lending the row its own. */\n align-items: baseline;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}._toggleLabel_5ff28a > * {\n align-self: center;\n}/* The words beside the control. */._toggleLabel_5ff28a > ._toggleText_5ff28a {\n align-self: baseline;\n}\n\n._switch_b64abf {\n}\n\n._switch_b64abf[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._track_b64abf {\n position: relative;\n flex: 0 0 auto;\n width: 28px;\n height: 16px;\n /* A share of the text color, not a surface: a sunken fill vanishes on a surface as dark as it is,\n and leaves the thumb a dot with nothing round it. */\n background: color-mix(in srgb, var(--wzl-fg) 22%, transparent);\n /* Keeps the box the thumb is placed in; the track's fill shows through it. */\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-pill);\n box-shadow: var(--wzl-bevel-sunken, none);\n transition: background-color var(--wzl-motion-fast), border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._switch_b64abf[data-hovered] ._track_b64abf {\n border-color: var(--wzl-border-strong);\n}\n\n._switch_b64abf[data-hovered][data-selected] ._track_b64abf {\n border-color: color-mix(in oklab, var(--wzl-accent-strong) 60%, var(--wzl-fg));\n}\n\n._switch_b64abf[data-focus-visible] ._track_b64abf {\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._switch_b64abf[data-selected] ._track_b64abf {\n background: var(--wzl-accent-strong);\n}\n\n._thumb_b64abf {\n position: absolute;\n top: 1px;\n left: 1px;\n width: 12px;\n height: 12px;\n background: var(--wzl-fg);\n border-radius: 50%;\n box-shadow: var(--wzl-bevel-raised, none);\n transition: transform var(--wzl-motion-fast);\n}\n\n._switch_b64abf[data-selected] ._thumb_b64abf {\n transform: translateX(12px);\n background: var(--wzl-fg-on-accent);\n}\n\n._label_b64abf {\n line-height: 1.2;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */\n._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}\n\n/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */\n._item_3eaeae {\n opacity: var(--along-shown, 1);\n}\n\n/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */\n._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}\n\n._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}\n\n._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}\n\n/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */\n._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* Text drawn along the run by `useRunText`: the glyphs it stands in for are kept for layout and made transparent. */\n[data-run-text-hides] {\n -webkit-text-fill-color: transparent;\n}\n\n/* A field's value is no text node, so nothing is drawn in its place. */\n[data-run-text-hides] :is(input, textarea) {\n -webkit-text-fill-color: currentColor;\n}\n\n._bend_2023ee {\n position: absolute;\n left: 0;\n top: 0;\n inline-size: 0;\n block-size: 0;\n pointer-events: none;\n -webkit-text-fill-color: currentColor;\n}\n/* Shared by ToggleBar, ButtonBar and OptionsBar, which look alike and differ\n in what a segment does. Lives here rather than in any of them so none owns\n the others' styling.\n\n The track is a pill-shaped well. The selected segment is a flat accent\n fill or, as the theme's --wzl-gloss runs 0 to 1, a tinted glass cylinder\n of the same \"lozenge\" family as the standalone Button, faded in the way\n Button.module.css fades its own. Glass params come from the\n `--btn-*` custom properties (see Button.module.css) so the Button Lab\n can tune both surfaces with one set of sliders. */\n._root_21fce6 {\n display: inline-flex;\n height: var(--tb-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.18) 0%,\n rgba(0, 0, 0, 0.05) 100%\n );\n border-radius: var(--wzl-radius-pill);\n /* Clip segments to the track outline so interior corners read crisp and\n the selected segment's glass treatment doesn't paint over the rounded\n outer pixels. */\n overflow: hidden;\n box-shadow: var(\n --wzl-bevel-sunken,\n inset 0 1px 2px rgba(0, 0, 0, 0.4),\n 0 1px 0 rgba(255, 255, 255, 0.06)\n );\n /* The track clips, so without this a squeezing row shrinks it to nothing. */\n min-width: max-content;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n}\n\n._segment_21fce6 {\n position: relative;\n flex: 1 1 0;\n /* Equal widths when there is room, never narrower than the label. The\n segment clips its gloss, which otherwise drops its flex minimum to 0. */\n min-width: max-content;\n padding: 0 var(--wzl-space-6);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n margin: 0;\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-field-font-size, var(--btn-fontsize, var(--wzl-font-size)));\n line-height: 1;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n /* Only round the outer corners of the bar — middle segments stay square\n so the seams between them don't render as facing parentheses. */\n border-radius: 0;\n isolation: isolate;\n overflow: hidden;\n transition: color var(--wzl-motion-fast);\n}\n\n/* 8px around a 14px glyph is most of a segment. */\n._segment_21fce6:has(> svg) {\n padding: 0 5px;\n}\n\n._segment_21fce6:first-of-type {\n border-radius: 0;\n border-start-start-radius: var(--wzl-radius-pill);\n border-end-start-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:last-of-type {\n border-radius: 0;\n border-start-end-radius: var(--wzl-radius-pill);\n border-end-end-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-pill);\n}\n\n._segment_21fce6:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* The track clips, so the ring stays inset, where a selected segment's\n accent fill would swallow it. */\n._segmentSelected_21fce6:focus-visible {\n outline-color: var(--wzl-fg-on-accent);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6:focus-visible {\n outline-color: var(--wzl-focus-ring);\n}\n\n._segment_21fce6:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n color: var(--wzl-fg);\n}\n\n/* Selected segment. Mirrors a confirm Button. */\n._segmentSelected_21fce6 {\n --_flat-fill: color-mix(in srgb, var(--wzl-accent) calc((1 - var(--wzl-gloss)) * 100%), transparent);\n background: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) var(--btn-top-alpha, 45%), transparent) 0%,\n color-mix(in srgb, var(--wzl-accent) var(--btn-upper-alpha, 70%), transparent) calc(var(--btn-equator, 52%) - var(--btn-equator-spread, 12%)),\n color-mix(in srgb, var(--wzl-accent) var(--btn-equator-tint, 95%), white) var(--btn-equator, 52%),\n var(--wzl-accent) calc(var(--btn-equator, 52%) + var(--btn-equator-spread, 12%) * 1.6),\n color-mix(in srgb, var(--wzl-accent) var(--btn-base-tint, 70%), black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur, 6px) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate, 1.3) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur, 6px) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate, 1.3) - 1) * var(--wzl-gloss)));\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n text-shadow:\n 0 1px 0 rgba(0, 0, 0, calc(var(--btn-text-shadow, 0.35) * var(--wzl-gloss))),\n var(--btn-text-inset-x, 0px) var(--btn-text-inset-y, 1px) 0 rgba(0, 0, 0, calc(var(--btn-text-inset, 0.55) * var(--wzl-gloss))),\n 0 0 6px rgba(0, 0, 0, calc(var(--btn-text-shadow, 0.35) * 0.5 * var(--wzl-gloss)));\n box-shadow: var(\n --wzl-bevel-raised,\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi, 0.42) * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo, 0.3) * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(var(--btn-rim, 0.22) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near, 0.3) * var(--wzl-gloss))),\n 0 2px 4px rgba(0, 0, 0, calc(var(--btn-drop-far, 0.18) * 0.8 * var(--wzl-gloss)))\n );\n}\n\n/* Specular gloss on the selected segment. Top corners inherit the\n segment's radius so they hug the upper edge cleanly; bottom corners\n are flattened so the gloss ends in a straight line at the equator\n instead of two little curves that read as `)(` brackets. */\n._segmentSelected_21fce6::before {\n content: '';\n position: absolute;\n inset: 1px 1px var(--btn-gloss-bottom, 50%) 1px;\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, var(--btn-gloss-top, 0.42)) 0%,\n rgba(255, 255, 255, var(--btn-gloss-mid, 0.12)) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n pointer-events: none;\n z-index: 1;\n opacity: var(--wzl-gloss);\n}\n\n._segmentSelected_21fce6 > * {\n position: relative;\n z-index: 2;\n}\n\n/* Mixed segment (`aria-pressed=\"mixed\"`) — the sources disagree. Reads as a\n deliberate third state rather than a dimmed \"on\": a flat accent wash with\n none of the selected segment's gloss/cylinder treatment, so it can't be\n mistaken for the glass lozenge at a glance. */\n._segmentMixed_21fce6 {\n background: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n color: var(--wzl-fg);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wzl-accent) 45%, transparent);\n}\n\n._segmentMixed_21fce6:hover:not(:disabled) {\n background: color-mix(in srgb, var(--wzl-accent) 32%, transparent);\n}\n\n._variant_minimal_21fce6 ._segmentMixed_21fce6 {\n background: color-mix(in srgb, var(--wzl-accent) 18%, transparent);\n box-shadow: none;\n color: var(--wzl-fg);\n}\n\n/* Small variant — ~60% of the default height, with proportionally reduced\n padding and font. Sized for dense surfaces (lab control panels, inline\n filters, etc.). */\n._size_sm_21fce6 {\n height: var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px));\n padding: 1px;\n}\n\n._size_sm_21fce6 ._segment_21fce6 {\n padding: 0 var(--wzl-space-4);\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n}\n\n/* `.size_sm .segment` outranks the glyph rule above on specificity. */\n._size_sm_21fce6 ._segment_21fce6:has(> svg) {\n padding: 0 3px;\n}\n\n/* Minimal variant — strips the pill track, glass selected state, inset\n shadows, and outer padding. Used in dense diagnostic surfaces (dispatch\n trace, lab inspectors) where the bar must read as plain text controls. */\n._variant_minimal_21fce6 {\n height: auto;\n padding: 0;\n background: none;\n border-radius: 0;\n box-shadow: none;\n gap: var(--wzl-space-1);\n}\n\n/* No font size here: the bar's `size` sets it, as under every variant. */\n._variant_minimal_21fce6 ._segment_21fce6 {\n padding: 0 var(--wzl-space-2);\n font-weight: var(--wzl-font-weight-medium);\n line-height: 1.4;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg-muted);\n transition: none;\n}\n\n._variant_minimal_21fce6 ._segment_21fce6:first-of-type,\n._variant_minimal_21fce6 ._segment_21fce6:last-of-type,\n._variant_minimal_21fce6 ._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-sm);\n}\n\n._variant_minimal_21fce6 ._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n color: var(--wzl-fg);\n background: var(--wzl-surface-hover);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6 {\n background: none;\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n color: var(--wzl-accent-fg);\n text-shadow: none;\n box-shadow: none;\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._variant_minimal_21fce6 ._segmentSelected_21fce6::before {\n content: none;\n}\n\n/* Flat variant — no track, no glass, no pill: each segment is its own\n outlined cell. For property panels, where a bar sits in a row beside\n inputs and the glass cylinder makes it the loudest thing on the surface. */\n._variant_flat_21fce6 {\n padding: 0;\n background: none;\n border-radius: var(--wzl-radius-sm);\n box-shadow: none;\n overflow: visible;\n}\n\n._variant_flat_21fce6 ._segment_21fce6 {\n /* The same faint rule a text box draws, so a field's segments and its boxes read as one family. */\n border: var(--wzl-field-border, 1px solid color-mix(in srgb, var(--wzl-border), var(--wzl-border-strong) 30%));\n border-radius: 0;\n /* Sunken, so an unselected cell sits below the panel and the selected one\n reads as raised without needing the glass treatment back. */\n background: var(--wzl-surface-sunken);\n box-shadow: var(--wzl-bevel-sunken, none);\n color: var(--wzl-fg-muted);\n}\n\n/* Adjacent cells share one rule rather than stacking two. */\n._variant_flat_21fce6 ._segment_21fce6 ~ ._segment_21fce6 {\n margin-inline-start: -1px;\n}\n\n._variant_flat_21fce6 ._segment_21fce6:first-of-type {\n border-start-start-radius: var(--wzl-radius-sm);\n border-end-start-radius: var(--wzl-radius-sm);\n}\n\n._variant_flat_21fce6 ._segment_21fce6:last-of-type {\n border-start-end-radius: var(--wzl-radius-sm);\n border-end-end-radius: var(--wzl-radius-sm);\n}\n\n._variant_flat_21fce6 ._segment_21fce6:hover:not(:disabled):not(._segmentSelected_21fce6) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n\n._variant_flat_21fce6 ._segmentSelected_21fce6 {\n /* Above its neighbors, or the next cell's left border covers its right one. */\n z-index: 1;\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n text-shadow: none;\n box-shadow: var(--wzl-bevel-raised, none);\n}\n\n._variant_flat_21fce6 ._segmentSelected_21fce6::before {\n content: none;\n}\n\n/* A vertical row: the well and its segments turned a quarter turn, each label still upright. */\n._root_21fce6[data-orientation='vertical'] {\n flex-direction: column;\n height: auto;\n min-width: 0;\n}\n\n._root_21fce6[data-orientation='vertical'] ._segment_21fce6 {\n min-height: calc(var(--tb-h, var(--wzl-control-h)) - 2 * var(--wzl-space-1));\n}\n\n._size_sm_21fce6[data-orientation='vertical'] ._segment_21fce6 {\n min-height: calc(var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px)) - 2px);\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:first-of-type {\n border-radius: var(--wzl-radius-pill) var(--wzl-radius-pill) 0 0;\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:last-of-type {\n border-radius: 0 0 var(--wzl-radius-pill) var(--wzl-radius-pill);\n}\n\n._root_21fce6[data-orientation='vertical']:not(._variant_minimal_21fce6, ._variant_flat_21fce6) ._segment_21fce6:only-of-type {\n border-radius: var(--wzl-radius-pill);\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6 ~ ._segment_21fce6 {\n margin-inline-start: 0;\n margin-block-start: -1px;\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6:first-of-type {\n border-radius: var(--wzl-radius-sm) var(--wzl-radius-sm) 0 0;\n}\n\n._variant_flat_21fce6[data-orientation='vertical'] ._segment_21fce6:last-of-type {\n border-radius: 0 0 var(--wzl-radius-sm) var(--wzl-radius-sm);\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A segmented row laid along a track shape, as `useRunRow` lays any row. The well and the lit segments are SVG\n strokes along the run; `--_h` is the well's thickness and the padding its rim, read back for the stroke ends. */\n._root_a9f786 {\n --_h: var(--tb-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n column-gap: 0;\n user-select: none;\n -webkit-user-select: none;\n}\n\n._root_a9f786[data-size='sm'] {\n --_h: var(--tb-h, calc(var(--wzl-font-size-sm) * 1.4 + 2px));\n padding: 1px;\n}\n\n/* Without a well the segments are boxes of their own, so they stand apart. */\n._root_a9f786:not([data-variant='default']) {\n padding: 0;\n column-gap: var(--wzl-space-1);\n}\n\n/* `.segment` sets `position: relative` at the specificity `onRun` sets `absolute`. */\n._root_a9f786 > [data-segment] {\n position: absolute;\n}\n\n._root_a9f786[data-variant='default'] > [data-segment] {\n block-size: calc(var(--_h) - 2 * var(--wzl-space-1));\n}\n\n._root_a9f786[data-variant='default'][data-size='sm'] > [data-segment] {\n block-size: calc(var(--_h) - 2px);\n}\n\n._root_a9f786[data-variant='flat'] > [data-segment] {\n block-size: var(--_h);\n margin: 0;\n}\n\n/* The lit stroke is behind the label, so the label takes the colors it would on a lit segment. */\n._root_a9f786[data-variant='default'] > [data-state='on'] {\n color: var(--wzl-fg-on-accent);\n --wzl-fg: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._root_a9f786[data-variant='default'] > [data-state='mixed'] {\n --wzl-fg-muted: var(--wzl-fg);\n}\n\n._well_a9f786 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n/* The straight well's top-to-bottom shade, at its midpoint. */\n._wellTrack_a9f786 {\n fill: none;\n stroke: rgba(0, 0, 0, 0.12);\n stroke-width: var(--_h);\n stroke-linecap: round;\n}\n\n._wellRim_a9f786 {\n fill: none;\n stroke: white;\n stroke-width: calc(var(--_h) - 2 * var(--wzl-space-1));\n stroke-linecap: round;\n}\n\n._root_a9f786[data-size='sm'] ._wellRim_a9f786 {\n stroke-width: calc(var(--_h) - 2px);\n}\n\n._lit_a9f786,\n._mixed_a9f786 {\n fill: none;\n stroke-width: var(--_h);\n}\n\n._lit_a9f786 {\n stroke: var(--wzl-accent);\n}\n\n._mixed_a9f786 {\n stroke: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n}\n/* The one skin for a native <input type=\"checkbox\">. Imported by Checkbox and by\n the property rows, which render the same DOM. The box keys off the input's own\n pseudo-classes; a label's hover reaches its control's :hover. */\n._checkbox_6bb7b4 {\n appearance: none;\n -webkit-appearance: none;\n position: relative;\n flex: 0 0 auto;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n margin: 0;\n /* Not the UA's fieldtext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n cursor: pointer;\n transition: background-color var(--wzl-motion-fast), border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._checkbox_6bb7b4:hover:not(:disabled) {\n border-color: var(--wzl-fg-muted);\n}\n\n._checkbox_6bb7b4:focus-visible {\n outline: none;\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._checkbox_6bb7b4:checked,\n._checkbox_6bb7b4:indeterminate {\n background: var(--wzl-accent-strong);\n border-color: var(--wzl-accent-strong);\n}\n\n._checkbox_6bb7b4[aria-invalid='true'] {\n border-color: var(--wzl-danger);\n}\n\n/* The mark is a mask filled with the on-accent color, so it follows the theme. */\n._checkbox_6bb7b4:checked::before,\n._checkbox_6bb7b4:indeterminate::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--wzl-fg-on-accent);\n -webkit-mask: var(--_check-mark) center / 100% 100% no-repeat;\n mask: var(--_check-mark) center / 100% 100% no-repeat;\n}\n\n._checkbox_6bb7b4:checked {\n --_check-mark: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpolyline points='3,7.5 6,10.5 11,4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n}\n\n._checkbox_6bb7b4:indeterminate {\n --_check-mark: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cline x1='3' y1='7' x2='11' y2='7' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");\n}\n\n._checkbox_6bb7b4:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._frame_f0cf2f {\n display: flex;\n align-items: stretch;\n overflow: hidden;\n}\n\n._frame_f0cf2f input {\n padding: 0 var(--wzl-field-pad-x);\n text-align: right;\n -moz-appearance: textfield;\n}\n\n._frame_f0cf2f input::-webkit-outer-spin-button,\n._frame_f0cf2f input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n._steppers_f0cf2f {\n display: flex;\n flex-direction: column;\n border-inline-start: 1px solid var(--wzl-border);\n}\n\n[data-stepper-side='start'] > ._steppers_f0cf2f {\n order: -1;\n border-inline-start: none;\n border-inline-end: 1px solid var(--wzl-border);\n}\n\n._stepper_f0cf2f {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-control-h-xs);\n flex: 1;\n /* The two share the frame's height; left to their glyphs' line boxes they\n overflow it, and the frame clips the lower one. */\n min-height: 0;\n height: auto;\n overflow: hidden;\n background: transparent;\n border: none;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n padding: 0;\n font: inherit;\n font-size: min(var(--wzl-font-size-2xs), calc(var(--wzl-field-h, var(--wzl-control-h)) * 0.35));\n line-height: 1;\n}\n\n._stepper_f0cf2f:not(:last-child) {\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._stepper_f0cf2f[data-hovered]:not([data-disabled]),\n._stepper_f0cf2f:hover:not(:disabled):not([data-rac]) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n\n._stepper_f0cf2f[data-pressed]:not([data-disabled]),\n._stepper_f0cf2f:active:not(:disabled):not([data-rac]) {\n background: var(--wzl-surface-pressed);\n}\n\n._stepper_f0cf2f[data-disabled],\n._stepper_f0cf2f:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* A disabled field dims at its frame, steppers included. */\n._frame_f0cf2f[data-disabled] ._stepper_f0cf2f:disabled {\n opacity: 1;\n}\n\n/* Mirrors the property rows' editable readout (`.readoutInput`), so a number\n sitting inside other chrome does not draw a second box around itself. */\n._ghost_f0cf2f {\n --_frame-h: auto;\n --_frame-bg: transparent;\n --_frame-border: 1px solid transparent;\n --_frame-fg: var(--wzl-accent-fg);\n --_frame-focus-shadow: none;\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._ghost_f0cf2f input {\n padding: 1px 0;\n}\n\n._ghost_f0cf2f:hover {\n background: color-mix(in srgb, currentColor 8%, transparent);\n}\n\n._ghost_f0cf2f:focus-within {\n background: var(--wzl-surface-sunken);\n}\n\n/* `width='fit'` states the field's width in characters: left alone an `<input>`\n asks for its 20-character intrinsic width, wider than most rows it sits in. */\n._fit_f0cf2f ._frame_f0cf2f {\n width: fit-content;\n max-width: 100%;\n}\n\n._fit_f0cf2f ._frame_f0cf2f input {\n flex: 0 0 auto;\n width: var(--wzl-number-field-width, 9ch);\n}\n/* The one skin for a native <input type=\"range\">. Imported by InlineRange and\n by the property rows, which render the same DOM and used to carry three\n independently authored copies of these rules. labkit's theme/base.less\n extends it onto a bare range under `.lk-root`, so it is the only copy.\n\n The track is painted here rather than left to `accent-color`: a UA fills the\n left of the track with the accent but draws the remainder near-white on a\n dark surface whatever `color-scheme` says, and overriding the track's\n background removes the accent fill instead of recoloring the remainder. */\n._range_04447f {\n appearance: none;\n -webkit-appearance: none;\n /* The slop: padding widens the hit box and the negative margin gives the space\n back. Border-box because the property rows and labkit set it on every descendant.\n No thumb slop: a native thumb re-centers on the pointer wherever a press lands. */\n box-sizing: border-box;\n width: calc(100% + 2 * var(--wzl-slider-track-slop));\n min-inline-size: calc(48px + 2 * var(--wzl-slider-track-slop));\n /* The box is taller than the track so the thumb has room to spill; a surface\n where the element itself IS the track overrides this. */\n height: calc(var(--wzl-range-box-h, 12px) + 2 * var(--wzl-slider-track-slop));\n padding: var(--wzl-slider-track-slop);\n margin: calc(-1 * var(--wzl-slider-track-slop));\n /* Transparent so the track pseudo-element shows; a surface that paints the element itself overrides it. */\n background: var(--wzl-range-bg, transparent);\n background-clip: content-box;\n cursor: pointer;\n}\n\n._range_04447f::-webkit-slider-runnable-track {\n height: var(--wzl-slider-track-h);\n border-radius: var(--wzl-radius-sm);\n background: var(\n --wzl-range-track-bg,\n color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-track-mix), transparent)\n );\n box-shadow: var(--wzl-bevel-sunken, none);\n}\n\n._range_04447f::-moz-range-track {\n height: var(--wzl-slider-track-h);\n border-radius: var(--wzl-radius-sm);\n background: var(\n --wzl-range-track-bg,\n color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-track-mix), transparent)\n );\n box-shadow: var(--wzl-bevel-sunken, none);\n}\n\n._range_04447f::-webkit-slider-thumb {\n appearance: none;\n -webkit-appearance: none;\n width: var(--wzl-slider-thumb-size);\n height: var(--wzl-slider-thumb-size);\n border: none;\n border-radius: 50%;\n background: color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-thumb-mix), transparent);\n box-shadow: var(--wzl-bevel-raised, none);\n /* WebKit and Blink hang the thumb from the track's top edge. A transform, not\n margin-top: Blink rounds a thumb margin to a whole CSS pixel, which leaves an\n odd track/thumb gap half a pixel off center at every DPR. */\n transform: translateY(calc((var(--wzl-slider-track-h) - var(--wzl-slider-thumb-size)) / 2));\n}\n\n._range_04447f::-moz-range-thumb {\n width: var(--wzl-slider-thumb-size);\n height: var(--wzl-slider-thumb-size);\n border: none;\n border-radius: 50%;\n background: color-mix(in srgb, var(--wzl-accent-fg) var(--wzl-slider-thumb-mix), transparent);\n box-shadow: var(--wzl-bevel-raised, none);\n}\n\n/* :where() keeps these at the specificity of `.range` alone, which is what a bare\n labkit range extending this skin needs to stay at zero. */\n._range_04447f:where(:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: calc(2px - var(--wzl-slider-track-slop));\n}\n\n._range_04447f:where(:disabled) {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n/* Alpha variant: a fainter track, used where the row already carries a color\n swatch and the slider must not compete with it. */\n._alpha_04447f::-webkit-slider-runnable-track {\n background: var(--wzl-range-track-bg, color-mix(in srgb, var(--wzl-accent) 10%, transparent));\n}\n\n._alpha_04447f::-moz-range-track {\n background: var(--wzl-range-track-bg, color-mix(in srgb, var(--wzl-accent) 10%, transparent));\n}\n\n/* A dead alpha track keeps its groove but loses its thumb, so the affordance\n reads inert rather than merely dimmed. Keyed off `:disabled`, which a color field\n already sets on the input — not off a class on the row. One rule per engine:\n Blink and WebKit drop a whole selector list that names a -moz- pseudo-element. */\n._alpha_04447f:disabled::-webkit-slider-runnable-track {\n background: color-mix(in srgb, var(--wzl-fg) 5%, transparent);\n}\n\n._alpha_04447f:disabled::-moz-range-track {\n background: color-mix(in srgb, var(--wzl-fg) 5%, transparent);\n}\n\n._alpha_04447f:disabled::-webkit-slider-thumb {\n background: transparent;\n}\n\n._alpha_04447f:disabled::-moz-range-thumb {\n background: transparent;\n}\n\n/* A track with stops draws them in the box's background, behind the track and the\n thumb; `useTrackStops` sets one layer per stop and where each sits. */\n._range_04447f._stops_04447f {\n background-image: var(--wzl-range-stop-marks);\n background-position: var(--wzl-range-stop-at);\n background-size: 1px 75%;\n background-repeat: no-repeat;\n background-origin: content-box;\n}\n/* Track and thumb come from the shared range skin. What is local to\n InlineRange is the filled-to-N% paint, which no other surface has:\n `--slider-fill` carries the value, since no static rule expresses it. */\n._range_d74229 {\n flex: 1;\n --wzl-range-bg: linear-gradient(\n to right,\n var(--wzl-accent) 0 var(--slider-fill, 0%),\n var(--wzl-border-strong) var(--slider-fill, 0%) 100%\n );\n --wzl-range-box-h: var(--wzl-slider-track-h);\n /* The gradient above IS the track, so the shared track paint must not land on top of it. */\n --wzl-range-track-bg: transparent;\n border-radius: var(--wzl-radius-pill);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* `InlineRange` owns the track; this only says how it shares the row. */\n._range_cb2254 {\n flex: 1;\n}\n\n._readout_cb2254 {\n /* Holds `100%`: three digits and a percent sign wider than a digit. */\n min-inline-size: 5ch;\n text-align: end;\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n opacity: 0.7;\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._root_367058 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n._chip_367058 {\n position: relative;\n display: inline-flex;\n border-radius: var(--wzl-radius-sm);\n overflow: hidden;\n}\n\n._color_367058 {\n inline-size: 28px;\n block-size: var(--wzl-control-h-sm);\n padding: 0;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: none;\n cursor: pointer;\n}\n\n._color_367058:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._color_367058:focus-visible {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n/* Indeterminate (mixed) presentation: checkerboard overlay atop the\n * swatch. pointer-events: none so the input stays clickable. */\n._root_367058[data-mixed] ._chip_367058::after {\n content: '';\n position: absolute;\n inset: 1px;\n border-radius: var(--wzl-radius-sm);\n pointer-events: none;\n background: var(--wzl-checker-layer);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* `position: relative` holds the spoken copy, which is out of flow, inside this box. */\n._quantity_efab3c {\n position: relative;\n white-space: nowrap;\n}\n\n/* What a value is measured in, and what a member is called, sit back from how much. */\n._quantity_efab3c :is([data-part='unit'], [data-part='percentSign'], [data-part='label']) {\n color: var(--wzl-fg-muted);\n}\n\n/* A copy takes the hidden text form instead of the MathML's bare digits. */\n._math_efab3c {\n user-select: none;\n}\n\n/* The UI face with proportional digits, not the browser's math font. Equal-width digits align a column\n * but tilt a fraction: a narrow 1 sits off center in a wide 6's slot. Only a math font carries the gap\n * between a fraction's bar and its digits, so without one the gap is set here. */\n._math_efab3c math {\n font-family: var(--wzl-font-ui);\n font-variant-numeric: proportional-nums;\n}\n\n/* The bar runs past the digits by the same amount on each side. */\n._math_efab3c mfrac > * {\n padding-inline: 0.1em;\n}\n\n._math_efab3c mfrac > :first-child {\n padding-block-end: 0.12em;\n}\n\n._math_efab3c mfrac > :last-child {\n padding-block-start: 0.12em;\n}\n\n._hidden_efab3c {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* A value in effect but not chosen here, drawn in the secondary accent rather than dimmed, which\n * reads as disabled. The one definition: compose it, or mix it into Less. Every accent name is\n * restated because each resolves where it is declared, so remapping the base alone moves none. */._inherited_60a07f {\n --wzl-accent: var(--wzl-secondary);\n --wzl-accent-base: var(--wzl-secondary-base);\n --wzl-accent-strong: var(--wzl-secondary-strong);\n --wzl-accent-soft: var(--wzl-secondary-soft);\n --wzl-accent-hover: var(--wzl-secondary-strong);\n --wzl-accent-fg: var(--wzl-secondary-fg);\n color: var(--wzl-secondary-fg);\n}\n\n/* The property-panel family's one CSS module, assembled from the sheets beside\n each component. They are imported rather than made modules of their own\n because the grid rules cross components (`.listPairs > .subpanel`,\n `.groupBody > :not(.rowColor)` name two in one selector), and a class is\n scoped to the module that declares it. Order is cascade order. */\n\n/* Authored against a border-box reset (labkit's `.lk-root *`). weasel-ui has no\n global reset, so the family restates it over its own subtrees. */\n._panel_bd66d5,\n._list_bd66d5,\n._row_bd66d5,\n._group_bd66d5,\n._subpanel_bd66d5,\n._panel_bd66d5 *,\n._list_bd66d5 *,\n._row_bd66d5 *,\n._group_bd66d5 *,\n._subpanel_bd66d5 * {\n box-sizing: border-box;\n}\n\n/* A panel is chrome: a drag across it should move a slider, not paint a\n selection over its labels. What the family shows as a value stays copyable,\n and a field stays one — Safari carries `none` into an input's caret. */\n._panel_bd66d5,\n._list_bd66d5,\n._row_bd66d5,\n._group_bd66d5,\n._subpanel_bd66d5 {\n -webkit-user-select: none;\n user-select: none;\n}\n\n/* Opted in with `selectable` (a debug panel's default): the whole family lets\n text select, reaching past each member's own `none`. */\n._panel_bd66d5[data-selectable='true'],\n._panel_bd66d5[data-selectable='true'] :is(._panel_bd66d5, ._list_bd66d5, ._row_bd66d5, ._group_bd66d5, ._subpanel_bd66d5, ._card_bd66d5, ._cardList_bd66d5) {\n -webkit-user-select: text;\n user-select: text;\n}\n\n._readout_bd66d5,\n._readoutInput_bd66d5,\n._row_bd66d5 input:not([type='range']):not([type='checkbox']):not([type='radio']),\n._row_bd66d5 textarea,\n._row_bd66d5 [contenteditable] {\n -webkit-user-select: text;\n user-select: text;\n}\n\n/* ── Container metrics ──────────────────────────────────────────────\n Every spacing number the family lays out with is read from a `--wzl-prop-*`\n custom property with its own value as the fallback, so a consumer can move\n any of them from an ancestor without selector surgery. The `density` classes\n below set them in preset bundles; nothing in this file declares one, so an\n inherited value always reaches the use site. */\n\n._panel_bd66d5[data-stance='preview'] {\n overflow: hidden;\n}\n\n/* The twisty's target is taller than a title's line; it overhangs the line\n rather than growing the header, which would read as space under the title. */\n._foldTwisty_bd66d5 {\n margin-block: -4px;\n}\n\n/* Hidden until the keyboard reaches it: still focusable, so `twisty=\"folded\"`\n leaves a way to fold that is not the pointer. It keeps its room while hidden,\n so the title is where it will be once the twisty shows. */\n._foldTwistyQuiet_bd66d5:not(:focus-visible) {\n opacity: 0;\n}\n\n/* A panel's `twisty=\"folded\"` twisty trails its header and adds nothing to the\n header's height, so the title sits where it does with no twisty at all,\n open or folded. */\n._foldTwistyTrailing_bd66d5 {\n margin-block: calc(var(--wzl-disclosure-target, var(--wzl-control-h-sm)) / -2);\n margin-inline-start: auto;\n}\n\n/* Hidden, it is out of the flow as well and holds no room. Under keyboard\n focus it shows over the header's end, where it stands once folded. */\n._foldTwistyTrailing_bd66d5._foldTwistyQuiet_bd66d5 {\n position: absolute;\n inset-inline-end: 0;\n top: 50%;\n margin: 0;\n translate: 0 -50%;\n}\n\n._foldTwistyTrailing_bd66d5._foldTwistyQuiet_bd66d5:not(:focus-visible) {\n pointer-events: none;\n}\n\n._foldTitle_bd66d5 {\n cursor: pointer;\n}\n\n._panelBody_bd66d5[hidden] {\n display: none;\n}\n\n/* Each panel resolves its slots into local names: the stance's own value,\n then — nested — the stance's nested value, falling back to the panel's base\n slot. The slots are @weasel-js/theme's STANCE_SLOTS. */\n/* BEGIN GENERATED stance rules: panel — `npm run gen:stances`, do not edit. */\n\n._panel_bd66d5[data-motif] {\n --wzl-tint: initial;\n}\n\n._panel_bd66d5[data-motif] {\n --_s-surface: var(--wzl-panel-surface);\n --_s-border-color: var(--wzl-panel-border-color);\n --_s-border-style: var(--wzl-panel-border-style);\n --_s-border-width: var(--wzl-panel-border-width);\n --_s-radius: var(--wzl-panel-radius);\n --_s-pad: var(--wzl-prop-panel-pad, var(--wzl-panel-pad));\n --_s-blur: var(--wzl-panel-blur);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-panel-title-font);\n --_s-title-weight: var(--wzl-panel-title-weight);\n --_s-title-size: var(--wzl-panel-title-size);\n --_s-title-case: var(--wzl-panel-title-case);\n --_s-title-tracking: var(--wzl-panel-title-tracking);\n --_s-title-color: var(--wzl-panel-title-color);\n --_s-title-inset: var(--wzl-panel-title-inset);\n}\n\n._panel_bd66d5[data-motif][data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-clarify-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-clarify-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-clarify-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-clarify-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-clarify-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='clarify'][data-nested] {\n --_s-surface: var(--wzl-stance-clarify-nested-surface, var(--wzl-stance-clarify-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-clarify-nested-border-color, var(--wzl-stance-clarify-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-clarify-nested-border-style, var(--wzl-stance-clarify-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-clarify-nested-border-width, var(--wzl-stance-clarify-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-clarify-nested-radius, var(--wzl-stance-clarify-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-clarify-nested-pad, var(--wzl-stance-clarify-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-clarify-nested-blur, var(--wzl-stance-clarify-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-clarify-nested-tint-mix, var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-nested-tint, var(--wzl-stance-clarify-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-nested-accent, var(--wzl-stance-clarify-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-clarify-nested-title-font, var(--wzl-stance-clarify-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-clarify-nested-title-weight, var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-clarify-nested-title-size, var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-clarify-nested-title-case, var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-clarify-nested-title-tracking, var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-clarify-nested-title-color, var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-clarify-nested-title-inset, var(--wzl-stance-clarify-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-aside-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-aside-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-aside-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-aside-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-aside-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='aside'][data-nested] {\n --_s-surface: var(--wzl-stance-aside-nested-surface, var(--wzl-stance-aside-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-aside-nested-border-color, var(--wzl-stance-aside-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-aside-nested-border-style, var(--wzl-stance-aside-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-aside-nested-border-width, var(--wzl-stance-aside-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-aside-nested-radius, var(--wzl-stance-aside-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-aside-nested-pad, var(--wzl-stance-aside-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-aside-nested-blur, var(--wzl-stance-aside-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-aside-nested-tint-mix, var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-nested-tint, var(--wzl-stance-aside-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-nested-accent, var(--wzl-stance-aside-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-aside-nested-title-font, var(--wzl-stance-aside-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-aside-nested-title-weight, var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-aside-nested-title-size, var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-aside-nested-title-case, var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-aside-nested-title-tracking, var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-aside-nested-title-color, var(--wzl-stance-aside-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-aside-nested-title-inset, var(--wzl-stance-aside-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-advanced-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-advanced-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-advanced-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-advanced-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-advanced-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='advanced'][data-nested] {\n --_s-surface: var(--wzl-stance-advanced-nested-surface, var(--wzl-stance-advanced-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-advanced-nested-border-color, var(--wzl-stance-advanced-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-advanced-nested-border-style, var(--wzl-stance-advanced-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-advanced-nested-border-width, var(--wzl-stance-advanced-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-advanced-nested-radius, var(--wzl-stance-advanced-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-advanced-nested-pad, var(--wzl-stance-advanced-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-advanced-nested-blur, var(--wzl-stance-advanced-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-advanced-nested-tint-mix, var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-nested-tint, var(--wzl-stance-advanced-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-nested-accent, var(--wzl-stance-advanced-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-advanced-nested-title-font, var(--wzl-stance-advanced-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-advanced-nested-title-weight, var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-advanced-nested-title-size, var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-advanced-nested-title-case, var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-advanced-nested-title-tracking, var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-advanced-nested-title-color, var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-advanced-nested-title-inset, var(--wzl-stance-advanced-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-debug-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-debug-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-debug-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-debug-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-debug-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='debug'][data-nested] {\n --_s-surface: var(--wzl-stance-debug-nested-surface, var(--wzl-stance-debug-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-debug-nested-border-color, var(--wzl-stance-debug-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-debug-nested-border-style, var(--wzl-stance-debug-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-debug-nested-border-width, var(--wzl-stance-debug-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-debug-nested-radius, var(--wzl-stance-debug-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-debug-nested-pad, var(--wzl-stance-debug-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-debug-nested-blur, var(--wzl-stance-debug-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-debug-nested-tint-mix, var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-nested-tint, var(--wzl-stance-debug-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-nested-accent, var(--wzl-stance-debug-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-debug-nested-title-font, var(--wzl-stance-debug-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-debug-nested-title-weight, var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-debug-nested-title-size, var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-debug-nested-title-case, var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-debug-nested-title-tracking, var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-debug-nested-title-color, var(--wzl-stance-debug-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-debug-nested-title-inset, var(--wzl-stance-debug-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-preview-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-preview-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-preview-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-preview-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-preview-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='preview'][data-nested] {\n --_s-surface: var(--wzl-stance-preview-nested-surface, var(--wzl-stance-preview-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-preview-nested-border-color, var(--wzl-stance-preview-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-preview-nested-border-style, var(--wzl-stance-preview-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-preview-nested-border-width, var(--wzl-stance-preview-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-preview-nested-radius, var(--wzl-stance-preview-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-preview-nested-pad, var(--wzl-stance-preview-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-preview-nested-blur, var(--wzl-stance-preview-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-preview-nested-tint-mix, var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-nested-tint, var(--wzl-stance-preview-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-nested-accent, var(--wzl-stance-preview-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-preview-nested-title-font, var(--wzl-stance-preview-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-preview-nested-title-weight, var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-preview-nested-title-size, var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-preview-nested-title-case, var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-preview-nested-title-tracking, var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-preview-nested-title-color, var(--wzl-stance-preview-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-preview-nested-title-inset, var(--wzl-stance-preview-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-confirm-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-confirm-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-confirm-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-confirm-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-confirm-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='confirm'][data-nested] {\n --_s-surface: var(--wzl-stance-confirm-nested-surface, var(--wzl-stance-confirm-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-confirm-nested-border-color, var(--wzl-stance-confirm-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-confirm-nested-border-style, var(--wzl-stance-confirm-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-confirm-nested-border-width, var(--wzl-stance-confirm-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-confirm-nested-radius, var(--wzl-stance-confirm-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-confirm-nested-pad, var(--wzl-stance-confirm-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-confirm-nested-blur, var(--wzl-stance-confirm-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-confirm-nested-tint-mix, var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-nested-tint, var(--wzl-stance-confirm-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-nested-accent, var(--wzl-stance-confirm-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-confirm-nested-title-font, var(--wzl-stance-confirm-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-confirm-nested-title-weight, var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-confirm-nested-title-size, var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-confirm-nested-title-case, var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-confirm-nested-title-tracking, var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-confirm-nested-title-color, var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-confirm-nested-title-inset, var(--wzl-stance-confirm-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-panel-surface));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-panel-border-color));\n --_s-border-style: var(--wzl-stance-cancel-border-style, var(--wzl-panel-border-style));\n --_s-border-width: var(--wzl-stance-cancel-border-width, var(--wzl-panel-border-width));\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-panel-radius));\n --_s-pad: var(--wzl-stance-cancel-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad)));\n --_s-blur: var(--wzl-stance-cancel-blur, var(--wzl-panel-blur));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted));\n --_s-title-inset: var(--wzl-stance-cancel-title-inset, var(--wzl-panel-title-inset));\n}\n\n._panel_bd66d5[data-motif][data-stance='cancel'][data-nested] {\n --_s-surface: var(--wzl-stance-cancel-nested-surface, var(--wzl-stance-cancel-surface, var(--wzl-panel-surface)));\n --_s-border-color: var(--wzl-stance-cancel-nested-border-color, var(--wzl-stance-cancel-border-color, var(--wzl-panel-border-color)));\n --_s-border-style: var(--wzl-stance-cancel-nested-border-style, var(--wzl-stance-cancel-border-style, var(--wzl-panel-border-style)));\n --_s-border-width: var(--wzl-stance-cancel-nested-border-width, var(--wzl-stance-cancel-border-width, var(--wzl-panel-border-width)));\n --_s-radius: var(--wzl-stance-cancel-nested-radius, var(--wzl-stance-cancel-radius, var(--wzl-panel-radius)));\n --_s-pad: var(--wzl-stance-cancel-nested-pad, var(--wzl-stance-cancel-pad, var(--wzl-prop-panel-pad, var(--wzl-panel-pad))));\n --_s-blur: var(--wzl-stance-cancel-nested-blur, var(--wzl-stance-cancel-blur, var(--wzl-panel-blur)));\n --_s-tint-mix: var(--wzl-stance-cancel-nested-tint-mix, var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix)));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-nested-tint, var(--wzl-stance-cancel-tint, var(--_s-surface))));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-nested-accent, var(--wzl-stance-cancel-accent, var(--wzl-tint))));\n --_s-title-font: var(--wzl-stance-cancel-nested-title-font, var(--wzl-stance-cancel-title-font, var(--wzl-font-display)));\n --_s-title-weight: var(--wzl-stance-cancel-nested-title-weight, var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-light)));\n --_s-title-size: var(--wzl-stance-cancel-nested-title-size, var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm)));\n --_s-title-case: var(--wzl-stance-cancel-nested-title-case, var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase)));\n --_s-title-tracking: var(--wzl-stance-cancel-nested-title-tracking, var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wide))));\n --_s-title-color: var(--wzl-stance-cancel-nested-title-color, var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted)));\n --_s-title-inset: var(--wzl-stance-cancel-nested-title-inset, var(--wzl-stance-cancel-title-inset, var(--wzl-panel-title-inset)));\n}\n\n._panel_bd66d5[data-motif][data-emphasis='high'],\n._panel_bd66d5[data-motif][data-emphasis='high'][data-nested] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._panel_bd66d5[data-motif][data-emphasis='low'],\n._panel_bd66d5[data-motif][data-emphasis='low'][data-nested] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._panel_bd66d5[data-motif][data-grade],\n._panel_bd66d5[data-motif][data-grade][data-nested] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._panel_bd66d5[data-motif] {\n --_s-fill: var(--_s-surface);\n}\n\n._panel_bd66d5[data-motif][data-tint],\n._panel_bd66d5[data-motif][data-grade],\n._panel_bd66d5[data-motif][data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._panel_bd66d5[data-motif][data-tint],\n._panel_bd66d5[data-motif][data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._panel_bd66d5[data-motif][data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: panel */\n\n._list_bd66d5 {\n display: grid;\n /* A track list, for a container that knows it is too narrow for two columns:\n `minmax(0, 1fr)` stacks every row, and a full-width row still spans. */\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-row-gap, 4px);\n align-items: stretch;\n /* Read from the container-level name so a density set further up is not\n shadowed by this declaration. */\n --wzl-field-h: var(--wzl-prop-field-h, var(--wzl-control-h-sm));\n --wzl-field-pad-x: var(--wzl-prop-field-pad-x, 6px);\n /* A kit `<Select>` in a row is a field like any other, and its trigger reads\n its height from a standalone control's token rather than the panel's. */\n --wzl-select-h: var(--wzl-field-h);\n}\n\n/* Default packing: only color rows pair, everything else spans full width.\n Scoped to NOT apply in pairs mode (otherwise this 0,2,0 selector beats the\n pairs override below, which is only 0,1,0). */\n._list_bd66d5:not(._listPairs_bd66d5) > :not(._rowColor_bd66d5) {\n grid-column: 1 / -1;\n}\n\n/* `pack=\"pairs\"` flips that: every row auto-places into the 2-col grid two\n per row, and explicit full-width children opt in via the span helper class.\n The two rows of a pair set their labels on one line, whatever each holds: a\n row stretched to the pair's height centers or sinks its label instead. */\n._listPairs_bd66d5 > * {\n min-width: 0;\n align-self: first baseline;\n}\n\n._listPairs_bd66d5 > ._span_bd66d5,\n._listPairs_bd66d5 > ._subpanel_bd66d5,\n._listPairs_bd66d5 > h3 {\n grid-column: 1 / -1;\n}\n\n/* `pack=\"one-up\"` gives every row the full width, color rows included — the\n one packing a palette can be built from. */\n._listOneUp_bd66d5 > * {\n grid-column: 1 / -1;\n}\n\n/* ── density ────────────────────────────────────────────────────────\n `normal` states its values rather than omitting them, so a group can go back\n to the default inside a tighter panel. */\n\n._densityTight_bd66d5 {\n --wzl-prop-row-gap: 2px;\n --wzl-prop-subpanel-row-gap: 2px;\n --wzl-prop-column-gap: 8px;\n --wzl-prop-panel-pad: 10px 12px;\n --wzl-prop-panel-title-gap: 8px;\n --wzl-prop-group-pad: 4px 8px 6px;\n --wzl-prop-group-title-gap: 2px;\n --wzl-prop-field-h: 18px;\n --wzl-prop-field-pad-x: 5px;\n}\n\n._densityNormal_bd66d5 {\n --wzl-prop-row-gap: 4px;\n --wzl-prop-subpanel-row-gap: 3px;\n --wzl-prop-column-gap: 16px;\n --wzl-prop-panel-pad: 14px 16px;\n --wzl-prop-panel-title-gap: 12px;\n --wzl-prop-group-pad: 6px 10px 8px;\n --wzl-prop-group-title-gap: 4px;\n --wzl-prop-field-h: 20px;\n --wzl-prop-field-pad-x: 6px;\n}\n\n._densityRoomy_bd66d5 {\n --wzl-prop-row-gap: 8px;\n --wzl-prop-subpanel-row-gap: 7px;\n --wzl-prop-column-gap: 20px;\n --wzl-prop-panel-pad: 18px 20px;\n --wzl-prop-panel-title-gap: 16px;\n --wzl-prop-group-pad: 10px 14px 12px;\n --wzl-prop-group-title-gap: 6px;\n --wzl-prop-field-h: 24px;\n --wzl-prop-field-pad-x: 8px;\n}\n\n/* ── align ──────────────────────────────────────────────────────────\n Where an inline row's label and control sit on the row's cross axis.\n\n Two names, because a color row aligns twice: its items within their grid row,\n and the whole grid within the row's box. They agree except at `baseline`,\n which `align-content` does not take — there the grid goes to the top and the\n items find the label's baseline inside it.\n\n A row whose label and control are both one line of text reads a third:\n centering two runs of different sizes leaves their baselines apart, so there\n `center` means `baseline`. */\n\n._alignStart_bd66d5 {\n --wzl-prop-row-align: start;\n --wzl-prop-row-align-content: start;\n --wzl-prop-row-align-text: start;\n}\n\n._alignCenter_bd66d5 {\n --wzl-prop-row-align: center;\n --wzl-prop-row-align-content: center;\n --wzl-prop-row-align-text: baseline;\n}\n\n._alignEnd_bd66d5 {\n --wzl-prop-row-align: end;\n --wzl-prop-row-align-content: end;\n --wzl-prop-row-align-text: end;\n}\n\n._alignBaseline_bd66d5 {\n --wzl-prop-row-align: baseline;\n --wzl-prop-row-align-content: start;\n --wzl-prop-row-align-text: baseline;\n}\n\n/* ── Row ────────────────────────────────────────────────────────\n Default shape: label on top (with optional right-aligned readout),\n control below. */\n\n._row_bd66d5 {\n display: flex;\n flex-direction: column;\n /* Every row stands on the same floor, whatever it holds. A switch is 16px, a\n range track 12 and a field 20, so a column of mixed rows sets its own line\n spacing row by row and reads as ragged — which is what a reader sees first,\n long before any one control's height. Taller content still grows the row;\n this only stops a short one from collapsing under the field it sits beside. */\n min-height: var(--wzl-prop-row-h, var(--wzl-field-h, var(--wzl-control-h)));\n /* No gap by default — controls sit flush under their label, matching\n speech-balloons `.field { gap: 0 }`. Slider rows pull tighter still\n via a negative margin on the label below. */\n gap: 0;\n min-width: 0;\n /* What a row holds without setting its own size — a renderer's words — reads at the label's. */\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n/* `hug`: the row is as wide as its label and control, at the leading edge of\n its cell. */\n._hug_bd66d5 {\n justify-self: start;\n}\n\n/* Slider rows: pull the track up under the label so the row reads as one\n tight block rather than a label + a separate horizontal strip. Like every\n row, it sits at the top of its grid cell, level with the row beside it. */\n._row_bd66d5:not(._rowInline_bd66d5):has(> input[type='range']) > ._rowLabel_bd66d5 {\n /* Baseline-align (not center) so the readout input doesn't inflate the\n label-group height past the text baseline. */\n align-items: baseline;\n gap: var(--wzl-space-2);\n margin-bottom: -4px;\n}\n\n._rowLabel_bd66d5 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n display: flex;\n align-items: center;\n justify-content: var(--wzl-params-label-align, start);\n gap: var(--wzl-space-3);\n}\n\n/* A label track, only where a row runs label-beside-control: a stacked row's\n label already spans the row, and a width there would narrow it instead. */\n._row_bd66d5[data-changed] > ._rowLabel_bd66d5 {\n color: var(--wzl-accent-fg);\n}\n\n._row_bd66d5[data-mixed] > ._rowLabel_bd66d5 {\n color: var(--wzl-warning);\n}\n\n/* As `Checkbox` dims the text beside a disabled box: the control dims itself. */\n._row_bd66d5[data-disabled] > ._rowLabel_bd66d5 {\n opacity: 0.5;\n}\n\n._row_bd66d5[data-disabled] {\n cursor: not-allowed;\n}\n\n/* A slider's readout sits in the label, which has dimmed it once already. */\n._row_bd66d5[data-disabled] > ._rowLabel_bd66d5 ._readoutInput_bd66d5:disabled {\n opacity: 1;\n}\n\n._rowInline_bd66d5 > ._rowLabel_bd66d5,\n._rowColor_bd66d5:not(._rowBlock_bd66d5) > ._rowLabel_bd66d5,\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5) > ._rowLabel_bd66d5 {\n inline-size: var(--wzl-params-label-width, auto);\n}\n\n._readout_bd66d5 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n font-style: normal;\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-accent-fg);\n margin-left: auto;\n}\n\n/*\n * An inline row's readout, which the row draws after the control rather than\n * beside the label: its width changes with the value, and anything after it on\n * the row would be shoved sideways on every update.\n */\n._readoutAfter_bd66d5 {\n flex: 0 0 auto;\n margin-left: 0;\n}\n\n/* Bare readout text — the word a row shows while it is auto — carrying\n `.readoutInput`'s box, inside `.readoutGroup` just as the input is. The label\n is a baseline-aligned flex line, so anything taller above the baseline drags\n the whole line, label included, down with it: an input's border and padding\n did that for 3.5px on every pin toggle. Both states have to be the same box\n *and* the same nesting, because the group's own strut is 5px of the height. */\n._readoutText_bd66d5 {\n display: inline-block;\n /* The input's content box, not its line-height: a text input's inner editor\n will not shrink to a line-height below the font's own content area, so it\n renders 16px of content where a span renders 11px. Stating the height on\n both and filling it here is what makes the two boxes agree. */\n height: var(--wzl-field-h, var(--wzl-control-h-sm));\n line-height: calc(var(--wzl-field-h, var(--wzl-control-h-sm)) - 4px);\n border: 1px solid transparent;\n padding: 1px 0;\n}\n\n/* The pinned/auto affordance. Invisible at rest so a panel of thirty rows is\n not thirty dots; revealed by the row, and permanent once the row is auto. */\n/* The row's label is also its pin, so it says so when pointed at — the same\n dotted underline a compact `<Select>` puts under its value. */\n._autoToggle_bd66d5 {\n cursor: pointer;\n border-radius: var(--wzl-radius-sm);\n /* Above the slider track a stacked row pulls up under its label, which\n otherwise takes every click on the label once the row is pinned. */\n position: relative;\n z-index: 1;\n}\n\n/* The same dotted line a compact `<Select>` draws under its value. Stated\n longhand: the shorthand's `auto` thickness takes the font's, which at label\n size closes the gaps and reads as a solid rule. The line takes the label's\n own color — a label is already muted, and a subtler line under it is a 1px\n dotted rule nobody can see. */\n._autoToggle_bd66d5:hover {\n text-decoration: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-decoration-color: currentColor;\n text-underline-offset: 0.25em;\n}\n\n._autoToggle_bd66d5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._autoToggle_bd66d5[aria-disabled='true'] {\n cursor: default;\n text-decoration: none;\n}\n\n/* Single always-rendered <input> styled to read as a text label until focused. */\n._readoutInput_bd66d5 {\n font-size: inherit;\n font-style: inherit;\n font-weight: var(--wzl-font-weight-medium);\n /* Force leading-tight — the label parent inherits 1.2, which would make the\n input box ~3px taller than the speech-balloons reference. */\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-accent-fg);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n padding: 1px 0;\n margin: 0;\n /* Stated rather than left to the control's intrinsic size, which `.readoutText`\n cannot reproduce — see the note there. */\n height: var(--wzl-field-h, var(--wzl-control-h-sm));\n /* One width for every readout, so a column of sliders ends on one line; a range whose widest\n value (the fit, in digit-wide `ch`) will not fit it widens its own box. The box is\n border-box, so its border comes back on top, with half a `ch` for a glyph wider than a digit. */\n width: max(\n var(--wzl-property-readout-w, calc(4.5ch + 2px)),\n calc(var(--wzl-property-readout-fit, 0px) + 2px + 0.5ch)\n );\n text-align: right;\n cursor: text;\n outline: none;\n transition: background 80ms ease, border-color 80ms ease;\n -moz-appearance: textfield;\n}\n\n._readoutInput_bd66d5:hover:not(:disabled) {\n background: color-mix(in srgb, currentColor 8%, transparent);\n}\n\n._readoutInput_bd66d5:focus {\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n border-color: var(--wzl-focus-ring);\n}\n\n._readoutInput_bd66d5::-webkit-inner-spin-button,\n._readoutInput_bd66d5::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Inline-block (not flex) so the browser's native vertical-align for\n <sub>/<sup> still works inside — flex collapses baseline semantics\n and sinks superscripts onto the baseline. */\n._readoutGroup_bd66d5 {\n display: inline-block;\n white-space: nowrap;\n}\n\n/* Word-style units (e.g. \"px\") read as a small dim suffix next to the digits. */\n._readoutUnit_bd66d5 {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n line-height: var(--wzl-leading-tight);\n pointer-events: none;\n}\n\n/* An inline row's readout sits between the control and the next cell, so a unit\n beside it would take width from the track. It hangs below the digits instead,\n out of flow, so a row with a unit is the same size as one without. */\n._readoutAfter_bd66d5 ._readoutGroup_bd66d5 {\n position: relative;\n}\n\n._readoutAfter_bd66d5 ._readoutUnit_bd66d5 {\n position: absolute;\n top: 100%;\n right: 1px;\n margin-top: -4px;\n line-height: 1;\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n/* A number and its unit, on one line, the field taking what the unit leaves. */\n._fieldUnitGroup_bd66d5 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n white-space: nowrap;\n min-width: 0;\n}\n\n._fieldUnitGroup_bd66d5 > ._numberField_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Symbol units (e.g. `<sup>°</sup>`) lean on the browser's native super\n positioning in a readout. Just dim them to match — do NOT set\n line-height: 0, that would re-collapse the glyph onto the baseline. A flex\n item ignores `vertical-align`, so beside a field the glyph rides the top of\n the line instead. */\n._readoutGroup_bd66d5 sup,\n._fieldUnitGroup_bd66d5 sup {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n pointer-events: none;\n}\n\n._fieldUnitGroup_bd66d5 > ._unitMark_bd66d5 > sup {\n align-self: flex-start;\n}\n\n/* A unit's wrapper, marking it smaller than the value on purpose; it draws no box of its own. */\n._unitMark_bd66d5 {\n display: contents;\n}\n/* ── Inline layout: label sits to the left of the control. ────── */\n._rowInline_bd66d5 {\n flex-direction: row;\n align-items: var(--wzl-prop-row-align, center);\n /* Label on the left edge, field on the right: fields of different widths\n still line up as one rail down the column. */\n justify-content: space-between;\n gap: var(--wzl-space-3);\n}\n\n._rowInline_bd66d5 ._rowLabel_bd66d5 {\n /* The label never gives: shrinking it breaks a name like `silhouette_width`\n mid-word, since it carries no break opportunity of its own. The field is\n what yields as the column narrows. */\n flex: 0 0 auto;\n}\n\n/* A row past one line — a textarea or list editor beside the label, or a label\n that wrapped — reads from the top: centering puts the label's first line\n halfway down the control, level with nothing. First baseline sets the label's\n first line on the control's first line of text, and a control with no text\n (a switch, a box) sits on that line the way it does in running text. Outranks\n `align` and the select row's text alignment, which place a one-line row.\n `data-multiline` is measured by the row. */\n._row_bd66d5._rowInline_bd66d5:has(textarea, [role='group'] > ul),\n._row_bd66d5._rowInline_bd66d5[data-multiline],\n._row_bd66d5._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-multiline] {\n align-items: first baseline;\n}\n\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > ._rowLabel_bd66d5,\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > input[type='color'],\n._row_bd66d5._rowColor_bd66d5:not(._rowBlock_bd66d5)[data-multiline] > ._colorField_bd66d5 > :first-child {\n align-self: first baseline;\n}\n\n/* A textarea's baseline is its last line in some engines, so beside one the\n label goes to the top and steps down to the textarea's first line instead. */\n._rowInline_bd66d5:has(textarea) > ._rowLabel_bd66d5 {\n align-self: flex-start;\n padding-block-start: calc(var(--wzl-space-2) + 1px);\n}\n\n._rowInline_bd66d5 > input,\n._rowInline_bd66d5 > select,\n._rowInline_bd66d5 > ._toggleBar_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Fields size to their content, not to the row they happen to sit in: a number\n is a handful of digits and a short string is a word. Stated as a width and\n not as a `min(100%, …)`, because an auto-width sidebar sizes to what its\n fields ask for and a percentage asks for an input's 20-character default.\n Only a field set in the row itself: a surface that wraps its control in a\n slot of its own sizes it there. */\n._row_bd66d5 > ._numberField_bd66d5,\n._row_bd66d5 > ._fieldUnitGroup_bd66d5 > ._numberField_bd66d5 {\n flex: 0 1 auto;\n width: var(--wzl-prop-number-width, 9ch);\n max-width: 100%;\n}\n\n._row_bd66d5 > ._textField_bd66d5 {\n width: var(--wzl-prop-text-width, 16ch);\n max-width: 100%;\n}\n\n/* The property rows' fields set their text at the weight the readouts use.\n The attribute outranks the field's own `font: inherit`. */\n._numberField_bd66d5 input[type='text'],\n._textField_bd66d5 input[type='text'] {\n font-weight: var(--wzl-font-weight-medium);\n}\n\n/* A select is as tall as the fields around it. */\n._select_bd66d5 {\n --wzl-select-h: var(--wzl-field-h, var(--wzl-control-h));\n}\n\n/* Anywhere in a property row, however deep a surface wraps it, a select drops\n its box and reads as its value: a bold word, underlined. A dense row of\n settings reads its choices as words, and 10px of caret is a tenth of a short\n value's width. Set on the row because these hooks inherit. Every field's\n text is set at the label's size, which is what puts label and value on one\n baseline. */\n._row_bd66d5 {\n --wzl-field-font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n --wzl-select-weight: var(--wzl-font-weight-bold);\n --wzl-select-bg: transparent;\n --wzl-select-border: 1px solid transparent;\n --wzl-select-pad: 0;\n --wzl-select-chevron: none;\n --wzl-select-underline: underline;\n --wzl-select-focus-border: transparent;\n --wzl-select-focus-shadow: none;\n --wzl-select-focus-outline: 1px solid var(--wzl-focus-ring);\n}\n\n/* The rules from here to the select are for a native input a caller hands a\n row directly; every field kind draws a kit field that brings its own frame,\n and sits deeper than a child. */\n._row_bd66d5 > input[type='number']:not(._readoutInput_bd66d5) {\n width: var(--wzl-prop-number-width, 9ch);\n max-width: 100%;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5) {\n width: var(--wzl-prop-text-width, 16ch);\n max-width: 100%;\n}\n\n/* An inline row stays on one line: the field gives up width to the label as the\n column narrows, down to a floor that still shows a value. */\n._rowInline_bd66d5 > input:not(._readoutInput_bd66d5),\n._rowInline_bd66d5 > ._numberField_bd66d5,\n._rowInline_bd66d5 > ._fieldUnitGroup_bd66d5,\n._rowInline_bd66d5 > ._textField_bd66d5 {\n flex: 0 1 auto;\n min-width: 4ch;\n}\n\n/* Inline, a select fills the space beside its label and sets its value against\n the chevron, like a native one handed to the row. */\n._rowInline_bd66d5 > ._select_bd66d5 {\n flex: 1 1 auto;\n width: auto;\n min-width: 4ch;\n --wzl-select-align: right;\n}\n\n/* Two runs of text on one line read as one line or they read as broken, and\n centering two boxes is not aligning the text in them: a 13px label centered\n against a 15px value left the two baselines 1px apart, which is exactly the\n distance the eye reads as a mistake. Only the rows whose control is text — a\n checkbox or a swatch has no baseline of its own and would hang off the line\n instead. */\n._rowInline_bd66d5:has(> ._select_bd66d5) {\n align-items: var(--wzl-prop-row-align-text, baseline);\n}\n\n/* A select sized to its longest option starts wherever that width leaves it, so\n a column of them scatters its values. Filling the row and setting the value\n against the chevron gives them one rail. */\n._rowInline_bd66d5 > select {\n flex: 1 1 auto;\n min-width: 4ch;\n text-align: right;\n text-align-last: right;\n}\n\n._rowInline_bd66d5 input[type='range'] {\n width: auto;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5),\n._row_bd66d5 > input[type='number'] {\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n /* Height is stated rather than padded to, because the display face's line box\n is half again its font size — padding a field to size makes it 27px tall\n around 13px of text and no amount of trimming the padding fixes that. */\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0 var(--wzl-field-pad-x);\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n}\n\n/* Numbers right-align so a column of them shares a decimal position; text does\n not, so this cannot live in the rule the two share. */\n._row_bd66d5 > input[type='number'] {\n text-align: right;\n}\n\n/* Chrome reserves the spin-button gutter at the right edge whether or not the\n arrows are painted, so a right-aligned value stops ~20px short of its own\n border and the row reads as if something is missing from that space. The\n panel drives numbers by typing and dragging, never by the steppers.\n `.readoutInput` has always dropped them; this is the same removal for the\n typed field beside it. */\n._row_bd66d5 > input[type='number']::-webkit-inner-spin-button,\n._row_bd66d5 > input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n._row_bd66d5 > input[type='text']:not(._readoutInput_bd66d5):focus,\n._row_bd66d5 > input[type='number']:focus {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n/* A dialog row's trigger reads as a field holding the value's summary, so a\n column of them lines up with the text fields around it. */\n._dialogTrigger_bd66d5 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n width: 100%;\n min-width: 4ch;\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0 var(--wzl-field-pad-x);\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n text-align: start;\n cursor: pointer;\n}\n\n._rowInline_bd66d5 > ._dialogTrigger_bd66d5 {\n flex: 1 1 auto;\n width: auto;\n}\n\n._dialogTrigger_bd66d5:hover {\n border-color: var(--wzl-border-strong);\n}\n\n._dialogTrigger_bd66d5:focus-visible {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n._dialogSummary_bd66d5 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._dialogGlyph_bd66d5 {\n flex: 0 0 auto;\n color: var(--wzl-fg-subtle);\n}\n\n/* A native select handed to a row renders borderless — chevron only,\n transparent background, no chrome. Keep the native arrow via appearance: auto\n so users still see something clickable. */\n._row_bd66d5 > select {\n background: transparent;\n color: var(--wzl-fg);\n border: 0;\n border-radius: 0;\n height: var(--wzl-field-h, var(--wzl-control-h));\n padding: 0;\n font-family: var(--wzl-font-ui);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-field-font-size);\n line-height: var(--wzl-leading-tight);\n cursor: pointer;\n}\n\n/* An outline rather than the boxed family's inset ring: a property-row select\n is borderless, so there is no border to recolour. */\n._row_bd66d5 > select:focus {\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n/* ── Color variant: label and swatch side-by-side, two per row in the grid.\n Switches to a 2-row grid when an alpha slider is rendered beneath. */\n/* `align-content: end` sinks the whole grid so a color row paired with a\n taller sibling keeps its alpha track on the neighbour's bottom edge. An\n explicit `align` overrides both that and the per-item alignment below, which\n is what a column of swatches read as a group needs. */\n._rowColor_bd66d5 {\n display: grid;\n grid-template-columns: 1fr auto;\n grid-template-rows: auto;\n align-content: var(--wzl-prop-row-align-content, end);\n column-gap: var(--wzl-space-4);\n row-gap: 0;\n min-width: 0;\n}\n\n._rowColor_bd66d5 ._rowLabel_bd66d5 {\n grid-column: 1;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n flex: initial;\n min-width: 0;\n}\n\n/* Padding: 0 is important — the native <input type=\"color\"> in some browsers (esp. Chrome) inflates beyond its\n declared box when given padding, which expands the grid row and pushes\n the paired slider track out of bottom alignment. */\n._rowColor_bd66d5 > input[type='color'] {\n grid-column: 2;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n box-sizing: border-box;\n width: 36px;\n height: var(--wzl-control-h-xs);\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n padding: 0;\n cursor: pointer;\n flex-shrink: 0;\n}\n\n/* A color field set directly in the row gives its parts to the row's grid:\n the swatch beside the label, and the opacity track with its readout on a\n second row beneath. Nested in another wrapper, it keeps its own line. */\n._rowColor_bd66d5 > ._colorField_bd66d5 {\n display: contents;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > :first-child {\n grid-column: 2;\n grid-row: 1;\n align-self: var(--wzl-prop-row-align, center);\n justify-self: end;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > input[type='range'] {\n grid-column: 1;\n grid-row: 2;\n}\n\n._rowColor_bd66d5 > ._colorField_bd66d5 > :last-child:not(:first-child):not(input) {\n grid-column: 2;\n grid-row: 2;\n align-self: center;\n}\n\n/* `layout=\"block\"` stacks the color row: label, then swatch, then alpha. */\n._rowColor_bd66d5._rowBlock_bd66d5 {\n grid-template-columns: 1fr;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 ._rowLabel_bd66d5 {\n grid-column: 1;\n grid-row: 1;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 > input[type='color'],\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > :first-child {\n grid-column: 1;\n grid-row: 2;\n justify-self: start;\n}\n\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > input[type='range'] {\n grid-row: 3;\n}\n\n/* A block row has one column, so the readout rides at the track's end. */\n._rowColor_bd66d5._rowBlock_bd66d5 > ._colorField_bd66d5 > :last-child:not(:first-child):not(input) {\n grid-column: 1;\n grid-row: 3;\n justify-self: end;\n}\n\n/* ── Checkbox variant: label-first inline layout. */\n._rowCheckbox_bd66d5 {\n flex-direction: row;\n align-items: var(--wzl-prop-row-align, center);\n /* Label on the leading edge and box on the trailing one, like every other\n inline row: a column of settings is read down its labels, and a box that\n leads its own row puts each label at a different indent. */\n justify-content: space-between;\n gap: var(--wzl-space-4);\n cursor: pointer;\n}\n\n._rowCheckbox_bd66d5 > input[type='checkbox']:not([role='switch']) {\n accent-color: var(--wzl-accent);\n width: 14px;\n height: 14px;\n cursor: pointer;\n}\n\n/* `layout=\"block\"` stacks the checkbox row: label above, box beneath, both on\n the leading edge — a block row's cross axis is the horizontal one. */\n._rowCheckbox_bd66d5._rowBlock_bd66d5 {\n flex-direction: column;\n align-items: var(--wzl-prop-row-align, start);\n}\n\n\n/* A state the control cannot draw itself: a switch has no indeterminate form,\n and nothing has an \"unset\" one. */\n._dimmed_bd66d5 {\n opacity: 0.55;\n}\n\n/* A slider cell's readout, beside its track rather than in a row's label line.\n Doubled so a row laying its cells out evenly does not stretch it. */\n._cellReadout_bd66d5._cellReadout_bd66d5 {\n flex: none;\n min-inline-size: 3ch;\n text-align: end;\n}\n\n._textarea_bd66d5 {\n width: 100%;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n background: var(--wzl-input-surface, var(--wzl-surface-sunken));\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n font: inherit;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n resize: vertical;\n}\n\n._textarea_bd66d5:disabled,\n._readoutInput_bd66d5:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* ── Segmented toggle ─────────────────────────────────────────────\n A `ToggleBar`, filling the row the way a field does and standing at the\n row's field height rather than its own small size. */\n._row_bd66d5 > ._toggleBar_bd66d5 {\n display: flex;\n width: 100%;\n height: var(--wzl-field-h, var(--wzl-control-h));\n}\n\n/* A disabled inline paint: the editor itself, inert, dimmed here once since none of its controls is disabled. */\n._paintOff_bd66d5 {\n min-inline-size: 0;\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._paintOffBody_bd66d5 {\n display: contents;\n}\n\n/* ── PropertyGroup ──────────────────────────────────────────────────\n A MotifFrame around a grid of rows; the frame's motif draws the box and\n the title, and these rules lay out what it holds. */\n._group_bd66d5 {\n grid-column: 1 / -1;\n}\n\n/* Group help text: spans the grid, sits above the rows it describes. */\n._note_bd66d5 {\n grid-column: 1 / -1;\n margin: 0 0 var(--wzl-prop-group-title-gap, 4px);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n/* `hidden` on its own loses to the body's `display: grid` below. */\n._groupBody_bd66d5[hidden] {\n display: none;\n}\n\n._groupBody_bd66d5 {\n display: grid;\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-row-gap, 4px);\n align-items: stretch;\n}\n\n._group_bd66d5:not(._groupPairs_bd66d5) ._groupBody_bd66d5 > :not(._rowColor_bd66d5) {\n grid-column: 1 / -1;\n}\n\n._groupPairs_bd66d5 ._groupBody_bd66d5 > * {\n grid-column: auto;\n /* As a paired list's rows: see `.listPairs`. */\n align-self: first baseline;\n}\n\n._groupPairs_bd66d5 ._groupBody_bd66d5 > h3,\n._groupPairs_bd66d5 ._groupBody_bd66d5 > ._span_bd66d5,\n._groupPairs_bd66d5 ._groupBody_bd66d5 > ._subpanel_bd66d5 {\n grid-column: 1 / -1;\n}\n\n._groupOneUp_bd66d5 ._groupBody_bd66d5 > * {\n grid-column: 1 / -1;\n}\n\n/* ── Subpanel ────────────────────────────────────────────────────────\n A MotifFrame around a grid of rows; the frame's motif, `divider` unless\n told otherwise, draws the title, and these rules lay out what it holds. */\n._subpanelBody_bd66d5 {\n display: grid;\n grid-template-columns: var(--wzl-prop-columns, 1fr 1fr);\n column-gap: var(--wzl-prop-column-gap, 16px);\n row-gap: var(--wzl-prop-subpanel-row-gap, 3px);\n align-items: stretch;\n}\n\n/* `hidden` on its own loses to the body's `display: grid` above. */\n._subpanelBody_bd66d5[hidden] {\n display: none;\n}\n\n._subpanelBody_bd66d5 > * {\n min-width: 0;\n}\n\n._subpanelBody_bd66d5 > ._span_bd66d5 {\n grid-column: 1 / -1;\n}\n\n/* BEGIN GENERATED stance rules: subpanel — `npm run gen:stances`, do not edit. */\n\n._subpanel_bd66d5[data-motif] {\n --wzl-tint: initial;\n}\n\n._subpanel_bd66d5[data-motif] {\n --_s-border-color: var(--wzl-line-subtle);\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-display);\n --_s-title-weight: var(--wzl-font-weight-medium);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: var(--wzl-params-label-case, uppercase);\n --_s-title-tracking: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n --_s-title-color: var(--wzl-fg);\n}\n\n._subpanel_bd66d5[data-motif][data-stance='clarify'] {\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='aside'] {\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='advanced'] {\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='debug'] {\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='preview'] {\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='confirm'] {\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-stance='cancel'] {\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-line-subtle));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-display));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-medium));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, var(--wzl-params-label-case, uppercase));\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, var(--wzl-params-label-tracking, var(--wzl-tracking-wider)));\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._subpanel_bd66d5[data-motif][data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._subpanel_bd66d5[data-motif][data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._subpanel_bd66d5[data-motif][data-grade] {\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._subpanel_bd66d5[data-motif][data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: subpanel */\n\n/* An auto row: the value is not pinned, and the row says only that. The\n control is hidden rather than removed, so the row keeps the height and the\n width it has while pinned and nothing below it moves on the toggle —\n `visibility` and not `opacity`, because a hidden control must also be out of\n reach of the pointer and the tab ring. The label and the readout are what\n stays: everything else in the row is the control. */\n._rowAuto_bd66d5 > :not(._rowLabel_bd66d5):not(._readout_bd66d5) {\n visibility: hidden;\n}\n\n._rowAuto_bd66d5 > ._rowLabel_bd66d5 {\n color: var(--wzl-fg-subtle);\n}\n\n/* An auto row that keeps drawing its control: the value is the one it inherits,\n drawn in the secondary accent so it reads as not chosen here. */\n._rowAutoInherited_bd66d5 {\n}\n\n/* A label and the hint after it, as one run of text. */\n._rowName_bd66d5 {\n min-width: 0;\n}\n\n/* Where an inherited value comes from, after the label. One box, so it moves to the next line whole, and\n wraps inside itself only where it is wider than the label track. */\n._rowHint_bd66d5 {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n max-inline-size: 100%;\n vertical-align: baseline;\n font-size: var(--wzl-font-size-2xs);\n color: var(--wzl-fg-subtle);\n margin-inline-start: var(--wzl-space-1);\n}\n\n/* A stacked row's readout sits inside the label and an inline row's sits after\n the control, so the label's case reached one and not the other: the same word\n read `AUTO` in one row and `auto` in the next. An auto row's readout is a\n word, not a number, so it takes the label recipe and both rows read alike. */\n/* `.autoWord` is the same word outside a row: the help tooltip's last line. */\n._rowAuto_bd66d5 ._readout_bd66d5,\n._autoWord_bd66d5 {\n font-style: normal;\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n color: var(--wzl-secondary-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n/* ── Row message: what is wrong with the row's value, under its control. ── */\n\n._rowError_bd66d5 {\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-danger);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n/* A row that lays its label beside its control wraps, so the message takes a line of its own beneath both. */\n._rowInline_bd66d5[data-invalid],\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-invalid] {\n flex-wrap: wrap;\n}\n\n._rowInline_bd66d5[data-invalid] > ._rowError_bd66d5,\n._rowCheckbox_bd66d5:not(._rowBlock_bd66d5)[data-invalid] > ._rowError_bd66d5 {\n flex: 1 0 100%;\n}\n\n._rowColor_bd66d5 > ._rowError_bd66d5 {\n grid-column: 1 / -1;\n grid-row: 2;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A row label that shows its help when hovered, with no ⓘ. */\n._label_f7c38e {\n min-width: 0;\n}\n\n/* ⓘ help affordance beside a row label. */\n._help_f7c38e {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.15em;\n height: 1.15em;\n padding: 0;\n border: 0;\n background: none;\n color: var(--wzl-fg-subtle);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n letter-spacing: normal;\n cursor: help;\n border-radius: var(--wzl-radius-sm);\n}\n\n/* In a row's label the glyph stands on the label's first line: left to the\n label's centering, it sits between the two lines of one that wrapped. */\n[data-property-row] ._help_f7c38e {\n font-size: inherit;\n align-self: flex-start;\n margin-block: calc((var(--wzl-leading-snug) * 1em - 1.15em) / 2);\n}\n\n._help_f7c38e:hover {\n color: var(--wzl-fg);\n border-color: transparent;\n}\n\n._help_f7c38e:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n color: var(--wzl-fg);\n}\n\n/* What the row reads when it is auto: its own line, under the description. */\n._auto_f7c38e {\n display: block;\n}\n\n._autoAfter_f7c38e {\n margin-block-start: var(--wzl-space-1);\n}\n/* Shared by Select and ComboBox (`surface` + `list`, and `option` for each\n row) and by PaintField's popover (`surface` alone). */._surface_f29eb6 {\n background: var(--wzl-surface-popover);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n outline: none;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n}._list_f29eb6 {\n padding: var(--wzl-space-2);\n max-height: 280px;\n overflow: auto;\n}._option_f29eb6 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-4);\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n color: var(--wzl-fg);\n outline: none;\n}._option_f29eb6[data-focused] {\n background: var(--wzl-surface-hover);\n}._option_f29eb6[data-selected] {\n font-weight: var(--wzl-font-weight-medium);\n}._option_f29eb6[data-disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n}._optionIcon_f29eb6 {\n display: inline-flex;\n vertical-align: middle;\n margin-inline-end: var(--wzl-space-3);\n}._optionIcon_f29eb6 > svg {\n display: block;\n}/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._panel_d6f101 {\n position: fixed;\n z-index: var(--wzl-z-popover);\n min-width: 180px;\n padding: var(--wzl-space-2);\n color: var(--wzl-fg);\n user-select: none;\n}\n\n._row_d6f101 {\n display: grid;\n grid-template-columns: 1.25em 1fr auto;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n cursor: default;\n}\n\na._row_d6f101 {\n text-decoration: none;\n}\n\n._current_d6f101 {\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._access_d6f101 {\n text-decoration: underline;\n}\n\n._row_d6f101[data-highlighted] {\n background: var(--wzl-surface-hover);\n}\n\n._row_d6f101[aria-disabled='true'] {\n color: var(--wzl-fg-muted);\n}\n\n._icon_d6f101 {\n display: inline-flex;\n justify-content: center;\n}\n\n._label_d6f101 {\n white-space: nowrap;\n}\n\n._shortcut_d6f101 {\n color: var(--wzl-fg-muted);\n}\n\n._caret_d6f101 {\n justify-self: end;\n width: 10px;\n height: 10px;\n transform: rotate(-90deg);\n}\n\n._separator_d6f101 {\n height: 1px;\n margin: var(--wzl-space-1) 0;\n background: var(--wzl-border);\n}\n\n/* A number row's field or a color row's swatch, in the shortcut's column. */\n._value_d6f101 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-1);\n justify-self: end;\n}\n\n._unit_d6f101 {\n color: var(--wzl-fg-muted);\n}\n\n/* A text row's field draws no box until it is focused, as a number row's ghost field does. */\n._text_d6f101 {\n --_frame-h: auto;\n --_frame-bg: transparent;\n --_frame-border: 1px solid transparent;\n --_frame-focus-shadow: none;\n}\n\n._text_d6f101 input {\n width: 12ch;\n padding: 1px 0;\n}\n\n._text_d6f101:focus-within {\n --_frame-bg: var(--wzl-surface-sunken);\n}\n\n/* The popover a color row opens beside itself. */\n._picker_d6f101 {\n padding: var(--wzl-space-2);\n outline: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A field shown as its value: text in the control's place, at the control's height, with no box around it. */\n._readout_76d20d {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-block-size: var(--wzl-control-h);\n min-inline-size: 0;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n white-space: nowrap;\n user-select: text;\n}\n\n._unit_76d20d {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* Nothing to show, or several values that disagree. */\n._none_76d20d {\n color: var(--wzl-fg-muted);\n}\n\n._swatch_76d20d {\n flex: none;\n inline-size: 12px;\n block-size: 12px;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--readout-swatch, transparent);\n}\n._root_d0f47f {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}\n\n._patch_d0f47f {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._preview_d0f47f {\n inline-size: 34px;\n block-size: 34px;\n flex: 0 0 auto;\n border-radius: var(--wzl-radius-sm);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n._corners_d0f47f {\n display: grid;\n grid-template-columns: repeat(2, auto);\n gap: var(--wzl-space-2) var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n._corner_d0f47f {\n min-inline-size: 0;\n}\n/* The overlay covers the canvas but must not intercept tool input; only the\n * handles opt back into hit-testing. */\n._overlay_419b91 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n/* These sit over artwork of unknown color, not over the app's own surface,\n * so they are deliberately not themed: a themed handle disappears against\n * whatever the user painted underneath. White-on-dark reads on anything,\n * which is why every editor draws handles this way. */\n._guide_419b91 {\n fill: none;\n stroke: #ffffff;\n stroke-opacity: 0.7;\n stroke-dasharray: 4 4;\n paint-order: stroke;\n}\n\n._handle_419b91 {\n fill: #ffffff;\n stroke: #222222;\n stroke-width: 2;\n cursor: grab;\n pointer-events: auto;\n}\n\n._handle_419b91:active {\n cursor: grabbing;\n}\n\n._handle_419b91:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n/* A point that shapes an edge rather than ending one — drawn dark-on-light,\n * the inverse of the handle it hangs off, so the two read apart at a glance. */\n._control_419b91 {\n fill: #222222;\n stroke: #ffffff;\n stroke-width: 1.5;\n}\n\n/* A patch edge: the outline the handles reshape, solid so it reads as the\n * artwork's structure rather than as a construction line. */\n._edge_419b91 {\n fill: none;\n stroke: #ffffff;\n stroke-opacity: 0.85;\n stroke-width: 1;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */\n._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}\n\n/* A part that reads: turned upright where the run would stand it upside down. */\n._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* The invisible hit area past a slider's track and each thumb, spanned by `::before`. Both are measured from the\n padding box, so each 1px border comes back out. A thumb comes later in the tree, so its slop wins where the two\n overlap. */._trackSlop_842300::before,\n._thumbSlop_842300::before {\n content: '';\n position: absolute;\n inset: calc(-1px - var(--wzl-slider-track-slop));\n}._thumbSlop_842300::before {\n inset: calc(-1px - var(--wzl-slider-thumb-slop));\n}\n\n._root_a7d497 {\n /* The value span stops this far short of each end of the track. Half a\n * thumb puts an end thumb flush with the edge; `fractionToPosition` in\n * Slider.tsx is the same geometry for painters. */\n --rp-thumb-inset: calc(var(--rp-thumb-size, 14px) / 2);\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n}\n\n._row_a7d497 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n}\n\n._track_a7d497 {\n position: relative;\n flex: 1;\n min-width: 0;\n height: var(--rp-track-height, 24px);\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-sunken, none);\n cursor: var(--rp-track-cursor, crosshair);\n /* No `overflow: hidden` here — thumbs at extreme values would get\n * clipped at the track edges. The gradient/track-paint clip is\n * applied to `.trackInner` instead, which lets thumbs spill freely. */\n}\n\n/* A notched thumb draws no border, so its slop needs no 1px back. */\n._thumb_a7d497._notched_a7d497::before {\n inset: calc(-1 * var(--wzl-slider-thumb-slop));\n}\n\n._overhang_a7d497 {\n --rp-thumb-inset: 0px;\n}\n\n._rail_a7d497 {\n position: absolute;\n inset: 0 var(--rp-thumb-inset);\n}\n\n/* Draws nothing: its screen matrix maps a pointer into the rail's own px. */\n._railFrame_a7d497 {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n pointer-events: none;\n}\n\n._trackInner_a7d497 {\n position: absolute;\n inset: 0;\n border-radius: var(--wzl-radius-sm);\n overflow: hidden;\n}\n\n._thumb_a7d497 {\n position: absolute;\n /* Thumb extends 2px above + below the track for grabbability + visual\n * weight. Track itself stays its natural height; the thumb just spills. */\n top: -2px;\n bottom: -2px;\n width: var(--rp-thumb-size, 14px);\n margin-left: calc(var(--rp-thumb-size, 14px) / -2);\n display: flex;\n align-items: center;\n justify-content: center;\n /* Not --wzl-fg-muted: that follows currentColor, which here is the inverse text on the thumb. */\n background: color-mix(in srgb, var(--wzl-fg) 50%, transparent);\n border: 1px solid var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n cursor: ew-resize;\n /* Frosted-glass over the (often colorful) track. Cheap on modern GPUs;\n * gracefully degrades to just the partial-alpha background on engines\n * without backdrop-filter support. */\n backdrop-filter: blur(3px);\n -webkit-backdrop-filter: blur(3px);\n /* Subtle raise — sells the \"thumb is on top of the track\" hierarchy. */\n box-shadow: var(--wzl-bevel-raised, 0 1px 2px rgba(0, 0, 0, 0.2));\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-inverse);\n /* White halo so labels stay legible over wildly varying gradient\n * backgrounds (e.g. labels 'T' / 'P' / 'B' over teal, hue 200° over\n * yellow-green, etc.). */\n text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);\n}\n\n/* A dot is a circle centered on the track; a tab spans it and spills 2px past each edge. */\n._thumb_a7d497._dot_a7d497 {\n top: 50%;\n bottom: auto;\n height: var(--rp-thumb-size, 14px);\n transform: translateY(-50%);\n border-radius: 50%;\n}\n\n._thumb_a7d497:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._thumbActive_a7d497 {\n /* Visual marker for the dragging/focused thumb; subclass-overridable. */\n z-index: 1;\n}\n\n/* The row holds absolutely-positioned labels, so it has to state its own\n height: the text's, not the thumb's. It said 14px — the default thumb's\n size — which left 4px of dead space under the labels whatever the thumb's size. */\n._readoutsBelow_a7d497 {\n position: relative;\n margin-inline: var(--rp-thumb-inset);\n height: calc(var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n margin-top: var(--wzl-space-2);\n}\n\n._readoutBelow_a7d497 {\n position: absolute;\n transform: translateX(-50%);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n._readoutInline_a7d497 {\n display: inline-block;\n margin-inline-start: var(--wzl-space-4);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n vertical-align: middle;\n}\n\n._notched_a7d497 {\n background: var(--thumb-svg, none);\n background-size: 100% 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n /* Notched thumbs need to disable the .thumb defaults that paint to\n * the bounding box: backdrop-filter and box-shadow both ignore the\n * SVG's polygon/notch and would render through the notch cutout.\n * Use filter: drop-shadow instead — it traces the actual rendered\n * alpha (i.e. the polygon shape including the cut). */\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n box-shadow: none;\n filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));\n /* Default notched SVG (down-pointing pentagon, matches the perceptual-color experiment). */\n --thumb-svg: url(\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 30' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 2.52,0 7,10.3 11.48,0 14,0 14,30 0,30' fill='rgba(255,255,255,0.62)' stroke='rgba(0,0,0,0.55)' stroke-width='0.75' stroke-linejoin='miter'/%3E%3C/svg%3E\");\n}\n\n._ticks_a7d497 {\n position: absolute;\n inset: 0;\n /* A mark must never eat the track click that adds a thumb, nor the\n * pointerdown that starts a drag through it. */\n pointer-events: none;\n}\n\n._tick_a7d497 {\n position: absolute;\n top: var(--rp-tick-inset, 20%);\n bottom: var(--rp-tick-inset, 20%);\n width: var(--rp-tick-width, 1px);\n margin-left: calc(var(--rp-tick-width, 1px) / -2);\n border-radius: var(--wzl-radius-pill);\n background: var(--rp-tick-color, var(--wzl-border-strong));\n}\n\n/* The labels hang below the track out of flow, so the row reserves their\n * height and anything after it — the below-thumb readouts — clears them.\n * Padding, not margin: a margin would collapse into whatever follows. */\n._withStopLabels_a7d497 ._row_a7d497 {\n padding-bottom: calc(var(--wzl-space-xs) + var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n}\n\n._stopLabels_a7d497 {\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + var(--wzl-space-xs));\n height: calc(var(--wzl-font-size-xs) * var(--wzl-leading-tight));\n pointer-events: none;\n}\n\n._stopLabel_a7d497 {\n position: absolute;\n transform: translateX(-50%);\n white-space: nowrap;\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-subtle);\n}\n\n/* An end label centers on its stop like the rest, but stops at the track's edge,\n * so a wide one can't spill past the control and misalign whatever sits beside it.\n * The rail is inset from that edge by `--rp-thumb-inset`. */\n._stopLabel_a7d497[data-edge=\"left\"] {\n transform: translateX(max(-50%, -1 * var(--rp-thumb-inset)));\n}\n\n._stopLabel_a7d497[data-edge=\"right\"] {\n transform: translateX(min(-50%, var(--rp-thumb-inset) - 100%));\n}\n\n._stopLabel_a7d497[data-selected] {\n color: var(--wzl-fg);\n font-weight: var(--wzl-font-weight-medium);\n}\n\n/* On a curve the root fills its containing block, and every part sits at its\n * place along the shape (`--at-x`, `--at-y`), tipped to it (`--at-angle`).\n * Only the band's stroke and the thumbs take pointers. */\n._curved_a7d497 {\n /* The band is half as thick as the stop ticks across it unless a track height is given;\n * the reach, ticks included, sizes what must clear or cover the whole band. */\n --rp-band: var(--rp-track-height, calc(var(--rp-tick-length, 14px) / 2));\n --rp-band-reach: max(var(--rp-band), var(--rp-tick-length, 14px));\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._band_a7d497 {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n._bandSlop_a7d497,\n._bandEdge_a7d497,\n._bandFace_a7d497 {\n fill: none;\n}\n\n._bandSlop_a7d497 {\n stroke: transparent;\n stroke-width: calc(var(--rp-band-reach) + 2 * var(--wzl-slider-track-slop));\n pointer-events: stroke;\n cursor: var(--rp-track-cursor, crosshair);\n}\n\n._bandEdge_a7d497 {\n stroke: var(--wzl-border);\n stroke-width: calc(var(--rp-band) + 2px);\n}\n\n._bandFace_a7d497 {\n stroke: var(--wzl-surface-sunken);\n stroke-width: var(--rp-band);\n}\n\n._paintLayer_a7d497 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n/* Each also takes `onRun`; this outranks what the straight rules give the same parts. */\n._curved_a7d497 ._thumb_a7d497,\n._curved_a7d497 ._tick_a7d497,\n._curved_a7d497 ._stopLabel_a7d497 {\n top: var(--at-y);\n bottom: auto;\n margin-left: 0;\n transform: var(--on-run);\n}\n\n._curved_a7d497 ._thumb_a7d497 {\n height: calc(var(--rp-band-reach) + 4px);\n pointer-events: auto;\n}\n\n._curved_a7d497 ._thumb_a7d497._dot_a7d497 {\n height: var(--rp-thumb-size, 14px);\n}\n\n._curved_a7d497 ._tick_a7d497 {\n height: var(--rp-tick-length, 14px);\n}\n\n._curved_a7d497 ._stopLabels_a7d497 {\n top: 0;\n bottom: 0;\n height: auto;\n}\n\n/* Down the run's normal, past the band: outside the circle on a bottom arc. */\n._curved_a7d497 ._stopLabel_a7d497 {\n transform: var(--on-run) translateY(calc(var(--rp-band-reach) / 2 + var(--wzl-space-xs) + 0.5lh)) var(--upright);\n}\n\n._readoutsAlong_a7d497 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._readoutAlong_a7d497 {\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* Below the stop labels' line, one row per step of --row. */\n._readoutsAlong_a7d497 > ._readoutAlong_a7d497 {\n transform: var(--on-run) translateY(calc(var(--rp-band-reach) / 2 + var(--wzl-space-xs) + (var(--row, 0) + 1.5) * 1lh)) var(--upright);\n}\n\n/* One stretch of track between neighboring thumbs, under the thumbs either side of it. */\n._region_a7d497 {\n position: absolute;\n top: 0;\n bottom: 0;\n}\n/* A curved track's paint, over the slider's band and as thick as its face. */\n._curve_081db4 {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n._stroke_081db4 {\n fill: none;\n stroke-width: var(--rp-band);\n}\n\n._dim_081db4 {\n stroke: var(--wzl-surface);\n}\n\n._stripe_081db4 {\n fill: var(--wzl-surface);\n}\n/* Sets its own height: a host's control-height default for bare buttons\n (labkit's) would otherwise stretch the square. */\n._close_8d163b {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-icon-button-size);\n height: var(--wzl-icon-button-size);\n padding: 0;\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n}\n\n._close_8d163b:hover:not(:disabled) {\n background: var(--wzl-surface-hover);\n border-color: transparent;\n color: var(--wzl-fg);\n}\n\n._close_8d163b:active:not(:disabled) {\n background: var(--wzl-surface-pressed);\n}\n\n._close_8d163b:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._close_8d163b:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n/* The ramp is painted over this, so a stop with less than full opacity shows\n * the checker through it rather than the panel. */\n._checker_d594b0 {\n position: absolute;\n inset: 0;\n background: var(--wzl-checker-layer);\n}\n\n/* Wide enough that a handle's color reads at a glance. */\n._track_d594b0 {\n --rp-thumb-size: 16px;\n}\n\n/* A handle's face fills the thumb inside its frame: the stop's color over the checker. */\n._stop_d594b0 {\n position: absolute;\n inset: var(--wzl-border-w);\n border-radius: calc(var(--wzl-radius-sm) - 2 * var(--wzl-border-w));\n background:\n linear-gradient(var(--stop), var(--stop)),\n var(--wzl-checker-layer);\n}\n\n._stop_d594b0[data-selected] {\n box-shadow:\n 0 0 0 2px var(--wzl-surface),\n 0 0 0 4px var(--wzl-accent);\n}\n\n/* The selected handle stays on top of a neighbor it overlaps. */\n._track_d594b0 [role='slider']:has([data-selected]) {\n z-index: 1;\n}\n\n._editor_d594b0 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* The opacity slider takes the slack; the swatch, the readouts, and the remove button keep their widths. */\n._color_d594b0 {\n flex: 1 1 auto;\n min-inline-size: 0;\n}\n\n._position_d594b0 {\n flex: 0 0 auto;\n /* Holds `100%` and `33.3%`. */\n --wzl-number-field-width: 6ch;\n}\n._root_f05b2c {\n min-inline-size: 0;\n}\n\n._body_f05b2c {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-inline-size: 0;\n}\n\n._root_f05b2c[data-disabled] ._body_f05b2c {\n opacity: 0.5;\n}\n\n._noEditor_f05b2c {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n/* Tile grid over the size switch. */\n._root_429eae {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n._grid_429eae {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(var(--wzl-swatch-size, 28px), 1fr));\n gap: 0;\n}\n\n/* The swatch's whole face is its own tile, so it must not carry a flat\n background — and the tile repeats at its own scale, not the swatch's. */\n._swatch_429eae {\n width: 100%;\n aspect-ratio: 1 / 1;\n min-width: 0;\n padding: 0;\n border: 0.5px solid var(--wzl-border);\n border-radius: 0;\n /* Not the UA's buttontext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n cursor: pointer;\n background-color: var(--wzl-surface-sunken);\n background-image: var(--tile-preview);\n background-repeat: repeat;\n background-size: 16px 16px;\n background-clip: padding-box;\n}\n\n._swatch_429eae:hover {\n border-color: var(--wzl-fg-muted);\n}\n\n/* A picture is shown whole rather than tiled at a fixed size. */\n._imageSwatch_429eae {\n display: grid;\n place-items: center;\n color: var(--wzl-fg-muted);\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n/* The upload swatch opens it; the input itself is never seen. */\n._fileInput_429eae {\n display: none;\n}\n\n._swatchActive_429eae {\n border-color: var(--wzl-accent);\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n/* Kind switch stacked over whichever paint body it selects. */\n._root_18de17 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* A value is in effect but nobody chose it. Never louder than mixed. */\n._unset_18de17 {\n opacity: 0.55;\n}\n\n/* A kind with no editor: named, not editable. */\n._noEditor_18de17 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n/* The opacity slider under a paint with no single color, laid out as the\n * solid's sits beside its swatch. */\n._opacity_18de17 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n/* What an inheriting paint paints: shown, not edited — it is the container's. */\n._inherited_18de17 {\n display: block;\n block-size: 18px; /* not-a-control */\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n background-color: var(--wzl-surface-raised);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n._inherited_18de17[data-empty] {\n background: var(--wzl-checker-layer);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._trigger_0aa693 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n min-inline-size: 0;\n padding: 1px var(--wzl-space-3) 1px 1px;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-field-font-size, var(--wzl-font-size-sm));\n cursor: pointer;\n}\n\n._trigger_0aa693[data-unset] {\n opacity: 0.6;\n}\n\n._trigger_0aa693[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._trigger_0aa693[data-focus-visible] {\n outline: none;\n border-color: var(--wzl-focus-ring);\n box-shadow: 0 0 0 1px var(--wzl-focus-ring);\n}\n\n._swatch_0aa693 {\n /* A paint preview at a fixed 26:18 aspect, not a control box. */\n inline-size: 26px;\n block-size: 18px; /* not-a-control */\n flex: 0 0 auto;\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n /* Checker under the paint, so a translucent one reads as translucent. */\n background-color: var(--wzl-surface-raised);\n box-shadow: inset 0 0 0 1px var(--wzl-border);\n}\n\n/* No paint to show: the checker stands in rather than an invented color. */\n._swatch_0aa693[data-empty],\n._trigger_0aa693[data-mixed] ._swatch_0aa693 {\n background: var(--wzl-checker-layer);\n}\n\n._label_0aa693 {\n flex: 1 1 auto;\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: start;\n}\n\n._popover_0aa693 {\n outline: none;\n}\n\n._body_0aa693 {\n inline-size: 240px;\n padding: var(--wzl-space-4);\n}\n._trigger_26c94d {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--wzl-space-3);\n padding: 0 var(--wzl-space-3) 0 var(--wzl-space-5);\n white-space: nowrap;\n cursor: pointer;\n}\n\n._label_26c94d {\n color: var(--wzl-fg-subtle);\n}\n\n._trigger_26c94d[data-current] ._label_26c94d {\n color: var(--wzl-fg);\n}\n\n/* A trigger that is the text around it: a heading that opens a list. */\n._bare_26c94d {\n align-items: baseline;\n gap: var(--wzl-space-2);\n padding: 0;\n background: none;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: inherit;\n font: inherit;\n}\n\n._bare_26c94d ._label_26c94d {\n color: inherit;\n}\n\n._bare_26c94d:hover:not(:disabled) {\n color: var(--wzl-accent-fg);\n}\n\n._bare_26c94d:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._bare_26c94d:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._bare_26c94d ._chevron_26c94d {\n width: 0.5em;\n height: 0.5em;\n color: inherit;\n opacity: 0.6;\n}\n\n._chevron_26c94d {\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: 0 0 auto;\n}\n/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}\n\n._group_7a7e7d {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._group_7a7e7d[data-orientation=\"horizontal\"] {\n flex-direction: row;\n gap: var(--wzl-space-8);\n}\n\n._legend_7a7e7d {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._radio_7a7e7d {\n /* Holds react-aria's hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-size: var(--wzl-field-font-size, var(--wzl-font-size));\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}\n\n._radio_7a7e7d[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._dot_7a7e7d {\n position: relative;\n flex: 0 0 auto;\n width: 14px;\n height: 14px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border-strong);\n border-radius: 50%;\n box-shadow: var(--wzl-bevel-sunken, none);\n transition: border-color var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast);\n}\n\n._radio_7a7e7d[data-focus-visible] ._dot_7a7e7d {\n box-shadow: var(--wzl-bevel-sunken, 0 0 0 0 transparent), 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._radio_7a7e7d[data-hovered]:not([data-disabled]) ._dot_7a7e7d {\n border-color: var(--wzl-fg-muted);\n}\n\n._radio_7a7e7d[data-selected] ._dot_7a7e7d {\n border-color: var(--wzl-accent-strong);\n}\n\n._dot_7a7e7d::after {\n content: '';\n position: absolute;\n inset: 3px;\n border-radius: 50%;\n background: var(--wzl-accent-strong);\n transform: scale(0);\n transition: transform var(--wzl-motion-fast);\n}\n\n._radio_7a7e7d[data-selected] ._dot_7a7e7d::after {\n transform: scale(1);\n}\n\n/* A radio group laid along a track shape: its label and radios are placed on the run. */\n._along_7a7e7d {\n column-gap: var(--wzl-space-6);\n}\n\n._along_7a7e7d > ._alongGroup_7a7e7d {\n position: absolute;\n inset: 0;\n display: block;\n pointer-events: none;\n}\n\n._along_7a7e7d ._radio_7a7e7d {\n position: absolute;\n}\n\n/* The label names the group and has nothing to press. */\n._along_7a7e7d ._lead_7a7e7d {\n pointer-events: none;\n white-space: nowrap;\n}\n\n/* The description and error, hung from a spot one row in from the run's middle: `--hang` 1 hangs them below the spot\n * and -1 stands them on it, in their own tipped frame. */\n._hint_7a7e7d {\n}\n\n/* Outranks `.onRun`'s transform, which loads in no fixed order. */\n._along_7a7e7d ._hint_7a7e7d {\n display: flex;\n flex-direction: column;\n align-items: center;\n inline-size: max-content;\n text-align: center;\n transform: var(--on-run) translateY(calc(var(--hang) * 50%));\n}\n/* A button that is flat or Aqua glass by the theme's --wzl-gloss: each boxed\n variant lays a flat fill over its glass ramp and fades the fill out, and the\n gloss and shadows in, as the token runs 0 to 1. Every glass parameter is a\n custom property so the Button Lab can override per-instance via inline style. */\n._button_a9714b {\n --_flat: calc((1 - var(--wzl-gloss)) * 100%);\n\n /* ---- Tunables (with Aqua-biased defaults) ---- */\n /* Corner radius = 10% of the button's height (the shorter axis on every\n realistic button shape). Using calc against --btn-height keeps the\n corners circular rather than elliptical, which a % value would\n otherwise produce on a wide-but-short pill. */\n --btn-radius: var(--wzl-button-radius, calc(var(--btn-height) * 0.1));\n --btn-fontweight: var(--wzl-button-font-weight, var(--wzl-font-weight-medium));\n --btn-fontsize: var(--wzl-font-size);\n --btn-height: var(--wzl-control-h);\n --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-6));\n\n /* Body gradient — alpha-laced top, opaque bottom. Percentages are\n \"color-mix accent ratio\" so 45% = 45% accent + 55% transparent. */\n --btn-top-alpha: 45%;\n --btn-upper-alpha: 70%;\n --btn-equator: 52%; /* vertical position of the bright-to-deep transition */\n --btn-equator-spread: 12%; /* half-width of the equator transition band */\n --btn-equator-tint: 95%; /* accent vs white at equator */\n --btn-base-tint: 70%; /* accent vs black at base */\n --btn-blur: 6px;\n --btn-saturate: 1.3;\n\n /* Specular gloss (::before) */\n --btn-gloss-top: 0.42;\n --btn-gloss-mid: 0.12;\n --btn-gloss-bottom: 50%; /* inset from bottom — 50% = upper hemisphere */\n\n /* 3D shadows */\n --btn-rim: 0.22;\n --btn-drop-near: 0.30;\n --btn-drop-far: 0.18;\n --btn-inset-hi: 0.42;\n --btn-inset-lo: 0.3;\n\n /* Text — main shadow + a second engraving shadow you can angle.\n `inset-x` / `inset-y` are pre-projected offsets from `inset-angle` so\n the lab can drive them with a single slider. */\n --btn-text-shadow: 0.35;\n --btn-text-inset: 0.55;\n --btn-text-inset-x: 0px;\n --btn-text-inset-y: 1px;\n\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-3);\n border: none;\n border-radius: var(--btn-radius);\n font-family: var(--wzl-font-ui);\n font-weight: var(--btn-fontweight);\n font-style: normal;\n font-size: var(--wzl-field-font-size, var(--btn-fontsize));\n height: var(--btn-height);\n padding: 0 var(--btn-padx);\n line-height: 1;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n isolation: isolate;\n overflow: hidden;\n transition: filter var(--wzl-motion-fast), box-shadow var(--wzl-motion-fast), transform 80ms;\n}\n\n/* Specular gloss — covers the upper hemisphere of the pill with a bright\n white sheen that fades to nothing by the equator. The single detail that\n sells the glass-cylinder illusion. */\n._button_a9714b::before {\n content: '';\n position: absolute;\n inset: 1px 1px var(--btn-gloss-bottom) 1px;\n /* Top corners hug the button's outline; bottom corners are flat so the\n gloss terminates in a straight line at the equator rather than two\n little arcs that read as `)(` brackets at smaller radii. */\n border-top-left-radius: var(--btn-radius);\n border-top-right-radius: var(--btn-radius);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, var(--btn-gloss-top)) 0%,\n rgba(255, 255, 255, var(--btn-gloss-mid)) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n pointer-events: none;\n z-index: 1;\n opacity: calc(var(--wzl-button-gloss, 1) * var(--wzl-gloss));\n transition: opacity var(--wzl-motion-fast);\n}\n\n._button_a9714b > * {\n position: relative;\n z-index: 2;\n}\n\n._button_a9714b:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._button_a9714b:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* ---------- Sizes — set defaults for the custom props ---------- */\n\n._size_sm_a9714b { --btn-height: var(--wzl-control-h-sm); --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-4)); --btn-fontsize: var(--wzl-font-size-sm); }\n._size_md_a9714b { --btn-height: var(--wzl-control-h); --btn-padx: var(--wzl-button-pad-x, var(--wzl-space-6)); --btn-fontsize: var(--wzl-font-size); }\n\n._iconOnly_a9714b._size_sm_a9714b { width: var(--wzl-control-h-sm); --btn-padx: 0; }\n._iconOnly_a9714b._size_md_a9714b { width: var(--wzl-control-h); --btn-padx: 0; }\n\n/* ---------- Variants ---------- */\n\n/* Confirm stance on a solid button: tinted aqua glass — body uses --wzl-accent. The upper / equator\n / lower stops are positioned around --btn-equator so dragging the equator\n shifts the entire transition zone as one block. */\n._variant_solid_a9714b[data-stance='confirm'] {\n background: var(--wzl-button-confirm-surface, var(--btn-glass));\n text-shadow: var(--wzl-button-text-shadow, var(--btn-engraving));\n box-shadow: var(--wzl-button-confirm-bevel, var(--wzl-bevel-raised, var(--btn-relief)));\n --_flat-fill: color-mix(in srgb, var(--wzl-accent) var(--_flat), transparent);\n --btn-glass: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) var(--btn-top-alpha), transparent) 0%,\n color-mix(in srgb, var(--wzl-accent) var(--btn-upper-alpha), transparent) calc(var(--btn-equator) - var(--btn-equator-spread)),\n color-mix(in srgb, var(--wzl-accent) var(--btn-equator-tint), white) var(--btn-equator),\n var(--wzl-accent) calc(var(--btn-equator) + var(--btn-equator-spread) * 1.6),\n color-mix(in srgb, var(--wzl-accent) var(--btn-base-tint), black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n color: var(--wzl-button-confirm-fg, var(--wzl-fg-on-accent));\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n /* Main shadow below for legibility, then a second engraving shadow at a\n configurable angle (defaults below) — a near-black, lower-alpha stamp\n that sits underneath the glyphs and reads as recessed type. */\n --btn-engraving:\n 0 1px 0 light-dark(rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.4 * var(--wzl-gloss))), rgba(0, 0, 0, calc(var(--btn-text-shadow) * var(--wzl-gloss)))),\n var(--btn-text-inset-x) var(--btn-text-inset-y) 0\n light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-inset) * var(--wzl-gloss)))),\n 0 0 6px light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.5 * var(--wzl-gloss))));\n --btn-relief:\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi) * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo) * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(var(--btn-rim) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near) * var(--wzl-gloss))),\n 0 3px 6px rgba(0, 0, 0, calc(var(--btn-drop-far) * var(--wzl-gloss)));\n}\n\n._variant_solid_a9714b[data-stance='confirm']:hover:not(:disabled) {\n filter: brightness(1.08) saturate(1.06);\n}\n\n._variant_solid_a9714b[data-stance='confirm']:active:not(:disabled) {\n background: var(--wzl-button-confirm-pressed-surface, var(--btn-glass-pressed));\n box-shadow: var(--wzl-bevel-pressed, var(--btn-relief-pressed));\n --_flat-fill: color-mix(in srgb, color-mix(in srgb, var(--wzl-accent) 85%, black) var(--_flat), transparent);\n --btn-glass-pressed: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) 80%, black) 0%,\n color-mix(in srgb, var(--wzl-accent) 95%, black) 50%,\n color-mix(in srgb, var(--wzl-accent) 60%, white) 100%\n );\n --btn-relief-pressed:\n inset 0 2px 4px rgba(0, 0, 0, calc(0.35 * var(--wzl-gloss))),\n inset 0 -1px 0 rgba(255, 255, 255, calc(0.25 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc((var(--btn-rim) + 0.06) * var(--wzl-gloss)));\n transform: translateY(0.5px);\n}\n._variant_solid_a9714b[data-stance='confirm']:active::before { opacity: calc(0.3 * var(--wzl-gloss)); }\n\n/* Solid: neutral glass — drained of color. Flat, it is the raised\n surface, which needs a line around it to read as a button on a panel of\n the same surface; the line fades out as the glass's own rim fades in. */\n._variant_solid_a9714b {\n background: var(--wzl-button-surface, var(--btn-glass));\n text-shadow: var(--wzl-button-text-shadow, var(--btn-engraving));\n box-shadow: var(--wzl-bevel-raised, var(--btn-relief));\n --_flat-fill: color-mix(in srgb, var(--wzl-surface-raised) var(--_flat), transparent);\n --btn-glass: linear-gradient(var(--_flat-fill), var(--_flat-fill)), linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-fg) 25%, transparent) 0%,\n color-mix(in srgb, var(--wzl-fg) 10%, transparent) calc(var(--btn-equator) - var(--btn-equator-spread)),\n color-mix(in srgb, var(--wzl-surface-raised) 90%, white) var(--btn-equator),\n var(--wzl-surface-raised) calc(var(--btn-equator) + var(--btn-equator-spread) * 1.6),\n color-mix(in srgb, var(--wzl-surface-sunken) 80%, black) 100%\n );\n backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n -webkit-backdrop-filter: blur(calc(var(--btn-blur) * var(--wzl-gloss))) saturate(calc(1 + (var(--btn-saturate) - 1) * var(--wzl-gloss)));\n color: var(--wzl-fg);\n /* Dark type on a light body: a dark stamp under it reads as a smear of the\n glyph rather than depth, so light mode drops it. */\n --btn-engraving:\n 0 1px 0 light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-shadow) * 0.7 * var(--wzl-gloss)))),\n var(--btn-text-inset-x) var(--btn-text-inset-y) 0\n light-dark(transparent, rgba(0, 0, 0, calc(var(--btn-text-inset) * 0.7 * var(--wzl-gloss))));\n --btn-relief:\n inset 0 0 0 1px color-mix(in srgb, var(--wzl-border-strong) var(--_flat), transparent),\n inset 0 1px 0 rgba(255, 255, 255, calc(var(--btn-inset-hi) * 0.5 * var(--wzl-gloss))),\n inset 0 -1px 2px rgba(0, 0, 0, calc(var(--btn-inset-lo) * 0.83 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc((var(--btn-rim) + 0.03) * var(--wzl-gloss))),\n 0 1px 2px rgba(0, 0, 0, calc(var(--btn-drop-near) * 0.93 * var(--wzl-gloss))),\n 0 3px 6px rgba(0, 0, 0, calc(var(--btn-drop-far) * 0.89 * var(--wzl-gloss)));\n}\n\n._variant_solid_a9714b:hover:not(:disabled) { filter: brightness(1.1); }\n\n._variant_solid_a9714b:active:not(:disabled) {\n background: var(--wzl-button-pressed-surface, var(--btn-glass-pressed));\n box-shadow: var(--wzl-bevel-pressed, var(--btn-relief-pressed));\n --_flat-fill: color-mix(in srgb, var(--wzl-surface-sunken) var(--_flat), transparent);\n --btn-glass-pressed: linear-gradient(var(--_flat-fill), var(--_flat-fill)),\n linear-gradient(180deg, var(--wzl-surface-sunken) 0%, var(--wzl-surface-raised) 100%);\n --btn-relief-pressed:\n inset 0 0 0 1px color-mix(in srgb, var(--wzl-border-strong) var(--_flat), transparent),\n inset 0 2px 4px rgba(0, 0, 0, calc(0.4 * var(--wzl-gloss))),\n 0 0 0 1px rgba(0, 0, 0, calc(0.3 * var(--wzl-gloss)));\n transform: translateY(0.5px);\n}\n._variant_solid_a9714b:active::before { opacity: calc(0.2 * var(--wzl-gloss)); }\n\n/* Ghost: silhouette only — no glass body, no gloss. */\n._variant_ghost_a9714b {\n background: transparent;\n color: var(--wzl-fg);\n box-shadow: none;\n}\n._variant_ghost_a9714b::before { display: none; }\n\n._variant_ghost_a9714b:hover:not(:disabled):not(._pressed_a9714b) {\n background: var(--wzl-surface-hover);\n}\n\n/* A graded ghost stays quiet until pointed at, then shows its grade: a discard in a toolbar reddens on hover. */\n._variant_ghost_a9714b[data-grade]:hover:not(:disabled) {\n color: var(--_s-accent);\n box-shadow: inset 0 0 0 1px var(--_s-accent);\n}\n\n._variant_ghost_a9714b:active:not(:disabled) {\n background: var(--wzl-surface-pressed);\n}\n\n/* Link: text only, sized by the surrounding text rather than the control scale. */\n._variant_link_a9714b {\n display: inline;\n height: auto;\n padding: 0;\n border-radius: var(--wzl-radius-sm);\n background: transparent;\n box-shadow: none;\n text-shadow: none;\n font: inherit;\n line-height: inherit;\n text-align: start;\n overflow: visible;\n /* A tint, grade, or stance accent paints over emphasis. */\n color: var(--_s-accent, var(--btn-link-fg));\n text-decoration: underline;\n text-underline-offset: 0.15em;\n}\n._variant_link_a9714b { --btn-link-fg: var(--wzl-emphasis-fg, var(--wzl-accent-fg)); }\n\n._variant_link_a9714b::before { display: none; }\n._variant_link_a9714b ._label_a9714b { display: inline; }\n\n._variant_link_a9714b:hover:not(:disabled) {\n text-decoration-thickness: 2px;\n}\n\n/* ---------- Modifiers ---------- */\n\n._pressed_a9714b:not(:disabled) {\n background: var(--wzl-surface-pressed);\n color: var(--wzl-fg);\n box-shadow: var(--wzl-bevel-pressed, inset 0 1px 2px rgb(0 0 0 / 18%));\n}\n\n._variant_solid_a9714b[data-stance='confirm']._pressed_a9714b:not(:disabled) { filter: brightness(0.92); }\n\n._fullWidth_a9714b { width: 100%; }\n._loading_a9714b ._label_a9714b { opacity: 0.7; }\n\n/* ---------- Slots ---------- */\n\n._iconSlot_a9714b {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n\n._size_sm_a9714b ._iconSlot_a9714b > svg { width: var(--wzl-button-icon-size, 12px); height: var(--wzl-button-icon-size, 12px); }\n._size_md_a9714b ._iconSlot_a9714b > svg { width: var(--wzl-button-icon-size, 14px); height: var(--wzl-button-icon-size, 14px); }\n\n._label_a9714b { display: inline-block; }\n\n/* ---------- Spinner ---------- */\n\n._spinner_a9714b {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n animation: _wzl-btn-spin_a9714b 0.7s linear infinite;\n}\n\n@keyframes _wzl-btn-spin_a9714b {\n to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._spinner_a9714b {\n animation: none;\n }\n}\n\n/* BEGIN GENERATED stance rules: button — `npm run gen:stances`, do not edit. */\n\n._button_a9714b {\n --wzl-tint: initial;\n}\n\n._button_a9714b {\n --_s-accent: var(--wzl-tint);\n}\n\n._button_a9714b[data-stance='clarify'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='aside'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='advanced'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='debug'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='preview'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='confirm'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-stance='cancel'] {\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n}\n\n._button_a9714b[data-grade] {\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._button_a9714b[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: button */\n/* In :where() so an owner's class sizes and colors the handle without a specificity contest. */\n:where(._handle_0ec46e) {\n font: inherit;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border: 0;\n background: transparent;\n color: var(--wzl-fg-subtle);\n cursor: grab;\n touch-action: none;\n user-select: none;\n}\n\n:where(._handle_0ec46e):active {\n cursor: grabbing;\n}\n\n:where(._handle_0ec46e):disabled {\n cursor: default;\n}\n._editor_2316ed {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n /* A width that yields, not a floor: a dialog sizes to it, and a form row narrower than it keeps the editor inside. */\n inline-size: 28rem;\n max-inline-size: 100%;\n}\n\n._list_2316ed {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n._entry_2316ed {\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n._entry_2316ed[data-dragging] {\n opacity: 0.5;\n}\n\n/* Where a dragged entry would land: a line on the edge of the entry it would land against. */\n._entry_2316ed[data-drop-before] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._entry_2316ed[data-drop-after] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n._handle_2316ed {\n flex: none;\n align-self: stretch;\n padding: 0 var(--wzl-space-1);\n border-radius: var(--wzl-radius-sm);\n}\n\n._input_2316ed {\n flex: 1 1 auto;\n min-width: 0;\n padding: 0 var(--wzl-field-pad-x);\n}\n\n._control_2316ed {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n._empty_2316ed {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n\n._actions_2316ed {\n display: flex;\n}\n/* A frame that grows a line at a time as its chips wrap, rather than the one-line height a field keeps. */\n._field_65f58b {\n --_frame-h: auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n min-block-size: var(--wzl-field-h, var(--wzl-control-h));\n padding: var(--wzl-space-1);\n box-sizing: border-box;\n cursor: text;\n}\n\n._slot_65f58b {\n position: relative;\n display: inline-flex;\n max-inline-size: 100%;\n cursor: default;\n}\n\n._slot_65f58b[data-dragging] {\n opacity: 0.5;\n}\n\n/* Where a dragged chip would land: a bar on the edge of the chip it would land against. */\n._slot_65f58b:is([data-drop-before], [data-drop-after])::before {\n content: '';\n position: absolute;\n inset-block: 0;\n inline-size: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n}\n\n._slot_65f58b[data-drop-before]::before {\n inset-inline-start: calc(-1 * var(--wzl-space-2) / 2 - 1px);\n}\n\n._slot_65f58b[data-drop-after]::before {\n inset-inline-end: calc(-1 * var(--wzl-space-2) / 2 - 1px);\n}\n\n/* A token is a value as typed, not a status: it keeps its case and the field's text size. Ungraded, its\n tint is the muted text color, since the border gray a badge falls back to vanishes on a sunken field. */\n._field_65f58b ._token_65f58b {\n --badge-font-size: var(--wzl-font-size-sm);\n --badge-emphasis-edge: var(--wzl-fg-muted);\n text-transform: none;\n letter-spacing: normal;\n max-inline-size: 100%;\n}\n\n._field_65f58b ._slot_65f58b ._token_65f58b:not([data-grade]) {\n --badge-fg: var(--wzl-fg);\n}\n\n._input_65f58b {\n flex: 1 0 7rem;\n min-inline-size: 7rem;\n block-size: calc(var(--wzl-field-h, var(--wzl-control-h)) - 2 * var(--wzl-space-1) - 2px);\n padding: 0 var(--wzl-space-1);\n}\n\n._popover_65f58b {\n outline: none;\n}\n\n._editor_65f58b {\n display: grid;\n gap: var(--wzl-space-2);\n inline-size: 220px;\n padding: var(--wzl-space-3);\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n\n._tabs_d11ff0 {\n display: flex;\n flex-direction: column;\n gap: 0;\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._tabs_d11ff0[data-orientation=\"horizontal\"] {\n flex-direction: column;\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] {\n flex-direction: row;\n gap: var(--wzl-space-6);\n}\n\n._list_d11ff0 {\n display: flex;\n gap: var(--wzl-space-1);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._list_d11ff0 {\n flex-direction: column;\n border-bottom: none;\n border-inline-end: 1px solid var(--wzl-border);\n padding-inline-end: var(--wzl-space-4);\n}\n\n._tab_d11ff0 {\n position: relative;\n padding: var(--wzl-space-3) var(--wzl-space-5);\n background: transparent;\n border: none;\n color: var(--wzl-fg-muted);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n cursor: pointer;\n outline: none;\n transition: color var(--wzl-motion-fast);\n}\n\n/* A tab's raised edge, under a theme that draws one: every side but the one its panel is on. The\n face runs past that side and is cut back to it, which leaves the bevel there outside the cut. */\n._tab_d11ff0::before {\n --_open: 8px;\n content: '';\n position: absolute;\n inset: 0 0 calc(-1 * var(--_open)) 0;\n clip-path: inset(0 0 var(--_open) 0);\n box-shadow: var(--wzl-bevel-raised, none);\n pointer-events: none;\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0::before {\n inset-block: 0;\n inset-inline: 0 calc(-1 * var(--_open));\n clip-path: inset(0 var(--_open) 0 0);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0:dir(rtl)::before {\n clip-path: inset(0 0 0 var(--_open));\n}\n\n._tab_d11ff0[data-hovered]:not([data-disabled]) {\n color: var(--wzl-fg);\n}\n\n._tab_d11ff0[data-selected] {\n color: var(--wzl-fg);\n}\n\n._tab_d11ff0[data-selected]::after {\n content: '';\n position: absolute;\n inset-inline: 0;\n bottom: -1px;\n height: 2px;\n background: var(--wzl-accent-strong);\n}\n\n._tabs_d11ff0[data-orientation=\"vertical\"] ._tab_d11ff0[data-selected]::after {\n inset-inline-start: auto;\n inset-inline-end: calc(-1 * (var(--wzl-space-4) + 1px));\n top: 0;\n bottom: 0;\n width: 2px;\n height: auto;\n}\n\n._tab_d11ff0[data-focus-visible] {\n box-shadow: inset 0 0 0 2px var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n}\n\n._tab_d11ff0[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._panel_d11ff0 {\n padding: var(--wzl-space-6) 0;\n outline: none;\n /* Inside an `Along`, which takes no input, the panel still does. */\n pointer-events: auto;\n}\n\n._panel_d11ff0[data-focus-visible] {\n box-shadow: inset 0 0 0 2px var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n}\n\n/* A tab list laid along a track shape: its tabs are placed on the run, and the rule is drawn along it. */\n._along_d11ff0 {\n column-gap: var(--wzl-space-1);\n}\n\n/* The list inside a run laid out around it. */\n._list_d11ff0._joined_d11ff0 {\n position: absolute;\n inset: 0;\n border-bottom: none;\n pointer-events: none;\n}\n\n._along_d11ff0 ._tab_d11ff0 {\n position: absolute;\n}\n\n/* The marker is drawn along the rule instead, so it bends with it. */\n._along_d11ff0 ._tab_d11ff0[data-selected]::after {\n display: none;\n}\n\n/* A tab whose top faces the inside of the bend has its panel on that side. */\n._along_d11ff0 ._tab_d11ff0[data-inside='top']::before {\n inset: calc(-1 * var(--_open)) 0 0 0;\n clip-path: inset(var(--_open) 0 0 0);\n}\n\n._rule_d11ff0 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}\n\n._ruleLine_d11ff0,\n._ruleMarker_d11ff0,\n._ruleDrop_d11ff0 {\n fill: none;\n}\n\n._ruleLine_d11ff0 {\n stroke: var(--wzl-border);\n stroke-width: 1px;\n}\n\n._ruleMarker_d11ff0 {\n stroke: var(--wzl-accent-strong);\n stroke-width: 2px;\n}\n\n._ruleDrop_d11ff0 {\n stroke: var(--wzl-accent);\n stroke-width: 2px;\n}\n/* A node a `showIf` hides, drawn because the surface was asked to: there to be picked, and plainly not what a\n reader of the form would see. */\n[data-pref-hidden] {\n opacity: 0.55;\n}\n\n._badge_7555d5 {\n margin-inline-start: var(--wzl-space-2);\n}\n\n/* On a line of its own, over a control that brings its own chrome. */\n._lead_7555d5 {\n margin-inline-start: 0;\n margin-block-end: var(--wzl-space-1);\n}\n\n._gapped_7555d5 {\n flex: none;\n margin-inline-start: 0;\n}\n/* A group or a section its `enableIf` turns off, in a heading that is no frame: its name dims as a frame's title does. */\n._off_4ccfd0 {\n opacity: 0.5;\n}\n/* The mark on whatever `selectionAttrs` names as selected, in every surface that draws one; `MARKED` in\n `selection.ts` is the same selector. A fragment has no box to mark, so a selected one marks its rows.\n The secondary accent: the primary one is a control's own (a checked box, a focused field), and a mark in it\n around a row of them reads as one more. */\n[data-pref-path][data-selected]:not([role='tab'], [data-pref-fragment]),\n[data-pref-fragment][data-selected] > [data-pref-path],\n[data-pref-path][data-pref-picked] {\n background: color-mix(in oklab, var(--wzl-secondary) 12%, transparent);\n outline: 1px solid var(--wzl-secondary);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n/* Ported from WeaselDraw's wd-prefs-* rules (apps/draw/src/app.css),\n * generalized onto theme tokens. Column width is overridable via\n * --wzl-prefs-column-width at any ancestor scope. */\n\n._columns_354a55 {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--wzl-space-6);\n overflow-y: auto;\n padding-right: var(--wzl-space-2);\n}\n\n._column_354a55 {\n flex: 0 0 var(--wzl-prefs-column-width, 300px);\n width: var(--wzl-prefs-column-width, 300px);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}\n\n/* The columns layout's groups are wells (`FORM_FRAMES`), set out here. Each frame states the whole set, so a\n well nested in another takes none of its spacing. */\n._panel_354a55,\n._subpanel_354a55 {\n --wzl-well-radius: var(--wzl-radius-sm);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n}\n\n._panel_354a55 {\n --wzl-well-gap: var(--wzl-space-4);\n --wzl-well-pad: var(--wzl-space-5);\n --wzl-well-head-pad: var(--wzl-space-2);\n}\n\n._subpanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: var(--wzl-space-1);\n --wzl-well-rule: var(--subpanel-rule);\n --wzl-well-inset-start: var(--subpanel-inset-start);\n --wzl-well-inset-end: var(--subpanel-inset-end);\n margin-top: var(--wzl-space-3);\n}\n\n/* The list layout's loose rows take the inset of the subpanels they sit over, so every label and control shares an edge. */\n._columnsLayout_354a55 > ._rows_354a55:has(> ._subpanel_354a55) > ._rowSlot_354a55 {\n padding-inline: calc(var(--subpanel-rule) + var(--subpanel-inset-start)) var(--subpanel-inset-end);\n}\n\n._rows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n}\n\n/* A leaf's row is a PropertyRow, inline; this only sets the form's type. */\n._row_354a55 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n cursor: default;\n}\n\n/* What a leaf's row sits in, so a selected one can be marked and found. */\n._rowSlot_354a55 {\n border-radius: var(--wzl-radius-sm);\n}\n\n/* A drag over the form: what it holds, drawn where it would land, and the rail entry it would go into. */\n[data-drop-placeholder] {\n outline: 1px dashed var(--wzl-accent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--wzl-accent) 10%, transparent);\n pointer-events: none;\n}\n\n[data-drop-placeholder] > * {\n opacity: 0.6;\n}\n\n/* Rail entries sit a pixel apart, so the outline is drawn inside the entry. */\n._railItem_354a55[data-drop-placeholder] {\n outline-offset: -1px;\n}\n\n._railItem_354a55[data-drop='into'] {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n/* The browser would otherwise scroll a pane to hold its rows still when a placeholder lands above them. */\n[data-dropping] ._pane_354a55 {\n overflow-anchor: none;\n}\n\n/* `kind: 'label'`: text among the rows. */\n/* Control slot — a share of the row rather than a fixed width, so a wide pane\n * widens the field instead of the gap before it. A long label still pushes it\n * narrower, down to the floor. Kit form controls are flex columns that fill it. */\n._rowControl_354a55 {\n flex: 0 1 60%;\n min-width: 110px;\n display: flex;\n align-items: center;\n /* A control narrower than the slot sits at the row's far edge, so the values line up down a pane;\n a select fills the slot, so its value is set to that edge inside it. */\n justify-content: flex-end;\n --wzl-select-align: end;\n}\n\n._unrenderable_354a55 {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n/* PrefsDialog header row: title text + optional headerExtra chrome. */\n._titleRow_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n flex: 1;\n min-width: 0;\n}\n\n._titleRow_354a55 > span:first-child {\n flex: 1;\n min-width: 0;\n}\n\n/* An object leaf renders its fields as its own rows. */\n._objectLeaf_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}\n\n/* Outranks the PropertyRow it styles, which is a flex row. */\n._objectLeaf_354a55 ._objectRow_354a55 {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n gap: var(--wzl-space-4);\n align-items: center;\n}\n\n/* The slot of a control whose renderer asked for the row's whole width (`wide`): the control is stretched to it,\n where a stacked built-in keeps the width it sets itself. */\n._rowControlFilled_354a55 > * {\n flex: 1 1 auto;\n min-inline-size: 0;\n}\n\n/* A control slot's own minimum is wider than this column gets in a narrow pane, and would run past the row. */\n._objectLeaf_354a55 ._objectRow_354a55 > ._rowControl_354a55 {\n min-width: 0;\n}\n\n._objectGroup_354a55 {\n margin: var(--wzl-space-2) 0 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}\n\n/* ---------------------------------------------------------------------------\n * Rail layout. The rail is the only chrome: no panels, because the surface\n * the form sits on already has a border and a card inside it restates one.\n * Width is overridable via --wzl-prefs-rail-width at any ancestor scope.\n * ------------------------------------------------------------------------ */\n\n._columnsLayout_354a55 {\n --subpanel-rule: 2px;\n --subpanel-inset-start: var(--wzl-space-5);\n --subpanel-inset-end: var(--wzl-space-4);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-height: 0;\n}\n\n._railLayout_354a55 {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n min-height: 0;\n block-size: 100%;\n /* The pane scrolls, not the layout: a rail that scrolled away with the\n settings would be useless exactly when it is needed. */\n overflow: hidden;\n}\n\n/* What `PrefsDialog` hands `Dialog` for its body in rail layout: the pane\n inside does the scrolling and the rail meets the dialog's own edges. */\n._railBody_354a55 {\n padding: 0;\n overflow: hidden;\n /* The modal sets only `max-height`, so the layout's `block-size: 100%`\n resolves against nothing and the pane grows to fit every row. As a flex\n item the layout takes the body's flexed height, which the cap does bound. */\n display: flex;\n flex-direction: column;\n /* A settled height: without one the dialog grows and shrinks as the reader\n moves between a two-row group and a twenty-row one, and the rail entry\n they are aiming at moves while they aim at it. */\n min-block-size: min(60vh, 420px);\n}\n\n/* Same reason across: a filter that narrows the schema to two rows should not pull the dialog's edges in\n around them. Set on the modal, whose percentages read the overlay: the room the box has, which in a\n contained portal is not the window. */\n:where(._railModal_354a55) {\n min-inline-size: min(800px, 100% - 32px);\n}\n\n._railBody_354a55 > ._railLayout_354a55 {\n flex: 1 1 auto;\n}\n\n._rail_354a55 {\n /* Never more than two fifths of the box: at its full width in a narrow\n container the rail takes the space the settings need and leaves a pane\n too thin to hold a row. The clamp belongs on the flex basis — an\n `inline-size` here is simply ignored, which is what made a first attempt\n at this look right and do nothing. The basis is the content box, so the 40% gives back the padding and border. */\n flex: 0 1 min(var(--wzl-prefs-rail-width, 176px), calc(40% - var(--wzl-space-2) - var(--wzl-space-8) - 1px));\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n /* The far side clears a scrollbar laid over the box, which takes no room of its own; one that takes room clears itself. */\n padding: var(--wzl-space-3) var(--wzl-space-8) var(--wzl-space-3) var(--wzl-space-2);\n background: var(--wzl-surface-sunken);\n border-right: 1px solid var(--wzl-border);\n overflow-y: auto;\n /* The rail is itself sunken, so a field taking the default surface would be\n the same color as the rail behind it. */\n --wzl-input-surface: var(--wzl-surface);\n}\n\n._railList_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n}\n\n._railItem_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border: none;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: var(--wzl-fg);\n font: inherit;\n /* The size of a control's text in the pane beside it. */\n font-size: var(--wzl-font-size);\n text-align: start;\n cursor: default;\n}\n\n._railItem_354a55:hover {\n background: var(--wzl-surface-raised);\n}\n\n._railItem_354a55:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* The entries nested under one, a step in from it. */\n._railNest_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding-left: calc(var(--wzl-space-7) - var(--wzl-space-3));\n}\n\n/* A foldable rail: each entry follows its fold mark, or a blank as wide where it has\n nothing to fold, so every name at one depth starts at one edge. */\n._railRow_354a55 {\n display: flex;\n align-items: center;\n}\n\n._railRow_354a55 > ._railItem_354a55 {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n._railFold_354a55 {\n flex: 0 0 var(--wzl-control-h-sm);\n}\n\n/* The open page. */\n._railItem_354a55[data-rail-mark='current'] {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n/* Choosing it opens the first entry under it: it has no page of its own to show. */\n._railPasses_354a55 ._railName_354a55 {\n color: var(--wzl-fg-muted);\n}\n\n._railName_354a55 {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Last in the row: a count that changes as the reader types would otherwise\n shove the name on every keystroke. */\n._railCount_354a55 {\n margin-left: auto;\n font-size: var(--wzl-font-size-xs);\n opacity: 0.6;\n}\n\n._pane_354a55 {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n /* A placeholder's line can be the one that makes the pane scroll, and a scrollbar arriving would move every row. */\n scrollbar-gutter: stable;\n /* The gutter is no room where the scrollbar is laid over the box, so the far side clears it itself. */\n padding: var(--wzl-space-5) var(--wzl-space-8) var(--wzl-space-5) var(--wzl-space-6);\n}\n\n/* A scrollbar that takes room of its own (`markScrollbar`) is cleared by its gutter, so the far side pads as the\n near side does. */\n._rail_354a55[data-scrollbar] { padding-right: var(--wzl-space-2); }\n._pane_354a55[data-scrollbar] { padding-right: var(--wzl-space-6); }\n\n/* Rows that follow a group on the page stand off it as a group does. */\n._pane_354a55 > :not(._paneHead_354a55) + ._rows_354a55 {\n margin-top: var(--wzl-space-4);\n}\n\n._paneHead_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n margin-bottom: var(--wzl-space-5);\n}\n\n._paneTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xl);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._paneDesc_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n._paneSection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n margin-top: var(--wzl-space-6);\n}\n\n/* `as: 'fragment'`: a group with nothing of its own to draw. Its rows are laid out by whatever holds the group. */\n._fragment_354a55 {\n display: contents;\n}\n\n/* `as: 'panel'`: the one group in a pane that draws its own box, a well (`FORM_FRAMES.box`) at its defaults. */\n._panePanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n margin-top: var(--wzl-space-4);\n}\n\n/* An object's panel titles itself as the object's other groups do. */\n._objectPanel_354a55 {\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n}\n\n/* `as: 'tab'`: a `Tabs` strip, set off from the rows above it. */\n._paneTabs_354a55 {\n margin-top: var(--wzl-space-4);\n}\n\n._paneSubsection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin-top: var(--wzl-space-4);\n padding-left: var(--wzl-space-4);\n border-left: 2px solid var(--wzl-border);\n}\n\n._sectionTitle_354a55 {\n position: sticky;\n /* A sticky offset is measured from inside the pane's padding, so this takes the pane's top padding back\n off and the heading rests against the pane's edge, with no strip above it for rows to show in. */\n top: calc(-1 * var(--wzl-space-5));\n z-index: 1;\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* What is scrolled to inside a section stops below the heading stuck over it, at the height `stuckHeadingRef`\n measures; until it has, the heading's padding, border, and one line. */\n._paneSection_354a55 :where([data-pref-path]) {\n scroll-margin-top: var(\n --pref-stuck-height,\n calc(var(--wzl-space-3) + var(--wzl-space-2) + 1px + var(--wzl-font-size-sm) * var(--wzl-leading))\n );\n}\n\n._subsectionTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* In the rail layout a row is a grid, so the control track grows with the\n pane instead of holding at the columns layout's fixed slot. A stacked row\n keeps PropertyRow's own layout: its label over a control the row's width. */\n._railLayout_354a55 ._row_354a55:where(:not(._rowStacked_354a55)) {\n display: grid;\n /* The control track is capped rather than taking the rest: a number field\n as wide as the pane reads as a text area, and every row's control starts\n at the same x either way. */\n grid-template-columns:\n minmax(min(140px, 40% - var(--wzl-space-3)), var(--wzl-params-label-width, 240px))\n minmax(min(180px, 60%), 260px);\n}\n\n/* `rowsAcross={2}`, in the rail and list layouts: two rows side by side. A leaf that spans both keeps to them, its label in the first column\n and its control in the second; a stacked one has the whole line under its label already. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, [data-wide] > ._row_354a55:not(._rowStacked_354a55)) {\n --_across-gap: var(--wzl-prefs-across-gap, 28px);\n display: grid;\n /* Two columns, each at least half the line, so never three; and one once half the line is too narrow for a row. */\n grid-template-columns: repeat(auto-fit, minmax(max(120px, (100% - var(--_across-gap)) / 2), 1fr));\n /* Wide between the columns: a row's control ends where the next row's label begins. */\n gap: var(--wzl-space-3) var(--_across-gap);\n align-items: start;\n}\n\n/* The spanning leaf's label reads on the line of its control's first row. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] [data-wide] > ._row_354a55:not(._rowStacked_354a55) {\n align-items: baseline;\n}\n\n/* The label sits beside its control while both fit, and the control drops\n under it when they do not: a label never narrows below its own text. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n}\n\n/* One share of the row for every label short enough to take it, so a\n column's controls start at one x. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 > :first-child {\n flex: 1 0 40%;\n min-inline-size: max-content;\n max-inline-size: 100%;\n}\n\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55 {\n /* No `min-inline-size: 0`: a control wider than what is left of the line\n has to wrap under the label rather than run past the column. */\n flex: 1 1 var(--wzl-prefs-control-min, 80px);\n max-inline-size: 100%;\n}\n\n/* A checkbox needs only its own width beside the label, not a field's. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55:has(> input[type='checkbox']:only-child) {\n flex-basis: auto;\n min-inline-size: 0;\n}\n\n/* Anything in the grid that is not one leaf's row is a group, and runs the full width. A fragment's children are\n in the grid too, though not children of it. */\n:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, ._fragment_354a55) > :is(:not(._rowSlot_354a55), [data-wide]) {\n grid-column: 1 / -1;\n}\n\n._railLayout_354a55 ._rowControl_354a55 {\n flex: 1 1 auto;\n}\n\n._filter_354a55 {\n padding: 0 var(--wzl-space-1) var(--wzl-space-2);\n}\n\n._noMatches_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-6) 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n._noMatches_354a55 p {\n margin: 0;\n}\n\n._clearFilter_354a55 {\n padding: var(--wzl-space-1) var(--wzl-space-3);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n}\n\n/* A root drawn as a bar: the bar at its own size, with the room around it the form's to take a drop in. */\n._barRoot_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n/* A heading holding the control of a leaf marked `heading`: its name, then the control at the far end. */\n._headed_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* The control is drawn as a row's is, whatever the heading does to its own words. It is no label, so it turns\n the label recipe off for itself and what it holds, and reads it back in place of the heading's inherited case. */\n._headingControl_354a55 {\n --wzl-params-label-case: none;\n --wzl-params-label-tracking: normal;\n display: inline-flex;\n align-items: center;\n margin-inline-start: auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-normal);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n\n/* An `actions` leaf's rows, one under another. */\n._actionRows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}\n._label_2aa726 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n}\n\n._labelText_2aa726 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n}\n\n._labelNote_2aa726 {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}\n\n._rule_2aa726 {\n inline-size: 100%;\n margin: var(--wzl-space-1) 0;\n border: 0;\n border-top: 1px solid var(--wzl-border);\n}\n/* A bar's or a toolbar's own name: a field label's face and case, one step up the weight scale from a label's light,\n so it reads above its fields' names. */._label_89c1e8 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n white-space: nowrap;\n}/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* A bar's line. It has no frame: the strip it sits on is the host's. */\n._bar_c3637b {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--bar-gap, var(--wzl-space-3));\n min-inline-size: 0;\n /* Every control on the line stands at one height, so their edges line up: boxes, selects, segments and buttons. */\n --wzl-field-h: var(--wzl-control-h-sm);\n --wzl-select-h: var(--wzl-field-h);\n --tb-h: var(--wzl-field-h);\n}\n\n._bar_c3637b[data-orientation='vertical'] {\n flex-direction: column;\n align-items: stretch;\n /* A side bar is a toolbar's width: a control and its margins. A field wider than this turns to read down it. */\n --bar-side-max: calc(var(--wzl-control-h-sm) + 2 * var(--wzl-space-4));\n max-inline-size: var(--bar-side-max);\n}\n\n/* The strip itself, where the host draws none. Too long for its room, it scrolls. */\n._framed_c3637b {\n margin-block: var(--wzl-space-3);\n min-block-size: var(--wzl-tb-height);\n padding: 0 var(--wzl-space-3);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: var(--wzl-bevel-raised, none);\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\n._framed_c3637b[data-orientation='vertical'] {\n padding: var(--wzl-space-3) 0;\n overflow-x: visible;\n}\n\n/* A run of actions read as one control: a compact strip, its cells almost touching. */\n._segmented_c3637b {\n --bar-gap: 1px;\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-1);\n box-shadow: var(--wzl-bevel-raised, none);\n user-select: none;\n}\n\n/* One control is as long as its cells, in a block host or a stretching column. In `:where()` so a host class sizes it. */\n:where(._segmented_c3637b) {\n inline-size: fit-content;\n max-inline-size: 100%;\n}\n\n/* Opening what does not fit, a bar asks for the length that holds every cell (`--bar-natural`, which it measures),\n so a host sized to its content gives it that much. Squeezed below it, the bar shrinks and opens the rest from a\n menu; given room again, it grows back to it. */\n._bar_c3637b[data-overflow='menu'] {\n flex: 0 1 auto;\n box-sizing: border-box;\n inline-size: var(--bar-natural, auto);\n max-inline-size: 100%;\n overflow: visible;\n}\n\n._bar_c3637b[data-overflow='menu'][data-orientation='vertical'] {\n inline-size: auto;\n max-inline-size: var(--bar-side-max);\n block-size: var(--bar-natural, auto);\n max-block-size: 100%;\n min-block-size: 0;\n}\n\n._cell_c3637b {\n display: flex;\n flex: none;\n align-items: center;\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._cell_c3637b {\n justify-content: center;\n}\n\n/* Sets a run apart from its neighbors. */\n._divider_c3637b {\n flex: none;\n align-self: stretch;\n inline-size: 1px;\n margin-block: var(--wzl-space-2);\n background: var(--wzl-border);\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._divider_c3637b {\n inline-size: auto;\n block-size: 1px;\n margin-block: 0;\n margin-inline: var(--wzl-space-2);\n}\n\n/* A `separator` leaf. It keeps a cell of its own, unlike a divider, so it is always drawn where it was put. */\n._rule_c3637b {\n flex: none;\n inline-size: 1px;\n block-size: calc(var(--wzl-tb-height) - 2 * var(--wzl-space-2));\n background: var(--wzl-border);\n}\n\n._bar_c3637b[data-orientation='vertical'] > ._cell_c3637b > ._rule_c3637b {\n flex: 1;\n block-size: 1px;\n margin-inline: var(--wzl-space-2);\n}\n\n/* The cells a line had no room for, one under another. */\n._menu_c3637b {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-4);\n}\n\n._menu_c3637b > ._divider_c3637b {\n inline-size: auto;\n block-size: 1px;\n margin: 0;\n}\n\n._menu_c3637b > ._cell_c3637b:has(> ._rule_c3637b) {\n align-self: stretch;\n}\n\n._menu_c3637b > ._cell_c3637b > ._rule_c3637b {\n flex: 1;\n block-size: 1px;\n}\n\n/* One field on a bar's line. `flex: none` keeps the bar from squeezing it:\n a bar too long for its room scrolls. */\n._field_c3637b {\n display: inline-flex;\n align-items: center;\n flex: none;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n /* Selects and number boxes sit at the size of the small segmented bars beside them. */\n --wzl-field-h: var(--wzl-control-h-sm);\n --wzl-field-font-size: var(--wzl-font-size-sm);\n}\n\n._label_c3637b {\n display: inline-flex;\n flex: none;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* The bar's own name or glyph at the start of its line. */\n._lead_c3637b {\n display: flex;\n align-items: center;\n flex: none;\n padding-inline: var(--wzl-space-2);\n}\n\n/* A lead that moves its bar in a dock. */\n._lead_c3637b[role='button'] {\n gap: var(--wzl-space-1);\n cursor: grab;\n border-radius: var(--wzl-radius-sm);\n user-select: none;\n touch-action: none;\n}\n\n._lead_c3637b[role='button']:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* A label after its control, as a switch and a checkbox have it. */\n._after_c3637b {\n flex: none;\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* A disabled control dims itself; the name beside it is the bar's to dim. */\n._field_c3637b:has(:disabled) > :is(._label_c3637b, ._after_c3637b) {\n opacity: 0.5;\n}\n\n/* A bar's budget is one line rather than a column, so a number carries only\n the digits it needs and a track stops short of pushing its neighbors off\n the end. */\n._number_c3637b {\n --wzl-number-field-width: 5ch;\n}\n\n._number_c3637b input[type='text'] {\n inline-size: var(--wzl-number-field-width);\n}\n\n._text_c3637b input[type='text'] {\n inline-size: 12ch;\n}\n\n._field_c3637b input[type='range'] {\n inline-size: 64px;\n flex: none;\n}\n\n/* The swatch fills a row's control column; here it is as wide as what it says. */\n._paint_c3637b > button {\n inline-size: auto;\n}\n\n._popTrigger_c3637b {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--wzl-space-3);\n padding-block: 0;\n padding-inline: var(--wzl-space-4) var(--wzl-space-3);\n white-space: nowrap;\n cursor: pointer;\n}\n\n/* Down a side, a button with a glyph shows the glyph alone, and one without turns to read along the bar. */\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b[data-icon] {\n position: relative;\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b[data-icon] > ._popLabel_c3637b {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b:not([data-icon]) {\n writing-mode: sideways-lr;\n height: auto;\n block-size: var(--_frame-h, var(--wzl-field-h, var(--wzl-control-h)));\n}\n\n._bar_c3637b[data-orientation='vertical'] ._popTrigger_c3637b:not([data-icon]) > [data-caret] {\n rotate: -90deg;\n}\n\n._caret_c3637b {\n width: 10px;\n height: 10px;\n color: var(--wzl-fg-muted);\n flex: none;\n}\n\n._popover_c3637b {\n outline: none;\n}\n\n._popBody_c3637b {\n inline-size: 260px;\n padding: var(--wzl-space-4);\n}\n\n/* A `label` leaf: words on the line, holding no value. */\n._words_c3637b {\n flex: none;\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* One action's button. Square around an icon; as wide as its words with a label. */\n._action_c3637b {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-2);\n width: var(--wzl-field-h, var(--wzl-tb-height));\n height: var(--wzl-field-h, var(--wzl-tb-height));\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n white-space: nowrap;\n cursor: pointer;\n}\n\n._actionLabeled_c3637b {\n width: auto;\n padding: 0 var(--wzl-space-3);\n}\n\n._action_c3637b:hover:not([disabled], [aria-disabled='true']),\n._action_c3637b[aria-expanded='true'] {\n background: var(--wzl-border);\n}\n\n._action_c3637b:active:not([disabled], [aria-disabled='true']) {\n background: color-mix(in srgb, var(--wzl-border) 70%, transparent);\n}\n\n._action_c3637b[aria-pressed='true'] {\n background: var(--wzl-accent);\n box-shadow: var(--wzl-bevel-pressed, none);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._action_c3637b[disabled],\n._action_c3637b[aria-disabled='true'],\n._popTrigger_c3637b[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n._action_c3637b > svg {\n display: block;\n}\n\n/* An `actions` leaf's buttons: one cell, spaced as the bar spaces its cells. */\n._actions_c3637b {\n display: flex;\n align-items: center;\n gap: var(--bar-gap, var(--wzl-space-3));\n}\n\n._bar_c3637b[data-orientation='vertical'] ._actions_c3637b,\n._menu_c3637b ._actions_c3637b {\n flex-direction: column;\n}\n\n/* An action as a panel's row: its icon and label once, across the row. */\n._actionRow_c3637b {\n inline-size: 100%;\n justify-content: flex-start;\n border: 1px solid var(--wzl-border);\n background: var(--wzl-surface);\n}\n\n/* An action in a bar's overflow, as a menu row: the shortcut sits at the row's far end. */\n._actionMenu_c3637b {\n inline-size: 100%;\n justify-content: flex-start;\n gap: var(--wzl-space-3);\n}\n\n._actionShortcut_c3637b {\n margin-inline-start: auto;\n padding-inline-start: var(--wzl-space-4);\n color: var(--wzl-fg-muted);\n}\n\n._menu_c3637b > ._cell_c3637b:has(._actionMenu_c3637b) {\n align-self: stretch;\n}\n\n._menu_c3637b ._actions_c3637b:has(._actionMenu_c3637b) {\n flex-direction: column;\n align-items: stretch;\n}\n\n/* A marked `actions` button's wrapper: it lays out as the bare button would. */\n._unit_c3637b {\n display: flex;\n}\n\n/* A unit a reorder is dragging. Along a curve the item already fades by how much of it is on the run. */\n._cell_c3637b[data-bar-dragging] {\n opacity: calc(0.5 * var(--along-shown, 1));\n}\n\n._unit_c3637b[data-bar-dragging] {\n opacity: 0.5;\n}\n\n/* Where the dragged unit would land: a bar on that side of the unit it lands beside, drawn outside its box so nothing\n moves. Along a curve each item is turned to the run, so its own inline sides are the run's. */\n:is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n:is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b:dir(rtl) :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b:dir(rtl) :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._bar_c3637b[data-orientation='vertical'] :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='before'] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._bar_c3637b[data-orientation='vertical'] :is(._cell_c3637b, ._unit_c3637b)[data-bar-drop='after'] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* The live region a reorder announces in: out of sight, still read. */\n._status_c3637b {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n/* In a vertical row a field's parts stack, each upright: its name over its box, a switch over its words. */\n._field_c3637b[data-orientation='vertical'] {\n flex-direction: column;\n gap: var(--wzl-space-1);\n /* Never squeezed by the bar, so it can tell it is too wide and turn. */\n inline-size: max-content;\n}\n\n/* A side bar's width is a control's, so its boxes keep to their contents. */\n._field_c3637b[data-orientation='vertical']:is(._number_c3637b, ._text_c3637b) input[type='text'] {\n padding-inline: var(--wzl-space-1);\n}\n\n._field_c3637b[data-orientation='vertical']._text_c3637b input[type='text'] {\n inline-size: 8ch;\n}\n\n/* A number box takes the bar's width, not a count of characters: 5ch fit the kit's face by half a pixel and\n overflowed a wider one, which turned the box on its side. */\n._field_c3637b[data-orientation='vertical']._number_c3637b :has(> input[type='text']) {\n box-sizing: border-box;\n inline-size: var(--bar-side-max);\n}\n\n._field_c3637b[data-orientation='vertical']._number_c3637b input[type='text'] {\n flex: 1 1 0;\n min-inline-size: 0;\n inline-size: auto;\n}\n\n._field_c3637b[data-orientation='vertical'] input[type='range'] {\n writing-mode: vertical-lr;\n direction: rtl;\n}\n._trigger_672744 {\n display: inline-flex;\n flex: none;\n}\n\n._body_672744 {\n inline-size: 280px;\n}\n\n._title_672744 {\n margin: 0 0 var(--wzl-space-2);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n/* A field too wide for a side bar turns to read up it, its name before its control and each a control's height\n across. Its own attributes join the class so it outranks the stacked layout `.field[data-orientation]` gives. */\n._turned_a3e17d[data-orientation='vertical'][data-turned] {\n writing-mode: sideways-lr;\n flex-direction: row;\n}\n\n/* A control sets its height for a line; turned, that is its width across the bar, and its length is its words'. */\n._turned_a3e17d[data-turned] :is(button, div) {\n width: auto;\n height: auto;\n inline-size: auto;\n block-size: var(--wzl-field-h);\n}\n\n._turned_a3e17d[data-turned] [data-caret] {\n rotate: -90deg;\n}\n._mixed_e00c41 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-3);\n}\n\n._word_e00c41 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.5;\n font-style: italic;\n}\n._entry_2ed30b {\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}\n\n._key_2ed30b {\n flex: 0 1 9rem;\n min-inline-size: 4rem;\n}\n\n._value_2ed30b {\n flex: 1 1 0;\n min-inline-size: 0;\n display: flex;\n justify-content: flex-end;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A bar laid along a track shape, as `useRunRow` lays any row. */\n._root_1d9e5b {\n column-gap: var(--bar-gap, var(--wzl-space-3));\n}\n\n._item_1d9e5b {\n}\n\n/* No line to stretch along, so a divider takes a line's height. */\n._root_1d9e5b > ._item_1d9e5b[role='separator'] {\n block-size: 1lh;\n margin-block: 0;\n}\n\n/* The lead names the bar and has nothing to press, unless it is the bar's handle. */\n._item_1d9e5b[data-bar-lead]:not([role='button']) {\n pointer-events: none;\n}\n._union_223b05 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}\n._mark_f9c7aa {\n display: inline-flex;\n flex: none;\n}\n\n/* The twisty's target is a line of text's height, and no taller; after a control, it keeps its own width. */\n._toggle_f9c7aa {\n --wzl-disclosure-target: var(--wzl-space-5);\n flex: none;\n}\n\n/* The marks and the toggle on a line of their own, over a control that brings its own chrome. */\n._lead_f9c7aa {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-1);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* What a row opens to, hung off the row it belongs to. */\n._body_f9c7aa,\n._branch_f9c7aa {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}\n\n._body_f9c7aa {\n margin-block-start: var(--wzl-space-2);\n margin-inline-start: var(--wzl-space-1);\n padding-inline-start: var(--wzl-space-4);\n border-inline-start: 2px solid var(--wzl-border-strong);\n}\n\n._branch_f9c7aa + ._branch_f9c7aa {\n margin-block-start: var(--wzl-space-2);\n}\n\n/* An outer option's name, over the inner selector's rows. */\n._branchName_f9c7aa {\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n}\n\n._branch_f9c7aa > :not(._branchName_f9c7aa) {\n margin-inline-start: var(--wzl-space-4);\n}\n/* A field's text is set at its row label's size. */\n._root_e21023 {\n display: flex;\n flex-direction: column;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n --wzl-field-font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n._header_e21023 {\n display: flex;\n align-items: baseline;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-4) 0;\n border-block-end: 1px solid var(--wzl-border);\n}\n\n._kind_e21023 {\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--wzl-font-size);\n}\n\n._breakdown_e21023 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.6;\n}\n\n._section_e21023 {\n padding: var(--wzl-space-3) 0 var(--wzl-space-4);\n border-block-end: 1px solid var(--wzl-border);\n}\n\n/* `as: 'panel'`: a section in a box of its own, a well (`FORM_FRAMES.box`) titled as the other sections are. */\n._sectionPanel_e21023,\n._objectPanel_e21023 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-3) var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n margin-block: var(--wzl-space-3);\n}\n\n._section_e21023:last-child {\n border-block-end: none;\n}\n\n._sectionTitle_e21023 {\n margin: 0 0 var(--wzl-space-3);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}\n\n/* As `Checkbox` dims the text beside a disabled box: the controls dim themselves. */\n._row_e21023[data-disabled] > ._rowLabel_e21023 {\n opacity: 0.5;\n}\n\n._row_e21023 {\n display: grid;\n grid-template-columns: 64px 1fr;\n gap: var(--wzl-space-3);\n align-items: center;\n margin-block-end: 5px;\n}\n\n._rowLabel_e21023 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n._rowControls_e21023 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-3);\n align-items: center;\n min-inline-size: 0;\n}\n\n/* Glyph plus its control, held together so the pair row wraps between\n fields rather than between a field and the icon naming it. */\n._namedField_e21023 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}\n\n._namedField_e21023 > svg {\n flex: none;\n opacity: 0.75;\n}\n\n._blockRow_e21023 {\n margin-block-end: 5px;\n}\n\n/* Fields paired into one row split it evenly, the way Position's x/y do. */\n._rowControls_e21023 > ._namedField_e21023 {\n flex: 1 1 0;\n}\n\n/* Except around a segmented bar, which is sized by its segments: an equal\n share of the row is wider than the buttons want to be. */\n._rowControls_e21023 > ._namedField_e21023:has(> ._toggle_e21023) {\n flex: 0 1 auto;\n}\n\n._rowControls_e21023 > * {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* A checkbox is its box, not a share of the row. Its own `flex: none` only ties with the rule above. */\n._rowControls_e21023 > input[type='checkbox'] {\n flex: none;\n}\n\n/* Bars sharing a row split the leftover between them, so the gap stays fixed\n and the width lands on the segments. A bar with the row to itself is sized\n by its segments instead — a third of 240px is a plate, not a button. */\n._rowControls_e21023 > ._toggle_e21023 {\n flex: 1 1 auto;\n}\n\n._rowControls_e21023 > ._toggle_e21023:only-child {\n flex: 0 1 auto;\n}\n\n/* A flag bar is sized by its glyphs rather than by a share of the row: an\n even split would fling one-letter segments to the margins. */\n._rowControls_e21023 > ._flagToggle_e21023 {\n flex: 0 0 auto;\n}\n\n._unrenderable_e21023 {\n font-size: var(--wzl-font-size-sm);\n opacity: 0.5;\n font-style: italic;\n}\n\n/* A `block` leaf that renders its own rows — an object leaf's fields. */\n._objectLeaf_e21023 {\n margin-block: var(--wzl-space-4) var(--wzl-space-2);\n}\n\n._objectLeaf_e21023 ._sectionTitle_e21023 {\n margin-block: 7px 5px;\n}\n\n/* Fields under a heading inside an object read as belonging to it. */\n._objectGroup_e21023 {\n padding-inline-start: var(--wzl-space-4);\n border-inline-start: 1px solid var(--wzl-border);\n margin-block-end: var(--wzl-space-2);\n}\n\n/* The slider's track; the row only says how it shares the space. */\n._slider_e21023 {\n flex: 1;\n}\n\n/* A section's title with the control of its heading leaf beside it. */\n._sectionHead_e21023 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-3);\n margin: 0 0 var(--wzl-space-3);\n}\n\n._sectionHead_e21023 > ._sectionTitle_e21023 {\n margin: 0;\n}\n\n._headingControl_e21023 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n._overlay_ca2b2e {\n position: fixed;\n inset: 0;\n background: var(--wzl-scrim);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: var(--wzl-z-modal);\n opacity: 0;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._overlay_ca2b2e[data-entering] {\n opacity: 0;\n}\n\n._overlay_ca2b2e[data-entering][data-rac] {\n opacity: 1;\n}\n\n._overlay_ca2b2e[data-exiting] {\n opacity: 0;\n}\n\n._overlay_ca2b2e[data-rac]:not([data-entering]):not([data-exiting]) {\n opacity: 1;\n}\n\n/* Inside a contained portal the container is the viewport: the scrim covers it, and the box fits it. */\n._overlay_ca2b2e[data-contained] {\n position: absolute;\n opacity: 1;\n}\n\n._overlay_ca2b2e[data-contained] > ._modal_ca2b2e {\n max-width: min(var(--wzl-dialog-max-width, 900px), calc(100% - 32px));\n max-height: calc(100% - 32px);\n}\n\n._modal_ca2b2e {\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n box-shadow: var(--wzl-bevel-raised, 0 24px 64px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n max-width: min(var(--wzl-dialog-max-width, 900px), calc(100vw - 32px));\n max-height: calc(100vh - 32px);\n display: flex;\n flex-direction: column;\n outline: none;\n}\n\n/* BEGIN GENERATED stance rules: dialog — `npm run gen:stances`, do not edit. */\n\n._modal_ca2b2e {\n --wzl-tint: initial;\n}\n\n._modal_ca2b2e {\n --_s-surface: var(--wzl-surface);\n --_s-border-color: var(--wzl-border);\n --_s-border-style: solid;\n --_s-border-width: 1px;\n --_s-radius: var(--wzl-radius-md);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size);\n --_s-title-case: none;\n --_s-title-tracking: normal;\n --_s-title-color: var(--wzl-fg);\n}\n\n._modal_ca2b2e[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 1px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-clarify-title-case, none);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 1px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-aside-title-case, none);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 1px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-advanced-title-case, none);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 1px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-debug-title-case, none);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 1px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-preview-title-case, none);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 1px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-confirm-title-case, none);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-border));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 1px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-cancel-title-case, none);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._modal_ca2b2e[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._modal_ca2b2e[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._modal_ca2b2e[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._modal_ca2b2e {\n --_s-fill: var(--_s-surface);\n}\n\n._modal_ca2b2e[data-tint],\n._modal_ca2b2e[data-grade],\n._modal_ca2b2e[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._modal_ca2b2e[data-tint],\n._modal_ca2b2e[data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._modal_ca2b2e[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: dialog */\n\n/* In the page's flow, the box fits what holds it rather than the viewport. */\n._inline_ca2b2e {\n max-width: min(var(--wzl-dialog-max-width, 900px), 100%);\n max-height: 100%;\n min-height: 0;\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}\n\n._dialog_ca2b2e {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n outline: none;\n}\n\n._header_ca2b2e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n padding: var(--wzl-space-7) var(--wzl-space-8);\n border-bottom: 1px solid var(--wzl-border);\n flex: 0 0 auto;\n}\n\n._title_ca2b2e {\n flex: 1;\n margin: 0;\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n/* Defaults, not rules: `bodyClassName` exists to turn these off for content\n that scrolls itself, and a plain class would tie with it on specificity and\n be decided by stylesheet order. Every body declaration is here for that\n reason — `min-height` left in a plain rule silently beat a consumer class\n asking the body to hold a height, and the dialog resized itself around\n every pane. */\n:where(._body_ca2b2e) {\n flex: 1;\n min-height: 0;\n overflow: auto;\n padding: var(--wzl-space-8);\n}\n\n._footer_ca2b2e {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-6) var(--wzl-space-8);\n border-top: 1px solid var(--wzl-border);\n flex: 0 0 auto;\n}\n._along_0a495a {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n._label_73060e {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._char_73060e {\n white-space: pre;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._root_3eb26c {\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n display: flex;\n flex-direction: column;\n --be-gap: var(--wzl-space-1);\n gap: var(--be-gap);\n}\n\n/* Mid-drag the pointer runs ahead of what it drags, onto bands that would take its hover fill and cursor for a\n * frame; the session listens on the document, so nothing inside needs the pointer until the drag ends. */\n._root_3eb26c[data-dragging] * {\n pointer-events: none;\n}\n\n._root_3eb26c[data-dragging='seam'] {\n cursor: ew-resize;\n}\n\n._root_3eb26c[data-dragging='band'] {\n cursor: grabbing;\n}\n\n._label_3eb26c {\n font: var(--wzl-font-weight-medium) var(--wzl-font-size-sm) / var(--wzl-leading-tight) var(--wzl-font-ui);\n color: var(--wzl-fg-muted);\n}\n\n/* The ruler carries the ticks and is the split affordance: a click anywhere\n * on it divides the band underneath. The band strip below owns selection and\n * body drags, so neither gesture has to guess which the pointer meant. Ticks\n * reach down across the gap to the strip, but take no pointer, so the hit\n * area stays the ruler's own box. */\n._ruler_3eb26c {\n position: relative;\n height: var(--be-ruler-height, 22px);\n cursor: crosshair;\n}\n\n._tick_3eb26c {\n position: absolute;\n left: var(--be-at);\n bottom: calc(-1 * var(--be-gap));\n width: 1px;\n height: calc(6px + var(--be-gap));\n background: var(--wzl-fg-subtle);\n pointer-events: none;\n}\n\n._tickLabel_3eb26c {\n position: absolute;\n bottom: calc(9px + var(--be-gap));\n left: 50%;\n transform: translateX(-50%);\n font-weight: var(--wzl-font-weight-medium);\n font-size: var(--wzl-font-size-xs);\n line-height: var(--wzl-leading-tight);\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n/* Taller where a label stacks, so a fraction's numerator stays inside the strip. */\n._ruler_3eb26c:has(mfrac) {\n height: var(--be-ruler-height, 30px);\n}\n\n/* A label that would crowd a neighbor that outranks it gives way; its notch stays. */\n._tickLabel_3eb26c[data-crowded] {\n visibility: hidden;\n}\n\n/* The range's own ends: heavier than an ordinary tick, and labeled inward so\n * the text stays over the track rather than hanging off it. */\n._endTick_3eb26c {\n background: var(--wzl-fg-muted);\n}\n\n._endTick_3eb26c ._tickLabel_3eb26c {\n color: var(--wzl-fg);\n}\n\n/* Drawn just inside the track's right edge rather than one pixel past it. */\n._maxTick_3eb26c {\n margin-left: -1px;\n}\n\n._startLabel_3eb26c {\n transform: none;\n}\n\n._endLabel_3eb26c {\n left: auto;\n right: 0;\n transform: none;\n}\n\n._bands_3eb26c {\n position: relative;\n height: var(--be-band-height, 34px);\n}\n\n/* The box the strip runs in: the whole track, but for the stretch an end pulled inward vacated. */\n._stripBox_3eb26c {\n position: absolute;\n top: 0;\n bottom: 0;\n left: var(--be-from);\n width: calc(var(--be-to) - var(--be-from));\n}\n\n/* The bands are a `Slider`: its track is bare and as tall as the strip, its\n * regions are the bands, and its thumbs are the seams. Its direction is held\n * to ltr because the ruler, the ghosts and the edges are laid out ltr. */\n._strip_3eb26c {\n --rp-track-height: var(--be-band-height, 34px);\n direction: ltr;\n}\n\n._strip_3eb26c [data-slider-track] {\n background: none;\n border: none;\n box-shadow: none;\n cursor: default;\n}\n\n._strip_3eb26c [data-slider-track]::before {\n content: none;\n}\n\n._band_3eb26c {\n position: absolute;\n inset: 0;\n display: flex;\n unicode-bidi: plaintext;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n padding: 0 var(--wzl-space-2);\n margin: 0;\n background: var(--wzl-surface-raised);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: var(--wzl-font-weight-medium) var(--wzl-font-size-sm) / var(--wzl-leading-tight) var(--wzl-font-ui);\n cursor: grab;\n}\n\n._band_3eb26c:hover {\n background: var(--wzl-surface-hover);\n}\n\n._band_3eb26c:active {\n cursor: grabbing;\n}\n\n._band_3eb26c:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n/* First and last bands are pinned to `min` / `max`, so their bodies do not\n * translate — the cursor should not promise otherwise. */\n._pinned_3eb26c {\n cursor: default;\n}\n\n._pinned_3eb26c:active {\n cursor: default;\n}\n\n/* Accent mixed toward transparent rather than a flat token, so the tint\n reads over whatever surface the consumer's theme puts behind it. */\n._selected_3eb26c {\n background: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n border-color: var(--wzl-accent);\n box-shadow: inset 0 0 0 1px var(--wzl-accent);\n color: var(--wzl-fg);\n}\n\n/* A locked band holds its length when the range is rescaled. The hatch is\n layered over whatever fill the band already has, selected or not. */\n._band_3eb26c._locked_3eb26c,\n._band_3eb26c._locked_3eb26c:hover {\n background-image: repeating-linear-gradient(\n -45deg,\n color-mix(in srgb, var(--wzl-fg-muted) 28%, transparent) 0 1px,\n transparent 1px 6px\n );\n}\n\n/* Clipped along the track only: the line is one em tall, and `hidden` cuts descenders to it. */\n._bandContent_3eb26c {\n overflow-x: clip;\n overflow-y: visible;\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n}\n\n/* Where a dragged band or seam started, held until the drag ends. */\n._bandGhost_3eb26c {\n position: absolute;\n top: 0;\n bottom: 0;\n left: var(--be-from);\n width: calc(var(--be-to) - var(--be-from));\n border: 1px dashed var(--wzl-border-strong);\n border-radius: var(--wzl-radius-sm);\n pointer-events: none;\n}\n\n._seamGhost_3eb26c {\n position: absolute;\n left: var(--be-at);\n top: -3px;\n bottom: -3px;\n width: 0;\n border-left: 1px dashed var(--wzl-border-strong);\n pointer-events: none;\n}\n\n/* Wider than the line it draws: a 1px seam is unhittable. A seam is one of\n * the strip's thumbs, whose own look is undone here, and a range edge. */\n._seam_3eb26c,\n._strip_3eb26c [role='slider'] {\n position: absolute;\n top: -3px;\n bottom: -3px;\n width: 11px;\n margin-left: -5px;\n z-index: 1;\n cursor: ew-resize;\n background: none;\n border: none;\n border-radius: 0;\n box-shadow: none;\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n}\n\n._seam_3eb26c {\n left: var(--be-at);\n}\n\n/* A thumb's slop is drawn in its `::before`; the seam needs no more than its own width. */\n._strip_3eb26c [role='slider']::before {\n content: none;\n}\n\n._seam_3eb26c::after,\n._strip_3eb26c [role='slider']::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 5px;\n width: 1px;\n background: var(--wzl-border-strong);\n}\n\n._seam_3eb26c:hover::after,\n._seam_3eb26c:focus-visible::after,\n._strip_3eb26c [role='slider']:hover::after,\n._strip_3eb26c [role='slider']:focus-visible::after {\n background: var(--wzl-accent);\n width: 2px;\n}\n\n._seam_3eb26c:focus-visible,\n._strip_3eb26c [role='slider']:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: 0;\n border-radius: var(--wzl-radius-sm);\n}\n\n/* An end of the whole range. Drawn heavier than a seam so it reads as the\n * boundary the bands live inside rather than one more division. */\n._edge_3eb26c::after {\n width: 2px;\n left: 4px;\n}\n\n._edge_3eb26c:hover::after,\n._edge_3eb26c:focus-visible::after {\n width: 3px;\n}\n._anchor_0d970d {\n position: fixed;\n pointer-events: none;\n}\n\n._popover_0d970d {\n /* RAC sets no z-index. */\n z-index: var(--wzl-z-popover);\n background: var(--_s-fill);\n border: var(--_s-border-width) var(--_s-border-style) var(--_s-border-color);\n border-radius: var(--_s-radius);\n box-shadow: var(--wzl-bevel-raised, 0 12px 40px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n max-width: 320px;\n transition: opacity var(--wzl-motion-fast);\n}\n\n._popover_0d970d[data-entering],\n._popover_0d970d[data-exiting] {\n opacity: 0;\n}\n\n/* BEGIN GENERATED stance rules: callout — `npm run gen:stances`, do not edit. */\n\n._popover_0d970d {\n --wzl-tint: initial;\n}\n\n._popover_0d970d {\n --_s-surface: color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface));\n --_s-border-color: var(--wzl-accent-strong);\n --_s-border-style: solid;\n --_s-border-width: 1px;\n --_s-radius: var(--wzl-radius-md);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size);\n --_s-title-case: none;\n --_s-title-tracking: normal;\n --_s-title-color: var(--wzl-fg);\n}\n\n._popover_0d970d[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-clarify-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-clarify-border-style, solid);\n --_s-border-width: var(--wzl-stance-clarify-border-width, 1px);\n --_s-radius: var(--wzl-stance-clarify-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-clarify-title-case, none);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-aside-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-aside-border-style, solid);\n --_s-border-width: var(--wzl-stance-aside-border-width, 1px);\n --_s-radius: var(--wzl-stance-aside-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-aside-title-case, none);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-advanced-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-advanced-border-style, solid);\n --_s-border-width: var(--wzl-stance-advanced-border-width, 1px);\n --_s-radius: var(--wzl-stance-advanced-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-advanced-title-case, none);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-debug-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-debug-border-style, solid);\n --_s-border-width: var(--wzl-stance-debug-border-width, 1px);\n --_s-radius: var(--wzl-stance-debug-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-debug-title-case, none);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-preview-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-preview-border-style, solid);\n --_s-border-width: var(--wzl-stance-preview-border-width, 1px);\n --_s-radius: var(--wzl-stance-preview-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-preview-title-case, none);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-confirm-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-confirm-border-style, solid);\n --_s-border-width: var(--wzl-stance-confirm-border-width, 1px);\n --_s-radius: var(--wzl-stance-confirm-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-confirm-title-case, none);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, color-mix(in oklab, var(--wzl-accent) 8%, var(--wzl-surface)));\n --_s-border-color: var(--wzl-stance-cancel-border-color, var(--wzl-accent-strong));\n --_s-border-style: var(--wzl-stance-cancel-border-style, solid);\n --_s-border-width: var(--wzl-stance-cancel-border-width, 1px);\n --_s-radius: var(--wzl-stance-cancel-radius, var(--wzl-radius-md));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size));\n --_s-title-case: var(--wzl-stance-cancel-title-case, none);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, normal);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg));\n}\n\n._popover_0d970d[data-emphasis='high'] {\n --_s-border-color: var(--wzl-accent-fg);\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n._popover_0d970d[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n._popover_0d970d[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-border-color: var(--wzl-grade);\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n._popover_0d970d {\n --_s-fill: var(--_s-surface);\n}\n\n._popover_0d970d[data-tint],\n._popover_0d970d[data-grade],\n._popover_0d970d[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n._popover_0d970d[data-tint],\n._popover_0d970d[data-grade] {\n --wzl-surface-sunken: oklch(from var(--_s-fill) calc(l - 0.06) c h);\n}\n\n._popover_0d970d[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: callout */\n\n._arrow_0d970d svg {\n display: block;\n fill: var(--_s-fill);\n stroke: var(--_s-border-color);\n stroke-width: 1;\n}\n\n._arrow_0d970d[data-placement='bottom'] svg {\n transform: rotate(180deg);\n}\n\n._arrow_0d970d[data-placement='left'] svg {\n transform: rotate(-90deg);\n}\n\n._arrow_0d970d[data-placement='right'] svg {\n transform: rotate(90deg);\n}\n\n._dialog_0d970d {\n outline: none;\n max-height: inherit;\n display: flex;\n flex-direction: column;\n}\n\n._header_0d970d {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-5) var(--wzl-space-6) 0;\n}\n\n._title_0d970d {\n margin: 0;\n flex: 1;\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n._body_0d970d {\n padding: var(--wzl-space-4) var(--wzl-space-6) var(--wzl-space-5);\n font-size: var(--wzl-font-size);\n line-height: 1.4;\n overflow-y: auto;\n}\n\n._footer_0d970d {\n display: flex;\n justify-content: flex-end;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-6) var(--wzl-space-5);\n}\n/* Horizontal strip above the workspace for contextual tool options.\n Fixed height, so the controls inside never change the row's size.\n\n Overflow: when controls exceed the available width, `.controls`\n scrolls horizontally rather than wrapping (which would grow the row\n and defeat the fixed height above) or clipping (which\n would hide controls with no way to reach them). A flyout/long-press\n affordance was considered and rejected — grouped, directly visible\n layouts are preferred in this repo. */\n\n._root_fb8dad {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n height: var(--wzl-tb-height);\n padding: 0 var(--wzl-space-4);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n box-shadow: var(--wzl-bevel-raised, none);\n color: var(--wzl-fg);\n overflow: hidden;\n}\n\n._label_fb8dad {\n flex: 0 0 auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--wzl-fg-muted);\n white-space: nowrap;\n}\n\n._controls_fb8dad {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-3);\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: thin;\n}\n\n/* Firefox gets a thin scrollbar for free via `scrollbar-width` above.\n * Chromium/WebKit need it spelled out — on a classic (non-overlay)\n * scrollbar theme (default on Windows Chrome/Edge), an unstyled\n * horizontal scrollbar is ~15-17px tall and renders *inside* this box,\n * clipping/off-centering the row's controls. That would reintroduce the\n * exact height instability the scroll-over-wrap overflow choice above\n * exists to avoid — just at the row's inner edge instead of its outer\n * one. Pin it thin and out of the way instead. */\n._controls_fb8dad::-webkit-scrollbar {\n height: 4px;\n}\n._controls_fb8dad::-webkit-scrollbar-track {\n background: transparent;\n}\n._controls_fb8dad::-webkit-scrollbar-thumb {\n background: var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n/* The label a `Checkbox` or a `Switch` wraps round its control and its text. */._toggleLabel_5ff28a {\n /* Holds the Switch's react-aria hidden input, which otherwise escapes any scrolling ancestor. */\n position: relative;\n display: inline-flex;\n /* The row reports its text's baseline; the control centers on the text instead of lending the row its own. */\n align-items: baseline;\n gap: var(--wzl-space-4);\n cursor: pointer;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n user-select: none;\n -webkit-user-select: none;\n}._toggleLabel_5ff28a > * {\n align-self: center;\n}/* The words beside the control. */._toggleLabel_5ff28a > ._toggleText_5ff28a {\n align-self: baseline;\n}\n/* The box itself is `checkbox.module.css`, shared with the property rows; this\n is only the label around it. */\n._checkbox_b600bc {\n}\n\n/* The box dims itself on :disabled, so only the text is dimmed here. */\n._checkbox_b600bc[data-disabled] {\n cursor: not-allowed;\n}\n\n._checkbox_b600bc[data-disabled] ._label_b600bc {\n opacity: 0.5;\n}\n\n._label_b600bc {\n line-height: 1.2;\n}\n._block_e42b36 {\n margin: 0;\n overflow: auto;\n font-family: var(--wzl-font-mono);\n color: var(--wzl-fg);\n tab-size: 2;\n}\n\n._block_e42b36:focus-visible {\n outline: 1px solid var(--wzl-focus-ring);\n outline-offset: -1px;\n}\n\n._block_e42b36 code {\n display: grid;\n font: inherit;\n}\n\n._line_e42b36 {\n display: block;\n white-space: pre;\n}\n\n._numbered_e42b36 ._line_e42b36 {\n display: grid;\n grid-template-columns: var(--code-gutter) 1fr;\n column-gap: 1.5ch;\n}\n\n._lineNo_e42b36 {\n color: var(--wzl-fg-muted);\n text-align: end;\n user-select: none;\n}\n\n/* prism's token classes, which it sets on each span. */\n._block_e42b36 .token.keyword,\n._block_e42b36 .token.builtin,\n._block_e42b36 .token.operator.arrow {\n color: var(--wzl-code-keyword);\n}\n\n._block_e42b36 .token.string,\n._block_e42b36 .token.char,\n._block_e42b36 .token.template-string,\n._block_e42b36 .token.attr-value,\n._block_e42b36 .token.regex {\n color: var(--wzl-code-string);\n}\n\n._block_e42b36 .token.number {\n color: var(--wzl-code-number);\n}\n\n._block_e42b36 .token.boolean,\n._block_e42b36 .token.constant,\n._block_e42b36 .token.null,\n._block_e42b36 .token.nil {\n color: var(--wzl-code-constant);\n}\n\n._block_e42b36 .token.property,\n._block_e42b36 .token.attr-name,\n._block_e42b36 .token.tag {\n color: var(--wzl-code-property);\n}\n\n._block_e42b36 .token.function,\n._block_e42b36 .token.class-name,\n._block_e42b36 .token.maybe-class-name {\n color: var(--wzl-code-name);\n}\n\n._block_e42b36 .token.punctuation,\n._block_e42b36 .token.comment {\n color: var(--wzl-fg-muted);\n}\n\n._block_e42b36 .token.comment {\n font-style: italic;\n}\n/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n\n._frame_45a197 {\n display: flex;\n align-items: stretch;\n overflow: hidden;\n}\n\n._frame_45a197 input {\n padding: 0 var(--wzl-field-pad-x);\n}\n\n/* A request is out: the rows on screen are the previous query's, so mark them\n stale rather than clearing the list out from under the arrow keys. */\n._frame_45a197:has(input[aria-busy='true'])::after {\n content: '';\n align-self: center;\n flex: none;\n width: 10px;\n height: 10px;\n margin-right: var(--wzl-space-2);\n border: 1.5px solid var(--wzl-fg-subtle);\n border-top-color: transparent;\n border-radius: 50%;\n animation: _spin_45a197 700ms linear infinite;\n}\n\n@keyframes _spin_45a197 {\n to {\n transform: rotate(1turn);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ._frame_45a197:has(input[aria-busy='true'])::after {\n animation: none;\n border-top-color: var(--wzl-fg-subtle);\n opacity: 0.5;\n }\n}\n\n._openButton_45a197 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wzl-icon-button-size);\n background: transparent;\n border: none;\n border-left: 1px solid var(--wzl-border);\n color: var(--wzl-fg-muted);\n cursor: pointer;\n padding: 0;\n}\n\n._openButton_45a197[data-hovered]:not([data-disabled]) {\n color: var(--wzl-fg);\n}\n\n._openButton_45a197 svg {\n width: 10px;\n height: 10px;\n}\n\n._popover_45a197 {\n min-width: var(--trigger-width);\n outline: none;\n}\n\n._empty_45a197 {\n padding: var(--wzl-space-3) var(--wzl-space-4);\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-sm);\n}\n\n._error_45a197 {\n padding: var(--wzl-space-3) var(--wzl-space-4);\n color: var(--wzl-danger);\n font-size: var(--wzl-font-size-sm);\n}\n\n/* `width='fit'`: a hidden stack of every option label shares the input's grid\n cell, so the field is wide enough for whichever option is chosen and takes\n no more of the row than that. */\n._fit_45a197 ._frame_45a197 {\n display: grid;\n grid-template-columns: auto auto;\n width: fit-content;\n max-width: 100%;\n}\n\n/* `width: 0` keeps the input's 20-character intrinsic width out of the track\n sizing — the sizer is what the column measures — and `min-width` then\n stretches it back across whatever that came to. */\n._fit_45a197 ._frame_45a197 input {\n grid-area: 1 / 1;\n width: 0;\n min-width: 100%;\n}\n\n._fit_45a197 ._sizer_45a197 {\n grid-area: 1 / 1;\n}\n\n._fit_45a197 ._openButton_45a197 {\n grid-area: 1 / 2;\n}\n\n._sizer_45a197 {\n padding: 0 var(--wzl-field-pad-x);\n}\n/* A fixed height, so the centered box does not jump as filtering shrinks the list. */\n._palette_b74f0e {\n width: 440px;\n max-width: calc(100vw - 32px);\n height: min(70vh, 520px);\n}\n\n._body_b74f0e {\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n padding: 0;\n}\n\n._input_b74f0e {\n background: var(--wzl-surface-sunken);\n border: none;\n border-bottom: 1px solid var(--wzl-border);\n color: var(--wzl-fg);\n font-family: inherit;\n font-size: var(--wzl-font-size-md);\n padding: var(--wzl-space-6) var(--wzl-space-7);\n outline: none;\n}\n._input_b74f0e::placeholder {\n color: var(--wzl-fg-muted);\n}\n._input_b74f0e:focus {\n border-bottom-color: var(--wzl-accent);\n}\n\n._list_b74f0e {\n list-style: none;\n margin: 0;\n padding: var(--wzl-space-2);\n overflow-y: auto;\n flex: 1 1 auto;\n}\n\n._row_b74f0e {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-6);\n padding: 7px var(--wzl-space-5);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg);\n cursor: pointer;\n}\n._rowActive_b74f0e {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n._rowDisabled_b74f0e {\n opacity: 0.4;\n cursor: default;\n}\n\n._label_b74f0e {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._tag_b74f0e {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n flex-shrink: 0;\n}\n\n._reason_b74f0e {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n flex-shrink: 0;\n}\n\n._shortcuts_b74f0e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex-shrink: 0;\n}\n\n._empty_b74f0e {\n padding: 18px var(--wzl-space-7);\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg-muted);\n text-align: center;\n}\n\n._selection_b74f0e {\n margin-inline-end: auto;\n}\n\n._selection_b74f0e,\n._hint_b74f0e {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n._root_1cefc4 {\n /* Component-local vars layered over the theme tokens. Each var resolves\n * to a semantic token from @weasel-js/theme; consumers override\n * either the curve-* var (component scope) or the wzl-* token (app\n * scope) without touching this file.\n *\n * Background / grid / axis tokens live on Plot2D now (this component\n * composes Plot2D, which paints the background and chrome). */\n --curve-line: var(--wzl-curve-color);\n --curve-line-width: var(--wzl-curve-width);\n --curve-fill: color-mix(in srgb, var(--curve-line) 30%, transparent);\n --curve-anchor-fill: var(--wzl-surface);\n --curve-anchor-stroke: var(--curve-line);\n --curve-anchor-active-fill: var(--curve-line);\n --curve-pinned-fill: var(--wzl-fg-subtle);\n}\n\n._fill_1cefc4 {\n fill: var(--curve-fill);\n stroke: none;\n pointer-events: none;\n}\n\n._curve_1cefc4 {\n stroke: var(--curve-line);\n stroke-width: var(--curve-line-width);\n fill: none;\n pointer-events: stroke;\n}\n\n._anchor_1cefc4 {\n fill: var(--curve-anchor-fill);\n stroke: var(--curve-anchor-stroke);\n stroke-width: 1.5;\n cursor: grab;\n}\n\n._anchor_1cefc4:hover {\n fill: var(--curve-anchor-active-fill);\n}\n\n._anchor_1cefc4._active_1cefc4 {\n fill: var(--curve-anchor-active-fill);\n cursor: grabbing;\n}\n\n._anchor_1cefc4._pinned_1cefc4 {\n fill: var(--curve-pinned-fill);\n cursor: default;\n}\n\n/* Caller-set locked anchors share the gray pinned fill but signal\n * \"not interactive at all\" via the not-allowed cursor. */\n._anchor_1cefc4._locked_1cefc4 {\n cursor: not-allowed;\n}\n\n/* Endpoint vertices render as diamonds (rotated squares) instead of\n * circles, so they read as a different category of handle. The shape\n * is enforced inline via SVG <rect transform>; this class only adds\n * the hover/active styling. */\n._endpoint_1cefc4 {\n /* No fill / stroke overrides — endpoint visuals reuse .anchor /\n * .anchor.pinned / .anchor.active styling. The class exists as a\n * marker for future per-endpoint styling needs. */\n}\n\n/* Focus is drawn on the mark itself: an outline on an SVG shape rings its\n bounding box, which the nearest scroll container clips. */\n._anchor_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-width: 2;\n}\n\n/* ── keyframe layer ─────────────────────────────────────────────────── */\n\n._keyframe_1cefc4 {\n fill: var(--curve-key-fill, var(--wzl-fg-muted));\n cursor: grab;\n}\n\n._keyframe_1cefc4[aria-current='true'] { fill: var(--curve-selected, var(--wzl-accent-strong)); }\n._keyframe_1cefc4:focus-visible,\n._handle_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-width: 2;\n}\n\n._segmentTarget_1cefc4:focus-visible {\n outline: none;\n stroke: var(--wzl-focus-ring);\n stroke-opacity: 0.5;\n}\n\n/* The committed key holds while its ghost tracks the pointer, so a drag\n reads as a move from somewhere to somewhere. */\n._keyframe_1cefc4[data-dragging='true'] { opacity: 0.4; }\n\n._keyframeGhost_1cefc4 {\n fill: var(--curve-selected-soft, var(--wzl-accent-soft));\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n stroke-dasharray: 2 2;\n pointer-events: none;\n}\n\n._segmentBand_1cefc4 {\n fill: var(--curve-selected-soft, var(--wzl-accent-soft));\n pointer-events: none;\n}\n\n/* Carries focus and a name for each segment; hit testing is geometric. */\n._segmentTarget_1cefc4 {\n fill: none;\n stroke: transparent;\n stroke-width: 8;\n pointer-events: none;\n}\n\n._handle_1cefc4 {\n fill: var(--wzl-surface);\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n cursor: grab;\n}\n\n._handleStem_1cefc4 {\n stroke: var(--curve-selected, var(--wzl-accent-strong));\n stroke-width: 1;\n pointer-events: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._root_b8a5db {\n /* Component-local vars layered over theme tokens. Consumers override\n * either the plot-* var (component scope) or the wzl-* token (app\n * scope). */\n --plot-bg: var(--wzl-surface-sunken);\n --plot-grid: var(--wzl-line);\n /* Axes get full foreground contrast — they're the plot frame, the\n * most prominent structural element after caller-rendered content. */\n --plot-axis: var(--wzl-fg);\n --plot-tick: var(--wzl-line-subtle);\n --plot-tick-label: var(--wzl-fg-muted);\n /* Knocks the tick line out from behind an inside label. */\n --plot-tick-label-halo: var(--plot-bg);\n\n display: block;\n /* Caller-rendered marks at the very edge (e.g. CurveEditor anchors)\n * extend past the SVG box by their radius — let them paint over the\n * host page instead of being half-clipped. */\n overflow: visible;\n background: var(--plot-bg);\n user-select: none;\n touch-action: none;\n outline: none;\n}\n\n/* Keyboard-only focus ring. Caller opts in via `tabIndex`. */\n._root_b8a5db:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n\n._grid_b8a5db {\n stroke: var(--plot-grid);\n stroke-width: 1;\n fill: none;\n}\n\n._axis_b8a5db {\n stroke: var(--plot-axis);\n stroke-width: var(--wzl-line-width);\n fill: none;\n}\n\n._tick_b8a5db {\n stroke: var(--plot-tick);\n stroke-width: 1;\n fill: none;\n}\n\n._tickLabels_b8a5db { pointer-events: none; }\n\n._tickLabel_b8a5db {\n fill: var(--plot-tick-label);\n font-size: var(--wzl-font-size-xs);\n}\n\n._tickLabel_b8a5db[data-placement='inside'] {\n stroke: var(--plot-tick-label-halo);\n stroke-width: 3px;\n stroke-linejoin: round;\n paint-order: stroke;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._grid_807591 {\n position: relative;\n width: 100%;\n}\n\n._table_807591 {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--wzl-font-size-sm);\n /* A select in a cell is one of the row's values, so it is set at the row's size. */\n --wzl-select-font-size: var(--wzl-font-size-sm);\n}\n\n._table_807591 th,\n._table_807591 td {\n text-align: left;\n padding: 3px var(--wzl-space-3);\n vertical-align: middle;\n}\n._numeric_807591 {\n}\n._table_807591 ._numeric_807591 {\n text-align: end;\n}\n._table_807591 tbody tr {\n border-bottom: 1px solid var(--wzl-line-subtle);\n}\n\n._table_807591 th {\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n position: sticky;\n top: 0;\n background: var(--wzl-surface);\n z-index: 1;\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._sortButton_807591 {\n all: unset;\n cursor: pointer;\n user-select: none;\n display: block;\n width: 100%;\n}\n._sortButton_807591:hover { color: var(--wzl-fg); }\n._sortButton_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n._sortActive_807591 { color: var(--wzl-fg); }\n\n._empty_807591 {\n color: var(--wzl-fg-muted);\n font-style: italic;\n padding: var(--wzl-space-4) 0;\n text-align: center;\n}\n\n/* Drag-handle column. */\n._handleCol_807591 { width: 14px; }\n._handleCell_807591 { width: 14px; }\n/* A cell's height is a minimum, and naming one is what lets the button's 100% resolve. */\n._table_807591 ._handleCell_807591 { padding: 0; height: 1px; }\n._handle_807591 {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 3px var(--wzl-space-3);\n color: var(--wzl-fg-muted);\n}\n._handle_807591:hover { color: var(--wzl-fg); }\n._handle_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._dragging_807591 { opacity: 0.4; }\n\n._dropBefore_807591 > td { box-shadow: inset 0 2px 0 0 var(--wzl-accent); }\n._dropAfter_807591 > td { box-shadow: inset 0 -2px 0 0 var(--wzl-accent); }\n\n/* Row activation (`onRowClick`). */\n._clickable_807591 { cursor: pointer; }\n._clickable_807591:hover > td { background: var(--wzl-surface-hover); }\n._clickable_807591:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* Disclosure column and the detail row it opens. */\n._detailCol_807591,\n._detailCell_807591 {\n width: var(--wzl-control-h-sm);\n padding-inline: 0;\n text-align: center;\n}\n._table_807591 ._detailCell_807591 { padding-block: 0; }\n._detailRow_807591 > td {\n padding: var(--wzl-space-2) var(--wzl-space-3) var(--wzl-space-3);\n background: var(--wzl-surface-sunken);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._list_2197df {\n display: grid;\n grid-template-columns: var(--wzl-params-label-width, auto) minmax(0, 1fr);\n column-gap: var(--wzl-space-6);\n row-gap: var(--wzl-space-1);\n margin: 0;\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n}\n\n._list_2197df[data-layout='block'] {\n grid-template-columns: minmax(0, 1fr);\n}\n\n._row_2197df {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n /* A label meets the first line of its value, however many lines that runs to. */\n align-items: baseline;\n}\n\n._rowLabel_2197df {\n display: flex;\n align-items: baseline;\n justify-content: var(--wzl-params-label-align, start);\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n line-height: var(--wzl-leading-snug);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n\n._value_2197df {\n margin: 0;\n min-width: 0;\n /* The floor a property row stands on, so the two share a rhythm side by side. */\n min-height: var(--wzl-prop-row-h, var(--wzl-field-h, var(--wzl-control-h)));\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-2);\n overflow-wrap: anywhere;\n color: var(--wzl-fg);\n}\n\n._value_2197df[data-empty] {\n color: var(--wzl-fg-muted);\n}\n\n._list_2197df[data-values='figures'] {\n grid-template-columns: var(--wzl-params-label-width, auto) minmax(min-content, 1fr);\n}\n\n/* Set by the row from its own `values` or its list's. Declared after `.value`,\n which it overrides at equal specificity. */\n._figures_2197df {\n justify-content: flex-end;\n text-align: end;\n /* On the cell, not the track, so ch measures the figures' own face. */\n min-width: var(--wzl-detail-figure-min-width, 8ch);\n white-space: pre;\n overflow-wrap: normal;\n}\n\n._dot_2197df {\n flex: none;\n width: 0.5em;\n height: 0.5em;\n border-radius: 50%;\n background: currentColor;\n}\n\n._row_2197df[data-grade] ._dot_2197df { background: var(--wzl-grade); }\n\n._title_2197df {\n margin: 0 0 var(--wzl-space-3);\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n}\n._root_7d5675 {\n position: relative;\n /* Read by Slider's track and stop marks. Detents run the full height of the\n * track so they read as notches rather than as tally marks beside it. */\n --rp-tick-inset: 0;\n --rp-tick-width: 1px;\n --rp-tick-color: var(--wzl-border-strong);\n --rp-track-cursor: pointer;\n font-family: var(--wzl-font-ui);\n}\n\n._slider_7d5675 {\n width: 100%;\n}\n\n._ghost_e01963 {\n position: fixed;\n z-index: var(--wzl-z-drag);\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding: 1px;\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n box-shadow: var(--wzl-bevel-raised, 0 4px 12px var(--wzl-shadow));\n opacity: 0.85;\n pointer-events: none;\n}\n\n._centered_e01963 {\n translate: -50% -50%;\n}\n\n._bare_e01963 {\n padding: 0;\n border-radius: 0;\n background: none;\n box-shadow: none;\n}\n._row_c23e0f {\n display: inline-flex;\n align-items: stretch;\n gap: var(--powerline-gap, 0.2em);\n}\n\n._matrix_c23e0f {\n display: grid;\n gap: var(--wzl-space-6);\n}\n\n/* Reset Badge's opinionated text defaults — Powerline segments should pick up\n * the surrounding text style instead of forcing uppercase / 10px / extra\n * tracking. Consumers can still override via className on Powerline. */\n._segment_c23e0f {\n font-size: inherit;\n text-transform: none;\n letter-spacing: normal;\n}\n._muted_24bbd6 { opacity: 0.55; }\n/* A gesture segment baseline-aligns its text; a KeyCap inside it has its own box and sits off-center without this. */\n._keyCap_24bbd6 { align-self: center; }\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._diagram_b112e8 {\n display: grid;\n gap: var(--wzl-space-3);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}\n\n._input_b112e8 {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-2) var(--wzl-space-4);\n margin: 0;\n color: var(--wzl-fg-muted);\n}\n._field_b112e8 { display: flex; align-items: baseline; gap: var(--wzl-space-1); }\n._field_b112e8 dt { margin: 0; }\n._field_b112e8 dd {\n margin: 0;\n color: var(--wzl-fg);\n font-weight: var(--wzl-font-weight-medium);\n}\n\n._stage_b112e8 {\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n background: var(--wzl-surface);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n /* Ids and rules do not wrap mid-word; a narrow host scrolls the stage instead. */\n overflow-x: auto;\n}\n._stage_b112e8[data-filter] { background: var(--wzl-surface-sunken); }\n\n._stageTitle_b112e8 {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: var(--wzl-space-2);\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n._stageTitle_b112e8 + ._table_b112e8 { margin-top: var(--wzl-space-2); }\n._note_b112e8 { color: var(--wzl-fg-muted); font-weight: var(--wzl-font-weight-medium); }\n\n._table_b112e8 { width: 100%; border-collapse: collapse; }\n._table_b112e8 th {\n text-align: start;\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n}\n._table_b112e8 td {\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-top: 1px solid var(--wzl-border);\n vertical-align: top;\n white-space: nowrap;\n}\n\n._table_b112e8 code { white-space: nowrap; overflow-wrap: normal; }\n\n._routes_b112e8 { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--wzl-space-1); }\n\n._num_b112e8 {\n text-align: end;\n white-space: nowrap;\n}\n\n._srOnly_b112e8 {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n._muted_b112e8 { color: var(--wzl-fg-muted); }\n\n._walk_b112e8 { color: var(--wzl-fg-muted); }\n._walk_b112e8[data-walk='fired'],\n._walk_b112e8[data-walk='would-fire'] { color: var(--wzl-success); font-weight: var(--wzl-font-weight-bold); }\n._walk_b112e8[data-walk='declined'],\n._walk_b112e8[data-walk='empty-handle'],\n._walk_b112e8[data-walk='misbound'],\n._walk_b112e8[data-walk='no-such-action'] { color: var(--wzl-fg); }\n\n._winner_b112e8 td { background: color-mix(in srgb, var(--wzl-success) 12%, transparent); }\n._winner_b112e8 td:first-child { box-shadow: inset 3px 0 var(--wzl-success); }\n\n._nothing_b112e8 { margin: 0; color: var(--wzl-fg-muted); }\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}\n\n._root_644963 {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n/* The two chips overlap on a diagonal: fill up-left, behind; stroke\n down-right, in front, so the fill shows through the stroke's hole. */\n._pair_644963 {\n --chip: 32px;\n --offset: 12px;\n --ring: 8px;\n position: relative;\n inline-size: calc(var(--chip) + var(--offset));\n block-size: calc(var(--chip) + var(--offset));\n}\n\n._chip_644963 {\n position: absolute;\n inline-size: var(--chip);\n block-size: var(--chip);\n box-sizing: border-box;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._chip_644963[data-slot='fill'] {\n inset-block-start: 0;\n inset-inline-start: 0;\n}\n\n._chip_644963[data-slot='stroke'] {\n inset-block-end: 0;\n inset-inline-end: 0;\n}\n\n._chip_644963[data-focused] {\n border-color: var(--wzl-fg);\n box-shadow: 0 0 0 1px var(--wzl-fg);\n}\n\n._chip_644963:has(._input_644963:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* The paint sits over the checker, so a translucent one reads as such. */\n._well_644963 {\n position: absolute;\n inset: 0;\n overflow: hidden;\n border-radius: calc(var(--wzl-radius-sm) - var(--wzl-border-w));\n background: var(--wzl-checker-layer);\n}\n\n/* The stroke well is a ring: the mask subtracts the content box from the\n padding box, so whatever is behind the chip shows through its hole. */\n._chip_644963[data-slot='stroke'] ._well_644963 {\n box-sizing: border-box;\n padding: var(--ring);\n mask:\n linear-gradient(#000, #000) padding-box,\n linear-gradient(#000, #000) content-box;\n mask-composite: exclude;\n}\n\n/* The hole's edge, so a focused stroke reads as focused on both sides. */\n._chip_644963[data-slot='stroke'][data-focused]::before {\n content: '';\n position: absolute;\n inset: calc(var(--ring) - var(--wzl-border-w));\n border: 1px solid var(--wzl-fg);\n border-radius: 0;\n pointer-events: none;\n}\n\n._paint_644963 {\n position: absolute;\n inset: 0;\n}\n\n/* No paint: the surface crossed by the danger diagonal. */\n._chip_644963[data-none] ._well_644963 {\n background:\n linear-gradient(\n 45deg,\n transparent calc(50% - 1px),\n var(--wzl-danger) calc(50% - 1px),\n var(--wzl-danger) calc(50% + 1px),\n transparent calc(50% + 1px)\n ),\n var(--wzl-surface);\n}\n\n/* The native picker covers its chip, invisible: it takes the click and the\n keyboard focus, and the well draws the paint. */\n._input_644963 {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n margin: 0;\n padding: 0;\n border: 0;\n opacity: 0;\n cursor: pointer;\n}\n\n._buttons_644963 {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--wzl-space-1);\n}\n/* One height and one inset for every sidebar list. A panel stacking two of\n them has to have their rows line up, which is what a private copy of this\n file per list stopped happening. */\n._list_0838d3 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n line-height: var(--wzl-leading-snug);\n user-select: none;\n -webkit-user-select: none;\n position: relative;\n width: 100%;\n}\n\n._row_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-4);\n height: var(--wzl-control-h);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n background: transparent;\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n overflow: hidden;\n white-space: nowrap;\n}\n\n._row_0838d3:hover {\n background: var(--wzl-surface-hover);\n}\n\n._row_0838d3:focus-visible,\n._row_0838d3:has(> ._cell_0838d3:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n/* A grid row's label cell takes the row's focus; the ring is drawn on the row\n so it looks the same as a listbox option's. */\n._cell_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex: 1 1 auto;\n min-width: 0;\n align-self: stretch;\n outline: none;\n}\n\n._trailing_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n flex: none;\n}\n\n._label_0838d3 {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n._selected_0838d3,\n._selected_0838d3:hover {\n background: var(--wzl-border);\n color: var(--wzl-fg);\n}\n\n/* Drag feedback. The seam is an outer shadow of the row beside it: it needs no\n measured offset, adds no element for a drag to count as a row, and escapes\n the row's own `overflow: hidden`. */\n._row_0838d3[data-drop='before'] { box-shadow: 0 -2px 0 0 var(--wzl-accent); }\n._row_0838d3[data-drop='after'] { box-shadow: 0 2px 0 0 var(--wzl-accent); }\n._row_0838d3[data-dragging] { opacity: 0.4; }\n\n/* Present but not in effect. */\n._muted_0838d3 {\n color: var(--wzl-fg-subtle);\n}\n\n._empty_0838d3 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n/* A Jog laid along a track shape; `useRunRow` places its parts. */\n._root_a908ba {\n column-gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n/* A row of transport controls on the panel surface, sized to sit in a bar\n * beside a title or a caption rather than to own a strip of its own. */\n\n._jog_1060cb {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n}\n\n._scrub_1060cb {\n flex: 1 1 auto;\n min-width: 80px;\n margin-inline: var(--wzl-space-2);\n}\n\n._readout_1060cb {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n white-space: pre;\n}\n\n._caption_1060cb {\n overflow: hidden;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n._hint_a7bd5f {\n display: inline-flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-3) var(--wzl-space-5);\n border-radius: var(--wzl-radius-md);\n background: color-mix(in srgb, var(--wzl-surface-raised) 88%, transparent);\n backdrop-filter: blur(var(--wzl-glass-blur));\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-sm);\n}\n\n._title_a7bd5f {\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._rows_a7bd5f {\n display: grid;\n grid-template-columns: auto 1fr;\n gap: var(--wzl-space-1) var(--wzl-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n._row_a7bd5f {\n display: contents;\n}\n\n._keys_a7bd5f,\n._gesture_a7bd5f {\n justify-self: end;\n}\n\n._gesture_a7bd5f {\n color: var(--wzl-fg-muted);\n}\n\n._label_a7bd5f {\n white-space: nowrap;\n}\n._panel_5920db {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 260px;\n padding: var(--wzl-space-4) var(--wzl-space-5);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n}\n\n._header_5920db {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-3);\n}\n\n._title_5920db {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n}\n._field_53f0ad {\n display: grid;\n gap: var(--wzl-space-3);\n grid-column: 1 / -1;\n box-sizing: border-box;\n}\n\n._field_53f0ad * {\n box-sizing: border-box;\n}\n\n._plot_53f0ad {\n position: relative;\n width: 100%;\n}\n\n._marks_53f0ad {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._actions_53f0ad {\n display: flex;\n gap: var(--wzl-space-3);\n justify-self: start;\n}\n\n._action_53f0ad {\n background: transparent;\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n padding: var(--wzl-space-2) var(--wzl-space-5);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n cursor: pointer;\n}\n\n._action_53f0ad:hover {\n background: var(--wzl-surface-raised);\n}\n/* Row box, hover and selection are `ItemList`'s, so a layer list and the\n history list stacked under it agree. What is here is only what a layer has. */\n._root_a78043,\n._root_a78043 * {\n box-sizing: border-box;\n}\n\n._root_a78043 {\n display: grid;\n gap: var(--wzl-space-4);\n}\n\n._head_a78043 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-4);\n}\n\n._title_a78043 {\n margin: 0;\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-light);\n font-size: var(--wzl-font-size-lg);\n color: var(--wzl-fg);\n}\n\n._palette_a78043 {\n display: flex;\n gap: var(--wzl-space-2);\n}\n\n._add_a78043 {\n font: inherit;\n height: var(--wzl-control-h);\n background: transparent;\n border: 1px dashed var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-1) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n cursor: pointer;\n}\n\n._add_a78043:hover {\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n}\n\n._level_a78043 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n position: relative;\n width: 100%;\n}\n\n/* A level of cards is a `PropertyList`, so the controls in each body take the\n panel's density; its rows are spaced like cards rather than lines. */\n._level_a78043._cards_a78043 {\n display: grid;\n row-gap: var(--wzl-space-3);\n}\n\n._entry_a78043 {\n min-width: 0;\n}\n\n/* A run of rows among cards is a grid to assistive tech and no box: its rows stay the level's own items. */\n._run_a78043 {\n display: contents;\n}\n\n/* `PropertyList` spans its own children across its two columns; a run's rows are one step further in. */\n._run_a78043 > ._entry_a78043 {\n grid-column: 1 / -1;\n}\n\n._row_a78043 {\n user-select: none;\n}\n\n/* The cell a row must own. It adds no box: the row lays its content out. */\n._cell_a78043 {\n display: contents;\n}\n\n/* A child's twisty sits under its parent's grip. */\n._children_a78043 {\n padding-left: calc(var(--wzl-disclosure-target, var(--wzl-control-h-sm)) + var(--wzl-space-4));\n}\n\n/* The layer the drag picked up holds its place, faded, while its ghost follows the pointer. */\n._dragging_a78043 {\n opacity: 0.5;\n}\n\n/* Where the drop would land: a line on the edge of the layer it would land against. */\n._dropBefore_a78043 {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._dropAfter_a78043 {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* One width for the grip and the lock, so a fixed row's label lines up. */\n._grip_a78043,\n._lock_a78043 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n min-width: 13px;\n color: var(--wzl-fg-muted);\n}\n\n._row_a78043:not([data-fixed]):not([data-locked]) {\n cursor: grab;\n}\n\n._row_a78043:not([data-fixed]):not([data-locked]):active {\n cursor: grabbing;\n}\n\n._stop_a78043 {\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n/* Holds the twisty column open on rows with nothing to expand, so labels line up down a level. */\n._twistyGap_a78043 {\n flex: 0 0 auto;\n width: var(--wzl-disclosure-target, var(--wzl-control-h-sm));\n}\n\n/* Sized, so the empty column a fixed row keeps is the checkbox's width. */\n._check_a78043 {\n flex: 0 0 auto;\n width: 13px;\n height: 13px;\n margin: 0;\n accent-color: var(--wzl-accent);\n}\n\n._handle_a78043 {\n padding: var(--wzl-space-1) var(--wzl-space-2);\n min-width: var(--wzl-icon-button-size);\n height: var(--wzl-icon-button-size);\n border-radius: var(--wzl-radius-sm);\n font-weight: var(--wzl-font-weight-bold);\n font-size: var(--wzl-font-size);\n}\n\n._card_a78043[data-tint] ._handle_a78043 {\n background: var(--wzl-tint);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}\n\n._entry_a78043[data-selected] > ._card_a78043 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -1px;\n}\n\n/* An annotation row: dimmed, so content reads first, and marked as left out of export. */\n._nonPrinting_a78043 {\n color: var(--wzl-fg-muted);\n}\n\n._nonPrintingMark_a78043 {\n flex: none;\n margin-inline-start: auto;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-xs);\n}\n\n/* The lock column, at the row's end. */\n._lockToggle_a78043 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 16px;\n height: 16px;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--wzl-fg-subtle);\n cursor: pointer;\n}\n\n._lockToggle_a78043[aria-pressed='true'] {\n color: var(--wzl-fg);\n}\n\n/* An unlocked layer's padlock shows only on a hovered row or card, or once focused.\n Hidden by opacity, so it keeps its column and its place in the tab order. */\n@media (hover: hover) {\n ._lockToggle_a78043[aria-pressed='false'] {\n opacity: 0;\n }\n\n ._row_a78043:hover ._lockToggle_a78043,\n ._card_a78043:hover ._lockToggle_a78043,\n ._lockToggle_a78043:focus-visible {\n opacity: 1;\n }\n}\n\n/* The field a rename opens in place of the label. */\n._rename_a78043 {\n flex: 1 1 auto;\n min-width: 0;\n font: inherit;\n padding: 0 var(--wzl-space-1);\n border: 1px solid var(--wzl-accent);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._readout_9a8e59 {\n position: absolute;\n bottom: var(--wzl-space-6);\n left: 50%;\n translate: -50% 0;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-5);\n padding: var(--wzl-space-2) var(--wzl-space-5);\n border-radius: var(--wzl-radius-md);\n background: color-mix(in srgb, var(--wzl-surface-raised) 78%, transparent);\n backdrop-filter: blur(var(--wzl-glass-blur));\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n z-index: var(--wzl-z-overlay);\n}\n\n._actions_9a8e59 {\n flex: none;\n display: flex;\n gap: var(--wzl-space-2);\n}\n\n._cell_9a8e59 {\n display: inline-flex;\n gap: var(--wzl-space-2);\n align-items: baseline;\n}\n\n._name_9a8e59 {\n color: var(--wzl-fg-muted);\n}\n\n/* Sized for the widest value a page holds, so a live readout does not shift its neighbors. */\n._value_9a8e59 {\n min-width: 9ch;\n text-align: end;\n}\n/* The menubar, then the runs that are not menus. */\n._root_44db33 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n min-width: 0;\n}\n\n._bar_44db33 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-width: 0;\n}\n\n._title_44db33 {\n display: inline-flex;\n flex: none;\n align-items: center;\n padding: var(--wzl-space-1) var(--wzl-space-3);\n background: none;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: inherit;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n white-space: nowrap;\n cursor: default;\n user-select: none;\n}\n\n._title_44db33:hover,\n._title_44db33[aria-expanded='true'] {\n background: var(--wzl-surface-hover);\n}\n\n._title_44db33[aria-disabled='true'] {\n color: var(--wzl-fg-muted);\n background: none;\n}\n\n._title_44db33:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n/* A bar's height, not its content's: a font arriving late must not resize what the strip sits under. */\n._strip_3bcaf6 {\n box-sizing: border-box;\n display: flex;\n align-items: stretch;\n height: var(--wzl-tb-height);\n min-width: 0;\n background: var(--wzl-surface);\n border-top: 1px solid var(--wzl-border);\n font-family: var(--wzl-font-ui);\n}\n\n._tabs_3bcaf6 {\n min-width: 0;\n}\n\n/* The strip sits under what it switches, so its tabs hang from the top edge: the rules below\n restate `Tabs`' bottom-edge ones, and carry the strip's class to outrank them. */\n._strip_3bcaf6 ._list_3bcaf6 {\n flex: 1;\n border-bottom: none;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\n._strip_3bcaf6 ._tab_3bcaf6 {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0 var(--wzl-space-4);\n white-space: nowrap;\n user-select: none;\n}\n\n._strip_3bcaf6 ._tab_3bcaf6[data-selected]::after {\n top: -1px;\n bottom: auto;\n}\n\n._dragging_3bcaf6 {\n opacity: 0.5;\n}\n\n/* Where the drop would land: a line on the edge of the tab it would land against. */\n._strip_3bcaf6 ._dropBefore_3bcaf6 {\n box-shadow: inset 2px 0 0 var(--wzl-accent);\n}\n\n._strip_3bcaf6 ._dropAfter_3bcaf6 {\n box-shadow: inset -2px 0 0 var(--wzl-accent);\n}\n\n._rename_3bcaf6 {\n width: 12ch;\n padding: 0 var(--wzl-space-1);\n font: inherit;\n color: var(--wzl-fg);\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-focus-ring);\n border-radius: var(--wzl-radius-sm);\n outline: none;\n}\n\n._add_3bcaf6 {\n flex-shrink: 0;\n padding: 0 var(--wzl-space-3);\n font: inherit;\n font-size: var(--wzl-font-size-md);\n color: var(--wzl-fg-muted);\n background: transparent;\n border: none;\n cursor: pointer;\n}\n\n._add_3bcaf6:hover {\n color: var(--wzl-fg);\n}\n\n._add_3bcaf6:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._ghost_3bcaf6 {\n display: block;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n white-space: nowrap;\n}\n\n/* A strip laid along a track shape: no strip to draw, only the tabs on the run. */\n._along_3bcaf6 ._tab_3bcaf6 {\n white-space: nowrap;\n user-select: none;\n}\n._table_8fe0a0 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n /* A grid wider than its sidebar scrolls inside it rather than stretching the panel. */\n max-inline-size: 100%;\n overflow-x: auto;\n}\n\n._cell_8fe0a0 {\n min-inline-size: 4rem;\n inline-size: 100%;\n}\n\n._heading_8fe0a0 {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-muted);\n}\n\n._nested_8fe0a0 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n padding-inline-start: var(--wzl-space-4);\n}\n\n._rowActions_8fe0a0 {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-1);\n}\n\n._add_8fe0a0 {\n align-self: flex-start;\n}\n/* The editor and each group in it measure their own width: a row lays out by the room its group has. */\n._editor_b42abc,\n._group_b42abc {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n container-type: inline-size;\n}\n\n._quantifier_b42abc { flex: 0 1 8rem; min-inline-size: 0; }\n\n/* A group among the rows: its own rows, set in from a rule down their side. */\n._group_b42abc {\n padding-inline-start: var(--wzl-space-3);\n border-inline-start: 2px solid var(--wzl-border);\n}\n\n/* The quantifier, then the button that removes the group. */\n._head_b42abc {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n}\n\n/* Copy and Paste, at the end of the editor's first line, after what the last press of either had to say. */\n._clipboard_b42abc {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n margin-inline-start: auto;\n min-inline-size: 0;\n}\n._clipboard_b42abc > button { flex: none; }\n._said_b42abc {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n/*\n * A row reads across: the pref, a comparison, the value compared against, and the button that removes it. The\n * comparison and value columns are one width in every row, so a group's rows line up down each. A second\n * comparison of the same pref takes the line under the first, after an `and` in the pref's column.\n */\n._row_b42abc {\n display: grid;\n grid-template-columns: minmax(0, 1fr) 7.5rem 8rem auto;\n gap: var(--wzl-space-1) var(--wzl-space-2);\n align-items: center;\n}\n\n._pref_b42abc { grid-column: 1; min-inline-size: 0; }\n._comparison_b42abc { grid-column: 2; min-inline-size: 0; }\n/* A comparison that takes no value beside it has the value's column too. */\n._comparisonAlone_b42abc,\n._text_b42abc { grid-column: 2 / 4; min-inline-size: 0; }\n._removeRow_b42abc { grid-column: 4; }\n\n._value_b42abc {\n grid-column: 3;\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-inline-size: 0;\n}\n._value_b42abc > :first-child { flex: 1 1 auto; min-inline-size: 0; }\n\n._and_b42abc {\n grid-column: 1;\n justify-self: end;\n}\n\n._choices_b42abc {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n padding-inline-start: var(--wzl-space-3);\n}\n\n/* Too narrow for a row to read across: the pref takes a line, and each comparison the line under it. */\n@container (max-width: 24rem) {\n ._row_b42abc { grid-template-columns: minmax(0, 1fr) minmax(0, 8rem) auto; }\n ._pref_b42abc { grid-column: 1 / 3; }\n ._removeRow_b42abc { grid-column: 3; grid-row: 1; }\n ._comparison_b42abc { grid-column: 1; }\n ._comparisonAlone_b42abc,\n ._text_b42abc { grid-column: 1 / 3; }\n ._value_b42abc { grid-column: 2; }\n ._and_b42abc { display: none; }\n}\n\n/* A path is what the code spells, beside the name a person reads: in the list a pref is picked from, and not on\n the row, where the name is enough. */\n._path_b42abc {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-xs);\n color: var(--wzl-fg-muted);\n}\n._pref_b42abc button ._path_b42abc { display: none; }\n\n._text_b42abc { overflow-wrap: anywhere; }\n\n._foot_b42abc {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._add_b42abc { flex: 1 1 auto; min-inline-size: 0; }\n._foot_b42abc > button { flex: none; white-space: nowrap; }\n\n._and_b42abc,\n._empty_b42abc {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n\n._problem_b42abc {\n grid-column: 1 / -1;\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-danger);\n overflow-wrap: anywhere;\n}\n._button_eb89b5 {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--wzl-space-1);\n min-width: 44px;\n padding: var(--wzl-space-3) var(--wzl-space-2);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n cursor: default;\n font-family: inherit;\n font-size: var(--wzl-font-size-xs);\n line-height: 1.1;\n position: relative;\n}\n._button_eb89b5:hover:not([disabled]) {\n background: var(--wzl-surface-hover);\n color: var(--wzl-fg);\n}\n._button_eb89b5:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 2px;\n}\n._button_eb89b5._active_eb89b5 {\n background: var(--wzl-surface-pressed);\n border-color: var(--wzl-accent);\n box-shadow: var(--wzl-bevel-pressed, none);\n color: var(--wzl-fg);\n}\n._button_eb89b5[disabled] {\n opacity: 0.4;\n}\n\n._icon_eb89b5 { display: block; }\n._icon_eb89b5 > svg { display: block; }\n._label_eb89b5 { font-size: var(--wzl-font-size-xs); }\n._shortcut_eb89b5 {\n color: var(--wzl-fg-muted);\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* The corner triangle that says the button holds more tools. */\n._menuMark_eb89b5 {\n position: absolute;\n inset-inline-end: 2px;\n inset-block-end: 2px;\n width: 5px;\n height: 5px;\n background: var(--wzl-fg-muted);\n clip-path: polygon(100% 0, 100% 100%, 0 100%);\n}\n\n._menuMark_eb89b5:dir(rtl) {\n clip-path: polygon(0 0, 100% 100%, 0 100%);\n}\n._group_a2aebf {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n}\n._group_a2aebf._horizontal_a2aebf {\n flex-direction: row;\n}\n._group_a2aebf._grid_a2aebf {\n display: grid;\n grid-template-columns: repeat(var(--wzl-tool-columns), minmax(0, 1fr));\n}\n._tree_d5c8c7,\n._group_d5c8c7 {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n._tree_d5c8c7 {\n /* The fold mark's width (DisclosureMark's 13px) plus the row gap: the gutter a mark hangs in. */\n --tree-mark: 13px;\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-2));\n user-select: none;\n -webkit-user-select: none;\n width: 100%;\n}\n\n/* Folded by its branches' leading glyphs, the gutter holds one and the space after it, and the glyph hangs in it as the mark would. */\n._tree_d5c8c7[data-fold='leading'] {\n --tree-mark: var(--wzl-tree-fold-size, 16px);\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-3));\n}\n\n/* `hang`: the gutter is wide enough for a leaf's glyph, which hangs in it as a branch's mark does. */\n._tree_d5c8c7[data-hang]:not([data-guides]) {\n --tree-hung: var(--wzl-tree-leading-size, 16px);\n}\n\n._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) {\n --tree-gutter: calc(max(var(--tree-mark), var(--tree-hung)) + var(--wzl-space-2));\n}\n\n._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) ._twisty_d5c8c7 {\n width: calc(var(--tree-gutter) - var(--wzl-space-2));\n}\n\n._tree_d5c8c7[data-hang]:not([data-guides]) ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 > ._leading_d5c8c7 {\n inline-size: var(--tree-hung);\n margin-inline-start: calc(-1 * (var(--tree-hung) + var(--wzl-space-2)));\n}\n\n/* One gutter, so a child's mark sits under its parent's label. */\n._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-gutter));\n}\n\n/* Each level stands a mark's width in from the one above, half of it past the bracket. */\n._tree_d5c8c7[data-guides] ._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-mark));\n}\n\n/* A branch's mark is the start of its name, so a row with no mark starts its name where a branch beside it starts its mark. */\n._tree_d5c8c7[data-guides] ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-leaf-indent, 0);\n}\n\n/* `--wzl-tree-root-leaf-indent`: the same for a leaf no branch holds, for a host whose own text stands at another edge. */\n._tree_d5c8c7[data-guides] > ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-root-leaf-indent, var(--wzl-tree-leaf-indent, 0));\n}\n\n/* A bracket down the side of an open branch's rows: straight from under the middle of the branch's mark, and curving\n in at its foot. The foot's edge is there, unseen, so the curve keeps its weight to the turn's middle and stops.\n A list that is not a tree takes it too, placed by `--guide-at` and with its top dropped by `--guide-from`. */\n._guide_d5c8c7 { position: relative; }\n\n._guide_d5c8c7::before {\n content: '';\n position: absolute;\n inset-block: var(--guide-from, 0) var(--wzl-space-1);\n inset-inline-start: var(--guide-at, calc(var(--tree-mark) / 2));\n inline-size: 10px;\n border-inline-start: 1px solid var(--wzl-tree-guide, var(--wzl-fg-subtle));\n border-block-end: 1px solid transparent;\n border-end-start-radius: 10px;\n pointer-events: none;\n}\n\n._item_d5c8c7 {\n outline: none;\n}\n\n._row_d5c8c7 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block: 0;\n padding-inline: var(--tree-gutter) var(--wzl-space-2);\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n white-space: nowrap;\n overflow: hidden;\n}\n\n._row_d5c8c7:hover {\n background: var(--wzl-surface-hover);\n}\n\n._item_d5c8c7:focus-visible > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._item_d5c8c7[aria-selected='true'] > ._row_d5c8c7 {\n background: var(--wzl-tree-selected, var(--wzl-border));\n}\n\n._row_d5c8c7[href] {\n text-decoration: none;\n cursor: pointer;\n}\n\n._item_d5c8c7[aria-current='true'] > ._row_d5c8c7 {\n color: var(--wzl-tree-current, var(--wzl-accent-fg));\n}\n\n._item_d5c8c7[data-muted] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n}\n\n._item_d5c8c7[aria-disabled='true'] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n cursor: not-allowed;\n}\n\n/* The mark hangs in the row's gutter, so every label at one level starts at the same x\n whether or not its row is a branch. */\n._twisty_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 13px;\n margin-inline-start: calc(-1 * var(--tree-gutter));\n align-self: stretch;\n color: var(--wzl-fg-muted);\n}\n\n._row_d5c8c7:hover > ._twisty_d5c8c7 {\n color: var(--wzl-fg);\n}\n\n._leading_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n}\n\n/* `--wzl-tree-leading-size`: every leading glyph sits in a square of that side, whatever the host handed in. One\n of another shape is scaled to fit inside it, and centered. Unset, a glyph keeps its own size. */\n._leading_d5c8c7 {\n justify-content: center;\n inline-size: var(--wzl-tree-leading-size, auto);\n block-size: var(--wzl-tree-leading-size, auto);\n}\n\n._leading_d5c8c7 > :is(svg, img) {\n max-inline-size: 100%;\n max-block-size: 100%;\n}\n\n._leading_d5c8c7[data-tree-twisty] {\n cursor: pointer;\n width: var(--wzl-tree-leading-size, var(--wzl-tree-fold-size, 16px));\n /* The row's gap is narrower than the gutter leaves after the glyph: the label starts where the gutter ends. */\n margin-inline: calc(-1 * var(--tree-gutter)) calc(var(--wzl-space-3) - var(--wzl-space-2));\n}\n\n._label_d5c8c7 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n._trailing_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}\n\n._empty_d5c8c7 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}\n\n/* Drop marks: a line on the edge the drop lands at, or a ring on the branch it lands in. An 'after' mark sits on\n the li, which encloses the subtree, so it lands under the last descendant at the row's own indent. */\n._item_d5c8c7[data-drop] { position: relative; }\n\n._item_d5c8c7[data-drop='before']::before,\n._item_d5c8c7[data-drop='after']::after {\n content: '';\n position: absolute;\n inset-inline: var(--tree-gutter) 0;\n height: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n pointer-events: none;\n}\n._item_d5c8c7[data-drop='before']::before { top: -1px; }\n._item_d5c8c7[data-drop='after']::after { bottom: -1px; }\n\n._item_d5c8c7[data-drop='into'] > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n._item_d5c8c7[data-dragging] > ._row_d5c8c7 { opacity: 0.5; }\n\n._tree_d5c8c7[data-drag-effect='copy'] ._row_d5c8c7 { cursor: copy; }\n._tree_d5c8c7[data-drag-effect='link'] ._row_d5c8c7 { cursor: alias; }\n\n._ghostRow_d5c8c7 {\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n display: flex;\n align-items: center;\n padding-inline: var(--wzl-space-2);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n}\n\n._ghostEffect_d5c8c7 { flex: none; margin-inline-end: var(--wzl-space-1); color: var(--wzl-accent-fg); }\n/* Each kind names its color in `--_kind`, which the badge takes as its tint. The six code tokens\n are tuned per mode; the swatches are not, so they lean toward the foreground to stay\n legible on either ground. */\n._number_d8cf37 { --_kind: var(--wzl-code-number); }\n._boolean_d8cf37 { --_kind: var(--wzl-code-constant); }\n._string_d8cf37 { --_kind: var(--wzl-code-string); }\n._enum_d8cf37 { --_kind: var(--wzl-code-keyword); }\n._object_d8cf37 { --_kind: var(--wzl-code-property); }\n._field_d8cf37 { --_kind: var(--wzl-code-name); }\n._color_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-fuchsia) 55%, var(--wzl-fg)); }\n._paint_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-citron) 55%, var(--wzl-fg)); }\n._list_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-teal) 55%, var(--wzl-fg)); }\n._map_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-sky) 55%, var(--wzl-fg)); }\n._union_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-violet) 55%, var(--wzl-fg)); }\n._action_d8cf37 { --_kind: color-mix(in oklab, var(--wzl-swatch-rose) 55%, var(--wzl-fg)); }\n/* The panel's own look sits in :where(), so a consumer's class on any part\n outranks it whatever order the stylesheets load in. */\n\n:where(._panel_ef43e1) {\n /* Vertical only: the body spans the panel's full width, and the title row's\n own controls carry the horizontal inset. */\n padding: var(--wzl-space-4) 0;\n background: var(--_s-fill);\n color: var(--wzl-fg);\n}\n\n:where(._titleRow_ef43e1) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--wzl-space-2);\n padding: 0;\n}\n\n/* The title's inset and type, shared by the static title and the collapse\n button so the two line up. */\n:where(._titleBox_ef43e1) {\n flex: 1 1 auto;\n padding: var(--wzl-space-2) var(--wzl-space-4);\n font-family: var(--_s-title-font);\n font-size: var(--_s-title-size);\n font-weight: var(--_s-title-weight);\n text-transform: var(--_s-title-case);\n letter-spacing: var(--_s-title-tracking);\n color: var(--_s-title-color);\n}\n\n:where(._title_ef43e1) {\n min-width: 0;\n}\n\n:where(._titleButton_ef43e1) {\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n background: transparent;\n border: 0;\n line-height: inherit;\n cursor: pointer;\n text-align: start;\n}\n:where(._titleButton_ef43e1:hover) {\n color: var(--wzl-fg);\n}\n\n:where(._actions_ef43e1),\n:where(._trailing_ef43e1) {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n margin-inline-end: var(--wzl-space-2);\n}\n\n:where(._hideButton_ef43e1) {\n margin-inline-end: var(--wzl-space-2);\n}\n\n:where(._panel_ef43e1._collapsed_ef43e1) {\n padding-bottom: var(--wzl-space-2);\n}\n\n:where(._body_ef43e1) {\n padding: 0;\n}\n\n:where(._panel_ef43e1[data-fill]) {\n display: flex;\n flex: 1 1 0;\n flex-direction: column;\n min-height: 0;\n}\n\n:where(._panel_ef43e1[data-fill] > ._body_ef43e1) {\n display: flex;\n flex: 1 1 0;\n flex-direction: column;\n min-height: 0;\n}\n\n/* BEGIN GENERATED stance rules: sidebar-panel — `npm run gen:stances`, do not edit. */\n\n:where(._panel_ef43e1) {\n --wzl-tint: initial;\n}\n\n:where(._panel_ef43e1) {\n --_s-surface: var(--wzl-surface);\n --_s-tint-mix: var(--wzl-panel-tint-mix);\n --_s-tint: var(--wzl-tint, var(--_s-surface));\n --_s-accent: var(--wzl-tint);\n --_s-title-font: var(--wzl-font-ui);\n --_s-title-weight: var(--wzl-font-weight-bold);\n --_s-title-size: var(--wzl-font-size-sm);\n --_s-title-case: uppercase;\n --_s-title-tracking: 0.05em;\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n:where(._panel_ef43e1)[data-stance='clarify'] {\n --_s-surface: var(--wzl-stance-clarify-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-clarify-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-clarify-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-clarify-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-clarify-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-clarify-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-clarify-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-clarify-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-clarify-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-clarify-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='aside'] {\n --_s-surface: var(--wzl-stance-aside-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-aside-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-aside-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-aside-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-aside-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-aside-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-aside-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-aside-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-aside-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-aside-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='advanced'] {\n --_s-surface: var(--wzl-stance-advanced-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-advanced-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-advanced-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-advanced-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-advanced-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-advanced-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-advanced-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-advanced-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-advanced-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-advanced-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='debug'] {\n --_s-surface: var(--wzl-stance-debug-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-debug-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-debug-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-debug-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-debug-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-debug-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-debug-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-debug-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-debug-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-debug-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='preview'] {\n --_s-surface: var(--wzl-stance-preview-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-preview-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-preview-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-preview-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-preview-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-preview-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-preview-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-preview-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-preview-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-preview-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='confirm'] {\n --_s-surface: var(--wzl-stance-confirm-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-confirm-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-confirm-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-confirm-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-confirm-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-confirm-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-confirm-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-confirm-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-confirm-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-confirm-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-stance='cancel'] {\n --_s-surface: var(--wzl-stance-cancel-surface, var(--wzl-surface));\n --_s-tint-mix: var(--wzl-stance-cancel-tint-mix, var(--wzl-panel-tint-mix));\n --_s-tint: var(--wzl-tint, var(--wzl-stance-cancel-tint, var(--_s-surface)));\n --_s-accent: var(--wzl-tint, var(--wzl-stance-cancel-accent, var(--wzl-tint)));\n --_s-title-font: var(--wzl-stance-cancel-title-font, var(--wzl-font-ui));\n --_s-title-weight: var(--wzl-stance-cancel-title-weight, var(--wzl-font-weight-bold));\n --_s-title-size: var(--wzl-stance-cancel-title-size, var(--wzl-font-size-sm));\n --_s-title-case: var(--wzl-stance-cancel-title-case, uppercase);\n --_s-title-tracking: var(--wzl-stance-cancel-title-tracking, 0.05em);\n --_s-title-color: var(--wzl-stance-cancel-title-color, var(--wzl-fg-muted));\n}\n\n:where(._panel_ef43e1)[data-emphasis='high'] {\n --_s-title-color: var(--wzl-accent-fg);\n}\n\n:where(._panel_ef43e1)[data-emphasis='low'] {\n --_s-title-color: var(--wzl-fg-muted);\n}\n\n:where(._panel_ef43e1)[data-grade] {\n --_s-tint: var(--wzl-tint, var(--wzl-grade));\n --_s-title-color: var(--wzl-grade);\n --_s-accent: var(--wzl-tint, var(--wzl-grade));\n}\n\n:where(._panel_ef43e1) {\n --_s-fill: var(--_s-surface);\n}\n\n:where(._panel_ef43e1)[data-tint],\n:where(._panel_ef43e1)[data-grade],\n:where(._panel_ef43e1)[data-stance] {\n --_s-fill: color-mix(in oklab, var(--_s-tint) var(--_s-tint-mix), var(--_s-surface));\n}\n\n:where(._panel_ef43e1)[data-tint] {\n --wzl-accent: var(--_s-accent);\n --wzl-accent-base: var(--_s-accent);\n --wzl-accent-strong: color-mix(in oklab, var(--_s-accent) 70%, var(--wzl-fg));\n --wzl-accent-soft: color-mix(in oklab, var(--_s-accent) 45%, var(--wzl-surface));\n --wzl-accent-hover: var(--wzl-accent-strong);\n --wzl-accent-fg: var(--wzl-accent-strong);\n --wzl-focus-ring: var(--wzl-accent-strong);\n}\n\n/* END GENERATED stance rules: sidebar-panel */\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n._options_b9a2b2 { display: grid; gap: var(--wzl-space-2); }\n._pairRow_b9a2b2 { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }\n._unitRow_b9a2b2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }\n._acceptRow_b9a2b2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }\n._optionHeads_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n/* Holds the remove button's column open, so the heads sit over the fields. */\n._optionHeadSpacer_b9a2b2 { inline-size: var(--wzl-icon-button-size); }\n/* The stored value is code and the label is prose; the faces say which is which on every row. */\n/* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */\n._symbol_b9a2b2 input { font-family: var(--wzl-font-mono); }\n/* Derived from the keys above it, so it is text to read and copy, not a field. */\n._pathText_b9a2b2 { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }\n._number_b9a2b2 { }\n._number_b9a2b2 input { text-align: right; }\n/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */\n._editor_b9a2b2 {\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n display: grid;\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);\n grid-template-rows: auto minmax(0, 1fr) auto auto;\n gap: var(--wzl-space-3) var(--wzl-space-2);\n min-height: 0;\n height: 100%;\n}\n/* Across the top of every pane: what acts on the schema as a whole. */\n._bar_b9a2b2 {\n grid-column: 1 / -1;\n display: grid;\n /* Equal sides, so the tools sit at the bar's middle whatever either side holds. */\n grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._barLead_b9a2b2,\n._barTools_b9a2b2,\n._barEnd_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }\n._barEnd_b9a2b2 { justify-content: flex-end; }\n._treeFilter_b9a2b2 { margin-block-end: var(--wzl-space-2); }\n._middle_b9a2b2 { display: grid; align-content: start; min-height: 0; overflow: auto; }\n._pane_b9a2b2 { min-height: 0; overflow: auto; }\n/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */\n._structurePane_b9a2b2 { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }\n/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a\n group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */\n._structurePane_b9a2b2 { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }\n._structurePane_b9a2b2 ._paneTitle_b9a2b2 { padding-inline-start: var(--structure-text-inset); }\n/* Less the inset the tree gives what it draws when it has no rows. */\n._structurePane_b9a2b2 ._storedEmpty_b9a2b2 { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }\n/* Less the field's own 1px border. */\n._structurePane_b9a2b2 ._treeFilter_b9a2b2 { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }\n._structureHandle_b9a2b2 { grid-column: 2; grid-row: 2 / -1; }\n._listed_b9a2b2 {\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto\n minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));\n}\n/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */\n._aside_b9a2b2 { grid-column: 7; grid-row: 2 / -1; }\n._asideHandle_b9a2b2 { grid-column: 6; grid-row: 2 / -1; }\n/* The tree reads at the size of the fields in the pane beside it. */\n._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2 { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }\n._treeArea_b9a2b2, ._listBody_b9a2b2 { overflow: auto; }\n/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */\n._listPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }\n._listBody_b9a2b2 { flex: 1; min-height: 0; }\n._treeArea_b9a2b2 { flex: 1; }\n/* A setting starts its name where its group's name starts, past the group's glyph. */\n._treeArea_b9a2b2, ._settingsTree_b9a2b2 { --wzl-tree-leaf-indent: var(--wzl-space-2); }\n/* A group's glyph folds it, and says it is open. */\n:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }\n/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */\n._storedArea_b9a2b2 { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }\n._storedArea_b9a2b2[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }\n._storedEmpty_b9a2b2 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._previewPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }\n/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */\n._previewStage_b9a2b2 {\n background: var(--wzl-workspace);\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: flex-start;\n justify-content: safe center;\n padding: 24px;\n overflow: auto;\n}\n/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */\n._previewStage_b9a2b2[data-held] { justify-content: flex-start; padding: 0; }\n._previewStage_b9a2b2[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }\n/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */\n._previewDialog_b9a2b2 { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }\n/* A host's own drawing of the asset, at whatever size it takes. */\n._previewHosted_b9a2b2 { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }\n/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */\n._previewPanel_b9a2b2 {\n flex: none;\n inline-size: min(360px, 100%);\n max-block-size: 100%;\n overflow: auto;\n padding-inline: var(--wzl-space-4);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}\n/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */\n._previewBar_b9a2b2 { flex: none; zoom: var(--preview-zoom, 1); }\n._zoom_b9a2b2 { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }\n/* Sized for 400%, so the range beside it holds still as the figure changes. */\n._zoomReadout_b9a2b2 {\n flex: none;\n min-inline-size: 4ch;\n text-align: end;\n font-size: var(--wzl-font-size-sm);\n}\n._paneHeader_b9a2b2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding-block: var(--wzl-space-1);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._paneTitle_b9a2b2 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}\n._paneTools_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }\n._treeKey_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }\n/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */\n._treeLeaf_b9a2b2 { font-weight: var(--wzl-font-weight-normal); }\n/* A setting the layout shown already points at. */\n._pointed_b9a2b2 { color: var(--wzl-fg-muted); }\n._addForm_b9a2b2 { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }\n._addActions_b9a2b2 { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }\n._notice_b9a2b2:not(:empty) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-inline-start: 3px solid var(--wzl-warning);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-sm);\n /* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */\n margin-block-end: var(--wzl-space-2);\n}\n/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */\n._shelfHandle_b9a2b2 { grid-column: 3 / 6; grid-row: 3; }\n._shelf_b9a2b2 {\n grid-column: 3 / 6;\n grid-row: 4;\n block-size: var(--shelf-h);\n display: flex;\n gap: var(--wzl-space-3);\n min-height: 0;\n}\n/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */\n._shelfSlot_b9a2b2 { display: contents; }\n/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */\n._shelfPane_b9a2b2 { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }\n._export_b9a2b2 { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }\n._export_b9a2b2 ._exportBody_b9a2b2 { flex: 1; min-height: 0; }\n._exportHead_b9a2b2 {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}\n._exportHead_b9a2b2 ._paneTools_b9a2b2 { align-self: center; }\n/* The head draws the rule under the tabs, so it runs under the tools too. */\n._export_b9a2b2 ._exportTabs_b9a2b2 { border-bottom: none; }\n._export_b9a2b2 ._exportTab_b9a2b2 { padding: var(--wzl-space-1) var(--wzl-space-3); }\n/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */\n._export_b9a2b2 ._exportPane_b9a2b2 { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }\n._export_b9a2b2 ._exportPane_b9a2b2[inert] { display: none; }\n._code_b9a2b2 {\n flex: 1;\n min-height: 0;\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n}\n._changeList_b9a2b2 { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }\n._changed_b9a2b2 { color: var(--wzl-accent-fg); }\n/* Tool buttons dragged into the tree or the preview to add a node there. */\n._palette_b9a2b2 {\n display: flex;\n gap: var(--wzl-space-2);\n inline-size: fit-content;\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n user-select: none;\n}\n._paletteRule_b9a2b2 { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }\n._paletteTool_b9a2b2 { display: flex; touch-action: none; }\n._palette_b9a2b2 ._paletteTool_b9a2b2 > button { cursor: grab; }\n/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */\n._ghostNode_b9a2b2 { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }\n._ghostPage_b9a2b2 {\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}\n/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */\n._treeCount_b9a2b2 { margin-inline-end: var(--wzl-space-1); }\n/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */\n:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) ._treeCount_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }\n._draftNote_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n\n/* How many nodes a drag carries, on the corner of the one it draws. */\n._ghostCount_b9a2b2 {\n position: absolute;\n top: -6px;\n right: -6px;\n}\n\n._autoValue_b9a2b2 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}\n\n._autoValueControl_b9a2b2 {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */\n._lockedForm_b9a2b2 { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }\n/* A node's name and description beside its glyph, which stands as tall as the two rows. */\n._identity_b9a2b2 { position: relative; --identity-icon: 48px; }\n._identity_b9a2b2 :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }\n._identityIcon_b9a2b2 {\n position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);\n display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));\n color: var(--wzl-fg);\n}\n._identityIcon_b9a2b2 > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }\n\n._autoValueControl_b9a2b2:disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* Ported from WeaselDraw's wd-prefs-* rules (apps/draw/src/app.css),\n * generalized onto theme tokens. Column width is overridable via\n * --wzl-prefs-column-width at any ancestor scope. */._columns_354a55 {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--wzl-space-6);\n overflow-y: auto;\n padding-right: var(--wzl-space-2);\n}._column_354a55 {\n flex: 0 0 var(--wzl-prefs-column-width, 300px);\n width: var(--wzl-prefs-column-width, 300px);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n}/* The columns layout's groups are wells (`FORM_FRAMES`), set out here. Each frame states the whole set, so a\n well nested in another takes none of its spacing. */._panel_354a55,\n._subpanel_354a55 {\n --wzl-well-radius: var(--wzl-radius-sm);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n}._panel_354a55 {\n --wzl-well-gap: var(--wzl-space-4);\n --wzl-well-pad: var(--wzl-space-5);\n --wzl-well-head-pad: var(--wzl-space-2);\n}._subpanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: var(--wzl-space-1);\n --wzl-well-rule: var(--subpanel-rule);\n --wzl-well-inset-start: var(--subpanel-inset-start);\n --wzl-well-inset-end: var(--subpanel-inset-end);\n margin-top: var(--wzl-space-3);\n}/* The list layout's loose rows take the inset of the subpanels they sit over, so every label and control shares an edge. */._columnsLayout_354a55 > ._rows_354a55:has(> ._subpanel_354a55) > ._rowSlot_354a55 {\n padding-inline: calc(var(--subpanel-rule) + var(--subpanel-inset-start)) var(--subpanel-inset-end);\n}._rows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n}/* A leaf's row is a PropertyRow, inline; this only sets the form's type. */._row_354a55 {\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n cursor: default;\n}/* What a leaf's row sits in, so a selected one can be marked and found. */._rowSlot_354a55 {\n border-radius: var(--wzl-radius-sm);\n}/* A drag over the form: what it holds, drawn where it would land, and the rail entry it would go into. */[data-drop-placeholder] {\n outline: 1px dashed var(--wzl-accent);\n outline-offset: 3px;\n border-radius: var(--wzl-radius-sm);\n background: color-mix(in oklab, var(--wzl-accent) 10%, transparent);\n pointer-events: none;\n}[data-drop-placeholder] > * {\n opacity: 0.6;\n}/* Rail entries sit a pixel apart, so the outline is drawn inside the entry. */._railItem_354a55[data-drop-placeholder] {\n outline-offset: -1px;\n}._railItem_354a55[data-drop='into'] {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}/* The browser would otherwise scroll a pane to hold its rows still when a placeholder lands above them. */[data-dropping] ._pane_354a55 {\n overflow-anchor: none;\n}/* `kind: 'label'`: text among the rows. *//* Control slot — a share of the row rather than a fixed width, so a wide pane\n * widens the field instead of the gap before it. A long label still pushes it\n * narrower, down to the floor. Kit form controls are flex columns that fill it. */._rowControl_354a55 {\n flex: 0 1 60%;\n min-width: 110px;\n display: flex;\n align-items: center;\n /* A control narrower than the slot sits at the row's far edge, so the values line up down a pane;\n a select fills the slot, so its value is set to that edge inside it. */\n justify-content: flex-end;\n --wzl-select-align: end;\n}._unrenderable_354a55 {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}/* PrefsDialog header row: title text + optional headerExtra chrome. */._titleRow_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-6);\n flex: 1;\n min-width: 0;\n}._titleRow_354a55 > span:first-child {\n flex: 1;\n min-width: 0;\n}/* An object leaf renders its fields as its own rows. */._objectLeaf_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n inline-size: 100%;\n}/* Outranks the PropertyRow it styles, which is a flex row. */._objectLeaf_354a55 ._objectRow_354a55 {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n gap: var(--wzl-space-4);\n align-items: center;\n}/* The slot of a control whose renderer asked for the row's whole width (`wide`): the control is stretched to it,\n where a stacked built-in keeps the width it sets itself. */._rowControlFilled_354a55 > * {\n flex: 1 1 auto;\n min-inline-size: 0;\n}/* A control slot's own minimum is wider than this column gets in a narrow pane, and would run past the row. */._objectLeaf_354a55 ._objectRow_354a55 > ._rowControl_354a55 {\n min-width: 0;\n}._objectGroup_354a55 {\n margin: var(--wzl-space-2) 0 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n opacity: 0.55;\n}/* ---------------------------------------------------------------------------\n * Rail layout. The rail is the only chrome: no panels, because the surface\n * the form sits on already has a border and a card inside it restates one.\n * Width is overridable via --wzl-prefs-rail-width at any ancestor scope.\n * ------------------------------------------------------------------------ */._columnsLayout_354a55 {\n --subpanel-rule: 2px;\n --subpanel-inset-start: var(--wzl-space-5);\n --subpanel-inset-end: var(--wzl-space-4);\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-4);\n min-height: 0;\n}._railLayout_354a55 {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n min-height: 0;\n block-size: 100%;\n /* The pane scrolls, not the layout: a rail that scrolled away with the\n settings would be useless exactly when it is needed. */\n overflow: hidden;\n}/* What `PrefsDialog` hands `Dialog` for its body in rail layout: the pane\n inside does the scrolling and the rail meets the dialog's own edges. */._railBody_354a55 {\n padding: 0;\n overflow: hidden;\n /* The modal sets only `max-height`, so the layout's `block-size: 100%`\n resolves against nothing and the pane grows to fit every row. As a flex\n item the layout takes the body's flexed height, which the cap does bound. */\n display: flex;\n flex-direction: column;\n /* A settled height: without one the dialog grows and shrinks as the reader\n moves between a two-row group and a twenty-row one, and the rail entry\n they are aiming at moves while they aim at it. */\n min-block-size: min(60vh, 420px);\n}/* Same reason across: a filter that narrows the schema to two rows should not pull the dialog's edges in\n around them. Set on the modal, whose percentages read the overlay: the room the box has, which in a\n contained portal is not the window. */:where(._railModal_354a55) {\n min-inline-size: min(800px, 100% - 32px);\n}._railBody_354a55 > ._railLayout_354a55 {\n flex: 1 1 auto;\n}._rail_354a55 {\n /* Never more than two fifths of the box: at its full width in a narrow\n container the rail takes the space the settings need and leaves a pane\n too thin to hold a row. The clamp belongs on the flex basis — an\n `inline-size` here is simply ignored, which is what made a first attempt\n at this look right and do nothing. The basis is the content box, so the 40% gives back the padding and border. */\n flex: 0 1 min(var(--wzl-prefs-rail-width, 176px), calc(40% - var(--wzl-space-2) - var(--wzl-space-8) - 1px));\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n /* The far side clears a scrollbar laid over the box, which takes no room of its own; one that takes room clears itself. */\n padding: var(--wzl-space-3) var(--wzl-space-8) var(--wzl-space-3) var(--wzl-space-2);\n background: var(--wzl-surface-sunken);\n border-right: 1px solid var(--wzl-border);\n overflow-y: auto;\n /* The rail is itself sunken, so a field taking the default surface would be\n the same color as the rail behind it. */\n --wzl-input-surface: var(--wzl-surface);\n}._railList_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n}._railItem_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border: none;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: var(--wzl-fg);\n font: inherit;\n /* The size of a control's text in the pane beside it. */\n font-size: var(--wzl-font-size);\n text-align: start;\n cursor: default;\n}._railItem_354a55:hover {\n background: var(--wzl-surface-raised);\n}._railItem_354a55:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}/* The entries nested under one, a step in from it. */._railNest_354a55 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n padding-left: calc(var(--wzl-space-7) - var(--wzl-space-3));\n}/* A foldable rail: each entry follows its fold mark, or a blank as wide where it has\n nothing to fold, so every name at one depth starts at one edge. */._railRow_354a55 {\n display: flex;\n align-items: center;\n}._railRow_354a55 > ._railItem_354a55 {\n flex: 1 1 auto;\n min-width: 0;\n}._railFold_354a55 {\n flex: 0 0 var(--wzl-control-h-sm);\n}/* The open page. */._railItem_354a55[data-rail-mark='current'] {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n}/* Choosing it opens the first entry under it: it has no page of its own to show. */._railPasses_354a55 ._railName_354a55 {\n color: var(--wzl-fg-muted);\n}._railName_354a55 {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}/* Last in the row: a count that changes as the reader types would otherwise\n shove the name on every keystroke. */._railCount_354a55 {\n margin-left: auto;\n font-size: var(--wzl-font-size-xs);\n opacity: 0.6;\n}._pane_354a55 {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n /* A placeholder's line can be the one that makes the pane scroll, and a scrollbar arriving would move every row. */\n scrollbar-gutter: stable;\n /* The gutter is no room where the scrollbar is laid over the box, so the far side clears it itself. */\n padding: var(--wzl-space-5) var(--wzl-space-8) var(--wzl-space-5) var(--wzl-space-6);\n}/* A scrollbar that takes room of its own (`markScrollbar`) is cleared by its gutter, so the far side pads as the\n near side does. */._rail_354a55[data-scrollbar] { padding-right: var(--wzl-space-2); }._pane_354a55[data-scrollbar] { padding-right: var(--wzl-space-6); }/* Rows that follow a group on the page stand off it as a group does. */._pane_354a55 > :not(._paneHead_354a55) + ._rows_354a55 {\n margin-top: var(--wzl-space-4);\n}._paneHead_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n margin-bottom: var(--wzl-space-5);\n}._paneTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xl);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}._paneDesc_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n line-height: 1.35;\n}._paneSection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n margin-top: var(--wzl-space-6);\n}/* `as: 'fragment'`: a group with nothing of its own to draw. Its rows are laid out by whatever holds the group. */._fragment_354a55 {\n display: contents;\n}/* `as: 'panel'`: the one group in a pane that draws its own box, a well (`FORM_FRAMES.box`) at its defaults. */._panePanel_354a55 {\n --wzl-well-gap: var(--wzl-space-3);\n --wzl-well-pad: var(--wzl-space-4);\n --wzl-well-head-pad: 0;\n --wzl-well-radius: var(--wzl-radius-md);\n --wzl-well-title-size: var(--wzl-font-size-sm);\n --wzl-well-title-opacity: 1;\n margin-top: var(--wzl-space-4);\n}/* An object's panel titles itself as the object's other groups do. */._objectPanel_354a55 {\n --wzl-well-title-size: var(--wzl-font-size-xs);\n --wzl-well-title-opacity: 0.55;\n}/* `as: 'tab'`: a `Tabs` strip, set off from the rows above it. */._paneTabs_354a55 {\n margin-top: var(--wzl-space-4);\n}._paneSubsection_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n margin-top: var(--wzl-space-4);\n padding-left: var(--wzl-space-4);\n border-left: 2px solid var(--wzl-border);\n}._sectionTitle_354a55 {\n position: sticky;\n /* A sticky offset is measured from inside the pane's padding, so this takes the pane's top padding back\n off and the heading rests against the pane's edge, with no strip above it for rows to show in. */\n top: calc(-1 * var(--wzl-space-5));\n z-index: 1;\n margin: 0;\n padding: var(--wzl-space-3) 0 var(--wzl-space-2);\n background: var(--wzl-surface);\n border-bottom: 1px solid var(--wzl-border);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* What is scrolled to inside a section stops below the heading stuck over it, at the height `stuckHeadingRef`\n measures; until it has, the heading's padding, border, and one line. */._paneSection_354a55 :where([data-pref-path]) {\n scroll-margin-top: var(\n --pref-stuck-height,\n calc(var(--wzl-space-3) + var(--wzl-space-2) + 1px + var(--wzl-font-size-sm) * var(--wzl-leading))\n );\n}._subsectionTitle_354a55 {\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-bold);\n color: var(--wzl-fg-subtle);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* In the rail layout a row is a grid, so the control track grows with the\n pane instead of holding at the columns layout's fixed slot. A stacked row\n keeps PropertyRow's own layout: its label over a control the row's width. */._railLayout_354a55 ._row_354a55:where(:not(._rowStacked_354a55)) {\n display: grid;\n /* The control track is capped rather than taking the rest: a number field\n as wide as the pane reads as a text area, and every row's control starts\n at the same x either way. */\n grid-template-columns:\n minmax(min(140px, 40% - var(--wzl-space-3)), var(--wzl-params-label-width, 240px))\n minmax(min(180px, 60%), 260px);\n}/* `rowsAcross={2}`, in the rail and list layouts: two rows side by side. A leaf that spans both keeps to them, its label in the first column\n and its control in the second; a stacked one has the whole line under its label already. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, [data-wide] > ._row_354a55:not(._rowStacked_354a55)) {\n --_across-gap: var(--wzl-prefs-across-gap, 28px);\n display: grid;\n /* Two columns, each at least half the line, so never three; and one once half the line is too narrow for a row. */\n grid-template-columns: repeat(auto-fit, minmax(max(120px, (100% - var(--_across-gap)) / 2), 1fr));\n /* Wide between the columns: a row's control ends where the next row's label begins. */\n gap: var(--wzl-space-3) var(--_across-gap);\n align-items: start;\n}/* The spanning leaf's label reads on the line of its control's first row. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] [data-wide] > ._row_354a55:not(._rowStacked_354a55) {\n align-items: baseline;\n}/* The label sits beside its control while both fit, and the control drops\n under it when they do not: a label never narrows below its own text. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wzl-space-1) var(--wzl-space-3);\n}/* One share of the row for every label short enough to take it, so a\n column's controls start at one x. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._row_354a55 > :first-child {\n flex: 1 0 40%;\n min-inline-size: max-content;\n max-inline-size: 100%;\n}:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55 {\n /* No `min-inline-size: 0`: a control wider than what is left of the line\n has to wrap under the label rather than run past the column. */\n flex: 1 1 var(--wzl-prefs-control-min, 80px);\n max-inline-size: 100%;\n}/* A checkbox needs only its own width beside the label, not a field's. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] ._rowControl_354a55:has(> input[type='checkbox']:only-child) {\n flex-basis: auto;\n min-inline-size: 0;\n}/* Anything in the grid that is not one leaf's row is a group, and runs the full width. A fragment's children are\n in the grid too, though not children of it. */:is(._railLayout_354a55, ._columnsLayout_354a55)[data-across='2'] :is(._rows_354a55, ._fragment_354a55) > :is(:not(._rowSlot_354a55), [data-wide]) {\n grid-column: 1 / -1;\n}._railLayout_354a55 ._rowControl_354a55 {\n flex: 1 1 auto;\n}._filter_354a55 {\n padding: 0 var(--wzl-space-1) var(--wzl-space-2);\n}._noMatches_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-3);\n padding: var(--wzl-space-6) 0;\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}._noMatches_354a55 p {\n margin: 0;\n}._clearFilter_354a55 {\n padding: var(--wzl-space-1) var(--wzl-space-3);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n font: inherit;\n font-size: var(--wzl-font-size-sm);\n}/* A root drawn as a bar: the bar at its own size, with the room around it the form's to take a drop in. */._barRoot_354a55 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--wzl-space-2);\n}/* A heading holding the control of a leaf marked `heading`: its name, then the control at the far end. */._headed_354a55 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}/* The control is drawn as a row's is, whatever the heading does to its own words. It is no label, so it turns\n the label recipe off for itself and what it holds, and reads it back in place of the heading's inherited case. */._headingControl_354a55 {\n --wzl-params-label-case: none;\n --wzl-params-label-tracking: normal;\n display: inline-flex;\n align-items: center;\n margin-inline-start: auto;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-normal);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n text-transform: var(--wzl-params-label-case, uppercase);\n}/* An `actions` leaf's rows, one under another. */._actionRows_354a55 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n}/* One height and one inset for every sidebar list. A panel stacking two of\n them has to have their rows line up, which is what a private copy of this\n file per list stopped happening. */._list_0838d3 {\n display: flex;\n flex-direction: column;\n gap: 1px;\n line-height: var(--wzl-leading-snug);\n user-select: none;\n -webkit-user-select: none;\n position: relative;\n width: 100%;\n}._row_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: 0 var(--wzl-space-4);\n height: var(--wzl-control-h);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n background: transparent;\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n overflow: hidden;\n white-space: nowrap;\n}._row_0838d3:hover {\n background: var(--wzl-surface-hover);\n}._row_0838d3:focus-visible,\n._row_0838d3:has(> ._cell_0838d3:focus-visible) {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}/* A grid row's label cell takes the row's focus; the ring is drawn on the row\n so it looks the same as a listbox option's. */._cell_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n flex: 1 1 auto;\n min-width: 0;\n align-self: stretch;\n outline: none;\n}._trailing_0838d3 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n flex: none;\n}._label_0838d3 {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}._selected_0838d3,\n._selected_0838d3:hover {\n background: var(--wzl-border);\n color: var(--wzl-fg);\n}/* Drag feedback. The seam is an outer shadow of the row beside it: it needs no\n measured offset, adds no element for a drag to count as a row, and escapes\n the row's own `overflow: hidden`. */._row_0838d3[data-drop='before'] { box-shadow: 0 -2px 0 0 var(--wzl-accent); }._row_0838d3[data-drop='after'] { box-shadow: 0 2px 0 0 var(--wzl-accent); }._row_0838d3[data-dragging] { opacity: 0.4; }/* Present but not in effect. */._muted_0838d3 {\n color: var(--wzl-fg-subtle);\n}._empty_0838d3 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}._options_b9a2b2 { display: grid; gap: var(--wzl-space-2); }._pairRow_b9a2b2 { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }._unitRow_b9a2b2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }._acceptRow_b9a2b2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }._optionHeads_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* Holds the remove button's column open, so the heads sit over the fields. */._optionHeadSpacer_b9a2b2 { inline-size: var(--wzl-icon-button-size); }/* The stored value is code and the label is prose; the faces say which is which on every row. *//* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */._symbol_b9a2b2 input { font-family: var(--wzl-font-mono); }/* Derived from the keys above it, so it is text to read and copy, not a field. */._pathText_b9a2b2 { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }._number_b9a2b2 { }._number_b9a2b2 input { text-align: right; }/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */._editor_b9a2b2 {\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n display: grid;\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);\n grid-template-rows: auto minmax(0, 1fr) auto auto;\n gap: var(--wzl-space-3) var(--wzl-space-2);\n min-height: 0;\n height: 100%;\n}/* Across the top of every pane: what acts on the schema as a whole. */._bar_b9a2b2 {\n grid-column: 1 / -1;\n display: grid;\n /* Equal sides, so the tools sit at the bar's middle whatever either side holds. */\n grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._barLead_b9a2b2,\n._barTools_b9a2b2,\n._barEnd_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._barEnd_b9a2b2 { justify-content: flex-end; }._treeFilter_b9a2b2 { margin-block-end: var(--wzl-space-2); }._middle_b9a2b2 { display: grid; align-content: start; min-height: 0; overflow: auto; }._pane_b9a2b2 { min-height: 0; overflow: auto; }/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */._structurePane_b9a2b2 { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a\n group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */._structurePane_b9a2b2 { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }._structurePane_b9a2b2 ._paneTitle_b9a2b2 { padding-inline-start: var(--structure-text-inset); }/* Less the inset the tree gives what it draws when it has no rows. */._structurePane_b9a2b2 ._storedEmpty_b9a2b2 { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }/* Less the field's own 1px border. */._structurePane_b9a2b2 ._treeFilter_b9a2b2 { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }._structureHandle_b9a2b2 { grid-column: 2; grid-row: 2 / -1; }._listed_b9a2b2 {\n grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto\n minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));\n}/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */._aside_b9a2b2 { grid-column: 7; grid-row: 2 / -1; }._asideHandle_b9a2b2 { grid-column: 6; grid-row: 2 / -1; }/* The tree reads at the size of the fields in the pane beside it. */._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2 { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }._treeArea_b9a2b2, ._listBody_b9a2b2 { overflow: auto; }/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */._listPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }._listBody_b9a2b2 { flex: 1; min-height: 0; }._treeArea_b9a2b2 { flex: 1; }/* A setting starts its name where its group's name starts, past the group's glyph. */._treeArea_b9a2b2, ._settingsTree_b9a2b2 { --wzl-tree-leaf-indent: var(--wzl-space-2); }/* A group's glyph folds it, and says it is open. */:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */._storedArea_b9a2b2 { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }._storedArea_b9a2b2[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }._storedEmpty_b9a2b2 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }._previewPane_b9a2b2 { display: flex; flex-direction: column; overflow: hidden; }/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */._previewStage_b9a2b2 {\n background: var(--wzl-workspace);\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: flex-start;\n justify-content: safe center;\n padding: 24px;\n overflow: auto;\n}/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */._previewStage_b9a2b2[data-held] { justify-content: flex-start; padding: 0; }._previewStage_b9a2b2[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */._previewDialog_b9a2b2 { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }/* A host's own drawing of the asset, at whatever size it takes. */._previewHosted_b9a2b2 { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */._previewPanel_b9a2b2 {\n flex: none;\n inline-size: min(360px, 100%);\n max-block-size: 100%;\n overflow: auto;\n padding-inline: var(--wzl-space-4);\n border-radius: var(--wzl-radius-md);\n box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));\n}/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */._previewBar_b9a2b2 { flex: none; zoom: var(--preview-zoom, 1); }._zoom_b9a2b2 { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }/* Sized for 400%, so the range beside it holds still as the figure changes. */._zoomReadout_b9a2b2 {\n flex: none;\n min-inline-size: 4ch;\n text-align: end;\n font-size: var(--wzl-font-size-sm);\n}._paneHeader_b9a2b2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding-block: var(--wzl-space-1);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._paneTitle_b9a2b2 {\n margin: 0;\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-bold);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));\n text-transform: var(--wzl-params-label-case, uppercase);\n}._paneTools_b9a2b2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._treeKey_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */._treeLeaf_b9a2b2 { font-weight: var(--wzl-font-weight-normal); }/* A setting the layout shown already points at. */._pointed_b9a2b2 { color: var(--wzl-fg-muted); }._addForm_b9a2b2 { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }._addActions_b9a2b2 { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }._notice_b9a2b2:not(:empty) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border-inline-start: 3px solid var(--wzl-warning);\n border-radius: var(--wzl-radius-sm);\n font-size: var(--wzl-font-size-sm);\n /* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */\n margin-block-end: var(--wzl-space-2);\n}/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */._shelfHandle_b9a2b2 { grid-column: 3 / 6; grid-row: 3; }._shelf_b9a2b2 {\n grid-column: 3 / 6;\n grid-row: 4;\n block-size: var(--shelf-h);\n display: flex;\n gap: var(--wzl-space-3);\n min-height: 0;\n}/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */._shelfSlot_b9a2b2 { display: contents; }/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */._shelfPane_b9a2b2 { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }._export_b9a2b2 { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }._export_b9a2b2 ._exportBody_b9a2b2 { flex: 1; min-height: 0; }._exportHead_b9a2b2 {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: var(--wzl-space-2);\n margin-block-end: var(--wzl-space-2);\n border-block-end: 1px solid var(--wzl-border);\n}._exportHead_b9a2b2 ._paneTools_b9a2b2 { align-self: center; }/* The head draws the rule under the tabs, so it runs under the tools too. */._export_b9a2b2 ._exportTabs_b9a2b2 { border-bottom: none; }._export_b9a2b2 ._exportTab_b9a2b2 { padding: var(--wzl-space-1) var(--wzl-space-3); }/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */._export_b9a2b2 ._exportPane_b9a2b2 { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }._export_b9a2b2 ._exportPane_b9a2b2[inert] { display: none; }._code_b9a2b2 {\n flex: 1;\n min-height: 0;\n margin: 0;\n font-size: var(--wzl-font-size-xs);\n}._changeList_b9a2b2 { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }._changed_b9a2b2 { color: var(--wzl-accent-fg); }/* Tool buttons dragged into the tree or the preview to add a node there. */._palette_b9a2b2 {\n display: flex;\n gap: var(--wzl-space-2);\n inline-size: fit-content;\n padding: var(--wzl-space-1) var(--wzl-space-2);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-surface);\n user-select: none;\n}._paletteRule_b9a2b2 { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }._paletteTool_b9a2b2 { display: flex; touch-action: none; }._palette_b9a2b2 ._paletteTool_b9a2b2 > button { cursor: grab; }/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */._ghostNode_b9a2b2 { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }._ghostPage_b9a2b2 {\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-radius: var(--wzl-radius-sm);\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n}/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */._treeCount_b9a2b2 { margin-inline-end: var(--wzl-space-1); }/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */:is(._treeArea_b9a2b2, ._storedArea_b9a2b2, ._shelfPane_b9a2b2) ._treeCount_b9a2b2 { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }._draftNote_b9a2b2 { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* How many nodes a drag carries, on the corner of the one it draws. */._ghostCount_b9a2b2 {\n position: absolute;\n top: -6px;\n right: -6px;\n}._autoValue_b9a2b2 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-inline-size: 0;\n}._autoValueControl_b9a2b2 {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */._lockedForm_b9a2b2 { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }/* A node's name and description beside its glyph, which stands as tall as the two rows. */._identity_b9a2b2 { position: relative; --identity-icon: 48px; }._identity_b9a2b2 :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }._identityIcon_b9a2b2 {\n position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);\n display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));\n color: var(--wzl-fg);\n}._identityIcon_b9a2b2 > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }._autoValueControl_b9a2b2:disabled {\n opacity: 0.5;\n pointer-events: none;\n}._tree_d5c8c7,\n._group_d5c8c7 {\n list-style: none;\n margin: 0;\n padding: 0;\n}._tree_d5c8c7 {\n /* The fold mark's width (DisclosureMark's 13px) plus the row gap: the gutter a mark hangs in. */\n --tree-mark: 13px;\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-2));\n user-select: none;\n -webkit-user-select: none;\n width: 100%;\n}/* Folded by its branches' leading glyphs, the gutter holds one and the space after it, and the glyph hangs in it as the mark would. */._tree_d5c8c7[data-fold='leading'] {\n --tree-mark: var(--wzl-tree-fold-size, 16px);\n --tree-gutter: calc(var(--tree-mark) + var(--wzl-space-3));\n}/* `hang`: the gutter is wide enough for a leaf's glyph, which hangs in it as a branch's mark does. */._tree_d5c8c7[data-hang]:not([data-guides]) {\n --tree-hung: var(--wzl-tree-leading-size, 16px);\n}._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) {\n --tree-gutter: calc(max(var(--tree-mark), var(--tree-hung)) + var(--wzl-space-2));\n}._tree_d5c8c7[data-hang][data-fold='twisty']:not([data-guides]) ._twisty_d5c8c7 {\n width: calc(var(--tree-gutter) - var(--wzl-space-2));\n}._tree_d5c8c7[data-hang]:not([data-guides]) ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 > ._leading_d5c8c7 {\n inline-size: var(--tree-hung);\n margin-inline-start: calc(-1 * (var(--tree-hung) + var(--wzl-space-2)));\n}/* One gutter, so a child's mark sits under its parent's label. */._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-gutter));\n}/* Each level stands a mark's width in from the one above, half of it past the bracket. */._tree_d5c8c7[data-guides] ._group_d5c8c7 {\n padding-inline-start: var(--wzl-tree-indent, var(--tree-mark));\n}/* A branch's mark is the start of its name, so a row with no mark starts its name where a branch beside it starts its mark. */._tree_d5c8c7[data-guides] ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-leaf-indent, 0);\n}/* `--wzl-tree-root-leaf-indent`: the same for a leaf no branch holds, for a host whose own text stands at another edge. */._tree_d5c8c7[data-guides] > ._item_d5c8c7:not([aria-expanded]) > ._row_d5c8c7 {\n padding-inline-start: var(--wzl-tree-root-leaf-indent, var(--wzl-tree-leaf-indent, 0));\n}/* A bracket down the side of an open branch's rows: straight from under the middle of the branch's mark, and curving\n in at its foot. The foot's edge is there, unseen, so the curve keeps its weight to the turn's middle and stops.\n A list that is not a tree takes it too, placed by `--guide-at` and with its top dropped by `--guide-from`. */._guide_d5c8c7 { position: relative; }._guide_d5c8c7::before {\n content: '';\n position: absolute;\n inset-block: var(--guide-from, 0) var(--wzl-space-1);\n inset-inline-start: var(--guide-at, calc(var(--tree-mark) / 2));\n inline-size: 10px;\n border-inline-start: 1px solid var(--wzl-tree-guide, var(--wzl-fg-subtle));\n border-block-end: 1px solid transparent;\n border-end-start-radius: 10px;\n pointer-events: none;\n}._item_d5c8c7 {\n outline: none;\n}._row_d5c8c7 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-block: 0;\n padding-inline: var(--tree-gutter) var(--wzl-space-2);\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n border-radius: var(--wzl-radius-sm);\n cursor: default;\n white-space: nowrap;\n overflow: hidden;\n}._row_d5c8c7:hover {\n background: var(--wzl-surface-hover);\n}._item_d5c8c7:focus-visible > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}._item_d5c8c7[aria-selected='true'] > ._row_d5c8c7 {\n background: var(--wzl-tree-selected, var(--wzl-border));\n}._row_d5c8c7[href] {\n text-decoration: none;\n cursor: pointer;\n}._item_d5c8c7[aria-current='true'] > ._row_d5c8c7 {\n color: var(--wzl-tree-current, var(--wzl-accent-fg));\n}._item_d5c8c7[data-muted] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n}._item_d5c8c7[aria-disabled='true'] > ._row_d5c8c7 {\n color: var(--wzl-fg-subtle);\n cursor: not-allowed;\n}/* The mark hangs in the row's gutter, so every label at one level starts at the same x\n whether or not its row is a branch. */._twisty_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 13px;\n margin-inline-start: calc(-1 * var(--tree-gutter));\n align-self: stretch;\n color: var(--wzl-fg-muted);\n}._row_d5c8c7:hover > ._twisty_d5c8c7 {\n color: var(--wzl-fg);\n}._leading_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n}/* `--wzl-tree-leading-size`: every leading glyph sits in a square of that side, whatever the host handed in. One\n of another shape is scaled to fit inside it, and centered. Unset, a glyph keeps its own size. */._leading_d5c8c7 {\n justify-content: center;\n inline-size: var(--wzl-tree-leading-size, auto);\n block-size: var(--wzl-tree-leading-size, auto);\n}._leading_d5c8c7 > :is(svg, img) {\n max-inline-size: 100%;\n max-block-size: 100%;\n}._leading_d5c8c7[data-tree-twisty] {\n cursor: pointer;\n width: var(--wzl-tree-leading-size, var(--wzl-tree-fold-size, 16px));\n /* The row's gap is narrower than the gutter leaves after the glyph: the label starts where the gutter ends. */\n margin-inline: calc(-1 * var(--tree-gutter)) calc(var(--wzl-space-3) - var(--wzl-space-2));\n}._label_d5c8c7 {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}._trailing_d5c8c7 {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: var(--wzl-space-2);\n}._empty_d5c8c7 {\n padding: var(--wzl-space-6) var(--wzl-space-4);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg-subtle);\n font-style: italic;\n}/* Drop marks: a line on the edge the drop lands at, or a ring on the branch it lands in. An 'after' mark sits on\n the li, which encloses the subtree, so it lands under the last descendant at the row's own indent. */._item_d5c8c7[data-drop] { position: relative; }._item_d5c8c7[data-drop='before']::before,\n._item_d5c8c7[data-drop='after']::after {\n content: '';\n position: absolute;\n inset-inline: var(--tree-gutter) 0;\n height: 2px;\n background: var(--wzl-accent);\n border-radius: var(--wzl-radius-pill);\n pointer-events: none;\n}._item_d5c8c7[data-drop='before']::before { top: -1px; }._item_d5c8c7[data-drop='after']::after { bottom: -1px; }._item_d5c8c7[data-drop='into'] > ._row_d5c8c7 {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}._item_d5c8c7[data-dragging] > ._row_d5c8c7 { opacity: 0.5; }._tree_d5c8c7[data-drag-effect='copy'] ._row_d5c8c7 { cursor: copy; }._tree_d5c8c7[data-drag-effect='link'] ._row_d5c8c7 { cursor: alias; }._ghostRow_d5c8c7 {\n height: var(--wzl-tree-row-h, var(--wzl-control-h));\n display: flex;\n align-items: center;\n padding-inline: var(--wzl-space-2);\n font-size: var(--wzl-tree-font-size, var(--wzl-font-size-sm));\n}._ghostEffect_d5c8c7 { flex: none; margin-inline-end: var(--wzl-space-1); color: var(--wzl-accent-fg); }\n/* Set as the prefs dialog's own list of pages is: a heading, and its assets a step in under it. */\n._list_5f859c { user-select: none; -webkit-user-select: none; }\n._row_5f859c {\n margin-inline-start: calc(var(--heading-icon) + var(--wzl-space-2));\n font-weight: var(--wzl-font-weight-light);\n}\n._label_5f859c { min-width: 0; white-space: nowrap; }\n._changed_5f859c { }\n._row_5f859c[data-rail-mark='current'] ._changed_5f859c { color: var(--wzl-secondary-strong); }\n._group_5f859c { --heading-icon: 16px; display: flex; flex-direction: column; gap: 1px; }\n/* Bracketed as the structure tree brackets an open branch, from under the heading's glyph. */\n._open_5f859c {\n --guide-from: var(--wzl-control-h);\n --guide-at: calc(var(--wzl-space-3) + var(--heading-icon) / 2);\n}\n._group_5f859c + ._group_5f859c { margin-block-start: var(--wzl-space-3); }\n._heading_5f859c {\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n}\n._fold_5f859c {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n width: 100%;\n block-size: var(--wzl-control-h);\n padding: 0 var(--wzl-space-3);\n border: 0;\n border-radius: var(--wzl-radius-sm);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n._headingIcon_5f859c, ._rowIcon_5f859c { flex: none; color: var(--wzl-fg-muted); }\n._fold_5f859c:focus-visible {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n._badge_5f859c { flex: none; margin-inline-start: auto; }\n/* Each heading names its badge's color in `--_heading`, leaning toward the foreground as a pref kind's badge does. */\n._dialog_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-violet) 55%, var(--wzl-fg)); }\n._properties_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-teal) 55%, var(--wzl-fg)); }\n._panel_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-blue) 55%, var(--wzl-fg)); }\n._toolbar_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-amber) 55%, var(--wzl-fg)); }\n._menu_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-rose) 55%, var(--wzl-fg)); }\n._bundle_5f859c { --_heading: color-mix(in oklab, var(--wzl-swatch-green) 55%, var(--wzl-fg)); }\n._row_5f859c[data-rail-mark='current'] ._badge_5f859c { --_heading: var(--wzl-fg-on-accent); }\n._dynamic_5f859c { flex: none; color: var(--wzl-fg-muted); }\n._picker_0ef77d { display: grid; gap: var(--wzl-space-2); inline-size: min(560px, 80vw); }\n._note_0ef77d { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n/* The grid scrolls in its own pane so a long icon set never lengthens the dialog past the window. */\n._list_0ef77d {\n display: grid; gap: var(--wzl-space-2);\n max-block-size: 60vh; overflow-y: auto;\n border: 1px solid var(--wzl-border); padding: var(--wzl-space-2);\n}\n._group_0ef77d { display: grid; gap: var(--wzl-space-1); }\n._heading_0ef77d { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }\n._grid_0ef77d { display: grid; grid-template-columns: repeat(auto-fill, 2rem); gap: var(--wzl-space-1); }\n._cell_0ef77d { display: grid; place-items: center; block-size: 2rem; inline-size: 2rem; cursor: pointer; }\n._cell_0ef77d:hover { background: color-mix(in srgb, var(--wzl-accent) 15%, transparent); }\n._chosen_0ef77d, ._chosen_0ef77d:hover {\n --wzl-fg-muted: var(--wzl-fg-muted-on-accent);\n --wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);\n background: var(--wzl-accent); color: var(--wzl-fg-on-accent);\n}\n._list_0ef77d:focus-visible ._active_0ef77d { outline: 2px solid var(--wzl-focus-ring); outline-offset: -2px; }\n._field_ab38de { display: grid; gap: var(--wzl-space-2); min-inline-size: 0; }\n._bar_ab38de { display: flex; flex-wrap: wrap; gap: var(--wzl-space-2); align-items: center; }\n._current_ab38de { font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); overflow-wrap: anywhere; }\n._unregistered_ab38de { margin-inline-start: var(--wzl-space-2); color: var(--wzl-danger); font-family: var(--wzl-font-body); }\n._loads_46ca35 { display: flex; flex-direction: column; gap: var(--wzl-space-3); font-size: var(--wzl-font-size); color: var(--wzl-fg); }\n._title_46ca35 { margin: 0; font-size: var(--wzl-font-size); font-weight: var(--wzl-font-weight-medium); }\n._empty_46ca35 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._part_46ca35 { display: flex; flex-direction: column; gap: var(--wzl-space-1); }\n._heading_46ca35 { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }\n._ids_46ca35 { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--wzl-space-1) var(--wzl-space-3); font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); }\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* The invisible hit area past a slider's track and each thumb, spanned by `::before`. Both are measured from the\n padding box, so each 1px border comes back out. A thumb comes later in the tree, so its slop wins where the two\n overlap. */._trackSlop_842300::before,\n._thumbSlop_842300::before {\n content: '';\n position: absolute;\n inset: calc(-1px - var(--wzl-slider-track-slop));\n}._thumbSlop_842300::before {\n inset: calc(-1px - var(--wzl-slider-thumb-slop));\n}\n\n._slider_98b6da {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: var(--wzl-space-2);\n font-family: var(--wzl-font-ui);\n color: var(--wzl-fg);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] {\n flex-direction: row;\n align-items: stretch;\n width: 28px;\n height: 160px;\n}\n\n._head_98b6da {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--wzl-space-4);\n}\n\n._label_98b6da {\n font-size: var(--wzl-font-size-sm);\n font-weight: var(--wzl-font-weight-medium);\n color: var(--wzl-fg);\n}\n\n._output_98b6da {\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-subtle);\n}\n\n._track_98b6da {\n position: relative;\n height: 6px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._track_98b6da {\n width: 6px;\n height: 100%;\n}\n\n._fill_98b6da {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--wzl-accent-strong);\n border-radius: var(--wzl-radius-sm);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._fill_98b6da {\n left: 0;\n right: 0;\n}\n\n._thumb_98b6da {\n /* RAC positions the thumb along the track and translates it by half its own\n size on both axes; the cross-axis anchor is ours to set. */\n top: 50%;\n width: 14px;\n height: 14px;\n background: var(--wzl-fg-muted);\n border: 1px solid var(--wzl-border-strong);\n border-radius: 50%;\n cursor: ew-resize;\n outline: none;\n transition: box-shadow var(--wzl-motion-fast);\n}\n\n._slider_98b6da[data-orientation=\"vertical\"] ._thumb_98b6da {\n left: 50%;\n cursor: ns-resize;\n}\n\n._thumb_98b6da[data-focus-visible] {\n box-shadow: 0 0 0 2px var(--wzl-focus-ring);\n}\n\n._thumb_98b6da[data-dragging] {\n background: var(--wzl-accent-strong);\n}\n\n._slider_98b6da[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* Provisional look: theme tokens only, until the maintainer settles it. */\n._rulers_ed7e7b {\n position: absolute;\n inset: 0;\n overflow: hidden;\n pointer-events: none;\n}\n\n._strip_ed7e7b {\n position: absolute;\n top: 0;\n left: 0;\n color: var(--wzl-fg-muted);\n background: var(--wzl-surface);\n}\n\n._ticks_ed7e7b {\n fill: none;\n stroke: currentcolor;\n stroke-width: 1;\n shape-rendering: crispEdges;\n}\n\n._edge_ed7e7b {\n fill: none;\n stroke: var(--wzl-border);\n stroke-width: 1;\n shape-rendering: crispEdges;\n}\n\n._label_ed7e7b {\n fill: currentcolor;\n font-size: var(--wzl-font-size-2xs);\n dominant-baseline: central;\n}\n\n._pointer_ed7e7b {\n stroke: var(--wzl-accent);\n stroke-width: 1;\n shape-rendering: crispEdges;\n}\n\n._unit_ed7e7b {\n fill: currentcolor;\n font-size: var(--wzl-font-size-2xs);\n text-anchor: middle;\n dominant-baseline: central;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._bar_876aa9 {\n display: inline-flex;\n align-items: baseline;\n gap: var(--wzl-space-2);\n color: var(--wzl-fg);\n font-size: var(--wzl-font-size-xs);\n white-space: nowrap;\n}\n\n._rule_876aa9 {\n flex: none;\n width: var(--wzl-scale-bar-px);\n height: var(--wzl-space-2);\n border: 1px solid currentcolor;\n border-top: none;\n}\n\n._label_876aa9 {\n min-width: 6ch;\n}\n\n._drawn_876aa9 {\n color: var(--wzl-fg-muted);\n}\n._sidebar_fd29a8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n background: var(--wzl-surface);\n color: var(--wzl-fg);\n}\n\n._sidebar_fd29a8._left_fd29a8 {\n border-right: 1px solid var(--wzl-border);\n}\n._sidebar_fd29a8._right_fd29a8 {\n border-left: 1px solid var(--wzl-border);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n\n._bar_89218f {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-8);\n flex-shrink: 0;\n /* One line, always. A bar that grows a second line takes it from the canvas\n above it, and a readout that changes width would do that on and off as it\n ticks. Too narrow for its contents clips them instead. */\n overflow: hidden;\n padding: var(--wzl-space-2) var(--wzl-space-6);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n background: var(--wzl-surface);\n border-top: 1px solid var(--wzl-border);\n}\n\n._item_89218f {\n white-space: nowrap;\n}\n\n._muted_89218f {\n opacity: 0.6;\n}\n\n._hasTitle_89218f {\n cursor: help;\n}\n\n._spacer_89218f {\n margin-inline-start: auto;\n}\n\n/* The gap moves into each item's padding so a hairline sits halfway between\n two of them. */\n._divided_89218f {\n gap: 0;\n}\n._divided_89218f > ._item_89218f {\n padding: 0 calc(var(--wzl-space-8) / 2);\n}\n._divided_89218f > ._item_89218f + ._item_89218f {\n border-inline-start: 1px solid var(--wzl-line-subtle);\n}\n/* The transparency checker as one background layer: compose `checker` into the element's own class, then use\n * `var(--wzl-checker-layer)` as a layer of its background. It is declared on that element, not on :root,\n * because a var() in a custom property resolves where the property is declared — so the checker's colors\n * follow the element's mode. */._checker_e742c0 {\n --wzl-checker-layer: repeating-conic-gradient(var(--wzl-checker-a) 0% 25%, var(--wzl-checker-b) 0% 50%) 50% /\n var(--wzl-checker-size) var(--wzl-checker-size);\n}/* A part placed by `placeOnRun`: centered on its spot and tipped to the run. A rule that moves it further\n * writes `transform: var(--on-run) …` and must outrank this one: where this sheet loads is not fixed. */._onRun_419da7 {\n --on-run: translate(-50%, -50%) rotate(var(--at-angle));\n /* Appended last by a part that reads, so it turns about its own center and keeps its side of the run. */\n --upright: rotate(var(--at-upright, 0deg));\n position: absolute;\n left: var(--at-x);\n top: var(--at-y);\n transform: var(--on-run);\n}/* A part that reads: turned upright where the run would stand it upside down. */._uprightOnRun_419da7 {\n transform: var(--on-run) var(--upright);\n}/* A row laid along a track shape: the shape's coordinates are this box's, and only the items take input. */._root_3eaeae {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}._item_3eaeae {\n inline-size: max-content;\n pointer-events: auto;\n}/* Set from how much of the item lies on the run, so one sliding off an end fades as it goes. */._item_3eaeae {\n opacity: var(--along-shown, 1);\n}/* Past either end of a scrolled run: kept focusable, so Tab reaches it and focus brings it into view. */._item_3eaeae[data-clipped='past'] {\n opacity: 0;\n pointer-events: none;\n}._band_3eaeae {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n}._bandPath_3eaeae {\n fill: none;\n touch-action: none;\n stroke: transparent;\n stroke-width: var(--wzl-tb-height);\n pointer-events: stroke;\n}._morePast_3eaeae {\n display: flex;\n pointer-events: none;\n opacity: 0.7;\n}/* An overflowing run is dragged along itself, so a touch on it must not pan the page instead. */._root_3eaeae[data-scrolls] > ._item_3eaeae,\n._root_3eaeae[data-scrolls] > ._band_3eaeae {\n touch-action: none;\n}\n\n._grid_f76bdc {\n display: grid;\n /* Half-column tracks, so a short last row can sit centered between two columns. */\n grid-template-columns: repeat(var(--tracks), minmax(0, 1fr));\n}\n\n/* The glyph's box; a ring's swatch already is one, placed absolutely by its ring. */\n._grid_f76bdc > ._swatch_f76bdc {\n position: relative;\n grid-column-end: span 2;\n}\n\n._grid_f76bdc > ._swatch_f76bdc[data-row-lead] {\n grid-column-start: calc(1 + var(--lead));\n}\n\n._swatch_f76bdc {\n aspect-ratio: 1 / 1;\n min-inline-size: 0;\n padding: 0;\n border: 0.5px solid var(--wzl-border);\n border-radius: 0;\n /* Not the UA's buttontext: the hover edge is --wzl-fg-muted, a step down from the text beside it. */\n color: inherit;\n /* The color over the checker, so a translucent swatch reads as one. */\n background:\n linear-gradient(var(--swatch), var(--swatch)),\n var(--wzl-checker-layer);\n background-clip: padding-box;\n cursor: pointer;\n}\n\n/* Out of flow, so a glyph never sizes its swatch. */\n._glyph_f76bdc {\n position: absolute;\n inset: 0;\n display: grid;\n place-items: center;\n overflow: hidden;\n color: var(--swatch-ink, inherit);\n font-size: var(--wzl-font-size-2xs);\n font-weight: var(--wzl-font-weight-bold);\n line-height: 1;\n pointer-events: none;\n}\n\n._swatch_f76bdc:hover {\n border-color: var(--wzl-fg-muted);\n}\n\n._swatch_f76bdc[aria-current] {\n border-color: var(--wzl-accent);\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n\n._swatch_f76bdc:focus-visible {\n position: relative;\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n/* No paint: the checker crossed by the danger diagonal. */\n._swatch_f76bdc[data-none] {\n background:\n linear-gradient(\n 45deg,\n transparent calc(50% - 1px),\n var(--wzl-danger) calc(50% - 1px),\n var(--wzl-danger) calc(50% + 1px),\n transparent calc(50% + 1px)\n ),\n var(--wzl-checker-layer);\n}\n\n/* On a curved shape: every row a ring of its own, which `useRunRow` lays its items along. */\n._rings_f76bdc {\n --swatch-size: 20px;\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._ringGroup_f76bdc {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._ring_f76bdc {\n column-gap: var(--wzl-space-2);\n}\n\n._ring_f76bdc > ._swatch_f76bdc {\n inline-size: var(--swatch-size);\n block-size: var(--swatch-size);\n}\n\n/* A grid swatch goes relative to lift its focus ring; one on a ring stays where it was placed. */\n._ring_f76bdc > ._swatch_f76bdc:focus-visible {\n position: absolute;\n}\n\n/* A ring's drag band is a pitch wide, so it never takes a press meant for the ring beside it. */\n._ring_f76bdc > svg > path {\n stroke-width: calc(var(--swatch-size) + var(--wzl-space-2));\n}\n\n._ringExtra_f76bdc {\n white-space: nowrap;\n}\n._root_a991c8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-3);\n min-inline-size: 0;\n}\n\n/* On a curved shape the rings lie over the shape's box, and only the swatches take input. */\n._rings_a991c8 {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n._section_a991c8 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n min-inline-size: 0;\n}\n\n._heading_a991c8 {\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-xs);\n font-weight: var(--wzl-font-weight-medium);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n color: var(--wzl-fg-muted);\n}\n\n._empty_a991c8 {\n margin: 0;\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg-muted);\n}\n._frame_4057f9 {\n --_frame-h: auto;\n display: flex;\n padding: var(--wzl-space-2) var(--wzl-field-pad-x);\n line-height: 1.4;\n}\n\n._frame_4057f9 textarea {\n flex: 1;\n min-width: 0;\n padding: 0;\n background: transparent;\n border: none;\n outline: none;\n color: inherit;\n font: inherit;\n resize: vertical;\n}\n\n._frame_4057f9 textarea::placeholder {\n color: var(--wzl-fg-subtle);\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}/* Holds a box at the width of the widest of several strings: each child of the\n sizer is one candidate, stacked in a single cell, invisible and zero-height.\n Set it in the same grid cell as the visible value. */._sizer_686444 {\n display: grid;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n white-space: nowrap;\n}._sizer_686444 > * {\n grid-area: 1 / 1;\n}\n\n._ruler_f2d463 {\n position: relative;\n height: var(--wzl-control-h);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n cursor: ew-resize;\n user-select: none;\n overflow: hidden;\n}\n\n._tick_f2d463 {\n position: absolute;\n top: 0;\n transform: translateX(2px);\n color: var(--wzl-fg-muted);\n pointer-events: none;\n white-space: nowrap;\n}\n\n._tick_f2d463::before {\n content: '';\n position: absolute;\n left: -2px;\n top: 0;\n bottom: 0;\n border-left: 1px solid var(--wzl-border);\n}\n\n._playhead_f2d463 {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background: var(--wzl-accent-strong);\n pointer-events: none;\n}\n\n._lane_f2d463 {\n display: flex;\n align-items: stretch;\n min-height: var(--wzl-control-h-sm);\n border-bottom: 1px solid var(--wzl-line-subtle);\n}\n\n._laneLabel_f2d463 {\n /* Must match `.gutter`'s width exactly, or every key sits off the ruler. */\n box-sizing: border-box;\n flex: 0 0 var(--wzl-timeline-label-w, 120px);\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n padding-inline: var(--wzl-space-3);\n padding-inline-start: calc(var(--wzl-space-3) + var(--depth, 0) * var(--wzl-space-6));\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._lane_f2d463[data-depth='1'] ._laneLabel_f2d463 { --depth: 1; }\n._lane_f2d463[data-depth='2'] ._laneLabel_f2d463 { --depth: 2; }\n._lane_f2d463[data-depth='3'] ._laneLabel_f2d463 { --depth: 3; }\n\n._disclosure_f2d463 { display: inline-flex; flex: none; cursor: pointer; }\n\n._laneTrack_f2d463 {\n position: relative;\n flex: 1 1 auto;\n min-width: 0;\n background: var(--wzl-surface);\n}\n\n._key_f2d463, ._eventMark_f2d463 {\n position: absolute;\n top: 50%;\n width: var(--wzl-handle-size);\n height: var(--wzl-handle-size);\n margin-left: calc(var(--wzl-handle-size) / -2);\n background: var(--wzl-fg-muted);\n cursor: ew-resize;\n}\n\n._key_f2d463 { transform: translateY(-50%) rotate(45deg); }\n._eventMark_f2d463 { transform: translateY(-50%); border-radius: 50%; }\n\n._key_f2d463[aria-current='true'], ._eventMark_f2d463[aria-current='true'] { background: var(--wzl-accent-strong); }\n._key_f2d463:focus-visible, ._eventMark_f2d463:focus-visible { outline: 2px solid var(--wzl-focus-ring); outline-offset: 1px; }\n\n/* The key stays drawn where it was committed while its ghost tracks the\n pointer, so the drag reads as a move from somewhere to somewhere. */\n._key_f2d463[data-dragging='true'], ._eventMark_f2d463[data-dragging='true'] { opacity: 0.4; }\n\n._keyGhost_f2d463, ._eventGhost_f2d463 {\n position: absolute;\n top: 50%;\n width: var(--wzl-handle-size);\n height: var(--wzl-handle-size);\n margin-left: calc(var(--wzl-handle-size) / -2);\n background: var(--wzl-accent-soft);\n border: 1px dashed var(--wzl-accent-strong);\n pointer-events: none;\n}\n\n._keyGhost_f2d463 { transform: translateY(-50%) rotate(45deg); }\n._eventGhost_f2d463 { transform: translateY(-50%); border-radius: 50%; }\n\n._lane_f2d463[data-mode='graph'] { min-height: 72px; }\n\n/* A numeric lane in graph mode is a curve editor filling the track. */\n._graphHost_f2d463 {\n position: absolute;\n inset: 0;\n}\n\n/* Out-specifies the editor's own defaults: the lane keeps the track's ground\n and the timeline's accent line rather than a plot's. */\n._graphHost_f2d463 ._graph_f2d463 {\n --plot-bg: transparent;\n --curve-line: var(--wzl-accent-strong);\n --curve-line-width: 1px;\n}\n\n/* A graph lane's value labels hang off the track's start edge into the label\n column, so the lane's own label ellipsizes before it reaches them. */\n._lane_f2d463[data-graph='true'] ._laneLabel_f2d463 {\n padding-inline-end: calc(var(--wzl-space-3) + var(--wzl-timeline-value-axis-w, 32px));\n}\n\n._nestedBar_f2d463 {\n position: absolute;\n top: 4px;\n bottom: 4px;\n background: var(--wzl-surface-sunken);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n}\n\n._transport_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._transportButton_f2d463 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: var(--wzl-icon-button-size);\n padding: var(--wzl-space-1) var(--wzl-space-3);\n /* Sits on `--wzl-surface-raised`, so a transparent fill and a border that\n close in value leave it reading as text rather than as a control. */\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n font: inherit;\n cursor: pointer;\n}\n\n._transportButton_f2d463:hover { border-color: var(--wzl-fg-muted); }\n\n._transportButton_f2d463[aria-checked='true'] {\n background: var(--wzl-accent-soft);\n border-color: var(--wzl-accent-strong);\n color: var(--wzl-accent-fg);\n}\n\n/* The bar's chrome lives on the row, so controls beside `<Transport>` sit\n inside it rather than hanging off the panel's corner. `.transport` keeps its\n own chrome for standalone use. */\n._transportRow_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding-inline-end: var(--wzl-space-3);\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._transportRow_f2d463 > ._transport_f2d463 {\n flex: 1 1 auto;\n border-bottom: 0;\n background: transparent;\n}\n\n/* The playhead rewrites this every frame and gains a digit at 10s. Its sizer\n holds the cell at the duration's width, so a transport sized to its content\n does not widen; last in the row, it also takes whatever slack the row has. */\n._time_f2d463 {\n display: inline-grid;\n margin-inline-start: auto;\n text-align: end;\n color: var(--wzl-fg-muted);\n}\n._rate_f2d463 { display: inline-flex; align-items: center; gap: var(--wzl-space-3); color: var(--wzl-fg-muted); }\n._rateSlider_f2d463 { width: 88px; }\n\n/* The detents carry no labels in a bar this dense, so the chosen rate is said\n once, here, in a cell as wide as the widest rate on offer. */\n._rateReadout_f2d463 {\n display: inline-grid;\n text-align: end;\n color: var(--wzl-fg);\n}\n\n._time_f2d463 > *,\n._rateReadout_f2d463 > * {\n grid-area: 1 / 1;\n}\n\n._sizer_f2d463 {\n}\n\n._root_f2d463 {\n display: flex;\n flex-direction: column;\n min-height: 0;\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n color: var(--wzl-fg);\n /* `--wzl-font-ui` is condensed, so it reads a size smaller than it measures.\n Everything below inherits this; override per rule only to go up. */\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n line-height: var(--wzl-leading-snug);\n}\n\n._label_f2d463 { padding: var(--wzl-space-2) var(--wzl-space-3); color: var(--wzl-fg-muted); }\n\n._body_f2d463 { display: flex; align-items: stretch; }\n._gutter_f2d463 { box-sizing: border-box; flex: 0 0 var(--wzl-timeline-label-w, 120px); border-right: 1px solid var(--wzl-border); }\n._rulerWrap_f2d463 { flex: 1 1 auto; min-width: 0; }\n\n._lanes_f2d463 {\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n._inspector_f2d463 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-4);\n padding: var(--wzl-space-2) var(--wzl-space-3);\n border-top: 1px solid var(--wzl-border);\n background: var(--wzl-surface-raised);\n}\n\n._segment_f2d463 {\n position: absolute;\n top: 0;\n bottom: 0;\n cursor: pointer;\n}\n\n._segment_f2d463[aria-current='true'] { background: var(--wzl-accent-soft); }\n._segment_f2d463:focus-visible { outline: 2px solid var(--wzl-focus-ring); outline-offset: -2px; }\n\n._easingPicker_f2d463 { display: inline-flex; align-items: center; gap: var(--wzl-space-3); }\n._easingLabel_f2d463 { color: var(--wzl-fg-muted); }\n\n._easingPreview_f2d463 {\n width: 32px;\n height: 32px; /* not-a-control */\n fill: none;\n stroke: var(--wzl-accent-strong);\n stroke-width: 1;\n border: 1px solid var(--wzl-border);\n}\n\n/* The play glyph turned around, for the switch that runs playback backward. */\n._backward_a7ae77 {\n transform: scaleX(-1);\n}\n\n/* The one control in the bar with no natural width: it takes the slack. */\n._scrub_a7ae77 {\n flex: 1 1 auto;\n min-width: 80px;\n}\n._region_82468d {\n position: fixed;\n z-index: var(--wzl-z-toast);\n display: flex;\n /* RAC unshifts new toasts to the front of the DOM (newest-first), and the\n * ol/li wrappers are display:contents, so the flex direction alone\n * decides which end of the stack the newest toast lands on. Base\n * (bottom corners): column-reverse puts DOM-first (newest) at the\n * bottom, hugging the corner. Top corners override back to column so\n * DOM-first still hugs the top edge. */\n flex-direction: column-reverse;\n gap: var(--wzl-space-4);\n max-width: 420px;\n outline: none;\n}\n\n._bottomRight_82468d { bottom: 16px; right: 16px; }\n._bottomLeft_82468d { bottom: 16px; left: 16px; }\n._topRight_82468d { top: 16px; right: 16px; flex-direction: column; }\n._topLeft_82468d { top: 16px; left: 16px; flex-direction: column; }\n\n._toast_82468d {\n --toast-accent: var(--wzl-grade);\n /* Groups every toast under one ident so toastViewTransitions.css can\n * target `::view-transition-new/old(.wzl-toast)` without knowing the\n * per-toast view-transition-name (set inline in Toast.tsx). */\n view-transition-class: wzl-toast;\n display: flex;\n align-items: flex-start;\n gap: var(--wzl-space-4);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-inline-start: 3px solid var(--toast-accent);\n border-radius: var(--wzl-radius-md);\n box-shadow: 0 8px 24px var(--wzl-shadow);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n padding: var(--wzl-space-7) var(--wzl-space-8);\n outline: none;\n}\n\n._region_82468d[data-focus-visible],\n._toast_82468d[data-focus-visible] {\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: 1px;\n}\n\n._content_82468d {\n flex: 1;\n min-width: 0;\n}\n\n._title_82468d {\n display: block;\n font-size: var(--wzl-font-size-lg);\n font-weight: var(--wzl-font-weight-bold);\n}\n\n._description_82468d {\n display: block;\n margin-top: var(--wzl-space-2);\n font-size: var(--wzl-font-size);\n color: var(--wzl-fg-muted);\n}\n\n/* Given a container, the stack sits in its corner rather than the viewport's. */\n._contained_82468d {\n position: absolute;\n}\n/* View-transition choreography for the toast stack.\n *\n * Deliberately global (not a CSS module): view-transition pseudo-elements\n * attach to the document root, and the `.wzl-toast` argument must match\n * the literal `view-transition-class` set in Toast.module.css — none of\n * these idents may be hashed.\n *\n * Everything is scoped by `:root.wzl-toast-vt`, which queue.ts holds set\n * only for the lifetime of a toast-triggered transition:\n * - un-naming :root keeps the rest of the page out of the transition,\n * so it stays live (canvas keeps animating) instead of freezing into\n * a snapshot;\n * - pointer-events: none keeps the transition overlay from swallowing\n * input while a background notification animates.\n *\n * Reduced-motion users never get here (queue.ts skips the view transition\n * entirely).\n */\n\n:root.wzl-toast-vt {\n view-transition-name: none;\n}\n\n:root.wzl-toast-vt::view-transition {\n pointer-events: none;\n}\n\n/* Entering toast: rise + fade. `:only-child` restricts the rule to\n * genuine entries — a group with an old+new pair is a surviving toast\n * reflowing, which keeps the default smooth position animation. */\n:root.wzl-toast-vt::view-transition-new(.wzl-toast):only-child {\n animation: wzl-toast-enter var(--wzl-motion-medium) var(--wzl-ease-out-cubic) both;\n}\n\n/* Exiting toast: quick fade + slight shrink. */\n:root.wzl-toast-vt::view-transition-old(.wzl-toast):only-child {\n animation: wzl-toast-exit var(--wzl-motion-fast) var(--wzl-ease-in-cubic) both;\n}\n\n@keyframes wzl-toast-enter {\n from {\n opacity: 0;\n translate: 0 16px;\n }\n}\n\n@keyframes wzl-toast-exit {\n to {\n opacity: 0;\n scale: 0.92;\n }\n}\n/* Every control in the panel sits at the smallest control height, so a set of\n ninety tokens reads as a list rather than a form. */\n._panel_c10a29 {\n --tp-rail: min(36%, 10rem);\n --wzl-field-h: var(--wzl-control-h-xs);\n --wzl-control-h-sm: var(--wzl-control-h-xs);\n --wzl-font-size: var(--wzl-font-size-sm);\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._section_c10a29 {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._section_c10a29 + ._section_c10a29 {\n border-top: var(--wzl-border-w) solid var(--wzl-line-subtle);\n}\n\n._sectionHead_c10a29 {\n padding-block: var(--wzl-space-xs);\n color: var(--wzl-fg-muted);\n font-family: var(--wzl-font-display);\n font-size: var(--wzl-font-size-xs);\n letter-spacing: var(--wzl-tracking-wider);\n text-transform: uppercase;\n}\n\n._sectionBody_c10a29 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-1);\n padding-block-end: var(--wzl-space-sm);\n}\n\n/* Name, control, reset: the third column holds the reset when there is one,\n so a value never shifts sideways as it is overridden. */\n._row_c10a29,\n._family_c10a29,\n._scale_c10a29 {\n display: grid;\n grid-template-columns: var(--tp-rail) minmax(0, 1fr) 16px;\n align-items: center;\n column-gap: var(--wzl-space-xs);\n min-width: 0;\n}\n\n._name_c10a29 {\n grid-column: 1;\n overflow: hidden;\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-xs);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._row_c10a29[data-overridden] > ._name_c10a29,\n._family_c10a29:has(._swatch_c10a29[data-overridden]) > ._name_c10a29,\n._scale_c10a29:has([data-overridden]) > ._name_c10a29 {\n color: var(--wzl-accent-fg);\n}\n\n/* A run's group name, shown on its first row and held invisibly on the rest so their suffixes line up. */\n._lead_c10a29 {\n margin-inline-end: 0.4em;\n color: var(--wzl-fg-muted);\n}\n\n._lead_c10a29[data-hidden] {\n visibility: hidden;\n}\n\n._row_c10a29[data-unset] > ._name_c10a29 {\n color: var(--wzl-fg-subtle);\n}\n\n._edit_c10a29 {\n grid-column: 2;\n display: flex;\n max-width: 18rem;\n align-items: center;\n gap: var(--wzl-space-xs);\n min-width: 0;\n}\n\n._reset_c10a29 {\n --wzl-control-h-sm: 16px;\n grid-column: 3;\n justify-self: center;\n color: var(--wzl-fg-muted);\n}\n\n._field_c10a29 {\n --wzl-font-ui: var(--wzl-font-mono);\n --wzl-font-size: var(--wzl-font-size-xs);\n flex: 1;\n min-width: 0;\n}\n\n._number_c10a29 {\n --wzl-font-size: var(--wzl-font-size-xs);\n flex: 1;\n min-width: 0;\n}\n\n/* A lone number needs a few digits, not the rail's whole remainder. */\n._edit_c10a29 > ._number_c10a29 {\n flex: 0 1 5rem;\n}\n\n._unit_c10a29 {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n/* × and + read as operators, so they sit at text size rather than unit size. */\n._op_c10a29 {\n color: var(--wzl-fg-muted);\n font-size: var(--wzl-font-size-sm);\n line-height: 1;\n}\n\n/* Padding inflates a native color input past its box in Chrome. */\n._swatchInput_c10a29 {\n box-sizing: border-box;\n flex-shrink: 0;\n width: 14px;\n height: 12px;\n padding: 0;\n background: transparent;\n border: 0;\n border-radius: var(--wzl-radius-sm);\n cursor: pointer;\n}\n\n._chip_c10a29 {\n flex-shrink: 0;\n width: 14px;\n height: 12px;\n background: var(--token-color);\n border-radius: var(--wzl-radius-sm);\n box-shadow: inset 0 0 0 1px var(--wzl-line);\n}\n\n._curve_c10a29 {\n flex-shrink: 0;\n width: 16px;\n /* Square easing-curve artwork: not-a-control */\n height: 16px;\n color: var(--wzl-fg);\n}\n\n._strip_c10a29 {\n grid-column: 2;\n display: flex;\n height: var(--wzl-control-h-xs);\n overflow: hidden;\n border: var(--wzl-border-w) solid var(--wzl-line);\n border-radius: var(--wzl-radius-sm);\n}\n\n._swatch_c10a29 {\n flex: 1 1 0;\n min-width: 0;\n height: 100%;\n padding: 0;\n background: var(--token-color);\n border: 0;\n border-radius: 0;\n cursor: pointer;\n}\n\n._swatch_c10a29[data-overridden] {\n box-shadow: inset 0 -3px 0 var(--wzl-accent);\n}\n\n._swatch_c10a29[aria-pressed='true'],\n._swatch_c10a29:focus-visible {\n position: relative;\n z-index: 1;\n outline: 2px solid var(--wzl-focus-ring);\n outline-offset: -2px;\n}\n\n._tip_c10a29 {\n display: flex;\n gap: var(--wzl-space-sm);\n align-items: baseline;\n}\n\n._tip_c10a29 code {\n font-family: var(--wzl-font-mono);\n font-size: var(--wzl-font-size-xs);\n}\n\n/* A picked swatch's editor opens under the strip, its name on the same rail. */\n._family_c10a29 > ._row_c10a29 {\n grid-column: 1 / -1;\n margin-block-start: var(--wzl-space-1);\n}\n\n._scale_c10a29 {\n row-gap: var(--wzl-space-1);\n}\n\n/* Its steps take the panel's full width under the name, where a rail-width\n column would hold three of them. */\n._scaleBody_c10a29 {\n display: contents;\n}\n\n._scaleBody_c10a29 > ._rule_c10a29 {\n grid-column: 2 / -1;\n grid-row: 1;\n justify-content: flex-end;\n}\n\n._scaleBody_c10a29 > ._steps_c10a29 {\n grid-column: 1 / -1;\n}\n\n/* A scale the slider cannot draw: a grid of steps, each labeled by what its name adds. */\n._steps_c10a29 {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));\n gap: var(--wzl-space-1);\n}\n\n._rule_c10a29 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wzl-space-1) var(--wzl-space-xs);\n min-width: 0;\n}\n\n._ruleLabel_c10a29 {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n._rule_c10a29 ._number_c10a29 {\n flex: 0 0 4.5ch;\n text-align: end;\n}\n\n._step_c10a29 {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._stepLabel_c10a29 {\n overflow: hidden;\n padding-inline-end: calc(var(--wzl-field-pad-x) + var(--wzl-border-w));\n text-align: end;\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n._step_c10a29[data-overridden] ._stepLabel_c10a29 {\n color: var(--wzl-accent-fg);\n}\n\n._stepEdit_c10a29 {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-1);\n min-width: 0;\n}\n\n._stepEdit_c10a29 ._number_c10a29 {\n text-align: end;\n}\n\n/* The rule controls take the reset's column, so a scale's reset sits at the end of its name. */\n._scale_c10a29 > ._reset_c10a29 {\n grid-column: 1;\n grid-row: 1;\n justify-self: end;\n}\n/* Numeric text: equal-width digits in the UI face. This is the one definition —\n * compose it, mix it into Less, or put its class on the element; never restate\n * the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {\n font-family: var(--wzl-font-numeric);\n font-variant-numeric: tabular-nums;\n}\n/* Under the name, across the panel's full width, as the grid of steps was. */\n._slider_49a37c {\n grid-column: 1 / -1;\n min-width: 0;\n padding-inline: var(--wzl-space-sm);\n}\n\n._readout_49a37c {\n display: flex;\n flex-direction: column;\n align-items: center;\n line-height: 1.2;\n}\n\n._label_49a37c {\n color: var(--wzl-fg-subtle);\n font-size: var(--wzl-font-size-2xs);\n}\n\n._readout_49a37c[data-overridden] ._label_49a37c {\n color: var(--wzl-accent-fg);\n}\n\n._amount_49a37c {\n font-size: var(--wzl-font-size-2xs);\n}\n._palette_9c3966 {\n display: flex;\n flex-direction: column;\n gap: var(--wzl-space-2);\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n padding: var(--wzl-space-2);\n box-shadow: var(--wzl-bevel-raised, none);\n user-select: none;\n}\n._palette_9c3966._horizontal_9c3966 {\n flex-direction: row;\n}\n\n/* Marker only — `useRovingTabIndex` finds the palette's buttons by this class.\n Carries no styles; deleting it breaks keyboard navigation. */\n._paletteBtn_9c3966 {}\n\n/* A button a press carries out: a touch drag carries rather than scrolls. */\n._carrySource_9c3966 {\n touch-action: none;\n}\n\n/* Applied to ineligible tool buttons in the active mode. */\n._ineligibleBtn_9c3966 {\n opacity: 0.35;\n cursor: not-allowed;\n}\n\n._separator_9c3966 {\n background: var(--wzl-border);\n}\n._palette_9c3966:not(._horizontal_9c3966) ._separator_9c3966 {\n height: 1px;\n margin: var(--wzl-space-1) 0;\n}\n._palette_9c3966._horizontal_9c3966 ._separator_9c3966 {\n width: 1px;\n margin: 0 var(--wzl-space-1);\n}\n/* A bar's or a toolbar's own name: a field label's face and case, one step up the weight scale from a label's light,\n so it reads above its fields' names. */._label_89c1e8 {\n font-family: var(--wzl-font-display);\n font-weight: var(--wzl-font-weight-normal);\n font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));\n color: var(--wzl-fg);\n text-transform: var(--wzl-params-label-case, uppercase);\n letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wide));\n white-space: nowrap;\n}\n\n:where(._toolbar_7115cf) {\n gap: var(--wzl-space-sm);\n padding: var(--wzl-space-1) var(--wzl-space-sm);\n}\n\n._toolbar_7115cf {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n._wrap_7115cf { flex-wrap: wrap; }\n\n:where(._group_7115cf) {\n gap: var(--wzl-space-1);\n}\n\n._group_7115cf {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n/* The rule belongs between groups, so it rides on the group rather than being a node the caller has to interleave. */\n._group_7115cf + ._group_7115cf {\n padding-inline-start: var(--wzl-space-sm);\n border-inline-start: 1px solid var(--wzl-line-subtle);\n}\n\n._end_7115cf { margin-inline-start: auto; }\n\n/* A group pushed to the end already reads as separated by the gap. */\n._end_7115cf + ._group_7115cf,\n._group_7115cf + ._end_7115cf {\n padding-inline-start: 0;\n border-inline-start: none;\n}\n\n._spacer_7115cf { flex: 1; }\n\n._sm_7115cf {\n --wzl-control-h: 22px;\n --wzl-button-icon-size: 16px;\n --wzl-button-pad-x: var(--wzl-space-sm);\n --wzl-button-font-weight: var(--wzl-font-weight-normal);\n}\n\n._framed_7115cf {\n min-height: calc(var(--wzl-control-h) + 4px);\n background: var(--wzl-surface-raised);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n._title_7115cf {\n margin-inline-end: var(--wzl-space-sm);\n}\n/* Docks round a workspace. An edge with no bars draws nothing, so its track collapses. */\n._root_3a9c7d {\n position: relative;\n display: grid;\n grid-template:\n 'top top top' auto\n 'left main right' minmax(0, 1fr)\n 'bottom bottom bottom' auto\n / auto minmax(0, 1fr) auto;\n height: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n._top_3a9c7d {\n grid-area: top;\n}\n\n._bottom_3a9c7d {\n grid-area: bottom;\n}\n\n._left_3a9c7d {\n grid-area: left;\n}\n\n._right_3a9c7d {\n grid-area: right;\n}\n\n._top_3a9c7d,\n._bottom_3a9c7d {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._left_3a9c7d,\n._right_3a9c7d {\n display: flex;\n min-height: 0;\n}\n\n/* Isolated, so nothing in the workspace stacks above the floating layer. */\n._main_3a9c7d {\n grid-area: main;\n position: relative;\n isolation: isolate;\n min-width: 0;\n min-height: 0;\n}\n\n/* Floating bars sit over the whole dock, docks and workspace alike. The layer lets the pointer through; its bars\n don't. */\n._layer_3a9c7d {\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n}\n\n._floating_3a9c7d {\n position: absolute;\n left: var(--dock-float-x, 0);\n top: var(--dock-float-y, 0);\n display: flex;\n pointer-events: auto;\n}\n\n._floating_3a9c7d:not([data-placed]),\n._floating_3a9c7d:empty,\n._floating_3a9c7d:has(> ._host_3a9c7d:empty) {\n visibility: hidden;\n}\n\n._floating_3a9c7d[data-dock-dragging] {\n box-shadow: 0 4px 16px var(--wzl-shadow);\n}\n\n/* The room a lifted bar's slot keeps while the bar floats under the pointer. */\n._hold_3a9c7d {\n inline-size: var(--dock-hold-w);\n block-size: var(--dock-hold-h);\n}\n\n/* An empty dock a dragged bar may enter: a strip along its edge to drop on. */\n._empty_3a9c7d {\n position: absolute;\n border: 1px dashed var(--wzl-accent);\n border-radius: var(--wzl-radius-sm);\n}\n\n._empty_3a9c7d[data-dock-edge='top'] {\n inset: 0 0 auto;\n block-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='bottom'] {\n inset: auto 0 0;\n block-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='left'] {\n inset: 0 auto 0 0;\n inline-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-edge='right'] {\n inset: 0 0 0 auto;\n inline-size: var(--wzl-space-6);\n}\n\n._empty_3a9c7d[data-dock-drop] {\n border-style: solid;\n background: color-mix(in srgb, var(--wzl-accent) 20%, transparent);\n}\n\n._dock_3a9c7d {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n._left_3a9c7d > ._dock_3a9c7d,\n._right_3a9c7d > ._dock_3a9c7d {\n flex-direction: row;\n min-height: 0;\n}\n\n._row_3a9c7d {\n display: flex;\n align-items: center;\n gap: var(--wzl-space-2);\n min-width: 0;\n}\n\n._left_3a9c7d ._row_3a9c7d,\n._right_3a9c7d ._row_3a9c7d {\n flex-direction: column;\n align-items: stretch;\n min-height: 0;\n}\n\n/* What the dock draws round each bar, so a drag can mark it. A squeezed row shrinks it no shorter than its bar's\n least length (`--dock-least`, which the bar reports), so the long bars give up their items before a short one loses\n its only item. */\n._slot_3a9c7d {\n display: flex;\n min-inline-size: var(--dock-least, 0);\n}\n\n._left_3a9c7d ._slot_3a9c7d,\n._right_3a9c7d ._slot_3a9c7d {\n flex-direction: column;\n min-inline-size: 0;\n min-block-size: var(--dock-least, 0);\n}\n\n/* The element a bar is drawn into, which moves with the bar from slot to slot; the bar lays out as the slot's own. */\n._host_3a9c7d {\n display: contents;\n}\n\n/* A bar whose content draws nothing takes no room, nor a gap in its row. */\n._slot_3a9c7d:empty,\n._slot_3a9c7d:has(> ._host_3a9c7d:empty) {\n display: none;\n}\n\n/* A bar a drag has lifted. */\n._slot_3a9c7d[data-dock-dragging] {\n opacity: 0.5;\n}\n\n/* Where the lifted bar would land: a bar on that side of the bar it lands beside, drawn outside its box so nothing\n moves. */\n._slot_3a9c7d[data-dock-drop='before'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d[data-dock-drop='after'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d:dir(rtl)[data-dock-drop='before'] {\n box-shadow: 2px 0 0 var(--wzl-accent);\n}\n\n._slot_3a9c7d:dir(rtl)[data-dock-drop='after'] {\n box-shadow: -2px 0 0 var(--wzl-accent);\n}\n\n._left_3a9c7d ._slot_3a9c7d[data-dock-drop='before'],\n._right_3a9c7d ._slot_3a9c7d[data-dock-drop='before'] {\n box-shadow: 0 -2px 0 var(--wzl-accent);\n}\n\n._left_3a9c7d ._slot_3a9c7d[data-dock-drop='after'],\n._right_3a9c7d ._slot_3a9c7d[data-dock-drop='after'] {\n box-shadow: 0 2px 0 var(--wzl-accent);\n}\n\n/* A new row the lifted bar would make: a 2px line between rows, taking no room. */\n._newRow_3a9c7d {\n flex: none;\n block-size: 0;\n box-shadow: 0 0 0 1px var(--wzl-accent);\n}\n\n._left_3a9c7d ._newRow_3a9c7d,\n._right_3a9c7d ._newRow_3a9c7d {\n block-size: auto;\n inline-size: 0;\n}\n\n/* A dock the lifted bar may not enter. */\n._dock_3a9c7d[data-dock-unavailable] {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* The live region a keyboard move announces in: out of sight, still read. */\n._status_3a9c7d {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n/*$vite$:1*/",":host {\n all: initial;\n}\n\n.bp-root {\n font-family: var(--wzl-font-ui);\n font-size: var(--wzl-font-size-sm);\n color: var(--wzl-fg);\n}\n\n.bp-pill,\n.bp-window {\n position: fixed;\n z-index: 2147483646;\n background: var(--wzl-surface-raised);\n color: var(--wzl-fg);\n border: 1px solid var(--wzl-border);\n box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);\n}\n\n.bp-pill {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n cursor: grab;\n}\n\n.bp-window {\n display: flex;\n flex-direction: column;\n width: 640px;\n height: 420px;\n min-width: 360px;\n min-height: 200px;\n border-radius: 8px;\n overflow: hidden;\n resize: both;\n}\n\n.bp-bar {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n border-bottom: 1px solid var(--wzl-border);\n background: var(--wzl-surface-sunken);\n cursor: grab;\n}\n\n.bp-root button,\n.bp-root select,\n.bp-root input {\n font: inherit;\n color: inherit;\n background: var(--wzl-surface-raised);\n border: 1px solid var(--wzl-border);\n border-radius: 4px;\n padding: 1px 6px;\n}\n\n.bp-root button:disabled,\n.bp-root select:disabled,\n.bp-root input:disabled {\n opacity: 0.45;\n}\n\n.bp-root button.bp-on {\n background: var(--wzl-accent);\n color: var(--wzl-fg-on-accent);\n border-color: var(--wzl-accent);\n}\n\n.bp-scrub {\n flex: 1;\n min-width: 80px;\n padding: 0;\n}\n\n.bp-name {\n font-weight: 600;\n white-space: nowrap;\n}\n\n.bp-time {\n font-variant-numeric: tabular-nums;\n min-width: 7ch;\n margin-inline-start: auto;\n text-align: end;\n}\n\n.bp-note {\n margin: 0;\n padding: 2px 8px;\n color: var(--wzl-fg-muted);\n border-bottom: 1px solid var(--wzl-border);\n}\n\n.bp-body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n\n.bp-side {\n width: 200px;\n flex: none;\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding: 6px;\n border-right: 1px solid var(--wzl-border);\n overflow: auto;\n}\n\n.bp-row {\n display: flex;\n gap: 4px;\n}\n\n.bp-search {\n flex: 1;\n min-width: 0;\n}\n\n.bp-list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.bp-root .bp-item {\n display: block;\n width: 100%;\n text-align: start;\n border-color: transparent;\n background: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bp-head {\n margin: 6px 0 0;\n font-size: inherit;\n font-weight: 600;\n color: var(--wzl-fg-muted);\n}\n\n.bp-row:has(> .bp-head) {\n align-items: baseline;\n margin-top: 6px;\n}\n\n.bp-row > .bp-head {\n flex: 1;\n margin: 0;\n}\n\n.bp-voice {\n display: grid;\n grid-template-columns: 1fr auto 5ch;\n gap: 6px;\n padding: 1px 6px;\n}\n\n.bp-num {\n font-variant-numeric: tabular-nums;\n text-align: end;\n}\n\n.bp-muted {\n color: var(--wzl-fg-muted);\n}\n\n.bp-plots {\n flex: 1;\n overflow: auto;\n padding: 6px 8px;\n margin: 0;\n}\n\n.bp-window.bp-docked {\n position: static;\n width: 100%;\n height: 100%;\n min-width: 0;\n border: none;\n border-radius: 0;\n box-shadow: none;\n resize: none;\n}\n","import ui from '@weasel-js/ui/style.css?inline';\nimport css from './ui/panel.css?inline';\n\n/** Every stylesheet the panel needs, as text, for a host to put where the panel renders. */\nexport const panelStyles: string = `${ui}\\n${css}`;\n","// src/presets/default.ts\nvar NORMAL = {\n id: \"normal\",\n label: \"Normal\",\n description: \"Select, draw and arrange anything on the page.\",\n kind: \"soft\",\n allows: [\n \"creates-selection\",\n \"transforms-selection\",\n \"creates-paths\",\n \"creates-shapes\",\n \"creates-text\",\n \"samples-color\",\n \"applies-fill\",\n \"edits-page\"\n ],\n scoping: false\n};\nvar PATH_EDIT = {\n id: \"path-edit\",\n label: \"Path Edit\",\n description: \"Move a path's anchors and handles.\",\n kind: \"soft\",\n allows: [\"edits-anchors\"],\n scoping: true,\n workspace: { tint: \"#3b82f6\", gradient: \"bottom-up\", intensity: 0.12 },\n entry: { trigger: \"double-click-target\", targets: [\"path\"], shortcut: \"Enter\" },\n exit: { shortcut: \"Escape\" },\n discard: { shortcut: \"Meta+Escape\" },\n defaultTool: \"anchors\"\n};\nvar FREE_TRANSFORM = {\n id: \"free-transform\",\n label: \"Free Transform\",\n description: \"Move, scale and rotate the selection as one undoable step.\",\n kind: \"strict\",\n allows: [\"transforms-selection\"],\n scoping: false,\n workspace: { tint: \"#f59e0b\", gradient: \"bottom-up\", intensity: 0.12 },\n entry: { shortcut: \"Meta+T\" },\n commit: { shortcut: \"Enter\" },\n cancel: { shortcut: \"Escape\" }\n};\nvar TEXT_EDIT = {\n id: \"text-edit\",\n label: \"Text Edit\",\n description: \"Edit a text node's content.\",\n kind: \"soft\",\n allows: [\"edits-text\"],\n scoping: false,\n workspace: { tint: \"#10b981\", gradient: \"bottom-up\", intensity: 0.12 },\n entry: { trigger: \"double-click-target\" },\n exit: { shortcut: \"Escape\" },\n discard: { shortcut: \"Meta+Escape\" }\n};\nvar CROP = {\n id: \"crop\",\n label: \"Crop\",\n description: \"Change the page extents as one undoable step.\",\n kind: \"strict\",\n allows: [\"edits-page\"],\n scoping: false,\n workspace: { tint: \"#ef4444\", gradient: \"bottom-up\", intensity: 0.12 },\n entry: { shortcut: \"C\" },\n commit: { shortcut: \"Enter\" },\n cancel: { shortcut: \"Escape\" }\n};\nvar DEFAULT_MODES = [\n NORMAL,\n PATH_EDIT,\n FREE_TRANSFORM,\n TEXT_EDIT,\n CROP\n];\nfunction byId(id) {\n const m = DEFAULT_MODES.find((m2) => m2.id === id);\n if (!m) throw new Error(`Unknown mode id: ${id}`);\n return m;\n}\n\nexport { CROP, DEFAULT_MODES, FREE_TRANSFORM, NORMAL, PATH_EDIT, TEXT_EDIT, byId };\n//# sourceMappingURL=chunk-JTCUDYBI.js.map\n//# sourceMappingURL=chunk-JTCUDYBI.js.map","export { CROP, DEFAULT_MODES, FREE_TRANSFORM, NORMAL, PATH_EDIT, TEXT_EDIT, byId } from './chunk-JTCUDYBI.js';\nimport { createReflectable, createEmitter } from '@weasel-js/registry';\n\n// src/capabilities.ts\nvar ALL_TAGS = [\n \"navigation\",\n \"creates-selection\",\n \"creates-paths\",\n \"creates-shapes\",\n \"creates-text\",\n \"edits-anchors\",\n \"edits-text\",\n \"transforms-selection\",\n \"samples-color\",\n \"applies-fill\",\n \"edits-page\"\n];\nvar IMPLICIT_TAGS = [\"navigation\"];\nfunction capabilitiesAllowed(allowed, tags) {\n return tags === void 0 || tags.every((tag) => allowed.has(tag));\n}\nfunction isCapabilityTag(value) {\n return ALL_TAGS.includes(value);\n}\n\n// src/modeDefinition.ts\nfunction modeLabel(mode) {\n return mode.label ?? mode.id;\n}\nfunction defaultToolOf(mode, has) {\n const id = mode.defaultTool;\n return id !== void 0 && has(id) ? id : null;\n}\nfunction eligibleForMode(mode, toolTags) {\n return capabilitiesAllowed(allowedCapabilitiesOf(mode), toolTags);\n}\nfunction allowedCapabilitiesOf(mode) {\n return /* @__PURE__ */ new Set([...mode.allows, ...IMPLICIT_TAGS]);\n}\nfunction createModeRegistry(opts) {\n const modes = createReflectable();\n for (const m of opts.modes) {\n if (modes.get(m.id)) throw new Error(`createModeRegistry: duplicate mode id \"${m.id}\"`);\n modes.set(m.id, m);\n }\n const initial = modes.get(opts.initial);\n if (!initial) throw new Error(`Initial mode \"${opts.initial}\" not in modes list`);\n let active = initial;\n return {\n current: () => active,\n list: () => opts.modes,\n setMode(id) {\n const next = modes.get(id);\n if (!next) throw new Error(`Unknown mode id: ${id}`);\n if (next === active) return;\n active = next;\n modes.bump();\n },\n byId(id) {\n const m = modes.get(id);\n if (!m) throw new Error(`Unknown mode id: ${id}`);\n return m;\n },\n getVersion: modes.getVersion,\n subscribe: modes.subscribe,\n reflection: modes.reflection\n };\n}\nfunction activeModeOf(mode) {\n return { id: mode.id, allowedCapabilities: allowedCapabilitiesOf(mode) };\n}\nfunction getActiveModeFor(registry) {\n let cached = null;\n return () => {\n const version = registry.getVersion();\n if (cached?.version !== version) cached = { version, value: activeModeOf(registry.current()) };\n return cached.value;\n };\n}\nfunction createModeDecorations(opts) {\n const { registry } = opts;\n const painters = /* @__PURE__ */ new Map();\n const listeners = createEmitter();\n let registrations = 0;\n const changed = () => {\n registrations++;\n listeners.emit();\n };\n return {\n register(modeId, painter) {\n painters.set(modeId, painter);\n changed();\n return () => {\n if (painters.get(modeId) !== painter) return;\n painters.delete(modeId);\n changed();\n };\n },\n paint() {\n const painter = painters.get(registry.current().id);\n if (!painter) return [];\n return painter();\n },\n getVersion: () => registry.getVersion() + registrations,\n subscribe(listener) {\n const off = listeners.subscribe(listener);\n const offMode = registry.subscribe(listener);\n return () => {\n off();\n offMode();\n };\n }\n };\n}\n\n// src/eligibility.ts\nfunction eligibleTool(reg, tool) {\n return eligibleForMode(reg.current(), tool.capabilities ?? []);\n}\nfunction eligibleContribution(reg, entry) {\n return eligibleForMode(reg.current(), entry.eligibility?.capabilities ?? []);\n}\nvar OUT_OF_SCOPE_ALPHA = 0.3;\nfunction createScopingDim(opts) {\n const { registry } = opts;\n const dim = opts.dimAlpha ?? OUT_OF_SCOPE_ALPHA;\n const listeners = createEmitter();\n let invalidations = 0;\n return {\n alphaFor(id) {\n const mode = registry.current();\n if (!mode.scoping) return 1;\n return opts.getTargetIds().has(id) ? 1 : dim;\n },\n isPointerInteractive(id) {\n const mode = registry.current();\n if (!mode.scoping) return true;\n return opts.getTargetIds().has(id);\n },\n invalidate() {\n invalidations++;\n listeners.emit();\n },\n getVersion: () => registry.getVersion() + invalidations,\n subscribe(listener) {\n const off = listeners.subscribe(listener);\n const offMode = registry.subscribe(listener);\n return () => {\n off();\n offMode();\n };\n }\n };\n}\n\nexport { ALL_TAGS, IMPLICIT_TAGS, OUT_OF_SCOPE_ALPHA, activeModeOf, capabilitiesAllowed, createModeDecorations, createModeRegistry, createScopingDim, defaultToolOf, eligibleContribution, eligibleForMode, eligibleTool, getActiveModeFor, isCapabilityTag, modeLabel };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","import { NO_OVERRIDES, resolveParams, formatRoute, overriddenBindings, ActionDisabledReason, keySpecShortcut, actionBindings, canonicalModifiers, paramsMatch, VALID_MOD_NAMES, actionCursor, buildDepsFromRequires, resolveRoles, roleKeysOf, platformRoleKeys } from './chunk-FMKM345X.js';\nimport { routeGestureForSpecKind, getGestureDescriptor, parseTargetSpec, matchSpec, matchModifiers, isApplePlatform, UNKNOWN_MIME, specificity, formatShortcut, stylusOf } from '@weasel-js/gestures';\nexport { GESTURE_DESCRIPTORS, LONG_PRESS_MS, activatesFocusedControl, focusedControlOwnsKey, getGestureDescriptor, isEditableTarget, isKnownGestureName, matchKey, matchModifiers, matchPhase, matchSpec, matchTarget, routeGestureForSpecKind, specKindForRouteGesture, specificity } from '@weasel-js/gestures';\nimport { isDev } from '@weasel-js/react';\nimport { activeModeOf, NORMAL, DEFAULT_MODES, capabilitiesAllowed } from '@weasel-js/modes';\nimport { createEmitter } from '@weasel-js/registry';\nimport { resolveCursor } from '@weasel-js/cursor';\n\n// src/interactions/dispatcher/inputFacts.ts\nfunction modifierStateOf(e) {\n return { alt: e.altKey, ctrl: e.ctrlKey, meta: e.metaKey, shift: e.shiftKey };\n}\nfunction worldPointOf(event) {\n switch (event.kind) {\n case \"pointerdown\":\n case \"hover\":\n case \"longpress\":\n case \"click\":\n case \"doubleclick\":\n case \"contextmenu\":\n return event.x !== void 0 && event.y !== void 0 ? { x: event.x, y: event.y } : void 0;\n case \"carry\":\n return { x: event.x, y: event.y };\n case \"wheel\":\n return event.x !== void 0 && event.y !== void 0 ? { x: event.x, y: event.y } : void 0;\n default:\n return void 0;\n }\n}\nfunction carriedBy(event) {\n if (event.kind === \"carry\") return { items: [], carry: { type: event.type, value: event.value } };\n return event.kind === \"drop\" || event.kind === \"paste\" ? { items: event.items } : void 0;\n}\nvar at = (x, y) => x !== void 0 && y !== void 0 ? { world: { x, y } } : {};\nfunction immediateParams(event, resolved) {\n switch (event.kind) {\n case \"wheel\":\n return {\n deltaX: event.deltaX,\n deltaY: event.deltaY,\n clientX: event.clientX,\n clientY: event.clientY,\n ...at(event.x, event.y),\n affordance: event.affordance,\n ...resolved\n };\n case \"pinch\":\n return {\n scale: event.scale,\n rotation: event.rotation,\n clientX: event.clientX,\n clientY: event.clientY,\n affordance: event.affordance,\n ...resolved\n };\n case \"click\":\n case \"doubleclick\":\n return {\n ...at(event.x, event.y),\n affordance: event.affordance,\n ...event.kind === \"click\" && event.pressX !== void 0 && event.pressY !== void 0 ? { press: { x: event.pressX, y: event.pressY } } : {},\n mods: modifierStateOf(event),\n ...resolved\n };\n // Only a `stage: 'press'` pointerdown reaches an immediate invoker: the\n // buffered copy matches `drag` specs, which are ongoing.\n case \"contextmenu\":\n return {\n ...at(event.x, event.y),\n clientX: event.clientX,\n clientY: event.clientY,\n affordance: event.affordance,\n bodyTarget: event.bodyTarget,\n bodyKind: event.bodyKind,\n mods: modifierStateOf(event),\n ...resolved\n };\n case \"pointerdown\":\n case \"longpress\":\n return {\n ...at(event.x, event.y),\n affordance: event.affordance,\n bodyTarget: event.bodyTarget,\n mods: modifierStateOf(event),\n ...resolved\n };\n case \"hover\":\n return {\n ...at(event.x, event.y),\n clientX: event.clientX,\n clientY: event.clientY,\n affordance: event.affordance,\n bodyTarget: event.bodyTarget,\n mods: modifierStateOf(event),\n held: event.held === true,\n ...resolved\n };\n case \"carry\":\n return {\n ...at(event.x, event.y),\n clientX: event.clientX,\n clientY: event.clientY,\n carry: { type: event.type, value: event.value },\n affordance: event.affordance,\n bodyTarget: event.bodyTarget,\n bodyKind: event.bodyKind,\n mods: modifierStateOf(event),\n ...resolved\n };\n case \"drop\":\n case \"paste\":\n return {\n items: event.items,\n via: event.kind,\n ...event.kind === \"drop\" ? at(event.x, event.y) : {},\n ...resolved\n };\n default:\n return resolved;\n }\n}\n\n// src/interactions/actions/betweenGestures.ts\nvar BETWEEN_GESTURES = [{ channel: \"*\", phase: \"initial\" }];\n\n// src/interactions/actions/toolOffhand.ts\nvar TOOL_OFFHAND_ID = \"tool.offhand\";\nfunction offhandKeyFor(trigger) {\n switch (trigger) {\n case \"space\":\n return \" \";\n case \"alt\":\n return \"Alt\";\n case \"ctrl\":\n return \"Control\";\n case \"meta\":\n return \"Meta\";\n case \"shift\":\n return \"Shift\";\n default:\n return trigger;\n }\n}\nfunction buildToolOffhandBindings(specs) {\n return specs.map(({ toolId, key }) => ({\n spec: { ...heldKeySpec(key), phase: BETWEEN_GESTURES },\n opts: { id: `${TOOL_OFFHAND_ID}.${toolId}`, params: { toolId } }\n }));\n}\nfunction heldKeySpec(key) {\n const isModifier = [key].flat().some((k) => MODIFIER_KEYS.has(k));\n return { kind: \"key-held\", key, mods: { ...isModifier ? ANY_MODS : SHIFT_OR_ALT } };\n}\nvar MODIFIER_KEYS = /* @__PURE__ */ new Set([\"Alt\", \"Control\", \"Meta\", \"Shift\"]);\nvar ANY_MODS = { alt: \"optional\", ctrl: \"optional\", meta: \"optional\", shift: \"optional\" };\nvar SHIFT_OR_ALT = { alt: \"optional\", shift: \"optional\" };\nfunction makeToolOffhandAction(bindings) {\n return {\n id: TOOL_OFFHAND_ID,\n label: \"Engage tool (offhand)\",\n defaultBinding: bindings,\n scope: \"hotkey\",\n invoker: {\n timing: \"ongoing\",\n start: (ctx, opts) => {\n const activeTool = ctx.deps.activeTool;\n const toolId = resolveParams(opts?.params)?.toolId;\n if (!activeTool || !toolId) return {};\n activeTool.pushHotkey(toolId);\n return {\n onEnd: () => {\n activeTool.popHotkey(toolId);\n }\n };\n }\n },\n requires: [\"activeTool\"]\n };\n}\nvar PREDICATE_TARGET = \"predicate\";\nfunction buildRouteRegistry(entries) {\n const out = [];\n for (const owner of entries) {\n for (const binding of owner.bindings ?? []) {\n const row = entryFor(owner.id, binding.spec, binding.actionId);\n if (!row) continue;\n const { views, params, yields } = binding.opts ?? {};\n out.push({\n ...row,\n ...views === void 0 ? {} : { views },\n ...params === void 0 ? {} : { params },\n ...yields ? { yields: true } : {}\n });\n }\n }\n return out;\n}\nfunction routesForSpec(spec) {\n const gesture = routeGestureForSpecKind(spec.kind);\n if (!gesture) return [];\n const descriptor = getGestureDescriptor(gesture);\n const modifiers = parseModSpec(\"mods\" in spec ? spec.mods : void 0);\n const phases = phaseAtomsForSpec(\"phase\" in spec ? spec.phase : void 0);\n const target = descriptor.hasTarget ? routeTargetForSpec(\"target\" in spec ? spec.target : void 0) ?? \"*\" : void 0;\n const args = descriptor.arg ? routeArgsForSpec(spec, descriptor.arg.default) : [void 0];\n const held = spec.kind === \"hover\" && spec.held !== void 0 ? { held: spec.held === true ? \"required\" : \"optional\" } : {};\n return args.map((arg) => formatRoute({ phases, gesture, arg, target, modifiers, ...held }));\n}\nfunction entryFor(ownerId, spec, actionId) {\n const gesture = routeGestureForSpecKind(spec.kind);\n if (!gesture) return null;\n const descriptor = getGestureDescriptor(gesture);\n return {\n ownerId,\n actionId,\n gesture,\n phase: phaseOf(\"phase\" in spec ? spec.phase : void 0),\n modifiers: parseModSpec(\"mods\" in spec ? spec.mods : void 0),\n arg: descriptor.arg ? argOf(spec, descriptor.arg.default) : void 0,\n ...descriptor.arg ? argAlternativesOf(spec, descriptor.arg.default) : {},\n target: descriptor.hasTarget ? routeTargetForSpec(\"target\" in spec ? spec.target : void 0) : void 0,\n spec\n };\n}\nfunction phaseOf(phase) {\n if (phase === void 0 || phase === \"*\") return \"any\";\n if (phase === \"initial\" || phase === \"engaged\") return phase;\n const distinct = new Set(phase.map((atom) => atom.phase));\n if (distinct.size !== 1) return \"any\";\n const only = [...distinct][0];\n return only === \"initial\" || only === \"engaged\" ? only : \"any\";\n}\nfunction parseModSpec(mods) {\n if (!mods) return {};\n const out = {};\n for (const [name, req] of Object.entries(mods)) {\n if (req === true) out[name] = \"required\";\n else if (req === \"optional\") out[name] = \"optional\";\n }\n return out;\n}\nfunction phaseAtomsForSpec(phase) {\n if (phase === void 0) return [{ channel: \"*\", phase: \"*\" }];\n if (phase === \"initial\" || phase === \"engaged\" || phase === \"*\") {\n return [{ channel: \"&\", phase }];\n }\n return phase;\n}\nfunction routeTargetForSpec(target) {\n if (target === void 0) return void 0;\n return typeof target === \"string\" ? target : PREDICATE_TARGET;\n}\nfunction routeArgsForSpec(spec, fallback) {\n if (\"key\" in spec) return Array.isArray(spec.key) ? spec.key : [spec.key];\n if (\"fingers\" in spec) return [String(spec.fingers)];\n if (\"direction\" in spec) return [spec.direction ?? fallback];\n if (spec.kind === \"hover\") return [spec.motion ?? fallback];\n if (\"types\" in spec) return [spec.types?.length ? spec.types.join(\"|\") : fallback];\n return [fallback];\n}\nfunction argOf(spec, fallback) {\n const args = routeArgsForSpec(spec, fallback);\n return args.length > 1 ? args.join(\"|\") : args[0];\n}\nfunction argAlternativesOf(spec, fallback) {\n const types = \"types\" in spec ? spec.types : void 0;\n const alts = types?.length ? types : routeArgsForSpec(spec, fallback).filter((a) => a !== void 0);\n return alts.length > 1 ? { argAlternatives: alts } : {};\n}\nvar SCOPE_PRIORITY = [\"hotkey\", \"active\", \"ambient\"];\nfunction targetConsultsAffordance(specTarget) {\n if (specTarget === void 0) return false;\n const form = parseTargetSpec(specTarget);\n if (form === null) return false;\n switch (form.form) {\n case \"predicate\":\n return form.kindOf.readsAffordance === true;\n case \"affordance\":\n return true;\n case \"body\":\n return false;\n case \"kind\":\n return false;\n default: {\n return false;\n }\n }\n}\nfunction specTargetOf(spec) {\n return \"target\" in spec ? spec.target : void 0;\n}\nfunction claimOf(e) {\n return \"affordance\" in e ? e.affordance : void 0;\n}\nfunction claimGestureOf(e) {\n switch (e.kind) {\n case \"pointerdown\":\n case \"click\":\n return \"pointer\";\n case \"doubleclick\":\n return \"doubleClick\";\n case \"contextmenu\":\n return \"contextMenu\";\n case \"longpress\":\n return \"longPress\";\n case \"wheel\":\n return \"wheel\";\n case \"pinch\":\n return \"pinch\";\n default:\n return null;\n }\n}\nfunction isExclusiveClaim(e) {\n const claim = claimOf(e);\n if (claim?.strength !== \"exclusive\") return false;\n const gesture = claimGestureOf(e);\n if (gesture === null) return false;\n return claim.claimedKinds === void 0 || claim.claimedKinds.includes(gesture);\n}\nvar warnedDeadClaims = /* @__PURE__ */ new Set();\nfunction reportDeadClaim(owner, warn) {\n if (!isDev()) return;\n const key = String(owner);\n if (warnedDeadClaims.has(key)) return;\n warnedDeadClaims.add(key);\n warn(\n `[weasel] exclusive claim by \"${key}\" matched no binding: no \\`affordance:\\` or \\`kindOf\\` target resolved against it, so the press was dropped.`\n );\n}\nfunction compareSpecificity(a, b) {\n const sa = specificity(a);\n const sb = specificity(b);\n for (let i = 0; i < sa.length; i++) {\n if (sa[i] !== sb[i]) return sb[i] - sa[i];\n }\n return 0;\n}\nfunction matchBest(e, bindings, isMac, engagedChannels) {\n const sorted = matchSorted(e, bindings, isMac, engagedChannels);\n return sorted.length > 0 ? sorted[0] : null;\n}\nfunction matchSorted(e, bindings, isMac, engagedChannels, warn = (m) => console.warn(m)) {\n return matchSortedWithBarred(e, bindings, isMac, engagedChannels, { warn }).matches;\n}\nfunction matchSortedWithBarred(e, bindings, isMac, engagedChannels, opts = {}) {\n const warn = opts.warn ?? ((m) => console.warn(m));\n const engaged = engagedChannels ?? EMPTY_ENGAGED;\n const exclusive = isExclusiveClaim(e);\n const admits = (sb) => !exclusive || targetConsultsAffordance(specTargetOf(sb.binding.spec));\n const out = [];\n const barred = [];\n for (const scope of SCOPE_PRIORITY) {\n const scopeMatches = [];\n const scopeBarred = [];\n for (const sb of bindings) {\n if (sb.scope !== scope) continue;\n const admitted2 = admits(sb);\n if (!admitted2 && !opts.collectBarred) continue;\n const phaseCtx = { selfChannel: sb.ownerId, engagedChannels: engaged };\n if (matchSpec(e, sb.binding.spec, isMac, phaseCtx)) {\n (admitted2 ? scopeMatches : scopeBarred).push({ binding: sb.binding, scope, ownerId: sb.ownerId });\n }\n }\n scopeMatches.sort((a, b) => compareSpecificity(a.binding.spec, b.binding.spec));\n scopeBarred.sort((a, b) => compareSpecificity(a.binding.spec, b.binding.spec));\n out.push(...scopeMatches);\n barred.push(...scopeBarred);\n }\n if (exclusive && out.length === 0 && bindings.length > 0) {\n reportDeadClaim(claimOf(e)?.owner, warn);\n }\n const owner = exclusive ? claimOf(e)?.owner : void 0;\n return { matches: out, barred, ...owner !== void 0 ? { claimOwner: owner } : {} };\n}\nvar EMPTY_ENGAGED = /* @__PURE__ */ new Set();\n\n// src/eligibility/deviceProfile.ts\nvar COARSE_TARGET_SCALE = 1.75;\nfunction resolveDeviceProfile(detected, overrides) {\n const coarsePointer = overrides?.coarsePointer ?? detected.coarsePointer;\n const canHover = overrides?.canHover ?? detected.canHover;\n const dpr = overrides?.dpr ?? detected.dpr;\n const targetScale = overrides?.targetScale ?? (coarsePointer ? COARSE_TARGET_SCALE : 1);\n return { coarsePointer, canHover, dpr, targetScale };\n}\nvar DEFAULT_DEVICE_PROFILE = resolveDeviceProfile({\n coarsePointer: false,\n canHover: true,\n dpr: 1\n});\n\n// src/eligibility/rule.ts\nvar ALWAYS = { all: [] };\nvar NEVER = { any: [] };\nfunction isAllRule(r) {\n return typeof r === \"object\" && r !== null && \"all\" in r;\n}\nfunction isAnyRule(r) {\n return typeof r === \"object\" && r !== null && \"any\" in r;\n}\nfunction isNotRule(r) {\n return typeof r === \"object\" && r !== null && \"not\" in r;\n}\nfunction isWhenRule(r) {\n return typeof r === \"object\" && r !== null && \"when\" in r;\n}\nfunction checkSelection(s, ctx) {\n if (s.empty !== void 0 && ctx.selection.length === 0 !== s.empty) return false;\n if (s.is !== void 0 && ctx.selection.length !== s.is) return false;\n if (s.atLeast !== void 0 && ctx.selection.length < s.atLeast) return false;\n return true;\n}\nfunction checkMode(m, ctx) {\n if (typeof m === \"string\") return ctx.mode === m;\n if (\"not\" in m) return ctx.mode !== m.not;\n if (\"in\" in m) return m.in.includes(ctx.mode);\n return false;\n}\nfunction checkCapability(c, ctx) {\n if (typeof c === \"string\") return ctx.allowedCapabilities.has(c);\n if (Array.isArray(c)) return c.every((tag) => ctx.allowedCapabilities.has(tag));\n if (\"in\" in c) return c.in.some((tag) => ctx.allowedCapabilities.has(tag));\n if (\"not\" in c) return !ctx.allowedCapabilities.has(c.not);\n return false;\n}\nfunction evaluateSelector(s, ctx) {\n if (s.selection !== void 0 && !checkSelection(s.selection, ctx)) return false;\n if (s.mode !== void 0 && !checkMode(s.mode, ctx)) return false;\n if (s.capability !== void 0 && !checkCapability(s.capability, ctx)) return false;\n if (s.gesturing !== void 0 && ctx.action.kind !== null !== s.gesturing) return false;\n if (s.actionIs !== void 0 && ctx.action.kind !== s.actionIs) return false;\n if (s.modifierHeld !== void 0 && !ctx.modifiers[s.modifierHeld]) return false;\n if (s.focused !== void 0 && ctx.focused !== s.focused) return false;\n if (s.hovering !== void 0 && ctx.hover !== null !== s.hovering) return false;\n if (s.hoveringSelected !== void 0) {\n const isHovSel = ctx.hover !== null && ctx.selection.includes(ctx.hover);\n if (isHovSel !== s.hoveringSelected) return false;\n }\n if (s.editingAnchors !== void 0 && (ctx.editingAnchors ?? false) !== s.editingAnchors) return false;\n if (s.zoomAtLeast !== void 0) {\n if (ctx.zoom === void 0 || ctx.zoom < s.zoomAtLeast) return false;\n }\n if (s.resizable !== void 0) {\n const resizable = ctx.selectionResizable ?? true;\n if (resizable !== s.resizable) return false;\n }\n if (s.coarsePointer !== void 0) {\n const device = ctx.device ?? DEFAULT_DEVICE_PROFILE;\n if (device.coarsePointer !== s.coarsePointer) return false;\n }\n if (s.canHover !== void 0) {\n const device = ctx.device ?? DEFAULT_DEVICE_PROFILE;\n if (device.canHover !== s.canHover) return false;\n }\n return true;\n}\nvar MAX_RULE_DEPTH = 10;\nfunction describeValue(value, depth) {\n if (depth > MAX_RULE_DEPTH) return \"\\u2026\";\n if (value === null || typeof value !== \"object\") return String(value);\n if (Array.isArray(value)) return value.map((v) => describeValue(v, depth + 1)).join(\"+\");\n const obj = value;\n const keys = Object.keys(obj);\n if (keys.length === 1 && keys[0] === \"not\") return `not(${describeValue(obj.not, depth + 1)})`;\n if (keys.length === 1 && keys[0] === \"in\") return `in(${describeValue(obj.in, depth + 1)})`;\n return keys.map((k) => `${k}=${describeValue(obj[k], depth + 1)}`).join(\",\");\n}\nfunction describeSelector(s, depth) {\n const keys = Object.keys(s);\n if (keys.length === 0) return \"*\";\n return keys.map((k) => `${k}:${describeValue(s[k], depth + 1)}`).join(\" & \");\n}\nfunction describeAt(rule, depth) {\n if (depth > MAX_RULE_DEPTH) return \"\\u2026\";\n if (isAllRule(rule)) return `all(${rule.all.map((r) => describeAt(r, depth + 1)).join(\", \")})`;\n if (isAnyRule(rule)) return `any(${rule.any.map((r) => describeAt(r, depth + 1)).join(\", \")})`;\n if (isNotRule(rule)) return `not(${describeAt(rule.not, depth + 1)})`;\n if (isWhenRule(rule)) return `when(${rule.when.name || \"\\u0192\"})`;\n return describeSelector(rule, depth);\n}\nfunction describeRule(rule) {\n return describeAt(rule, 0);\n}\nfunction evaluate(rule, ctx) {\n if (isAllRule(rule)) return rule.all.every((r) => evaluate(r, ctx));\n if (isAnyRule(rule)) return rule.any.some((r) => evaluate(r, ctx));\n if (isNotRule(rule)) return !evaluate(rule.not, ctx);\n if (isWhenRule(rule)) return rule.when(ctx);\n return evaluateSelector(rule, ctx);\n}\n\n// src/eligibility/exclusive.ts\nfunction rulesExclusive(a, b) {\n if (isAllRule(a)) return a.all.some((r) => rulesExclusive(r, b));\n if (isAllRule(b)) return b.all.some((r) => rulesExclusive(a, r));\n if (isAnyRule(a)) return a.any.every((r) => rulesExclusive(r, b));\n if (isAnyRule(b)) return b.any.every((r) => rulesExclusive(a, r));\n if (isNotRule(a)) return rulesEqual(a.not, b);\n if (isNotRule(b)) return rulesEqual(b.not, a);\n if (isWhenRule(a) || isWhenRule(b)) return false;\n return selectorsExclusive(a, b);\n}\nfunction ruleCanHoldIn(rule, mode) {\n return decideIn(rule, mode) !== false;\n}\nfunction decideIn(rule, mode) {\n if (isAllRule(rule)) return all3(rule.all.map((r) => decideIn(r, mode)));\n if (isAnyRule(rule)) {\n const parts = rule.any.map((r) => decideIn(r, mode));\n if (parts.includes(true)) return true;\n return parts.every((p) => p === false) ? false : void 0;\n }\n if (isNotRule(rule)) {\n const inner = decideIn(rule.not, mode);\n return inner === void 0 ? void 0 : !inner;\n }\n if (isWhenRule(rule)) return void 0;\n const ctx = { mode: mode.id, allowedCapabilities: mode.allowedCapabilities };\n const settled = [\n rule.mode === void 0 ? true : checkMode(rule.mode, ctx),\n rule.capability === void 0 ? true : checkCapability(rule.capability, ctx)\n ];\n const { mode: _m, capability: _c, ...rest } = rule;\n return all3([...settled, Object.keys(rest).length > 0 ? void 0 : true]);\n}\nfunction all3(parts) {\n if (parts.includes(false)) return false;\n return parts.every((p) => p === true) ? true : void 0;\n}\nvar BOOLEAN_KEYS = [\n \"gesturing\",\n \"focused\",\n \"hovering\",\n \"hoveringSelected\",\n \"editingAnchors\",\n \"resizable\",\n \"coarsePointer\",\n \"canHover\"\n];\nfunction selectorsExclusive(a, b) {\n for (const key of BOOLEAN_KEYS) {\n if (a[key] !== void 0 && b[key] !== void 0 && a[key] !== b[key]) return true;\n }\n if (a.actionIs !== void 0 && b.actionIs !== void 0 && a.actionIs !== b.actionIs) return true;\n if (a.actionIs !== void 0 && b.gesturing === false) return true;\n if (b.actionIs !== void 0 && a.gesturing === false) return true;\n if (a.mode !== void 0 && b.mode !== void 0 && modesExclusive(a.mode, b.mode)) return true;\n if (a.selection && b.selection && selectionsExclusive(a.selection, b.selection)) return true;\n if (a.capability !== void 0 && b.capability !== void 0 && capabilitiesExclusive(a.capability, b.capability)) return true;\n return false;\n}\nfunction modeSet(m) {\n if (typeof m === \"string\") return { in: /* @__PURE__ */ new Set([m]) };\n if (\"not\" in m) return { notIn: /* @__PURE__ */ new Set([m.not]) };\n return { in: new Set(m.in) };\n}\nfunction modesExclusive(a, b) {\n const x = modeSet(a);\n const y = modeSet(b);\n if (\"in\" in x && \"in\" in y) return ![...x.in].some((m) => y.in.has(m));\n if (\"in\" in x && \"notIn\" in y) return [...x.in].every((m) => y.notIn.has(m));\n if (\"notIn\" in x && \"in\" in y) return [...y.in].every((m) => x.notIn.has(m));\n return false;\n}\nfunction selectionRange(s) {\n let lo = 0;\n let hi = Infinity;\n if (s.empty === true) hi = 0;\n if (s.empty === false) lo = 1;\n if (s.is !== void 0) {\n lo = Math.max(lo, s.is);\n hi = Math.min(hi, s.is);\n }\n if (s.atLeast !== void 0) lo = Math.max(lo, s.atLeast);\n return [lo, hi];\n}\nfunction selectionsExclusive(a, b) {\n const [alo, ahi] = selectionRange(a);\n const [blo, bhi] = selectionRange(b);\n return Math.max(alo, blo) > Math.min(ahi, bhi);\n}\nfunction capabilityTerms(c) {\n if (typeof c === \"string\") return { requires: [c] };\n if (Array.isArray(c)) return { requires: c };\n if (\"not\" in c) return { requires: [], forbids: c.not };\n return { requires: [] };\n}\nfunction capabilitiesExclusive(a, b) {\n const x = capabilityTerms(a);\n const y = capabilityTerms(b);\n return x.forbids !== void 0 && y.requires.includes(x.forbids) || y.forbids !== void 0 && x.requires.includes(y.forbids);\n}\nfunction rulesEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\" || a === null || b === null) return false;\n if (Array.isArray(a) !== Array.isArray(b)) return false;\n const ka = Object.keys(a);\n const kb = Object.keys(b);\n if (ka.length !== kb.length) return false;\n return ka.every((k) => rulesEqual(a[k], b[k]));\n}\nvar DEFAULT_ALLOWED_CAPABILITIES = activeModeOf(NORMAL).allowedCapabilities;\nfunction buildRuleCtx(args) {\n return {\n focused: args.focused,\n selection: args.selection,\n multiActive: args.multiActive,\n modifiers: args.modifiers,\n action: args.action,\n hover: args.hover,\n zoom: args.zoom,\n mode: args.mode,\n allowedCapabilities: args.allowedCapabilities,\n selectionResizable: args.selectionResizable,\n editingAnchors: args.editingAnchors,\n device: args.device,\n ...args.hiddenChrome ? { hiddenChrome: args.hiddenChrome } : {}\n };\n}\n\n// src/interactions/dispatcher/gestureIds.ts\nfunction pointerGestureId(pointerId) {\n return `pointer-${pointerId ?? \"mouse\"}`;\n}\nfunction carryGestureId(pointerId) {\n return `carry-${pointerId ?? \"mouse\"}`;\n}\nfunction multiTouchGestureId(fingers) {\n return `multitouch-${fingers}`;\n}\nfunction isMultiTouchGestureId(gestureId) {\n return gestureId.startsWith(\"multitouch-\");\n}\nfunction isKeyHeldGestureId(gestureId) {\n return gestureId.startsWith(\"key-held-\");\n}\nfunction gestureIdFor(event) {\n if (event.kind === \"key-held\") {\n return `key-held-${event.code ?? event.key}`;\n }\n if (event.kind === \"pointerdown\" || event.kind === \"pointermove\" || event.kind === \"pointerup\" || event.kind === \"pointercancel\") {\n return pointerGestureId(event.pointerId);\n }\n if (event.kind === \"multitouch\") {\n return multiTouchGestureId(event.fingers);\n }\n if (event.kind === \"carry\") {\n return carryGestureId(event.pointerId);\n }\n return `ongoing-${event.kind}`;\n}\n\n// src/contributions/eligibility.ts\nfunction liveScope(id, eligibility, state) {\n const tags = eligibility.capabilities;\n if (tags && state.allows && !state.allows(tags)) return null;\n if (eligibility.keymap) return state.openKeymap === id ? \"hotkey\" : null;\n if (state.engagedIds?.has(id)) return \"hotkey\";\n if (eligibility.focus && state.focusedId === id) return \"active\";\n if (eligibility.always || eligibility.claimed) return \"ambient\";\n return null;\n}\n\n// src/contributions/heldModifier.ts\nvar MODIFIER_OF = {\n alt: \"alt\",\n Alt: \"alt\",\n ctrl: \"ctrl\",\n Control: \"ctrl\",\n meta: \"meta\",\n Meta: \"meta\",\n shift: \"shift\",\n Shift: \"shift\"\n};\nfunction heldModifierOf(trigger) {\n return trigger === void 0 ? null : MODIFIER_OF[trigger] ?? null;\n}\nvar loosened = /* @__PURE__ */ new WeakMap();\nfunction withHeldModifier(binding, modifier) {\n const mods = binding.spec.mods;\n if (mods?.[modifier] !== void 0) return binding;\n if ((modifier === \"ctrl\" || modifier === \"meta\") && mods?.mod !== void 0) return binding;\n let byModifier = loosened.get(binding);\n if (!byModifier) loosened.set(binding, byModifier = {});\n return byModifier[modifier] ??= {\n ...binding,\n spec: { ...binding.spec, mods: { ...mods, [modifier]: \"optional\" } }\n };\n}\n\n// src/contributions/assemble.ts\nfunction scopeBindings(entries, state, overrides = NO_OVERRIDES) {\n const out = [];\n for (const entry of entries) {\n const scope = liveScope(entry.id, entry.eligibility ?? {}, state);\n if (scope === null) continue;\n const held = scope === \"hotkey\" ? heldModifierOf(entry.eligibility?.offhand) : null;\n for (const binding of overriddenBindings(entry.bindings ?? [], entry.id, overrides)) {\n out.push({ binding: held ? withHeldModifier(binding, held) : binding, scope, ownerId: entry.id });\n }\n }\n return out;\n}\nfunction assembleEntries(entries, inputs) {\n const all = [...entries];\n const ordered = [];\n for (let i = inputs.hotkeyStack.length - 1; i >= 0; i--) {\n const entry = all.find((e) => e.id === inputs.hotkeyStack[i]);\n if (entry && !ordered.includes(entry)) ordered.push(entry);\n }\n for (const entry of all) {\n if (!ordered.includes(entry)) ordered.push(entry);\n }\n const allowed = inputs.allowedCapabilities;\n return {\n ordered,\n state: {\n focusedId: inputs.focusedId,\n engagedIds: new Set(inputs.hotkeyStack),\n ...inputs.openKeymap ? { openKeymap: inputs.openKeymap } : {},\n ...allowed ? { allows: (tags) => capabilitiesAllowed(allowed, tags) } : {}\n }\n };\n}\nfunction createTraceRing(limit = 200, dev = isDev()) {\n const entries = [];\n const pushed = createEmitter();\n let total = 0;\n let watchers = 0;\n const recording = () => dev || watchers > 0;\n return {\n recording,\n push(entry) {\n if (!recording()) return;\n entries.push(entry);\n if (entries.length > limit) entries.shift();\n total++;\n pushed.emit();\n },\n since(cursor) {\n const first = total - entries.length;\n return { entries: entries.slice(Math.max(cursor, first) - first), cursor: total };\n },\n watch() {\n watchers++;\n let released = false;\n return () => {\n if (released) return;\n released = true;\n watchers--;\n };\n },\n subscribe: pushed.subscribe\n };\n}\nfunction createDispatchTrace(limit, dev) {\n const ring = createTraceRing(limit, dev);\n let explain2 = null;\n return {\n ...ring,\n recordModeSwitch(mode, from, to, detail) {\n ring.push({ kind: \"mode\", ts: Date.now(), mode, from, to, ...detail !== void 0 ? { detail } : {} });\n },\n setLive(next) {\n explain2 = next;\n },\n live: () => explain2?.() ?? null\n };\n}\n\n// src/interactions/dispatcher/ranking.ts\nfunction liveInView(binding, view) {\n const views = binding.opts?.views;\n return views === void 0 || views.includes(view);\n}\nfunction liveForKeys(binding, reach) {\n if (reach === void 0) return true;\n return binding.opts?.over ? reach.over : reach.held;\n}\nfunction namesView(binding, view) {\n return binding.opts?.views?.includes(view) ?? false;\n}\nfunction preferViewScoped(matches, view) {\n const named = [];\n const rest = [];\n for (const m of matches) {\n (namesView(m.binding, view) ? named : rest).push(m);\n }\n return named.length === 0 ? [...matches] : [...named, ...rest];\n}\nfunction ruleCtxOf(ctx) {\n const r = ctx.getRuleCtx?.();\n return r ? { ...r, viewId: ctx.viewId ?? null } : void 0;\n}\nfunction eligibleToRule(eligible) {\n return typeof eligible === \"function\" ? eligible.rule : eligible;\n}\nfunction isEligible(action, ruleCtx) {\n if (!action.eligible) return true;\n return evaluate(eligibleToRule(action.eligible), ruleCtx);\n}\nfunction describeEligible(eligible) {\n return describeRule(eligibleToRule(eligible));\n}\nfunction preferContextual(matches, actionLookup, holds, view) {\n const out = [];\n let run = [];\n const flush = () => {\n const gated = run.filter((m) => {\n const action = actionLookup(m.binding.actionId);\n return action?.eligible !== void 0 && holds(action);\n });\n out.push(...gated, ...run.filter((m) => !gated.includes(m)));\n run = [];\n };\n for (const m of matches) {\n const head = run[0];\n if (head && (head.scope !== m.scope || namesView(head.binding, view) !== namesView(m.binding, view) || !sameSpecificity(head.binding.spec, m.binding.spec))) flush();\n run.push(m);\n }\n flush();\n return out;\n}\nvar SPECIFICITY_PARTS = [\"target\", \"mods\", \"phase\", \"exact\"];\nfunction placedBy(prev, cur, view, contextual) {\n if (namesView(prev.binding, view) !== namesView(cur.binding, view)) return { step: \"view\" };\n if (prev.scope !== cur.scope) return { step: \"tier\" };\n const sp = specificity(prev.binding.spec);\n const sc = specificity(cur.binding.spec);\n const i = sp.findIndex((v, k) => v !== sc[k]);\n if (i >= 0) return { step: \"specificity\", part: SPECIFICITY_PARTS[i] };\n return contextual ? { step: \"context\" } : { step: \"order\" };\n}\nfunction sameSpecificity(a, b) {\n const sa = specificity(a);\n const sb = specificity(b);\n return sa.every((v, i) => v === sb[i]);\n}\n\n// src/interactions/dispatcher/buildDispatchRecord.ts\nfunction buildDispatchRecord(r, walked, event, ctx, predicted, outcome) {\n const view = ctx.viewId ?? null;\n const candidates = /* @__PURE__ */ new Map();\n const candidateOf = (m) => {\n let c = candidates.get(m);\n if (!c) {\n const eligible = r.actionMap.get(m.binding.actionId)?.eligible;\n c = {\n actionId: m.binding.actionId,\n routes: routesForSpec(m.binding.spec),\n scope: m.scope,\n ownerId: m.ownerId,\n namesView: namesView(m.binding, view),\n specificity: specificity(m.binding.spec),\n ...eligible !== void 0 ? { eligible: describeEligible(eligible) } : {}\n };\n candidates.set(m, c);\n }\n return c;\n };\n const dropped = [\n ...r.barred.map((m) => ({\n candidate: candidateOf(m),\n filter: \"claim\",\n ...r.claimOwner !== void 0 ? { owner: r.claimOwner } : {}\n }))\n ];\n for (const m of r.ordered) {\n if (r.eligible(m)) continue;\n const c = candidateOf(m);\n dropped.push({ candidate: c, filter: \"ineligible\", rule: c.eligible ?? \"\" });\n }\n const gated = (m) => r.actionMap.get(m.binding.actionId)?.eligible !== void 0;\n const ranked = walked.steps.map(({ match, step }, i) => {\n const prev = walked.steps[i - 1]?.match;\n return {\n candidate: candidateOf(match),\n placedBy: prev ? placedBy(prev, match, view, r.ruleCtx !== void 0 && gated(prev) && !gated(match)) : { step: \"first\" },\n walk: step\n };\n });\n const eventKey = event.kind === \"key\" || event.kind === \"key-held\" ? event.key : void 0;\n const world = worldPointOf(event);\n return {\n kind: \"dispatch\",\n ts: Date.now(),\n input: {\n eventKind: event.kind,\n ...eventKey !== void 0 ? { key: eventKey } : {},\n modifiers: modifierStateOf(event),\n viewId: view,\n ...world !== void 0 ? { world } : {},\n ...r.ruleCtx !== void 0 ? { mode: r.ruleCtx.mode } : {}\n },\n matched: [...r.ordered, ...r.barred].map(candidateOf),\n dropped,\n ranked,\n predicted,\n fired: walked.winner?.action.id ?? null,\n outcome\n };\n}\nfunction createGestureFacts() {\n const origins = /* @__PURE__ */ new Map();\n const points = /* @__PURE__ */ new Map();\n const startSpreads = /* @__PURE__ */ new Map();\n const turns = /* @__PURE__ */ new Map();\n const roles = /* @__PURE__ */ new Map();\n return {\n begin(gestureId, event, roleKeys) {\n if (roleKeys) roles.set(gestureId, roleKeys);\n if (event.kind === \"pointerdown\") {\n origins.set(gestureId, {\n x: event.x ?? 0,\n y: event.y ?? 0,\n ...event.clientX !== void 0 ? { clientX: event.clientX } : {},\n ...event.clientY !== void 0 ? { clientY: event.clientY } : {}\n });\n points.set(gestureId, [{ x: event.x ?? 0, y: event.y ?? 0, ...stylusOf(event) }]);\n }\n if (event.kind === \"multitouch\" && event.spread !== void 0) {\n startSpreads.set(gestureId, event.spread);\n }\n if (event.kind === \"multitouch\" && event.angle !== void 0) {\n turns.set(gestureId, { last: event.angle, total: 0 });\n }\n },\n sample(gestureId, event) {\n points.get(gestureId)?.push({ x: event.x, y: event.y, ...stylusOf(event) });\n },\n resumeTrail(gestureId, trail) {\n if (points.has(gestureId)) points.set(gestureId, [...trail]);\n },\n turn(gestureId, event) {\n const turn = turns.get(gestureId);\n if (!turn || event.angle === void 0) return;\n const step = event.angle - turn.last;\n turn.total += step - 360 * Math.round(step / 360);\n turn.last = event.angle;\n },\n of(gestureId) {\n if (gestureId === void 0) return {};\n const origin = origins.get(gestureId);\n const trail = points.get(gestureId);\n const startSpread = startSpreads.get(gestureId);\n const turn = turns.get(gestureId);\n const roleKeys = roles.get(gestureId);\n return {\n ...roleKeys !== void 0 ? { roleKeys } : {},\n ...origin !== void 0 ? { origin } : {},\n ...trail !== void 0 ? { points: trail } : {},\n ...startSpread !== void 0 ? { startSpread } : {},\n ...turn !== void 0 ? { rotation: turn.total } : {}\n };\n },\n drop(gestureId) {\n origins.delete(gestureId);\n points.delete(gestureId);\n startSpreads.delete(gestureId);\n turns.delete(gestureId);\n roles.delete(gestureId);\n },\n clear() {\n origins.clear();\n points.clear();\n startSpreads.clear();\n turns.clear();\n roles.clear();\n }\n };\n}\nvar EMPTY_ENGAGED2 = /* @__PURE__ */ new Set();\nvar UNOWNED_CHANNEL = \"*unowned\";\nfunction createInFlightGestures() {\n const handles = /* @__PURE__ */ new Map();\n const owners = /* @__PURE__ */ new Map();\n const actions = /* @__PURE__ */ new Map();\n const over = /* @__PURE__ */ new Set();\n const forget = (gestureId) => {\n handles.delete(gestureId);\n owners.delete(gestureId);\n actions.delete(gestureId);\n over.delete(gestureId);\n };\n return {\n handles,\n open(gestureId, handle, ownerId, action, opensOver) {\n handles.set(gestureId, handle);\n owners.set(gestureId, ownerId);\n if (action) actions.set(gestureId, action);\n if (opensOver) over.add(gestureId);\n },\n openedOver: (gestureId) => over.has(gestureId),\n take(gestureId) {\n const handle = handles.get(gestureId);\n forget(gestureId);\n return handle;\n },\n takeAll() {\n const all = [...handles];\n handles.clear();\n owners.clear();\n actions.clear();\n over.clear();\n return all;\n },\n engagedOwners() {\n if (owners.size === 0) return EMPTY_ENGAGED2;\n const out = /* @__PURE__ */ new Set();\n for (const [id, owner] of owners) {\n if (owner != null) out.add(owner);\n else if (!isKeyHeldGestureId(id)) out.add(UNOWNED_CHANNEL);\n }\n return out;\n },\n cursor() {\n let cursor = null;\n for (const [id, handle] of handles) {\n const action = actions.get(id);\n const spec = handle.cursor?.() ?? action?.activeCursor ?? actionCursor(action);\n if (spec !== void 0 && resolveCursor(spec)) cursor = spec;\n }\n return cursor;\n },\n latest() {\n let lastId = null;\n let lastHandle = null;\n for (const [id, handle] of handles) {\n lastId = id;\n lastHandle = handle;\n }\n if (lastHandle === null) return { kind: null, id: null };\n return { kind: lastHandle.kind ?? null, id: lastId };\n }\n };\n}\nfunction isEmptyOngoingHandle(h) {\n return !h.onMove && !h.onEnd && !h.overlay && !h.previewIds && !h.previewPose;\n}\n\n// src/interactions/dispatcher/deferredStart.ts\nfunction deferredStart(start, thresholdPx) {\n let inner = null;\n const onMove = (ctx) => {\n if (!inner) {\n const travel = ctx.drag?.screenDelta;\n if (!travel || Math.hypot(travel.x, travel.y) < thresholdPx) return;\n inner = start();\n if (isEmptyOngoingHandle(inner)) return \"pass\";\n }\n return inner.onMove?.(ctx);\n };\n const onEnd = (ctx, reason) => {\n inner?.onEnd?.(ctx, reason);\n };\n const read2 = (key) => {\n if (key === \"onMove\") return onMove;\n if (key === \"onEnd\") return onEnd;\n if (!inner) return void 0;\n const value = Reflect.get(inner, key);\n return typeof value === \"function\" ? value.bind(inner) : value;\n };\n return new Proxy({}, {\n get: (_target, key) => read2(key),\n has: (_target, key) => read2(key) !== void 0\n });\n}\n\n// src/interactions/dispatcher/invocationCtx.ts\nfunction uiInvocationCtx(deps, params) {\n return {\n world: { x: 0, y: 0 },\n modifiers: { alt: false, ctrl: false, meta: false, shift: false },\n deps,\n ...params !== void 0 ? { params } : {}\n };\n}\nfunction clientPoint(ev) {\n const cx = ev.clientX;\n const cy = ev.clientY;\n return cx !== void 0 && cy !== void 0 ? { x: cx, y: cy } : void 0;\n}\nfunction pressDrag(event) {\n const sx = event.x ?? (event.kind === \"click\" ? event.pressX : void 0) ?? 0;\n const sy = event.y ?? (event.kind === \"click\" ? event.pressY : void 0) ?? 0;\n const affordance = event.kind === \"pointerdown\" ? event.affordance : void 0;\n return {\n world: { x: sx, y: sy },\n drag: {\n start: { x: sx, y: sy },\n current: { x: sx, y: sy },\n delta: { x: 0, y: 0 },\n ...affordance !== void 0 ? { affordance } : {}\n }\n };\n}\nfunction localDelta(toLocal, fromX, fromY, toX, toY) {\n if (!toLocal) return { x: toX - fromX, y: toY - fromY };\n const a = toLocal(fromX, fromY);\n const b = toLocal(toX, toY);\n return { x: b.x - a.x, y: b.y - a.y };\n}\nfunction pumpDrag(event, facts, toLocal) {\n const cx = event.x;\n const cy = event.y;\n const origin = facts.origin;\n const ox = origin?.x ?? cx;\n const oy = origin?.y ?? cy;\n const live = facts.points;\n const points = live && event.kind === \"pointerup\" ? [...live] : live;\n const eventClientX = event.clientX;\n const eventClientY = event.clientY;\n const hasClient = eventClientX !== void 0 && eventClientY !== void 0 && origin?.clientX !== void 0 && origin?.clientY !== void 0;\n return {\n world: { x: cx, y: cy },\n drag: {\n start: { x: ox, y: oy },\n current: { x: cx, y: cy },\n delta: { x: cx - ox, y: cy - oy },\n ...hasClient ? { screenDelta: localDelta(toLocal, origin.clientX, origin.clientY, eventClientX, eventClientY) } : {},\n ...points !== void 0 ? { points } : {}\n }\n };\n}\nfunction multiTouchOf(event, facts) {\n const centroid = event.centroid ?? { x: 0, y: 0 };\n const spread = event.spread ?? 1;\n const { startSpread } = facts;\n return {\n centroid,\n spread,\n rotation: facts.rotation ?? 0,\n // Pinch geometry, on a move of a running gesture.\n ...startSpread !== void 0 && event.spread !== void 0 ? { pinch: { startSpread, currentSpread: spread, centroid } } : {}\n };\n}\nfunction buildInvocationCtx(event, deps, viewId, facts = {}, toLocal) {\n const base = {\n world: { x: 0, y: 0 },\n modifiers: { alt: event.altKey, ctrl: event.ctrlKey, meta: event.metaKey, shift: event.shiftKey },\n deps,\n ...viewId !== void 0 ? { viewId } : {}\n };\n const screen = clientPoint(event);\n if (screen) base.screen = screen;\n if (facts.roleKeys) base.roles = resolveRoles(facts.roleKeys, base.modifiers, false);\n if (event.kind === \"key\") {\n base.key = { key: event.key, repeat: event.repeat ?? false };\n } else if (event.kind === \"key-held\") {\n base.key = { key: event.key, repeat: false };\n } else if (event.kind === \"wheel\") {\n base.wheel = { deltaX: event.deltaX, deltaY: event.deltaY, deltaZ: 0 };\n if (event.x !== void 0 && event.y !== void 0) base.world = { x: event.x, y: event.y };\n } else if (event.kind === \"pinch\") {\n base.pinch = { scale: event.scale, rotation: event.rotation };\n } else if (event.kind === \"pointerdown\" || event.kind === \"click\" || event.kind === \"doubleclick\" || event.kind === \"contextmenu\") {\n Object.assign(base, pressDrag(event));\n } else if (event.kind === \"pointermove\" || event.kind === \"pointerup\") {\n Object.assign(base, pumpDrag(event, facts, toLocal));\n } else if (event.kind === \"multitouch\") {\n base.multiTouch = multiTouchOf(event, facts);\n } else if (event.kind === \"carry\") {\n base.world = { x: event.x, y: event.y };\n base.carry = { type: event.type, value: event.value };\n }\n return base;\n}\n\n// src/interactions/dispatcher/gestureRun.ts\nvar ctxFor = (run, event, deps, gestureId) => buildInvocationCtx(event, deps, run.viewId(), run.facts.of(gestureId), run.toLocal());\nfunction runOnEnd(gestureId, handle, endCtx, reason) {\n try {\n handle.onEnd?.(endCtx, reason);\n } catch (err) {\n console.error(`weasel dispatcher: gesture \"${gestureId}\" threw on onEnd`, err);\n }\n}\nfunction endGesture(run, gestureId, event, reason) {\n if (!run.inFlight.handles.has(gestureId)) return false;\n const endCtx = ctxFor(run, event, {}, gestureId);\n const handle = run.inFlight.take(gestureId);\n run.facts.drop(gestureId);\n run.opened.delete(gestureId);\n runOnEnd(gestureId, handle, endCtx, reason);\n return true;\n}\nfunction endPassed(run, event) {\n const gestureId = gestureIdFor(event);\n const opened = run.opened.get(gestureId);\n if (opened === void 0) return null;\n const trail = [...run.facts.of(gestureId).points ?? []];\n endGesture(run, gestureId, event, \"cancel\");\n return { event: opened.event, skip: /* @__PURE__ */ new Set([...opened.passed, opened.action]), trail };\n}\nfunction notePassed(run, event, passed) {\n const gestureId = gestureIdFor(event);\n const opened = run.opened.get(gestureId);\n if (opened === void 0) return;\n opened.passed = /* @__PURE__ */ new Set([...opened.passed, ...passed.skip]);\n run.facts.resumeTrail(gestureId, passed.trail.slice(0, -1));\n}\nfunction endMultiTouch(run, event, reason, except) {\n let ended = false;\n for (const id of [...run.inFlight.handles.keys()]) {\n if (isMultiTouchGestureId(id) && id !== except) ended = endGesture(run, id, event, reason) || ended;\n }\n return ended;\n}\nfunction endAllGestures(run, reason) {\n const stubCtx = uiInvocationCtx({});\n const ending = run.inFlight.takeAll();\n run.facts.clear();\n run.opened.clear();\n for (const [gestureId, handle] of ending) runOnEnd(gestureId, handle, stubCtx, reason);\n}\nfunction pumpGesture(run, event, reach) {\n const { inFlight } = run;\n const ended = (reason) => endGesture(run, gestureIdFor(event), event, reason) ? \"handled\" : \"unhandled\";\n if (event.kind === \"key-held\" && event.phase === \"up\") {\n if (reach !== void 0 && !(inFlight.openedOver(gestureIdFor(event)) ? reach.over : reach.held)) return \"unhandled\";\n return ended(\"commit\");\n }\n if (event.kind === \"key-held\" && event.phase === \"down\") {\n return inFlight.handles.has(gestureIdFor(event)) ? \"handled\" : void 0;\n }\n if (event.kind === \"pointermove\") {\n const gestureId = gestureIdFor(event);\n const handle = inFlight.handles.get(gestureId);\n if (!handle) return \"unhandled\";\n run.facts.sample(gestureId, event);\n if (!handle.onMove) return \"unhandled\";\n const said = handle.onMove(ctxFor(run, event, {}, gestureId));\n return said === \"pass\" && run.opened.has(gestureId) ? \"pass\" : \"handled\";\n }\n if (event.kind === \"wheel\") {\n for (const [gestureId, handle] of [...inFlight.handles].reverse()) {\n if (handle.onWheel?.(ctxFor(run, event, {}, gestureId)) === true) return \"handled\";\n }\n return void 0;\n }\n if (event.kind === \"carry\") return pumpCarry(run, event);\n if (event.kind === \"pointerup\") return ended(\"commit\");\n if (event.kind === \"pointercancel\") return ended(\"cancel\");\n if (event.kind === \"multitouch\" && event.end !== void 0) {\n return endMultiTouch(run, event, event.end) ? \"handled\" : \"unhandled\";\n }\n if (event.kind === \"multitouch\" && event.centroid !== void 0) {\n const gestureId = gestureIdFor(event);\n const handle = inFlight.handles.get(gestureId);\n if (handle?.onMove) {\n run.facts.turn(gestureId, event);\n handle.onMove(ctxFor(run, event, {}, gestureId));\n return \"handled\";\n }\n endMultiTouch(run, event, \"cancel\", gestureId);\n }\n return void 0;\n}\nfunction pumpCarry(run, event) {\n if (event.stage === \"enter\") return void 0;\n const gestureId = gestureIdFor(event);\n const handle = run.inFlight.handles.get(gestureId);\n if (!handle) return event.stage === \"leave\" ? \"unhandled\" : void 0;\n if (event.stage === \"move\") {\n handle.onMove?.(ctxFor(run, event, {}, gestureId));\n return \"handled\";\n }\n return endGesture(run, gestureId, event, event.stage === \"drop\" ? \"commit\" : \"cancel\") ? \"handled\" : \"unhandled\";\n}\nfunction carryStageFits(event, timing) {\n if (event.kind !== \"carry\") return true;\n return timing === \"immediate\" ? event.stage === \"drop\" : event.stage === \"enter\" || event.stage === \"move\";\n}\nfunction invokeAction(run, event, match, action, deps) {\n if (action.invoker && !carryStageFits(event, action.invoker.timing)) return \"empty-handle\";\n if (action.invoker?.timing === \"immediate\") {\n try {\n const params = immediateParams(event, resolveParams(match.binding.opts?.params));\n if (action.invoker.run(deps, params) === \"pass\") return \"empty-handle\";\n } catch (err) {\n console.error(`weasel dispatcher: action \"${action.id}\" invoker threw`, err);\n }\n return \"fired\";\n }\n if (action.invoker?.timing === \"ongoing\") {\n if (event.kind === \"hover\" || event.kind === \"pointerdown\" && event.stage === \"press\") {\n const spec = event.kind === \"hover\" ? \"hover spec, which has no press to own\" : \"pointerDown spec, which fires at press time\";\n console.error(\n `weasel dispatcher: action \"${action.id}\" has an ongoing invoker but is bound to a ${spec}. Bind it to a drag spec, or give the action an immediate invoker.`\n );\n return \"misbound\";\n }\n const gestureId = gestureIdFor(event);\n const roleKeys = roleKeysOf(action.modifierRoles, match.binding.opts?.roles);\n run.facts.begin(gestureId, event, roleKeys && platformRoleKeys(roleKeys, run.isMac()));\n const { invoker } = action;\n const pressCtx = ctxFor(run, event, deps, gestureId);\n const begin = () => invoker.start(pressCtx, match.binding.opts);\n const threshold = match.binding.opts?.dragThresholdPx ?? invoker.dragThresholdPx;\n const handle = event.kind === \"pointerdown\" && threshold !== void 0 && threshold > 0 ? deferredStart(begin, threshold) : begin();\n if (isEmptyOngoingHandle(handle)) {\n run.facts.drop(gestureId);\n return \"empty-handle\";\n }\n run.inFlight.open(gestureId, handle, match.ownerId, action, match.binding.opts?.over === true);\n if (event.kind === \"pointerdown\") run.opened.set(gestureId, { event, action: action.id, passed: /* @__PURE__ */ new Set() });\n return \"fired\";\n }\n return \"fired\";\n}\n\n// src/interactions/dispatcher/walk.ts\nfunction assembleScopedBindings(ctx) {\n const allowedCapabilities = ctx.getRuleCtx?.()?.allowedCapabilities;\n const openKeymap = ctx.keymapPass === \"none\" ? null : ctx.keymaps?.innermost()?.id ?? null;\n const { ordered, state } = assembleEntries(ctx.entriesById.values(), {\n focusedId: ctx.activeToolId,\n hotkeyStack: ctx.hotkeyStack,\n ...allowedCapabilities ? { allowedCapabilities } : {},\n ...openKeymap ? { openKeymap } : {}\n });\n const view = ctx.viewId ?? null;\n const live = (b) => liveInView(b, view) && liveForKeys(b, ctx.keyReach);\n const overrides = ctx.bindingOverrides?.() ?? NO_OVERRIDES;\n const result = scopeBindings(ordered, state, overrides).filter((sb) => live(sb.binding));\n if (ctx.keymapPass === \"only\") return result.filter((sb) => sb.ownerId === openKeymap);\n for (const action of ctx.actions.list()) {\n const targetScope = action.scope === \"hotkey\" ? \"hotkey\" : \"ambient\";\n for (const binding of actionBindings(action)) {\n if (live(binding)) result.push({ binding, scope: targetScope, ownerId: null });\n }\n }\n return result;\n}\nfunction anyBinding(ctx, test) {\n return assembleScopedBindings(ctx).some((sb) => test(sb.binding.spec));\n}\nfunction buildActionMap(registry) {\n const map = /* @__PURE__ */ new Map();\n for (const action of registry.list()) {\n map.set(action.id, action);\n }\n return map;\n}\nfunction rank(event, ctx, engaged, collectBarred) {\n const view = ctx.viewId ?? null;\n const outcome = matchSortedWithBarred(\n event,\n assembleScopedBindings(ctx),\n ctx.isMac,\n engaged,\n { collectBarred }\n );\n const sorted = preferViewScoped(outcome.matches, view);\n const actionMap = buildActionMap(ctx.actions);\n const ruleCtx = ruleCtxOf(ctx);\n const held = /* @__PURE__ */ new Map();\n const holds = (a) => {\n if (ruleCtx === void 0) return true;\n let h = held.get(a);\n if (h === void 0) held.set(a, h = isEligible(a, ruleCtx));\n return h;\n };\n const ordered = ruleCtx ? preferContextual(sorted, (id) => actionMap.get(id), holds, view) : sorted;\n return {\n ordered,\n barred: outcome.barred,\n ...outcome.claimOwner !== void 0 ? { claimOwner: outcome.claimOwner } : {},\n actionMap,\n ruleCtx,\n eligible: (m) => {\n const a = actionMap.get(m.binding.actionId);\n return a === void 0 || holds(a);\n }\n };\n}\nfunction walk(r, event, ctx, attempt, evaluateShadowed) {\n const steps = [];\n const tried = /* @__PURE__ */ new Set();\n let stop = \"exhausted\";\n let winner = null;\n for (const match of r.ordered) {\n if (!r.eligible(match)) continue;\n const push = (step) => {\n steps.push({ match, step });\n };\n const actionId = match.binding.actionId;\n if (tried.has(actionId)) {\n push({ kind: \"duplicate\" });\n continue;\n }\n if (stop !== \"exhausted\" && !evaluateShadowed) {\n push({ kind: \"not-asked\" });\n continue;\n }\n tried.add(actionId);\n const action = r.actionMap.get(actionId);\n if (!action) {\n if (attempt) {\n console.warn(\n `weasel dispatcher: binding resolved actionId \"${actionId}\" which has no registered action. Skipping. (misconfiguration)`\n );\n }\n push({ kind: \"no-such-action\" });\n continue;\n }\n const deps = buildDepsFromRequires(action, ctx.depRegistry);\n const enabled = action.enabled ? action.enabled(deps, worldPointOf(event), carriedBy(event)) : true;\n if (enabled !== true) {\n push({ kind: \"declined\", reason: String(enabled) });\n continue;\n }\n if (stop !== \"exhausted\") {\n push({ kind: \"outranked\" });\n continue;\n }\n if (!attempt) {\n push({ kind: \"would-fire\" });\n stop = \"fired\";\n winner = { match, action };\n continue;\n }\n const result = attempt(match, action, deps);\n if (result === \"empty-handle\") {\n push({ kind: \"empty-handle\" });\n continue;\n }\n push({ kind: result === \"fired\" ? \"fired\" : \"misbound\" });\n stop = result;\n winner = { match, action };\n }\n return { steps, stop, winner };\n}\nfunction verdictsOf(r, walked, evaluateShadowed) {\n const stepOf = new Map(walked.steps.map((s) => [s.match, s.step]));\n const verdictByAction = /* @__PURE__ */ new Map();\n let fired = false;\n const out = [];\n for (const match of r.ordered) {\n const actionId = match.binding.actionId;\n const action = r.actionMap.get(actionId);\n if (!action) continue;\n let verdict = verdictByAction.get(actionId);\n if (verdict === void 0) {\n if (!r.eligible(match)) {\n verdict = fired && !evaluateShadowed ? { kind: \"shadowed\" } : { kind: \"ineligible\", reason: describeEligible(action.eligible) };\n } else {\n const step = stepOf.get(match);\n if (step?.kind === \"would-fire\") {\n verdict = { kind: \"would-fire\" };\n fired = true;\n } else if (step?.kind === \"declined\") {\n verdict = { kind: \"disabled\", reason: step.reason };\n } else {\n verdict = { kind: \"shadowed\" };\n }\n }\n verdictByAction.set(actionId, verdict);\n } else if (verdict.kind === \"would-fire\") {\n verdict = { kind: \"shadowed\" };\n }\n out.push({\n actionId,\n action,\n binding: match.binding,\n scope: match.scope,\n ownerId: match.ownerId,\n specificity: specificity(match.binding.spec),\n verdict\n });\n }\n return out;\n}\n\n// src/interactions/dispatcher/handOff.ts\nfunction handOff(run, event, ctx, invoking, engaged) {\n for (let passed = endPassed(run, event); passed !== null; passed = endPassed(run, event)) {\n const { event: press, skip } = passed;\n const invoke = invoking(press);\n walk(rank(press, ctx, engaged(), false), press, ctx, (match, action, deps) => skip.has(action.id) ? \"empty-handle\" : invoke(match, action, deps), false);\n notePassed(run, event, passed);\n if (pumpGesture(run, event) !== \"pass\") break;\n }\n return \"handled\";\n}\n\n// src/interactions/dispatcher/uiOngoing.ts\nfunction createUiOngoing(inFlight, notify, getAction) {\n let seq = 0;\n const byAction = /* @__PURE__ */ new Map();\n function commitPrior(actionId, deps) {\n const prevGestureId = byAction.get(actionId);\n if (prevGestureId === void 0) return;\n const prevHandle = inFlight.handles.get(prevGestureId);\n if (prevHandle?.onEnd) {\n try {\n prevHandle.onEnd(uiInvocationCtx(deps), \"commit\");\n } catch (e) {\n console.error(`weasel dispatcher: prior UI handle for \"${actionId}\" threw on auto-commit`, e);\n }\n }\n inFlight.take(prevGestureId);\n byAction.delete(actionId);\n }\n function control(actionId, gestureId, handle, deps) {\n let ended = false;\n const live = () => !ended && inFlight.handles.get(gestureId) === handle;\n return {\n gestureId,\n get active() {\n return live();\n },\n update(nextParams) {\n if (!live()) return;\n if (!handle.onMove) return;\n try {\n handle.onMove(uiInvocationCtx(deps, nextParams));\n } catch (e) {\n console.error(`weasel dispatcher: action \"${actionId}\" threw on onMove`, e);\n }\n notify();\n },\n end(reason) {\n if (!live()) {\n ended = true;\n return;\n }\n ended = true;\n if (handle.onEnd) {\n try {\n handle.onEnd(uiInvocationCtx(deps), reason);\n } catch (e) {\n console.error(`weasel dispatcher: action \"${actionId}\" threw on onEnd`, e);\n }\n }\n inFlight.take(gestureId);\n if (byAction.get(actionId) === gestureId) byAction.delete(actionId);\n notify();\n }\n };\n }\n return {\n begin(actionId, deps, params) {\n if (!getAction) {\n console.warn(\"weasel dispatcher: beginUiOngoing called but no getAction was provided to createDispatcher\");\n return null;\n }\n const action = getAction(actionId);\n if (!action || !action.invoker || action.invoker.timing !== \"ongoing\") {\n return null;\n }\n commitPrior(actionId, deps);\n const gestureId = `ui-${actionId}-${++seq}`;\n let handle;\n try {\n handle = action.invoker.start(uiInvocationCtx(deps, params), { params });\n } catch (e) {\n console.error(`weasel dispatcher: action \"${actionId}\" threw on start`, e);\n return null;\n }\n if (isEmptyOngoingHandle(handle)) return null;\n inFlight.open(gestureId, handle, null);\n byAction.set(actionId, gestureId);\n notify();\n return control(actionId, gestureId, handle, deps);\n },\n clear: () => {\n byAction.clear();\n }\n };\n}\n\n// src/interactions/dispatcher/predict.ts\nfunction resolveAll(event, ctx, engaged, opts) {\n const evaluateShadowed = opts?.evaluateShadowed ?? false;\n const r = rank(event, ctx, engaged, false);\n if (r.ordered.length === 0) return [];\n return verdictsOf(r, walk(r, event, ctx, null, evaluateShadowed), evaluateShadowed);\n}\nfunction resolveOnly(event, ctx, engaged) {\n const r = rank(event, ctx, engaged, false);\n const { winner } = walk(r, event, ctx, null, false);\n if (!winner) return null;\n return {\n actionId: winner.action.id,\n action: winner.action,\n scope: winner.match.scope,\n ownerId: winner.match.ownerId,\n ...paramsOf(winner.match.binding)\n };\n}\nfunction paramsOf(binding) {\n const params = resolveParams(binding.opts?.params);\n return params ? { params } : {};\n}\nfunction explain(event, ctx, engaged, opts) {\n const r = rank(event, ctx, engaged, true);\n const walked = walk(r, event, ctx, null, opts?.evaluateShadowed ?? false);\n return buildDispatchRecord(r, walked, event, ctx, true, walked.winner ? \"handled\" : \"unhandled\");\n}\nvar MODIFIER_KEYS2 = /* @__PURE__ */ new Set([\"Shift\", \"Control\", \"Alt\", \"Meta\", \"AltGraph\", \"CapsLock\"]);\nvar STROKES = /* @__PURE__ */ new Set([\n \"click\",\n \"doubleclick\",\n \"longpress\",\n \"contextmenu\",\n \"multitouch\",\n \"multitouchtap\"\n]);\nvar isPlainEscape = (e) => e.kind === \"key\" && e.key === \"Escape\" && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;\nvar SETTLES_INTO = [\"click\", \"doubleclick\", \"longpress\", \"contextmenu\"];\nfunction stillLive(id, ctx) {\n const entry = ctx.entriesById.get(id);\n if (!entry) return false;\n const allowed = ctx.getRuleCtx?.()?.allowedCapabilities;\n const allows = allowed ? (tags) => capabilitiesAllowed(allowed, tags) : void 0;\n return liveScope(id, entry.eligibility, { focusedId: null, openKeymap: id, ...allows ? { allows } : {} }) !== null;\n}\nfunction routeThroughKeymap(event, ctx, passes) {\n const stack = ctx.keymaps;\n const open = stack?.innermost();\n if (!stack || !open || event.kind === \"hover\") return void 0;\n const isKey = event.kind === \"key\" || event.kind === \"key-held\";\n if (isKey && ctx.keyReach && !ctx.keyReach.held) return void 0;\n if (!stillLive(open.id, ctx)) {\n stack.closeAll();\n return void 0;\n }\n const verdict = stack.verdict();\n if (verdict === \"taken\") return \"unhandled\";\n if (verdict === \"cascaded\") return passes.run(\"none\", event);\n if (isPlainEscape(event)) {\n if (passes.engaged() && passes.run(\"none\", event) === \"handled\") {\n stack.inputSeen();\n return \"handled\";\n }\n stack.closeInnermost();\n return \"handled\";\n }\n if (passes.run(\"only\", event) === \"handled\") {\n stack.inputSeen();\n return \"handled\";\n }\n if (isKey) {\n if (event.kind === \"key\" && passes.binds({ ...event, kind: \"key-held\", phase: \"down\" })) return \"unhandled\";\n if (MODIFIER_KEYS2.has(event.key) || event.ctrlKey || event.metaKey || event.key === \"Tab\") {\n return passes.run(\"none\", event);\n }\n const entry = ctx.entriesById.get(open.id)?.eligibility.keymap;\n const own = typeof entry === \"object\" ? entry.unbound : void 0;\n if ((own ?? ctx.leaderUnbound ?? \"modal\") === \"modal\") {\n stack.swallowed();\n return \"handled\";\n }\n stack.cascaded();\n return passes.run(\"none\", event);\n }\n if (event.kind === \"pointerdown\" && SETTLES_INTO.some((kind) => passes.binds({ ...event, kind }))) {\n return \"unhandled\";\n }\n const outcome = passes.run(\"none\", event);\n const stroke = STROKES.has(event.kind) || event.kind === \"pointerdown\" && outcome === \"handled\";\n const firstOfDouble = event.kind === \"click\" && passes.binds({ ...event, kind: \"doubleclick\" });\n if (stroke && !firstOfDouble) stack.inputSeen();\n return outcome;\n}\n\n// src/interactions/dispatcher/dispatcher.ts\nfunction createDispatcher(opts) {\n const inFlight = createInFlightGestures();\n const facts = createGestureFacts();\n const changed = createEmitter();\n let version = 0;\n function notify() {\n version++;\n changed.emit();\n }\n const uiOngoing = createUiOngoing(inFlight, notify, opts?.getAction);\n let routedView;\n let routedIsMac = false;\n let routedToLocal;\n const run = {\n inFlight,\n facts,\n viewId: () => routedView,\n isMac: () => routedIsMac,\n toLocal: () => routedToLocal,\n opened: /* @__PURE__ */ new Map()\n };\n const invoking = (event) => (match, action, deps) => invokeAction(run, event, match, action, deps);\n function handleInput(event, ctx) {\n routedView = ctx.viewId;\n routedIsMac = ctx.isMac;\n routedToLocal = ctx.toLocal;\n const pumped = pumpGesture(run, event, ctx.keyReach);\n if (pumped === \"pass\") return handOff(run, event, ctx, invoking, inFlight.engagedOwners);\n if (pumped !== void 0) return pumped;\n if (event.kind === \"hover\") return hover(event, ctx);\n return routeThroughKeymap(event, ctx, {\n run: (pass, ev) => route(ev, { ...ctx, keymapPass: pass }),\n binds: (ev) => rank(ev, { ...ctx, keymapPass: \"only\" }, inFlight.engagedOwners(), false).ordered.length > 0,\n engaged: () => inFlight.handles.size > 0\n }) ?? route(event, ctx);\n }\n function route(event, ctx) {\n const trace = ctx.trace?.recording() ? ctx.trace : null;\n const r = rank(event, ctx, inFlight.engagedOwners(), trace !== null);\n const walked = walk(r, event, ctx, invoking(event), false);\n const outcome = walked.stop === \"fired\" ? \"handled\" : \"unhandled\";\n trace?.push(buildDispatchRecord(r, walked, event, ctx, false, outcome));\n return outcome;\n }\n function hover(event, ctx) {\n let fired = false;\n const invoke = invoking(event);\n walk(rank(event, ctx, inFlight.engagedOwners(), false), event, ctx, (match, action, deps) => {\n if (invoke(match, action, deps) === \"fired\") fired = true;\n return \"empty-handle\";\n }, false);\n return fired ? \"handled\" : \"unhandled\";\n }\n function cancelAll(reason) {\n uiOngoing.clear();\n endAllGestures(run, reason);\n }\n const handleInputWithNotify = (event, ctx) => {\n const before = inFlight.handles.size;\n try {\n return handleInput(event, ctx);\n } finally {\n if (before > 0 || inFlight.handles.size > 0) notify();\n }\n };\n const cancelAllWithNotify = (reason) => {\n const before = inFlight.handles.size;\n try {\n cancelAll(reason);\n } finally {\n if (before > 0) notify();\n }\n };\n return {\n handleInput: handleInputWithNotify,\n resolveOnly: (event, ctx) => resolveOnly(event, ctx, inFlight.engagedOwners()),\n resolveAll: (event, ctx, resolveOpts) => resolveAll(event, ctx, inFlight.engagedOwners(), resolveOpts),\n explain: (event, ctx, explainOpts) => explain(event, ctx, inFlight.engagedOwners(), explainOpts),\n cancelAll: cancelAllWithNotify,\n inFlight: () => inFlight.handles,\n inFlightCursor: inFlight.cursor,\n getInFlightHandles: () => inFlight.handles.values(),\n subscribe: changed.subscribe,\n getVersion: () => version,\n getActiveAction: inFlight.latest,\n beginUiOngoing: uiOngoing.begin\n };\n}\nvar LONG_PRESS_HAPTIC_MS = 15;\nvar nowMs = () => typeof performance !== \"undefined\" ? performance.now() : Date.now();\nfunction createLongPressStore() {\n let current = null;\n const changed = createEmitter();\n return {\n get: () => current,\n progress: (now = nowMs()) => {\n if (!current) return 0;\n if (!(current.duration > 0)) return 1;\n const t = (now - current.startedAt) / current.duration;\n return t <= 0 ? 0 : t >= 1 ? 1 : t;\n },\n subscribe: changed.subscribe,\n set: (next) => {\n if (next === current) return;\n current = next;\n changed.emit();\n }\n };\n}\n\n// src/interactions/pointerSession/pointerSession.ts\nvar LOST_CAPTURE_EVENT = \"lostpointercapture\";\nfunction reportsButtons(down) {\n return !!down.buttons;\n}\nfunction isMissedRelease(move) {\n return move.buttons === 0;\n}\nfunction openPointerSession(origin, down, cb, opts = {}) {\n const pointerId = down.pointerId;\n const doc = origin.ownerDocument ?? document;\n const buttonsReported = reportsButtons(down);\n let active = true;\n const teardown = () => {\n active = false;\n doc.removeEventListener(\"pointermove\", onMove, true);\n doc.removeEventListener(\"pointerup\", onUp, true);\n doc.removeEventListener(\"pointercancel\", onPointerCancel, true);\n doc.removeEventListener(\"pointerdown\", onRepress, true);\n origin.removeEventListener(LOST_CAPTURE_EVENT, onLostCapture);\n if (opts.capture !== false) {\n try {\n origin.releasePointerCapture?.(pointerId);\n } catch {\n }\n }\n };\n const mine = (e) => e.pointerId === pointerId;\n const end = (e) => {\n if (!active) return;\n teardown();\n cb.onEnd?.(e);\n };\n const abort = (reason) => {\n if (!active) return;\n teardown();\n cb.onCancel?.(reason);\n };\n function onMove(e) {\n if (!active || !mine(e)) return;\n if (buttonsReported && isMissedRelease(e)) {\n end(e);\n return;\n }\n cb.onMove?.(e);\n }\n function onUp(e) {\n if (mine(e)) end(e);\n }\n function onPointerCancel(e) {\n if (mine(e)) abort(\"pointercancel\");\n }\n function onRepress(e) {\n if (mine(e)) abort(\"superseded\");\n }\n function onLostCapture(e) {\n if (e.pointerId !== pointerId) return;\n if (!origin.isConnected) abort(\"lostcapture\");\n }\n if (opts.capture !== false) {\n try {\n origin.setPointerCapture?.(pointerId);\n } catch {\n }\n }\n doc.addEventListener(\"pointermove\", onMove, true);\n doc.addEventListener(\"pointerup\", onUp, true);\n doc.addEventListener(\"pointercancel\", onPointerCancel, true);\n doc.addEventListener(\"pointerdown\", onRepress, true);\n origin.addEventListener(LOST_CAPTURE_EVENT, onLostCapture);\n return {\n pointerId,\n get active() {\n return active;\n },\n cancel: () => abort(\"aborted\")\n };\n}\n\n// src/interactions/carry/carry.ts\nvar surfaces = /* @__PURE__ */ new Set();\nfunction addCarrySurface(surface) {\n surfaces.add(surface);\n return () => {\n surfaces.delete(surface);\n };\n}\nfunction contains(r, x, y) {\n return x >= r.left && x <= r.right && y >= r.top && y <= r.bottom;\n}\nfunction surfaceAt(doc, x, y) {\n const hit = typeof doc.elementFromPoint === \"function\" ? doc.elementFromPoint(x, y) : null;\n let best = null;\n for (const s of surfaces) {\n if (!contains(s.element.getBoundingClientRect(), x, y)) continue;\n if (hit && !s.element.contains(hit)) continue;\n if (best && s.element.contains(best.element)) continue;\n best = s;\n }\n return best;\n}\nfunction startCarry(origin, down, payload, cb = {}) {\n const doc = origin.ownerDocument ?? document;\n const pointerId = down.pointerId;\n let over = null;\n const leave = (at2) => {\n const was = over;\n over = null;\n if (was && surfaces.has(was)) was.receive(\"leave\", payload, at2, pointerId);\n };\n const step = (at2) => {\n const next = surfaceAt(doc, at2.clientX, at2.clientY);\n if (next === over) {\n over?.receive(\"move\", payload, at2, pointerId);\n return;\n }\n leave(at2);\n over = next;\n next?.receive(\"enter\", payload, at2, pointerId);\n };\n let last = down;\n const session = openPointerSession(origin, down, {\n onMove: (e) => {\n last = e;\n step(e);\n cb.onMove?.(e);\n },\n onEnd: (e) => {\n step(e);\n const on = over;\n over = null;\n const taken = on !== null && surfaces.has(on) && on.receive(\"drop\", payload, e, pointerId) === \"handled\";\n cb.onEnd?.({ taken, event: e });\n },\n onCancel: (reason) => {\n leave(last);\n cb.onCancel?.(reason);\n }\n });\n return {\n pointerId,\n get active() {\n return session.active;\n },\n cancel: () => session.cancel()\n };\n}\nvar KEYMAP_HOLD = \"hold\";\nfunction createKeymapStack() {\n let levels = [];\n let version = 0;\n const changed = createEmitter();\n let depth = 0;\n let serial = 0;\n let pending = [];\n let verdict = null;\n let snapshot = [];\n const notify = () => {\n snapshot = levels.map(({ openedIn: _, ...rest }) => Object.freeze({ ...rest }));\n version++;\n changed.emit();\n };\n const later = (op) => {\n if (depth > 0) pending.push(op);\n else op();\n };\n const settle = () => {\n const before = levels;\n const opened = (l) => l.openedIn === serial && depth > 0;\n if (levels.some(opened)) return;\n for (const l of levels) if (l.heldBy !== void 0) l.usedWhileHeld = true;\n while (levels.length > 0 && levels.at(-1).heldBy === void 0) levels = levels.slice(0, -1);\n if (levels !== before) notify();\n };\n return {\n open: () => snapshot,\n innermost: () => snapshot.at(-1) ?? null,\n push: (id, label, opts) => {\n const heldBy = opts?.heldBy;\n const bindings = opts?.bindings ?? [];\n const open = levels.findIndex((l) => l.id === id);\n if (open !== -1) levels = levels.slice(0, open);\n levels = [...levels, { id, label, bindings, ...heldBy !== void 0 ? { heldBy } : {}, usedWhileHeld: false, openedIn: serial }];\n if (depth > 0) verdict = \"taken\";\n notify();\n },\n holdOpened: (heldBy) => {\n let held = false;\n levels = levels.map((l) => {\n if (l.openedIn !== serial || l.heldBy !== void 0) return l;\n held = true;\n return { ...l, heldBy };\n });\n if (held) notify();\n return held;\n },\n release: (heldBy) => {\n const i = levels.findIndex((l) => l.heldBy === heldBy);\n if (i === -1) return;\n const level = levels[i];\n if (level.usedWhileHeld) {\n levels = levels.slice(0, i);\n while (levels.length > 0 && levels.at(-1).heldBy === void 0) levels = levels.slice(0, -1);\n } else levels = levels.map((l) => l === level ? { ...l, heldBy: void 0 } : l).map(dropUndefinedHeld);\n notify();\n },\n closeInnermost: () => {\n if (depth > 0) verdict = \"taken\";\n later(() => {\n if (levels.length === 0) return;\n levels = levels.slice(0, -1);\n notify();\n });\n },\n inputSeen: () => {\n if (depth > 0) verdict ??= \"taken\";\n later(settle);\n },\n cascaded: () => {\n if (depth > 0) verdict = \"cascaded\";\n later(settle);\n },\n swallowed: () => {\n for (const l of levels) if (l.heldBy !== void 0) l.usedWhileHeld = true;\n },\n verdict: () => verdict,\n closeAll: () => {\n pending = [];\n if (levels.length === 0) return;\n levels = [];\n notify();\n },\n batch: (fn) => {\n if (depth === 0) {\n serial++;\n verdict = null;\n }\n depth++;\n try {\n return fn();\n } finally {\n depth--;\n if (depth === 0) {\n const ops = pending;\n pending = [];\n depth = 1;\n try {\n for (const op of ops) op();\n } finally {\n depth = 0;\n }\n verdict = null;\n }\n }\n },\n subscribe: changed.subscribe,\n getVersion: () => version\n };\n}\nfunction dropUndefinedHeld(l) {\n if (l.heldBy !== void 0) return l;\n const { heldBy: _, ...rest } = l;\n return rest;\n}\n\n// src/keymaps/keymapContribution.ts\nvar keymapLeaderId = (id) => `keymap.${id}`;\nvar keymapLeaderBindingId = (id, index = 0) => index === 0 ? `${keymapLeaderId(id)}.leader` : `${keymapLeaderId(id)}.leader#${index}`;\nfunction leaderBindings(def) {\n return [def.leader].flat().map((spec, i) => ({\n spec: spec.kind === \"key-held\" ? { ...spec, kind: \"key\" } : spec,\n opts: { id: keymapLeaderBindingId(def.id, i) }\n }));\n}\nvar isPlainEscape2 = (spec) => spec.kind === \"key\" && [spec.key].flat().includes(\"Escape\") && Object.values(spec.mods ?? {}).every((m) => m !== true);\nfunction keymapContribution(def) {\n if (def.bindings.some((b) => isPlainEscape2(b.spec))) {\n throw new Error(`keymap \"${def.id}\" binds Escape, which always closes a keymap`);\n }\n const open = {\n id: keymapLeaderId(def.id),\n label: `Open ${def.label} keys`,\n scope: \"hotkey\",\n defaultBinding: leaderBindings(def),\n requires: [\"keymaps\"],\n enabled: (deps) => deps?.keymaps ? true : ActionDisabledReason.NotApplicable,\n invoker: {\n timing: \"immediate\",\n run: (deps, params) => {\n deps.keymaps?.push(def.id, def.label, { bindings: def.bindings, ...params?.hold === true ? { heldBy: KEYMAP_HOLD } : {} });\n }\n }\n };\n return [\n {\n id: def.id,\n eligibility: { keymap: def.unbound ? { unbound: def.unbound } : true },\n bindings: [...def.bindings],\n presentation: { label: def.label },\n ...def.overlay !== void 0 ? { overlay: def.overlay } : {},\n ...def.overlayPosition ? { overlayPosition: def.overlayPosition } : {}\n },\n {\n id: `${def.id}.leader`,\n eligibility: { always: true },\n actions: [open, ...def.actions ?? []]\n }\n ];\n}\nvar ESCAPE = { shortcut: { key: \"Escape\", mod: false, alt: false, shift: false }, label: \"Close\" };\nvar GESTURE_WORDS = {\n click: \"click\",\n doubleClick: \"double-click\",\n drag: \"drag\",\n longPress: \"long-press\",\n contextMenu: \"right-click\",\n wheel: \"scroll\",\n pinch: \"pinch\",\n pointerDown: \"press\"\n};\nvar MOD_WORDS = [\n [\"mod\", \"Mod\"],\n [\"ctrl\", \"Ctrl\"],\n [\"meta\", \"Meta\"],\n [\"alt\", \"Alt\"],\n [\"shift\", \"Shift\"]\n];\nfunction gestureWords(spec) {\n if (spec.kind === \"key-held\") {\n const chip = keySpecShortcut(spec);\n return chip ? `Hold ${formatShortcut(chip)}` : void 0;\n }\n const word = GESTURE_WORDS[spec.kind];\n if (!word) return void 0;\n const mods = MOD_WORDS.filter(([m]) => spec.mods?.[m] === true).map(([, w]) => w);\n const text = [...mods, word].join(\"-\");\n return text[0].toUpperCase() + text.slice(1);\n}\nfunction describeKeymap(level, actions, overrides = NO_OVERRIDES) {\n const byId = new Map(actions.map((a) => [a.id, a]));\n const labelOf = (b) => {\n const action = byId.get(b.actionId);\n const params = resolveParams(b.opts?.params);\n const variant = params && action?.variants?.find((v) => paramsMatch(params, v.params));\n return variant ? variant.label : action?.label ?? b.actionId;\n };\n const rows = [ESCAPE];\n for (const b of overriddenBindings(level.bindings, level.id, overrides)) {\n const label = labelOf(b);\n const shortcut = b.spec.kind === \"key\" ? keySpecShortcut(b.spec) : void 0;\n if (shortcut) rows.push({ shortcut, label });\n else {\n const gesture = gestureWords(b.spec);\n if (gesture) rows.push({ gesture, label });\n }\n }\n return { id: level.id, label: level.label, held: level.heldBy !== void 0, rows };\n}\nfunction keymapShortcuts(def, overrides = NO_OVERRIDES) {\n const leaderChip = overriddenBindings(actionBindings({ id: keymapLeaderId(def.id), defaultBinding: leaderBindings(def) }), null, overrides).map((b) => keySpecShortcut(b.spec)).find((c) => c !== void 0);\n const out = /* @__PURE__ */ new Map();\n for (const b of overriddenBindings(def.bindings, def.id, overrides)) {\n if (b.spec.kind !== \"key\") continue;\n const chip = keySpecShortcut(b.spec);\n if (!chip) continue;\n const withPath = leaderChip ? { ...chip, leader: [{ label: def.label, shortcut: leaderChip }] } : chip;\n out.set(b.actionId, [...out.get(b.actionId) ?? [], withPath]);\n }\n return out;\n}\n\n// src/tools/types.ts\nfunction isTool(entry) {\n return !!(entry.eligibility?.focus || entry.eligibility?.offhand);\n}\n\n// src/tools/routing/reflection/conflictKeys.ts\nvar PLATFORMS = [\"mac\", \"other\"];\nfunction resolveMod(mods, platform) {\n if (mods.mod === void 0) return mods;\n const { mod, meta: _meta, ctrl: _ctrl, ...rest } = mods;\n return { ...rest, [platform === \"mac\" ? \"meta\" : \"ctrl\"]: mod };\n}\nfunction sameOutcome(entries) {\n const first = entries[0];\n return entries.every((e) => e.ownerId === first.ownerId && e.actionId === first.actionId && sameParams(e.params, first.params));\n}\nfunction sameParams(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\" || a === null || b === null) return false;\n if (Array.isArray(a) !== Array.isArray(b)) return false;\n const keys = Object.keys(a);\n return keys.length === Object.keys(b).length && keys.every((k) => sameParams(a[k], b[k]));\n}\nfunction modifierTieKeys(entry, platform) {\n const mods = resolveMod(entry.modifiers, platform);\n const optional = VALID_MOD_NAMES.filter((k) => mods[k] === \"optional\");\n const required = VALID_MOD_NAMES.filter((k) => mods[k] === \"required\");\n const keys = [];\n for (let bits = 0; bits < 1 << optional.length; bits++) {\n const held = [...required, ...optional.filter((_, i) => (bits & 1 << i) !== 0)].sort();\n keys.push(`${held.join(\"+\")}:${required.length}`);\n }\n return keys;\n}\nfunction viewsTie(a, b) {\n if (a === void 0 || b === void 0) return a === b;\n return a.some((v) => b.includes(v));\n}\nfunction argKeysOf(entry) {\n const alts = entry.argAlternatives;\n if (alts && alts.length > 0) return [...new Set(alts.map((a) => a.toLowerCase()))];\n return [(entry.arg ?? \"\").toLowerCase()];\n}\nfunction targetKey(entry) {\n if (entry.target !== PREDICATE_TARGET) return entry.target ?? \"\";\n const spec = entry.spec;\n const pred = spec.target;\n if (typeof pred !== \"object\" || pred === null) return PREDICATE_TARGET;\n return `${PREDICATE_TARGET}#${objectId(pred)}`;\n}\nvar OBJECT_IDS = /* @__PURE__ */ new WeakMap();\nvar nextObjectId = 0;\nfunction objectId(obj) {\n let id = OBJECT_IDS.get(obj);\n if (id === void 0) {\n id = nextObjectId++;\n OBJECT_IDS.set(obj, id);\n }\n return id;\n}\n\n// src/tools/routing/reflection/conflicts.ts\nfunction findConflicts(entries) {\n return findConflictsKeyed(entries).map((k) => k.conflict);\n}\nfunction findConflictsKeyed(entries, rules, modes = KIT_MODES) {\n const rows = buildRouteRegistry(entries);\n const groups = /* @__PURE__ */ new Map();\n for (const entry of rows) {\n for (const arg of argKeysOf(entry)) {\n const base = `${entry.phase}|${entry.gesture}|${arg}|${targetKey(entry)}`;\n for (const platform of PLATFORMS) {\n for (const state of modifierTieKeys(entry, platform)) {\n const key = `${platform}|${base}|${state}`;\n const bucket = groups.get(key);\n if (bucket) {\n if (!bucket.members.includes(entry)) bucket.members.push(entry);\n } else groups.set(key, { base, platform, members: [entry] });\n }\n }\n }\n }\n const ruleOf = (entry) => rules?.get(entry.ownerId) ?? ALWAYS;\n const tie = (e, f) => viewsTie(e.views, f.views) && rulesCanHoldTogether(ruleOf(e), ruleOf(f), modes);\n const conflicts = /* @__PURE__ */ new Map();\n for (const { base, platform, members } of groups.values()) {\n const ties = (e, i, f, j) => i !== j && !(i < j ? e : f).yields && tie(e, f);\n const bucket = foldPlatformCopies(members.filter((e, i) => members.some((f, j) => ties(e, i, f, j))));\n if (bucket.length < 2) continue;\n const first = bucket[0];\n const key = `${base}|${bucket.map((e) => `${objectId(e.spec)}:${canonicalModifiers(e.modifiers)}`).join(\";\")}`;\n const found = conflicts.get(key);\n if (found) {\n found.platforms.add(platform);\n continue;\n }\n conflicts.set(key, {\n conflict: {\n phase: first.phase,\n gesture: first.gesture,\n arg: first.arg,\n target: first.target,\n modifiers: first.modifiers,\n ownerIds: bucket.map((e) => e.ownerId)\n },\n bucket,\n platforms: /* @__PURE__ */ new Set([platform])\n });\n }\n return [...conflicts].filter(([, c]) => c.platforms.size === PLATFORMS.length || !sameOutcome(c.bucket)).map(([key, { conflict }]) => ({ key, conflict }));\n}\nfunction platformBound(e) {\n return modifierTieKeys(e, \"mac\").join() !== modifierTieKeys(e, \"other\").join();\n}\nfunction foldPlatformCopies(bucket) {\n const out = [];\n for (const e of bucket) {\n const i = out.findIndex((k) => sameOutcome([k, e]) && (platformBound(k) || platformBound(e)));\n if (i === -1) out.push(e);\n else if (platformBound(out[i])) out[i] = e;\n }\n return out;\n}\nfunction rulesCanHoldTogether(a, b, modes) {\n if (rulesExclusive(a, b)) return false;\n return modes.some((m) => ruleCanHoldIn(a, m) && ruleCanHoldIn(b, m));\n}\nvar KIT_MODES = DEFAULT_MODES.map(activeModeOf);\nfunction actionAsEntry(action) {\n return { id: action.id, eligibility: {}, bindings: actionBindings(action) };\n}\nfunction eligibleRule(action) {\n const eligible = action.eligible;\n if (eligible === void 0) return void 0;\n return typeof eligible === \"function\" ? eligible.rule : eligible;\n}\nfunction findScopedConflicts(scopes) {\n const overrides = scopes.overrides;\n const asBound = (e) => overrides?.size && e.bindings ? { ...e, bindings: overriddenBindings(e.bindings, e.id, overrides) } : e;\n const registry = (Array.isArray(scopes.registry) ? scopes.registry : Object.values(scopes.registry)).map(asBound);\n const declaredAmbient = (scopes.ambient ?? []).map(asBound);\n const actions = scopes.actions ?? [];\n const rules = /* @__PURE__ */ new Map();\n for (const a of actions) {\n const rule = eligibleRule(a);\n if (rule) rules.set(a.id, rule);\n }\n const hotkeyActions = actions.filter((a) => a.scope === \"hotkey\").map(actionAsEntry);\n const gatedActions = [];\n const ungated = [];\n for (const a of actions) {\n if (a.scope === \"hotkey\") continue;\n (a.eligible !== void 0 ? gatedActions : ungated).push(actionAsEntry(a));\n }\n const modes = scopes.modes ?? KIT_MODES;\n const isKeymap = (e) => e.eligibility?.keymap !== void 0;\n const keymaps = declaredAmbient.filter(isKeymap);\n const ambient = [...declaredAmbient.filter((e) => !isKeymap(e)), ...ungated];\n const out = [];\n const seen = /* @__PURE__ */ new Set();\n const add = (keyed) => {\n for (const { key, conflict } of keyed) {\n const dedupeKey = `${key}|${conflict.ownerIds.join(\",\")}`;\n if (seen.has(dedupeKey)) continue;\n seen.add(dedupeKey);\n out.push(conflict);\n }\n };\n for (const tool of [...registry, ...ambient, ...keymaps, ...gatedActions, ...hotkeyActions]) {\n add(findConflictsKeyed([tool], rules, modes));\n }\n if (ambient.length > 1) add(findConflictsKeyed(ambient, rules, modes));\n if (gatedActions.length > 1) add(findConflictsKeyed(gatedActions, rules, modes));\n const hotkey = [\n ...registry.filter((t) => t.eligibility?.offhand !== void 0 || t.def?.hotkey !== void 0),\n ...hotkeyActions\n ];\n if (hotkey.length > 1) add(findConflictsKeyed(hotkey, rules, modes));\n return out;\n}\nfunction formatConflict(conflict) {\n const route = formatRoute({\n phases: [conflict.phase === \"any\" ? { channel: \"*\", phase: \"*\" } : { channel: \"&\", phase: conflict.phase }],\n gesture: conflict.gesture,\n arg: conflict.arg,\n target: conflict.target,\n modifiers: conflict.modifiers\n });\n return `${route} \\u2014 declared by ${conflict.ownerIds.join(\", \")}`;\n}\nfunction reportRouteConflicts(scopes, warn = (m) => console.warn(m)) {\n const conflicts = findScopedConflicts(scopes);\n for (const c of conflicts) {\n warn(\n `[weasel] route conflict: two bindings declare the same (phase, gesture, arg, target, modifiers) tuple in the same scope, so declaration order alone decides which one fires.\n ${formatConflict(c)}`\n );\n }\n return conflicts;\n}\nfunction keyMatches(eventKey, spec) {\n const want = typeof spec === \"string\" ? [spec] : spec;\n const ek = eventKey.toLowerCase();\n return want.some((k) => k.toLowerCase() === ek);\n}\nfunction matchesKeyBinding(e, b, isMac = isApplePlatform()) {\n if (!keyMatches(e.key, b.key)) return false;\n return matchModifiers(e, { mod: b.mod === true, alt: b.alt === true, shift: b.shift ?? false }, isMac);\n}\nfunction historyKey(e, isMac = isApplePlatform()) {\n if (matchesKeyBinding(e, { key: \"z\", mod: true }, isMac)) return \"undo\";\n if (matchesKeyBinding(e, { key: \"z\", mod: true, shift: true }, isMac) || matchesKeyBinding(e, { key: \"y\", mod: true }, isMac))\n return \"redo\";\n return null;\n}\nvar INGEST_STRING_MIMES = /* @__PURE__ */ new Set([\n \"text/plain\",\n \"text/html\",\n \"text/uri-list\"\n]);\nvar FALLBACK_MIME = \"application/octet-stream\";\nfunction normalizeMime(raw) {\n const bare = raw.split(\";\")[0].trim().toLowerCase();\n return bare || FALLBACK_MIME;\n}\nvar admitted = /* @__PURE__ */ new Map();\nfunction admitIngestMime(mime) {\n const key = normalizeMime(mime);\n admitted.set(key, (admitted.get(key) ?? 0) + 1);\n let released = false;\n return () => {\n if (released) return;\n released = true;\n const n = (admitted.get(key) ?? 1) - 1;\n if (n > 0) admitted.set(key, n);\n else admitted.delete(key);\n };\n}\nvar keepsString = (mime) => INGEST_STRING_MIMES.has(mime) || admitted.has(mime);\nfunction itemsFromFiles(files) {\n return files.map((file) => ({ kind: \"file\", mime: normalizeMime(file.type), file }));\n}\nfunction itemsFromDataTransfer(dt) {\n const files = [];\n const strings = [];\n const reads = [];\n for (const item of Array.from(dt.items ?? [])) {\n if (item.kind === \"file\") {\n const file = item.getAsFile();\n if (file) files.push({ kind: \"file\", mime: normalizeMime(file.type), file });\n } else if (item.kind === \"string\") {\n const mime = normalizeMime(item.type);\n if (keepsString(mime)) {\n const slot = strings.length;\n strings.push(null);\n reads.push(\n new Promise((resolve) => {\n item.getAsString((text) => {\n strings[slot] = { kind: \"string\", mime, text };\n resolve();\n });\n })\n );\n }\n }\n }\n if (files.length === 0 && reads.length === 0) {\n for (const file of Array.from(dt.files ?? [])) {\n files.push({ kind: \"file\", mime: normalizeMime(file.type), file });\n }\n }\n return Promise.all(reads).then(() => [...files, ...strings]);\n}\nfunction itemTypesFromDataTransfer(dt) {\n const pending = [];\n for (const item of Array.from(dt.items ?? [])) {\n const mime = item.type ? normalizeMime(item.type) : \"\";\n if (item.kind === \"file\") pending.push({ pending: \"file\", mime: mime && mime !== \"application/x-moz-file\" ? mime : UNKNOWN_MIME });\n else if (keepsString(mime)) pending.push({ pending: \"string\", mime });\n }\n if (pending.length === 0 && Array.from(dt.types ?? []).includes(\"Files\")) pending.push({ pending: \"file\", mime: UNKNOWN_MIME });\n return pending;\n}\nfunction pendingKindOf(item) {\n return item.pending;\n}\nfunction itemsFromClipboardData(cd) {\n const out = [];\n for (const file of Array.from(cd.files ?? [])) {\n out.push({ kind: \"file\", mime: normalizeMime(file.type), file });\n }\n for (const mime of /* @__PURE__ */ new Set([...INGEST_STRING_MIMES, ...admitted.keys()])) {\n const text = cd.getData(mime);\n if (text) out.push({ kind: \"string\", mime, text });\n }\n return out;\n}\n\n// src/viewport/clientToCanvas.ts\nfunction clientToCanvas(canvas, clientX, clientY) {\n const rect = canvas.getBoundingClientRect();\n return [clientX - rect.left, clientY - rect.top];\n}\nfunction clientToCanvasRect(rect, clientX, clientY) {\n return [clientX - rect.left, clientY - rect.top];\n}\n\n// src/dlog.ts\nvar KEYS = [\"weasel.debug\", \"weaseldraw.debug\"];\nvar cached = null;\nfunction read() {\n const empty = { all: false, set: /* @__PURE__ */ new Set() };\n if (typeof localStorage === \"undefined\") return empty;\n try {\n for (const k of KEYS) {\n const v = localStorage.getItem(k);\n if (v == null || v === \"\") continue;\n if (v === \"1\" || v === \"true\" || v === \"*\") return { all: true, set: /* @__PURE__ */ new Set() };\n return { all: false, set: new Set(v.split(/[\\s,]+/).filter(Boolean)) };\n }\n return empty;\n } catch {\n return empty;\n }\n}\nfunction get() {\n if (cached === null) cached = read();\n return cached;\n}\nfunction isDebugEnabled(namespace) {\n const c = get();\n if (c.all) return true;\n if (namespace === void 0) return c.set.size > 0;\n return c.set.has(namespace);\n}\nfunction dlog(namespace, ...args) {\n if (!isDebugEnabled(namespace)) return;\n console.debug(`[${namespace}]`, ...args);\n}\nfunction dwarn(namespace, ...args) {\n if (!isDebugEnabled(namespace)) return;\n console.warn(`[${namespace}]`, ...args);\n}\n\nexport { ALWAYS, BETWEEN_GESTURES, COARSE_TARGET_SCALE, DEFAULT_ALLOWED_CAPABILITIES, DEFAULT_DEVICE_PROFILE, INGEST_STRING_MIMES, KEYMAP_HOLD, LONG_PRESS_HAPTIC_MS, NEVER, PREDICATE_TARGET, TOOL_OFFHAND_ID, addCarrySurface, admitIngestMime, anyBinding, assembleEntries, buildRouteRegistry, buildRuleCtx, buildToolOffhandBindings, carryGestureId, clientToCanvas, clientToCanvasRect, createDispatchTrace, createDispatcher, createKeymapStack, createLongPressStore, createTraceRing, describeKeymap, describeRule, dlog, dwarn, evaluate, findConflicts, heldKeySpec, historyKey, immediateParams, isDebugEnabled, isTool, itemTypesFromDataTransfer, itemsFromClipboardData, itemsFromDataTransfer, itemsFromFiles, keymapContribution, keymapLeaderBindingId, keymapLeaderId, keymapShortcuts, liveScope, makeToolOffhandAction, matchBest, matchSorted, matchSortedWithBarred, matchesKeyBinding, modifierStateOf, multiTouchGestureId, offhandKeyFor, openPointerSession, pendingKindOf, pointerGestureId, reportRouteConflicts, resolveDeviceProfile, routesForSpec, ruleCanHoldIn, rulesExclusive, scopeBindings, startCarry, targetConsultsAffordance };\n//# sourceMappingURL=chunk-SYDUHBQN.js.map\n//# sourceMappingURL=chunk-SYDUHBQN.js.map","// src/scales/replacedFormat.ts\nfunction replacedFormat(self, built) {\n const own = self?.format;\n return own === void 0 || own === built ? null : (value) => own.call(self, value);\n}\n\n// src/scales/linear.ts\nvar DEFAULT_TICKS = 5;\nfunction tickStep(lo, hi, count = DEFAULT_TICKS) {\n const raw = Math.abs(hi / 2 - lo / 2) / Math.max(1, count) * 2;\n if (raw === 0 || !Number.isFinite(raw)) return 1;\n const power = 10 ** Math.floor(Math.log10(raw));\n const error = raw / power;\n const factor = error >= Math.sqrt(50) ? 10 : error >= Math.sqrt(10) ? 5 : error >= Math.sqrt(2) ? 2 : 1;\n return factor * power;\n}\nvar MAX_DECIMALS = 100;\nfunction decimalsOf(step) {\n if (!(step > 0) || !Number.isFinite(step)) return 0;\n return Math.min(MAX_DECIMALS, Math.max(0, -Math.floor(Math.log10(step) + 1e-9)));\n}\nfunction niceStep(rough) {\n const mag = 10 ** Math.floor(Math.log10(rough));\n const norm = rough / mag;\n return (norm <= 1 ? 1 : norm <= 2 ? 2 : norm <= 5 ? 5 : 10) * mag;\n}\nvar countable = (i) => Math.abs(i) <= Number.MAX_SAFE_INTEGER;\nvar onGrid = (i, step) => Number((i * step).toFixed(decimalsOf(step)));\nfunction stepTicks(lo, hi, step) {\n const [a, b] = lo <= hi ? [lo, hi] : [hi, lo];\n const first = Math.ceil(a / step - 1e-9);\n const last = Math.floor(b / step + 1e-9);\n if (!countable(first) || !countable(last)) return [];\n const out = [];\n for (let i = first; i <= last; i++) out.push(onGrid(i, step));\n return lo <= hi ? out : out.reverse();\n}\nfunction spacedTicks(domain, length, options) {\n const lo = Math.min(domain[0], domain[1]);\n const hi = Math.max(domain[0], domain[1]);\n const span = hi - lo;\n const { minSpacing, inset = 0 } = options;\n if (!(span > 0) || !Number.isFinite(span) || !(length > 0) || !(minSpacing > 0)) return { values: [], step: 0, decimals: 0 };\n const perUnit = span / length;\n const step = niceStep(minSpacing * perUnit);\n const decimals = decimalsOf(step);\n const first = Math.ceil((lo + inset * perUnit) / step - 1e-9);\n const last = Math.floor((hi - inset * perUnit) / step + 1e-9);\n const values = [];\n for (let i = first; i <= last; i++) values.push(onGrid(i, step) + 0);\n return { values, step, decimals };\n}\nfunction formatNumber(value, step) {\n const fixed = value.toFixed(decimalsOf(step));\n return fixed.includes(\".\") ? fixed.replace(/\\.?0+$/, \"\") : fixed;\n}\nfunction niceDomain(domain, count = DEFAULT_TICKS) {\n const [lo, hi] = domain;\n if (lo === hi) return lo === 0 ? [0, 1] : [Math.min(0, lo), Math.max(0, hi)];\n const step = tickStep(lo, hi, count);\n const down = (v) => onGrid(Math.floor(v / step + 1e-9), step);\n const up = (v) => onGrid(Math.ceil(v / step - 1e-9), step);\n return lo < hi ? [down(lo), up(hi)] : [up(lo), down(hi)];\n}\nfunction linearScale(opts) {\n const domain = opts.nice !== void 0 ? niceDomain(opts.domain, opts.nice) : [opts.domain[0], opts.domain[1]];\n const range = [opts.range[0], opts.range[1]];\n const [d0, d1] = domain;\n const [r0, r1] = range;\n const span = d1 - d0;\n const map = (v) => span === 0 ? (r0 + r1) / 2 : r0 + (v - d0) / span * (r1 - r0);\n const step = (count = DEFAULT_TICKS) => tickStep(d0, d1, count);\n const format = (v) => formatNumber(v, step());\n return {\n kind: \"linear\",\n domain,\n range,\n map,\n position: map,\n invert: (at) => r1 === r0 ? d0 : d0 + (at - r0) / (r1 - r0) * span,\n tickStep: step,\n spacedTicks: (options) => spacedTicks(domain, Math.abs(r1 - r0), options),\n ticks: (count = DEFAULT_TICKS) => stepTicks(d0, d1, step(count)),\n format,\n tickFormat(count) {\n const s = step(count);\n return replacedFormat(this, format) ?? ((v) => formatNumber(v, s));\n }\n };\n}\n\n// src/scales/tickFormat.ts\nvar MAX_DECIMALS2 = 20;\nfunction tickDecimals(values) {\n let most = 0;\n for (const v of values) {\n if (!Number.isFinite(v)) continue;\n let d = 0;\n while (d < MAX_DECIMALS2 && Math.abs(Number(v.toFixed(d)) - v) > 1e-9 * Math.max(1, Math.abs(v))) d++;\n most = Math.max(most, d);\n }\n return most;\n}\nfunction formatTick(value, ctx) {\n const text = value.toFixed(ctx.decimals);\n return /^-0(\\.0*)?$/.test(text) ? text.slice(1) : text;\n}\n\n// src/scales/log.ts\nfunction logScale(opts) {\n const base = opts.base ?? 10;\n const [d0, d1] = opts.domain;\n if (!(d0 > 0 && d1 > 0)) throw new Error(`logScale: a domain of ${d0}..${d1} does not lie above zero`);\n const [r0, r1] = opts.range;\n const log = (v) => Math.log(v) / Math.log(base);\n const l0 = log(d0);\n const l1 = log(d1);\n const map = (v) => l1 === l0 ? (r0 + r1) / 2 : r0 + (log(v) - l0) / (l1 - l0) * (r1 - r0);\n const ticks = (count = 5) => {\n const [lo, hi] = l0 <= l1 ? [l0, l1] : [l1, l0];\n if (!Number.isFinite(lo) || !Number.isFinite(hi)) return [];\n const first = Math.floor(lo + 1e-9);\n const last = Math.ceil(hi - 1e-9);\n const steps = last - first < count / 2 && base === 10 ? [1, 2, 5] : [1];\n const out = [];\n for (let p = first; p <= last; p++) {\n for (const m of steps) {\n const v = Number((m * base ** p).toPrecision(12));\n if (log(v) >= lo - 1e-9 && log(v) <= hi + 1e-9) out.push(v);\n }\n }\n return l0 <= l1 ? out : out.reverse();\n };\n const format = (v) => v >= 1 ? formatNumber(v, 1) : formatNumber(v, 10 ** Math.floor(Math.log10(v)));\n return {\n kind: \"log\",\n base,\n domain: [d0, d1],\n range: [r0, r1],\n map,\n position: map,\n invert: (at) => base ** (r1 === r0 ? l0 : l0 + (at - r0) / (r1 - r0) * (l1 - l0)),\n ticks,\n format,\n tickFormat() {\n return replacedFormat(this, format) ?? format;\n }\n };\n}\n\n// src/scales/warp.ts\nvar DEFAULT_TICKS2 = 5;\nfunction warpScale(opts) {\n const { to, from } = opts;\n const [d0, d1] = opts.domain;\n const [r0, r1] = opts.range;\n const w0 = to(d0);\n const w1 = to(d1);\n const map = (v) => w1 === w0 ? (r0 + r1) / 2 : r0 + (to(v) - w0) / (w1 - w0) * (r1 - r0);\n const step = (count = DEFAULT_TICKS2) => tickStep(d0, d1, count);\n const format = (v) => formatNumber(v, step());\n return {\n kind: \"warp\",\n domain: [d0, d1],\n range: [r0, r1],\n map,\n position: map,\n invert: (at) => r1 === r0 ? d0 : from(w0 + (at - r0) / (r1 - r0) * (w1 - w0)),\n ticks: (count = DEFAULT_TICKS2) => stepTicks(d0, d1, step(count)),\n format,\n tickFormat(count) {\n const s = step(count);\n return replacedFormat(this, format) ?? ((v) => formatNumber(v, s));\n }\n };\n}\nfunction powScale(opts) {\n const k = opts.exponent;\n if (!(k !== 0 && Number.isFinite(k))) throw new Error(`powScale: an exponent of ${k} does not warp`);\n const raise = (p) => (v) => Math.sign(v) * Math.abs(v) ** p;\n return { ...warpScale({ domain: opts.domain, range: opts.range, to: raise(k), from: raise(1 / k) }), kind: \"pow\", exponent: k };\n}\n\n// src/scales/band.ts\nfunction bandScale(opts) {\n const domain = [...opts.domain];\n const [r0, r1] = opts.range;\n const inner = Math.min(1, Math.max(0, opts.paddingInner ?? 0.2));\n const outer = Math.max(0, opts.paddingOuter ?? inner / 2);\n const n = domain.length;\n const step = n === 0 ? 0 : (r1 - r0) / Math.max(1e-9, n - inner + 2 * outer);\n const bandwidth = Math.abs(step * (1 - inner));\n const index = new Map(domain.map((key, i) => [key, i]));\n const startAt = (i) => r0 + step * (outer + i) + (step < 0 ? step * (1 - inner) : 0);\n const start = (key) => {\n const i = index.get(key);\n return i === void 0 ? Number.NaN : startAt(i);\n };\n const format = (key) => key;\n return {\n kind: \"band\",\n domain,\n range: [r0, r1],\n bandwidth,\n step: Math.abs(step),\n start,\n position: (key) => start(key) + bandwidth / 2,\n invert: (at) => {\n if (n === 0) return void 0;\n const i = Math.round((at - r0) / step - outer - (1 - inner) / 2);\n return domain[Math.min(n - 1, Math.max(0, i))];\n },\n ticks: () => [...domain],\n format,\n tickFormat() {\n return replacedFormat(this, format) ?? format;\n }\n };\n}\n\n// src/scales/time.ts\nvar SECOND = 1e3;\nvar MINUTE = 60 * SECOND;\nvar HOUR = 60 * MINUTE;\nvar DAY = 24 * HOUR;\nvar INTERVALS = [\n { ms: SECOND, unit: \"second\" },\n { ms: 5 * SECOND, unit: \"second\" },\n { ms: 15 * SECOND, unit: \"second\" },\n { ms: 30 * SECOND, unit: \"second\" },\n { ms: MINUTE, unit: \"minute\" },\n { ms: 5 * MINUTE, unit: \"minute\" },\n { ms: 15 * MINUTE, unit: \"minute\" },\n { ms: 30 * MINUTE, unit: \"minute\" },\n { ms: HOUR, unit: \"hour\" },\n { ms: 3 * HOUR, unit: \"hour\" },\n { ms: 6 * HOUR, unit: \"hour\" },\n { ms: 12 * HOUR, unit: \"hour\" },\n { ms: DAY, unit: \"day\" },\n { ms: 2 * DAY, unit: \"day\" },\n { ms: 7 * DAY, unit: \"day\" },\n { months: 1, unit: \"month\" },\n { months: 3, unit: \"month\" },\n { months: 12, unit: \"year\" }\n];\nvar MONTH_MS = 30 * DAY;\nvar spanOf = (i) => i.ms ?? i.months * MONTH_MS;\nfunction intervalFor(span, count) {\n const target = span / Math.max(1, count);\n let best = INTERVALS[0];\n for (const i of INTERVALS) if (Math.abs(Math.log(spanOf(i) / target)) < Math.abs(Math.log(spanOf(best) / target))) best = i;\n if (best.unit === \"year\" && target > 12 * MONTH_MS) {\n const years = 10 ** Math.floor(Math.log10(target / (12 * MONTH_MS)));\n return { months: 12 * years, unit: \"year\" };\n }\n return best;\n}\nfunction monthStart(month) {\n const at = /* @__PURE__ */ new Date(0);\n at.setUTCFullYear(Math.floor(month / 12), (month % 12 + 12) % 12, 1);\n return at.getTime();\n}\nfunction gridTicks(lo, hi, interval) {\n const out = [];\n if (!Number.isFinite(lo) || !Number.isFinite(hi)) return out;\n if (interval.ms !== void 0) {\n for (let t = Math.ceil(lo / interval.ms) * interval.ms; t <= hi; t += interval.ms) out.push(t);\n return out;\n }\n const at = new Date(lo);\n let month = at.getUTCFullYear() * 12 + at.getUTCMonth();\n month = Math.ceil(month / interval.months) * interval.months;\n for (; ; month += interval.months) {\n const t = monthStart(month);\n if (t < lo) continue;\n if (t > hi) break;\n out.push(t);\n }\n return out;\n}\nvar pad = (n) => String(n).padStart(2, \"0\");\nfunction formatInstant(t, unit) {\n const d = new Date(t);\n const date = `${d.getUTCFullYear()}-${pad(d.getUTCMonth() + 1)}-${pad(d.getUTCDate())}`;\n const time = `${pad(d.getUTCHours())}:${pad(d.getUTCMinutes())}`;\n switch (unit) {\n case \"year\":\n return String(d.getUTCFullYear());\n case \"month\":\n return date.slice(0, 7);\n case \"day\":\n return date;\n case \"hour\":\n case \"minute\":\n return d.getUTCHours() === 0 && d.getUTCMinutes() === 0 ? date : time;\n case \"second\":\n return `${time}:${pad(d.getUTCSeconds())}`;\n }\n}\nfunction timeScale(opts) {\n const [d0, d1] = opts.domain;\n const [r0, r1] = opts.range;\n const span = d1 - d0;\n const map = (v) => span === 0 ? (r0 + r1) / 2 : r0 + (v - d0) / span * (r1 - r0);\n const interval = (count = 5) => intervalFor(Math.abs(span), count);\n const format = (v) => formatInstant(v, interval().unit);\n return {\n kind: \"time\",\n domain: [d0, d1],\n range: [r0, r1],\n map,\n position: map,\n invert: (at) => r1 === r0 ? d0 : d0 + (at - r0) / (r1 - r0) * span,\n ticks: (count = 5) => {\n const out = gridTicks(Math.min(d0, d1), Math.max(d0, d1), interval(count));\n return d0 <= d1 ? out : out.reverse();\n },\n format,\n tickFormat(count) {\n const { unit } = interval(count);\n return replacedFormat(this, format) ?? ((v) => formatInstant(v, unit));\n }\n };\n}\n\n// src/scales/ordinal.ts\nfunction ordinalScale(opts) {\n if (opts.range.length === 0) throw new Error(\"ordinalScale: an empty range\");\n const domain = [...opts.domain];\n const index = new Map(domain.map((key, i) => [key, i]));\n const range = [...opts.range];\n return {\n kind: \"ordinal\",\n domain,\n range,\n map: (key) => {\n let i = index.get(key);\n if (i === void 0) {\n i = domain.length;\n domain.push(key);\n index.set(key, i);\n }\n return range[i % range.length];\n },\n ticks: () => [...domain],\n format: (key) => key\n };\n}\n\n// src/scales/polar.ts\nfunction polarScale(opts) {\n const center = { x: opts.center.x, y: opts.center.y };\n const radius = [opts.radius[0], opts.radius[1]];\n const domain = [opts.domain[0], opts.domain[1]];\n const axes = Math.max(1, Math.floor(opts.axes));\n const start = opts.startAngle ?? 0;\n const linear = linearScale({ domain, range: radius });\n const angle = (i) => start + 2 * Math.PI * i / axes;\n const lo = Math.min(domain[0], domain[1]);\n const hi = Math.max(domain[0], domain[1]);\n return {\n kind: \"polar\",\n center,\n radius,\n domain,\n axes,\n angle,\n radiusAt: linear.map,\n point(i, value) {\n const r = linear.map(value);\n const a = angle(i);\n return { x: center.x + r * Math.sin(a), y: center.y - r * Math.cos(a) };\n },\n valueAt(i, at) {\n const a = angle(i);\n const along = (at.x - center.x) * Math.sin(a) - (at.y - center.y) * Math.cos(a);\n return Math.min(hi, Math.max(lo, linear.invert(along)));\n },\n tickStep: linear.tickStep,\n ticks: linear.ticks,\n format: linear.format,\n tickFormat: linear.tickFormat\n };\n}\n\nexport { bandScale, decimalsOf, formatInstant, formatNumber, formatTick, linearScale, logScale, niceDomain, niceStep, ordinalScale, polarScale, powScale, stepTicks, tickDecimals, tickStep, timeScale, warpScale };\n//# sourceMappingURL=chunk-7S5P3NK4.js.map\n//# sourceMappingURL=chunk-7S5P3NK4.js.map","import { t as dlog } from \"./dlog-DgzNKPZO.js\";\nimport { forwardRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useColorCss } from \"@weasel-js/theme/react\";\nimport { formatTick, linearScale, tickDecimals } from \"@weasel-js/plot/scales\";\n\n// src/components/Plot2D/geometry.ts\n/**\n* Maps a model-space point into plot space, flipping the y axis so model y\n* grows upward while SVG y grows downward.\n*/\nfunction modelToPlot(p, m, plot) {\n\tconst xFrac = (p.x - m.xMin) / (m.xMax - m.xMin);\n\tconst yFrac = (p.y - m.yMin) / (m.yMax - m.yMin);\n\treturn {\n\t\tx: xFrac * plot.width,\n\t\ty: (1 - yFrac) * plot.height\n\t};\n}\n/** The inverse of {@link modelToPlot}. */\nfunction plotToModel(p, m, plot) {\n\tconst xFrac = p.x / plot.width;\n\tconst yFrac = 1 - p.y / plot.height;\n\treturn {\n\t\tx: m.xMin + xFrac * (m.xMax - m.xMin),\n\t\ty: m.yMin + yFrac * (m.yMax - m.yMin)\n\t};\n}\n\n// src/components/Plot2D/Plot2D.module.css\nvar root = \"_root_b8a5db\";\nvar grid = \"_grid_b8a5db\";\nvar axis = \"_axis_b8a5db\";\nvar tick = \"_tick_b8a5db\";\nvar tickLabels = \"_tickLabels_b8a5db\";\nvar tickLabel = \"_tickLabel_b8a5db _numeric_25fd0b\";\nvar Plot2D_module_default = {\n\troot,\n\tgrid,\n\taxis,\n\ttick,\n\ttickLabels,\n\ttickLabel\n};\n\n// src/components/Plot2D/Plot2D.tsx\nvar TICK_SPACING_PX = {\n\tx: 64,\n\ty: 24\n};\nvar TICK_INSET_PX = {\n\tx: 16,\n\ty: 4\n};\nvar LABEL_GAP_PX = 4;\nfunction resolveTicks(settings, axis, range, pixels, toPlot) {\n\tlet values;\n\tlet ctx;\n\tif (settings.values) {\n\t\tconst lo = Math.min(range[0], range[1]);\n\t\tconst hi = Math.max(range[0], range[1]);\n\t\tconst eps = (hi - lo) * 1e-9;\n\t\tvalues = settings.values.filter((v) => v >= lo - eps && v <= hi + eps);\n\t\tconst gaps = values.slice(1).map((v, i) => v - values[i]);\n\t\tconst even = gaps.length > 0 && gaps.every((g) => Math.abs(g - gaps[0]) <= Math.abs(gaps[0]) * 1e-9);\n\t\tctx = {\n\t\t\tdecimals: tickDecimals(values),\n\t\t\tstep: even ? gaps[0] : 0\n\t\t};\n\t} else {\n\t\tconst set = linearScale({\n\t\t\tdomain: range,\n\t\t\trange: [0, pixels]\n\t\t}).spacedTicks({\n\t\t\tminSpacing: settings.minSpacing ?? TICK_SPACING_PX[axis],\n\t\t\tinset: settings.inset ?? TICK_INSET_PX[axis]\n\t\t});\n\t\tvalues = set.values;\n\t\tctx = {\n\t\t\tdecimals: set.decimals,\n\t\t\tstep: set.step\n\t\t};\n\t}\n\tconst format = settings.format ?? formatTick;\n\treturn values.map((value) => ({\n\t\tvalue,\n\t\tat: toPlot(value),\n\t\tlabel: format(value, ctx)\n\t}));\n}\n/**\n* An SVG plotting surface with an optional grid, axes and ticks. It draws the\n* frame and owns the model-space to plot-space mapping; the plotted content is\n* whatever children are passed, positioned in plot space.\n*/\nvar Plot2D = forwardRef(function Plot2D(props, ref) {\n\tconst css = useColorCss();\n\tconst { width, height, xRange = [0, 1], yRange = [0, 1], grid, axes, xTicks, yTicks, tabIndex, role = \"img\", className, style, onPointerDown, onContextMenu, onKeyDown, children } = props;\n\tconst svgRef = useRef(null);\n\tconst modelRange = useMemo(() => ({\n\t\txMin: xRange[0],\n\t\txMax: xRange[1],\n\t\tyMin: yRange[0],\n\t\tyMax: yRange[1]\n\t}), [xRange, yRange]);\n\tconst plotSize = useMemo(() => ({\n\t\twidth,\n\t\theight\n\t}), [width, height]);\n\tconst clientToPlot = useCallback((e) => {\n\t\tconst rect = svgRef.current?.getBoundingClientRect();\n\t\tconst left = rect?.left ?? 0;\n\t\tconst top = rect?.top ?? 0;\n\t\treturn {\n\t\t\tx: e.clientX - left,\n\t\t\ty: e.clientY - top\n\t\t};\n\t}, []);\n\tuseEffect(() => {\n\t\tdlog(\"plot2d\", \"mount\", {\n\t\t\twidth,\n\t\t\theight\n\t\t});\n\t\treturn () => dlog(\"plot2d\", \"unmount\");\n\t}, []);\n\tuseImperativeHandle(ref, () => ({\n\t\tget svg() {\n\t\t\treturn svgRef.current;\n\t\t},\n\t\tplotToModel: (pt) => plotToModel(pt, modelRange, plotSize),\n\t\tmodelToPlot: (pt) => modelToPlot(pt, modelRange, plotSize),\n\t\tclientToPlot,\n\t\tclientToModel: (e) => plotToModel(clientToPlot(e), modelRange, plotSize),\n\t\tget width() {\n\t\t\treturn plotSize.width;\n\t\t},\n\t\tget height() {\n\t\t\treturn plotSize.height;\n\t\t}\n\t}), [\n\t\tmodelRange,\n\t\tplotSize,\n\t\tclientToPlot\n\t]);\n\tconst coordsOf = useCallback((e) => {\n\t\tconst plot = clientToPlot(e);\n\t\treturn {\n\t\t\tplot,\n\t\t\tmodel: plotToModel(plot, modelRange, plotSize)\n\t\t};\n\t}, [\n\t\tclientToPlot,\n\t\tmodelRange,\n\t\tplotSize\n\t]);\n\tconst xTickList = xTicks ? resolveTicks(xTicks, \"x\", xRange, width, (v) => modelToPlot({\n\t\tx: v,\n\t\ty: yRange[0]\n\t}, modelRange, plotSize).x) : [];\n\tconst yTickList = yTicks ? resolveTicks(yTicks, \"y\", yRange, height, (v) => modelToPlot({\n\t\tx: xRange[0],\n\t\ty: v\n\t}, modelRange, plotSize).y) : [];\n\tconst yInside = !!yTicks && (yTicks.labels ?? \"inside\") === \"inside\";\n\tconst yLabelsRef = useRef(null);\n\tconst [yLabelWidth, setYLabelWidth] = useState(0);\n\tconst yLabelKey = yInside ? yTickList.map((t) => t.label).join(\"\\n\") : \"\";\n\tuseLayoutEffect(() => {\n\t\tif (!yInside) return;\n\t\tconst measure = () => {\n\t\t\tlet widest = 0;\n\t\t\tfor (const el of yLabelsRef.current?.querySelectorAll(\"text\") ?? []) if (typeof el.getComputedTextLength === \"function\") widest = Math.max(widest, el.getComputedTextLength());\n\t\t\tsetYLabelWidth((prev) => prev === widest ? prev : widest);\n\t\t};\n\t\tmeasure();\n\t\tlet live = true;\n\t\tdocument.fonts?.ready.then(() => {\n\t\t\tif (live) measure();\n\t\t});\n\t\treturn () => {\n\t\t\tlive = false;\n\t\t};\n\t}, [yInside, yLabelKey]);\n\tconst cls = [Plot2D_module_default.root, className].filter(Boolean).join(\" \");\n\tconst renderTickLines = (axis, list, settings) => {\n\t\tif (!settings || settings.lines === false || list.length === 0) return null;\n\t\treturn /* @__PURE__ */ jsx(\"g\", { children: list.map((t) => /* @__PURE__ */ jsx(\"line\", {\n\t\t\t\"data-plot-element\": \"tick\",\n\t\t\t\"data-axis\": axis,\n\t\t\tclassName: Plot2D_module_default.tick,\n\t\t\t...axis === \"x\" ? {\n\t\t\t\tx1: t.at,\n\t\t\t\tx2: t.at,\n\t\t\t\ty1: 0,\n\t\t\t\ty2: height\n\t\t\t} : {\n\t\t\t\tx1: 0,\n\t\t\t\tx2: width,\n\t\t\t\ty1: t.at,\n\t\t\t\ty2: t.at\n\t\t\t}\n\t\t}, `t${axis}-${t.value}`)) });\n\t};\n\tconst renderTickLabels = (axis, list, settings) => {\n\t\tif (!settings || list.length === 0) return null;\n\t\tconst placement = settings.labels ?? \"inside\";\n\t\tif (placement === false) return null;\n\t\tconst outside = placement === \"outside\";\n\t\tconst gap = settings.gap ?? LABEL_GAP_PX;\n\t\tlet place;\n\t\tif (axis === \"y\") place = outside ? {\n\t\t\tx: -gap,\n\t\t\ttextAnchor: \"end\",\n\t\t\tdominantBaseline: \"central\"\n\t\t} : yLabelWidth > 0 ? {\n\t\t\tx: gap + yLabelWidth,\n\t\t\ttextAnchor: \"end\",\n\t\t\tdominantBaseline: \"central\"\n\t\t} : {\n\t\t\tx: gap,\n\t\t\ttextAnchor: \"start\",\n\t\t\tdominantBaseline: \"central\"\n\t\t};\n\t\telse place = outside ? {\n\t\t\ty: height + gap,\n\t\t\ttextAnchor: \"middle\",\n\t\t\tdominantBaseline: \"hanging\"\n\t\t} : {\n\t\t\ty: height - gap,\n\t\t\ttextAnchor: \"middle\"\n\t\t};\n\t\treturn /* @__PURE__ */ jsx(\"g\", {\n\t\t\tref: axis === \"y\" ? yLabelsRef : void 0,\n\t\t\tclassName: Plot2D_module_default.tickLabels,\n\t\t\t\"aria-hidden\": \"true\",\n\t\t\tchildren: list.map((t) => /* @__PURE__ */ jsx(\"text\", {\n\t\t\t\t\"data-plot-element\": \"tick-label\",\n\t\t\t\t\"data-axis\": axis,\n\t\t\t\t\"data-placement\": placement,\n\t\t\t\tclassName: Plot2D_module_default.tickLabel,\n\t\t\t\tx: axis === \"x\" ? t.at : place.x,\n\t\t\t\ty: axis === \"y\" ? t.at : place.y,\n\t\t\t\ttextAnchor: place.textAnchor,\n\t\t\t\tdominantBaseline: place.dominantBaseline,\n\t\t\t\tchildren: t.label\n\t\t\t}, `l${axis}-${t.value}`))\n\t\t});\n\t};\n\treturn /* @__PURE__ */ jsxs(\"svg\", {\n\t\tref: svgRef,\n\t\tclassName: cls,\n\t\tstyle,\n\t\twidth,\n\t\theight,\n\t\tviewBox: `0 0 ${width} ${height}`,\n\t\trole,\n\t\t\"aria-label\": props[\"aria-label\"],\n\t\ttabIndex,\n\t\tonPointerDown: onPointerDown ? (e) => onPointerDown(e, coordsOf(e)) : void 0,\n\t\tonContextMenu: onContextMenu ? (e) => onContextMenu(e, coordsOf(e)) : void 0,\n\t\tonKeyDown,\n\t\tchildren: [\n\t\t\tgrid && (() => {\n\t\t\t\tconst divisions = grid.divisions ?? 3;\n\t\t\t\tconst fractions = [];\n\t\t\t\tfor (let i = 1; i <= divisions; i++) fractions.push(i / (divisions + 1));\n\t\t\t\tconst color = css(grid.color);\n\t\t\t\treturn /* @__PURE__ */ jsxs(\"g\", {\n\t\t\t\t\tstyle: color === void 0 ? void 0 : { \"--plot-grid\": color },\n\t\t\t\t\tchildren: [fractions.map((f) => /* @__PURE__ */ jsx(\"line\", {\n\t\t\t\t\t\t\"data-plot-element\": \"grid\",\n\t\t\t\t\t\tclassName: Plot2D_module_default.grid,\n\t\t\t\t\t\tx1: f * width,\n\t\t\t\t\t\tx2: f * width,\n\t\t\t\t\t\ty1: 0,\n\t\t\t\t\t\ty2: height\n\t\t\t\t\t}, `gx-${f}`)), fractions.map((f) => /* @__PURE__ */ jsx(\"line\", {\n\t\t\t\t\t\t\"data-plot-element\": \"grid\",\n\t\t\t\t\t\tclassName: Plot2D_module_default.grid,\n\t\t\t\t\t\tx1: 0,\n\t\t\t\t\t\tx2: width,\n\t\t\t\t\t\ty1: f * height,\n\t\t\t\t\t\ty2: f * height\n\t\t\t\t\t}, `gy-${f}`))]\n\t\t\t\t});\n\t\t\t})(),\n\t\t\trenderTickLines(\"x\", xTickList, xTicks),\n\t\t\trenderTickLines(\"y\", yTickList, yTicks),\n\t\t\taxes !== false && axes !== null && (() => {\n\t\t\t\tconst color = css(axes?.color);\n\t\t\t\treturn /* @__PURE__ */ jsxs(\"g\", {\n\t\t\t\t\tstyle: color === void 0 ? void 0 : { \"--plot-axis\": color },\n\t\t\t\t\tchildren: [/* @__PURE__ */ jsx(\"line\", {\n\t\t\t\t\t\t\"data-plot-element\": \"axis\",\n\t\t\t\t\t\tclassName: Plot2D_module_default.axis,\n\t\t\t\t\t\tx1: 0,\n\t\t\t\t\t\tx2: width,\n\t\t\t\t\t\ty1: height,\n\t\t\t\t\t\ty2: height\n\t\t\t\t\t}), /* @__PURE__ */ jsx(\"line\", {\n\t\t\t\t\t\t\"data-plot-element\": \"axis\",\n\t\t\t\t\t\tclassName: Plot2D_module_default.axis,\n\t\t\t\t\t\tx1: 0,\n\t\t\t\t\t\tx2: 0,\n\t\t\t\t\t\ty1: 0,\n\t\t\t\t\t\ty2: height\n\t\t\t\t\t})]\n\t\t\t\t});\n\t\t\t})(),\n\t\t\trenderTickLabels(\"x\", xTickList, xTicks),\n\t\t\trenderTickLabels(\"y\", yTickList, yTicks),\n\t\t\tchildren\n\t\t]\n\t});\n});\n\nexport { modelToPlot as n, plotToModel as r, Plot2D as t };\n//# sourceMappingURL=Plot2D-CZdMztKQ.js.map","export interface Series {\n id: string;\n hue: number;\n /** Overrides the color a hue gives. */\n color?: string;\n values: readonly number[];\n thick?: boolean;\n}\n\nexport function rangeOf(series: readonly Series[]): [number, number] {\n let lo = Number.POSITIVE_INFINITY;\n let hi = Number.NEGATIVE_INFINITY;\n for (const s of series)\n for (const v of s.values)\n if (Number.isFinite(v)) {\n if (v < lo) lo = v;\n if (v > hi) hi = v;\n }\n if (!Number.isFinite(lo)) return [-0.5, 0.5];\n if (hi - lo < 1e-9) return [lo - 0.5, hi + 0.5];\n const pad = (hi - lo) * 0.05;\n return [lo - pad, hi + pad];\n}\n\n/** The time span a plot shows: `span` where given, else the samples', at least a second wide. */\nexport function timeSpan(\n times: readonly number[],\n span?: readonly [number, number],\n): [number, number] {\n const lo = span?.[0] ?? times[0] ?? 0;\n const hi = span?.[1] ?? times[times.length - 1] ?? lo;\n return [lo, hi - lo < 1 ? lo + 1000 : hi];\n}\n\n/** Widens [lo, hi] so `px` pixels of a `size`-pixel axis lie beyond each end. */\nexport function insetRange([lo, hi]: [number, number], px: number, size: number): [number, number] {\n const pad = ((hi - lo) * px) / Math.max(1, size - 2 * px);\n return [lo - pad, hi + pad];\n}\n\nexport function pathOf(\n times: readonly number[],\n values: readonly number[],\n x: (t: number) => number,\n y: (v: number) => number,\n): string {\n let d = '';\n let pen = false;\n times.forEach((t, i) => {\n const v = values[i];\n if (v === undefined || !Number.isFinite(v)) {\n pen = false;\n return;\n }\n d += `${pen ? 'L' : 'M'}${Math.round(x(t) * 100) / 100} ${Math.round(y(v) * 100) / 100}`;\n pen = true;\n });\n return d;\n}\n","import { modelToPlot, Plot2D } from '@weasel-js/ui';\nimport { hueColor } from './hue.js';\nimport { insetRange, pathOf, rangeOf, type Series, timeSpan } from './path.js';\n\nexport interface ChannelPlotProps {\n label: string;\n times: readonly number[];\n series: readonly Series[];\n playhead: number;\n /** The span of time drawn; the samples' own span otherwise. */\n range?: readonly [number, number];\n width?: number;\n height?: number;\n}\n\nconst LABEL_ROOM = 8; // px kept clear above and below the data so edge tick labels fit\n\n// Carried with the component, so it draws the same in a page, a shadow root, or an app's tree.\nconst CSS = `\n.bp-plot { margin: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }\n.bp-plot-surface { margin-block-end: calc(var(--wzl-font-size-xs) + 6px); }\n.bp-plot-label { font-family: var(--wzl-font-ui); font-size: var(--wzl-font-size-xs); color: var(--wzl-fg-muted); }\n.bp-plot-thin, .bp-plot-thick { fill: none; stroke-linejoin: round; }\n.bp-plot-thin { stroke-width: 1; opacity: 0.65; }\n.bp-plot-thick { stroke-width: 2.5; }\n.bp-plot-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n`;\n\n/**\n * Values over time, one line per series, with a playhead: the plot the playground's inspector\n * and the panel both draw.\n */\nexport function ChannelPlot({\n label,\n times,\n series,\n playhead,\n range: span,\n width = 320,\n height = 90,\n}: ChannelPlotProps) {\n const [yMin, yMax] = insetRange(rangeOf(series), LABEL_ROOM, height);\n const [xMin, xMax] = timeSpan(times, span);\n const range = { xMin, xMax, yMin, yMax };\n const size = { width, height };\n const x = (t: number) => modelToPlot({ x: t, y: yMin }, range, size).x;\n const y = (v: number) => modelToPlot({ x: xMin, y: v }, range, size).y;\n const px = x(Math.min(xMax, Math.max(xMin, playhead)));\n return (\n <figure className=\"bp-plot\">\n <style>{CSS}</style>\n <figcaption className=\"bp-plot-label\">{label}</figcaption>\n <Plot2D\n width={width}\n height={height}\n xRange={[xMin, xMax]}\n yRange={[yMin, yMax]}\n className=\"bp-plot-surface\"\n axes={false}\n xTicks={{ labels: 'outside' }}\n yTicks={{ labels: 'inside' }}\n aria-label={label}\n >\n {series.map((ser) => (\n <path\n key={ser.id}\n className={ser.thick ? 'bp-plot-thick' : 'bp-plot-thin'}\n d={pathOf(times, ser.values, x, y)}\n stroke={ser.color ?? hueColor(ser.hue)}\n />\n ))}\n <line className=\"bp-plot-playhead\" x1={px} x2={px} y1={0} y2={height} />\n </Plot2D>\n </figure>\n );\n}\n","import { modelToPlot } from '@weasel-js/ui';\nimport { useId } from 'react';\nimport { timeSpan } from './path.js';\n\nexport interface ColorStripProps {\n label: string;\n times: readonly number[];\n /** Each sample's colors: the one shown, then an ordered blend mode's layers, bottom first. */\n colors: readonly (readonly string[] | undefined)[];\n playhead: number;\n /** The span of time drawn; the samples' own span otherwise. */\n range?: readonly [number, number];\n width?: number;\n}\n\nconst SHOWN = 22;\nconst LAYER = 9;\nconst GAP = 2;\n\n// Carried with the component, so it draws the same in a page, a shadow root, or an app's tree.\nconst CSS = `\n.bp-strip { margin: 0 0 6px; display: grid; gap: 2px; }\n.bp-strip-label { font-family: var(--wzl-font-ui); font-size: var(--wzl-font-size-xs); color: var(--wzl-fg-muted); }\n.bp-strip-check-a { fill: var(--wzl-surface-sunken); }\n.bp-strip-check-b { fill: var(--wzl-border); }\n.bp-strip-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n.bp-strip-layer-label { font-family: var(--wzl-font-ui); font-size: 8px; fill: var(--wzl-fg-muted); }\n`;\n\n/**\n * A color channel over time: a band painted with the color it shows at each sample, over a\n * checkerboard so its opacity reads, and a thin band per layer of an ordered blend mode beneath.\n */\nexport function ColorStrip({\n label,\n times,\n colors,\n playhead,\n range: span,\n width = 320,\n}: ColorStripProps) {\n const check = `bp-check${useId().replace(/[^\\w-]/g, '')}`;\n const layers = colors.reduce((n, c) => Math.max(n, (c?.length ?? 1) - 1), 0);\n const height = SHOWN + layers * (LAYER + GAP);\n const [xMin, xMax] = timeSpan(times, span);\n const range = { xMin, xMax, yMin: 0, yMax: 1 };\n const x = (t: number) => modelToPlot({ x: t, y: 0 }, range, { width, height }).x;\n const px = x(Math.min(xMax, Math.max(xMin, playhead)));\n const row = (j: number) =>\n j === 0 ? { y: 0, h: SHOWN } : { y: SHOWN + (j - 1) * (LAYER + GAP) + GAP, h: LAYER };\n const bands = Array.from({ length: layers + 1 }, (_, j) => ({\n name: j === 0 ? 'shown' : `layer ${j}`,\n layer: j,\n ...row(j),\n }));\n const cells: { key: string; x: number; w: number; y: number; h: number; fill: string }[] = [];\n times.forEach((t, i) => {\n const c = colors[i];\n if (c === undefined) return;\n const x0 = x(t);\n const x1 = i + 1 < times.length ? x(times[i + 1] as number) : x0 + 1;\n if (x1 <= 0 || x0 >= width) return;\n c.forEach((fill, j) => {\n const { y, h } = row(j);\n cells.push({ key: `${i}:${j}`, x: x0, w: Math.max(1, x1 - x0 + 0.5), y, h, fill });\n });\n });\n return (\n <figure className=\"bp-strip\">\n <style>{CSS}</style>\n <figcaption className=\"bp-strip-label\">{label}</figcaption>\n <svg width={width} height={height} role=\"img\" aria-label={label}>\n <defs>\n <pattern id={check} width={8} height={8} patternUnits=\"userSpaceOnUse\">\n <rect className=\"bp-strip-check-a\" width={8} height={8} />\n <rect className=\"bp-strip-check-b\" width={4} height={4} />\n <rect className=\"bp-strip-check-b\" x={4} y={4} width={4} height={4} />\n </pattern>\n </defs>\n {bands.map((b) => (\n <rect key={b.name} y={b.y} width={width} height={b.h} fill={`url(#${check})`} />\n ))}\n {cells.map((c) => (\n <rect key={c.key} x={c.x} y={c.y} width={c.w} height={c.h} fill={c.fill} />\n ))}\n {bands.slice(1).map((b) => (\n <text key={b.name} className=\"bp-strip-layer-label\" x={2} y={b.y + LAYER - 1}>\n {b.layer}\n </text>\n ))}\n <line className=\"bp-strip-playhead\" x1={px} x2={px} y1={0} y2={height} />\n </svg>\n </figure>\n );\n}\n","import type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport { AHEAD_CAP_MS, AHEAD_MS, WINDOW_MS } from '../store.js';\nimport { voiceHue } from './hue.js';\n\n/** One voice's stretch of the plan. */\nexport interface Span {\n voice: number;\n label: string;\n marks: MarkInfo[];\n /** Its start, or -Infinity where that lies before what was listed. */\n from: number;\n /** Its end, or Infinity where none is known: it loops for good, or ends past the cap. */\n to: number;\n}\n\n/** One row of the plan: a track's voices, or a voice with no track on its own. */\nexport interface Lane {\n /** The track's name, or `#` and the voice's id for a voice with none. */\n key: string;\n label: string;\n hue: number;\n spans: Span[];\n /** Where its earliest voice starts. */\n from: number;\n}\n\nconst playing = new Set(['live', 'frozen', 'fading']);\n\n/**\n * The plan by track, earliest start first: a lane for each track, holding its voices, and one for\n * each voice with none, from what the marks list and the voices playing on without one; and the\n * marks the host announced.\n */\nexport function lanesOf(\n marks: readonly MarkInfo[],\n voices: readonly VoiceInfo[],\n): { lanes: Lane[]; announced: MarkInfo[] } {\n const known = new Map(voices.map((v) => [v.id, v]));\n const byVoice = new Map<number, { span: Span; track: string | null }>();\n const span = (id: number, name: string | null, track: string | null) => {\n let s = byVoice.get(id);\n if (s === undefined) {\n const v = known.get(id);\n s = {\n span: {\n voice: id,\n label: v?.name ?? name ?? `#${id}`,\n marks: [],\n from: Number.NEGATIVE_INFINITY,\n to: Number.POSITIVE_INFINITY,\n },\n track: v?.track ?? track,\n };\n byVoice.set(id, s);\n }\n return s.span;\n };\n const announced: MarkInfo[] = [];\n for (const m of marks) {\n if (m.voice === null) {\n announced.push(m);\n continue;\n }\n const s = span(m.voice, m.name, m.track);\n s.marks.push(m);\n if (m.mark === 'start') s.from = m.at;\n if (m.mark === 'end') s.to = m.at;\n }\n for (const v of voices) if (playing.has(v.state)) span(v.id, v.name, v.track);\n\n const byKey = new Map<string, Lane>();\n for (const { span: s, track } of byVoice.values()) {\n const key = track ?? `#${s.voice}`;\n let lane = byKey.get(key);\n if (lane === undefined) {\n lane = { key, label: track ?? s.label, hue: voiceHue(s.voice), spans: [], from: s.from };\n byKey.set(key, lane);\n }\n lane.spans.push(s);\n lane.from = Math.min(lane.from, s.from);\n }\n const lanes = [...byKey.values()];\n for (const l of lanes) l.spans.sort((a, b) => a.from - b.from || a.voice - b.voice);\n lanes.sort((a, b) => a.from - b.from || (a.spans[0]?.voice ?? 0) - (b.spans[0]?.voice ?? 0));\n return { lanes, announced };\n}\n\n/**\n * The span the plan and plots share: back to the first sample, or the earliest mark within the\n * plots' window, and ahead `AHEAD_MS`, stretched to the furthest mark up to `AHEAD_CAP_MS`.\n */\nexport function axisOf(\n head: number,\n times: readonly number[],\n marks: readonly MarkInfo[],\n): [number, number] {\n const first = times[0];\n const last = times[times.length - 1];\n if (!Number.isFinite(head)) return [first ?? 0, Math.max((first ?? 0) + 1, last ?? 1)];\n let earliest = head - AHEAD_MS;\n let furthest = head + AHEAD_MS;\n for (const m of marks) {\n if (m.at < earliest) earliest = m.at;\n if (m.at > furthest) furthest = m.at;\n }\n const from = first ?? Math.max(head - WINDOW_MS, earliest);\n const to = Math.max(Math.min(furthest, head + AHEAD_CAP_MS), last ?? head);\n return [from, Math.max(from + 1, to)];\n}\n","const two = (n: number) => String(n).padStart(2, '0');\n\n/** A clock reading in ms as `12.34s`, `1:05.20`, or `2:03:07.50`; `—` for one that isn't finite. */\nexport function clockText(ms: number): string {\n if (!Number.isFinite(ms)) return '—';\n const sign = ms < 0 ? '-' : '';\n const cs = Math.floor(Math.abs(ms) / 10);\n const secs = (cs % 6000) / 100;\n const mins = Math.floor(cs / 6000) % 60;\n const hours = Math.floor(cs / 360000);\n if (hours === 0 && mins === 0) return `${sign}${secs.toFixed(2)}s`;\n const s = secs.toFixed(2).padStart(5, '0');\n return hours === 0 ? `${sign}${mins}:${s}` : `${sign}${hours}:${two(mins)}:${s}`;\n}\n","import type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport { hueColor } from './hue.js';\nimport { type Lane, lanesOf, type Span } from './lanes.js';\nimport { clockText } from './time.js';\n\nconst LANE = 30;\nconst MAX_LANES = 12;\n/** Roughly how wide one character of a 9 px label draws, for keeping labels apart. */\nconst CHAR_PX = 5.2;\n\nconst CSS = `\n.bp-plan { margin: 0 0 8px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }\n.bp-plan svg { display: block; overflow: visible; }\n.bp-plan-text { font-family: var(--wzl-font-ui); font-size: 9px; fill: var(--wzl-fg-muted); }\n.bp-plan-name { font-family: var(--wzl-font-ui); font-size: 10px; fill: var(--wzl-fg); }\n.bp-plan-ahead { fill: var(--wzl-fg); opacity: 0.05; }\n.bp-plan-bar { opacity: 0.4; }\n.bp-plan-tick { stroke-width: 1.5; }\n.bp-plan-said { stroke: var(--wzl-fg-muted); stroke-dasharray: 3 3; stroke-width: 1; }\n.bp-plan-playhead { stroke: var(--wzl-danger); stroke-width: 1; }\n`;\n\nexport interface PlanProps {\n marks: readonly MarkInfo[];\n voices: readonly VoiceInfo[];\n range: readonly [number, number];\n playhead: number;\n width?: number;\n}\n\n/**\n * The plan on the plots' time axis: a lane per track, each of its voices a bar from its start to\n * its end, an arrow where no end is known, a tick at each mark, and what the host announced across\n * them all. A voice with no track has a lane of its own.\n */\nexport function Plan({ marks, voices, range, playhead, width = 320 }: PlanProps) {\n const [xMin, xMax] = range;\n const { lanes, announced: all } = lanesOf(marks, voices);\n const announced = all.filter((m) => m.at >= xMin && m.at <= xMax);\n const shown = lanes.slice(0, MAX_LANES);\n const x = (t: number) => ((Math.min(xMax, Math.max(xMin, t)) - xMin) / (xMax - xMin)) * width;\n const rows = shown.length + (announced.length > 0 ? 1 : 0);\n const height = Math.max(1, rows) * LANE;\n const head = Number.isFinite(playhead) ? x(playhead) : null;\n const ahead = Number.isFinite(playhead) ? xMax - playhead : 0;\n return (\n <figure className=\"bp-plan\" aria-label=\"plan\">\n <style>{CSS}</style>\n <figcaption className=\"bp-plot-label\">\n plan{ahead > 0 ? `, ${clockText(ahead)} ahead` : ''}\n {lanes.length > shown.length && ` · ${lanes.length - shown.length} more lanes`}\n </figcaption>\n <svg width={width} height={height} role=\"img\" aria-label=\"plan\">\n {head !== null && (\n <rect className=\"bp-plan-ahead\" x={head} y={0} width={width - head} height={height} />\n )}\n {rows === 0 && (\n <text className=\"bp-plan-text\" x={4} y={LANE / 2 + 3}>\n nothing planned\n </text>\n )}\n {shown.map((l, i) => (\n <LaneRow key={l.key} lane={l} y={i * LANE} x={x} xMin={xMin} xMax={xMax} />\n ))}\n {announced.map((m) => (\n <line\n key={`said-${m.name}-${m.at}`}\n className=\"bp-plan-said\"\n x1={x(m.at)}\n x2={x(m.at)}\n y1={0}\n y2={height}\n >\n <title>{markTitle(m)}</title>\n </line>\n ))}\n {announced.length > 0 && (\n <g transform={`translate(0 ${shown.length * LANE})`}>\n <text className=\"bp-plan-name\" x={2} y={10}>\n announced\n </text>\n {labels(announced, x).map(({ m, show }) => (\n <g key={`a-${m.name}-${m.at}`}>\n <path\n d={`M${x(m.at)} 12l4 4l-4 4l-4 -4z`}\n fill=\"var(--wzl-fg)\"\n aria-label={markTitle(m)}\n >\n <title>{markTitle(m)}</title>\n </path>\n {show && (\n <text className=\"bp-plan-text\" x={x(m.at) + 6} y={LANE - 2}>\n {m.name ?? ''}\n </text>\n )}\n </g>\n ))}\n </g>\n )}\n {head !== null && (\n <line className=\"bp-plan-playhead\" x1={head} x2={head} y1={0} y2={height} />\n )}\n </svg>\n </figure>\n );\n}\n\nfunction LaneRow({\n lane,\n y,\n x,\n xMin,\n xMax,\n}: {\n lane: Lane;\n y: number;\n x: (t: number) => number;\n xMin: number;\n xMax: number;\n}) {\n const color = hueColor(lane.hue);\n const x0 = x(lane.from);\n return (\n <g transform={`translate(0 ${y})`} aria-label={lane.label}>\n <text className=\"bp-plan-name\" x={Math.max(2, Math.min(x0, x(xMax) - 60)) + 2} y={9}>\n {lane.label}\n </text>\n {lane.spans.map((s) => (\n <SpanBar key={s.voice} span={s} color={color} x={x} xMin={xMin} xMax={xMax} />\n ))}\n </g>\n );\n}\n\nfunction SpanBar({\n span,\n color,\n x,\n xMin,\n xMax,\n}: {\n span: Span;\n color: string;\n x: (t: number) => number;\n xMin: number;\n xMax: number;\n}) {\n const x0 = x(span.from);\n const open = !(span.to <= xMax);\n const x1 = open ? x(xMax) - 6 : x(span.to);\n const ends =\n span.to === Number.POSITIVE_INFINITY\n ? 'no end known: plays on'\n : `gone at ${clockText(span.to)}`;\n return (\n <g aria-label={`${span.label}: ${ends}`}>\n {x1 > x0 && (\n <rect className=\"bp-plan-bar\" x={x0} y={13} width={x1 - x0} height={5} fill={color}>\n <title>{`${span.label}: ${ends}`}</title>\n </rect>\n )}\n {open && (\n <path d={`M${x1} 10l6 5.5l-6 5.5z`} fill={color}>\n <title>{ends}</title>\n </path>\n )}\n {labels(\n span.marks.filter((m) => m.at >= xMin && m.at <= xMax),\n x,\n ).map(({ m, show }) => (\n <g key={`${m.mark}-${m.at}`}>\n <line className=\"bp-plan-tick\" x1={x(m.at)} x2={x(m.at)} y1={10} y2={21} stroke={color}>\n <title>{markTitle(m)}</title>\n </line>\n {show && (\n <text className=\"bp-plan-text\" x={x(m.at) + 2} y={LANE - 2}>\n {m.mark ?? ''}\n </text>\n )}\n </g>\n ))}\n </g>\n );\n}\n\n/** Which marks have room for their label beside them, left to right. */\nfunction labels(marks: readonly MarkInfo[], x: (t: number) => number) {\n let free = Number.NEGATIVE_INFINITY;\n return marks.map((m) => {\n const at = x(m.at);\n const text = (m.voice === null ? m.name : m.mark) ?? '';\n const show = at >= free;\n if (show) free = at + 4 + text.length * CHAR_PX;\n return { m, show };\n });\n}\n\nfunction markTitle(m: MarkInfo): string {\n const what =\n m.voice === null ? `announced ${m.name ?? ''}` : `${m.name ?? `#${m.voice}`} ${m.mark}`;\n return `${what} at ${clockText(m.at)}`;\n}\n","import { useMemo } from 'react';\nimport type { MarkInfo, VoiceInfo } from '../protocol.js';\nimport type { Samples } from '../store.js';\nimport { ChannelPlot } from './ChannelPlot.js';\nimport { ColorStrip } from './ColorStrip.js';\nimport { voiceHue } from './hue.js';\nimport { axisOf } from './lanes.js';\nimport { Plan } from './Plan.js';\nimport type { Series } from './path.js';\n\n/** The plan, then the picked subject's channels and the voices' weights on it, on one time axis. */\nexport function Plots({\n samples,\n drawn,\n voices,\n marks,\n playhead,\n picked,\n mix,\n}: {\n samples: Samples;\n drawn: number;\n voices: VoiceInfo[];\n marks: MarkInfo[];\n playhead: number;\n picked: boolean;\n mix: boolean;\n}) {\n // biome-ignore lint/correctness/useExhaustiveDependencies: `drawn` says the samples changed\n const series = useMemo(() => samples.series(), [samples, drawn]);\n const { times, values, colors, weights, read } = series;\n const head = Number.isFinite(playhead) ? playhead : (times[times.length - 1] ?? Number.NaN);\n const range = axisOf(head, picked ? times : [], marks);\n const plan = mix && <Plan marks={marks} voices={voices} range={range} playhead={head} />;\n if (!picked)\n return (\n <div className=\"bp-plots\">\n {plan}\n <p className=\"bp-muted\">Pick a subject to plot its channels.</p>\n </div>\n );\n const unread = read[read.length - 1] === true ? ' · read, not shown' : '';\n const names = new Map(voices.map((v) => [v.id, v.name ?? `#${v.id}`]));\n const weighed: Series[] = [...weights].map(([id, w]) => ({\n id: names.get(id) ?? `#${id}`,\n hue: voiceHue(id),\n values: w,\n }));\n return (\n <div className=\"bp-plots\">\n {plan}\n {[...colors].map(([key, c]) => (\n <ColorStrip\n key={key}\n label={`${key}${unread}`}\n times={times}\n colors={c}\n range={range}\n playhead={head}\n />\n ))}\n {[...values].map(([key, v]) => (\n <ChannelPlot\n key={key}\n label={`${key}${unread}`}\n times={times}\n range={range}\n playhead={head}\n series={[{ id: key, hue: 0, color: 'var(--wzl-fg)', values: v, thick: true }]}\n />\n ))}\n {weighed.length > 0 && (\n <ChannelPlot\n label=\"weightOf\"\n times={times}\n range={range}\n playhead={head}\n series={weighed}\n />\n )}\n </div>\n );\n}\n","import { type ReactNode, useEffect, useReducer, useRef, useState } from 'react';\nimport type {\n Event,\n HoldInfo,\n MarkInfo,\n MixInfo,\n Source,\n SubjectInfo,\n VoiceInfo,\n} from '../protocol.js';\nimport { Samples } from '../store.js';\nimport { Plots } from './Plots.js';\nimport { clockText } from './time.js';\n\ninterface State {\n mixes: MixInfo[];\n mix: number | null;\n subject: number | null;\n subjects: SubjectInfo[];\n voices: VoiceInfo[];\n marks: MarkInfo[];\n hold: HoldInfo;\n arming: boolean;\n circles: boolean;\n /** Bumped as samples arrive, so the plots draw again. */\n drawn: number;\n}\n\nconst initial: State = {\n mixes: [],\n mix: null,\n subject: null,\n subjects: [],\n voices: [],\n marks: [],\n hold: { state: 'free', rate: 1, now: Number.NaN, reach: Number.NaN },\n arming: false,\n circles: false,\n drawn: 0,\n};\n\ntype Action = Event | { kind: 'drawn' };\n\nfunction reduce(s: State, a: Action): State {\n switch (a.kind) {\n case 'mixes':\n return { ...s, mixes: a.mixes };\n case 'picked':\n return { ...s, mix: a.mix, subject: a.subject, subjects: a.mix === s.mix ? s.subjects : [] };\n case 'subjects':\n return { ...s, subjects: a.subjects };\n case 'voices':\n return { ...s, voices: a.voices };\n case 'marks':\n return { ...s, marks: a.marks };\n case 'hold':\n return { ...s, hold: a.hold };\n case 'arming':\n return { ...s, arming: a.on };\n case 'circles':\n return { ...s, circles: a.on };\n case 'drawn':\n return { ...s, drawn: s.drawn + 1 };\n default:\n // An agent newer than this panel may send kinds it does not know.\n return s;\n }\n}\n\nconst RATES = [0, 0.1, 0.25, 0.5, 1, 2];\nconst STEP_MS = 1000 / 60;\nconst PLACE = 'blits-panel:place';\n\n/** Where the window was left, kept per viewer; the corner when nothing was kept. */\nfunction placed(): { x: number; y: number; open: boolean } {\n try {\n const kept = JSON.parse(localStorage.getItem(PLACE) ?? 'null');\n if (kept && typeof kept.x === 'number' && typeof kept.y === 'number') return kept;\n } catch {}\n return { x: 16, y: 16, open: false };\n}\nfunction keep(p: { x: number; y: number; open: boolean }) {\n try {\n localStorage.setItem(PLACE, JSON.stringify(p));\n } catch {}\n}\n\n/** Keeps at least the panel's corner on screen, so a place kept from a larger window stays reachable. */\nfunction onScreen(x: number, y: number): { x: number; y: number } {\n const w = typeof innerWidth === 'number' ? innerWidth : 1024;\n const h = typeof innerHeight === 'number' ? innerHeight : 768;\n return {\n x: Math.min(Math.max(0, x), Math.max(0, w - 120)),\n y: Math.min(Math.max(0, y), Math.max(0, h - 40)),\n };\n}\n\nexport interface PanelProps {\n source: Source;\n /** Fills its container, with no pill and no dragging: for a host such as a DevTools tab. */\n docked?: boolean;\n /** More controls for the top bar, from the host. */\n bar?: ReactNode;\n}\n\n/** The panel: a pill in a corner that opens into a window over the page, or docked, the window alone. */\nexport function Panel({ source, docked = false, bar }: PanelProps) {\n const [s, dispatch] = useReducer(reduce, initial);\n const samples = useRef(new Samples());\n const [place, setPlace] = useState(() => {\n const p = placed();\n return { ...p, ...onScreen(p.x, p.y) };\n });\n const [query, setQuery] = useState('');\n const [hovered, setHovered] = useState<number | null>(null);\n // A row can vanish under the pointer, which then never leaves it: clear its outline here.\n useEffect(() => {\n if (hovered !== null && !s.subjects.some((x) => x.id === hovered)) {\n setHovered(null);\n source.send({ kind: 'outline', subject: null });\n }\n }, [hovered, s.subjects, source]);\n const frontier = useRef(Number.NEGATIVE_INFINITY);\n\n useEffect(() => {\n // Samples and the clock come every frame of the mix; both are drawn at most once a frame here.\n let queued = 0;\n let hold: HoldInfo | null = null;\n const draw = () => {\n queued = 0;\n if (hold !== null) dispatch({ kind: 'hold', hold });\n hold = null;\n dispatch({ kind: 'drawn' });\n };\n const later = () => {\n if (queued === 0) queued = requestAnimationFrame(draw);\n };\n const off = source.subscribe((e) => {\n if (e.kind === 'samples') {\n if (e.reset) samples.current.reset();\n for (const x of e.samples) samples.current.push(x);\n later();\n } else if (e.kind === 'hold') {\n hold = e.hold;\n later();\n } else dispatch(e);\n });\n return () => {\n off();\n if (queued !== 0) cancelAnimationFrame(queued);\n };\n }, [source]);\n\n const send = source.send.bind(source);\n const mix = s.mixes.find((m) => m.id === s.mix);\n const held = s.hold.state === 'held';\n if (held && s.hold.now > frontier.current) frontier.current = s.hold.now;\n if (!held) frontier.current = Number.NEGATIVE_INFINITY;\n\n const move = (open: boolean, x = place.x, y = place.y) => {\n const next = { ...onScreen(x, y), open };\n setPlace(next);\n keep(next);\n };\n\n const drag = (ev: React.PointerEvent) => {\n if ((ev.target as Element).closest('button, select, input')) return;\n const from = { x: ev.clientX - place.x, y: ev.clientY - place.y };\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n const open = place.open;\n const onMove = (e: PointerEvent) => move(open, e.clientX - from.x, e.clientY - from.y);\n const onUp = () => {\n target.removeEventListener('pointermove', onMove);\n target.removeEventListener('pointerup', onUp);\n target.removeEventListener('pointercancel', onUp);\n target.removeEventListener('lostpointercapture', onUp);\n };\n target.addEventListener('pointermove', onMove);\n target.addEventListener('pointerup', onUp);\n target.addEventListener('pointercancel', onUp);\n target.addEventListener('lostpointercapture', onUp);\n };\n\n const clock = (\n <>\n <button\n type=\"button\"\n className={held ? 'bp-on' : ''}\n disabled={mix === undefined}\n title={\n s.hold.state === 'elsewhere'\n ? 'held elsewhere: try again'\n : held\n ? 'free the clock'\n : 'hold the clock'\n }\n onClick={() => send({ kind: 'hold', on: !held })}\n >\n {held ? '▶' : '⏸'}\n </button>\n <button\n type=\"button\"\n disabled={!held}\n title=\"step one frame\"\n onClick={() => send({ kind: 'step', ms: STEP_MS })}\n >\n ⏭\n </button>\n <input\n type=\"range\"\n className=\"bp-scrub\"\n aria-label=\"scrub\"\n disabled={!held || !(frontier.current > s.hold.reach)}\n min={held ? s.hold.reach : 0}\n max={held ? frontier.current : 1}\n step=\"any\"\n value={held ? s.hold.now : 0}\n onChange={(e) => send({ kind: 'seek', to: Number(e.currentTarget.value) })}\n />\n </>\n );\n\n if (!docked && !place.open)\n return (\n <div className=\"bp-pill\" style={{ left: place.x, top: place.y }} onPointerDown={drag}>\n <span className=\"bp-name\">{mix?.name ?? 'blits'}</span>\n {clock}\n <button type=\"button\" title=\"open\" onClick={() => move(true)}>\n ⤢\n </button>\n <span className=\"bp-time\">{clockText(s.hold.now)}</span>\n </div>\n );\n\n const shown = s.subjects.filter((x) => x.label.toLowerCase().includes(query.toLowerCase()));\n return (\n <div\n className={docked ? 'bp-window bp-docked' : 'bp-window'}\n style={docked ? undefined : { left: place.x, top: place.y }}\n >\n <div className=\"bp-bar\" onPointerDown={docked ? undefined : drag}>\n <select\n aria-label=\"mix\"\n value={s.mix ?? ''}\n onChange={(e) =>\n send({\n kind: 'mix',\n id: e.currentTarget.value === '' ? null : Number(e.currentTarget.value),\n })\n }\n >\n <option value=\"\">pick a mix</option>\n {s.mixes.map((m) => (\n <option key={m.id} value={m.id}>\n {m.name}\n </option>\n ))}\n </select>\n {clock}\n <select\n aria-label=\"rate\"\n disabled={!held}\n value={s.hold.rate}\n onChange={(e) => send({ kind: 'rate', rate: Number(e.currentTarget.value) })}\n >\n {RATES.map((r) => (\n <option key={r} value={r}>\n ×{r}\n </option>\n ))}\n </select>\n {bar}\n {!docked && (\n <button type=\"button\" title=\"collapse\" onClick={() => move(false)}>\n ⤡\n </button>\n )}\n <span className=\"bp-time\">{clockText(s.hold.now)}</span>\n </div>\n {mix !== undefined && <Notes mix={mix} hold={s.hold} />}\n <div className=\"bp-body\">\n <div className=\"bp-side\">\n <div className=\"bp-row\">\n <button\n type=\"button\"\n className={s.arming ? 'bp-on' : ''}\n disabled={mix === undefined && s.mixes.length === 0}\n title=\"pick a subject on the page\"\n onClick={() => send({ kind: 'arm', on: !s.arming })}\n >\n ◎ pick\n </button>\n <input\n className=\"bp-search\"\n placeholder=\"subjects\"\n aria-label=\"filter subjects\"\n value={query}\n onChange={(e) => setQuery(e.currentTarget.value)}\n />\n </div>\n <ul className=\"bp-list\" aria-label=\"subjects\">\n {shown.map((x) => (\n <li key={x.id}>\n <button\n type=\"button\"\n className={x.id === s.subject ? 'bp-item bp-on' : 'bp-item'}\n onClick={() => send({ kind: 'subject', id: x.id })}\n onPointerEnter={() => {\n setHovered(x.id);\n send({ kind: 'outline', subject: x.id });\n }}\n onPointerLeave={() => {\n setHovered(null);\n send({ kind: 'outline', subject: null });\n }}\n >\n {x.label}\n </button>\n </li>\n ))}\n </ul>\n <div className=\"bp-row\">\n <h3 className=\"bp-head\">voices</h3>\n <button\n type=\"button\"\n className={s.circles ? 'bp-on' : ''}\n disabled={!s.circles && !s.voices.some((v) => v.bounded)}\n title=\"draw each bounded voice's circle on the page\"\n onClick={() => send({ kind: 'circles', on: !s.circles })}\n >\n ◯ circles\n </button>\n </div>\n <ul className=\"bp-list\" aria-label=\"voices\">\n {s.voices.map((v) => (\n <li key={v.id} className=\"bp-voice\">\n <span>\n {v.name ?? `#${v.id}`}\n {v.bounded && (\n <span className=\"bp-muted\" title=\"bounded to a circle\">\n {' ◯'}\n </span>\n )}\n </span>\n <span className=\"bp-muted\">{v.state}</span>\n <span className=\"bp-num\">\n {Number.isFinite(v.weight) ? v.weight.toFixed(2) : ''}\n </span>\n </li>\n ))}\n </ul>\n </div>\n <Plots\n samples={samples.current}\n drawn={s.drawn}\n voices={s.voices}\n marks={s.marks}\n playhead={s.hold.now}\n picked={s.subject !== null}\n mix={mix !== undefined}\n />\n </div>\n </div>\n );\n}\n\nfunction Notes({ mix, hold }: { mix: MixInfo; hold: HoldInfo }) {\n const h = mix.history;\n const note =\n h === null\n ? 'no history: made before the panel, or the panel was told not to add it, so it only pauses and steps forward'\n : !h.tape\n ? 'no tape: it only pauses and steps forward'\n : h.added\n ? `history: ${(h.ms / 1000).toFixed(0)} s, added by the debugger`\n : `history: ${(h.ms / 1000).toFixed(0)} s, its own`;\n return (\n <p className=\"bp-note\">\n {note}\n {hold.state === 'elsewhere' && ' · its clock is held elsewhere'}\n </p>\n );\n}\n","import { watched } from '@msb235/blits';\nimport { createHistory } from '@weasel-js/history';\nimport { ThemeProvider } from '@weasel-js/theme/react';\nimport { createRoot } from 'react-dom/client';\nimport { type AgentOptions, agent } from './agent.js';\nimport { panelStyles } from './styles.js';\nimport { Panel } from './ui/Panel.js';\n\nexport interface MountOptions extends Omit<AgentOptions, 'ignore'> {\n /**\n * How far back every mix made from now on can scrub, ms, where it names no history of its own;\n * `false` adds none. Default 10 s, unless the app already set `watched().history`, which then\n * stands. A mix made before `mount` keeps what it has.\n */\n history?: number | false;\n}\n\n/**\n * Puts the panel on the page: a pill in a corner that opens into a window over every blits mix\n * on it. Call it before the app makes its mixes, so they keep the history scrubbing back needs.\n * Returns what takes it off again, freeing any clock it holds.\n */\nexport function mount(opts: MountOptions = {}): () => void {\n const registry = watched();\n const before = registry.history;\n // A default the app or another panel already set stands, unless this one names its own.\n const ms = opts.history ?? (before === undefined ? 10_000 : false);\n const ours = ms === false ? undefined : { ms, tape: createHistory };\n if (ours !== undefined) registry.history = ours;\n\n const host = document.createElement('div');\n host.setAttribute('data-blits-panel', '');\n const shadow = host.attachShadow({ mode: 'open' });\n if ('adoptedStyleSheets' in shadow && typeof CSSStyleSheet.prototype.replaceSync === 'function') {\n const sheets = [panelStyles].map((text) => {\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(text);\n return sheet;\n });\n shadow.adoptedStyleSheets = sheets;\n } else\n for (const text of [panelStyles]) {\n const style = document.createElement('style');\n style.textContent = text;\n shadow.appendChild(style);\n }\n const mountPoint = document.createElement('div');\n shadow.appendChild(mountPoint);\n document.body.appendChild(host);\n\n const page = agent({ ...opts, ignore: host });\n const root = createRoot(mountPoint);\n root.render(\n <ThemeProvider selection={{ mode: 'auto' }} className=\"bp-root\">\n <Panel source={page} />\n </ThemeProvider>,\n );\n\n let gone = false;\n return () => {\n if (gone) return;\n gone = true;\n root.unmount();\n page.dispose();\n host.remove();\n if (ours !== undefined && registry.history === ours) registry.history = before;\n };\n}\n","import type { Command, Event, Source } from './protocol.js';\n\n/**\n * One end of a channel that carries strings: a `chrome.runtime.Port`, a window bridge, a\n * `MessagePort`. The panel's two halves talk across one when they are not in the same page.\n */\nexport interface Wire {\n send(text: string): void;\n /** Returns what stops listening. */\n listen(fn: (text: string) => void): () => void;\n}\n\ntype Message = { e: Event } | { c: Command } | { hello: true };\n\n/** JSON, keeping the numbers JSON has no word for: NaN and the infinities. */\nexport function encode(value: unknown): string {\n return JSON.stringify(value, (_k, v) =>\n typeof v === 'number' && !Number.isFinite(v) ? { $n: String(v) } : v,\n );\n}\n\nexport function decode<T>(text: string): T {\n return JSON.parse(text, (_k, v) =>\n v !== null && typeof v === 'object' && typeof v.$n === 'string' && Object.keys(v).length === 1\n ? Number(v.$n)\n : v,\n ) as T;\n}\n\n/**\n * The panel's side of a wire: a `Source` whose events come from `serve` on the other end. Asks\n * the other end for the state as it stands on its first subscriber, so nothing sent before the\n * panel was listening is missed.\n */\nexport function wireSource(wire: Wire): Source & { refresh(): void; close(): void } {\n const fns = new Set<(event: Event) => void>();\n const stop = wire.listen((text) => {\n const m = decode<Message>(text);\n if ('e' in m) for (const fn of [...fns]) fn(m.e);\n });\n return {\n subscribe(fn) {\n fns.add(fn);\n if (fns.size === 1) wire.send(encode({ hello: true }));\n return () => {\n fns.delete(fn);\n };\n },\n send(command) {\n wire.send(encode({ c: command }));\n },\n /** Asks the other end for its state again, as after it was replaced by a reload. */\n refresh() {\n wire.send(encode({ hello: true }));\n },\n close() {\n stop();\n fns.clear();\n },\n };\n}\n\n/** The page's side of a wire: hands `source`'s events across and its commands back. */\nexport function serve(source: Source, wire: Wire): () => void {\n let off = () => {};\n const listen = () => {\n off();\n off = source.subscribe((e) => wire.send(encode({ e })));\n };\n const stop = wire.listen((text) => {\n const m = decode<Message>(text);\n if ('hello' in m) listen();\n else if ('c' in m) source.send(m.c);\n });\n list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AAa;GACXH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,SAAS;GACPH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,WAAW;GACTH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,WAAW;GACTH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,aAAa;GACXH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,UAAU;GACRH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,iBAAiB;GACfH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,gBAAgB;GACdH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACAgB,SAAW;GACTnB,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACAiB,UAAY;GACVpB,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,eAAe;GACbH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,iBAAiB;GACfH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,iBAAiB;GACfH,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;GACF;EACF;EACA,kBAAkB;GAChBD,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;GACF;EACF;EACA,qBAAqB;GACnBD,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;GACF;EACF;EACA,iBAAiB;GACfD,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;GACF;EACF;EACA,WAAW;GACTD,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;IACA;GACF;GACAE,aAAe;EACjB;EACA,gBAAgB;GACdH,MAAQ;GACRC,OAAS;GACTE,aAAe;EACjB;EACA,gBAAgB;GACdH,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;IACA;GACF;EACF;EACA,aAAa;GACXD,MAAQ;GACRC,OAAS;IACP;IACA;IACA;IACA;IACA;GACF;EACF;EACA,aAAa;GACXD,MAA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