@celestia-island/hikari 0.55.415 → 0.55.416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/package.json +1 -1
  2. package/src/components/HkAffixPicker.scss +2 -2
  3. package/src/components/HkAlert.scss +12 -12
  4. package/src/components/HkAuthSubmitButton.scss +1 -1
  5. package/src/components/HkBlockingToast.scss +7 -7
  6. package/src/components/HkBreadcrumb.scss +3 -3
  7. package/src/components/HkCardList.scss +3 -3
  8. package/src/components/HkColorSchemeEditor.test.ts +179 -0
  9. package/src/components/HkColorSchemeEditor.tsx +57 -2
  10. package/src/components/HkCookieConsent.scss +1 -1
  11. package/src/components/HkCurrencySelect.scss +2 -2
  12. package/src/components/HkDiffViewer.scss +5 -5
  13. package/src/components/HkEditableTable.scss +1 -1
  14. package/src/components/HkEmergencySnoozeTray.scss +2 -2
  15. package/src/components/HkFileBrowserDialog.scss +2 -2
  16. package/src/components/HkFileField.scss +3 -3
  17. package/src/components/HkFilePickerField.scss +2 -2
  18. package/src/components/HkFilterPanel.scss +1 -1
  19. package/src/components/HkIcon.scss +3 -3
  20. package/src/components/HkIconButtonGroup.scss +1 -1
  21. package/src/components/HkIconChip.scss +4 -4
  22. package/src/components/HkInput.scss +3 -3
  23. package/src/components/HkLogWindow.scss +2 -2
  24. package/src/components/HkMenu.scss +1 -1
  25. package/src/components/HkMessageBox.scss +2 -2
  26. package/src/components/HkMoneyInput.scss +2 -2
  27. package/src/components/HkNotificationBell.scss +3 -3
  28. package/src/components/HkOtpInput.scss +2 -2
  29. package/src/components/HkPasswordSurface.scss +12 -12
  30. package/src/components/HkPersistentToast.scss +3 -3
  31. package/src/components/HkPillToggleGroup.scss +6 -6
  32. package/src/components/HkPillToggleGroup.test.tsx +12 -7
  33. package/src/components/HkPopupSelect.scss +3 -3
  34. package/src/components/HkProgressBar.scss +1 -1
  35. package/src/components/HkProgressBar.styles.test.ts +1 -1
  36. package/src/components/HkProgressRing.scss +2 -2
  37. package/src/components/HkQuote.scss +3 -3
  38. package/src/components/HkRangeRibbon.scss +1 -1
  39. package/src/components/HkSecretRevealModal.scss +1 -1
  40. package/src/components/HkSelect.scss +3 -3
  41. package/src/components/HkSelectionGrid.scss +4 -4
  42. package/src/components/HkSelectionGrid.test.tsx +183 -54
  43. package/src/components/HkSelectionWaterfall.scss +4 -4
  44. package/src/components/HkStatCard.scss +4 -4
  45. package/src/components/HkStatusBar.tsx +9 -9
  46. package/src/components/HkStatusRow.scss +3 -3
  47. package/src/components/HkStepGuide.scss +2 -2
  48. package/src/components/HkSwitch.scss +1 -1
  49. package/src/components/HkTag.scss +12 -12
  50. package/src/components/HkTemplateField.scss +1 -1
  51. package/src/components/HkTextarea.scss +1 -1
  52. package/src/components/HkToast.scss +5 -5
  53. package/src/components/HkTree.scss +2 -2
  54. package/src/components/_menu-item.scss +4 -4
  55. package/src/plugins/boot-recovery.details.test.ts +1 -1
  56. package/src/plugins/boot-recovery.diagnostics.test.ts +1 -1
  57. package/src/plugins/boot-recovery.error-context.test.ts +1 -1
  58. package/src/plugins/boot-recovery.locales.test.ts +1 -1
  59. package/src/plugins/bootLandingCss.js +1 -1
  60. package/src/plugins/bootLandingDetailsCss.js +1 -1
  61. package/src/styles/admin-tokens.scss +16 -16
  62. package/src/styles/theme/channels.scss +23 -13
  63. package/src/styles/theme/scrollbar.scss +3 -3
  64. package/src/styles/tokenInventory.test.ts +19 -0
  65. package/src/theme/_field.scss +3 -3
  66. package/src/theme/index.ts +1 -1
  67. package/src/theme/presets.ts +72 -8
  68. package/src/theme/solidInk.contract.test.ts +65 -6
  69. package/src/tokens.scss +23 -13
@@ -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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 0 0 0;--color-on-info: 0 0 0;--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-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-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, 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-on-danger: 255 255 255;--color-on-success: 255 255 255;--color-on-warning: 0 0 0;--color-on-info: 0 0 0;--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-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-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}}";
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))}.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}}";
@@ -12,4 +12,4 @@
12
12
  // purpose: that sheet rides every generated script, and the module's
13
13
  // BYTE-COMPAT contract keeps an unconfigured host's script byte-identical.
14
14
  // bootLandingCss.test.ts recompiles the entry and fails on drift.
