@celestia-island/hikari 0.55.415 → 0.55.417

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 (70) 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/channelFallbacks.test.ts +15 -0
  63. package/src/styles/theme/channels.scss +23 -13
  64. package/src/styles/theme/scrollbar.scss +3 -3
  65. package/src/styles/tokenInventory.test.ts +19 -0
  66. package/src/theme/_field.scss +3 -3
  67. package/src/theme/index.ts +1 -1
  68. package/src/theme/presets.ts +73 -14
  69. package/src/theme/solidInk.contract.test.ts +77 -6
  70. 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 {
@@ -128,6 +128,21 @@ function retiredHits(source: string): string[] {
128
128
  }
129
129
 
130
130
  describe("channel fallbacks mirror the static seed", () => {
131
+ it(".hk-text-* semantic trio uses one namespace (the components --hi-*-fg)", () => {
132
+ // base.scss ships inside the components bundle, where the fg tokens are
133
+ // --hi-{tone}-fg (emitted by css_variables()); the Vue --hi-color-*-fg
134
+ // tier only resolves in a host that also loads the Vue token sheets.
135
+ const base = read(resolve(stylesDir, "../../../theme/styles/base.scss"));
136
+ for (const tone of ["success", "warning", "danger"]) {
137
+ const re = new RegExp(`\\.hk-text-${tone}\\s*\\{[^}]*color:\\s*var\\((--hi-[a-z-]+)\\)`);
138
+ const m = base.match(re);
139
+ expect(m, `.hk-text-${tone} present in base.scss`).toBeTruthy();
140
+ expect(m![1], `.hk-text-${tone} uses the components fg namespace`).toMatch(
141
+ /^--hi-(success|warning|danger)-fg$/,
142
+ );
143
+ }
144
+ });
145
+
131
146
  const seedSource = read(resolve(packageDir, "src", "tokens.scss"));
132
147
  const seed = seedTriplets(seedSource);
133
148
 
@@ -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
  },
@@ -219,11 +225,6 @@ export function getThemeTokens(
219
225
  return null;
220
226
  }
221
227
 
222
- function contrastColor({ r, g, b }: ThemeTokenRGB): ThemeTokenRGB {
223
- const luminance = (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;
224
- return luminance > 0.55 ? { r: 0, g: 0, b: 0 } : { r: 255, g: 255, b: 255 };
225
- }
226
-
227
228
  /**
228
229
  * The white-or-black ink for ONE solid fill. Deliberately NOT "whichever
229
230
  * side wins the WCAG ratio": on saturated fills the ratio winner is the
@@ -243,6 +244,42 @@ function contrastColor({ r, g, b }: ThemeTokenRGB): ThemeTokenRGB {
243
244
  * dark red AND a pale amber at once, which is exactly how the toast
244
245
  * copy/close glyphs went near-black on themed bands (2026-11-12 report).
245
246
  */
247
+ /**
248
+ * This colour as TEXT on `bg`: itself when it already clears `target`,
249
+ * otherwise the nearest OKLCH-lightness step that does. Hue is preserved;
250
+ * chroma is only given up where the sRGB gamut forces it (the same trade the
251
+ * fill derivation makes). This is what lets a semantic FILL stay
252
+ * mode-independent while whatever paints it as text stays readable.
253
+ */
254
+ function readableOn(
255
+ fg: ThemeTokenRGB,
256
+ backgrounds: ThemeTokenRGB[],
257
+ target = 4.5,
258
+ ): ThemeTokenRGB {
259
+ // Already readable everywhere it can land: keep the fill's own chroma.
260
+ if (backgrounds.every((bg) => contrastRatio(fg, bg) >= target)) return fg;
261
+ const { l, c, h } = rgbToOklch(fg);
262
+ let best: ThemeTokenRGB | null = null;
263
+ let bestDist = Infinity;
264
+ for (let step = 0; step <= 400; step++) {
265
+ const li = step / 400;
266
+ // oklchToRgb reduces chroma into the sRGB gamut internally.
267
+ const candidate = oklchToRgb({ l: li, c, h });
268
+ if (backgrounds.every((bg) => contrastRatio(candidate, bg) >= target)) {
269
+ const dist = Math.abs(li - l);
270
+ if (dist < bestDist) {
271
+ bestDist = dist;
272
+ best = candidate;
273
+ }
274
+ }
275
+ }
276
+ const white = { r: 255, g: 255, b: 255 };
277
+ const black = { r: 0, g: 0, b: 0 };
278
+ const fallback =
279
+ contrastRatio(white, backgrounds[0]) >= contrastRatio(black, backgrounds[0]) ? white : black;
280
+ return best ?? fallback;
281
+ }
282
+
246
283
  export function solidInk({ r, g, b }: ThemeTokenRGB): ThemeTokenRGB {
247
284
  // 0.65, not the legacy 0.55: the green channel dominates this metric
248
285
  // (0.7152), so ordinary greens/cyans like #10B981 / #06B6D4 sat just over
@@ -272,7 +309,7 @@ export function tokensToCSSVars(
272
309
  tokens: ThemeSchemeTokens,
273
310
  groupVars?: Record<string, string>,
274
311
  ): Record<string, string> {
275
- const onPrimary = contrastColor(tokens.primary);
312
+ const onPrimary = solidInk(tokens.primary);
276
313
  const textSecondary = mixToken(tokens.text, tokens.muted, 0.25);
277
314
  const textTertiary = mixToken(tokens.text, tokens.muted, 0.5);
278
315
  // Content colors for solid brand fills default to white (the historical
@@ -287,6 +324,22 @@ export function tokensToCSSVars(
287
324
  const onSuccess = tokens.onSuccess ?? solidInk(tokens.success);
288
325
  const onWarning = tokens.onWarning ?? solidInk(tokens.warning);
289
326
  const onInfo = tokens.onInfo ?? solidInk(tokens.info);
327
+ // Per-tone PAGE-READABLE fills: a semantic slot is a solid fill and ignores
328
+ // the mode (user direction), but components that paint it as TEXT (tags,
329
+ // links) sit on the page or on a tint of the fill — the fill itself can be
330
+ // unreadable there. This is the lightness-move that fixes it, per mode.
331
+ // The chip backdrop is color-mix(fill 10%, transparent) over the page:
332
+ // 10% fill + 90% background.
333
+ // The chip can land on the page background or on a card surface — the fg
334
+ // must clear its tint against BOTH.
335
+ const tint = (fill: ThemeTokenRGB): ThemeTokenRGB =>
336
+ mixToken(tokens.background, fill, 0.1);
337
+ const tintS = (fill: ThemeTokenRGB): ThemeTokenRGB =>
338
+ mixToken(tokens.surface, fill, 0.1);
339
+ const successFg = readableOn(tokens.success, [tint(tokens.success), tintS(tokens.success)]);
340
+ const errorFg = readableOn(tokens.error, [tint(tokens.error), tintS(tokens.error)]);
341
+ const warningFg = readableOn(tokens.warning, [tint(tokens.warning), tintS(tokens.warning)]);
342
+ const infoFg = readableOn(tokens.info, [tint(tokens.info), tintS(tokens.info)]);
290
343
  return {
291
344
  "--color-primary": `${tokens.primary.r} ${tokens.primary.g} ${tokens.primary.b}`,
292
345
  "--color-on-primary": `${onPrimary.r} ${onPrimary.g} ${onPrimary.b}`,
@@ -342,6 +395,12 @@ export function tokensToCSSVars(
342
395
  "--hi-color-text-on-success": "rgb(var(--color-on-success))",
343
396
  "--hi-color-text-on-warning": "rgb(var(--color-on-warning))",
344
397
  "--hi-color-text-on-info": "rgb(var(--color-on-info))",
398
+ // The semantic fills as TEXT on this palette's page/tint — distinct from
399
+ // the on-solid inks above (those assume the background IS the fill).
400
+ "--hi-color-success-fg": `rgb(${successFg.r} ${successFg.g} ${successFg.b})`,
401
+ "--hi-color-danger-fg": `rgb(${errorFg.r} ${errorFg.g} ${errorFg.b})`,
402
+ "--hi-color-warning-fg": `rgb(${warningFg.r} ${warningFg.g} ${warningFg.b})`,
403
+ "--hi-color-info-fg": `rgb(${infoFg.r} ${infoFg.g} ${infoFg.b})`,
345
404
  "--hi-color-bg-subtle": "rgb(var(--color-surface) / 0.5)",
346
405
  "--hi-color-bg-elevated": "rgb(var(--color-surface))",
347
406
  "--hi-color-bg-canvas": "rgb(var(--color-background))",