@luci-dev/capture 0.0.0-stage → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/LICENSE +21 -0
  2. package/dist/a11y.d.ts +54 -0
  3. package/dist/a11y.d.ts.map +1 -0
  4. package/dist/a11y.js +144 -0
  5. package/dist/a11y.js.map +1 -0
  6. package/dist/browser.d.ts +4 -0
  7. package/dist/browser.d.ts.map +1 -0
  8. package/dist/browser.js +4 -0
  9. package/dist/browser.js.map +1 -0
  10. package/dist/color.d.ts +44 -0
  11. package/dist/color.d.ts.map +1 -0
  12. package/dist/color.js +230 -0
  13. package/dist/color.js.map +1 -0
  14. package/dist/component.d.ts +94 -0
  15. package/dist/component.d.ts.map +1 -0
  16. package/dist/component.js +445 -0
  17. package/dist/component.js.map +1 -0
  18. package/dist/dom.d.ts +36 -0
  19. package/dist/dom.d.ts.map +1 -0
  20. package/dist/dom.js +365 -0
  21. package/dist/dom.js.map +1 -0
  22. package/dist/eligibility.d.ts +24 -0
  23. package/dist/eligibility.d.ts.map +1 -0
  24. package/dist/eligibility.js +33 -0
  25. package/dist/eligibility.js.map +1 -0
  26. package/dist/font.d.ts +18 -0
  27. package/dist/font.d.ts.map +1 -0
  28. package/dist/font.js +86 -0
  29. package/dist/font.js.map +1 -0
  30. package/dist/icon.d.ts +11 -0
  31. package/dist/icon.d.ts.map +1 -0
  32. package/dist/icon.js +221 -0
  33. package/dist/icon.js.map +1 -0
  34. package/dist/image.d.ts +82 -0
  35. package/dist/image.d.ts.map +1 -0
  36. package/dist/image.js +283 -0
  37. package/dist/image.js.map +1 -0
  38. package/dist/index.d.ts +20 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +20 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/layout.d.ts +9 -0
  43. package/dist/layout.d.ts.map +1 -0
  44. package/dist/layout.js +115 -0
  45. package/dist/layout.js.map +1 -0
  46. package/dist/luci-capture.js +35510 -0
  47. package/dist/model.d.ts +60 -0
  48. package/dist/model.d.ts.map +1 -0
  49. package/dist/model.js +43 -0
  50. package/dist/model.js.map +1 -0
  51. package/dist/naming.d.ts +8 -0
  52. package/dist/naming.d.ts.map +1 -0
  53. package/dist/naming.js +33 -0
  54. package/dist/naming.js.map +1 -0
  55. package/dist/page.d.ts +38 -0
  56. package/dist/page.d.ts.map +1 -0
  57. package/dist/page.js +102 -0
  58. package/dist/page.js.map +1 -0
  59. package/dist/realm.d.ts +17 -0
  60. package/dist/realm.d.ts.map +1 -0
  61. package/dist/realm.js +18 -0
  62. package/dist/realm.js.map +1 -0
  63. package/dist/responsive.d.ts +74 -0
  64. package/dist/responsive.d.ts.map +1 -0
  65. package/dist/responsive.js +237 -0
  66. package/dist/responsive.js.map +1 -0
  67. package/dist/section.d.ts +50 -0
  68. package/dist/section.d.ts.map +1 -0
  69. package/dist/section.js +244 -0
  70. package/dist/section.js.map +1 -0
  71. package/dist/spacing.d.ts +43 -0
  72. package/dist/spacing.d.ts.map +1 -0
  73. package/dist/spacing.js +113 -0
  74. package/dist/spacing.js.map +1 -0
  75. package/dist/stack.d.ts +11 -0
  76. package/dist/stack.d.ts.map +1 -0
  77. package/dist/stack.js +150 -0
  78. package/dist/stack.js.map +1 -0
  79. package/dist/states.d.ts +89 -0
  80. package/dist/states.d.ts.map +1 -0
  81. package/dist/states.js +457 -0
  82. package/dist/states.js.map +1 -0
  83. package/dist/text.d.ts +30 -0
  84. package/dist/text.d.ts.map +1 -0
  85. package/dist/text.js +156 -0
  86. package/dist/text.js.map +1 -0
  87. package/dist/ui/basket.d.ts +50 -0
  88. package/dist/ui/basket.d.ts.map +1 -0
  89. package/dist/ui/basket.js +93 -0
  90. package/dist/ui/basket.js.map +1 -0
  91. package/dist/ui/check.d.ts +43 -0
  92. package/dist/ui/check.d.ts.map +1 -0
  93. package/dist/ui/check.js +168 -0
  94. package/dist/ui/check.js.map +1 -0
  95. package/dist/ui/devSettings.d.ts +66 -0
  96. package/dist/ui/devSettings.d.ts.map +1 -0
  97. package/dist/ui/devSettings.js +115 -0
  98. package/dist/ui/devSettings.js.map +1 -0
  99. package/dist/ui/index.d.ts +14 -0
  100. package/dist/ui/index.d.ts.map +1 -0
  101. package/dist/ui/index.js +14 -0
  102. package/dist/ui/index.js.map +1 -0
  103. package/dist/ui/loading.d.ts +18 -0
  104. package/dist/ui/loading.d.ts.map +1 -0
  105. package/dist/ui/loading.js +23 -0
  106. package/dist/ui/loading.js.map +1 -0
  107. package/dist/ui/modeSwitch.d.ts +17 -0
  108. package/dist/ui/modeSwitch.d.ts.map +1 -0
  109. package/dist/ui/modeSwitch.js +6 -0
  110. package/dist/ui/modeSwitch.js.map +1 -0
  111. package/dist/ui/mount.d.ts +83 -0
  112. package/dist/ui/mount.d.ts.map +1 -0
  113. package/dist/ui/mount.js +81 -0
  114. package/dist/ui/mount.js.map +1 -0
  115. package/dist/ui/picker.d.ts +22 -0
  116. package/dist/ui/picker.d.ts.map +1 -0
  117. package/dist/ui/picker.js +73 -0
  118. package/dist/ui/picker.js.map +1 -0
  119. package/dist/ui/remap.d.ts +27 -0
  120. package/dist/ui/remap.d.ts.map +1 -0
  121. package/dist/ui/remap.js +76 -0
  122. package/dist/ui/remap.js.map +1 -0
  123. package/dist/ui/screenshot.d.ts +39 -0
  124. package/dist/ui/screenshot.d.ts.map +1 -0
  125. package/dist/ui/screenshot.js +59 -0
  126. package/dist/ui/screenshot.js.map +1 -0
  127. package/dist/ui/styles.d.ts +2 -0
  128. package/dist/ui/styles.d.ts.map +1 -0
  129. package/dist/ui/styles.js +381 -0
  130. package/dist/ui/styles.js.map +1 -0
  131. package/dist/ui/theme.d.ts +59 -0
  132. package/dist/ui/theme.d.ts.map +1 -0
  133. package/dist/ui/theme.js +93 -0
  134. package/dist/ui/theme.js.map +1 -0
  135. package/dist/ui/toolbar.d.ts +101 -0
  136. package/dist/ui/toolbar.d.ts.map +1 -0
  137. package/dist/ui/toolbar.js +1494 -0
  138. package/dist/ui/toolbar.js.map +1 -0
  139. package/dist/ui/tools.d.ts +165 -0
  140. package/dist/ui/tools.d.ts.map +1 -0
  141. package/dist/ui/tools.js +345 -0
  142. package/dist/ui/tools.js.map +1 -0
  143. package/dist/ui/zip.d.ts +16 -0
  144. package/dist/ui/zip.d.ts.map +1 -0
  145. package/dist/ui/zip.js +104 -0
  146. package/dist/ui/zip.js.map +1 -0
  147. package/package.json +29 -3
  148. package/README.md +0 -3
