@celestia-island/hikari 0.55.352 → 0.55.353

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.352",
3
+ "version": "0.55.353",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari UI library, Vue 3 runtime — one design system for Vue 3 and Rust/WASM applications",
@@ -329,7 +329,14 @@
329
329
  background: rgb(var(--color-surface));
330
330
  color: rgb(var(--color-text));
331
331
  border-color: rgb(var(--color-border) / 20%);
332
- @include backdrop-filter(blur(var(--blur-sm)));
332
+ /* Host-tunable (2026-11-12 chest WebView field report, same family as
333
+ HkCard's knob). The fill is the OPAQUE surface token, so this blur is
334
+ invisible unless a host deliberately re-alpha'd --color-surface — yet it
335
+ still makes every secondary button own a background render surface, and
336
+ a modal footer full of them is where a small surface budget runs out
337
+ first. Engine-gated by the host, never width-gated (see HkCard.scss for
338
+ why width is the wrong key). */
339
+ @include backdrop-filter(var(--hk-btn-secondary-blur, blur(var(--blur-sm))));
333
340
  }
334
341
 
335
342
  /* background stays the base surface — the hover declaration only restated
@@ -8,7 +8,21 @@
8
8
  display: block;
9
9
  overflow: hidden;
10
10
  background: color-mix(in srgb, rgb(var(--color-surface)) 70%, transparent);
11
- @include backdrop-filter(blur(var(--blur-md)));
11
+ /* Host-tunable blur (2026-11-12 chest WebView field report). The fill is
12
+ 70%-alpha surface, so whenever the layer BENEATH the card is already an
13
+ opaque surface the blur is sampling a flat color: it buys no visible
14
+ change while still making the card own a background render surface.
15
+ The reported artifact class is a compositor that keeps an element's box
16
+ and loses its painted contents, which is what a starved surface budget
17
+ looks like from the DOM — so the hatch exists to let a HOST drop this
18
+ pass on the engines where that class shows up.
19
+ DELIBERATELY NOT width-gated (unlike the modal family's -mobile knobs):
20
+ the trigger is the engine, not the viewport — a phone WebView in
21
+ "request desktop site" mode, a tablet, and a desktop WebView2 host all
22
+ keep a wide layout while running the same budget, so a width gate would
23
+ miss exactly those hosts. Hosts express the stand-down per engine
24
+ (`--hk-card-blur: none`). */
25
+ @include backdrop-filter(var(--hk-card-blur, blur(var(--blur-md))));
12
26
  border: 1px solid var(--border-subtle);
13
27
  border-radius: var(--radius-lg, 12px);
14
28
  box-shadow: var(--shadow-elevated);
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Source contract: every tinted toast band (error / success / info /
3
+ * loading) re-pins the copy/close controls' standard icon-button ink to
4
+ * the band's on-solid color. The 2026-11-06 HkIconButton sweep left the
5
+ * controls riding the ghost ink — the page's secondary text color — so
6
+ * the glyphs rendered near-black on the saturated bands (2026-11-12 user
7
+ * report: black copy/close glyphs on the red CSRF error toast). Pinned
8
+ * here so a refactor cannot drop the per-band re-pin again.
9
+ */
10
+ import { describe, expect, it } from "vitest";
11
+ import { readFileSync } from "node:fs";
12
+ import { dirname, join } from "node:path";
13
+ import { fileURLToPath } from "node:url";
14
+
15
+ const here = dirname(fileURLToPath(import.meta.url));
16
+
17
+ const TINTED_VARIANTS = ["error", "success", "info", "loading"] as const;
18
+ const CONTROL_CLASSES = ["hk-toast-copy-btn", "hk-toast-close"] as const;
19
+ const BRIDGE_DECLS = [
20
+ "--hi-icon-button-icon-color:",
21
+ "--hi-icon-button-icon-color-active:",
22
+ "--hi-icon-button-bg-hover:",
23
+ "--hi-icon-button-bg-active:",
24
+ ] as const;
25
+
26
+ describe("toast tinted-band icon ink contract", () => {
27
+ const css = readFileSync(join(here, "HkToast.scss"), "utf-8");
28
+
29
+ // Each `.hk-toast-<variant> .<control>` selector must sit inside a rule
30
+ // that re-pins the icon-button bridge vars: the ghost variant declares
31
+ // its ink ON the button element, so an inherited or ancestor-level
32
+ // custom property can never beat it — the re-pin must share that seat.
33
+ it("re-pins the icon-button bridge on every tinted-band control", () => {
34
+ const blocks =
35
+ css.match(/\.hk-toast-[a-z]+ \.hk-toast-(?:copy-btn|close)[^{}]*\{[^{}]*\}/g) ?? [];
36
+ for (const variant of TINTED_VARIANTS) {
37
+ for (const control of CONTROL_CLASSES) {
38
+ const block = blocks.find((b) => b.includes(`.hk-toast-${variant} .${control}`));
39
+ expect(
40
+ block,
41
+ `.hk-toast-${variant} .${control} must carry a bridge re-pin`,
42
+ ).toBeDefined();
43
+ for (const decl of BRIDGE_DECLS) {
44
+ expect(
45
+ block,
46
+ `.hk-toast-${variant} .${control} block must declare ${decl}`,
47
+ ).toContain(decl);
48
+ }
49
+ }
50
+ }
51
+ });
52
+
53
+ it("tinted-band ink rides the on-solid token; warning keeps its dark ink", () => {
54
+ const tintedBlock =
55
+ css.match(/\.hk-toast-error \.hk-toast-copy-btn[^{}]*\{[^{}]*\}/)?.[0] ?? "";
56
+ expect(tintedBlock).toContain("var(--hi-color-text-on-solid, #ffffff)");
57
+ expect(tintedBlock).not.toContain("#1c1c1e");
58
+ // The washes must ride the pinned ink (currentColor), not a literal
59
+ // polarity: the ink is theme-following, so a hardcoded white wash
60
+ // would go invisible on pale-band schemes (the default dark Nord
61
+ // preset ships pale bands with near-black on-solid ink).
62
+ expect(tintedBlock).toContain(
63
+ "color-mix(in srgb, currentColor 14%, transparent)",
64
+ );
65
+ expect(tintedBlock).toContain(
66
+ "color-mix(in srgb, currentColor 20%, transparent)",
67
+ );
68
+
69
+ const warnBlock =
70
+ css.match(/\.hk-toast-warning \.hk-toast-copy-btn[^{}]*\{[^{}]*\}/)?.[0] ?? "";
71
+ expect(warnBlock).toContain("#1c1c1e");
72
+ expect(warnBlock).not.toContain("--hi-color-text-on-solid");
73
+ });
74
+
75
+ it("leaves no tinted-band control riding the page-surface ghost ink", () => {
76
+ // The regression shape: a tinted-band control block consuming the
77
+ // ghost default (page secondary ink) instead of re-pinning the band's
78
+ // own on-solid color.
79
+ for (const variant of TINTED_VARIANTS) {
80
+ const block =
81
+ css
82
+ .match(
83
+ new RegExp(
84
+ `\\.hk-toast-${variant} \\.hk-toast-(?:copy-btn|close)[^{}]*\\{[^{}]*\\}`,
85
+ "g",
86
+ ),
87
+ )
88
+ ?.join("\n") ?? "";
89
+ expect(
90
+ block,
91
+ `${variant} band controls must not ride the page ink`,
92
+ ).not.toContain("--hi-color-text-secondary");
93
+ }
94
+ });
95
+ });
@@ -95,7 +95,8 @@
95
95
 