15
- export const BOOT_LANDING_DETAILS_CSS = ".s-tool-json-tree{--jt-toggle: 14px;--jt-fold-duration: var(--hi-duration-fast, var(--duration-fast, 0.15s));--jt-fold-ease: var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));margin:var(--space-4, 0.25rem) 0;padding:var(--space-6, 0.375rem);font-family:var(--font-mono, ui-monospace, \"SF Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", \"Liberation Mono\", \"PingFang SC\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", monospace);font-size:var(--text-2xs, 0.625rem);line-height:1.55;background:rgb(var(--color-surface)/0.5);border-radius:var(--radius-sm, 4px);border:1px solid var(--border-faint, rgb(var(--color-border)/10%));-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;max-height:320px;overflow:auto;scrollbar-width:none}.s-tool-json-tree::-webkit-scrollbar{display:none}.hk-modal-body-scroll .s-tool-json-tree,.hk-select-sheet-list .s-tool-json-tree,.hk-select-popout .s-tool-json-tree,.hk-popover-panel .s-tool-json-tree,.hk-drawer-body .s-tool-json-tree{max-height:none}.s-jt-row{-webkit-user-select:none;user-select:none;display:flex;align-items:baseline;min-height:1.55em;padding:0 var(--space-6, 0.375rem) 0 0;border-radius:var(--radius-xs, 2px);cursor:default}.s-tool-json-tree.s-jt-selectable .s-jt-row{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.s-jt-row[data-parent]{cursor:pointer}.s-jt-row:hover{background:rgb(var(--color-primary)/4%)}.s-jt-toggle{display:inline-flex;align-items:center;justify-content:center;width:var(--jt-toggle, 14px);height:var(--jt-toggle, 14px);flex-shrink:0;margin-inline-end:var(--space-4, 0.25rem);align-self:flex-start;margin-block-start:max(0px,(1.55em - var(--jt-toggle, 14px))/2)}.s-jt-toggle[data-parent]{color:rgb(var(--color-muted));border-radius:var(--radius-xs, 2px)}.s-jt-chevron{transition:transform var(--jt-fold-duration, var(--duration-fast, 0.15s)) var(--jt-fold-ease, var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)))}.s-jt-group[data-open]>.s-jt-row .s-jt-chevron{transform:rotate(90deg)}.s-jt-leaf{display:block;width:4px;height:4px;border-radius:50%;background:rgb(var(--color-muted)/25%)}.s-jt-group{display:flex;flex-direction:column}.s-jt-children{position:relative}.s-jt-children::before{content:\"\";position:absolute;left:var(--guide-left, 11px);top:0;bottom:2px;width:1px;background:var(--border-faint, rgb(var(--color-border)/10%))}.s-jt-key{color:rgb(var(--color-primary))}.s-jt-colon{color:rgb(var(--color-muted));margin-inline-end:var(--space-4, 0.25rem)}.s-jv-null{color:rgb(var(--color-muted));font-style:italic}.s-jv-str{color:var(--code-string, #98c379);word-break:break-all}.s-jv-num{color:var(--code-number, #d19a66)}.s-jv-bool{color:var(--code-keyword, #c678dd)}.s-jv-str-raw{color:var(--code-string, #98c379);white-space:pre-wrap;word-break:break-all}.s-jt-type{color:rgb(var(--color-muted)/0.6);font-size:var(--text-3xs, 0.5rem);font-style:italic;font-weight:400;margin-inline-start:var(--space-8, 0.5rem)}.s-jt-badge{color:rgb(var(--color-muted));font-size:var(--text-3xs, 0.5rem);font-weight:500;background:rgb(var(--color-surface)/0.6);border:1px solid var(--border-faint, rgb(var(--color-border)/10%));border-radius:var(--radius-sm, 4px);padding:0 .3em;line-height:1.4}.s-jt-badge.is-open{background:rgba(0,0,0,0);border-color:rgba(0,0,0,0);font-weight:400}.s-jt-indent{flex-shrink:0;width:var(--jt-toggle, 14px)}.s-jt-preview{color:rgb(var(--color-muted));font-size:inherit;font-weight:400;opacity:.7}.s-jt-preview,.s-jt-clamp{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(prefers-reduced-motion: reduce){.s-jt-chevron{transition:none}}.hk-scrollbar-track{position:absolute;z-index:10;background:rgba(0,0,0,0);pointer-events:none;opacity:0;transition:opacity var(--hi-duration-fast, 0.15s) ease}.hk-scrollbar-track[data-axis=horizontal]{left:4px;right:4px;bottom:2px;height:6px}.hk-scrollbar-track:not([data-axis=horizontal]){top:4px;bottom:4px;right:2px;width:6px}.hk-scrollbar-track.is-scrolling,.hk-scrollbar-track.is-hovering{opacity:1;pointer-events:auto}.hk-scrollbar-track.has-markers:not([data-axis=horizontal]){width:14px;border-radius:2px;background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 12%, transparent);opacity:1}.hk-scrollbar-thumb{z-index:2}.hk-scrollbar-thumb{position:absolute;border-radius:3px;background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 35%, transparent);transition:background var(--hi-duration-fast, 0.15s) ease}.is-hovering .hk-scrollbar-thumb,.hk-scrollbar-thumb.is-dragging{background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 55%, transparent)}.hk-scrollbar-track[data-axis=horizontal] .hk-scrollbar-thumb{top:0;left:0;height:100%;min-width:20px}.hk-scrollbar-track:not([data-axis=horizontal]) .hk-scrollbar-thumb{top:0;left:0;width:100%;min-height:20px}.hk-scrollbar-marker{position:absolute;z-index:1;left:0;width:100%;border-radius:2px;background:var(--hi-color-muted, rgb(118, 122, 128));pointer-events:auto;cursor:pointer}.hk-scrollbar-marker[data-side=start]{left:0;right:auto;width:34%}.hk-scrollbar-marker[data-side=end]{left:auto;right:0;width:34%}.hk-scrollbar-marker:hover{outline:1px solid color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 60%, transparent);outline-offset:-1px}.hk-scrollbar-marker[data-kind=added]{background:var(--hi-color-success, #0eb840)}.hk-scrollbar-marker[data-kind=deleted]{background:var(--hi-color-danger, #ff4c00)}.hk-scrollbar-marker[data-kind=modified]{background:var(--hi-color-warning, #eed677)}";
15
+ export const BOOT_LANDING_DETAILS_CSS = ".s-tool-json-tree{--jt-toggle: 14px;--jt-fold-duration: var(--hi-duration-fast, var(--duration-fast, 0.15s));--jt-fold-ease: var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));margin:var(--space-4, 0.25rem) 0;padding:var(--space-6, 0.375rem);font-family:var(--font-mono, ui-monospace, \"SF Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", \"Liberation Mono\", \"PingFang SC\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", monospace);font-size:var(--text-2xs, 0.625rem);line-height:1.55;background:rgb(var(--color-surface)/0.5);border-radius:var(--radius-sm, 4px);border:1px solid var(--border-faint, rgb(var(--color-border)/10%));-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;max-height:320px;overflow:auto;scrollbar-width:none}.s-tool-json-tree::-webkit-scrollbar{display:none}.hk-modal-body-scroll .s-tool-json-tree,.hk-select-sheet-list .s-tool-json-tree,.hk-select-popout .s-tool-json-tree,.hk-popover-panel .s-tool-json-tree,.hk-drawer-body .s-tool-json-tree{max-height:none}.s-jt-row{-webkit-user-select:none;user-select:none;display:flex;align-items:baseline;min-height:1.55em;padding:0 var(--space-6, 0.375rem) 0 0;border-radius:var(--radius-xs, 2px);cursor:default}.s-tool-json-tree.s-jt-selectable .s-jt-row{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.s-jt-row[data-parent]{cursor:pointer}.s-jt-row:hover{background:rgb(var(--color-primary)/4%)}.s-jt-toggle{display:inline-flex;align-items:center;justify-content:center;width:var(--jt-toggle, 14px);height:var(--jt-toggle, 14px);flex-shrink:0;margin-inline-end:var(--space-4, 0.25rem);align-self:flex-start;margin-block-start:max(0px,(1.55em - var(--jt-toggle, 14px))/2)}.s-jt-toggle[data-parent]{color:rgb(var(--color-muted));border-radius:var(--radius-xs, 2px)}.s-jt-chevron{transition:transform var(--jt-fold-duration, var(--duration-fast, 0.15s)) var(--jt-fold-ease, var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)))}.s-jt-group[data-open]>.s-jt-row .s-jt-chevron{transform:rotate(90deg)}.s-jt-leaf{display:block;width:4px;height:4px;border-radius:50%;background:rgb(var(--color-muted)/25%)}.s-jt-group{display:flex;flex-direction:column}.s-jt-children{position:relative}.s-jt-children::before{content:\"\";position:absolute;left:var(--guide-left, 11px);top:0;bottom:2px;width:1px;background:var(--border-faint, rgb(var(--color-border)/10%))}.s-jt-key{color:rgb(var(--color-primary))}.s-jt-colon{color:rgb(var(--color-muted));margin-inline-end:var(--space-4, 0.25rem)}.s-jv-null{color:rgb(var(--color-muted));font-style:italic}.s-jv-str{color:var(--code-string, #98c379);word-break:break-all}.s-jv-num{color:var(--code-number, #d19a66)}.s-jv-bool{color:var(--code-keyword, #c678dd)}.s-jv-str-raw{color:var(--code-string, #98c379);white-space:pre-wrap;word-break:break-all}.s-jt-type{color:rgb(var(--color-muted)/0.6);font-size:var(--text-3xs, 0.5rem);font-style:italic;font-weight:400;margin-inline-start:var(--space-8, 0.5rem)}.s-jt-badge{color:rgb(var(--color-muted));font-size:var(--text-3xs, 0.5rem);font-weight:500;background:rgb(var(--color-surface)/0.6);border:1px solid var(--border-faint, rgb(var(--color-border)/10%));border-radius:var(--radius-sm, 4px);padding:0 .3em;line-height:1.4}.s-jt-badge.is-open{background:rgba(0,0,0,0);border-color:rgba(0,0,0,0);font-weight:400}.s-jt-indent{flex-shrink:0;width:var(--jt-toggle, 14px)}.s-jt-preview{color:rgb(var(--color-muted));font-size:inherit;font-weight:400;opacity:.7}.s-jt-preview,.s-jt-clamp{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(prefers-reduced-motion: reduce){.s-jt-chevron{transition:none}}.hk-scrollbar-track{position:absolute;z-index:10;background:rgba(0,0,0,0);pointer-events:none;opacity:0;transition:opacity var(--hi-duration-fast, 0.15s) ease}.hk-scrollbar-track[data-axis=horizontal]{left:4px;right:4px;bottom:2px;height:6px}.hk-scrollbar-track:not([data-axis=horizontal]){top:4px;bottom:4px;right:2px;width:6px}.hk-scrollbar-track.is-scrolling,.hk-scrollbar-track.is-hovering{opacity:1;pointer-events:auto}.hk-scrollbar-track.has-markers:not([data-axis=horizontal]){width:14px;border-radius:2px;background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 12%, transparent);opacity:1}.hk-scrollbar-thumb{z-index:2}.hk-scrollbar-thumb{position:absolute;border-radius:3px;background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 35%, transparent);transition:background var(--hi-duration-fast, 0.15s) ease}.is-hovering .hk-scrollbar-thumb,.hk-scrollbar-thumb.is-dragging{background:color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 55%, transparent)}.hk-scrollbar-track[data-axis=horizontal] .hk-scrollbar-thumb{top:0;left:0;height:100%;min-width:20px}.hk-scrollbar-track:not([data-axis=horizontal]) .hk-scrollbar-thumb{top:0;left:0;width:100%;min-height:20px}.hk-scrollbar-marker{position:absolute;z-index:1;left:0;width:100%;border-radius:2px;background:var(--hi-color-muted, rgb(118, 122, 128));pointer-events:auto;cursor:pointer}.hk-scrollbar-marker[data-side=start]{left:0;right:auto;width:34%}.hk-scrollbar-marker[data-side=end]{left:auto;right:0;width:34%}.hk-scrollbar-marker:hover{outline:1px solid color-mix(in srgb, var(--hi-color-muted, rgb(118, 122, 128)) 60%, transparent);outline-offset:-1px}.hk-scrollbar-marker[data-kind=added]{background:var(--hi-color-success, #1f6530)}.hk-scrollbar-marker[data-kind=deleted]{background:var(--hi-color-danger, #a62937)}.hk-scrollbar-marker[data-kind=modified]{background:var(--hi-color-warning, #894800)}";
@@ -53,10 +53,10 @@
53
53
  --hi-color-bg-elevated: rgb(var(--color-surface, 255 255 255));
54
54
  --hi-color-bg-subtle: rgb(var(--color-surface, 255 255 255) / 0.5);
55
55
  --hi-secondary-bg: rgb(var(--color-surface, 255 255 255) / 0.5);
56
- --hi-color-danger: rgb(var(--color-error, 247 118 142));
57
- --hi-color-success: rgb(var(--color-success, 14 184 64));
58
- --hi-color-warning: rgb(var(--color-warning, 238 214 119));
59
- --hi-color-info: rgb(var(--color-info, 106 190 214));
56
+ --hi-color-danger: rgb(var(--color-error, 166 41 55));
57
+ --hi-color-success: rgb(var(--color-success, 31 101 48));
58
+ --hi-color-warning: rgb(var(--color-warning, 137 72 0));
59
+ --hi-color-info: rgb(var(--color-info, 0 98 116));
60
60
  --hi-color-black-10: rgb(0 0 0 / 0.1);
61
61
  --hi-color-white-5: rgb(255 255 255 / 0.05);
62
62
  --hi-color-white-10: rgb(255 255 255 / 0.1);
@@ -345,7 +345,7 @@
345
345
  display: inline-flex;
346
346
  align-items: center;
347
347
  gap: 2px;
348
- color: rgb(var(--color-warning));
348
+ color: var(--hi-color-warning-fg, rgb(var(--color-warning)));
349
349
  font-weight: 600;
350
350
  font-variant-numeric: tabular-nums;
351
351
  line-height: 1;
@@ -1235,9 +1235,9 @@
1235
1235
  align-items: flex-start;
1236
1236
  gap: var(--space-8, 0.5rem);
1237
1237
  font-size: var(--text-xs, 0.75rem);
1238
- color: var(--hi-color-danger, #f85149);
1239
- background: color-mix(in srgb, var(--hi-color-danger, rgb(247 118 142)) 10%, transparent);
1240
- border: 1px solid color-mix(in srgb, var(--hi-color-danger, rgb(247 118 142)) 20%, transparent);
1238
+ color: var(--hi-color-danger-fg, #a62937);
1239
+ background: color-mix(in srgb, var(--hi-color-danger, rgb(166 41 55)) 10%, transparent);
1240
+ border: 1px solid color-mix(in srgb, var(--hi-color-danger, rgb(166 41 55)) 20%, transparent);
1241
1241
  border-radius: var(--radius-md, 8px);
1242
1242
  padding: var(--space-8, 0.5rem) var(--space-12, 0.75rem);
1243
1243
  }
@@ -1314,7 +1314,7 @@
1314
1314
 
1315
1315
  .s-auth-invite-banner {
1316
1316
  font-size: var(--text-xs, 0.75rem);
1317
- color: var(--hi-color-warning, #ffa500);
1317
+ color: var(--hi-color-warning-fg, #894800);
1318
1318
  background: color-mix(in srgb, var(--hi-color-warning, #ffa500) 10%, transparent);
1319
1319
  border: 1px solid color-mix(in srgb, var(--hi-color-warning, #ffa500) 20%, transparent);
1320
1320
  border-radius: var(--radius-md, 8px);
@@ -1323,9 +1323,9 @@
1323
1323
  }
1324
1324
 
1325
1325
  .s-auth-invite-banner.expired {
1326
- color: var(--hi-color-danger, #f85149);
1327
- background: color-mix(in srgb, var(--hi-color-danger, rgb(247 118 142)) 10%, transparent);
1328
- border-color: color-mix(in srgb, var(--hi-color-danger, rgb(247 118 142)) 20%, transparent);
1326
+ color: var(--hi-color-danger-fg, #a62937);
1327
+ background: color-mix(in srgb, var(--hi-color-danger, rgb(166 41 55)) 10%, transparent);
1328
+ border-color: color-mix(in srgb, var(--hi-color-danger, rgb(166 41 55)) 20%, transparent);
1329
1329
  }
1330
1330
 
1331
1331
  @media (max-width: 480px) {
@@ -1349,7 +1349,7 @@
1349
1349
  }
1350
1350
 
1351
1351
  .a-text-danger {
1352
- color: var(--hi-color-danger, rgb(247 118 142));
1352
+ color: var(--hi-color-danger-fg, #a62937);
1353
1353
  }
1354
1354
 
1355
1355
  .a-icon-inline {
@@ -1357,11 +1357,11 @@
1357
1357
  }
1358
1358
 
1359
1359
  .a-icon-success {
1360
- color: var(--color-success, rgb(14 184 64));
1360
+ color: var(--color-success, rgb(31 101 48));
1361
1361
  }
1362
1362
 
1363
1363
  .a-icon-warning {
1364
- color: var(--color-warning, rgb(238 214 119));
1364
+ color: var(--color-warning, rgb(137 72 0));
1365
1365
  }
1366
1366
 
1367
1367
  .a-bg-secondary {
@@ -1379,7 +1379,7 @@
1379
1379
 
1380
1380
  .a-error-banner {
1381
1381
  background: var(--hi-color-danger, rgba(239, 68, 68, 0.1));
1382
- border: 1px solid color-mix(in srgb, var(--hi-color-danger, rgb(247 118 142)) 20%, transparent);
1382
+ border: 1px solid color-mix(in srgb, var(--hi-color-danger, rgb(166 41 55)) 20%, transparent);
1383
1383
  }
1384
1384
 
1385
1385
  .a-tabular-nums {
@@ -37,15 +37,15 @@
37
37
  --c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);
38
38
  --c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);
39
39
  --c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);
40
- --c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);
41
- --c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);
42
- --c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);
40
+ --c-error-dim: rgb(var(--color-error, 166 41 55) / 10%);
41
+ --c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);
42
+ --c-error-strong: rgb(var(--color-error, 166 41 55) / 50%);
43
43
  --shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);
44
44
  --shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);
45
45
  --shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);
46
- --shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);
46
+ --shadow-button-danger: 0 4px 14px rgb(var(--color-error, 166 41 55) / 35%);
47
47
  --shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);
48
- --shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);
48
+ --shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 166 41 55) / 12%);
49
49
  --border-input: rgb(var(--color-border, 100 100 100) / 15%);