@@ -0,0 +1,73 @@
1
+ /** Picker helpers (FR2, FR3, FR6): what is under the pointer, and moving to the parent or a child. */
2
+ import { eligibility } from '../eligibility.js';
3
+ import { LUCI_UI_ATTRIBUTE } from '../dom.js';
4
+ /** True when the node is part of Luci's own UI (the toolbar host or anything inside it). */
5
+ export function isLuciUi(node) {
6
+ for (let n = node; n; n = n instanceof ShadowRoot ? n.host : n.parentNode) {
7
+ if (n instanceof Element && n.hasAttribute(LUCI_UI_ATTRIBUTE))
8
+ return true;
9
+ }
10
+ return false;
11
+ }
12
+ /** The deepest page element an event happened on, inside shadow roots too; null for Luci's UI. */
13
+ export function eventTarget(event) {
14
+ const path = event.composedPath();
15
+ if (path.some(n => n instanceof Element && n.hasAttribute(LUCI_UI_ATTRIBUTE)))
16
+ return null;
17
+ const first = path.find((n) => n instanceof Element);
18
+ return first ?? null;
19
+ }
20
+ /**
21
+ * The deepest page element at a point, inside open shadow roots too, skipping Luci's own UI. The
22
+ * picker uses this under a layer that takes every pointer event, so the page never receives them.
23
+ */
24
+ export function elementAt(doc, x, y) {
25
+ const deepest = (root) => {
26
+ for (const el of root.elementsFromPoint(x, y)) {
27
+ if (isLuciUi(el))
28
+ continue;
29
+ if (el.shadowRoot && el.shadowRoot !== root) {
30
+ const inner = deepest(el.shadowRoot);
31
+ if (inner)
32
+ return inner;
33
+ }
34
+ return el;
35
+ }
36
+ return null;
37
+ };
38
+ return deepest(doc);
39
+ }
40
+ /** The nearest element at or above `el` that can scroll in this direction, if any. */
41
+ export function scrollableAncestor(el, dx, dy) {
42
+ for (let n = el; n && n !== n.ownerDocument.documentElement && n !== n.ownerDocument.body; n = parentOf(n)) {
43
+ const cs = n.ownerDocument.defaultView?.getComputedStyle(n);
44
+ if (!cs)
45
+ continue;
46
+ const canY = dy !== 0 && /(auto|scroll|overlay)/.test(cs.overflowY) && n.scrollHeight > n.clientHeight;
47
+ const canX = dx !== 0 && /(auto|scroll|overlay)/.test(cs.overflowX) && n.scrollWidth > n.clientWidth;
48
+ if (canY || canX)
49
+ return n;
50
+ }
51
+ return null;
52
+ }
53
+ /** The parent element, crossing out of a shadow root to its host. Null at the root. */
54
+ export function parentOf(el) {
55
+ if (el.parentElement)
56
+ return el.parentElement;
57
+ const root = el.getRootNode();
58
+ return root instanceof ShadowRoot ? root.host : null;
59
+ }
60
+ /** The first child element, entering a shadow root when there is one. */
61
+ export function firstChildOf(el) {
62
+ return el.shadowRoot?.firstElementChild ?? el.firstElementChild;
63
+ }
64
+ /** Whether an element can be picked. */
65
+ export function eligibilityOf(el) {
66
+ return eligibility({ tag: el.tagName });
67
+ }
68
+ /** "h1 640 × 56" for the hover label. */
69
+ export function hoverLabel(el) {
70
+ const r = el.getBoundingClientRect();
71
+ return `${el.tagName.toLowerCase()} ${Math.round(r.width)} × ${Math.round(r.height)}`;
72
+ }
73
+ //# sourceMappingURL=picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"picker.js","sourceRoot":"","sources":["../../src/ui/picker.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,EAAE,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,4FAA4F;AAC5F,MAAM,UAAU,QAAQ,CAAC,IAAiB;IACxC,KAAK,IAAI,CAAC,GAAgB,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC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AAa,CAAC,EAAW;IACvC,OAAO,WAAW,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1C,CAAC;AAED,0CAA0C;AAC1C,MAAM,UAAU,UAAU,CAAC,EAAW;IACpC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC;IACrC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;AACzF,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type MyToken } from '@luci-dev/format/capture';
2
+ import type { Output } from './tools.js';
3
+ /** Where the person's tokens come from. */
4
+ export interface MyTokensSource {
5
+ /** Their project's own tokens (the dev toolbar, through luci serve). */
6
+ project?: () => Promise<MyToken[]>;
7
+ /** Tokens they pasted before, as CSS. */
8
+ load: () => Promise<string>;
9
+ save: (css: string) => Promise<void>;
10
+ }
11
+ /** Pasted tokens kept in the page's storage (the extension keeps them in its own). */
12
+ export declare function pageTokenStore(doc: Document, key?: string): MyTokensSource;
13
+ /** The capture and its section files, rewritten onto the tokens. */
14
+ export declare function remapOutput(output: Output, tokens: readonly MyToken[], rootFontSize?: number): {
15
+ output: Output;
16
+ summary: string;
17
+ };
18
+ export declare function RemapSection(props: {
19
+ source: MyTokensSource;
20
+ /** The summary of the rewrite in place, or null. */
21
+ applied: string | null;
22
+ /** Hand edits would be lost: the rewrite waits until they are undone. */
23
+ edited: boolean;
24
+ onApply: (tokens: MyToken[]) => void;
25
+ onUndo: () => void;
26
+ }): import("preact").JSX.Element;
27
+ //# sourceMappingURL=remap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remap.d.ts","sourceRoot":"","sources":["../../src/ui/remap.tsx"],"names":[],"mappings":"AAMA,OAAO,EAA2C,KAAK,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACnC,yCAAyC;IACzC,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,sFAAsF;AACtF,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,SAAkB,GAAG,cAAc,CAMnF;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,OAAO,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAKlI;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,MAAM,EAAE,cAAc,CAAC;IACvB,oDAAoD;IACpD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,yEAAyE;IACzE,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,gCAoEA"}
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
+ /**
3
+ * "Use my tokens" (v0.4, remap to my tokens): rewrite the capture onto the person's own design tokens
4
+ * in one step: their project's tokens (the dev toolbar, through luci serve) or tokens they paste
5
+ * (kept for next time). The result says how many values now use their tokens, and can be undone.
6
+ */
7
+ import { useEffect, useState } from 'preact/hooks';
8
+ import { parseTokens, remapCapture, remapSummary } from '@luci-dev/format/capture';
9
+ import { Button } from '@luci-dev/ui';
10
+ /** Pasted tokens kept in the page's storage (the extension keeps them in its own). */
11
+ export function pageTokenStore(doc, key = 'luci.myTokens') {
12
+ const storage = () => { try {
13
+ return (doc.defaultView ?? window).localStorage;
14
+ }
15
+ catch {
16
+ return null;
17
+ } };
18
+ return {
19
+ load: async () => storage()?.getItem(key) ?? '',
20
+ save: async (css) => { try {
21
+ storage()?.setItem(key, css);
22
+ }
23
+ catch { /* storage blocked */ } }
24
+ };
25
+ }
26
+ /** The capture and its section files, rewritten onto the tokens. */
27
+ export function remapOutput(output, tokens, rootFontSize) {
28
+ const opts = rootFontSize ? { rootFontSize } : {};
29
+ const main = remapCapture(output.capture, tokens, opts);
30
+ const files = output.files?.map(f => ({ ...f, capture: remapCapture(f.capture, tokens, opts).capture }));
31
+ return { output: { ...output, capture: main.capture, ...(files ? { files } : {}) }, summary: remapSummary(main.report) };
32
+ }
33
+ export function RemapSection(props) {
34
+ const { source } = props;
35
+ const [open, setOpen] = useState(false);
36
+ const [project, setProject] = useState(null);
37
+ const [from, setFrom] = useState('pasted');
38
+ const [css, setCss] = useState('');
39
+ const [error, setError] = useState(null);
40
+ useEffect(() => {
41
+ if (!open)
42
+ return;
43
+ let live = true;
44
+ void source.load().then(text => { if (live)
45
+ setCss(c => c || text); });
46
+ if (source.project) {
47
+ void source.project().then(t => { if (!live)
48
+ return; setProject(t); if (t.length)
49
+ setFrom('project'); }).catch(() => { if (live)
50
+ setProject([]); });
51
+ }
52
+ return () => { live = false; };
53
+ }, [open]);
54
+ const run = async () => {
55
+ const tokens = from === 'project' && project?.length ? project : parseTokens(css);
56
+ if (!tokens.length) {
57
+ setError('No tokens found. Paste custom properties, such as --space-4: 16px; --radius-md: 8px;');
58
+ return;
59
+ }
60
+ if (from === 'pasted')
61
+ await source.save(css);
62
+ setError(null);
63
+ setOpen(false);
64
+ props.onApply(tokens);
65
+ };
66
+ if (props.applied) {
67
+ return (_jsxs("div", { class: "stack", "data-part": "remap", children: [_jsx("p", { class: "hint", "data-part": "remap-summary", children: props.applied }), _jsx("div", { class: "row", children: _jsx("button", { type: "button", class: "btn-secondary", "data-action": "remap-undo", onClick: props.onUndo, children: "Put the site's values back" }) })] }));
68
+ }
69
+ if (!open) {
70
+ return (_jsxs("div", { class: "manual-row", "data-part": "remap", children: [_jsxs("div", { class: "section-copy", children: [_jsx("span", { class: "field-label", children: "Your tokens" }), _jsx("span", { class: "dim", children: props.edited ? 'Undo your edits first: this rewrites the file.' : 'Rewrite this file onto your own design tokens.' })] }), _jsx("div", { class: "manual-actions", children: _jsx("button", { type: "button", class: "btn-secondary", "data-action": "remap-open", disabled: props.edited, onClick: () => setOpen(true), children: "Use my tokens" }) })] }));
71
+ }
72
+ return (_jsxs("div", { class: "stack", "data-part": "remap", children: [_jsx("span", { class: "field-label", children: "Your tokens" }), project && project.length > 0 && (_jsxs("div", { class: "seg", role: "group", "aria-label": "Which tokens", children: [_jsxs("button", { type: "button", "aria-pressed": from === 'project', "data-remap-from": "project", onClick: () => setFrom('project'), children: ["Your project (", project.length, ")"] }), _jsx("button", { type: "button", "aria-pressed": from === 'pasted', "data-remap-from": "pasted", onClick: () => setFrom('pasted'), children: "Paste" })] })), from === 'project' && project?.length
73
+ ? _jsx("span", { class: "dim", children: "The custom properties in your project's stylesheets." })
74
+ : _jsx("textarea", { "data-part": "my-tokens", rows: 4, spellcheck: false, value: css, placeholder: ':root {\n --space-4: 16px;\n --radius-md: 8px;\n}', onInput: e => setCss(e.currentTarget.value) }), error && _jsx("p", { class: "error", "data-part": "remap-error", children: error }), _jsxs("div", { class: "row", children: [_jsx(Button, { variant: "primary", size: "sm", "data-action": "remap-run", onClick: () => void run(), children: "Rewrite with my tokens" }), _jsx("button", { type: "button", "data-action": "remap-cancel", onClick: () => { setOpen(false); setError(null); }, children: "Cancel" })] })] }));
75
+ }
76
+ //# sourceMappingURL=remap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remap.js","sourceRoot":"","sources":["../../src/ui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AAoB,WAAW,EAAC,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,qDAAqD,EAC1I,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAE,CAAC,CAAC,aAAqC,CAAC,KAAK,CAAC,GAAI,EAC3E,KAAK,IAAI,YAAG,KAAK,EAAC,OAAO,eAAW,aAAa,YAAE,KAAK,GAAK,EAC9D,eAAK,KAAK,EAAC,KAAK,aACd,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,iBAAa,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,GAAG,EAAE,uCAAiC,EACtH,iBAAQ,IAAI,EAAC,QAAQ,iBAAa,cAAc,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAiB,IAChH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,39 @@
1
+ export interface ReferenceShot {
2
+ /** Full resolution PNG, for the download beside the design.md. */
3
+ png: string;
4
+ /** A small JPEG (at most 640px a side) for the basket, which lives in limited extension storage. */
5
+ thumb: {
6
+ dataUrl: string;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ width: number;
11
+ height: number;
12
+ /** True when only part of the element was in view (it is bigger than the window). */
13
+ partial: boolean;
14
+ }
15
+ export declare const THUMB_SIZE = 640;
16
+ /** A rectangle in viewport CSS px. */
17
+ export interface Box {
18
+ left: number;
19
+ top: number;
20
+ width: number;
21
+ height: number;
22
+ }
23
+ /** Where a box and the viewport meet, or null when the box is out of view. */
24
+ export declare function visiblePart(box: Box, viewport: {
25
+ width: number;
26
+ height: number;
27
+ }): Box | null;
28
+ /**
29
+ * Crop a screenshot of the viewport to a box. Decoded from its bytes, not through an <img>, which
30
+ * a page's Content Security Policy can block. The screenshot's scale (device pixels per CSS px) is
31
+ * its width over the viewport's.
32
+ */
33
+ export declare function cropScreenshot(doc: Document, screenshot: string, box: Box, viewport: {
34
+ width: number;
35
+ height: number;
36
+ }): Promise<ReferenceShot>;
37
+ /** The reference file's name beside a capture file: "x.token.image-img-16-9.design.md" -> "x.token.image-img-16-9.png". */
38
+ export declare const referenceFileName: (captureFileName: string, ext?: 'png' | 'jpg') => string;
39
+ //# sourceMappingURL=screenshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/ui/screenshot.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,MAAM,CAAC;AAE9B,sCAAsC;AACtC,MAAM,WAAW,GAAG;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AAEjF,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,GAAG,IAAI,CAM7F;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAiCrJ;AAED,2HAA2H;AAC3H,eAAO,MAAM,iBAAiB,oBAAqB,MAAM,QAAO,KAAK,GAAG,KAAK,WAAqE,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Reference screenshots (FR22): a cropped picture of the picked element, saved beside its file for
3
+ * looking at only (the values in the file come from the page, not from the picture). The shell
4
+ * takes a screenshot of the visible page with Luci hidden; this crops it to the element.
5
+ */
6
+ import { dataUrlBytes, dataUrlType } from './zip.js';
7
+ export const THUMB_SIZE = 640;
8
+ /** Where a box and the viewport meet, or null when the box is out of view. */
9
+ export function visiblePart(box, viewport) {
10
+ const left = Math.max(0, box.left);
11
+ const top = Math.max(0, box.top);
12
+ const right = Math.min(viewport.width, box.left + box.width);
13
+ const bottom = Math.min(viewport.height, box.top + box.height);
14
+ return right - left >= 1 && bottom - top >= 1 ? { left, top, width: right - left, height: bottom - top } : null;
15
+ }
16
+ /**
17
+ * Crop a screenshot of the viewport to a box. Decoded from its bytes, not through an <img>, which
18
+ * a page's Content Security Policy can block. The screenshot's scale (device pixels per CSS px) is
19
+ * its width over the viewport's.
20
+ */
21
+ export async function cropScreenshot(doc, screenshot, box, viewport) {
22
+ const part = visiblePart(box, viewport);
23
+ if (!part)
24
+ throw new Error('the element is not in view');
25
+ const bitmap = await createImageBitmap(new Blob([dataUrlBytes(screenshot)], { type: dataUrlType(screenshot) }));
26
+ try {
27
+ const scale = bitmap.width / viewport.width;
28
+ const sx = Math.round(part.left * scale);
29
+ const sy = Math.round(part.top * scale);
30
+ const width = Math.max(1, Math.min(bitmap.width - sx, Math.round(part.width * scale)));
31
+ const height = Math.max(1, Math.min(bitmap.height - sy, Math.round(part.height * scale)));
32
+ const draw = (w, h, type) => {
33
+ const canvas = doc.createElement('canvas');
34
+ canvas.width = w;
35
+ canvas.height = h;
36
+ const ctx = canvas.getContext('2d');
37
+ ctx.fillStyle = '#fff';
38
+ ctx.fillRect(0, 0, w, h);
39
+ ctx.drawImage(bitmap, sx, sy, width, height, 0, 0, w, h);
40
+ return canvas.toDataURL(type, 0.85);
41
+ };
42
+ const fit = Math.min(1, THUMB_SIZE / Math.max(width, height));
43
+ const tw = Math.max(1, Math.round(width * fit));
44
+ const th = Math.max(1, Math.round(height * fit));
45
+ return {
46
+ png: draw(width, height, 'image/png'),
47
+ thumb: { dataUrl: draw(tw, th, 'image/jpeg'), width: tw, height: th },
48
+ width,
49
+ height,
50
+ partial: part.width < box.width - 1 || part.height < box.height - 1
51
+ };
52
+ }
53
+ finally {
54
+ bitmap.close();
55
+ }
56
+ }
57
+ /** The reference file's name beside a capture file: "x.token.image-img-16-9.design.md" -> "x.token.image-img-16-9.png". */
58
+ export const referenceFileName = (captureFileName, ext = 'png') => captureFileName.replace(/\.design\.md$/, '') + `.${ext}`;
59
+ //# sourceMappingURL=screenshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../src/ui/screenshot.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAarD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC;AAK9B,8EAA8E;AAC9E,MAAM,UAAU,WAAW,CAAC,GAAQ,EAAE,QAA2C;IAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EA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M,EAAE,WAAW,CAAC;YACrC,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YACrE,KAAK;YACL,MAAM;YACN,OAAO,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC;SACpE,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;AACH,CAAC;AAED,2HAA2H;AAC3H,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,eAAuB,EAAE,GAAG,GAAkB,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const TOOLBAR_CSS = "\n:host { all: initial; }\n/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: \"Luci Fredoka\", Fredoka, \"Luci Inter\", Inter, sans-serif;\n --luci-font-body: \"Luci Inter\", Inter, system-ui, sans-serif;\n --luci-font-code: \"Luci JetBrains Mono\", 'JetBrains Mono', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 8px 24px rgba(43, 43, 43, 0.14);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme=\"light\"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme=\"dark\"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n\n/* Luci mascot animations. Works on the layered SVGs (inline) or inside the animated SVG files. */\n.luci .luci-ear,.luci .luci-eye,.luci .luci-tail,.luci .luci-body,.luci .luci-head,.luci .luci-z,.luci .luci-pupil,.luci .luci-arm,.luci .luci-ruler-line{transform-box:fill-box}\n.luci .luci-ear-l{transform-origin:70% 100%}\n.luci .luci-ear-r{transform-origin:30% 100%}\n.luci .luci-eye{transform-origin:50% 50%}\n.luci .luci-body{transform-origin:50% 100%}\n.luci .luci-head{transform-origin:50% 85%}\n.luci .luci-tail-wrap{transform-origin:92% 20%}\n.luci .luci-tail-up{transform-origin:5% 95%}\n.luci .luci-arm{transform-origin:10% 90%}\n.luci .luci-z{transform-origin:50% 50%}\n\n@keyframes luci-breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.025)}}\n@keyframes luci-blink{0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.08)}}\n@keyframes luci-slowblink{0%,25%{transform:scaleY(1)}42%,68%{transform:scaleY(.08)}85%,100%{transform:scaleY(1)}}\n@keyframes luci-twitch{0%,86%,100%{transform:rotate(0)}89%{transform:rotate(-12deg)}92%{transform:rotate(5deg)}95%{transform:rotate(-6deg)}98%{transform:rotate(0)}}\n@keyframes luci-sway{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}\n@keyframes luci-lash{0%{transform:rotate(-9deg)}100%{transform:rotate(9deg)}}\n@keyframes luci-look{0%,18%{transform:translateX(0)}30%,50%{transform:translateX(-4px)}62%,82%{transform:translateX(4px)}94%,100%{transform:translateX(0)}}\n@keyframes luci-z{0%{opacity:0;transform:translate(0,6px) scale(.8)}25%{opacity:1}100%{opacity:0;transform:translate(10px,-20px) scale(1.1)}}\n@keyframes luci-tap{0%,100%{transform:rotate(0)}50%{transform:rotate(-7deg)}}\n@keyframes luci-pulse{0%,100%{opacity:1}50%{opacity:.3}}\n@keyframes luci-tilt{0%,100%{transform:rotate(0)}50%{transform:rotate(3deg)}}\n@keyframes luci-bristle{0%{transform:rotate(-2deg)}100%{transform:rotate(2deg)}}\n\n/* Idle: sitting tall */\n.luci-pose-sit .luci-body{animation:luci-breathe 4.5s ease-in-out infinite}\n.luci-pose-sit .luci-eye{animation:luci-blink 6s ease-in-out infinite}\n.luci-pose-sit .luci-ear-r{animation:luci-twitch 7s ease-in-out infinite}\n.luci-pose-sit .luci-tail{animation:luci-sway 5s ease-in-out infinite}\n/* Hello: slow blink (add class luci-hello to the sitting pose) */\n.luci-hello .luci-eye{animation:luci-slowblink 5s ease-in-out infinite}\n.luci-hello .luci-head{animation:luci-tilt 5s ease-in-out infinite}\n/* Avatar head */\n.luci-pose-head .luci-eye{animation:luci-blink 6s ease-in-out infinite}\n.luci-pose-head .luci-ear-l{animation:luci-twitch 8s ease-in-out infinite 2s}\n/* Watching (empty state) */\n.luci-pose-peek .luci-pupil{animation:luci-look 7s ease-in-out infinite}\n.luci-pose-peek .luci-eye{animation:luci-blink 7s ease-in-out infinite 3s}\n.luci-pose-peek .luci-ear-l{animation:luci-twitch 6s ease-in-out infinite 1s}\n/* Measuring (spacing tool) */\n.luci-pose-measure .luci-ruler-line{animation:luci-pulse 1.6s ease-in-out infinite}\n.luci-pose-measure .luci-arm{animation:luci-tap 1.6s ease-in-out infinite}\n.luci-pose-measure .luci-eye{animation:luci-blink 5s ease-in-out infinite}\n/* In the box (capture basket) */\n.luci-pose-box .luci-eye{animation:luci-blink 6s ease-in-out infinite}\n.luci-pose-box .luci-pupil{animation:luci-look 9s ease-in-out infinite 1s}\n.luci-pose-box .luci-ear-r{animation:luci-twitch 5s ease-in-out infinite}\n/* Asleep (loading) */\n.luci-pose-sleep .luci-body{animation:luci-breathe 3.5s ease-in-out infinite}\n.luci-pose-sleep .luci-z1{animation:luci-z 3s ease-out infinite}\n.luci-pose-sleep .luci-z2{animation:luci-z 3s ease-out infinite 1.5s}\n/* Content (success) */\n.luci-pose-content .luci-body{animation:luci-breathe 4s ease-in-out infinite}\n.luci-pose-content .luci-tail{animation:luci-sway 6s ease-in-out infinite}\n.luci-pose-content .luci-ear-r{animation:luci-twitch 6s ease-in-out infinite 2s}\n/* Annoyed (error) */\n.luci-pose-annoyed .luci-tail{animation:luci-lash .9s ease-in-out infinite alternate}\n.luci-pose-annoyed .luci-ear{animation:luci-bristle .35s ease-in-out infinite alternate}\n.luci-pose-annoyed .luci-body{animation:luci-breathe 1.8s ease-in-out infinite}\n/* Turned away (not now) */\n.luci-pose-turned .luci-tail{animation:luci-sway 4s ease-in-out infinite}\n.luci-pose-turned .luci-ear-r{animation:luci-twitch 5s ease-in-out infinite}\n.luci-pose-turned .luci-head{animation:luci-tilt 6s ease-in-out infinite}\n\n/* Tool poses: Pressing, Reading, Swatch, Comparing, Noting, Arranging, Placing, Sketching */\n.luci .luci-button-cap,.luci .luci-highlight,.luci .luci-chip-lift,.luci .luci-tick,.luci .luci-marker,.luci .luci-select-box,.luci .luci-block,.luci .luci-draft{transform-box:fill-box}\n.luci .luci-highlight{transform-origin:0 50%}\n.luci .luci-tick{transform-origin:50% 50%}\n.luci .luci-select-box{transform-origin:0 100%}\n\n@keyframes luci-press{0%,100%{transform:translateY(3px)}50%{transform:translateY(0)}}\n@keyframes luci-select{0%{transform:scaleX(.05);opacity:1}45%,85%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}\n@keyframes luci-scan{0%,15%{transform:translateX(-3px)}50%,65%{transform:translateX(3px)}100%{transform:translateX(-3px)}}\n@keyframes luci-lift{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}\n@keyframes luci-glance{0%,40%{transform:translateX(-3px)}50%,90%{transform:translateX(3px)}100%{transform:translateX(-3px)}}\n@keyframes luci-pop{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}\n@keyframes luci-drop{0%{transform:translateY(-8px);opacity:0}20%{opacity:1}35%,85%{transform:translateY(0);opacity:1}100%{transform:translateY(0);opacity:0}}\n@keyframes luci-resize{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}\n@keyframes luci-settle{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}\n@keyframes luci-push{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}\n\n/* Pressing (Component tool) */\n.luci-pose-press .luci-arm{animation:luci-tap 1.6s ease-in-out infinite}\n.luci-pose-press .luci-button-cap{animation:luci-press 1.6s ease-in-out infinite}\n.luci-pose-press .luci-click{animation:luci-pulse 1.6s ease-in-out infinite}\n.luci-pose-press .luci-eye{animation:luci-blink 5s ease-in-out infinite}\n/* Reading (Text tool) */\n.luci-pose-read .luci-highlight{animation:luci-select 3.2s ease-in-out infinite}\n.luci-pose-read .luci-pupil{animation:luci-scan 3.2s ease-in-out infinite}\n.luci-pose-read .luci-eye{animation:luci-blink 6s ease-in-out infinite 2s}\n/* Swatch (Colour tool) */\n.luci-pose-swatch .luci-chip-lift{animation:luci-lift 2s ease-in-out infinite}\n.luci-pose-swatch .luci-arm{animation:luci-tap 2s ease-in-out infinite}\n.luci-pose-swatch .luci-eye{animation:luci-blink 6s ease-in-out infinite}\n/* Comparing (Check) */\n.luci-pose-compare .luci-pupil{animation:luci-glance 4s ease-in-out infinite}\n.luci-pose-compare .luci-tick{animation:luci-pop 4s ease-in-out infinite}\n.luci-pose-compare .luci-head{animation:luci-tilt 6s ease-in-out infinite}\n.luci-pose-compare .luci-tail{animation:luci-sway 5s ease-in-out infinite}\n/* Noting (Feedback: Annotate) */\n.luci-pose-note .luci-marker{animation:luci-drop 3s ease-out infinite}\n.luci-pose-note .luci-arm{animation:luci-tap 3s ease-in-out infinite}\n.luci-pose-note .luci-eye{animation:luci-blink 6s ease-in-out infinite 1s}\n/* Arranging (Layout: Select) */\n.luci-pose-arrange .luci-select-box{animation:luci-resize 2.4s ease-in-out infinite}\n.luci-pose-arrange .luci-ear-r{animation:luci-twitch 6s ease-in-out infinite}\n.luci-pose-arrange .luci-eye{animation:luci-blink 5s ease-in-out infinite}\n/* Placing (Layout: Insert) */\n.luci-pose-place .luci-block{animation:luci-settle 2s ease-in-out infinite}\n.luci-pose-place .luci-arm{animation:luci-push 2s ease-in-out infinite}\n.luci-pose-place .luci-arrow{animation:luci-pulse 2s ease-in-out infinite}\n/* Sketching (Layout: New page) */\n.luci-pose-sketch .luci-draft{animation:luci-pulse 2.4s ease-in-out infinite}\n.luci-pose-sketch .luci-arm{animation:luci-tap 1.2s ease-in-out infinite}\n.luci-pose-sketch .luci-eye{animation:luci-blink 6s ease-in-out infinite}\n\n@media (prefers-reduced-motion: reduce){.luci *{animation:none!important}}\n\n.luci-theme {\n /* Buttons: md is 40 px with 15 px labels (DESIGN.md section 6); a compact surface sets sm as its default */\n --luci-btn-h: 40px;\n --luci-btn-font: 15px;\n --luci-btn-line: 20px;\n --luci-btn-pad: var(--luci-space-16);\n font-family: var(--luci-font-body);\n font-size: var(--luci-type-body-size);\n line-height: var(--luci-type-body-line);\n font-weight: var(--luci-type-body-weight);\n color: var(--luci-color-ink);\n -webkit-font-smoothing: antialiased;\n}\n.luci-theme *, .luci-theme *::before, .luci-theme *::after { box-sizing: border-box; }\n.luci-theme :where(button, input, select, textarea) { font: inherit; color: inherit; }\n.luci-theme :where(code, kbd, pre, samp) { font-family: var(--luci-font-code); }\n.luci-theme :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {\n outline: 2px solid var(--luci-color-focus);\n outline-offset: 2px;\n}\n/* Type roles */\n.t-display { font: var(--luci-type-display-weight) var(--luci-type-display-size)/var(--luci-type-display-line) var(--luci-font-display); }\n.t-title { font: var(--luci-type-title-weight) var(--luci-type-title-size)/var(--luci-type-title-line) var(--luci-font-display); margin: 0; }\n.t-heading { font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); margin: 0; }\n.t-small { font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: var(--luci-type-small-weight); }\n.t-micro { font-size: var(--luci-type-micro-size); line-height: var(--luci-type-micro-line); font-weight: var(--luci-type-micro-weight); }\n.t-code { font: var(--luci-type-code-weight) var(--luci-type-code-size)/var(--luci-type-code-line) var(--luci-font-code); }\n.overline { font-size: var(--luci-type-micro-size); line-height: var(--luci-type-micro-line); font-weight: var(--luci-type-micro-weight);\n letter-spacing: 0.06em; text-transform: uppercase; color: var(--luci-color-link); }\n/* Icons follow the text colour */\n.icon { flex: none; display: block; }\n/* The mascot */\n.mascot { display: inline-block; flex: none; line-height: 0; }\n.mascot svg { display: block; width: 100%; height: auto; }\n.luci-still, .luci-still * { animation: none !important; }\n.luci-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: var(--luci-radius-full);\n background: var(--luci-color-primary); overflow: hidden; }\n/* Reduced motion: UI transitions become instant; the kit's CSS stops the mascot loops */\n@media (prefers-reduced-motion: reduce) {\n .luci-theme *, .luci-theme *::before, .luci-theme *::after { transition-duration: 0s !important; }\n}\n\n\n/*\n * Button (DESIGN.md section 6). Variants: btn-primary, btn-secondary, btn-outline, btn-ghost (also a\n * bare button), btn-danger, btn-link; btn-icon for icon-only (square, round). Sizes: btn-sm 32,\n * btn-md 40, btn-lg 48 (default: the surface's). States: hover, :active (pressed), :focus-visible,\n * :disabled, aria-pressed=\"true\" (toggled on), aria-busy=\"true\" (working).\n */\n.luci-theme button {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n min-height: var(--luci-btn-h);\n padding: calc((var(--luci-btn-h) - var(--luci-btn-line)) / 2) var(--luci-btn-pad);\n border: 0;\n border-radius: var(--luci-radius-full);\n background: transparent;\n color: var(--luci-color-ink);\n font-size: var(--luci-btn-font);\n font-weight: 600;\n line-height: var(--luci-btn-line);\n text-align: center;\n white-space: nowrap;\n cursor: pointer;\n transition: background-color var(--luci-motion-fast), color var(--luci-motion-fast), transform var(--luci-motion-fast);\n}\n/* Every button is a 44 px target, even when it is drawn 32 px tall */\n.luci-theme button::before { content: \"\"; position: absolute; inset: min(0px, calc((var(--luci-btn-h) - var(--luci-size-touch-target)) / 2)) 0; }\n.luci-theme button:hover:not(:disabled) { background: var(--luci-color-ghost-hover); }\n.luci-theme button:active:not(:disabled) { transform: translateY(1px); }\n.luci-theme button:disabled { color: var(--luci-color-ink-disabled); background: transparent; cursor: not-allowed; }\n.luci-theme button[aria-busy=\"true\"] { cursor: progress; }\n/* On (a tool, a toggle, a segment): one look everywhere, the kit's active tool fill (ginger-400, Charcoal text, 6.9:1) */\n.luci-theme button[aria-pressed=\"true\"]:not(.btn-primary),\n.luci-theme button[aria-pressed=\"true\"]:not(.btn-primary):hover:not(:disabled) { background: var(--luci-color-tool-active); color: var(--luci-color-on-tool-active); }\n/* A small count on a button */\n.btn-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--luci-radius-full);\n background: var(--luci-color-accent); color: var(--luci-color-on-accent); font: 600 11px/18px var(--luci-font-body); text-align: center; pointer-events: none; }\n\n/* Sizes */\n.luci-theme .btn-sm { --luci-btn-h: 32px; --luci-btn-font: var(--luci-type-small-size); --luci-btn-line: var(--luci-type-small-line); --luci-btn-pad: var(--luci-space-12); }\n.luci-theme .btn-md { --luci-btn-h: 40px; --luci-btn-font: 15px; --luci-btn-line: 20px; --luci-btn-pad: var(--luci-space-16); }\n.luci-theme .btn-lg { --luci-btn-h: 48px; --luci-btn-font: 15px; --luci-btn-line: 20px; --luci-btn-pad: var(--luci-space-20); }\n\n/* Text with an icon, and icon only */\n.luci-theme .btn-with-ico { display: inline-flex; align-items: center; justify-content: center; gap: var(--luci-space-8); padding-block: 0; }\n.luci-theme .btn-with-ico .icon { margin-inline-start: calc(var(--luci-space-4) * -1); }\n.luci-theme .btn-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--luci-btn-h); height: var(--luci-btn-h); padding: 0; }\n.luci-theme .btn-icon::before { inset: min(0px, calc((var(--luci-btn-h) - var(--luci-size-touch-target)) / 2)); }\n\n/* Variants */\n.luci-theme .btn-primary { background: var(--luci-color-primary); color: var(--luci-color-on-primary); }\n.luci-theme .btn-primary:hover:not(:disabled) { background: var(--luci-color-primary-hover); }\n.luci-theme .btn-primary:disabled { background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-disabled); }\n.luci-theme .btn-secondary { background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle);\n padding-block: calc((var(--luci-btn-h) - var(--luci-btn-line)) / 2 - 1px); }\n.luci-theme .btn-secondary:hover:not(:disabled) { background: var(--luci-color-secondary-hover); }\n.luci-theme .btn-secondary:disabled { background: var(--luci-color-surface-raised); }\n.luci-theme .btn-outline { background: transparent; border: 1px solid var(--luci-color-stroke-subtle);\n padding-block: calc((var(--luci-btn-h) - var(--luci-btn-line)) / 2 - 1px); }\n.luci-theme .btn-outline:hover:not(:disabled) { background: var(--luci-color-ghost-hover); border-color: var(--luci-color-stroke-strong); }\n.luci-theme :is(.btn-secondary, .btn-outline):is(.btn-with-ico, .btn-icon) { padding-block: 0; }\n.luci-theme .btn-ghost { background: transparent; }\n.luci-theme .btn-danger { background: var(--luci-color-danger-bg); color: var(--luci-color-danger); }\n.luci-theme .btn-danger:hover:not(:disabled) { background: var(--luci-color-danger-hover); }\n.luci-theme .btn-danger:disabled { background: var(--luci-color-danger-bg); color: var(--luci-color-danger); opacity: 0.5; }\n.luci-theme .btn-link { min-height: 0; padding: 0; border-radius: var(--luci-radius-sm); background: transparent; color: var(--luci-color-link);\n font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;\n transition: text-decoration-color var(--luci-motion-fast); }\n.luci-theme .btn-link:hover:not(:disabled) { background: transparent; text-decoration-color: currentColor; }\n.luci-theme .btn-link:active:not(:disabled) { transform: none; }\n.luci-theme .btn-link::before { inset: -8px -4px; }\n/* Working: the label stays for layout, a ring turns over it */\n.luci-theme button[aria-busy=\"true\"] > * { opacity: 0.4; }\n.badge, .count { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 var(--luci-space-8);\n border-radius: var(--luci-radius-full); font-size: var(--luci-type-micro-size); line-height: var(--luci-type-micro-line);\n font-weight: var(--luci-type-micro-weight); white-space: nowrap; }\n.badge { background: var(--luci-color-surface-sunken); color: var(--luci-color-ink); }\n.badge.brand { background: var(--luci-color-primary-soft); color: var(--luci-color-link); }\n.count { min-width: 22px; background: var(--luci-color-accent); color: var(--luci-color-on-accent); }\n\n/* Status message and toast: tinted fill, the status icon and coloured title, Charcoal detail, no stroke */\n.status-msg { display: flex; gap: var(--luci-space-12); align-items: flex-start; margin: 0; padding: var(--luci-space-12) var(--luci-space-16);\n border-radius: var(--luci-radius-lg); background: var(--status-bg); color: var(--luci-color-muzzle-900); }\n.status-msg.success { --status: var(--luci-color-success); --status-bg: var(--luci-color-success-bg); }\n.status-msg.warning { --status: var(--luci-color-warning); --status-bg: var(--luci-color-warning-bg); }\n.status-msg.danger { --status: var(--luci-color-danger); --status-bg: var(--luci-color-danger-bg); }\n.status-msg.info { --status: var(--luci-color-info); --status-bg: var(--luci-color-info-bg); }\n.status-msg > .icon { color: var(--status); margin-top: 2px; }\n.status-msg .status-body { display: flex; flex-direction: column; gap: var(--luci-space-4); min-width: 0; }\n.status-msg .status-title { margin: 0; color: var(--status); font-size: var(--luci-type-heading-size); line-height: var(--luci-type-heading-line); font-weight: var(--luci-type-heading-weight); }\n.status-msg .status-detail { margin: 0; }\n.status-msg .mascot { width: 48px; }\n.toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-shadow-float); }\n\n/* Card and panel */\n.card { padding: var(--luci-space-24); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-xl); background: var(--luci-color-surface-raised); }\n\n/* Input, select and text area */\n.luci-theme :where(input[type=\"text\"], input[type=\"search\"], input[type=\"number\"], input[type=\"url\"], input:not([type]), select, textarea) {\n min-height: var(--luci-btn-h);\n padding: 0 var(--luci-space-12);\n border: 1px solid var(--luci-color-stroke-subtle);\n border-radius: var(--luci-radius-sm);\n background-color: var(--luci-color-surface-raised);\n color: var(--luci-color-ink);\n transition: border-color var(--luci-motion-fast);\n}\n.luci-theme :where(textarea) { padding: var(--luci-space-8) var(--luci-space-12); resize: vertical; }\n/* Select: the component wraps it with the kit's chevron icon, 12 px from the edge */\n.luci-theme :where(select) { appearance: none; padding-inline-end: 36px; text-overflow: ellipsis; cursor: pointer; }\n.select { position: relative; display: inline-flex; vertical-align: middle; min-width: 0; }\n.select > select { flex: 1 1 auto; min-width: 0; }\n.select > .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }\n.luci-theme :where(input, select, textarea):hover:not(:disabled) { border-color: var(--luci-color-stroke-strong); }\n.luci-theme ::placeholder { color: var(--luci-color-ink-secondary); opacity: 1; }\n.luci-theme :where(input[type=\"checkbox\"], input[type=\"radio\"]) { accent-color: var(--luci-color-primary); }\n.field-error { display: flex; gap: var(--luci-space-4); align-items: center; margin: 0; color: var(--luci-color-danger);\n font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n\n/* The repository pill: GitHub's mark and Luci's version, in the code font (a link once the repository is public) */\n.luci-theme .repo-btn { position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 var(--luci-space-12);\n border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-full); background: var(--luci-color-surface-raised);\n color: var(--luci-color-ink); font: 600 13px/1 var(--luci-font-code); text-decoration: none; white-space: nowrap; }\n.luci-theme a.repo-btn:hover { background: var(--luci-color-ghost-hover); }\n.luci-theme a.repo-btn:focus-visible { outline: 2px solid var(--luci-color-focus); outline-offset: 2px; }\n.luci-theme .repo-btn .gh-mark { display: block; width: 16px; height: 16px; line-height: 0; }\n.luci-theme .repo-btn .gh-mark svg { display: block; width: 16px; height: 16px; }\n/* Tooltip host: relative positioning and raised z-index on hover so tooltips render above sibling elements */\n.luci-theme [data-tip] { position: relative; }\n.luci-theme [data-tip]:is(:hover, :focus-visible) { z-index: 10; }\n\n/* Tooltip: the text in data-tip; below the element, or above with data-tip-pos=\"above\". Shows after 300 ms. */\n.luci-theme [data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + var(--luci-space-8)); z-index: 10;\n width: max-content; max-width: 340px; box-sizing: border-box; padding: 6px 10px; border-radius: var(--luci-radius-md); background: var(--luci-color-ink);\n color: var(--luci-color-surface); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: var(--luci-type-small-weight);\n white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; text-align: left; pointer-events: none; opacity: 0; transform: translate(-50%, -4px);\n transition: opacity var(--luci-motion-exit), transform var(--luci-motion-exit); }\n.luci-theme [data-tip][data-tip-pos=\"above\"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); transform: translate(-50%, 4px); }\n.luci-theme [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0);\n transition: opacity var(--luci-motion-base) 300ms, transform var(--luci-motion-base) 300ms; }\n\n/* Left-aligned tooltips (first button in rows, cards, or explicit data-tip-align=\"left\") open rightwards to prevent clipping inside cards/panels */\n.luci-theme [data-tip][data-tip-align=\"left\"]::after,\n.luci-theme .panel .actions > [data-tip]:first-child::after,\n.luci-theme .panel .row > [data-tip]:first-child::after {\n left: 0; right: auto; transform: translate(0, -4px);\n}\n.luci-theme [data-tip][data-tip-pos=\"above\"][data-tip-align=\"left\"]::after,\n.luci-theme .panel .actions > [data-tip]:first-child[data-tip-pos=\"above\"]::after,\n.luci-theme .panel .row > [data-tip]:first-child[data-tip-pos=\"above\"]::after {\n top: auto; bottom: calc(100% + var(--luci-space-8)); left: 0; right: auto; transform: translate(0, 4px);\n}\n.luci-theme [data-tip][data-tip-align=\"left\"]:is(:hover, :focus-visible)::after,\n.luci-theme .panel .actions > [data-tip]:first-child:is(:hover, :focus-visible)::after,\n.luci-theme .panel .row > [data-tip]:first-child:is(:hover, :focus-visible)::after {\n transform: translate(0, 0);\n}\n\n/* Right-aligned tooltips (repo button, last button in rows, cards, or explicit data-tip-align=\"right\") open leftwards */\n.luci-theme .repo-btn[data-tip]::after,\n.luci-theme [data-tip][data-tip-align=\"right\"]::after,\n.luci-theme .panel .actions > [data-tip]:last-child::after,\n.luci-theme .panel .row > [data-tip]:last-child::after {\n left: auto; right: 0; transform: translate(0, -4px);\n}\n.luci-theme .repo-btn[data-tip][data-tip-pos=\"above\"]::after,\n.luci-theme [data-tip][data-tip-pos=\"above\"][data-tip-align=\"right\"]::after,\n.luci-theme .panel .actions > [data-tip]:last-child[data-tip-pos=\"above\"]::after,\n.luci-theme .panel .row > [data-tip]:last-child[data-tip-pos=\"above\"]::after {\n top: auto; bottom: calc(100% + var(--luci-space-8)); left: auto; right: 0; transform: translate(0, 4px);\n}\n.luci-theme .repo-btn[data-tip]:is(:hover, :focus-visible)::after,\n.luci-theme [data-tip][data-tip-align=\"right\"]:is(:hover, :focus-visible)::after,\n.luci-theme .panel .actions > [data-tip]:last-child:is(:hover, :focus-visible)::after,\n.luci-theme .panel .row > [data-tip]:last-child:is(:hover, :focus-visible)::after {\n transform: translate(0, 0);\n}\n\n/* Empty state: Luci, a title, one line, an optional primary button */\n.empty { display: flex; flex-direction: column; align-items: center; gap: var(--luci-space-12); padding: var(--luci-space-24) var(--luci-space-16); text-align: center; }\n.empty .t-title { margin: 0; }\n.empty p:not(.t-title) { margin: 0; color: var(--luci-color-ink-secondary); }\n\n/* Compact, as the kit gives for the toolbar panel: 32 px buttons, small labels, small body text */\n.luci-theme { --luci-btn-h: 32px; --luci-btn-font: var(--luci-type-small-size); --luci-btn-line: var(--luci-type-small-line); --luci-btn-pad: var(--luci-space-12);\n font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n\n/* The shell: a column at the window's edge, the toolbar pill first, then cards */\n.shell {\n position: fixed;\n top: var(--luci-space-12);\n right: var(--luci-space-12);\n z-index: 2147483647;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--luci-space-8);\n max-width: calc(100vw - 24px);\n max-height: calc(100vh - 24px);\n /* The column itself is see-through: only the pill and the cards take the pointer */\n pointer-events: none;\n}\n.shell > * { pointer-events: auto; }\n.luci-theme[data-dock=\"left\"] .shell { right: auto; left: var(--luci-space-12); align-items: flex-start; }\n.luci-theme[data-dock=\"left\"] .bar,\n.luci-theme[data-dock=\"left\"] .sub,\n.luci-theme[data-dock=\"left\"] .panel { right: auto; left: var(--luci-space-12); }\n\n/* The toolbar pill (DESIGN.md, On-page toolbar): Charcoal in both themes, float shadow, no stroke */\n.bar {\n --luci-color-focus: var(--luci-color-muzzle-50);\n position: fixed;\n top: var(--luci-space-12);\n right: var(--luci-space-12);\n z-index: 2147483647;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 2px;\n max-width: calc(100vw - 24px);\n padding: var(--luci-space-8);\n border-radius: 32px;\n background: var(--luci-color-bar);\n color: var(--luci-color-bar-ink);\n box-shadow: var(--luci-shadow-float);\n}\n/* Above the cards, so the tools' tooltips are never under a card */\n.shell > .bar { position: relative; z-index: 2; }\n/* In the column the shell is what is placed: the bar's own offsets would move it a second time */\n.luci-theme .shell > .bar { inset: auto; }\n/*\n * The extension's bar, dragged anywhere (data-h and data-v: the corner it is nearest). Cards open on\n * the side with room: below a bar in the top half, above one in the bottom half, aligned to its side.\n */\n.luci-theme .shell[data-v=\"bottom\"] { flex-direction: column-reverse; }\n.luci-theme .shell[data-h=\"left\"] { align-items: flex-start; }\n.luci-theme .shell[data-h=\"right\"] { align-items: flex-end; }\n.luci-theme .shell[data-movable] > .bar { cursor: grab; touch-action: none; }\n.luci-theme .shell[data-moving] > .bar, .luci-theme .shell[data-moving] > .bar * { cursor: grabbing; user-select: none; }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip]:not([data-tip-align])::after { top: auto; bottom: calc(100% + var(--luci-space-8)); transform: translate(-50%, 4px); }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip]:not([data-tip-align]):is(:hover, :focus-visible)::after { transform: translate(-50%, 0); }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip][data-tip-align=\"left\"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: 0; right: auto; transform: translate(0, 4px); }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip][data-tip-align=\"left\"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip][data-tip-align=\"right\"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: auto; right: 0; transform: translate(0, 4px); }\n.luci-theme .shell[data-v=\"bottom\"] > .bar [data-tip][data-tip-align=\"right\"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }\n.luci-theme .bar button { --luci-btn-h: 40px; color: var(--luci-color-bar-ink); }\n.luci-theme .bar .tool, .luci-theme .bar .menu-btn { --luci-btn-h: 48px; }\n.luci-theme .bar button:hover:not(:disabled) { background: var(--luci-color-bar-hover); }\n.luci-theme .bar button:disabled { color: var(--luci-color-muzzle-500); }\n.luci-theme .bar button[aria-pressed=\"true\"],\n.luci-theme .bar button[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--luci-color-tool-active); color: var(--luci-color-on-tool-active); }\n.luci-theme .bar .btn-primary { background: var(--luci-color-primary); color: var(--luci-color-on-primary); }\n.luci-theme .bar .btn-primary:hover:not(:disabled) { background: var(--luci-color-primary-hover); }\n/* Disabled on Charcoal: only the icon dims, so it never looks like an \"on\" state */\n.luci-theme .bar .btn-primary:disabled { background: transparent; color: var(--luci-color-muzzle-500); }\n.bar-sep { flex: none; width: 1px; height: 24px; margin: 0 2px; background: var(--luci-color-bar-stroke); }\n/* Luci's head: the menu button */\n.luci-theme .bar .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; padding: 0; cursor: pointer; }\n.luci-theme .bar .menu-btn .luci-avatar { transition: background-color var(--luci-motion-fast); }\n.luci-theme .bar .menu-btn:is(:hover, [aria-pressed=\"true\"]) { background: transparent; }\n.luci-theme .bar .menu-btn:hover .luci-avatar { background: var(--luci-color-primary-hover); }\n.luci-theme .bar .menu-btn[aria-pressed=\"true\"] .luci-avatar { background: var(--luci-color-tool-active); }\n/* The basket: a Collar Lime pill with its count */\n.luci-theme .bar .basket-pill { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-16) 0 var(--luci-space-12);\n background: var(--luci-color-accent); color: var(--luci-color-on-accent); font-weight: 600; }\n.luci-theme .bar .basket-pill:hover:not(:disabled),\n.luci-theme .bar .basket-pill[aria-pressed=\"true\"],\n.luci-theme .bar .basket-pill[aria-pressed=\"true\"]:hover:not(:disabled),\n.luci-theme .bar button.basket-pill[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--luci-color-collar-lime-300); color: var(--luci-color-on-accent); }\n.brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;\n font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }\n/* The dev toolbar's mode switch, on Charcoal */\n.bar .seg { background: var(--luci-color-muzzle-800); align-self: center; }\n.luci-theme .bar .seg button { color: var(--luci-color-bar-ink); }\n.luci-theme .bar .seg button[aria-pressed=\"true\"],\n.luci-theme .bar .seg button[aria-pressed=\"true\"]:hover:not(:disabled) { color: var(--luci-color-on-tool-active); }\n.modes { margin-right: var(--luci-space-4); }\n\n/*\n * The dev toolbar is placed by its host: data-h and data-v name the corner it is nearest, --luci-x and\n * --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the\n * person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above\n * a bar in the bottom half, just below one in the top half, aligned to its side. A panel takes the\n * hint's place while it is open. The extension sets none of this (its bar keeps its own place).\n */\n:host([data-h=\"right\"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: auto; right: var(--luci-x, 12px); }\n:host([data-h=\"left\"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { right: auto; left: var(--luci-x, 12px); }\n:host([data-h=\"right\"]) .shell { align-items: flex-end; }\n:host([data-h=\"left\"]) .shell { align-items: flex-start; }\n:host([data-v=\"bottom\"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }\n:host([data-v=\"bottom\"]) .shell { flex-direction: column-reverse; }\n:host([data-v=\"bottom\"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + 72px); }\n:host([data-v=\"bottom\"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + 64px); }\n:host([data-v=\"top\"]) :is(.shell, .bar:not(.shell > .bar)) { bottom: auto; top: var(--luci-y, 12px); }\n:host([data-v=\"top\"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + 72px); }\n:host([data-v=\"top\"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + 64px); }\n:host([data-v]) .shell { max-height: calc(100vh - var(--luci-y, 12px) - 12px); }\n:host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - 96px)); }\n:host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - 96px)); }\n:host([data-v]) .luci-theme:has(> .panel) > .sub:not([role=\"alert\"]) { display: none; }\n:host([data-v=\"bottom\"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }\n:host([data-v=\"top\"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }\n@keyframes luci-rise { from { opacity: 0; transform: translateY(8px); } }\n@keyframes luci-drop { from { opacity: 0; transform: translateY(-8px); } }\n@media (prefers-reduced-motion: reduce) { :host([data-v]) :is(.sub, .panel, .menu) { animation: none; } }\n:host([data-v=\"bottom\"]) .bar [data-tip]:not([data-tip-align])::after { top: auto; bottom: calc(100% + var(--luci-space-8)); transform: translate(-50%, 4px); }\n:host([data-v=\"bottom\"]) .bar [data-tip]:not([data-tip-align]):is(:hover, :focus-visible)::after { transform: translate(-50%, 0); }\n:host([data-v=\"bottom\"]) .bar [data-tip][data-tip-align=\"left\"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: 0; right: auto; transform: translate(0, 4px); }\n:host([data-v=\"bottom\"]) .bar [data-tip][data-tip-align=\"left\"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }\n:host([data-v=\"bottom\"]) .bar [data-tip][data-tip-align=\"right\"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: auto; right: 0; transform: translate(0, 4px); }\n:host([data-v=\"bottom\"]) .bar [data-tip][data-tip-align=\"right\"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }\n/* The dev toolbar's bar can be dragged by its own background, a separator or Luci */\n:host([data-v]) .bar { cursor: grab; touch-action: none; }\n:host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }\n:host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }\n/* New page's canvas covers the window: its tools and its panel keep clear of the bar */\n:host([data-v=\"bottom\"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + 76px); }\n:host([data-v=\"bottom\"]) .wf-tools { padding-top: var(--luci-space-12); }\n:host([data-v=\"top\"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + 76px); }\n:host([data-v=\"top\"]) .panel[data-part=\"sketch-panel\"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }\n\n/* Cards under the pill: the hint while picking, and every panel (radius-xl, float shadow, no stroke) */\n.sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-shadow-float); }\n.sub {\n position: fixed;\n top: 84px;\n right: var(--luci-space-12);\n z-index: 2147483646;\n width: min(420px, calc(100vw - 24px));\n display: flex;\n flex-direction: column;\n gap: var(--luci-space-8);\n padding: var(--luci-space-12) var(--luci-space-16);\n}\n/* In the column, cards drop the stand-alone z-index (flex items honour it even unpositioned) */\n.shell > .sub { position: static; z-index: auto; width: min(560px, calc(100vw - 24px)); }\n.sub p { margin: 0; }\n.sub.with-luci { flex-direction: row; align-items: center; gap: var(--luci-space-16); }\n/* Luci beside a hint inside a card (Layout: placing, new page) */\n.luci-hint { display: flex; align-items: center; gap: var(--luci-space-16); }\n.luci-hint > p { margin: 0; min-width: 0; }\n.sub .sub-body { display: flex; flex-direction: column; gap: var(--luci-space-8); min-width: 0; }\n.keys { color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n.panel {\n position: fixed;\n right: var(--luci-space-12);\n bottom: var(--luci-space-12);\n z-index: 2147483646;\n width: min(480px, calc(100vw - 24px));\n max-height: min(72vh, 660px);\n display: flex;\n flex-direction: column;\n gap: var(--luci-space-12);\n padding: var(--luci-space-20);\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n.shell > .panel { position: static; z-index: auto; width: min(560px, calc(100vw - 24px)); max-height: none; flex: 0 1 auto; min-height: 0; }\n.panel > * { flex-shrink: 0; }\n.panel > .items, .panel > .diffs { flex-shrink: 1; }\n.panel h2 { margin: 0; font: var(--luci-type-title-weight) var(--luci-type-title-size)/var(--luci-type-title-line) var(--luci-font-display); }\n.panel.result-panel { padding: 0; gap: 0; }\n.panel-body { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-20) var(--luci-space-20) var(--luci-space-16); }\n\n/* The menu: who Luci is, help, then settings */\n.menu-head { display: flex; align-items: center; gap: var(--luci-space-16); }\n.menu-head > .repo-btn { align-self: flex-start; margin-left: auto; }\n.settings-head { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }\n.settings-head h2 { margin: 0; }\n/* The extension's invitation: the rest of Luci lives in the person's project. A tint, no stroke, no pop-up */\n.invite { display: flex; flex-direction: column; align-items: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-12) var(--luci-space-16);\n border-radius: var(--luci-radius-lg); background: var(--luci-color-primary-soft); }\n.invite p { margin: 0; }\n.invite-title { font: var(--luci-type-display-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-display); color: var(--luci-color-ink); }\n.invite-body { color: var(--luci-color-ink); }\n.luci-theme .invite-action { margin-top: var(--luci-space-4); }\n.brand-stack { display: flex; flex-direction: column; gap: var(--luci-space-4); min-width: 0; }\n.brand-title-line { display: flex; align-items: baseline; gap: var(--luci-space-8); flex-wrap: wrap; }\n.brand-title { font: var(--luci-type-title-weight) var(--luci-type-title-size)/var(--luci-type-title-line) var(--luci-font-display); color: var(--luci-color-ink); }\n.brand-sub { font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: var(--luci-type-small-weight); color: var(--luci-color-ink-secondary); }\n.brand-desc { margin: 0; color: var(--luci-color-ink-secondary); }\n/* The first-run greeting */\n.greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }\n.greet .t-title { margin: 0; }\n\n/* Segmented control */\n.seg { display: inline-flex; align-self: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-4); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-full); }\n.luci-theme .seg button { min-height: 28px; padding: 5px var(--luci-space-12); }\n.seg button::before { inset: -8px 0; }\n\n/* Lists: basket items, section files */\n.items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-8); overflow: auto; }\n.items li { display: grid; grid-template-columns: 1fr auto; gap: var(--luci-space-8); align-items: center; padding: var(--luci-space-12);\n background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-lg); }\n.files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-4); }\n.files li { display: flex; gap: var(--luci-space-8); align-items: center; justify-content: space-between; padding: var(--luci-space-4) var(--luci-space-4) var(--luci-space-4) var(--luci-space-12);\n background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-md); }\n.files li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.files code, [data-part=\"file-view-box\"] code { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.items textarea { grid-column: 1 / -1; min-height: 40px; font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n.items input { min-width: 0; }\n/* A basket item: what it is, then its name with Export and Remove in one row, then its note */\n.items .meta { grid-column: 1; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); }\n.items .meta:not(:has(+ .compare-pick)) { grid-column: 1 / -1; }\n.items .compare-pick { grid-column: 2; justify-self: end; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); }\n/* Automatic design check (v0.4) */\n.check-watch { gap: var(--luci-space-8); font-size: var(--luci-type-small-size); color: var(--luci-color-ink); }\n/* Screenshot mode (v0.4): the hint card is where an image is dropped */\n.sub.image-drop { outline: 2px dashed var(--luci-color-stroke-subtle); outline-offset: -6px; }\n/* Compare mode (v0.4): What, A, B */\n.compare-scroll { max-height: 50vh; overflow: auto; border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }\n.compare { width: 100%; min-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n.compare th, .compare td { padding: var(--luci-space-4) var(--luci-space-8); text-align: left; vertical-align: top; box-sizing: border-box; }\n.compare .col-what, .compare th:first-child, .compare td:first-child { width: 50%; overflow-wrap: break-word; word-break: normal; }\n.compare .col-a, .compare .col-b,\n.compare th:nth-child(2), .compare td:nth-child(2),\n.compare th:nth-child(3), .compare td:nth-child(3) { width: 25%; overflow-wrap: anywhere; word-break: break-word; }\n.compare th { position: sticky; top: 0; background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary); font-weight: 600; }\n.compare tr + tr td { border-top: 1px solid var(--luci-color-stroke-subtle); }\n.items .row { grid-column: 2; flex-wrap: nowrap; }\n.stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--luci-space-8); }\n\n/* The file preview: code you can edit and drag taller */\ntextarea.preview { flex: none; height: 280px; min-height: 120px; max-height: 70vh; padding: var(--luci-space-12); white-space: pre; overflow: auto;\n background: var(--luci-color-surface-raised); font: var(--luci-type-code-weight) var(--luci-type-code-size)/var(--luci-type-code-line) var(--luci-font-code); }\ntextarea[data-part=\"instructions\"] { min-height: 64px; }\npre.preview { margin: 0; max-height: 240px; overflow: auto; white-space: pre-wrap; }\npre { margin: 0; overflow: auto; padding: var(--luci-space-12); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-sm); white-space: pre; min-height: 80px;\n font: var(--luci-type-code-weight) 12px/var(--luci-type-code-line) var(--luci-font-code); }\n\n.dim { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: 400; }\n.hint { margin: 0; color: var(--luci-color-ink-secondary); }\n/* An error is a status message: tinted fill and the status colour, never colour alone (the words say it) */\n.error { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-danger-bg); color: var(--luci-color-danger); font-weight: 500; }\n.row { display: flex; flex-wrap: wrap; gap: var(--luci-space-8); align-items: center; }\n.file { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); color: var(--luci-color-ink-secondary); word-break: break-all; }\nlabel { display: inline-flex; gap: var(--luci-space-4); align-items: center; color: var(--luci-color-ink-secondary); }\n\n/* Page overlays while picking: drawn over the host page, never part of it */\n.pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }\n.highlight { position: fixed; z-index: 2147483646; pointer-events: none; border: 2px solid var(--luci-color-pick); background: var(--luci-color-pick-fill); border-radius: 2px; }\n.highlight.locked { border-width: 2px; border-style: solid; }\n.highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }\n.pad { position: fixed; z-index: 2147483645; pointer-events: none; border-style: solid; border-color: var(--luci-color-pad-fill); }\n.margin { position: fixed; z-index: 2147483645; pointer-events: none; border-style: solid; border-color: var(--luci-color-margin-fill); }\n@media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }\n/* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */\n.label, .swatch { position: fixed; z-index: 2147483647; pointer-events: none; padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md);\n background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-shadow-float);\n font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }\n.label { max-width: 360px; white-space: pre-wrap; }\n.label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }\n.swatch { display: flex; gap: var(--luci-space-8); align-items: center; }\n.chip { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--luci-color-bar-stroke); }\n/* Pixel mode's loupe: the pixels around the pointer, 8 times larger, the picked one framed */\n.loupe { position: fixed; z-index: 2147483647; pointer-events: none; width: 120px; height: 120px; border-radius: 50%; image-rendering: pixelated;\n background: var(--luci-color-muzzle-900); box-shadow: 0 0 0 3px var(--luci-color-muzzle-50), var(--luci-shadow-float); }\n\n/* State pills */\n.states-list { display: flex; flex-wrap: wrap; gap: var(--luci-space-4); }\n.state { display: inline-flex; align-items: center; gap: var(--luci-space-4); height: 26px; padding: 0 var(--luci-space-12); border-radius: var(--luci-radius-full);\n background: var(--luci-color-surface-sunken); color: var(--luci-color-ink); font-size: var(--luci-type-small-size); font-weight: 500; }\n.state.default { background: var(--luci-color-primary-soft); color: var(--luci-color-link); font-weight: 600; }\n.state.missing { background: transparent; color: var(--luci-color-ink-secondary); border: 1px dashed var(--luci-color-stroke-strong); }\n.manual-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }\n.section-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }\n.manual-actions { display: inline-flex; align-items: center; gap: var(--luci-space-8); flex: none; }\n\n/* Settings and the 3-column export settings */\n.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luci-space-8); }\n.field-stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--luci-space-4); color: var(--luci-color-ink); }\n.field-label { font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: 600; color: var(--luci-color-ink); }\n.field-stack .select, .field-stack select { width: 100%; }\n.settings-appearance { display: flex; flex-direction: column; gap: var(--luci-space-12); }\n/* The words wrap beside the control; the control keeps its place on the right */\n.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }\n.setting-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }\n.setting-row > .seg { flex: none; align-self: center; }\n.settings-divider { height: 1px; margin: var(--luci-space-4) 0; border: 0; background: var(--luci-color-stroke-subtle); }\n.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: var(--luci-space-8) var(--luci-space-12); align-items: center; padding: var(--luci-space-12);\n border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); font-size: var(--luci-type-small-size); }\n.kbd { display: inline-block; min-width: 24px; padding: 2px var(--luci-space-8); border-radius: 6px; background: var(--luci-color-surface-raised); color: var(--luci-color-ink);\n text-align: center; font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }\n\n/* Connected project status (v0.4.4) */\n.project-card { display: flex; flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }\n.project-header { display: flex; align-items: flex-start; gap: var(--luci-space-8); }\n.status-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }\n.status-dot.online { background: var(--luci-color-success); box-shadow: 0 0 0 2px var(--luci-color-success-bg); }\n.status-dot.offline { background: var(--luci-color-stroke-strong); }\n.project-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }\n.project-name { font-weight: 600; color: var(--luci-color-ink); font-size: var(--luci-type-small-size); }\n.project-path { font-size: 11px; color: var(--luci-color-ink-secondary); word-break: break-all; }\n.project-hint { font-size: 11px; color: var(--luci-color-ink-secondary); }\n.project-port-row { display: flex; align-items: center; gap: var(--luci-space-8); margin-top: var(--luci-space-4); }\n.port-input { flex: 1; min-width: 0; padding: 4px var(--luci-space-8); border-radius: var(--luci-radius-sm); border: 1px solid var(--luci-color-stroke-subtle); background: var(--luci-color-surface-raised); font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); color: var(--luci-color-ink); }\n\n/* DevTool tabbed settings (v0.4.4) */\n.setting-tools-header { display: flex; flex-direction: column; gap: var(--luci-space-8); }\n.tool-tabs { display: flex; width: 100%; box-sizing: border-box; }\n.tool-tabs button { flex: 1 1 0; text-align: center; justify-content: center; }\n.tool-settings-body { display: flex; flex-direction: column; gap: var(--luci-space-12); }\n.swatches { display: flex; gap: var(--luci-space-8); flex-wrap: wrap; }\n.luci-theme .swatches button { width: 28px; min-height: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; }\n.luci-theme .swatches button::before { inset: -8px; }\n.luci-theme .swatches button[aria-pressed=\"true\"] { outline: 2px solid var(--luci-color-focus); outline-offset: 2px; }\n\n/* The selected element and its tips */\n.selected-card { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16); border-radius: var(--luci-radius-lg); background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); }\n.selected-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--luci-space-8); flex-wrap: wrap; }\n.selected-card h2 { margin: 0; font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); }\n.tip-box { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary);\n font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }\n\n/* The file and its actions */\n.md-section { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16) var(--luci-space-20) var(--luci-space-20); background: var(--luci-color-surface-sunken); }\n.md-head { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); flex-wrap: wrap; }\n.md-title { font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); color: var(--luci-color-ink); }\n.file-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }\n.scope-pill { flex: none; }\n.actions { gap: var(--luci-space-8); }\n\n/* Design check */\n[data-part=\"check-summary\"] { margin: 0; }\n.row .rule { order: 1; flex-basis: 100%; max-height: 132px; overflow: auto; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }\n.rule code { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); white-space: pre-wrap; word-break: break-word; }\n.diffs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-4); overflow: auto; min-height: 60px; }\n.diffs li { display: flex; flex-direction: column; gap: 2px; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); }\n.diffs li.high { background: var(--luci-color-warning-bg); color: var(--luci-color-muzzle-900); border-color: transparent; }\n.diffs li.high .dim { color: var(--luci-color-muzzle-700); }\n.diffs label { align-items: flex-start; gap: var(--luci-space-8); color: inherit; }\n.diffs input { flex: none; margin: 3px 0 0; }\n.diffs .dim { padding-left: 21px; }\n\n/* Screenshot diff overlay (v0.4.4) */\n.diff-section { border-top: 1px solid var(--luci-color-stroke-subtle); padding-top: var(--luci-space-8); }\n.diff-controls { display: flex; flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }\n.diff-slider { width: 100%; accent-color: var(--luci-color-primary); cursor: pointer; }\n.diff-overlay { position: fixed; z-index: 2147483644; pointer-events: none; overflow: hidden; box-shadow: 0 0 0 2px var(--luci-color-primary), var(--luci-shadow-float); border-radius: var(--luci-radius-sm); }\n.diff-overlay img { width: 100%; height: 100%; object-fit: fill; display: block; }\n.diff-split-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--luci-color-primary); box-shadow: var(--luci-shadow-float); pointer-events: none; }\n\n/* Loading */\n.loading { display: flex; gap: var(--luci-space-12); align-items: center; margin: 0; color: var(--luci-color-ink); }\n.loading .steps { color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); }\n.loading-sleep { flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-16) 0; text-align: center; }\n.loading-sleep .stack { align-items: center; }\n/* Spins with transform only: the browser keeps it moving off the page's main thread, even while Luci reads a heavy page */\n.spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--luci-color-stroke-strong); border-top-color: var(--luci-color-primary);\n animation: luci-spin 0.8s linear infinite; will-change: transform; }\nbutton .spinner { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; }\n@keyframes luci-spin { to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }\n";
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,k0iEAqXvB,CAAC"}