96
96
  /* Warning toasts use a light, saturated amber background where white text
97
97
  * lands at ~2.6:1 contrast (unreadable). Dark text keeps >= 4.5:1 on the
98
- * amber in BOTH color schemes; the copy/close buttons inherit it. */
98
+ * amber in BOTH color schemes; the copy/close controls re-pin their ink
99
+ * through the bridge vars below. */
99
100
  .hk-toast-warning {
100
101
  background: var(--hi-color-warning, #eed677);
101
102
  color: #1c1c1e;
@@ -121,6 +122,31 @@
121
122
  color: var(--hi-color-text-on-solid, #ffffff);
122
123
  }
123
124
 
125
+ /* The tinted bands' copy/close controls are the standard icon button in
126
+ * its ghost variant, whose ink defaults to the page's secondary text
127
+ * color — near-black on a light surface, unreadable on the saturated
128
+ * band (2026-11-12 user report: black copy/close glyphs on the red CSRF
129
+ * error toast). Ghost declares the ink ON the button element, so no
130
+ * inherited value can beat it; every tinted band re-pins the bridge at
131
+ * the same seat as the amber warning block above. */
132
+ .hk-toast-error .hk-toast-copy-btn,
133
+ .hk-toast-error .hk-toast-close,
134
+ .hk-toast-success .hk-toast-copy-btn,
135
+ .hk-toast-success .hk-toast-close,
136
+ .hk-toast-info .hk-toast-copy-btn,
137
+ .hk-toast-info .hk-toast-close,
138
+ .hk-toast-loading .hk-toast-copy-btn,
139
+ .hk-toast-loading .hk-toast-close {
140
+ --hi-icon-button-icon-color: var(--hi-color-text-on-solid, #ffffff);
141
+ --hi-icon-button-icon-color-active: var(--hi-color-text-on-solid, #ffffff);
142
+ /* Washes ride the pinned ink (currentColor), not literal white: the ink
143
+ * is theme-following, so on a pale-band scheme (the default dark Nord
144
+ * preset) the washes follow it to the dark polarity for free — the same
145
+ * grammar the .hk-toast-action glass pill uses below. */
146
+ --hi-icon-button-bg-hover: color-mix(in srgb, currentColor 14%, transparent);
147
+ --hi-icon-button-bg-active: color-mix(in srgb, currentColor 20%, transparent);
148
+ }
149
+
124
150
  .hk-toast-loading-spinner {
125
151
  /* The spinner rides the toast's SOLID band, so its glyph is on-solid
126
152
  * content: ride the on-solid slot (white by default, theme-following) */
@@ -0,0 +1,412 @@
1
+ /**
2
+ * Contract for the surface live-blur ESCAPE HATCH (2026-11-12 chest field
3
+ * report: "some dynamic UI content disappears and is clipped in place",
4
+ * chronic in an Android System WebView shell, occasional on desktop at the
5
+ * moment a screen capture forces a full-surface re-raster).
6
+ *
7
+ * Mechanism CLASS the hatch targets: `.hk-card` and `.hk-btn-secondary` each
8
+ * carry a `backdrop-filter`, so each one needs its own background render
9
+ * surface. That is pure cost with no visual gain whenever the layer beneath
10
+ * is already an opaque surface (the card fill is 70%-alpha surface over the
11
+ * sheet; the secondary button fill is the opaque surface token itself). The
12
+ * reported artifact is an element's box surviving while its painted contents
13
+ * go missing, which is what a starved surface budget looks like from the DOM
14
+ * — so the hatch lets a HOST drop this pass on the engines where that class
15
+ * shows up.
16
+ *
17
+ * Two invariants are pinned here, both load-bearing:
18
+ *
19
+ * 1. every such surface consumes `--hk-<surface>-blur` with the previous
20
+ * literal as its fallback, so no host loses the current look by
21
+ * upgrading hikari and a host can stand the pass down per ENGINE;
22
+ * 2. the knob is DELIBERATELY NOT hangable off a width axis. The modal
23
+ * family's `-mobile` knobs default to none ≤767px; copying that shape
24
+ * here would re-key the stand-down to the viewport. The artifact follows
25
+ * the compositor: a phone WebView in "request desktop site" mode reports
26
+ * a ~980px layout viewport, a tablet reports a wide one, a desktop
27
+ * WebView2 host reports a desktop one — all three still run the starved
28
+ * engine, so a width gate would leave exactly those hosts exposed.
29
+ *
30
+ * Assertions run on the COMPILED sheet, never on source text: a stand-down
31
+ * can be written as `@include backdrop-filter(none)`, as a literal
32
+ * declaration, or through a variable, and only the compiled output sees all
33
+ * three. The structural checks walk the compiled CSS with a token-aware
34
+ * scanner (comments stripped, string literals skipped, brace depth tracked,
35
+ * at-rule wrapper stack carried per rule), so a `}` inside `content: "}"`, a
36
+ * `//` comment, an `@MEDIA` casing, a `@supports` wrapper, a selector list or
37
+ * a `(width <= 767px)` range query all behave the way a browser would treat
38
+ * them. Every guard carries a control that proves it can fail.
39
+ */
40
+ import { describe, expect, it } from "vitest";
41
+ import { dirname, join } from "node:path";
42
+ import { fileURLToPath } from "node:url";
43
+ import { compile } from "sass";
44
+
45
+ const here = dirname(fileURLToPath(import.meta.url));
46
+ const loadPaths = [here, join(here, "..", "styles")];
47
+
48
+ function compiledSheet(sheet: string): string {
49
+ return compile(join(here, sheet), { loadPaths, style: "expanded" }).css;
50
+ }
51
+
52
+ /**
53
+ * Strip `/* *\/` and `//` comments in ONE string-aware pass. A regex pass
54
+ * cannot do this: `content: "//"` would be read as a line comment and then a
55
+ * later `content: "/*"` as a block comment, silently swallowing the rest of
56
+ * the sheet (a witnessed false-green).
57
+ */
58
+ function stripComments(css: string): string {
59
+ let out = "";
60
+ let i = 0;
61
+ while (i < css.length) {
62
+ const ch = css[i]!;
63
+ if (ch === '"' || ch === "'") {
64
+ const end = skipString(css, i);
65
+ out += css.slice(i, end + 1);
66
+ i = end + 1;
67
+ continue;
68
+ }
69
+ if (ch === "/" && css[i + 1] === "*") {
70
+ const end = css.indexOf("*/", i + 2);
71
+ i = end < 0 ? css.length : end + 2;
72
+ continue;
73
+ }
74
+ if (ch === "/" && css[i + 1] === "/") {
75
+ const end = css.indexOf("\n", i + 2);
76
+ i = end < 0 ? css.length : end;
77
+ continue;
78
+ }
79
+ out += ch;
80
+ i += 1;
81
+ }
82
+ return out;
83
+ }
84
+
85
+ function skipString(src: string, at: number): number {
86
+ const quote = src[at];
87
+ for (let i = at + 1; i < src.length; i++) {
88
+ if (src[i] === "\\") {
89
+ i += 1;
90
+ continue;
91
+ }
92
+ if (src[i] === quote) return i;
93
+ }
94
+ return src.length - 1;
95
+ }
96
+
97
+ interface CssRule {
98
+ selector: string;
99
+ declarations: string;
100
+ /** At-rule preludes wrapping this rule, outermost first. */
101
+ wrappers: string[];
102
+ /** Index of the rule's selector in the scanned source. */
103
+ start: number;
104
+ }
105
+
106
+ /** Walk a flat or nested stylesheet, tracking at-rule wrappers and strings. */
107
+ function scanRules(rawSrc: string): CssRule[] {
108
+ const src = stripComments(rawSrc);
109
+ const out: CssRule[] = [];
110
+
111
+ const blockEnd = (open: number): number => {
112
+ let depth = 0;
113
+ for (let i = open; i < src.length; i++) {
114
+ const ch = src[i]!;
115
+ if (ch === '"' || ch === "'") {
116
+ i = skipString(src, i);
117
+ continue;
118
+ }
119
+ if (ch === "{") depth += 1;
120
+ else if (ch === "}") {
121
+ depth -= 1;
122
+ if (depth === 0) return i;
123
+ }
124
+ }
125
+ return src.length - 1;
126
+ };
127
+
128
+ const walk = (from: number, to: number, wrappers: string[]): void => {
129
+ let i = from;
130
+ let head = "";
131
+ let headStart = from;
132
+ while (i < to) {
133
+ const ch = src[i]!;
134
+ if (ch === '"' || ch === "'") {
135
+ const end = skipString(src, i);
136
+ head += src.slice(i, end + 1);
137
+ i = end + 1;
138
+ continue;
139
+ }
140
+ if (ch === "{") {
141
+ const prelude = head.trim();
142
+ const end = blockEnd(i);
143
+ if (prelude.startsWith("@")) {
144
+ walk(i + 1, end, [...wrappers, prelude]);
145
+ } else {
146
+ out.push({
147
+ selector: prelude,
148
+ declarations: src.slice(i + 1, end),
149
+ wrappers,
150
+ start: headStart,
151
+ });
152
+ }
153
+ head = "";
154
+ i = end + 1;
155
+ headStart = i;
156
+ continue;
157
+ }
158
+ if (ch === ";") {
159
+ head = "";
160
+ i += 1;
161
+ headStart = i;
162
+ continue;
163
+ }
164
+ if (head === "") headStart = i;
165
+ head += ch;
166
+ i += 1;
167
+ }
168
+ };
169
+
170
+ walk(0, src.length, []);
171
+ return out;
172
+ }
173
+
174
+ const TARGETS = [".hk-card", ".hk-btn-secondary"];
175
+ const KNOBS = ["--hk-card-blur", "--hk-btn-secondary-blur"];
176
+
177
+ /** Selector mentions a target as a whole token (list members included). */
178
+ function mentionsTarget(selector: string): string | null {
179
+ for (const selectorPart of selector.split(",")) {
180
+ const trimmed = selectorPart.trim();
181
+ for (const target of TARGETS) {
182
+ const re = new RegExp(`(^|[\\s>+~(])${target.replace(".", "\\.")}(?![\\w-])`);
183
+ if (re.test(trimmed)) return target;
184
+ }
185
+ }
186
+ return null;
187
+ }
188
+
189
+ /** Members of a (possibly multi-line, comma-separated) selector list. */
190
+ function selectorMembers(selector: string): string[] {
191
+ return selector.split(",").map((part) => part.trim());
192
+ }
193
+
194
+ /**
195
+ * Declaration map of the LAST unwrapped rule listing `selector` verbatim — the
196
+ * one the cascade actually applies. Taking the first match would let a
197
+ * duplicate base block below it decide the computed value while this file
198
+ * inspects the harmless one.
199
+ */
200
+ function baseDeclarations(css: string, selector: string): Map<string, string> {
201
+ const rule = scanRules(css)
202
+ .filter((r) => r.wrappers.length === 0 && selectorMembers(r.selector).includes(selector))
203
+ .pop();
204
+ expect(rule, `${selector} missing from the compiled sheet`).toBeDefined();
205
+ const map = new Map<string, string>();
206
+ for (const decl of rule!.declarations.split(";")) {
207
+ const at = decl.indexOf(":");
208
+ if (at < 0) continue;
209
+ map.set(decl.slice(0, at).trim(), decl.slice(at + 1).trim());
210
+ }
211
+ return map;
212
+ }
213
+
214
+ /** A wrapper that re-keys the stand-down to anything other than the ENGINE.
215
+ * Structure, not substrings: a prelude is allowed only when EVERY comma-
216
+ * separated query is (a) a bare `print` / `speech` media type (optionally
217
+ * `only`-prefixed) or (b) a parenthesized list whose every feature is
218
+ * `prefers-*` joined by `and`. Everything else — media types like `screen`
219
+ * (de-facto unconditional), `not print`, a size/ratio/hover feature, a size
220
+ * feature ANDed with `prefers-*`, any @container prelude (container queries
221
+ * have no a11y features) — matches hosts by environment instead of by
222
+ * engine. Each of those shapes was a witnessed substring-whitelist bypass
223
+ * (`print, screen` / `not print` / `(max-width) and (prefers-*)` /
224
+ * `@container print (min-width)`).*/
225
+ function isConditionalWrapper(prelude: string): boolean {
226
+ if (!/^@(media|container)\b/i.test(prelude)) return false;
227
+ if (/^@container\b/i.test(prelude)) return true;
228
+ for (const query of prelude.replace(/^@media\b/i, "").split(",")) {
229
+ const q = query.trim();
230
+ if (!q) continue;
231
+ const features = q.match(/\([^)]*\)/g) ?? [];
232
+ const residue = q.replace(/\([^)]*\)/g, "").trim();
233
+ const bareType = features.length === 0 && /^(only\s+)?(print|speech)\b/i.test(q);
234
+ const purePrefers =
235
+ features.length > 0 &&
236
+ features.every((f) => /prefers-/i.test(f)) &&
237
+ (/^(and\s*)+$/i.test(residue) || residue === "");
238
+ if (bareType || purePrefers) continue;
239
+ return true;
240
+ }
241
+ return false;
242
+ }
243
+
244
+ const KNOB_RE = new RegExp(`(^|[\\s:;(])(${KNOBS.join("|")})\\s*:`, "m");
245
+
246
+ /** Every rule (anywhere, any wrapper) that declares one of the knobs. */
247
+ function knobPins(css: string): string[] {
248
+ const hits: string[] = [];
249
+ for (const rule of scanRules(css)) {
250
+ for (const knob of KNOBS) {
251
+ if (new RegExp(`(^|[\\s;])${knob}\\s*:`).test(rule.declarations)) {
252
+ hits.push(`${rule.selector} pins ${knob}`);
253
+ }
254
+ }
255
+ }
256
+ return hits;
257
+ }
258
+
259
+ /**
260
+ * Size-conditional stand-downs. A wrapped rule is a violation if it is inside
261
+ * a SIZE wrapper and either names a target selector or sets a blur knob.
262
+ * The second arm matters: the knob inherits, so
263
+ * `@media (max-width: 767px) { :root { --hk-card-blur: none } }` re-keys the
264
+ * stand-down for every card just as effectively as targeting one — and it is
265
+ * the idiom the shipped consumer uses (`html[data-render] { --hk-card-blur }`).
266
+ */
267
+ function conditionalStandDowns(css: string): string[] {
268
+ const hits: string[] = [];
269
+ for (const rule of scanRules(css)) {
270
+ const condWrappers = rule.wrappers.filter(isConditionalWrapper);
271
+ if (condWrappers.length === 0) continue;
272
+ const target = mentionsTarget(rule.selector);
273
+ const touchesFilter = /backdrop-filter/i.test(rule.declarations);
274
+ const touchesKnob = KNOB_RE.test(rule.declarations);
275
+ if (!target && !touchesKnob) continue;
276
+ if (!touchesFilter && !touchesKnob) continue;
277
+ hits.push(`${target ?? "knob"} inside ${condWrappers[condWrappers.length - 1]}`);
278
+ }
279
+ return hits;
280
+ }
281
+
282
+ describe("surface live-blur escape hatch", () => {
283
+ it("leaves the knobs unpinned everywhere (upgrading hikari changes nothing)", () => {
284
+ // Not just the base rule: an unconditional `:root { --hk-card-blur: none }`
285
+ // would change every host on upgrade just as silently, so no rule in
286
+ // either sheet may declare these tokens.
287
+ for (const sheet of ["HkCard.scss", "HkButton.scss"]) {
288
+ expect(knobPins(compiledSheet(sheet)), sheet).toEqual([]);
289
+ }
290
+ });
291
+
292
+ it("knob-pin detector: control proving it can fail (any spelling, any scope)", () => {
293
+ for (const shape of [
294
+ ":root { --hk-card-blur: none; }", // unconditional ancestor pin
295
+ ".hk-card { --hk-card-blur: none; }", // base-rule pin
296
+ "@media (max-width: 767px) { :root { --hk-card-blur: none; } }", // scoped ancestor pin
297
+ ]) {
298
+ expect(knobPins(shape), shape).toHaveLength(1);
299
+ }
300
+ });
301
+
302
+ it("reads the LAST matching base rule, so a duplicate cannot hide", () => {
303
+ const css = [
304
+ ".hk-card { backdrop-filter: var(--hk-card-blur, blur(var(--blur-md))); }",
305
+ ".hk-card { backdrop-filter: blur(4px); }",
306
+ ].join("\n");
307
+ expect(baseDeclarations(css, ".hk-card").get("backdrop-filter")).toBe("blur(4px)");
308
+ });
309
+
310
+ it("routes the card blur through --hk-card-blur, keeping the old literal as the fallback", () => {
311
+ const decls = baseDeclarations(compiledSheet("HkCard.scss"), ".hk-card");
312
+ expect(decls.get("backdrop-filter")).toBe(
313
+ "var(--hk-card-blur, blur(var(--blur-md)))",
314
+ );
315
+ // Separate property, so the assertion cannot be satisfied by the
316
+ // prefixed twin alone (dropping the unprefixed line must stay red).
317
+ expect(decls.get("-webkit-backdrop-filter")).toBe(
318
+ "var(--hk-card-blur, blur(var(--blur-md)))",
319
+ );
320
+ });
321
+
322
+ it("routes the secondary button blur through --hk-btn-secondary-blur", () => {
323
+ const decls = baseDeclarations(compiledSheet("HkButton.scss"), ".hk-btn-secondary");
324
+ expect(decls.get("backdrop-filter")).toBe(
325
+ "var(--hk-btn-secondary-blur, blur(var(--blur-sm)))",
326
+ );
327
+ expect(decls.get("-webkit-backdrop-filter")).toBe(
328
+ "var(--hk-btn-secondary-blur, blur(var(--blur-sm)))",
329
+ );
330
+ });
331
+
332
+ it("flags every shape of conditional stand-down (positive controls)", () => {
333
+ const shapes = [
334
+ // declaration form, plain max-width
335
+ "@media (max-width: 767px) { .hk-card { backdrop-filter: none; } }",
336
+ // knob form (the shipped knob, re-keyed to the viewport)
337
+ "@media (max-width: 767px) { .hk-card { --hk-card-blur: none; } }",
338
+ // the same knob on an ANCESTOR — it inherits into every target
339
+ "@media (max-width: 767px) { :root { --hk-card-blur: none; } }",
340
+ // logical-size container axis and the WebKit resolution alias
341
+ "@container (min-inline-size: 40em) { .hk-card { backdrop-filter: none; } }",
342
+ "@media (-webkit-max-device-pixel-ratio: 2) { .hk-card { backdrop-filter: none; } }",
343
+ // media TYPE / hover / monochrome re-key by environment, not engine
344
+ "@media screen { .hk-card { backdrop-filter: none; } }",
345
+ "@media (hover: none) { .hk-card { backdrop-filter: none; } }",
346
+ "@media (min-monochrome: 0) { .hk-card { backdrop-filter: none; } }",
347
+ // substring-whitelist bypasses: comma-OR, negation, size-AND-prefers,
348
+ // a container NAME that happens to read like a media type
349
+ "@media print, screen { .hk-card { backdrop-filter: none; } }",
350
+ "@media not print { .hk-card { backdrop-filter: none; } }",
351
+ "@media (max-width: 767px) and (prefers-reduced-transparency: no-preference) { .hk-card { backdrop-filter: none; } }",
352
+ "@container print (min-width: 400px) { .hk-card { backdrop-filter: none; } }",
353
+ // a `//` bait ahead of the gate must not white-wash it either
354
+ '.x::after { content: "//"; } @media (max-width: 767px) { .hk-card { backdrop-filter: none; } }',
355
+ // selector list
356
+ "@media (max-width: 767px) { .hk-card, .x { backdrop-filter: none; } }",
357
+ // range syntax
358
+ "@media (width <= 767px) { .hk-card { backdrop-filter: none; } }",
359
+ // min-width is just as wrong
360
+ "@media (min-width: 768px) { .hk-btn-secondary { backdrop-filter: none; } }",
361
+ // a container query re-keys by size just like a viewport query
362
+ "@container (max-width: 767px) { .hk-card { backdrop-filter: none; } }",
363
+ // aspect-ratio / resolution gates are viewport axes too
364
+ "@media (max-aspect-ratio: 1/1) { .hk-card { backdrop-filter: none; } }",
365
+ "@media (min-resolution: 2dppx) { .hk-card { backdrop-filter: none; } }",
366
+ // at-rule casing is not significant in CSS
367
+ "@MEDIA (max-width: 767px) { .hk-card { backdrop-filter: none; } }",
368
+ // a brace inside a string literal must not end the block early
369
+ '@media (max-width: 767px) { .x::after { content: "}"; } .hk-card { backdrop-filter: none; } }',
370
+ ];
371
+ for (const shape of shapes) {
372
+ expect(conditionalStandDowns(shape), shape).toHaveLength(1);
373
+ }
374
+ });
375
+
376
+ it("does not treat capability or accessibility gates as a width axis", () => {
377
+ // `@supports`, `@layer`, `@media print` and `prefers-*` gates are not size
378
+ // axes; a stand-down there is a deliberate capability decision, not the
379
+ // viewport re-keying this guard forbids.
380
+ for (const shape of [
381
+ "@supports (backdrop-filter: blur(1px)) { .hk-card { backdrop-filter: none; } }",
382
+ "@layer hk { .hk-card { backdrop-filter: none; } }",
383
+ "@media print { .hk-card { backdrop-filter: none; } }",
384
+ "@media speech { .hk-card { backdrop-filter: none; } }",
385
+ "@media (prefers-reduced-transparency: reduce) { .hk-card { backdrop-filter: none; } }",
386
+ "@media (prefers-reduced-contrast: more) and (prefers-reduced-transparency: reduce) { .hk-card { backdrop-filter: none; } }",
387
+ ]) {
388
+ expect(conditionalStandDowns(shape), shape).toEqual([]);
389
+ }
390
+ });
391
+
392
+ it("keeps both surfaces engine-gated: no conditional stand-down exists today", () => {
393
+ for (const sheet of ["HkCard.scss", "HkButton.scss"]) {
394
+ expect(conditionalStandDowns(compiledSheet(sheet)), `${sheet}`).toEqual([]);
395
+ }
396
+ });
397
+
398
+ it("scans real content: both base rules exist and the button sheet has wrappers", () => {
399
+ // Non-vacuity for the guard above: the card sheet has no at-rules at all,
400
+ // so prove the scanner reads a sheet that DOES have them, and prove the
401
+ // base rules it looks for are really there.
402
+ const cardCss = compiledSheet("HkCard.scss");
403
+ const buttonCss = compiledSheet("HkButton.scss");
404
+ const members = (css: string, sel: string) =>
405
+ scanRules(css).filter((r) => selectorMembers(r.selector).includes(sel));
406
+ expect(members(cardCss, ".hk-card").length).toBeGreaterThanOrEqual(1);
407
+ expect(members(buttonCss, ".hk-btn-secondary").length).toBeGreaterThanOrEqual(1);
408
+ expect(
409
+ scanRules(buttonCss).filter((r) => r.wrappers.length > 0).length,
410
+ ).toBeGreaterThan(0);
411
+ });
412
+ });
@@ -11,4 +11,4 @@
11
11
  // HkErrorLanding, so it ships the component's real stylesheet instead of a
12
12
  // hand-copied palette. bootLandingCss.test.ts recompiles the entry and fails
13
13
  // on drift.
14
- export const BOOT_LANDING_CSS = ":root{--c-primary-faint: rgb(var(--color-primary, 122 162 247) / 5%);--c-primary-subtle: rgb(var(--color-primary, 122 162 247) / 8%);--c-primary-dim: rgb(var(--color-primary, 122 162 247) / 10%);--c-primary-light: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-overlay: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);--c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);--c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);--c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);--c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);--c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);--shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);--shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);--shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);--shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);--shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);--shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);--border-input: rgb(var(--color-border, 100 100 100) / 15%);--border-faint: rgb(var(--color-border, 100 100 100) / 10%);--border-subtle: rgb(var(--color-border, 100 100 100) / 12%);--hi-icon-color: rgb(var(--color-text, 30 30 30));--hi-icon-size-xs: 0.75rem;--hi-icon-size-sm: 1rem;--hi-icon-size-md: 1.25rem;--hi-icon-size-lg: 1.5rem;--hi-duration-instant: var(--duration-instant, 0.1s);--hi-border-color-focus: rgb(var(--color-primary, 122 162 247));--hi-glow-color: transparent;--hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);--hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);--hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);--hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);--hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255))}:root{--color-primary: 122 162 247;--color-on-primary: 255 255 255;--color-on-solid: 255 255 255;--color-on-solid-text: 255 255 255;--color-on-solid-icon: 255 255 255;--color-secondary: 81 154 115;--color-accent: 247 181 0;--color-text: 30 30 30;--color-text-secondary: 102 102 102;--color-text-tertiary: 140 140 140;--color-muted: 108 108 108;--color-border: 100 100 100;--color-focused-border: 122 162 247;--color-background: 255 255 255;--color-surface: 255 255 255;--color-selected-bg: 191 218 242;--color-selected-text: 30 30 30;--color-status-bar-bg: 240 244 248;--color-success: 14 184 64;--color-error: 247 118 142;--color-warning: 238 214 119;--color-info: 106 190 214;--hi-color-primary: rgb(var(--color-primary));--hi-color-secondary: rgb(var(--color-secondary));--hi-color-surface: rgb(var(--color-surface));--hi-color-background: rgb(var(--color-background));--hi-color-border: rgb(var(--color-border) / 15%);--hi-color-text-primary: rgb(var(--color-text));--hi-color-text-secondary: rgb(var(--color-text-secondary));--hi-color-muted: rgb(var(--color-muted));--hi-color-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-solid: rgb(var(--color-on-solid-text, 255 255 255));--hi-color-icon-on-solid: rgb(var(--color-on-solid-icon, 255 255 255));--hi-color-success: rgb(var(--color-success));--hi-color-error: rgb(var(--color-error));--hi-color-warning: rgb(var(--color-warning));--hi-color-info: rgb(var(--color-info));--hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);--hi-color-bg-elevated: rgb(var(--color-surface));--hi-color-bg-canvas: rgb(var(--color-background));--hi-secondary-bg: rgb(var(--color-surface) / 0.5);--hi-color-accent: rgb(var(--color-accent));--hi-primary: var(--hi-color-primary);--hi-surface: var(--hi-color-surface);--hi-card-bg: var(--hi-color-surface)}:root{--space-1: 0.0625rem;--space-2: 0.125rem;--space-4: 0.25rem;--space-6: 0.375rem;--space-8: 0.5rem;--space-10: 0.625rem;--space-12: 0.75rem;--space-14: 0.875rem;--space-16: 1rem;--space-20: 1.25rem;--space-24: 1.5rem;--space-28: 1.75rem;--space-32: 2rem;--space-40: 2.5rem;--text-3xs: 0.5rem;--text-2xs: 0.625rem;--text-xs: 0.75rem;--text-sm: 0.8125rem;--text-base: 0.875rem;--text-md: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--radius-xs: 2px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-full: 9999px;--blur-xs: 4px;--blur-sm: 8px;--blur-md: 16px;--blur-lg: 24px;--blur-xl: 24px;--opacity-half: 0.92;--duration-instant: 0.1s;--duration-short: 0.15s;--duration-fast: 0.15s;--duration-normal: 0.3s;--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);--ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);--ease-in: cubic-bezier(0.4, 0, 1, 1);--ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);--hi-duration-fast: 0.15s;--hi-ease-default: cubic-bezier(0.4, 0, 0.2, 1);--hk-z-base: 0;--hk-z-above: 1;--hk-z-scrollbar: 10;--hk-z-fab: 40;--hk-z-toolbar: 50;--hk-z-header: 100;--hk-z-sidebar: 900;--hk-z-drag: 950;--hk-z-breadcrumb: 2500;--hk-z-float: 3000;--hk-z-toast: 4000;--hk-z-veil: 4100;--hk-z-modal: 5000;--hk-z-tooltip: 6000;--hk-z-overlay-root: 90000;--hk-z-hud: 90050;--hk-z-error: 95000;--hk-z-titlebar: 100001;--viewport-gutter: 16px;--font-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif;--font-reading: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif;--font-mono: ui-monospace, \"SF Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", \"Liberation Mono\", \"PingFang SC\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", monospace}@media(max-width: 767px){:root{--viewport-gutter: 8px}}.hk-error-landing{--hel-background: var(--color-background, 246 247 249);--hel-surface: var(--color-surface, 255 255 255);--hel-text: var(--color-text, 30 32 36);--hel-muted: var(--color-muted, 118 122 128);--hel-border: var(--color-border, 222 224 228);--hel-primary: var(--color-primary, 58 118 236);--hel-error: var(--color-error, 226 84 84);--hel-warning: var(--color-warning, 222 168 62);width:100%;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:var(--space-20, 1.25rem);background:rgb(var(--hel-background));color:rgb(var(--hel-text));font-family:var(--font-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif)}.hk-error-landing__card{position:relative;overflow:hidden;width:min(440px,100%);background:rgb(var(--hel-surface));border:1px solid rgb(var(--hel-border)/70%);border-radius:var(--radius-xl, 16px);box-shadow:var(--shadow-lg, 0 18px 48px rgba(0, 0, 0, 0.08));padding:2.25rem var(--space-28, 1.75rem) var(--space-28, 1.75rem);text-align:center}.hk-error-landing__card::before{content:\"\";position:absolute;inset:0 0 auto;height:150px;background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-error)/8%), transparent 72%);pointer-events:none}.hk-error-landing.is-warning .hk-error-landing__card::before{background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-warning)/10%), transparent 72%)}.hk-error-landing.is-info .hk-error-landing__card::before{background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-primary)/7%), transparent 72%)}.hk-error-landing__brand{position:relative;display:flex;justify-content:center;margin-bottom:var(--space-16, 1rem)}.hk-error-landing__brand:empty{display:none}.hk-error-landing__icon{position:relative;width:64px;height:64px;margin:0 auto var(--space-14, 0.875rem);display:flex;align-items:center;justify-content:center;border-radius:50%}.hk-error-landing__icon,.hk-error-landing__icon svg{color:rgb(var(--hel-error))}.hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-error)/18%), rgb(var(--hel-error)/6%));border:1px solid rgb(var(--hel-error)/26%);box-shadow:0 0 0 8px rgb(var(--hel-error)/5%),0 10px 28px -12px rgb(var(--hel-error)/45%)}.hk-error-landing.is-warning .hk-error-landing__icon,.hk-error-landing.is-warning .hk-error-landing__icon svg{color:rgb(var(--hel-warning))}.hk-error-landing.is-warning .hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-warning)/20%), rgb(var(--hel-warning)/7%));border-color:rgb(var(--hel-warning)/28%);box-shadow:0 0 0 8px rgb(var(--hel-warning)/6%),0 10px 28px -12px rgb(var(--hel-warning)/45%)}.hk-error-landing.is-info .hk-error-landing__icon,.hk-error-landing.is-info .hk-error-landing__icon svg{color:rgb(var(--hel-primary))}.hk-error-landing.is-info .hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-primary)/16%), rgb(var(--hel-primary)/5%));border-color:rgb(var(--hel-primary)/24%);box-shadow:0 0 0 8px rgb(var(--hel-primary)/5%),0 10px 28px -12px rgb(var(--hel-primary)/40%)}.hk-error-landing__meta{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-6, 0.375rem);margin-bottom:var(--space-8, 0.5rem)}.hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-error));--hk-badge-bg: rgb(var(--hel-error) / 10%);--hk-badge-border: rgb(var(--hel-error) / 22%)}.hk-error-landing.is-warning .hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-warning));--hk-badge-bg: rgb(var(--hel-warning) / 12%);--hk-badge-border: rgb(var(--hel-warning) / 24%)}.hk-error-landing.is-info .hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-primary));--hk-badge-bg: rgb(var(--hel-primary) / 10%);--hk-badge-border: rgb(var(--hel-primary) / 20%)}.hk-error-landing__meta .hk-badge-muted{--hk-badge-text: rgb(var(--hel-muted));--hk-badge-bg: rgb(var(--hel-muted) / 8%);--hk-badge-border: rgb(var(--hel-border) / 80%)}.hk-error-landing__title{position:relative;margin:0;font-size:var(--text-xl, 1.25rem);font-weight:650;letter-spacing:-0.01em;line-height:1.35;color:rgb(var(--hel-text));white-space:pre-line;overflow-wrap:anywhere}.hk-error-landing__desc{position:relative;margin:var(--space-8, 0.5rem) 0 0;font-size:var(--text-sm, 0.8125rem);line-height:1.6;color:rgb(var(--hel-muted));white-space:pre-line;overflow-wrap:anywhere}.hk-error-landing__details{position:relative;margin-top:var(--space-16, 1rem);text-align:start}.hk-error-landing__details-label{display:flex;align-items:center;gap:var(--space-4, 4px);padding:0 var(--space-2, 2px);font-size:var(--text-xs, 0.75rem);font-weight:500;letter-spacing:.02em;color:rgb(var(--hel-muted));-webkit-user-select:none;user-select:none}.hk-error-landing__details-pane{position:relative;margin-top:var(--space-6, 0.375rem);height:max(9rem,20vh);height:max(9rem,20dvh);border:1px solid rgb(var(--hel-border)/70%);border-radius:var(--radius-md, 8px);background:rgb(var(--hel-muted)/4%)}.hk-error-landing__details-body{height:100%;overflow:auto;border-radius:inherit;padding:var(--space-4, 0.25rem);scrollbar-width:none}.hk-error-landing__details-body::-webkit-scrollbar{display:none}.hk-error-landing .hk-error-landing__details-body .s-tool-json-tree{max-height:none;height:auto;overflow:visible;margin:0;padding:0;border:none;border-radius:0;background:rgba(0,0,0,0)}.hk-error-landing__actions{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-8, 0.5rem);margin-top:var(--space-16, 1rem)}.hk-error-landing.is-inline{min-height:100%;padding:0 var(--space-12, 0.75rem);align-items:flex-start;background:rgba(0,0,0,0)}.hk-error-landing.is-inline.is-fill{flex:1 1 auto;min-height:0}.hk-error-landing.is-inline .hk-error-landing__card{margin:auto;padding:var(--space-16, 1rem) var(--space-28, 1.75rem) var(--space-24, 1.5rem);display:flex;flex-direction:column;max-height:100%;min-height:min-content}.hk-error-landing.is-inline .hk-error-landing__details{display:flex;flex-direction:column;min-height:0}.hk-error-landing.is-inline .hk-error-landing__details-pane{height:auto;flex-grow:0;flex-shrink:1;flex-basis:max(9rem,20vh);flex-basis:max(9rem,20dvh);min-height:6rem}@media(max-width: 480px){.hk-error-landing__card{padding:var(--space-28, 1.75rem) 1.125rem var(--space-24, 1.5rem)}}:root{--c-primary-faint: rgb(var(--color-primary, 122 162 247) / 5%);--c-primary-subtle: rgb(var(--color-primary, 122 162 247) / 8%);--c-primary-dim: rgb(var(--color-primary, 122 162 247) / 10%);--c-primary-light: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-overlay: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);--c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);--c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);--c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);--c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);--c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);--shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);--shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);--shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);--shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);--shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);--shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);--border-input: rgb(var(--color-border, 100 100 100) / 15%);--border-faint: rgb(var(--color-border, 100 100 100) / 10%);--border-subtle: rgb(var(--color-border, 100 100 100) / 12%);--hi-icon-color: rgb(var(--color-text, 30 30 30));--hi-icon-size-xs: 0.75rem;--hi-icon-size-sm: 1rem;--hi-icon-size-md: 1.25rem;--hi-icon-size-lg: 1.5rem;--hi-duration-instant: var(--duration-instant, 0.1s);--hi-border-color-focus: rgb(var(--color-primary, 122 162 247));--hi-glow-color: transparent;--hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);--hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);--hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);--hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);--hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255))}:root{--color-primary: 122 162 247;--color-on-primary: 255 255 255;--color-on-solid: 255 255 255;--color-on-solid-text: 255 255 255;--color-on-solid-icon: 255 255 255;--color-secondary: 81 154 115;--color-accent: 247 181 0;--color-text: 30 30 30;--color-text-secondary: 102 102 102;--color-text-tertiary: 140 140 140;--color-muted: 108 108 108;--color-border: 100 100 100;--color-focused-border: 122 162 247;--color-background: 255 255 255;--color-surface: 255 255 255;--color-selected-bg: 191 218 242;--color-selected-text: 30 30 30;--color-status-bar-bg: 240 244 248;--color-success: 14 184 64;--color-error: 247 118 142;--color-warning: 238 214 119;--color-info: 106 190 214;--hi-color-primary: rgb(var(--color-primary));--hi-color-secondary: rgb(var(--color-secondary));--hi-color-surface: rgb(var(--color-surface));--hi-color-background: rgb(var(--color-background));--hi-color-border: rgb(var(--color-border) / 15%);--hi-color-text-primary: rgb(var(--color-text));--hi-color-text-secondary: rgb(var(--color-text-secondary));--hi-color-muted: rgb(var(--color-muted));--hi-color-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-solid: rgb(var(--color-on-solid-text, 255 255 255));--hi-color-icon-on-solid: rgb(var(--color-on-solid-icon, 255 255 255));--hi-color-success: rgb(var(--color-success));--hi-color-error: rgb(var(--color-error));--hi-color-warning: rgb(var(--color-warning));--hi-color-info: rgb(var(--color-info));--hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);--hi-color-bg-elevated: rgb(var(--color-surface));--hi-color-bg-canvas: rgb(var(--color-background));--hi-secondary-bg: rgb(var(--color-surface) / 0.5);--hi-color-accent: rgb(var(--color-accent));--hi-primary: var(--hi-color-primary);--hi-surface: var(--hi-color-surface);--hi-card-bg: var(--hi-color-surface)}.hk-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-6);font-family:inherit;font-weight:600;line-height:1;border:1px solid rgba(0,0,0,0);border-radius:var(--radius-md, 8px);cursor:pointer;transition-property:background-color,border-color,color,box-shadow,opacity,transform,filter;transition-duration:var(--duration-normal);transition-timing-function:var(--ease-standard);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;position:relative}.hk-btn:focus-visible{box-shadow:0 0 0 2px rgb(var(--color-surface)),0 0 0 4px rgb(var(--color-primary))}.hk-btn:disabled{opacity:.5;cursor:not-allowed}.hk-btn-xs{padding:var(--space-4) var(--space-8);font-size:var(--text-xs);min-height:1.375rem}.hk-btn-sm{padding:var(--space-6) var(--space-12);font-size:var(--text-xs);min-height:1.75rem}.hk-btn-md{padding:var(--space-8) var(--space-16);font-size:var(--text-base);min-height:2.5rem}.hk-btn-lg{padding:var(--space-10) var(--space-24);font-size:var(--text-base);min-height:2.75rem}.hk-btn-xs .hk-btn-icon,.hk-btn-xs .hk-btn-suffix{inline-size:.8125rem;block-size:.8125rem}.hk-btn-xs .hk-btn-icon .hk-icon,.hk-btn-xs .hk-btn-suffix .hk-icon{inline-size:100%;block-size:100%}.hk-btn-icon,.hk-btn-suffix{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:1rem;block-size:1rem;line-height:0}.hk-btn-icon svg,.hk-btn-suffix svg{display:block}.hk-btn>svg{flex:none}.hk-btn-icon-only{padding:0;box-sizing:border-box}.hk-btn-xs.hk-btn-icon-only{width:1.375rem}.hk-btn-sm.hk-btn-icon-only{width:1.75rem}.hk-btn-md.hk-btn-icon-only{width:2.5rem}.hk-btn-lg.hk-btn-icon-only{width:2.75rem}.hk-btn-block.hk-btn-icon-only{width:100%}.hk-btn-label{display:inline-flex;align-items:center;min-width:0}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}.hk-btn-primary{background:rgb(var(--color-primary));color:rgb(var(--color-on-solid))}.hk-btn-primary svg{color:rgb(var(--color-on-solid-icon, 255 255 255))}.hk-btn-primary:hover:not(:disabled):not(:focus-visible){filter:brightness(1.1);box-shadow:var(--shadow-button)}.hk-btn-primary:active:not(:disabled){filter:brightness(0.95)}.hk-btn-secondary{background:rgb(var(--color-surface));color:rgb(var(--color-text));border-color:rgb(var(--color-border)/20%);-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.hk-btn-secondary:hover:not(:disabled){border-color:var(--c-primary-strong)}.hk-btn-secondary:active:not(:disabled){filter:brightness(0.95)}.hk-btn-outline{background:rgba(0,0,0,0);color:rgb(var(--color-primary));border-color:var(--c-primary-intense)}.hk-btn-outline:hover:not(:disabled){background:var(--c-primary-light);border-color:rgb(var(--color-primary))}.hk-btn-outline:active:not(:disabled){filter:brightness(0.95)}.hk-btn-ghost{background:rgba(0,0,0,0);color:rgb(var(--color-text));border-color:rgba(0,0,0,0)}.hk-btn-ghost:hover:not(:disabled){background:var(--c-primary-light)}.hk-btn-ghost:active:not(:disabled){filter:brightness(0.95)}.hk-btn-danger{background:rgb(var(--color-error));color:rgb(var(--color-on-solid))}.hk-btn-danger:hover:not(:disabled):not(:focus-visible){filter:brightness(1.1);box-shadow:var(--shadow-button-danger)}.hk-btn-danger:active:not(:disabled){filter:brightness(0.95)}.hk-btn-block{width:100%}.hk-btn-loading{pointer-events:none}@media(prefers-color-scheme: dark){:root{--color-primary: 136 192 208;--color-on-solid: 46 52 64;--color-on-solid-text: 46 52 64;--color-on-solid-icon: 46 52 64;--color-text: 247 249 252;--color-muted: 180 180 180;--color-border: 128 128 128;--color-background: 22 27 38;--color-surface: 34 40 54;--color-error: 191 97 106}}";
14
+ export const BOOT_LANDING_CSS = ":root{--c-primary-faint: rgb(var(--color-primary, 122 162 247) / 5%);--c-primary-subtle: rgb(var(--color-primary, 122 162 247) / 8%);--c-primary-dim: rgb(var(--color-primary, 122 162 247) / 10%);--c-primary-light: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-overlay: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);--c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);--c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);--c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);--c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);--c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);--shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);--shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);--shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);--shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);--shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);--shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);--border-input: rgb(var(--color-border, 100 100 100) / 15%);--border-faint: rgb(var(--color-border, 100 100 100) / 10%);--border-subtle: rgb(var(--color-border, 100 100 100) / 12%);--hi-icon-color: rgb(var(--color-text, 30 30 30));--hi-icon-size-xs: 0.75rem;--hi-icon-size-sm: 1rem;--hi-icon-size-md: 1.25rem;--hi-icon-size-lg: 1.5rem;--hi-duration-instant: var(--duration-instant, 0.1s);--hi-border-color-focus: rgb(var(--color-primary, 122 162 247));--hi-glow-color: transparent;--hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);--hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);--hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);--hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);--hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255))}:root{--color-primary: 122 162 247;--color-on-primary: 255 255 255;--color-on-solid: 255 255 255;--color-on-solid-text: 255 255 255;--color-on-solid-icon: 255 255 255;--color-secondary: 81 154 115;--color-accent: 247 181 0;--color-text: 30 30 30;--color-text-secondary: 102 102 102;--color-text-tertiary: 140 140 140;--color-muted: 108 108 108;--color-border: 100 100 100;--color-focused-border: 122 162 247;--color-background: 255 255 255;--color-surface: 255 255 255;--color-selected-bg: 191 218 242;--color-selected-text: 30 30 30;--color-status-bar-bg: 240 244 248;--color-success: 14 184 64;--color-error: 247 118 142;--color-warning: 238 214 119;--color-info: 106 190 214;--hi-color-primary: rgb(var(--color-primary));--hi-color-secondary: rgb(var(--color-secondary));--hi-color-surface: rgb(var(--color-surface));--hi-color-background: rgb(var(--color-background));--hi-color-border: rgb(var(--color-border) / 15%);--hi-color-text-primary: rgb(var(--color-text));--hi-color-text-secondary: rgb(var(--color-text-secondary));--hi-color-muted: rgb(var(--color-muted));--hi-color-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-solid: rgb(var(--color-on-solid-text, 255 255 255));--hi-color-icon-on-solid: rgb(var(--color-on-solid-icon, 255 255 255));--hi-color-success: rgb(var(--color-success));--hi-color-error: rgb(var(--color-error));--hi-color-warning: rgb(var(--color-warning));--hi-color-info: rgb(var(--color-info));--hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);--hi-color-bg-elevated: rgb(var(--color-surface));--hi-color-bg-canvas: rgb(var(--color-background));--hi-secondary-bg: rgb(var(--color-surface) / 0.5);--hi-color-accent: rgb(var(--color-accent));--hi-primary: var(--hi-color-primary);--hi-surface: var(--hi-color-surface);--hi-card-bg: var(--hi-color-surface)}:root{--space-1: 0.0625rem;--space-2: 0.125rem;--space-4: 0.25rem;--space-6: 0.375rem;--space-8: 0.5rem;--space-10: 0.625rem;--space-12: 0.75rem;--space-14: 0.875rem;--space-16: 1rem;--space-20: 1.25rem;--space-24: 1.5rem;--space-28: 1.75rem;--space-32: 2rem;--space-40: 2.5rem;--text-3xs: 0.5rem;--text-2xs: 0.625rem;--text-xs: 0.75rem;--text-sm: 0.8125rem;--text-base: 0.875rem;--text-md: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--radius-xs: 2px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-full: 9999px;--blur-xs: 4px;--blur-sm: 8px;--blur-md: 16px;--blur-lg: 24px;--blur-xl: 24px;--opacity-half: 0.92;--duration-instant: 0.1s;--duration-short: 0.15s;--duration-fast: 0.15s;--duration-normal: 0.3s;--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);--ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);--ease-in: cubic-bezier(0.4, 0, 1, 1);--ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);--hi-duration-fast: 0.15s;--hi-ease-default: cubic-bezier(0.4, 0, 0.2, 1);--hk-z-base: 0;--hk-z-above: 1;--hk-z-scrollbar: 10;--hk-z-fab: 40;--hk-z-toolbar: 50;--hk-z-header: 100;--hk-z-sidebar: 900;--hk-z-drag: 950;--hk-z-breadcrumb: 2500;--hk-z-float: 3000;--hk-z-toast: 4000;--hk-z-veil: 4100;--hk-z-modal: 5000;--hk-z-tooltip: 6000;--hk-z-overlay-root: 90000;--hk-z-hud: 90050;--hk-z-error: 95000;--hk-z-titlebar: 100001;--viewport-gutter: 16px;--font-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif;--font-reading: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif;--font-mono: ui-monospace, \"SF Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", \"Liberation Mono\", \"PingFang SC\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", monospace}@media(max-width: 767px){:root{--viewport-gutter: 8px}}.hk-error-landing{--hel-background: var(--color-background, 246 247 249);--hel-surface: var(--color-surface, 255 255 255);--hel-text: var(--color-text, 30 32 36);--hel-muted: var(--color-muted, 118 122 128);--hel-border: var(--color-border, 222 224 228);--hel-primary: var(--color-primary, 58 118 236);--hel-error: var(--color-error, 226 84 84);--hel-warning: var(--color-warning, 222 168 62);width:100%;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:var(--space-20, 1.25rem);background:rgb(var(--hel-background));color:rgb(var(--hel-text));font-family:var(--font-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif)}.hk-error-landing__card{position:relative;overflow:hidden;width:min(440px,100%);background:rgb(var(--hel-surface));border:1px solid rgb(var(--hel-border)/70%);border-radius:var(--radius-xl, 16px);box-shadow:var(--shadow-lg, 0 18px 48px rgba(0, 0, 0, 0.08));padding:2.25rem var(--space-28, 1.75rem) var(--space-28, 1.75rem);text-align:center}.hk-error-landing__card::before{content:\"\";position:absolute;inset:0 0 auto;height:150px;background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-error)/8%), transparent 72%);pointer-events:none}.hk-error-landing.is-warning .hk-error-landing__card::before{background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-warning)/10%), transparent 72%)}.hk-error-landing.is-info .hk-error-landing__card::before{background:radial-gradient(58% 100% at 50% 0%, rgb(var(--hel-primary)/7%), transparent 72%)}.hk-error-landing__brand{position:relative;display:flex;justify-content:center;margin-bottom:var(--space-16, 1rem)}.hk-error-landing__brand:empty{display:none}.hk-error-landing__icon{position:relative;width:64px;height:64px;margin:0 auto var(--space-14, 0.875rem);display:flex;align-items:center;justify-content:center;border-radius:50%}.hk-error-landing__icon,.hk-error-landing__icon svg{color:rgb(var(--hel-error))}.hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-error)/18%), rgb(var(--hel-error)/6%));border:1px solid rgb(var(--hel-error)/26%);box-shadow:0 0 0 8px rgb(var(--hel-error)/5%),0 10px 28px -12px rgb(var(--hel-error)/45%)}.hk-error-landing.is-warning .hk-error-landing__icon,.hk-error-landing.is-warning .hk-error-landing__icon svg{color:rgb(var(--hel-warning))}.hk-error-landing.is-warning .hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-warning)/20%), rgb(var(--hel-warning)/7%));border-color:rgb(var(--hel-warning)/28%);box-shadow:0 0 0 8px rgb(var(--hel-warning)/6%),0 10px 28px -12px rgb(var(--hel-warning)/45%)}.hk-error-landing.is-info .hk-error-landing__icon,.hk-error-landing.is-info .hk-error-landing__icon svg{color:rgb(var(--hel-primary))}.hk-error-landing.is-info .hk-error-landing__icon{background:linear-gradient(145deg, rgb(var(--hel-primary)/16%), rgb(var(--hel-primary)/5%));border-color:rgb(var(--hel-primary)/24%);box-shadow:0 0 0 8px rgb(var(--hel-primary)/5%),0 10px 28px -12px rgb(var(--hel-primary)/40%)}.hk-error-landing__meta{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-6, 0.375rem);margin-bottom:var(--space-8, 0.5rem)}.hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-error));--hk-badge-bg: rgb(var(--hel-error) / 10%);--hk-badge-border: rgb(var(--hel-error) / 22%)}.hk-error-landing.is-warning .hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-warning));--hk-badge-bg: rgb(var(--hel-warning) / 12%);--hk-badge-border: rgb(var(--hel-warning) / 24%)}.hk-error-landing.is-info .hk-error-landing__meta .hk-badge:not(.hk-badge-muted){--hk-badge-text: rgb(var(--hel-primary));--hk-badge-bg: rgb(var(--hel-primary) / 10%);--hk-badge-border: rgb(var(--hel-primary) / 20%)}.hk-error-landing__meta .hk-badge-muted{--hk-badge-text: rgb(var(--hel-muted));--hk-badge-bg: rgb(var(--hel-muted) / 8%);--hk-badge-border: rgb(var(--hel-border) / 80%)}.hk-error-landing__title{position:relative;margin:0;font-size:var(--text-xl, 1.25rem);font-weight:650;letter-spacing:-0.01em;line-height:1.35;color:rgb(var(--hel-text));white-space:pre-line;overflow-wrap:anywhere}.hk-error-landing__desc{position:relative;margin:var(--space-8, 0.5rem) 0 0;font-size:var(--text-sm, 0.8125rem);line-height:1.6;color:rgb(var(--hel-muted));white-space:pre-line;overflow-wrap:anywhere}.hk-error-landing__details{position:relative;margin-top:var(--space-16, 1rem);text-align:start}.hk-error-landing__details-label{display:flex;align-items:center;gap:var(--space-4, 4px);padding:0 var(--space-2, 2px);font-size:var(--text-xs, 0.75rem);font-weight:500;letter-spacing:.02em;color:rgb(var(--hel-muted));-webkit-user-select:none;user-select:none}.hk-error-landing__details-pane{position:relative;margin-top:var(--space-6, 0.375rem);height:max(9rem,20vh);height:max(9rem,20dvh);border:1px solid rgb(var(--hel-border)/70%);border-radius:var(--radius-md, 8px);background:rgb(var(--hel-muted)/4%)}.hk-error-landing__details-body{height:100%;overflow:auto;border-radius:inherit;padding:var(--space-4, 0.25rem);scrollbar-width:none}.hk-error-landing__details-body::-webkit-scrollbar{display:none}.hk-error-landing .hk-error-landing__details-body .s-tool-json-tree{max-height:none;height:auto;overflow:visible;margin:0;padding:0;border:none;border-radius:0;background:rgba(0,0,0,0)}.hk-error-landing__actions{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-8, 0.5rem);margin-top:var(--space-16, 1rem)}.hk-error-landing.is-inline{min-height:100%;padding:0 var(--space-12, 0.75rem);align-items:flex-start;background:rgba(0,0,0,0)}.hk-error-landing.is-inline.is-fill{flex:1 1 auto;min-height:0}.hk-error-landing.is-inline .hk-error-landing__card{margin:auto;padding:var(--space-16, 1rem) var(--space-28, 1.75rem) var(--space-24, 1.5rem);display:flex;flex-direction:column;max-height:100%;min-height:min-content}.hk-error-landing.is-inline .hk-error-landing__details{display:flex;flex-direction:column;min-height:0}.hk-error-landing.is-inline .hk-error-landing__details-pane{height:auto;flex-grow:0;flex-shrink:1;flex-basis:max(9rem,20vh);flex-basis:max(9rem,20dvh);min-height:6rem}@media(max-width: 480px){.hk-error-landing__card{padding:var(--space-28, 1.75rem) 1.125rem var(--space-24, 1.5rem)}}:root{--c-primary-faint: rgb(var(--color-primary, 122 162 247) / 5%);--c-primary-subtle: rgb(var(--color-primary, 122 162 247) / 8%);--c-primary-dim: rgb(var(--color-primary, 122 162 247) / 10%);--c-primary-light: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-overlay: rgb(var(--color-primary, 122 162 247) / 15%);--c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);--c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);--c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);--c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);--c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);--c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);--shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);--shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);--shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);--shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);--shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);--shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);--border-input: rgb(var(--color-border, 100 100 100) / 15%);--border-faint: rgb(var(--color-border, 100 100 100) / 10%);--border-subtle: rgb(var(--color-border, 100 100 100) / 12%);--hi-icon-color: rgb(var(--color-text, 30 30 30));--hi-icon-size-xs: 0.75rem;--hi-icon-size-sm: 1rem;--hi-icon-size-md: 1.25rem;--hi-icon-size-lg: 1.5rem;--hi-duration-instant: var(--duration-instant, 0.1s);--hi-border-color-focus: rgb(var(--color-primary, 122 162 247));--hi-glow-color: transparent;--hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);--hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);--hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);--hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);--hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));--hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255))}:root{--color-primary: 122 162 247;--color-on-primary: 255 255 255;--color-on-solid: 255 255 255;--color-on-solid-text: 255 255 255;--color-on-solid-icon: 255 255 255;--color-secondary: 81 154 115;--color-accent: 247 181 0;--color-text: 30 30 30;--color-text-secondary: 102 102 102;--color-text-tertiary: 140 140 140;--color-muted: 108 108 108;--color-border: 100 100 100;--color-focused-border: 122 162 247;--color-background: 255 255 255;--color-surface: 255 255 255;--color-selected-bg: 191 218 242;--color-selected-text: 30 30 30;--color-status-bar-bg: 240 244 248;--color-success: 14 184 64;--color-error: 247 118 142;--color-warning: 238 214 119;--color-info: 106 190 214;--hi-color-primary: rgb(var(--color-primary));--hi-color-secondary: rgb(var(--color-secondary));--hi-color-surface: rgb(var(--color-surface));--hi-color-background: rgb(var(--color-background));--hi-color-border: rgb(var(--color-border) / 15%);--hi-color-text-primary: rgb(var(--color-text));--hi-color-text-secondary: rgb(var(--color-text-secondary));--hi-color-muted: rgb(var(--color-muted));--hi-color-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-primary: rgb(var(--color-on-primary));--hi-color-text-on-solid: rgb(var(--color-on-solid-text, 255 255 255));--hi-color-icon-on-solid: rgb(var(--color-on-solid-icon, 255 255 255));--hi-color-success: rgb(var(--color-success));--hi-color-error: rgb(var(--color-error));--hi-color-warning: rgb(var(--color-warning));--hi-color-info: rgb(var(--color-info));--hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);--hi-color-bg-elevated: rgb(var(--color-surface));--hi-color-bg-canvas: rgb(var(--color-background));--hi-secondary-bg: rgb(var(--color-surface) / 0.5);--hi-color-accent: rgb(var(--color-accent));--hi-primary: var(--hi-color-primary);--hi-surface: var(--hi-color-surface);--hi-card-bg: var(--hi-color-surface)}.hk-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-6);font-family:inherit;font-weight:600;line-height:1;border:1px solid rgba(0,0,0,0);border-radius:var(--radius-md, 8px);cursor:pointer;transition-property:background-color,border-color,color,box-shadow,opacity,transform,filter;transition-duration:var(--duration-normal);transition-timing-function:var(--ease-standard);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;position:relative}.hk-btn:focus-visible{box-shadow:0 0 0 2px rgb(var(--color-surface)),0 0 0 4px rgb(var(--color-primary))}.hk-btn:disabled{opacity:.5;cursor:not-allowed}.hk-btn-xs{padding:var(--space-4) var(--space-8);font-size:var(--text-xs);min-height:1.375rem}.hk-btn-sm{padding:var(--space-6) var(--space-12);font-size:var(--text-xs);min-height:1.75rem}.hk-btn-md{padding:var(--space-8) var(--space-16);font-size:var(--text-base);min-height:2.5rem}.hk-btn-lg{padding:var(--space-10) var(--space-24);font-size:var(--text-base);min-height:2.75rem}.hk-btn-xs .hk-btn-icon,.hk-btn-xs .hk-btn-suffix{inline-size:.8125rem;block-size:.8125rem}.hk-btn-xs .hk-btn-icon .hk-icon,.hk-btn-xs .hk-btn-suffix .hk-icon{inline-size:100%;block-size:100%}.hk-btn-icon,.hk-btn-suffix{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:1rem;block-size:1rem;line-height:0}.hk-btn-icon svg,.hk-btn-suffix svg{display:block}.hk-btn>svg{flex:none}.hk-btn-icon-only{padding:0;box-sizing:border-box}.hk-btn-xs.hk-btn-icon-only{width:1.375rem}.hk-btn-sm.hk-btn-icon-only{width:1.75rem}.hk-btn-md.hk-btn-icon-only{width:2.5rem}.hk-btn-lg.hk-btn-icon-only{width:2.75rem}.hk-btn-block.hk-btn-icon-only{width:100%}.hk-btn-label{display:inline-flex;align-items:center;min-width:0}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 639.98px){.hk-btn-label-collapse-sm.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-sm.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 767.98px){.hk-btn-label-collapse-md.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-md.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 1023.98px){.hk-btn-label-collapse-lg.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-lg.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-xs .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-xs{padding:0;box-sizing:border-box;width:1.375rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-sm .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-sm{padding:0;box-sizing:border-box;width:1.75rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-md .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-md{padding:0;box-sizing:border-box;width:2.5rem}}@media(max-width: 1279.98px){.hk-btn-label-collapse-xl.hk-btn-lg .hk-btn-label{display:none}.hk-btn-label-collapse-xl.hk-btn-lg{padding:0;box-sizing:border-box;width:2.75rem}}.hk-btn-primary{background:rgb(var(--color-primary));color:rgb(var(--color-on-solid))}.hk-btn-primary svg{color:rgb(var(--color-on-solid-icon, 255 255 255))}.hk-btn-primary:hover:not(:disabled):not(:focus-visible){filter:brightness(1.1);box-shadow:var(--shadow-button)}.hk-btn-primary:active:not(:disabled){filter:brightness(0.95)}.hk-btn-secondary{background:rgb(var(--color-surface));color:rgb(var(--color-text));border-color:rgb(var(--color-border)/20%);-webkit-backdrop-filter:var(--hk-btn-secondary-blur, blur(var(--blur-sm)));backdrop-filter:var(--hk-btn-secondary-blur, blur(var(--blur-sm)))}.hk-btn-secondary:hover:not(:disabled){border-color:var(--c-primary-strong)}.hk-btn-secondary:active:not(:disabled){filter:brightness(0.95)}.hk-btn-outline{background:rgba(0,0,0,0);color:rgb(var(--color-primary));border-color:var(--c-primary-intense)}.hk-btn-outline:hover:not(:disabled){background:var(--c-primary-light);border-color:rgb(var(--color-primary))}.hk-btn-outline:active:not(:disabled){filter:brightness(0.95)}.hk-btn-ghost{background:rgba(0,0,0,0);color:rgb(var(--color-text));border-color:rgba(0,0,0,0)}.hk-btn-ghost:hover:not(:disabled){background:var(--c-primary-light)}.hk-btn-ghost:active:not(:disabled){filter:brightness(0.95)}.hk-btn-danger{background:rgb(var(--color-error));color:rgb(var(--color-on-solid))}.hk-btn-danger:hover:not(:disabled):not(:focus-visible){filter:brightness(1.1);box-shadow:var(--shadow-button-danger)}.hk-btn-danger:active:not(:disabled){filter:brightness(0.95)}.hk-btn-block{width:100%}.hk-btn-loading{pointer-events:none}@media(prefers-color-scheme: dark){:root{--color-primary: 136 192 208;--color-on-solid: 46 52 64;--color-on-solid-text: 46 52 64;--color-on-solid-icon: 46 52 64;--color-text: 247 249 252;--color-muted: 180 180 180;--color-border: 128 128 128;--color-background: 22 27 38;--color-surface: 34 40 54;--color-error: 191 97 106}}";