50
50
  --border-faint: rgb(var(--color-border, 100 100 100) / 10%);
51
51
  --border-subtle: rgb(var(--color-border, 100 100 100) / 12%);
@@ -69,8 +69,8 @@
69
69
  --hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);
70
70
  --hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);
71
71
  --hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);
72
- --hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);
73
- --hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);
72
+ --hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 166 41 55)) 82%, #000);
73
+ --hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 82%, #000);
74
74
  --hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));
75
75
  --hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));
76
76
  --hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255));
@@ -92,8 +92,14 @@
92
92
  * re-derives these per tone from its own fills (see tokensToCSSVars). */
93
93
  --color-on-danger: 255 255 255;
94
94
  --color-on-success: 255 255 255;
95
- --color-on-warning: 0 0 0;
96
- --color-on-info: 0 0 0;
95
+ --color-on-warning: 255 255 255;
96
+ --color-on-info: 255 255 255;
97
+ /* Per-tone page-readable fills (readable_on vs the page): the canonical
98
+ * fills themselves — they read on the light page as-is. */
99
+ --color-success-fg: 31 101 48;
100
+ --color-error-fg: 166 41 55;
101
+ --color-warning-fg: 137 72 0;
102
+ --color-info-fg: 0 98 116;
97
103
  --color-secondary: 81 154 115;
