@celestia-island/hikari 0.55.445 → 0.55.447
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 +1 -1
- package/src/components/HkDebugFloat.scss +7 -2
- package/src/components/HkDebugFloat.test.tsx +7 -3
- package/src/components/HkMenu.rail.test.tsx +47 -14
- package/src/components/HkMenu.scss +11 -5
- package/src/components/HkMenu.test.ts +99 -0
- package/src/components/HkMenu.tsx +115 -13
- package/src/components/HkSidebarRail.scss +15 -1
- package/src/components/HkSidebarRail.styles.test.ts +9 -2
- package/src/components/HkSolarLocationSetting.scss +6 -0
- package/src/components/HkThemeToggle.scss +19 -0
- package/src/composables/useRailIconFlight.test.ts +32 -5
- package/src/composables/useRailIconFlight.ts +40 -7
- package/src/plugins/boot-recovery.details.test.ts +1 -1
- package/src/plugins/boot-recovery.diagnostics.test.ts +1 -1
- package/src/plugins/boot-recovery.error-context.test.ts +1 -1
- package/src/plugins/boot-recovery.locales.test.ts +1 -1
- package/src/plugins/bootLandingCss.js +1 -1
- package/src/scale.scss +7 -1
- package/src/styles/theme/scale.scss +7 -1
package/package.json
CHANGED
|
@@ -54,8 +54,13 @@
|
|
|
54
54
|
* `data-hk-debug-float-pointer` re-enables pointer-events explicitly
|
|
55
55
|
* (descendants may re-enable under a none ancestor), so exactly the host's
|
|
56
56
|
* own unlock control stays live (the wowsp pin button). The locked visual is
|
|
57
|
-
* the host's: its content fades itself (a static lock, not a hover fade).
|
|
58
|
-
|
|
57
|
+
* the host's: its content fades itself (a static lock, not a hover fade).
|
|
58
|
+
*
|
|
59
|
+
* The marker is the attribute's PRESENCE — the house convention shared with
|
|
60
|
+
* HkModelCard: `interactive={false}` emits `data-interactive` with an EMPTY
|
|
61
|
+
* value, so only a presence selector can match it (an equal-value selector
|
|
62
|
+
* would silently never apply — this block shipped that way once). */
|
|
63
|
+
.hk-debug-float[data-interactive] {
|
|
59
64
|
pointer-events: none;
|
|
60
65
|
|
|
61
66
|
& [data-el="fade"] {
|
|
@@ -870,15 +870,19 @@ describe("HkDebugFloat stylesheet contract", () => {
|
|
|
870
870
|
// interactive={false}: the whole window stops taking pointers, and a
|
|
871
871
|
// host-marked subtree re-enables hit testing explicitly so exactly
|
|
872
872
|
// one control (the unlock affordance) stays live.
|
|
873
|
+
// Presence selector (the HkModelCard convention): the attribute is
|
|
874
|
+
// emitted with an EMPTY value, so an equal-value selector would never
|
|
875
|
+
// match — the regression this guard exists to catch (it shipped once).
|
|
873
876
|
expect(css).toMatch(
|
|
874
|
-
/\.hk-debug-float\[data-interactive
|
|
877
|
+
/\.hk-debug-float\[data-interactive\]\s*\{\s*pointer-events:\s*none;/,
|
|
875
878
|
);
|
|
879
|
+
expect(css).not.toMatch(/\[data-interactive="false"\]/);
|
|
876
880
|
expect(css).toMatch(
|
|
877
|
-
/\.hk-debug-float\[data-interactive
|
|
881
|
+
/\.hk-debug-float\[data-interactive\] \[data-hk-debug-float-pointer\]\s*\{\s*pointer-events:\s*auto;/,
|
|
878
882
|
);
|
|
879
883
|
// The lock is static — a click-through window has no hover to fade on.
|
|
880
884
|
expect(css).toMatch(
|
|
881
|
-
/\.hk-debug-float\[data-interactive
|
|
885
|
+
/\.hk-debug-float\[data-interactive\] \[data-el=fade\]\s*\{\s*transition:\s*none;/,
|
|
882
886
|
);
|
|
883
887
|
});
|
|
884
888
|
|
|
@@ -376,7 +376,7 @@ describe("HkMenu sidebar icon rail", () => {
|
|
|
376
376
|
expect(c.querySelector(".hk-menu-sidebar-rail-children")).toBeNull();
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
it("
|
|
379
|
+
it("makes the state caret the primary glyph and demotes the group icon to the corner", async () => {
|
|
380
380
|
const c = mountMenu(
|
|
381
381
|
[
|
|
382
382
|
{
|
|
@@ -389,27 +389,55 @@ describe("HkMenu sidebar icon rail", () => {
|
|
|
389
389
|
{ collapsed: true },
|
|
390
390
|
);
|
|
391
391
|
|
|
392
|
-
//
|
|
393
|
-
// the
|
|
392
|
+
// 2026-11-20 (ERP media rail): expandability is what the rail
|
|
393
|
+
// communicates, so the CARET owns the glyph cell and the declared
|
|
394
|
+
// group icon demotes to the bottom-end corner badge (still paired by
|
|
395
|
+
// data-flip-icon for the density flight).
|
|
394
396
|
const group = groupRows(c)[0]!;
|
|
395
397
|
const glyph = group.querySelector(".hk-menu-item-icon")!;
|
|
396
|
-
expect(glyph.querySelector("svg"), "the declared icon is the glyph").toBeTruthy();
|
|
397
398
|
expect(
|
|
398
399
|
glyph.querySelector(".hk-menu-rail-caret"),
|
|
399
|
-
"
|
|
400
|
-
).
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
expect(corner
|
|
400
|
+
"the state caret is the primary glyph",
|
|
401
|
+
).toBeTruthy();
|
|
402
|
+
expect(glyph.classList.contains("lucide-chevron-right")).toBe(false);
|
|
403
|
+
const corner = group.querySelector(".hk-menu-rail-glyph-corner svg")!;
|
|
404
|
+
expect(corner, "the declared icon parks in the corner").toBeTruthy();
|
|
404
405
|
|
|
405
|
-
// Opening swaps the
|
|
406
|
+
// Opening swaps the caret glyph to ChevronDown; the icon stays put.
|
|
406
407
|
group.click();
|
|
407
408
|
await nextTick();
|
|
408
409
|
expect(
|
|
409
410
|
groupRows(c)[0]!
|
|
410
|
-
.querySelector(".hk-menu-
|
|
411
|
+
.querySelector(".hk-menu-item-icon .hk-menu-rail-caret")!
|
|
411
412
|
.classList.contains("lucide-chevron-down"),
|
|
412
413
|
).toBe(true);
|
|
414
|
+
expect(
|
|
415
|
+
groupRows(c)[0]!.querySelector(".hk-menu-rail-glyph-corner"),
|
|
416
|
+
"the icon corner persists after opening",
|
|
417
|
+
).toBeTruthy();
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
it("marks the rail group CORNER badge so the flight hides it (no duplicate glyph)", () => {
|
|
421
|
+
// 2026-11-20: the rail group renders the caret as its glyph and the
|
|
422
|
+
// declared icon as a demoted corner chip. The chip carries
|
|
423
|
+
// data-flip-icon so useRailIconFlight pairs it with the expanded
|
|
424
|
+
// icon — and the single-glyph hide rule must cover BOTH cell classes
|
|
425
|
+
// (the corner chip is not a .hk-menu-item-icon), or the old icon
|
|
426
|
+
// stays painted through the whole flight.
|
|
427
|
+
const c = mountMenu(
|
|
428
|
+
[
|
|
429
|
+
{
|
|
430
|
+
key: "admin",
|
|
431
|
+
label: "Administration",
|
|
432
|
+
icon: Settings,
|
|
433
|
+
children: [{ key: "users", label: "Users", icon: Home }],
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
{ collapsed: true },
|
|
437
|
+
);
|
|
438
|
+
const corner = groupRows(c)[0]!.querySelector<HTMLElement>(".hk-menu-rail-glyph-corner");
|
|
439
|
+
expect(corner, "the demoted icon chip renders").toBeTruthy();
|
|
440
|
+
expect(corner!.getAttribute("data-flip-icon"), "the chip opts into the flight").toBe("admin");
|
|
413
441
|
});
|
|
414
442
|
|
|
415
443
|
it("falls back to the label initial for icon-less LEAF rows", () => {
|
|
@@ -429,10 +457,15 @@ describe("HkMenu sidebar icon rail", () => {
|
|
|
429
457
|
// welding that turns a literal drift in HkMenu's JSX (or the JS
|
|
430
458
|
// pairing vocabulary) into a red test instead of a silently dead
|
|
431
459
|
// flight chain (2026-11-02 review).
|
|
460
|
+
// 2026-11-20 rail grammar: the group's icon is the DEMOTED corner
|
|
461
|
+
// chip (.hk-menu-rail-glyph-corner) while the caret owns the glyph
|
|
462
|
+
// cell — so the rail-side query must cover BOTH cell classes.
|
|
432
463
|
const iconKeys = (root: ParentNode): string[] =>
|
|
433
|
-
[
|
|
434
|
-
|
|
435
|
-
|
|
464
|
+
[
|
|
465
|
+
...root.querySelectorAll<HTMLElement>(
|
|
466
|
+
`.hk-menu-item-icon[${RAIL_FLIP_ICON_ATTR}], .hk-menu-rail-glyph-corner[${RAIL_FLIP_ICON_ATTR}]`,
|
|
467
|
+
),
|
|
468
|
+
].map((el) => el.getAttribute(RAIL_FLIP_ICON_ATTR) ?? "");
|
|
436
469
|
|
|
437
470
|
// An icon on the group exercises the group-toggle sites; the
|
|
438
471
|
// icon-less leaf exercises the asymmetry the flight tolerates: the
|
|
@@ -141,6 +141,8 @@
|
|
|
141
141
|
margin-top: var(--space-2, 2px);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
|
|
145
|
+
|
|
144
146
|
.hk-menu-sidebar-badge {
|
|
145
147
|
margin-inline-start: auto;
|
|
146
148
|
display: inline-flex;
|
|
@@ -213,15 +215,19 @@
|
|
|
213
215
|
opacity: 0.55;
|
|
214
216
|
}
|
|
215
217
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
*
|
|
219
|
-
|
|
218
|
+
|
|
219
|
+
/* 2026-11-20 (ERP media rail): the demoted GROUP ICON badge —
|
|
220
|
+
* mirrors the old caret corner slot. The caret is now the row's
|
|
221
|
+
* primary glyph (icon cell), and the group icon shrinks into the
|
|
222
|
+
* inline-end corner so the rail reads expandability first,
|
|
223
|
+
* affiliation second. */
|
|
224
|
+
.hk-menu-rail-glyph-corner {
|
|
220
225
|
position: absolute;
|
|
221
226
|
inset-block-end: var(--space-2, 2px);
|
|
222
|
-
inset-inline-end: var(--space-
|
|
227
|
+
inset-inline-end: var(--space-2, 2px);
|
|
223
228
|
display: inline-flex;
|
|
224
229
|
pointer-events: none;
|
|
230
|
+
opacity: 0.75;
|
|
225
231
|
}
|
|
226
232
|
}
|
|
227
233
|
|
|
@@ -1124,4 +1124,103 @@ describe("HkMenu cascade against an app-chrome band", () => {
|
|
|
1124
1124
|
await settle();
|
|
1125
1125
|
expect(popoutHosts()[0]?.style.left).toBe("1016px"); // frame.x + gutter
|
|
1126
1126
|
});
|
|
1127
|
+
it("animates the group body open and closed (WAAPI height fold)", async () => {
|
|
1128
|
+
// happy-dom has no WAAPI and reports scrollHeight 0; stub both so the
|
|
1129
|
+
// disclosure hooks take their animated path and we can inspect the
|
|
1130
|
+
// keyframes they build.
|
|
1131
|
+
const frames: Keyframe[][] = [];
|
|
1132
|
+
const stubbed = vi.fn((keyframes: Keyframe[]) => {
|
|
1133
|
+
frames.push(keyframes);
|
|
1134
|
+
const animation = {
|
|
1135
|
+
onfinish: null as null | (() => void),
|
|
1136
|
+
cancel: vi.fn(),
|
|
1137
|
+
};
|
|
1138
|
+
// Fire the finish callback on the next macrotask so the Transition
|
|
1139
|
+
// settles exactly like a real browser completing the fold.
|
|
1140
|
+
setTimeout(() => animation.onfinish?.(), 0);
|
|
1141
|
+
return animation as unknown as Animation;
|
|
1142
|
+
});
|
|
1143
|
+
Object.defineProperty(HTMLElement.prototype, "animate", {
|
|
1144
|
+
configurable: true,
|
|
1145
|
+
value: stubbed,
|
|
1146
|
+
});
|
|
1147
|
+
Object.defineProperty(HTMLElement.prototype, "scrollHeight", {
|
|
1148
|
+
configurable: true,
|
|
1149
|
+
get: () => 120,
|
|
1150
|
+
});
|
|
1151
|
+
|
|
1152
|
+
const container = document.createElement("div");
|
|
1153
|
+
document.body.appendChild(container);
|
|
1154
|
+
containers.push(container);
|
|
1155
|
+
const app = createApp({
|
|
1156
|
+
render: () =>
|
|
1157
|
+
h(HkMenu, {
|
|
1158
|
+
variant: "sidebar",
|
|
1159
|
+
open: true,
|
|
1160
|
+
items: [
|
|
1161
|
+
{
|
|
1162
|
+
key: "system",
|
|
1163
|
+
label: "System",
|
|
1164
|
+
children: [{ key: "general", label: "General" }],
|
|
1165
|
+
},
|
|
1166
|
+
],
|
|
1167
|
+
}),
|
|
1168
|
+
});
|
|
1169
|
+
mounts.push(app);
|
|
1170
|
+
app.mount(container);
|
|
1171
|
+
await settle();
|
|
1172
|
+
|
|
1173
|
+
const toggle = container.querySelector(
|
|
1174
|
+
".hk-menu-sidebar-group-toggle",
|
|
1175
|
+
) as HTMLButtonElement;
|
|
1176
|
+
toggle.click();
|
|
1177
|
+
await settle();
|
|
1178
|
+
|
|
1179
|
+
expect(stubbed, "opening folds the body with a height tween").toHaveBeenCalled();
|
|
1180
|
+
expect(frames[0]?.[0]).toEqual({ height: "0px" });
|
|
1181
|
+
expect(frames[0]?.[1]).toEqual({ height: "120px" });
|
|
1182
|
+
|
|
1183
|
+
toggle.click();
|
|
1184
|
+
await settle();
|
|
1185
|
+
expect(stubbed.mock.calls.length, "closing folds it back").toBeGreaterThan(1);
|
|
1186
|
+
expect(frames.at(-1)?.[1]).toEqual({ height: "0px" });
|
|
1187
|
+
|
|
1188
|
+
// Restore the environment for the other tests in this file.
|
|
1189
|
+
delete (HTMLElement.prototype as unknown as Record<string, unknown>).animate;
|
|
1190
|
+
delete (HTMLElement.prototype as unknown as Record<string, unknown>).scrollHeight;
|
|
1191
|
+
});
|
|
1192
|
+
|
|
1193
|
+
it("skips the fold animation under the global animation switch", async () => {
|
|
1194
|
+
const stubbed = vi.fn();
|
|
1195
|
+
Object.defineProperty(HTMLElement.prototype, "animate", {
|
|
1196
|
+
configurable: true,
|
|
1197
|
+
value: stubbed,
|
|
1198
|
+
});
|
|
1199
|
+
document.documentElement.setAttribute("data-css-animations", "0");
|
|
1200
|
+
|
|
1201
|
+
const container = document.createElement("div");
|
|
1202
|
+
document.body.appendChild(container);
|
|
1203
|
+
containers.push(container);
|
|
1204
|
+
const app = createApp({
|
|
1205
|
+
render: () =>
|
|
1206
|
+
h(HkMenu, {
|
|
1207
|
+
variant: "sidebar",
|
|
1208
|
+
open: true,
|
|
1209
|
+
items: [
|
|
1210
|
+
{ key: "system", label: "System", children: [{ key: "general", label: "General" }] },
|
|
1211
|
+
],
|
|
1212
|
+
}),
|
|
1213
|
+
});
|
|
1214
|
+
mounts.push(app);
|
|
1215
|
+
app.mount(container);
|
|
1216
|
+
await settle();
|
|
1217
|
+
|
|
1218
|
+
(container.querySelector(".hk-menu-sidebar-group-toggle") as HTMLButtonElement).click();
|
|
1219
|
+
await settle();
|
|
1220
|
+
|
|
1221
|
+
expect(stubbed, "the veto makes the fold instant").not.toHaveBeenCalled();
|
|
1222
|
+
document.documentElement.removeAttribute("data-css-animations");
|
|
1223
|
+
delete (HTMLElement.prototype as unknown as Record<string, unknown>).animate;
|
|
1224
|
+
});
|
|
1225
|
+
|
|
1127
1226
|
});
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
type Component,
|
|
9
9
|
type PropType,
|
|
10
10
|
type VNode,
|
|
11
|
+
Transition,
|
|
11
12
|
} from "vue";
|
|
12
13
|
|
|
13
14
|
import { Check, ChevronDown, ChevronRight } from "lucide-vue-next";
|
|
@@ -790,6 +791,97 @@ export default defineComponent({
|
|
|
790
791
|
}
|
|
791
792
|
}
|
|
792
793
|
|
|
794
|
+
/** ── Group-body disclosure animation (2026-11-20 user direction) ──
|
|
795
|
+
*
|
|
796
|
+
* The children subtree STAYS mount/unmount (every consumer and test
|
|
797
|
+
* depends on a collapsed group not existing in the DOM), so the fold
|
|
798
|
+
* rides Vue's <Transition> hooks instead of a CSS-only technique: on
|
|
799
|
+
* enter the wrapper is measured and grown 0 → content height, on
|
|
800
|
+
* leave it shrinks to 0 and only then unmounts. WAAPI on the wrapper
|
|
801
|
+
* — the same compositor path the rail flight uses — with the theme's
|
|
802
|
+
* own --duration-normal so a retuned theme retunes the fold, and the
|
|
803
|
+
* house motion vetoes (reduced motion / the global animation switch /
|
|
804
|
+
* no WAAPI) degrade to an instant swap rather than a broken frame.
|
|
805
|
+
*/
|
|
806
|
+
const foldAnimations = new WeakMap<HTMLElement, Animation>();
|
|
807
|
+
|
|
808
|
+
function foldMotionAllowed(): boolean {
|
|
809
|
+
if (typeof document === "undefined" || typeof HTMLElement === "undefined") return false;
|
|
810
|
+
if (document.documentElement.getAttribute("data-css-animations") === "0") return false;
|
|
811
|
+
if (typeof HTMLElement.prototype.animate !== "function") return false;
|
|
812
|
+
return !window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/** The theme duration, parsed once per call from the live element. */
|
|
816
|
+
function foldDuration(el: HTMLElement): number {
|
|
817
|
+
const raw = getComputedStyle(el).getPropertyValue("--duration-normal").trim();
|
|
818
|
+
if (!raw) return 200;
|
|
819
|
+
const ms = /^([\d.]+)(ms|s)$/.exec(raw);
|
|
820
|
+
if (!ms) return 200;
|
|
821
|
+
const value = Number.parseFloat(ms[1]);
|
|
822
|
+
return ms[2] === "s" ? value * 1000 : value;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
function foldEnter(el: Element, done: () => void): void {
|
|
826
|
+
const node = el as HTMLElement;
|
|
827
|
+
foldAnimations.get(node)?.cancel();
|
|
828
|
+
if (!foldMotionAllowed()) {
|
|
829
|
+
done();
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
const target = node.scrollHeight;
|
|
833
|
+
if (!target) {
|
|
834
|
+
done();
|
|
835
|
+
return;
|
|
836
|
+
}
|
|
837
|
+
node.style.overflow = "hidden";
|
|
838
|
+
const animation = node.animate(
|
|
839
|
+
[{ height: "0px" }, { height: `${target}px` }],
|
|
840
|
+
{
|
|
841
|
+
duration: foldDuration(node),
|
|
842
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
843
|
+
fill: "forwards",
|
|
844
|
+
},
|
|
845
|
+
);
|
|
846
|
+
foldAnimations.set(node, animation);
|
|
847
|
+
animation.onfinish = () => {
|
|
848
|
+
// Hand the height back to layout (auto) so later content changes
|
|
849
|
+
// never get clipped by a stale measured pixel value.
|
|
850
|
+
animation.cancel();
|
|
851
|
+
node.style.height = "";
|
|
852
|
+
node.style.overflow = "";
|
|
853
|
+
foldAnimations.delete(node);
|
|
854
|
+
done();
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function foldLeave(el: Element, done: () => void): void {
|
|
859
|
+
const node = el as HTMLElement;
|
|
860
|
+
foldAnimations.get(node)?.cancel();
|
|
861
|
+
if (!foldMotionAllowed()) {
|
|
862
|
+
done();
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
const from = node.getBoundingClientRect().height;
|
|
866
|
+
node.style.overflow = "hidden";
|
|
867
|
+
const animation = node.animate(
|
|
868
|
+
[{ height: `${from}px` }, { height: "0px" }],
|
|
869
|
+
{
|
|
870
|
+
duration: foldDuration(node),
|
|
871
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
872
|
+
fill: "forwards",
|
|
873
|
+
},
|
|
874
|
+
);
|
|
875
|
+
foldAnimations.set(node, animation);
|
|
876
|
+
animation.onfinish = () => {
|
|
877
|
+
animation.cancel();
|
|
878
|
+
node.style.height = "";
|
|
879
|
+
node.style.overflow = "";
|
|
880
|
+
foldAnimations.delete(node);
|
|
881
|
+
done();
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
|
|
793
885
|
function isGroupExpanded(key: string): boolean {
|
|
794
886
|
const choice = userGroupChoice(key);
|
|
795
887
|
// Table-of-contents mode (defaultExpandGroups): open IS the default
|
|
@@ -908,11 +1000,13 @@ export default defineComponent({
|
|
|
908
1000
|
{item.badge && <span class="hk-menu-sidebar-badge">{item.badge}</span>}
|
|
909
1001
|
<ChevronRight size={14} class="hk-menu-more" />
|
|
910
1002
|
</button>
|
|
911
|
-
{
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
1003
|
+
<Transition name="hk-menu-fold" onEnter={foldEnter} onLeave={foldLeave}>
|
|
1004
|
+
{expanded && (
|
|
1005
|
+
<div class="hk-menu-sidebar-children">
|
|
1006
|
+
{item.children!.map((child) => renderSidebarItem(child, depth + 1))}
|
|
1007
|
+
</div>
|
|
1008
|
+
)}
|
|
1009
|
+
</Transition>
|
|
916
1010
|
</div>
|
|
917
1011
|
);
|
|
918
1012
|
}
|
|
@@ -1024,15 +1118,21 @@ export default defineComponent({
|
|
|
1024
1118
|
icon-less group has no expanded cell to pair with, so
|
|
1025
1119
|
its placeholder caret simply dissolves — pairing needs
|
|
1026
1120
|
both ends, and the flight never invents one. */}
|
|
1121
|
+
{/* 2026-11-20 user direction (ERP media rail): the STATE CARET
|
|
1122
|
+
is the rail group button's primary glyph — expandability is
|
|
1123
|
+
what the rail communicates — and the group icon demotes to
|
|
1124
|
+
a small bottom-end corner badge. data-flip-icon rides the
|
|
1125
|
+
corner span so the density flip still pairs icon ↔ icon. */}
|
|
1027
1126
|
<span
|
|
1028
1127
|
class="hk-menu-item-icon"
|
|
1029
|
-
data-flip-icon={item.key}
|
|
1030
1128
|
data-fallback={item.icon ? undefined : true}
|
|
1031
1129
|
>
|
|
1032
|
-
{
|
|
1130
|
+
{railCaret(expanded, 16)}
|
|
1033
1131
|
</span>
|
|
1034
1132
|
{item.icon && (
|
|
1035
|
-
<span class="hk-menu-rail-
|
|
1133
|
+
<span class="hk-menu-rail-glyph-corner" data-flip-icon={item.key}>
|
|
1134
|
+
{h(item.icon, { size: 10 })}
|
|
1135
|
+
</span>
|
|
1036
1136
|
)}
|
|
1037
1137
|
{item.badge && (
|
|
1038
1138
|
<span
|
|
@@ -1042,11 +1142,13 @@ export default defineComponent({
|
|
|
1042
1142
|
)}
|
|
1043
1143
|
</button>
|
|
1044
1144
|
</HkTooltip>
|
|
1045
|
-
{
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1145
|
+
<Transition name="hk-menu-fold" onEnter={foldEnter} onLeave={foldLeave}>
|
|
1146
|
+
{expanded && (
|
|
1147
|
+
<div class="hk-menu-sidebar-children hk-menu-sidebar-rail-children">
|
|
1148
|
+
{item.children!.map((child) => renderSidebarRailItem(child))}
|
|
1149
|
+
</div>
|
|
1150
|
+
)}
|
|
1151
|
+
</Transition>
|
|
1050
1152
|
</div>
|
|
1051
1153
|
);
|
|
1052
1154
|
}
|
|
@@ -98,7 +98,11 @@
|
|
|
98
98
|
* paints atomically above the content column no matter what contexts
|
|
99
99
|
* exist inside it, so a peek overlay, the pinned expand and the idle
|
|
100
100
|
* toggle all share one rule. */
|
|
101
|
-
z
|
|
101
|
+
/* 2026-11-20 user direction + the z scale: a DOCKED sidebar sits
|
|
102
|
+
* under the header/footer chrome bands (their shadows must paint over
|
|
103
|
+
* it). --hk-z-sidebar 900 is the temporary DRAWER's layering, which is
|
|
104
|
+
* above everything — a different surface with a different band. */
|
|
105
|
+
z-index: var(--hk-z-sidebar-docked, 20);
|
|
102
106
|
/* The layout animation the PIN window deliberately keeps. */
|
|
103
107
|
transition: width var(--duration-normal, 0.3s) ease;
|
|
104
108
|
}
|
|
@@ -234,6 +238,16 @@
|
|
|
234
238
|
visibility: hidden;
|
|
235
239
|
}
|
|
236
240
|
|
|
241
|
+
/* 2026-11-20: the rail group's DEMOTED icon badge is NOT a
|
|
242
|
+
* .hk-menu-item-icon (it is the corner chip), so the base selector left
|
|
243
|
+
* it visible through the whole flight — the duplicate glyph caught
|
|
244
|
+
* mid-animation. Its own rule (not a selector-list append) keeps the
|
|
245
|
+
* single-glyph contract test's "the welded form is ITS OWN rule" pin
|
|
246
|
+
* meaningful for both cells. */
|
|
247
|
+
.hk-sidebar-rail-swap[data-flipping] .hk-menu-rail-glyph-corner[data-flip-flying] {
|
|
248
|
+
visibility: hidden;
|
|
249
|
+
}
|
|
250
|
+
|
|
237
251
|
.hk-sidebar-rail-swap .hk-sidebar-rail-generation {
|
|
238
252
|
height: 100%;
|
|
239
253
|
min-height: 0;
|
|
@@ -100,16 +100,23 @@ describe("HkSidebarRail geometry contract", () => {
|
|
|
100
100
|
expect(host, "the host width transition IS the intended motion").toContain("transition: width");
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
it("the host carries the sidebar z band ALWAYS (the stacking-trap contract)", () => {
|
|
103
|
+
it("the host carries the DOCKED sidebar z band ALWAYS (the stacking-trap contract)", () => {
|
|
104
104
|
// The band lives on the host rule itself, not under [data-peeking]:
|
|
105
105
|
// the toggle's overhanging half must paint above the content column in
|
|
106
106
|
// every state, and a host whose panel carries its own stacking context
|
|
107
107
|
// (wowsp's glass backdrop-filter) demotes the toggle's local z below
|
|
108
108
|
// plain positioned content painted later in tree order. There is no
|
|
109
109
|
// bare peeking z rule left to tie the elevation to the peek state.
|
|
110
|
+
//
|
|
111
|
+
// 2026-11-20: the DOCKED rail uses its own band, not the drawer's 900 —
|
|
112
|
+
// the header/footer chrome must paint (and cast shadows) OVER a docked
|
|
113
|
+
// sidebar; only the temporary drawer outranks the chrome.
|
|
110
114
|
const host = ruleBody(css, ".hk-sidebar-rail-host {") ?? ruleBody(css, ".hk-sidebar-rail-host");
|
|
111
115
|
expect(host, "the host rule exists").not.toBeNull();
|
|
112
|
-
expect(host).toContain("z-index: var(--hk-z-sidebar,
|
|
116
|
+
expect(host).toContain("z-index: var(--hk-z-sidebar-docked, 20)");
|
|
117
|
+
expect(host, "the drawer band no longer dresses the docked host").not.toContain(
|
|
118
|
+
"var(--hk-z-sidebar, 900)",
|
|
119
|
+
);
|
|
113
120
|
expect(css).not.toContain(".hk-sidebar-rail-host[data-peeking] {");
|
|
114
121
|
// The peek shadow survives on the panel-scoped rules.
|
|
115
122
|
expect(css).toContain(".hk-sidebar-rail-host[data-peeking] .hk-sidebar-rail-panel");
|
|
@@ -65,6 +65,12 @@
|
|
|
65
65
|
display: inline-flex;
|
|
66
66
|
flex: none;
|
|
67
67
|
align-items: center;
|
|
68
|
+
/* 2026-11-20: the icon-only Edit used to sit exactly on the card's
|
|
69
|
+
* inline-end padding edge, which reads as "pressed against the frame"
|
|
70
|
+
* once the card is width:100% inside a host strip. One small inset
|
|
71
|
+
* keeps the affordance visually separate WITHOUT moving the row's
|
|
72
|
+
* content off center (the summary still flexes to fill). */
|
|
73
|
+
margin-inline-end: var(--space-4, 0.25rem);
|
|
68
74
|
position: relative;
|
|
69
75
|
}
|
|
70
76
|
|
|
@@ -20,6 +20,25 @@
|
|
|
20
20
|
.s-theme-mode-extra {
|
|
21
21
|
margin-top: var(--space-8, 0.5rem);
|
|
22
22
|
width: 100%;
|
|
23
|
+
/* 2026-11-20: the strip owns the ONE rhythm between its children. Host
|
|
24
|
+
* cards (the solar card, an expansion panel) already carry their own
|
|
25
|
+
* border/padding; letting their block margins stack on top of the
|
|
26
|
+
* panel's gap is the "mysterious extra margin" users keep reporting
|
|
27
|
+
* under the DPI card. Normalise here so every host composes cleanly. */
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: var(--space-8, 0.5rem);
|
|
31
|
+
|
|
32
|
+
/* The margin reset is scoped to the two host cards BY CLASS, not with a
|
|
33
|
+
* bare `> *` universal: a direct-parent universal that sets margin lands
|
|
34
|
+
* in the selection contract's pinned rows table (the shape that guards
|
|
35
|
+
* against moving a checkbox/label from outside), and every host card
|
|
36
|
+
* added to this strip would then demand a table row. Named children
|
|
37
|
+
* keep the reset working without touching that contract. */
|
|
38
|
+
> .hk-solar-setting,
|
|
39
|
+
> .hk-expansion-panel {
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
23
42
|
}
|
|
24
43
|
|
|
25
44
|
.s-theme-menu {
|
|
@@ -275,9 +275,9 @@ describe("useRailIconFlight", () => {
|
|
|
275
275
|
const home = animations.find((a) => a.el.textContent === "H");
|
|
276
276
|
expect(home, "the home clone animates").toBeTruthy();
|
|
277
277
|
expect(home!.options.duration).toBe(RAIL_FLIGHT_MS);
|
|
278
|
-
expect(home!.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px)");
|
|
278
|
+
expect(home!.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px) scale(1, 1)");
|
|
279
279
|
const inbox = animations.find((a) => a.el.textContent === "I");
|
|
280
|
-
expect(inbox!.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px)");
|
|
280
|
+
expect(inbox!.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px) scale(1, 1)");
|
|
281
281
|
// SINGLE GLYPH: pure travel — no opacity keyframe anywhere, the
|
|
282
282
|
// clone holds full opacity to the landing (the old end-fade is what
|
|
283
283
|
// double-exposed it against the dissolving-in entering icon).
|
|
@@ -373,7 +373,7 @@ describe("useRailIconFlight", () => {
|
|
|
373
373
|
expect(homeClone.style.width).toBe("8px");
|
|
374
374
|
const home = animations.find((a) => a.el.textContent === "H")!;
|
|
375
375
|
expect(home.keyframes.at(-1)!.transform, "travel halves at zoom 2").toBe(
|
|
376
|
-
"translate(-6px, 0px)",
|
|
376
|
+
"translate(-6px, 0px) scale(1, 1)",
|
|
377
377
|
);
|
|
378
378
|
});
|
|
379
379
|
|
|
@@ -413,7 +413,7 @@ describe("useRailIconFlight", () => {
|
|
|
413
413
|
);
|
|
414
414
|
// The travel stays PHYSICAL: the icon moves 12px left, same as LTR.
|
|
415
415
|
const home = animations.find((a) => a.el.textContent === "H")!;
|
|
416
|
-
expect(home.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px)");
|
|
416
|
+
expect(home.keyframes.at(-1)!.transform).toBe("translate(-12px, 0px) scale(1, 1)");
|
|
417
417
|
vi.mocked(window.getComputedStyle).mockRestore();
|
|
418
418
|
});
|
|
419
419
|
|
|
@@ -439,7 +439,7 @@ describe("useRailIconFlight", () => {
|
|
|
439
439
|
expect(h.swap().getAttribute(RAIL_FLIP_ACTIVE_ATTR)).toBe("");
|
|
440
440
|
for (const a of animations) {
|
|
441
441
|
expect(a.keyframes.at(-1)!.transform, `${a.el.textContent} flies right`).toBe(
|
|
442
|
-
"translate(12px, 0px)",
|
|
442
|
+
"translate(12px, 0px) scale(1, 1)",
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
445
|
expect(animations).toHaveLength(2);
|
|
@@ -643,4 +643,31 @@ describe("useRailIconFlight", () => {
|
|
|
643
643
|
expect(layers, "exactly one flight layer").toHaveLength(1);
|
|
644
644
|
expect(h.swap().hasAttribute(RAIL_FLIP_ACTIVE_ATTR)).toBe(true);
|
|
645
645
|
});
|
|
646
|
+
it("tweens SIZE across the flip (center-aligned) instead of snapping it", async () => {
|
|
647
|
+
const h = mountSwap();
|
|
648
|
+
await h.set(true);
|
|
649
|
+
const { leaving, entering } = dissolvePair(h, true);
|
|
650
|
+
stubRect(h.swap(), rect(0, 0, 240, 400));
|
|
651
|
+
// Collapse: the expanded 16px glyph shrinks into the rail's 10px corner
|
|
652
|
+
// badge (the 2026-11-20 rail group grammar) at a different rect.
|
|
653
|
+
stubIcons(leaving, (key) => rect(32, key === "home" ? 100 : 140, 16, 16));
|
|
654
|
+
stubIcons(entering, (key) =>
|
|
655
|
+
key === "home" ? rect(40, 104, 10, 10) : rect(20, 140, 10, 10),
|
|
656
|
+
);
|
|
657
|
+
|
|
658
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
659
|
+
|
|
660
|
+
const clone = flightLayer(h)!.querySelector<HTMLElement>(
|
|
661
|
+
".hk-sidebar-rail-flight-clone",
|
|
662
|
+
)!;
|
|
663
|
+
expect(clone.style.width, "the clone starts at the leaving size").toBe("16px");
|
|
664
|
+
const anim = animations.find((a) => a.el.textContent === "H")!;
|
|
665
|
+
// Center delta: from center (40,108) to center (45,109) => +5,+1.
|
|
666
|
+
// Scale: 10/16 on both axes — the growth is part of the same curve,
|
|
667
|
+
// so the glyph never snaps between densities.
|
|
668
|
+
expect(anim.keyframes.at(-1)!.transform).toBe(
|
|
669
|
+
"translate(5px, 1px) scale(0.625, 0.625)",
|
|
670
|
+
);
|
|
671
|
+
});
|
|
672
|
+
|
|
646
673
|
});
|
|
@@ -293,9 +293,23 @@ export function useRailIconFlight(
|
|
|
293
293
|
const stage = collectStage(host);
|
|
294
294
|
if (!stage || !stage.pairs.length) return;
|
|
295
295
|
const { pairs } = stage;
|
|
296
|
-
// Identical
|
|
297
|
-
// column): the dissolve alone is already continuous —
|
|
298
|
-
|
|
296
|
+
// Identical geometry (a host whose densities move NEITHER the icon
|
|
297
|
+
// column NOR its size): the dissolve alone is already continuous —
|
|
298
|
+
// no layer. 2026-11-20: size is part of the comparison, because the
|
|
299
|
+
// rail group's icon is a demoted corner badge (10px) while the
|
|
300
|
+
// expanded row's icon is the 16px glyph — position-only pairing
|
|
301
|
+
// would skip the very flight that must carry that growth.
|
|
302
|
+
if (
|
|
303
|
+
!pairs.some(
|
|
304
|
+
({ from, to }) =>
|
|
305
|
+
from.left !== to.left ||
|
|
306
|
+
from.top !== to.top ||
|
|
307
|
+
from.width !== to.width ||
|
|
308
|
+
from.height !== to.height,
|
|
309
|
+
)
|
|
310
|
+
) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
299
313
|
|
|
300
314
|
// Timing is TOKEN-DERIVED: the flight window reads the theme's
|
|
301
315
|
// --duration-normal (the very variable the dissolve consumes), plus
|
|
@@ -350,8 +364,21 @@ export function useRailIconFlight(
|
|
|
350
364
|
const inlineOffset = rtl
|
|
351
365
|
? origin.right - pair.from.right
|
|
352
366
|
: pair.from.left - origin.left;
|
|
353
|
-
|
|
354
|
-
|
|
367
|
+
// CENTER-ALIGNED travel + SIZE TWEEN (2026-11-20 user direction):
|
|
368
|
+
// a glyph whose density size differs (the rail group's demoted
|
|
369
|
+
// corner badge) must grow/shrink CONTINUOUSLY. The clone is painted
|
|
370
|
+
// at the leaving size; transform-origin is the default center, so
|
|
371
|
+
// the translate is the CENTER delta — and the close: both images
|
|
372
|
+
// center-align, so the scale lands the clone's box exactly on the
|
|
373
|
+
// destination instead of drifting by half the size difference.
|
|
374
|
+
const fromCenterX = pair.from.left + pair.from.width / 2;
|
|
375
|
+
const fromCenterY = pair.from.top + pair.from.height / 2;
|
|
376
|
+
const toCenterX = pair.to.left + pair.to.width / 2;
|
|
377
|
+
const toCenterY = pair.to.top + pair.to.height / 2;
|
|
378
|
+
const dx = (toCenterX - fromCenterX) / scale.x;
|
|
379
|
+
const dy = (toCenterY - fromCenterY) / scale.y;
|
|
380
|
+
const sx = pair.from.width ? pair.to.width / pair.from.width : 1;
|
|
381
|
+
const sy = pair.from.height ? pair.to.height / pair.from.height : 1;
|
|
355
382
|
const clone = pair.template.cloneNode(true) as HTMLElement;
|
|
356
383
|
// Neutralize identity: the clone must never match a future pairing
|
|
357
384
|
// query nor the hide rule — it is the flight layer's own citizen.
|
|
@@ -367,10 +394,16 @@ export function useRailIconFlight(
|
|
|
367
394
|
// frame that slips past finish still shows the clone AT the
|
|
368
395
|
// landing rect (same-geometry overlap with the real icon reads
|
|
369
396
|
// as one glyph) instead of snapping back to the origin.
|
|
397
|
+
// Travel + size, full opacity the whole way, `fill: forwards` so a
|
|
398
|
+
// frame that slips past finish still shows the clone AT the landing
|
|
399
|
+
// rect and SIZE (same-geometry overlap with the real icon reads as
|
|
400
|
+
// one glyph) instead of snapping back to the origin — the old
|
|
401
|
+
// translate-only pass snapped the size at landing, which is the
|
|
402
|
+
// double-glyph the 2026-11-20 direction caught.
|
|
370
403
|
const anim = clone.animate(
|
|
371
404
|
[
|
|
372
|
-
{ transform: "translate(
|
|
373
|
-
{ transform: `translate(${dx}px, ${dy}px)` },
|
|
405
|
+
{ transform: "translate(0px, 0px) scale(1, 1)" },
|
|
406
|
+
{ transform: `translate(${dx}px, ${dy}px) scale(${sx}, ${sy})` },
|
|
374
407
|
],
|
|
375
408
|
{
|
|
376
409
|
duration: flightMs,
|
|
@@ -39,7 +39,7 @@ import { BOOT_LANDING_DETAILS_CSS } from "./bootLandingDetailsCss.js";
|
|
|
39
39
|
|
|
40
40
|
/** The default script's bytes, pinned so an accidental default change fails. */
|
|
41
41
|
const DEFAULT_SCRIPT_SHA256 =
|
|
42
|
-
"
|
|
42
|
+
"0ce4b7206fa51cbd83188a5d4e8094bf313eb0fd2ef2c20a475af8d4e621d2b1";
|
|
43
43
|
/** The heal-only script's bytes (the other shape a host may hash). */
|
|
44
44
|
const HEAL_ONLY_SCRIPT_SHA256 =
|
|
45
45
|
"bee06d4652e55708d8b130fec11ff8ede54d4eafb944ef0d18f7be5a76b3dca6";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
36
|
const GOLDEN_DEFAULT_SHA256 =
|
|
37
|
-
"
|
|
37
|
+
"0ce4b7206fa51cbd83188a5d4e8094bf313eb0fd2ef2c20a475af8d4e621d2b1";
|
|
38
38
|
const GOLDEN_HEAL_ONLY_SHA256 =
|
|
39
39
|
"bee06d4652e55708d8b130fec11ff8ede54d4eafb944ef0d18f7be5a76b3dca6";
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
const GOLDEN_DEFAULT_SHA256 =
|
|
51
|
-
"
|
|
51
|
+
"0ce4b7206fa51cbd83188a5d4e8094bf313eb0fd2ef2c20a475af8d4e621d2b1";
|
|
52
52
|
const GOLDEN_HEAL_ONLY_SHA256 =
|
|
53
53
|
"bee06d4652e55708d8b130fec11ff8ede54d4eafb944ef0d18f7be5a76b3dca6";
|
|
54
54
|
|
|
@@ -28,7 +28,7 @@ import { bootRecoveryScript } from "./boot-recovery.js";
|
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
const GOLDEN_DEFAULT_SHA256 =
|
|
31
|
-
"
|
|
31
|
+
"0ce4b7206fa51cbd83188a5d4e8094bf313eb0fd2ef2c20a475af8d4e621d2b1";
|
|
32
32
|
const GOLDEN_HEAL_ONLY_SHA256 =
|
|
33
33
|
"bee06d4652e55708d8b130fec11ff8ede54d4eafb944ef0d18f7be5a76b3dca6";
|
|
34
34
|
|
|
@@ -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, 166 41 55) / 10%);--c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);--c-error-strong: rgb(var(--color-error, 166 41 55) / 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, 166 41 55) / 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, 166 41 55) / 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, 166 41 55)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 255 255 255;--color-on-info: 255 255 255;--color-success-fg: 31 101 48;--color-error-fg: 166 41 55;--color-warning-fg: 137 72 0;--color-info-fg: 0 98 116;--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: 31 101 48;--color-error: 166 41 55;--color-warning: 137 72 0;--color-info: 0 98 116;--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-text-on-danger: rgb(var(--color-on-danger));--hi-color-text-on-success: rgb(var(--color-on-success));--hi-color-text-on-warning: rgb(var(--color-on-warning));--hi-color-text-on-info: rgb(var(--color-on-info));--hi-color-success-fg: rgb(var(--color-success-fg));--hi-color-danger-fg: rgb(var(--color-error-fg));--hi-color-warning-fg: rgb(var(--color-warning-fg));--hi-color-info-fg: rgb(var(--color-info-fg));--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-debug-float: 80000;--hk-z-overlay-root: 90000;--hk-z-hud: 90050;--hk-z-error: 95000;--hk-z-emergency: 96000;--hk-z-titlebar: 100001;--viewport-gutter: 16px;--hk-dock-gap: var(--space-16, 1rem);--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, 166 41 55) / 10%);--c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);--c-error-strong: rgb(var(--color-error, 166 41 55) / 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, 166 41 55) / 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, 166 41 55) / 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, 166 41 55)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 255 255 255;--color-on-info: 255 255 255;--color-success-fg: 31 101 48;--color-error-fg: 166 41 55;--color-warning-fg: 137 72 0;--color-info-fg: 0 98 116;--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: 31 101 48;--color-error: 166 41 55;--color-warning: 137 72 0;--color-info: 0 98 116;--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-text-on-danger: rgb(var(--color-on-danger));--hi-color-text-on-success: rgb(var(--color-on-success));--hi-color-text-on-warning: rgb(var(--color-on-warning));--hi-color-text-on-info: rgb(var(--color-on-info));--hi-color-success-fg: rgb(var(--color-success-fg));--hi-color-danger-fg: rgb(var(--color-error-fg));--hi-color-warning-fg: rgb(var(--color-warning-fg));--hi-color-info-fg: rgb(var(--color-info-fg));--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-text, 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-danger, 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, 166 41 55) / 10%);--c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);--c-error-strong: rgb(var(--color-error, 166 41 55) / 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, 166 41 55) / 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, 166 41 55) / 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, 166 41 55)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 255 255 255;--color-on-info: 255 255 255;--color-success-fg: 31 101 48;--color-error-fg: 166 41 55;--color-warning-fg: 137 72 0;--color-info-fg: 0 98 116;--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: 31 101 48;--color-error: 166 41 55;--color-warning: 137 72 0;--color-info: 0 98 116;--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-text-on-danger: rgb(var(--color-on-danger));--hi-color-text-on-success: rgb(var(--color-on-success));--hi-color-text-on-warning: rgb(var(--color-on-warning));--hi-color-text-on-info: rgb(var(--color-on-info));--hi-color-success-fg: rgb(var(--color-success-fg));--hi-color-danger-fg: rgb(var(--color-error-fg));--hi-color-warning-fg: rgb(var(--color-warning-fg));--hi-color-info-fg: rgb(var(--color-info-fg));--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-sidebar-docked: 20;--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-debug-float: 80000;--hk-z-overlay-root: 90000;--hk-z-hud: 90050;--hk-z-error: 95000;--hk-z-emergency: 96000;--hk-z-titlebar: 100001;--viewport-gutter: 16px;--hk-dock-gap: var(--space-16, 1rem);--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, 166 41 55) / 10%);--c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);--c-error-strong: rgb(var(--color-error, 166 41 55) / 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, 166 41 55) / 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, 166 41 55) / 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, 166 41 55)) 82%, #000);--hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 255 255 255;--color-on-info: 255 255 255;--color-success-fg: 31 101 48;--color-error-fg: 166 41 55;--color-warning-fg: 137 72 0;--color-info-fg: 0 98 116;--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: 31 101 48;--color-error: 166 41 55;--color-warning: 137 72 0;--color-info: 0 98 116;--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-text-on-danger: rgb(var(--color-on-danger));--hi-color-text-on-success: rgb(var(--color-on-success));--hi-color-text-on-warning: rgb(var(--color-on-warning));--hi-color-text-on-info: rgb(var(--color-on-info));--hi-color-success-fg: rgb(var(--color-success-fg));--hi-color-danger-fg: rgb(var(--color-error-fg));--hi-color-warning-fg: rgb(var(--color-warning-fg));--hi-color-info-fg: rgb(var(--color-info-fg));--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-text, 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-danger, 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}}";
|
package/src/scale.scss
CHANGED
|
@@ -88,7 +88,13 @@
|
|
|
88
88
|
--hk-z-fab: 40; /* floating action button */
|
|
89
89
|
--hk-z-toolbar: 50; /* zoom toolbar / local overlay strips */
|
|
90
90
|
--hk-z-header: 100; /* sticky header */
|
|
91
|
-
--hk-z-sidebar: 900;
|
|
91
|
+
--hk-z-sidebar: 900; /* sidebar drawer (temporary/mobile overlay) */
|
|
92
|
+
/* 2026-11-20: the DOCKED desktop sidebar is chrome-adjacent, not an
|
|
93
|
+
* overlay: it paints above the content column (the peek/toggle bands
|
|
94
|
+
* need their own elevation boundary) but BELOW the header and footer
|
|
95
|
+
* bands, so their shadows stay on top of it. The drawer token above
|
|
96
|
+
* remains for the temporary overlay. */
|
|
97
|
+
--hk-z-sidebar-docked: 20; /* sidebar drawer */
|
|
92
98
|
--hk-z-drag: 950; /* element being dragged floats above its row */
|
|
93
99
|
--hk-z-breadcrumb: 2500; /* modal breadcrumb bar */
|
|
94
100
|
--hk-z-float: 3000; /* floating panels: select popout, popover, anchored layer */
|
|
@@ -90,7 +90,13 @@
|
|
|
90
90
|
--hk-z-fab: 40; /* floating action button */
|
|
91
91
|
--hk-z-toolbar: 50; /* zoom toolbar / local overlay strips */
|
|
92
92
|
--hk-z-header: 100; /* sticky header */
|
|
93
|
-
--hk-z-sidebar: 900;
|
|
93
|
+
--hk-z-sidebar: 900; /* sidebar drawer (temporary/mobile overlay) */
|
|
94
|
+
/* 2026-11-20: the DOCKED desktop sidebar is chrome-adjacent, not an
|
|
95
|
+
* overlay: it paints above the content column (the peek/toggle bands
|
|
96
|
+
* need their own elevation boundary) but BELOW the header and footer
|
|
97
|
+
* bands, so their shadows stay on top of it. The drawer token above
|
|
98
|
+
* remains for the temporary overlay. */
|
|
99
|
+
--hk-z-sidebar-docked: 20; /* sidebar drawer */
|
|
94
100
|
--hk-z-drag: 950; /* element being dragged floats above its row */
|
|
95
101
|
--hk-z-breadcrumb: 2500; /* modal breadcrumb bar */
|
|
96
102
|
--hk-z-float: 3000; /* floating panels: select popout, popover, anchored layer */
|