98
104
  --color-accent: 247 181 0;
99
105
  --color-text: 30 30 30;
@@ -116,10 +122,10 @@
116
122
  --color-selected-bg: 191 218 242;
117
123
  --color-selected-text: 30 30 30;
118
124
  --color-status-bar-bg: 240 244 248;
119
- --color-success: 14 184 64;
120
- --color-error: 247 118 142;
121
- --color-warning: 238 214 119;
122
- --color-info: 106 190 214;
125
+ --color-success: 31 101 48;
126
+ --color-error: 166 41 55;
127
+ --color-warning: 137 72 0;
128
+ --color-info: 0 98 116;
123
129
 
124
130
  --hi-color-primary: rgb(var(--color-primary));
125
131
  --hi-color-secondary: rgb(var(--color-secondary));
@@ -146,6 +152,10 @@
146
152
  --hi-color-text-on-success: rgb(var(--color-on-success));
147
153
  --hi-color-text-on-warning: rgb(var(--color-on-warning));
148
154
  --hi-color-text-on-info: rgb(var(--color-on-info));
155
+ --hi-color-success-fg: rgb(var(--color-success-fg));
156
+ --hi-color-danger-fg: rgb(var(--color-error-fg));
157
+ --hi-color-warning-fg: rgb(var(--color-warning-fg));
158
+ --hi-color-info-fg: rgb(var(--color-info-fg));
149
159
  /* Surface-layer aliases the runtime writes on every apply — seeded so
150
160
  * no-JS consumers resolve them instead of invalid var(). */
151
161
  --hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);
@@ -156,14 +156,14 @@
156
156
  }
157
157
 
158
158
  &[data-kind="added"] {
159
- background: var(--hi-color-success, #0eb840);
159
+ background: var(--hi-color-success, #1f6530);
160
160
  }
161
161
 
162
162
  &[data-kind="deleted"] {
163
- background: var(--hi-color-danger, #ff4c00);
163
+ background: var(--hi-color-danger, #a62937);
164
164
  }
165
165
 
166
166
  &[data-kind="modified"] {
167
- background: var(--hi-color-warning, #eed677);
167
+ background: var(--hi-color-warning, #894800);
168
168
  }
169
169
  }
@@ -228,9 +228,16 @@ describe("theme token inventory", () => {
228
228
  "--hi-color-muted": hexFromSeed("--color-muted"),
229
229
  "--hi-color-success": hexFromSeed("--color-success"),
230
230
  "--hi-color-error": hexFromSeed("--color-error"),
231
+ "--hi-color-danger": hexFromSeed("--color-error"),
231
232
  "--hi-color-warning": hexFromSeed("--color-warning"),
232
233
  "--hi-color-info": hexFromSeed("--color-info"),
233
234
  "--hi-color-focused-border": hexFromSeed("--color-focused-border"),
235
+ // The fg tier: each entry must map to its OWN tone channel — a wrong
236
+ // tone name (error-fg vs danger-fg) is exactly the round-7 S1 class.
237
+ "--hi-color-success-fg": hexFromSeed("--color-success-fg"),
238
+ "--hi-color-danger-fg": hexFromSeed("--color-error-fg"),
239
+ "--hi-color-warning-fg": hexFromSeed("--color-warning-fg"),
240
+ "--hi-color-info-fg": hexFromSeed("--color-info-fg"),
234
241
  };
235
242
  const KNOWN_DEVIANT_FALLBACKS = new Set<string>([]);
236
243
 
@@ -239,9 +246,21 @@ describe("theme token inventory", () => {
239
246
  const deviants: string[] = [];
240
247
  for (const f of files) {
241
248
  const css = read(resolve(componentsDir, f));
249
+ // Known fg-tier tokens: a reference to any OTHER -fg name is the
250
+ // round-7 S1 class (undefined var → silent raw-fill fallback).
251
+ const KNOWN_FG = new Set([
252
+ "--hi-color-success-fg",
253
+ "--hi-color-danger-fg",
254
+ "--hi-color-warning-fg",
255
+ "--hi-color-info-fg",
256
+ ]);
242
257
  for (const m of css.matchAll(/var\((--hi-color-[a-z0-9-]+),\s*(#[0-9a-fA-F]{3,8})\)/g)) {
243
258
  const token = m[1];
244
259
  const fallback = m[2].toLowerCase();
260
+ if (token.endsWith("-fg") && !KNOWN_FG.has(token)) {
261
+ deviants.push(`${f}: var(${token}, ${m[2]}) — undefined fg token`);
262
+ continue;
263
+ }
245
264
  const canonical = CANONICAL[token];
246
265
  if (!canonical) continue;
247
266
  if (fallback !== canonical && !KNOWN_DEVIANT_FALLBACKS.has(fallback)) {
@@ -15,7 +15,7 @@
15
15
 
16
16
  @mixin field-required {
17
17
  margin-left: var(--space-2);
18
- color: rgb(var(--color-error));
18
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
19
19
  }
20
20
 
21
21
  @mixin field-box {
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  @mixin field-box-error-focused {
53
- border-color: rgb(var(--color-error));
53
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
54
54
  box-shadow: var(--shadow-focus-error);
55
55
  }
56
56
 
@@ -75,7 +75,7 @@
75
75
  @mixin field-error-msg {
76
76
  margin-top: var(--space-4);
77
77
  font-size: var(--text-xs);
78
- color: rgb(var(--color-error));
78
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
79
79
  }
80
80
 
81
81
  @mixin field-hint {
@@ -1,7 +1,7 @@
1
1
  export { initTheme, useTheme } from "./useTheme";
2
2
  export { initFontContext, applyFontContext, resetFontContext, useFontContext, HIKARI_FONT_SANS, HIKARI_FONT_MONO, HIKARI_FONT_READING } from "./fontContext";
3
3
  export type { FontContextOverrides } from "./fontContext";
4
- export { themePresets, stockDefaultPreset, tokensToCSSVars, getThemeTokens, loadCustomThemes, saveCustomThemes, addCustomTheme, removeCustomTheme } from "./presets";
4
+ export { themePresets, stockDefaultPreset, tokensToCSSVars, getThemeTokens, loadCustomThemes, saveCustomThemes, addCustomTheme, removeCustomTheme, solidInk } from "./presets";
5
5
  export { deriveSemanticPalette, CANONICAL_SEMANTIC, contrastRatio, hueDistance, rgbToOklch, oklchToRgb } from "./semanticPalette";
6
6
  export type { SemanticPalette, SemanticFills, OKLCH } from "./semanticPalette";
7
7
  export type { ThemeTokenRGB, ThemeSchemeTokens, ThemePreset, CustomThemePreset, ThemeId, ThemeMode, ThemeTokenValue, ThemeTokenGroupValues, ThemeTokenGroupModes } from "./presets";
@@ -1,4 +1,5 @@
1
1
  import { readStorageItem, writeStorageItem } from "./safeStorage";
2
+ import { rgbToOklch, oklchToRgb, contrastRatio } from "../theme/semanticPalette";
2
3
 
3
4
  export interface ThemeTokenRGB {
4
5
  r: number;
@@ -165,10 +166,11 @@ export const themePresets: Record<ThemeId, ThemePreset> = {
165
166
  selectedBackground: rgb(70, 70, 85),
166
167
  selectedText: rgb(248, 248, 250),
167
168
  statusBarBackground: rgb(34, 40, 54),
168
- success: rgb(163, 190, 140),
169
- error: rgb(191, 97, 106),
170
- warning: rgb(208, 135, 112),
171
- info: rgb(136, 192, 208),
169
+ // Same canonical family as light — solid fills ignore the mode.
170
+ success: rgb(31, 101, 48),
171
+ error: rgb(166, 41, 55),
172
+ warning: rgb(137, 72, 0),
173
+ info: rgb(0, 98, 116),
172
174
  // The pale primary puts dark ink on solid fills (white is ~1.9:1).
173
175
  onSolidText: rgb(46, 52, 64),
174
176
  onSolidIcon: rgb(46, 52, 64),
@@ -186,10 +188,14 @@ export const themePresets: Record<ThemeId, ThemePreset> = {
186
188
  selectedBackground: rgb(200, 200, 205),
187
189
  selectedText: rgb(40, 40, 45),
188
190
  statusBarBackground: rgb(230, 230, 225),
189
- success: rgb(16, 185, 129),
190
- error: rgb(239, 68, 68),
191
- warning: rgb(245, 158, 11),
192
- info: rgb(6, 182, 212),
191
+ // Semantic quartet — the SHARED canonical family (solid fills ignore
192
+ // the light/dark config, user direction), lightness derived so the
193
+ // house white ink clears 7:1. See hikari-palette themes.rs for the
194
+ // same trio on the components side.
195
+ success: rgb(31, 101, 48),
196
+ error: rgb(166, 41, 55),
197
+ warning: rgb(137, 72, 0),
198
+ info: rgb(0, 98, 116),
193
199
  onSolidText: rgb(255, 255, 255),
194
200
  onSolidIcon: rgb(255, 255, 255),
195
201
  },
@@ -243,6 +249,42 @@ function contrastColor({ r, g, b }: ThemeTokenRGB): ThemeTokenRGB {
243
249
  * dark red AND a pale amber at once, which is exactly how the toast
244
250
  * copy/close glyphs went near-black on themed bands (2026-11-12 report).
245
251
  */
252
+ /**
253
+ * This colour as TEXT on `bg`: itself when it already clears `target`,
254
+ * otherwise the nearest OKLCH-lightness step that does. Hue is preserved;
255
+ * chroma is only given up where the sRGB gamut forces it (the same trade the
256
+ * fill derivation makes). This is what lets a semantic FILL stay
257
+ * mode-independent while whatever paints it as text stays readable.
258
+ */
259
+ function readableOn(
260
+ fg: ThemeTokenRGB,
261
+ backgrounds: ThemeTokenRGB[],
262
+ target = 4.5,
263
+ ): ThemeTokenRGB {
264
+ // Already readable everywhere it can land: keep the fill's own chroma.
265
+ if (backgrounds.every((bg) => contrastRatio(fg, bg) >= target)) return fg;
266
+ const { l, c, h } = rgbToOklch(fg);
267
+ let best: ThemeTokenRGB | null = null;
268
+ let bestDist = Infinity;
269
+ for (let step = 0; step <= 400; step++) {
270
+ const li = step / 400;
271
+ // oklchToRgb reduces chroma into the sRGB gamut internally.
272
+ const candidate = oklchToRgb({ l: li, c, h });
273
+ if (backgrounds.every((bg) => contrastRatio(candidate, bg) >= target)) {
274
+ const dist = Math.abs(li - l);
275
+ if (dist < bestDist) {
276
+ bestDist = dist;
277
+ best = candidate;
278
+ }
279
+ }
280
+ }
281
+ const white = { r: 255, g: 255, b: 255 };
282
+ const black = { r: 0, g: 0, b: 0 };
283
+ const fallback =
284
+ contrastRatio(white, backgrounds[0]) >= contrastRatio(black, backgrounds[0]) ? white : black;
285
+ return best ?? fallback;
286
+ }
287
+
246
288
  export function solidInk({ r, g, b }: ThemeTokenRGB): ThemeTokenRGB {
247
289
  // 0.65, not the legacy 0.55: the green channel dominates this metric
248
290
  // (0.7152), so ordinary greens/cyans like #10B981 / #06B6D4 sat just over
@@ -287,6 +329,22 @@ export function tokensToCSSVars(
287
329
  const onSuccess = tokens.onSuccess ?? solidInk(tokens.success);
288
330
  const onWarning = tokens.onWarning ?? solidInk(tokens.warning);
289
331
  const onInfo = tokens.onInfo ?? solidInk(tokens.info);
332
+ // Per-tone PAGE-READABLE fills: a semantic slot is a solid fill and ignores
333
+ // the mode (user direction), but components that paint it as TEXT (tags,
334
+ // links) sit on the page or on a tint of the fill — the fill itself can be
335
+ // unreadable there. This is the lightness-move that fixes it, per mode.
336
+ // The chip backdrop is color-mix(fill 10%, transparent) over the page:
337
+ // 10% fill + 90% background.
338
+ // The chip can land on the page background or on a card surface — the fg
339
+ // must clear its tint against BOTH.
340
+ const tint = (fill: ThemeTokenRGB): ThemeTokenRGB =>
341
+ mixToken(tokens.background, fill, 0.1);
342
+ const tintS = (fill: ThemeTokenRGB): ThemeTokenRGB =>
343
+ mixToken(tokens.surface, fill, 0.1);
344
+ const successFg = readableOn(tokens.success, [tint(tokens.success), tintS(tokens.success)]);
345
+ const errorFg = readableOn(tokens.error, [tint(tokens.error), tintS(tokens.error)]);
346
+ const warningFg = readableOn(tokens.warning, [tint(tokens.warning), tintS(tokens.warning)]);
347
+ const infoFg = readableOn(tokens.info, [tint(tokens.info), tintS(tokens.info)]);
290
348
  return {
291
349
  "--color-primary": `${tokens.primary.r} ${tokens.primary.g} ${tokens.primary.b}`,
292
350
  "--color-on-primary": `${onPrimary.r} ${onPrimary.g} ${onPrimary.b}`,
@@ -342,6 +400,12 @@ export function tokensToCSSVars(
342
400
  "--hi-color-text-on-success": "rgb(var(--color-on-success))",
343
401
  "--hi-color-text-on-warning": "rgb(var(--color-on-warning))",
344
402
  "--hi-color-text-on-info": "rgb(var(--color-on-info))",
403
+ // The semantic fills as TEXT on this palette's page/tint — distinct from
404
+ // the on-solid inks above (those assume the background IS the fill).
405
+ "--hi-color-success-fg": `rgb(${successFg.r} ${successFg.g} ${successFg.b})`,
406
+ "--hi-color-danger-fg": `rgb(${errorFg.r} ${errorFg.g} ${errorFg.b})`,
407
+ "--hi-color-warning-fg": `rgb(${warningFg.r} ${warningFg.g} ${warningFg.b})`,
408
+ "--hi-color-info-fg": `rgb(${infoFg.r} ${infoFg.g} ${infoFg.b})`,
345
409
  "--hi-color-bg-subtle": "rgb(var(--color-surface) / 0.5)",
346
410
  "--hi-color-bg-elevated": "rgb(var(--color-surface))",
347
411
  "--hi-color-bg-canvas": "rgb(var(--color-background))",
@@ -28,19 +28,22 @@ const scss = readFileSync(join(here, "..", "components", "HkToast.scss"), "utf-8
28
28
  /**
29
29
  * The shipped fills and the ink the rule picks for each, asserted explicitly:
30
30
  * a rule that silently flipped its judgement is exactly what this guards.
31
- * The dark scheme is the Nord pair — its pale success/info fills are the
32
- * "designed for dark foreground" case (Radix's Mint/Lime/Sky, same idea),
33
- * so black there is correct, not a regression.
31
+ * Since the canonical-family move the shipped fills are identical in both
32
+ * schemes and dark enough to take white everywhere — the table asserts that
33
+ * uniformity.
34
34
  */
35
+ // The shipped semantic quartet is the SHARED canonical family (solid fills
36
+ // ignore the mode, user direction) — dark enough (gamma-lum 0.27-0.32) that
37
+ // every slot takes the house WHITE ink in BOTH schemes.
35
38
  const EXPECTED_INK: Array<{ mode: "light" | "dark"; tone: "danger" | "success" | "warning" | "info"; ink: string }> = [
36
39
  { mode: "light", tone: "danger", ink: WHITE },
37
40
  { mode: "light", tone: "success", ink: WHITE },
38
- { mode: "light", tone: "warning", ink: BLACK },
41
+ { mode: "light", tone: "warning", ink: WHITE },
39
42
  { mode: "light", tone: "info", ink: WHITE },
40
43
  { mode: "dark", tone: "danger", ink: WHITE },
41
- { mode: "dark", tone: "success", ink: BLACK },
44
+ { mode: "dark", tone: "success", ink: WHITE },
42
45
  { mode: "dark", tone: "warning", ink: WHITE },
43
- { mode: "dark", tone: "info", ink: BLACK },
46
+ { mode: "dark", tone: "info", ink: WHITE },
44
47
  ];
45
48
 
46
49
  /**
@@ -53,8 +56,11 @@ const MUST_STAY_WHITE: Array<["light" | "dark", "danger" | "success" | "warning"
53
56
  ["light", "danger"],
54
57
  ["light", "success"],
55
58
  ["light", "info"],
59
+ ["light", "warning"],
56
60
  ["dark", "danger"],
61
+ ["dark", "success"],
57
62
  ["dark", "warning"],
63
+ ["dark", "info"],
58
64
  ];
59
65
 
60
66
  describe("solid-fill ink rule", () => {
@@ -178,6 +184,59 @@ describe("static seed matches the solidInk rule", () => {
178
184
  return [Number(m![1]), Number(m![2]), Number(m![3])];
179
185
  };
180
186
 
187
+ // The tag/link components paint the semantic slots as TEXT on a 10% tint
188
+ // of the fill over the page — NOT on the solid fill. The runtime must
189
+ // therefore expose a page/tint-readable fg variant per tone, and the tag
190
+ // sheet must use it (never the raw fill: a fill used as text on a dark
191
+ // page measures ~1.1:1). Computed here against the actual composite so the
192
+ // pin is a readability guarantee, not an existence check.
193
+ it("tag text reads on its 10% tint (the fg variant is real)", () => {
194
+ // The canonical family is now the shipped default (light mode; the dark
195
+ // preset carries the same solid fills per the mode-independence rule).
196
+ const tokens = tokensToCSSVars(themePresets.default.light);
197
+ const parse = (name: string): [number, number, number] => {
198
+ const m = tokens[name]?.match(/(\d+) (\d+) (\d+)/);
199
+ expect(m, `${name} emitted`).not.toBeNull();
200
+ return [Number(m![1]), Number(m![2]), Number(m![3])];
201
+ };
202
+ const ratio = (a: [number, number, number], b: [number, number, number]) => {
203
+ const lum = (c: [number, number, number]) => {
204
+ const f = (v: number) => {
205
+ const x = v / 255;
206
+ return x <= 0.04045 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4;
207
+ };
208
+ return 0.2126 * f(c[0]) + 0.7152 * f(c[1]) + 0.0722 * f(c[2]);
209
+ };
210
+ const [hi, lo] = [lum(a), lum(b)].sort((x, y) => y - x);
211
+ return (hi + 0.05) / (lo + 0.05);
212
+ };
213
+ const bg = parse("--color-background");
214
+ for (const tone of ["success", "danger", "warning", "info"] as const) {
215
+ const fill = parse(`--color-${TONE_FILL[tone]}`);
216
+ const fg = parse(`--hi-color-${tone}-fg`);
217
+ // The chip background is a 10% tint of the fill over the page.
218
+ const tint = fill.map((v, i) => Math.round(v * 0.1 + bg[i] * 0.9)) as [number, number, number];
219
+ expect(
220
+ ratio(fg, tint),
221
+ `--hi-color-${tone}-fg must read on the ${tone} tint`,
222
+ ).toBeGreaterThanOrEqual(4.5);
223
+ }
224
+ // And the sheet must use the fg var, not the raw fill as text.
225
+ const hkTag = readFileSync(join(here, "..", "components", "HkTag.scss"), "utf-8");
226
+ for (const tone of ["success", "danger", "warning"] as const) {
227
+ expect(
228
+ hkTag.includes(`--hi-color-${tone}-fg`),
229
+ `HkTag.scss .hk-tag-${tone} paints --hi-color-${tone}-fg`,
230
+ ).toBe(true);
231
+ // The negative pin needs a runtime RegExp: a template literal inside
232
+ // regex delimiters compiles the un-interpolated "+ tone +" text.
233
+ const rawFill = new RegExp(
234
+ `\\.hk-tag-${tone}\\s*\\{[^}]*color:\\s*var\\(--hi-color-${tone}[,)]`,
235
+ );
236
+ expect(rawFill.test(hkTag), `.hk-tag-${tone} must not paint the raw fill`).toBe(false);
237
+ }
238
+ });
239
+
181
240
  for (const path of ["tokens.scss", join("styles", "theme", "channels.scss")]) {
182
241
  it(`seeds each on-tone ink to what solidInk derives from the ${path} fills`, () => {
183
242
  const file = readFileSync(join(here, "..", ...path.split("/")), "utf-8");