diff --git a/.agent/skills/basalt-html/parts/app-shell.css b/.agent/skills/basalt-html/parts/app-shell.css index 103c9be9..d834add3 100644 --- a/.agent/skills/basalt-html/parts/app-shell.css +++ b/.agent/skills/basalt-html/parts/app-shell.css @@ -1 +1 @@ -@layer basalt{.app-shell{display:grid;grid-template-columns:var(--basalt-size-sidebar-width) minmax(0,1fr);min-height:100dvh}:root{--basalt-shell-width: calc(var(--basalt-size-sidebar-width) + var(--basalt-size-page-width))}.app-shell[data-capped]{max-width:var(--basalt-shell-width);margin-inline:auto}.app-shell[data-capped] .app-main{max-width:none}@media(width>=1024px){:root:has(.app-shell) .skip-link{--_brand-start: calc(2 * var(--basalt-space-3) + var(--basalt-space-1-5));inset-inline-start:var(--_brand-start)}:root:has(.app-shell[data-capped]) .skip-link{inset-inline-start:calc(max(var(--basalt-space-0),(100% - var(--basalt-shell-width)) / 2) + var(--_brand-start))}}@media(width>=720px)and (width<1024px){:root:has(.app-shell) .skip-link{inset-inline-start:calc((var(--basalt-size-rail-width) - var(--basalt-size-tap-min)) / 2)}}.app-column{min-width:0}.app-sidebar{position:sticky;top:0;align-self:start;box-sizing:border-box;display:flex;flex-direction:column;height:100dvh;padding-inline:var(--basalt-space-3);overflow-y:auto;overscroll-behavior:contain;border-inline-end:var(--basalt-size-hairline) solid var(--basalt-border-divider);background:var(--basalt-surface-page);color:var(--basalt-text-primary);font-family:var(--basalt-font-family-sans)}.app-brand{box-sizing:border-box;display:flex;align-items:center;flex:none;height:var(--basalt-sticky-offset);padding-top:var(--bh-inset-top);padding-inline:calc(var(--basalt-space-1-5) + var(--basalt-space-3))}.app-brand .brand>span{display:inline-flex;align-items:center;gap:var(--basalt-space-2);height:var(--basalt-size-control-md);border-radius:var(--basalt-radius-sm)}.app-brand .brand>.brand-rail{display:none}.app-nav{flex:1 0 auto;padding-bottom:var(--basalt-space-4)}.app-account{flex:none;padding-bottom:var(--basalt-space-4)}.app-main{box-sizing:border-box;min-width:0;max-width:var(--basalt-size-page-width);padding:var(--basalt-space-6) var(--bh-pad-right) var(--basalt-space-16) var(--bh-pad-left)}.app-bar{box-sizing:border-box;display:flex;align-items:center;gap:var(--basalt-space-2);height:calc(var(--basalt-size-header) - var(--basalt-size-hairline));padding-top:var(--basalt-size-hairline);padding-inline:var(--bh-pad-left) var(--bh-pad-right)}.app-title{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--basalt-font-weight-semibold) var(--basalt-text-lg-size) / var(--basalt-text-lg-line-height) var(--basalt-font-family-sans);letter-spacing:var(--basalt-text-lg-tracking)}.app-actions{display:flex;align-items:center;flex:none;gap:var(--basalt-space-2)}.app-heading{display:flex;flex-direction:column;flex:0 1 auto;min-width:0}.app-facts{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm);letter-spacing:var(--basalt-text-sm-tracking)}.app-facts>*{vertical-align:top}@media(width>=720px)and (width<1024px){.app-shell{grid-template-columns:var(--basalt-size-rail-width) minmax(0,1fr)}.app-sidebar{padding-inline:0}.app-brand{justify-content:center;padding-inline:0}.app-brand .brand>.brand-full{display:none}.app-brand .brand>.brand-rail{display:inline-flex}}@media(width<720px){.app-shell{grid-template-columns:minmax(0,1fr)}.app-sidebar{display:none}.app-actions{gap:var(--basalt-space-1)}.app-header .btn[data-variant=primary]{flex:none}.app-shell[data-tabbar] .app-main{padding-bottom:calc(var(--basalt-bottom-offset) + var(--basalt-space-6))}}@media(forced-colors:active){.app-sidebar{border-inline-end-color:CanvasText}}} +@layer basalt{.app-shell{display:grid;grid-template-columns:var(--basalt-size-sidebar-width) minmax(0,1fr);min-height:100dvh}:root{--basalt-shell-width: calc(var(--basalt-size-sidebar-width) + var(--basalt-size-page-width))}.app-shell[data-capped]{max-width:var(--basalt-shell-width);margin-inline:auto}.app-shell[data-capped] .app-main{max-width:none}@media(width>=1024px){:root:has(.app-shell) .skip-link{--_brand-start: calc(2 * var(--basalt-space-3) + var(--basalt-space-1-5));inset-inline-start:var(--_brand-start)}:root:has(.app-shell[data-capped]) .skip-link{inset-inline-start:calc(max(var(--basalt-space-0),(100% - var(--basalt-shell-width)) / 2) + var(--_brand-start))}}@media(width>=720px)and (width<1024px){:root:has(.app-shell) .skip-link{inset-inline-start:calc((var(--basalt-size-rail-width) - var(--basalt-size-tap-min)) / 2)}}.app-column{min-width:0}.app-sidebar{position:sticky;top:0;align-self:start;box-sizing:border-box;display:flex;flex-direction:column;height:100dvh;padding-inline:var(--basalt-space-3);overflow-y:auto;overscroll-behavior:contain;border-inline-end:var(--basalt-size-hairline) solid var(--basalt-border-divider);background:var(--basalt-surface-page);color:var(--basalt-text-primary);font-family:var(--basalt-font-family-sans)}.app-brand{box-sizing:border-box;display:flex;align-items:center;flex:none;height:var(--basalt-sticky-offset);padding-top:var(--bh-inset-top);padding-inline:calc(var(--basalt-space-1-5) + var(--basalt-space-3))}.app-brand .brand>span{display:inline-flex;align-items:center;gap:var(--basalt-space-2);height:var(--basalt-size-control-md);border-radius:var(--basalt-radius-sm)}.app-brand .brand>.brand-rail{display:none}.app-nav{flex:1 0 auto;padding-bottom:var(--basalt-space-4)}.app-account{flex:none;padding-bottom:var(--basalt-space-4)}.app-main{box-sizing:border-box;min-width:0;max-width:var(--basalt-size-page-width);padding:var(--basalt-space-6) var(--bh-pad-right) var(--basalt-space-16) var(--bh-pad-left)}.app-bar{box-sizing:border-box;display:flex;align-items:center;gap:var(--basalt-space-2);height:calc(var(--basalt-size-header) - var(--basalt-size-hairline));padding-top:var(--basalt-size-hairline);padding-inline:var(--bh-pad-left) var(--bh-pad-right)}.app-title{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--basalt-font-weight-semibold) var(--basalt-text-lg-size) / var(--basalt-text-lg-line-height) var(--basalt-font-family-sans);letter-spacing:var(--basalt-text-lg-tracking)}.app-actions{display:flex;align-items:center;flex:none;gap:var(--basalt-space-2)}.app-heading{display:flex;flex-direction:column;flex:0 1 auto;min-width:0}.app-facts{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm);letter-spacing:var(--basalt-text-sm-tracking)}.app-facts>*{vertical-align:top}@media(width>=720px)and (width<1024px){.app-shell{grid-template-columns:var(--basalt-size-rail-width) minmax(0,1fr)}.app-sidebar{padding-inline:0}.app-brand{justify-content:center;padding-inline:0}.app-brand .brand{justify-content:center}.app-brand .brand>.brand-full{display:none}.app-brand .brand>.brand-rail{display:inline-flex}}@media(width<720px){.app-shell{grid-template-columns:minmax(0,1fr)}.app-sidebar{display:none}.app-actions{gap:var(--basalt-space-1)}.app-header .btn[data-variant=primary]{flex:none}.app-shell[data-tabbar] .app-main{padding-bottom:calc(var(--basalt-bottom-offset) + var(--basalt-space-6))}}@media(forced-colors:active){.app-sidebar{border-inline-end-color:CanvasText}}} diff --git a/.agent/skills/basalt-html/parts/core.css b/.agent/skills/basalt-html/parts/core.css index 8aa5c961..cb2a2817 100644 --- a/.agent/skills/basalt-html/parts/core.css +++ b/.agent/skills/basalt-html/parts/core.css @@ -1 +1 @@ -:root{--basalt-neutral-0: oklch(0 0 0);--basalt-neutral-4: oklch(.1448 0 0);--basalt-neutral-7: oklch(.1776 0 0);--basalt-neutral-9: oklch(.2046 0 0);--basalt-neutral-20: oklch(.3211 0 0);--basalt-neutral-30: oklch(.4202 0 0);--basalt-neutral-36: oklch(.4748 0 0);--basalt-neutral-42: oklch(.5278 0 0);--basalt-neutral-52: oklch(.6167 0 0);--basalt-neutral-59: oklch(.675 0 0);--basalt-neutral-63: oklch(.709 0 0);--basalt-neutral-64: oklch(.7155 0 0);--basalt-neutral-73: oklch(.79 0 0);--basalt-neutral-75: oklch(.8047 0 0);--basalt-neutral-93: oklch(.9461 0 0);--basalt-neutral-94: oklch(.9551 0 0);--basalt-neutral-96: oklch(.9702 0 0);--basalt-neutral-98: oklch(.9851 0 0);--basalt-neutral-100: oklch(1 0 0);--basalt-neutral-42-4: oklch(.53 0 0);--basalt-neutral-95-7: oklch(.966 0 0);--basalt-white-6: oklch(1 0 0 / .06);--basalt-white-8: oklch(1 0 0 / .08);--basalt-white-9: oklch(1 0 0 / .09);--basalt-white-15: oklch(1 0 0 / .145);--basalt-white-24: oklch(1 0 0 / .24);--basalt-white-38: oklch(1 0 0 / .38);--basalt-black-4: oklch(0 0 0 / .04);--basalt-black-6: oklch(0 0 0 / .06);--basalt-black-7: oklch(0 0 0 / .07);--basalt-black-8: oklch(0 0 0 / .08);--basalt-black-10: oklch(0 0 0 / .1);--basalt-black-16: oklch(0 0 0 / .16);--basalt-black-18: oklch(0 0 0 / .18);--basalt-black-24: oklch(0 0 0 / .24);--basalt-black-40: oklch(0 0 0 / .4);--basalt-black-45: oklch(0 0 0 / .45);--basalt-black-60: oklch(0 0 0 / .6);--basalt-black-80: oklch(0 0 0 / .8);--basalt-status-danger-dark: oklch(.7 .191 22);--basalt-status-success-dark: oklch(.73 .211 148);--basalt-status-warning-dark: oklch(.79 .171 70);--basalt-status-danger-light: oklch(.51 .19 25);--basalt-status-success-light: oklch(.55 .159 148);--basalt-status-warning-light: oklch(.6 .137 62);--basalt-space-0: 0px;--basalt-space-1: 4px;--basalt-space-2: 8px;--basalt-space-3: 12px;--basalt-space-4: 16px;--basalt-space-5: 20px;--basalt-space-6: 24px;--basalt-space-8: 32px;--basalt-space-10: 40px;--basalt-space-12: 48px;--basalt-space-16: 64px;--basalt-space-24: 96px;--basalt-space-0-5: 2px;--basalt-space-1-5: 6px;--basalt-space-2-5: 10px;--basalt-space-3-5: 14px;--basalt-radius-2xs: 2px;--basalt-radius-xs: 4px;--basalt-radius-sm: 6px;--basalt-radius-md: 8px;--basalt-radius-lg: 12px;--basalt-radius-xl: 16px;--basalt-radius-full: 9999px;--basalt-size-control-xs: 24px;--basalt-size-control-sm: 28px;--basalt-size-control-md: 32px;--basalt-size-control-lg: 36px;--basalt-size-control-xl: 40px;--basalt-size-control-2xl: 44px;--basalt-size-control-3xl: 48px;--basalt-size-control-4xl: 52px;--basalt-size-control-5xl: 56px;--basalt-size-control-6xl: 64px;--basalt-size-menu-row: 36px;--basalt-size-menu-row-touch: 44px;--basalt-size-tap-min: 44px;--basalt-size-icon-sm: 16px;--basalt-size-icon-md: 20px;--basalt-size-icon-lg: 24px;--basalt-size-focus-width: 2px;--basalt-size-focus-offset: 2px;--basalt-size-hairline: 1px;--basalt-size-indicator: 2px;--basalt-size-description-label: 160px;--basalt-size-field-label-inline: 80px;--basalt-size-track: 4px;--basalt-size-dot: 6px;--basalt-size-choice: 16px;--basalt-size-choice-mark: 12px;--basalt-size-switch-width: 32px;--basalt-size-switch-height: 18px;--basalt-size-switch-thumb: 14px;--basalt-size-kbd: 20px;--basalt-size-badge: 22px;--basalt-size-table-row: 40px;--basalt-size-command-input: 48px;--basalt-size-code-line-height: 20px;--basalt-size-underline-offset: 3px;--basalt-size-slider-length: 180px;--basalt-size-dialog-width: 480px;--basalt-size-sheet-width: 440px;--basalt-size-command-width: 560px;--basalt-size-dialog-width-wide: 992px;--basalt-size-search-trigger: 200px;--basalt-size-search-logo-width: 96px;--basalt-size-search-logo-height: 48px;--basalt-size-search-pack-width: 48px;--basalt-size-search-pack-height: 60px;--basalt-size-toast-width: 360px;--basalt-size-popover-max: 320px;--basalt-size-tooltip-max: 280px;--basalt-size-menu-min: 200px;--basalt-size-select-min: 160px;--basalt-size-popup-max-height: 360px;--basalt-size-list-width: 320px;--basalt-size-header: 56px;--basalt-size-tab-bar: 56px;--basalt-size-sidebar-width: 256px;--basalt-size-rail-width: 72px;--basalt-size-page-width: 72rem;--basalt-size-prose-width: 34rem;--basalt-size-gutter: var(--basalt-space-6);--basalt-size-gutter-narrow: var(--basalt-space-4);--basalt-size-breakpoint-md: 720px;--basalt-size-breakpoint-lg: 1024px;--basalt-size-breakpoint-container: 480px;--basalt-size-breakpoint-container-sm: 340px;--basalt-size-breakpoint-container-lg: 640px;--basalt-size-cut: 2px;--basalt-size-hatch-pitch: 4px;--basalt-size-meter-marker: 12px;--basalt-opacity-amount: .72;--basalt-font-family-sans: Geist, "Geist Fallback", ui-sans-serif, system-ui, sans-serif;--basalt-font-family-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--basalt-font-weight-regular: 400;--basalt-font-weight-medium: 500;--basalt-font-weight-semibold: 600;--basalt-text-xs-size: 12px;--basalt-text-xs-line-height: 16px;--basalt-text-xs-tracking: .01em;--basalt-text-sm-size: 13px;--basalt-text-sm-line-height: 18px;--basalt-text-sm-tracking: 0em;--basalt-text-base-size: 14px;--basalt-text-base-line-height: 20px;--basalt-text-base-tracking: 0em;--basalt-text-md-size: 16px;--basalt-text-md-line-height: 24px;--basalt-text-md-tracking: -.005em;--basalt-text-lg-size: 18px;--basalt-text-lg-line-height: 26px;--basalt-text-lg-tracking: -.01em;--basalt-text-xl-size: 20px;--basalt-text-xl-line-height: 28px;--basalt-text-xl-tracking: -.015em;--basalt-text-2xl-size: 24px;--basalt-text-2xl-line-height: 30px;--basalt-text-2xl-tracking: -.02em;--basalt-text-3xl-size: 30px;--basalt-text-3xl-line-height: 36px;--basalt-text-3xl-tracking: -.025em;--basalt-text-4xl-size: 40px;--basalt-text-4xl-line-height: 44px;--basalt-text-4xl-tracking: -.03em;--basalt-text-5xl-size: 56px;--basalt-text-5xl-line-height: 60px;--basalt-text-5xl-tracking: -.035em;--basalt-blur-chrome: 12px;--basalt-duration-instant: 0ms;--basalt-duration-fast: .1s;--basalt-duration-base: .15s;--basalt-duration-slow: .2s;--basalt-duration-slower: .3s;--basalt-duration-confirm: 1.5s;--basalt-duration-figure: .6s;--basalt-duration-stagger: 22ms;--basalt-duration-loop-ring: .64s;--basalt-duration-loop-braille: .8s;--basalt-duration-loop-fade: 1.2s;--basalt-duration-loop-ambient: 6s;--basalt-ease-out: cubic-bezier(.16, 1, .3, 1);--basalt-ease-in-out: cubic-bezier(.65, 0, .35, 1);--basalt-ease-in: cubic-bezier(.4, 0, 1, 1);--basalt-ease-linear: cubic-bezier(0, 0, 1, 1);--basalt-layer-base: 0;--basalt-layer-sticky: 100;--basalt-layer-overlay: 500;--basalt-layer-popover: 600;--basalt-layer-dialog: 700;--basalt-layer-toast: 800;--basalt-layer-tooltip: 1100}:root,[data-theme=light],.light{color-scheme:light;--basalt-status-danger: var(--basalt-status-danger-light);--basalt-status-success: var(--basalt-status-success-light);--basalt-status-warning: var(--basalt-status-warning-light);--basalt-syntax-keyword: oklch(.5 .12 255);--basalt-syntax-string: oklch(.5 .12 150);--basalt-syntax-constant: oklch(.5 .1 70);--basalt-syntax-function: oklch(.5 .12 305);--basalt-syntax-comment: var(--basalt-text-tertiary);--basalt-surface-0: var(--basalt-neutral-98);--basalt-surface-1: var(--basalt-neutral-100);--basalt-surface-2: var(--basalt-neutral-100);--basalt-surface-3: var(--basalt-neutral-100);--basalt-surface-page: var(--basalt-surface-0);--basalt-surface-raised: var(--basalt-surface-1);--basalt-surface-overlay: var(--basalt-surface-2);--basalt-surface-top: var(--basalt-surface-3);--basalt-surface-sunken: var(--basalt-neutral-96);--basalt-surface-well-2: var(--basalt-surface-sunken);--basalt-surface-well-3: var(--basalt-surface-sunken);--basalt-surface-sunken-strong: var(--basalt-neutral-94);--basalt-surface-kbd: var(--basalt-black-6);--basalt-surface-chrome: oklch(.9851 0 0 / .96);--basalt-surface-placeholder: var(--basalt-neutral-94);--basalt-text-primary: var(--basalt-neutral-9);--basalt-text-secondary: var(--basalt-neutral-30);--basalt-text-tertiary: var(--basalt-neutral-42);--basalt-text-disabled: var(--basalt-neutral-64);--basalt-text-inverse: var(--basalt-neutral-100);--basalt-border-rim: var(--basalt-black-8);--basalt-border-rim-top: var(--basalt-black-8);--basalt-border-hairline: var(--basalt-black-8);--basalt-border-hover: var(--basalt-black-16);--basalt-border-divider: var(--basalt-black-8);--basalt-border-input: var(--basalt-black-45);--basalt-border-field: var(--basalt-border-input);--basalt-border-focus: var(--basalt-neutral-30);--basalt-state-hover: var(--basalt-black-4);--basalt-state-selected: var(--basalt-black-7);--basalt-plate-0: oklch(.9325 0 0);--basalt-plate-1: oklch(.9466 0 0);--basalt-plate-2: oklch(.9466 0 0);--basalt-plate-3: oklch(.9466 0 0);--basalt-action-primary: var(--basalt-neutral-9);--basalt-action-primary-hover: var(--basalt-neutral-0);--basalt-action-primary-press: var(--basalt-neutral-20);--basalt-action-primary-text: var(--basalt-neutral-100);--basalt-line-contrast: var(--basalt-black-45);--basalt-ink-contrast: var(--basalt-neutral-30);--basalt-field-contrast: var(--basalt-neutral-30);--basalt-scrim: var(--basalt-black-40);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(0 0 0 / .08), 0px 0px 0px 1px oklch(.9851 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .06), 0px 16px 24px -8px oklch(0 0 0 / .1);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .06), 0px 24px 32px -8px oklch(0 0 0 / .1)}[data-theme=dark],.dark{color-scheme:dark;--basalt-status-danger: var(--basalt-status-danger-dark);--basalt-status-success: var(--basalt-status-success-dark);--basalt-status-warning: var(--basalt-status-warning-dark);--basalt-syntax-keyword: oklch(.8 .09 255);--basalt-syntax-string: oklch(.8 .09 150);--basalt-syntax-constant: oklch(.8 .09 70);--basalt-syntax-function: oklch(.8 .09 305);--basalt-syntax-comment: var(--basalt-text-tertiary);--basalt-surface-0: var(--basalt-neutral-0);--basalt-surface-1: var(--basalt-neutral-4);--basalt-surface-2: var(--basalt-neutral-7);--basalt-surface-3: var(--basalt-neutral-9);--basalt-surface-page: var(--basalt-surface-0);--basalt-surface-raised: var(--basalt-surface-1);--basalt-surface-overlay: var(--basalt-surface-2);--basalt-surface-top: var(--basalt-surface-3);--basalt-surface-sunken: var(--basalt-surface-1);--basalt-surface-well-2: var(--basalt-surface-2);--basalt-surface-well-3: var(--basalt-surface-3);--basalt-surface-sunken-strong: var(--basalt-surface-2);--basalt-surface-kbd: var(--basalt-white-8);--basalt-surface-chrome: oklch(0 0 0 / .925);--basalt-surface-placeholder: var(--basalt-neutral-9);--basalt-text-primary: var(--basalt-neutral-95-7);--basalt-text-secondary: var(--basalt-neutral-73);--basalt-text-tertiary: var(--basalt-neutral-59);--basalt-text-disabled: var(--basalt-neutral-42-4);--basalt-text-inverse: var(--basalt-neutral-0);--basalt-border-hairline: var(--basalt-white-15);--basalt-border-rim: var(--basalt-white-6);--basalt-border-rim-top: var(--basalt-white-8);--basalt-border-hover: var(--basalt-white-24);--basalt-border-divider: var(--basalt-white-6);--basalt-border-input: var(--basalt-white-38);--basalt-border-field: var(--basalt-border-input);--basalt-border-focus: var(--basalt-text-secondary);--basalt-state-hover: var(--basalt-white-6);--basalt-state-selected: var(--basalt-white-9);--basalt-plate-0: oklch(.2438 0 0);--basalt-plate-1: oklch(.2703 0 0);--basalt-plate-2: oklch(.2926 0 0);--basalt-plate-3: oklch(.2926 0 0);--basalt-action-primary: var(--basalt-neutral-93);--basalt-action-primary-hover: var(--basalt-neutral-100);--basalt-action-primary-press: var(--basalt-neutral-75);--basalt-action-primary-text: var(--basalt-neutral-0);--basalt-line-contrast: var(--basalt-white-38);--basalt-ink-contrast: var(--basalt-text-secondary);--basalt-field-contrast: var(--basalt-text-secondary);--basalt-scrim: var(--basalt-black-80);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(1 0 0 / .145), 0px 0px 0px 1px oklch(0 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .24), 0px 16px 24px -8px oklch(0 0 0 / .4);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .24), 0px 24px 32px -8px oklch(0 0 0 / .6)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){color-scheme:dark;--basalt-status-danger: var(--basalt-status-danger-dark);--basalt-status-success: var(--basalt-status-success-dark);--basalt-status-warning: var(--basalt-status-warning-dark);--basalt-syntax-keyword: oklch(.8 .09 255);--basalt-syntax-string: oklch(.8 .09 150);--basalt-syntax-constant: oklch(.8 .09 70);--basalt-syntax-function: oklch(.8 .09 305);--basalt-surface-0: var(--basalt-neutral-0);--basalt-surface-1: var(--basalt-neutral-4);--basalt-surface-2: var(--basalt-neutral-7);--basalt-surface-3: var(--basalt-neutral-9);--basalt-surface-sunken: var(--basalt-surface-1);--basalt-surface-well-2: var(--basalt-surface-2);--basalt-surface-well-3: var(--basalt-surface-3);--basalt-surface-sunken-strong: var(--basalt-surface-2);--basalt-surface-kbd: var(--basalt-white-8);--basalt-surface-chrome: oklch(0 0 0 / .925);--basalt-surface-placeholder: var(--basalt-neutral-9);--basalt-text-primary: var(--basalt-neutral-95-7);--basalt-text-secondary: var(--basalt-neutral-73);--basalt-text-tertiary: var(--basalt-neutral-59);--basalt-text-disabled: var(--basalt-neutral-42-4);--basalt-text-inverse: var(--basalt-neutral-0);--basalt-border-hairline: var(--basalt-white-15);--basalt-border-rim: var(--basalt-white-6);--basalt-border-rim-top: var(--basalt-white-8);--basalt-border-hover: var(--basalt-white-24);--basalt-border-divider: var(--basalt-white-6);--basalt-border-input: var(--basalt-white-38);--basalt-border-focus: var(--basalt-text-secondary);--basalt-state-hover: var(--basalt-white-6);--basalt-state-selected: var(--basalt-white-9);--basalt-plate-0: oklch(.2438 0 0);--basalt-plate-1: oklch(.2703 0 0);--basalt-plate-2: oklch(.2926 0 0);--basalt-plate-3: oklch(.2926 0 0);--basalt-action-primary: var(--basalt-neutral-93);--basalt-action-primary-hover: var(--basalt-neutral-100);--basalt-action-primary-press: var(--basalt-neutral-75);--basalt-action-primary-text: var(--basalt-neutral-0);--basalt-line-contrast: var(--basalt-white-38);--basalt-ink-contrast: var(--basalt-text-secondary);--basalt-field-contrast: var(--basalt-text-secondary);--basalt-scrim: var(--basalt-black-80);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(1 0 0 / .145), 0px 0px 0px 1px oklch(0 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .24), 0px 16px 24px -8px oklch(0 0 0 / .4);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .24), 0px 24px 32px -8px oklch(0 0 0 / .6)}}@media(prefers-contrast:more){:root,[data-theme=light],[data-theme=dark],.light,.dark,:root:not([data-theme=light]):not(.light){--basalt-border-hairline: var(--basalt-line-contrast);--basalt-border-rim: var(--basalt-line-contrast);--basalt-border-rim-top: var(--basalt-line-contrast);--basalt-border-divider: var(--basalt-line-contrast);--basalt-text-tertiary: var(--basalt-ink-contrast);--basalt-border-field: var(--basalt-field-contrast);--basalt-border-hover: var(--basalt-text-secondary);--basalt-shadow-hairline: 0px 0px 0px 1px var(--basalt-line-contrast), 0px 0px 0px 1px var(--basalt-surface-0)}}@media(prefers-reduced-motion:reduce){:root{--basalt-duration-base: .1s;--basalt-duration-slow: .1s;--basalt-duration-slower: .1s;--basalt-duration-figure: .1s;--basalt-duration-stagger: 0ms}}@layer reset,basalt;@layer reset{*,*:before,*:after{box-sizing:border-box}html{background:var(--basalt-surface-0);-webkit-text-size-adjust:100%}body{margin:0;background:var(--basalt-surface-0);color:var(--basalt-text-primary);font:var(--basalt-font-weight-regular) var(--bh-base);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}b,strong,th{font-weight:var(--basalt-font-weight-semibold)}img,svg,video{max-width:100%}button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit;margin:0}a{color:inherit;text-decoration:underline;text-decoration-color:var(--basalt-border-input);text-underline-offset:var(--basalt-size-underline-offset)}a:hover{text-decoration-color:currentColor}h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}h1,h2,h3,h4{font-weight:var(--basalt-font-weight-semibold);color:var(--basalt-text-primary);text-wrap:balance}h5,h6{font-weight:var(--basalt-font-weight-semibold)}h1,.display{font-size:var(--basalt-text-3xl-size);line-height:var(--basalt-text-3xl-line-height);letter-spacing:var(--basalt-text-3xl-tracking)}h2{font-size:var(--basalt-text-2xl-size);line-height:var(--basalt-text-2xl-line-height);letter-spacing:var(--basalt-text-2xl-tracking)}h3{font-size:var(--basalt-text-lg-size);line-height:var(--basalt-text-lg-line-height);letter-spacing:var(--basalt-text-lg-tracking)}h4{font-size:var(--basalt-text-base-size);line-height:var(--basalt-text-base-line-height)}@media(width>=720px){h1,.display{font-size:var(--basalt-text-4xl-size);line-height:var(--basalt-text-4xl-line-height);letter-spacing:var(--basalt-text-4xl-tracking)}}p,li{text-wrap:pretty}code:not(.code code){padding:var(--basalt-size-hairline) var(--basalt-space-1);border-radius:var(--basalt-radius-xs);background:var(--basalt-surface-kbd);font:var(--basalt-font-weight-regular) .92em / 1 var(--basalt-font-family-mono)}pre,code,kbd,samp{font-family:var(--basalt-font-family-mono)}}@layer basalt{:root{--bh-xs: var(--basalt-text-xs-size) / var(--basalt-text-xs-line-height) var(--basalt-font-family-sans);--bh-sm: var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-sans);--bh-base: var(--basalt-text-base-size) / var(--basalt-text-base-line-height) var(--basalt-font-family-sans);--bh-md: var(--basalt-text-md-size) / var(--basalt-text-md-line-height) var(--basalt-font-family-sans);--bh-2xl: var(--basalt-text-2xl-size) / var(--basalt-text-2xl-line-height) var(--basalt-font-family-sans);--bh-xs-mono: var(--basalt-text-xs-size) / var(--basalt-text-xs-line-height) var(--basalt-font-family-mono);--bh-sm-mono: var(--basalt-text-sm-size) / var(--basalt-size-code-line-height) var(--basalt-font-family-mono)}:root{accent-color:var(--basalt-action-primary);--basalt-gutter: var(--basalt-size-gutter)}@media(width<720px){:root{--basalt-gutter: var(--basalt-size-gutter-narrow)}}a,button,summary,[role=tab],.row,.disclosure,.segment button{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}::selection{background:var(--basalt-state-selected)}svg.icon{flex:none}svg[data-brand]{pointer-events:none}.dot-sep:before{content:"·";content:"·" / ""}.dot-sep[data-spaced]:before{content:" · ";content:" · " / ""}.dot-sep>.visually-hidden{white-space:pre}.display{font-weight:var(--basalt-font-weight-semibold)}.text-5xl{font-size:var(--basalt-text-5xl-size);line-height:var(--basalt-text-5xl-line-height);letter-spacing:var(--basalt-text-5xl-tracking);font-weight:var(--basalt-font-weight-semibold)}.lead{font-size:var(--basalt-text-md-size);line-height:var(--basalt-text-md-line-height);color:var(--basalt-text-secondary);max-width:var(--basalt-size-prose-width);text-wrap:pretty}.eyebrow{font:var(--basalt-font-weight-medium) var(--bh-xs);color:var(--basalt-text-secondary)}.muted{color:var(--basalt-text-secondary)}.faint{color:var(--basalt-text-tertiary)}.small{font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height)}.mono{font-family:var(--basalt-font-family-mono)}.num{font-variant-numeric:tabular-nums}.prose{max-inline-size:var(--basalt-size-prose-width);margin-inline:0 auto}.prose>*+*{margin-top:var(--basalt-space-4)}.prose>:is(h2,h3){margin-top:var(--basalt-space-8)}.prose>:is(h2,h3)+*{margin-top:var(--basalt-space-2)}.prose :is(ul,ol){padding-inline-start:var(--basalt-space-5)}.prose li+li{margin-top:var(--basalt-space-1)}.prose blockquote{padding-inline-start:var(--basalt-space-4);color:var(--basalt-text-secondary)}.page{width:100%;max-width:var(--basalt-size-page-width);margin-inline:auto;padding:var(--basalt-space-8) var(--basalt-gutter) var(--basalt-space-16)}.page.narrow{max-width:46rem}@media(width<720px){.page{padding-block:var(--basalt-space-6) var(--basalt-space-12)}}.stack{display:flex;flex-direction:column;gap:var(--gap, var(--basalt-space-4));min-width:0}.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap, var(--basalt-space-2));min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min, 220px),100%),1fr));gap:var(--gap, var(--basalt-space-4))}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap, var(--basalt-space-6))}@media(width>=720px){.split.aside{grid-template-columns:minmax(0,var(--basalt-size-list-width)) minmax(0,1fr);align-items:start}}@media(width<720px){.split{grid-template-columns:minmax(0,1fr)}}.spacer{flex:1}@media(width<720px){.hide-narrow{display:none!important}}.section{margin-top:var(--basalt-space-12)}.section>.section-head{margin-bottom:var(--basalt-space-4)}.footer{margin-top:var(--basalt-space-16);padding-top:var(--basalt-space-4);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider);color:var(--basalt-text-secondary);font-size:var(--basalt-text-sm-size)}.footer:not(.page .footer){width:calc(min(100%,var(--basalt-size-page-width)) - 2 * var(--basalt-gutter));margin-top:0;margin-inline:auto;padding-bottom:var(--basalt-space-8)}.skip-link{position:absolute;inset-inline-start:var(--basalt-space-2);top:var(--basalt-space-2);transform:translateY(-200%);padding:var(--basalt-space-2) var(--basalt-space-3);border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-md);background:var(--basalt-surface-3);color:var(--basalt-text-primary);z-index:var(--basalt-layer-toast)}.skip-link:focus{transform:none;box-shadow:var(--basalt-shadow-overlay)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken);--panel-plate: light-dark(var(--basalt-state-selected), color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--panel-next)));position:relative;min-width:0;background-color:var(--panel-bg);color:var(--basalt-text-primary);border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-lg)}:is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}:is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-3);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-3)}@supports not (color: light-dark(white,black)){:root,[data-theme=light],.light{--_dkp: 0%}[data-theme=dark],.dark{--_dkp: 100%}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){--_dkp: 100%}}:root,:is(.panel,.card,.callout,.code,.table-wrap){--_dk: color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--panel-next, var(--basalt-surface-1)));--_mx: color-mix(in srgb, var(--_dk) var(--_dkp), color-mix(in srgb, var(--basalt-neutral-0) 7%, var(--panel-bg, var(--basalt-surface-page))));--panel-plate: color-mix(in srgb, var(--_dk) var(--_dkp), var(--basalt-state-selected))}.choice-card.choice-card{--_solid: var(--_mx)}.btn.btn.btn[aria-pressed=true]:not([data-variant=primary],[data-variant=danger]){background:var(--_mx)}.segment.segment{--pill-fill: color-mix(in srgb, color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--basalt-surface-top)) var(--_dkp), var(--basalt-surface-top))}select.input.input{--_pop-plate: color-mix(in srgb, color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--_pop-next)) var(--_dkp), var(--basalt-state-selected))}}.panel-pad,.card{padding:var(--basalt-space-4)}@media(width>=720px){.panel-pad.lg,.card.lg{padding:var(--basalt-space-6)}}.panel-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--basalt-space-2);padding:var(--basalt-space-3) var(--basalt-space-4);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider);font-weight:var(--basalt-font-weight-medium)}.float{--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken);box-shadow:var(--basalt-shadow-overlay)}.float.modal{box-shadow:var(--basalt-shadow-modal);--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken)}.float.modal :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}[data-level="0"]{--panel-next: var(--basalt-surface-1)}[data-level="1"] :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}[data-level="2"] :is(.panel,.card,.callout,.code,.table-wrap),[data-level="3"] :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-3);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-3)}.divider{display:block;height:var(--basalt-size-hairline);margin:0;border:0;background:var(--basalt-border-divider);flex:none}.divide-y>*+*{border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.btn{position:relative;--_h: var(--basalt-size-control-md);--_px: var(--basalt-space-3);display:inline-flex;align-items:center;justify-content:center;gap:var(--basalt-space-1-5);height:var(--_h);padding:0 var(--_px);margin:0;border:0;border-radius:var(--basalt-radius-sm);font:var(--basalt-font-weight-medium) var(--basalt-text-base-size) / 1 var(--basalt-font-family-sans);white-space:nowrap;text-decoration:none;cursor:pointer;user-select:none;background:var(--basalt-surface-1);color:var(--basalt-text-primary);box-shadow:var(--basalt-shadow-hairline);transition-property:background-color,color,box-shadow,transform;transition-duration:var(--basalt-duration-fast);transition-timing-function:var(--basalt-ease-out)}.btn[data-size=sm]{--_h: var(--basalt-size-control-sm);--_px: var(--basalt-space-2-5);font-size:var(--basalt-text-sm-size)}.btn[data-size=lg]{--_h: var(--basalt-size-control-lg);--_px: var(--basalt-space-3-5);border-radius:var(--basalt-radius-md)}.btn[data-icon-only]{width:var(--_h);padding:0}.btn[data-variant=primary]{background:var(--basalt-action-primary);color:var(--basalt-action-primary-text);box-shadow:none}.btn[data-variant=ghost]{background:transparent;color:var(--basalt-text-secondary);box-shadow:none}.btn[data-variant=danger]{background:transparent;color:var(--basalt-status-danger);box-shadow:inset 0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-status-danger) 45%,transparent)}@media(hover:hover){.btn:hover:not([disabled],[aria-disabled=true]){box-shadow:0 0 0 var(--basalt-size-hairline) var(--basalt-border-hover),0 0 0 var(--basalt-size-hairline) var(--basalt-surface-0)}.btn[data-variant=primary]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-action-primary-hover);box-shadow:none}.btn[data-variant=ghost]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-state-hover);color:var(--basalt-text-primary);box-shadow:none}.btn[data-variant=danger]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-state-hover);box-shadow:inset 0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-status-danger) 70%,transparent)}}.btn:active:not([disabled],[aria-disabled=true]){background:var(--basalt-state-selected)}.btn[data-variant=primary]:active:not([disabled],[aria-disabled=true]){background:var(--basalt-action-primary-press)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]){transform:scale(.98)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]):after{content:"";position:absolute;inset:-1.03%}.btn[disabled],.btn[aria-disabled=true]{cursor:not-allowed;color:var(--basalt-text-disabled);box-shadow:0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-border-hairline) 50%,transparent)}.btn[data-variant=primary][disabled],.btn[data-variant=primary][aria-disabled=true]{background:var(--basalt-state-selected);box-shadow:none}.btn[data-variant=ghost][disabled]{box-shadow:none}.btn[aria-busy=true]{cursor:progress}.btn[aria-busy=true]>*{opacity:0}.btn[aria-busy=true]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--basalt-size-icon-sm);height:var(--basalt-size-icon-sm);border:1.5px solid color-mix(in oklch,currentColor 25%,transparent);border-top-color:currentColor;border-radius:var(--basalt-radius-full);animation:bh-spin var(--basalt-duration-loop-ring) linear infinite}.btn svg{flex:none}@media(pointer:coarse),(width<720px){.btn{min-height:var(--basalt-size-tap-min);border-radius:var(--basalt-radius-md)}.btn[data-icon-only]{min-width:var(--basalt-size-tap-min)}}@media(pointer:coarse),(width<720px){a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),nav a:not(.btn),.footer a,.tap{display:inline-flex;align-items:center;min-height:var(--basalt-size-tap-min);margin-block:var(--bh-tap-margin, min( 0lh , calc((1lh - var(--basalt-size-tap-min)) / 2)))}.skip-link{display:inline-flex;align-items:center;min-height:var(--basalt-size-tap-min)}:is(a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,.topbar-links a,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),.tap){position:relative}:is(a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,.topbar-links a,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),.tap):after{content:"";position:absolute;inset-block:0;left:50%;width:max(100%,var(--basalt-size-tap-min));transform:translate(-50%)}.stack>a:not(.btn,.row,.tab,.disclosure):has(+a){margin-block-end:0;min-height:calc((var(--basalt-size-tap-min) + 1lh) / 2);align-items:flex-end}.stack>a+a:not(.btn,.row,.tab,.disclosure){margin-block-start:0;min-height:calc((var(--basalt-size-tap-min) + 1lh) / 2);align-items:flex-start}.stack>a+a:not(.btn,.row,.tab,.disclosure):has(+a){min-height:1lh;align-items:center}}@keyframes bh-spin{to{transform:rotate(360deg)}}@keyframes bh-fade{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn[aria-busy=true]:after{animation:bh-fade var(--basalt-duration-loop-fade) var(--basalt-ease-in-out) infinite;border-top-color:color-mix(in oklch,currentColor 25%,transparent)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]){transform:none}.btn{transition-property:background-color,color,box-shadow}}@media(forced-colors:active){:is(.panel,.card,.callout,.code,.table-wrap){border-color:CanvasText}.btn{border:var(--basalt-size-hairline) solid ButtonText}}@media print{.skip-link{display:none}:is(.panel,.card,.callout,.code,.table-wrap){break-inside:avoid}}} +:root{--basalt-neutral-0: oklch(0 0 0);--basalt-neutral-4: oklch(.1448 0 0);--basalt-neutral-7: oklch(.1776 0 0);--basalt-neutral-9: oklch(.2046 0 0);--basalt-neutral-20: oklch(.3211 0 0);--basalt-neutral-30: oklch(.4202 0 0);--basalt-neutral-36: oklch(.4748 0 0);--basalt-neutral-42: oklch(.5278 0 0);--basalt-neutral-52: oklch(.6167 0 0);--basalt-neutral-59: oklch(.675 0 0);--basalt-neutral-63: oklch(.709 0 0);--basalt-neutral-64: oklch(.7155 0 0);--basalt-neutral-73: oklch(.79 0 0);--basalt-neutral-75: oklch(.8047 0 0);--basalt-neutral-93: oklch(.9461 0 0);--basalt-neutral-94: oklch(.9551 0 0);--basalt-neutral-96: oklch(.9702 0 0);--basalt-neutral-98: oklch(.9851 0 0);--basalt-neutral-100: oklch(1 0 0);--basalt-neutral-42-4: oklch(.53 0 0);--basalt-neutral-95-7: oklch(.966 0 0);--basalt-white-6: oklch(1 0 0 / .06);--basalt-white-8: oklch(1 0 0 / .08);--basalt-white-9: oklch(1 0 0 / .09);--basalt-white-15: oklch(1 0 0 / .145);--basalt-white-24: oklch(1 0 0 / .24);--basalt-white-38: oklch(1 0 0 / .38);--basalt-black-4: oklch(0 0 0 / .04);--basalt-black-6: oklch(0 0 0 / .06);--basalt-black-7: oklch(0 0 0 / .07);--basalt-black-8: oklch(0 0 0 / .08);--basalt-black-10: oklch(0 0 0 / .1);--basalt-black-16: oklch(0 0 0 / .16);--basalt-black-18: oklch(0 0 0 / .18);--basalt-black-24: oklch(0 0 0 / .24);--basalt-black-40: oklch(0 0 0 / .4);--basalt-black-45: oklch(0 0 0 / .45);--basalt-black-60: oklch(0 0 0 / .6);--basalt-black-80: oklch(0 0 0 / .8);--basalt-status-danger-dark: oklch(.7 .191 22);--basalt-status-success-dark: oklch(.73 .211 148);--basalt-status-warning-dark: oklch(.79 .171 70);--basalt-status-danger-light: oklch(.51 .19 25);--basalt-status-success-light: oklch(.55 .159 148);--basalt-status-warning-light: oklch(.6 .137 62);--basalt-space-0: 0px;--basalt-space-1: 4px;--basalt-space-2: 8px;--basalt-space-3: 12px;--basalt-space-4: 16px;--basalt-space-5: 20px;--basalt-space-6: 24px;--basalt-space-8: 32px;--basalt-space-10: 40px;--basalt-space-12: 48px;--basalt-space-16: 64px;--basalt-space-24: 96px;--basalt-space-0-5: 2px;--basalt-space-1-5: 6px;--basalt-space-2-5: 10px;--basalt-space-3-5: 14px;--basalt-radius-2xs: 2px;--basalt-radius-xs: 4px;--basalt-radius-sm: 6px;--basalt-radius-md: 8px;--basalt-radius-lg: 12px;--basalt-radius-xl: 16px;--basalt-radius-full: 9999px;--basalt-size-control-xs: 24px;--basalt-size-control-sm: 28px;--basalt-size-control-md: 32px;--basalt-size-control-lg: 36px;--basalt-size-control-xl: 40px;--basalt-size-control-2xl: 44px;--basalt-size-control-3xl: 48px;--basalt-size-control-4xl: 52px;--basalt-size-control-5xl: 56px;--basalt-size-control-6xl: 64px;--basalt-size-menu-row: 36px;--basalt-size-menu-row-touch: 44px;--basalt-size-tap-min: 44px;--basalt-size-icon-sm: 16px;--basalt-size-icon-md: 20px;--basalt-size-icon-lg: 24px;--basalt-size-focus-width: 2px;--basalt-size-focus-offset: 2px;--basalt-size-hairline: 1px;--basalt-size-indicator: 2px;--basalt-size-description-label: 160px;--basalt-size-field-label-inline: 80px;--basalt-size-track: 4px;--basalt-size-dot: 6px;--basalt-size-choice: 16px;--basalt-size-choice-mark: 12px;--basalt-size-switch-width: 32px;--basalt-size-switch-height: 18px;--basalt-size-switch-thumb: 14px;--basalt-size-kbd: 20px;--basalt-size-badge: 22px;--basalt-size-table-row: 40px;--basalt-size-command-input: 48px;--basalt-size-code-line-height: 20px;--basalt-size-underline-offset: 3px;--basalt-size-slider-length: 180px;--basalt-size-dialog-width: 480px;--basalt-size-sheet-width: 440px;--basalt-size-command-width: 560px;--basalt-size-dialog-width-wide: 992px;--basalt-size-search-trigger: 200px;--basalt-size-search-logo-width: 96px;--basalt-size-search-logo-height: 48px;--basalt-size-search-pack-width: 48px;--basalt-size-search-pack-height: 60px;--basalt-size-toast-width: 360px;--basalt-size-popover-max: 320px;--basalt-size-tooltip-max: 280px;--basalt-size-menu-min: 200px;--basalt-size-select-min: 160px;--basalt-size-popup-max-height: 360px;--basalt-size-list-width: 320px;--basalt-size-header: 56px;--basalt-size-tab-bar: 56px;--basalt-size-sidebar-width: 256px;--basalt-size-rail-width: 72px;--basalt-size-page-width: 72rem;--basalt-size-prose-width: 34rem;--basalt-size-gutter: var(--basalt-space-6);--basalt-size-gutter-narrow: var(--basalt-space-4);--basalt-size-breakpoint-md: 720px;--basalt-size-breakpoint-lg: 1024px;--basalt-size-breakpoint-container: 480px;--basalt-size-breakpoint-container-sm: 340px;--basalt-size-breakpoint-container-lg: 640px;--basalt-size-cut: 2px;--basalt-size-hatch-pitch: 4px;--basalt-size-meter-marker: 12px;--basalt-opacity-amount: .72;--basalt-font-family-sans: Geist, "Geist Fallback", ui-sans-serif, system-ui, sans-serif;--basalt-font-family-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--basalt-font-weight-regular: 400;--basalt-font-weight-medium: 500;--basalt-font-weight-semibold: 600;--basalt-text-xs-size: 12px;--basalt-text-xs-line-height: 16px;--basalt-text-xs-tracking: .01em;--basalt-text-sm-size: 13px;--basalt-text-sm-line-height: 18px;--basalt-text-sm-tracking: 0em;--basalt-text-base-size: 14px;--basalt-text-base-line-height: 20px;--basalt-text-base-tracking: 0em;--basalt-text-md-size: 16px;--basalt-text-md-line-height: 24px;--basalt-text-md-tracking: -.005em;--basalt-text-lg-size: 18px;--basalt-text-lg-line-height: 26px;--basalt-text-lg-tracking: -.01em;--basalt-text-xl-size: 20px;--basalt-text-xl-line-height: 28px;--basalt-text-xl-tracking: -.015em;--basalt-text-2xl-size: 24px;--basalt-text-2xl-line-height: 30px;--basalt-text-2xl-tracking: -.02em;--basalt-text-3xl-size: 30px;--basalt-text-3xl-line-height: 36px;--basalt-text-3xl-tracking: -.025em;--basalt-text-4xl-size: 40px;--basalt-text-4xl-line-height: 44px;--basalt-text-4xl-tracking: -.03em;--basalt-text-5xl-size: 56px;--basalt-text-5xl-line-height: 60px;--basalt-text-5xl-tracking: -.035em;--basalt-blur-chrome: 12px;--basalt-duration-instant: 0ms;--basalt-duration-fast: .1s;--basalt-duration-base: .15s;--basalt-duration-slow: .2s;--basalt-duration-slower: .3s;--basalt-duration-confirm: 1.5s;--basalt-duration-figure: .6s;--basalt-duration-stagger: 22ms;--basalt-duration-loop-ring: .64s;--basalt-duration-loop-braille: .8s;--basalt-duration-loop-fade: 1.2s;--basalt-duration-loop-ambient: 6s;--basalt-ease-out: cubic-bezier(.16, 1, .3, 1);--basalt-ease-in-out: cubic-bezier(.65, 0, .35, 1);--basalt-ease-in: cubic-bezier(.4, 0, 1, 1);--basalt-ease-linear: cubic-bezier(0, 0, 1, 1);--basalt-layer-base: 0;--basalt-layer-sticky: 100;--basalt-layer-overlay: 500;--basalt-layer-popover: 600;--basalt-layer-dialog: 700;--basalt-layer-toast: 800;--basalt-layer-tooltip: 1100}:root,[data-theme=light],.light{color-scheme:light;--basalt-status-danger: var(--basalt-status-danger-light);--basalt-status-success: var(--basalt-status-success-light);--basalt-status-warning: var(--basalt-status-warning-light);--basalt-syntax-keyword: oklch(.5 .12 255);--basalt-syntax-string: oklch(.5 .12 150);--basalt-syntax-constant: oklch(.5 .1 70);--basalt-syntax-function: oklch(.5 .12 305);--basalt-syntax-comment: var(--basalt-text-tertiary);--basalt-surface-0: var(--basalt-neutral-98);--basalt-surface-1: var(--basalt-neutral-100);--basalt-surface-2: var(--basalt-neutral-100);--basalt-surface-3: var(--basalt-neutral-100);--basalt-surface-page: var(--basalt-surface-0);--basalt-surface-raised: var(--basalt-surface-1);--basalt-surface-overlay: var(--basalt-surface-2);--basalt-surface-top: var(--basalt-surface-3);--basalt-surface-sunken: var(--basalt-neutral-96);--basalt-surface-well-2: var(--basalt-surface-sunken);--basalt-surface-well-3: var(--basalt-surface-sunken);--basalt-surface-sunken-strong: var(--basalt-neutral-94);--basalt-surface-kbd: var(--basalt-black-6);--basalt-surface-chrome: oklch(.9851 0 0 / .96);--basalt-surface-placeholder: var(--basalt-neutral-94);--basalt-text-primary: var(--basalt-neutral-9);--basalt-text-secondary: var(--basalt-neutral-30);--basalt-text-tertiary: var(--basalt-neutral-42);--basalt-text-disabled: var(--basalt-neutral-64);--basalt-text-inverse: var(--basalt-neutral-100);--basalt-border-rim: var(--basalt-black-8);--basalt-border-rim-top: var(--basalt-black-8);--basalt-border-hairline: var(--basalt-black-8);--basalt-border-hover: var(--basalt-black-16);--basalt-border-divider: var(--basalt-black-8);--basalt-border-input: var(--basalt-black-45);--basalt-border-field: var(--basalt-border-input);--basalt-border-focus: var(--basalt-neutral-30);--basalt-state-hover: var(--basalt-black-4);--basalt-state-selected: var(--basalt-black-7);--basalt-plate-0: oklch(.9325 0 0);--basalt-plate-1: oklch(.9466 0 0);--basalt-plate-2: oklch(.9466 0 0);--basalt-plate-3: oklch(.9466 0 0);--basalt-action-primary: var(--basalt-neutral-9);--basalt-action-primary-hover: var(--basalt-neutral-0);--basalt-action-primary-press: var(--basalt-neutral-20);--basalt-action-primary-text: var(--basalt-neutral-100);--basalt-line-contrast: var(--basalt-black-45);--basalt-ink-contrast: var(--basalt-neutral-30);--basalt-field-contrast: var(--basalt-neutral-30);--basalt-scrim: var(--basalt-black-40);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(0 0 0 / .08), 0px 0px 0px 1px oklch(.9851 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .06), 0px 16px 24px -8px oklch(0 0 0 / .1);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .06), 0px 24px 32px -8px oklch(0 0 0 / .1)}[data-theme=dark],.dark{color-scheme:dark;--basalt-status-danger: var(--basalt-status-danger-dark);--basalt-status-success: var(--basalt-status-success-dark);--basalt-status-warning: var(--basalt-status-warning-dark);--basalt-syntax-keyword: oklch(.8 .09 255);--basalt-syntax-string: oklch(.8 .09 150);--basalt-syntax-constant: oklch(.8 .09 70);--basalt-syntax-function: oklch(.8 .09 305);--basalt-syntax-comment: var(--basalt-text-tertiary);--basalt-surface-0: var(--basalt-neutral-0);--basalt-surface-1: var(--basalt-neutral-4);--basalt-surface-2: var(--basalt-neutral-7);--basalt-surface-3: var(--basalt-neutral-9);--basalt-surface-page: var(--basalt-surface-0);--basalt-surface-raised: var(--basalt-surface-1);--basalt-surface-overlay: var(--basalt-surface-2);--basalt-surface-top: var(--basalt-surface-3);--basalt-surface-sunken: var(--basalt-surface-1);--basalt-surface-well-2: var(--basalt-surface-2);--basalt-surface-well-3: var(--basalt-surface-3);--basalt-surface-sunken-strong: var(--basalt-surface-2);--basalt-surface-kbd: var(--basalt-white-8);--basalt-surface-chrome: oklch(0 0 0 / .925);--basalt-surface-placeholder: var(--basalt-neutral-9);--basalt-text-primary: var(--basalt-neutral-95-7);--basalt-text-secondary: var(--basalt-neutral-73);--basalt-text-tertiary: var(--basalt-neutral-59);--basalt-text-disabled: var(--basalt-neutral-42-4);--basalt-text-inverse: var(--basalt-neutral-0);--basalt-border-hairline: var(--basalt-white-15);--basalt-border-rim: var(--basalt-white-6);--basalt-border-rim-top: var(--basalt-white-8);--basalt-border-hover: var(--basalt-white-24);--basalt-border-divider: var(--basalt-white-6);--basalt-border-input: var(--basalt-white-38);--basalt-border-field: var(--basalt-border-input);--basalt-border-focus: var(--basalt-text-secondary);--basalt-state-hover: var(--basalt-white-6);--basalt-state-selected: var(--basalt-white-9);--basalt-plate-0: oklch(.2438 0 0);--basalt-plate-1: oklch(.2703 0 0);--basalt-plate-2: oklch(.2926 0 0);--basalt-plate-3: oklch(.2926 0 0);--basalt-action-primary: var(--basalt-neutral-93);--basalt-action-primary-hover: var(--basalt-neutral-100);--basalt-action-primary-press: var(--basalt-neutral-75);--basalt-action-primary-text: var(--basalt-neutral-0);--basalt-line-contrast: var(--basalt-white-38);--basalt-ink-contrast: var(--basalt-text-secondary);--basalt-field-contrast: var(--basalt-text-secondary);--basalt-scrim: var(--basalt-black-80);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(1 0 0 / .145), 0px 0px 0px 1px oklch(0 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .24), 0px 16px 24px -8px oklch(0 0 0 / .4);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .24), 0px 24px 32px -8px oklch(0 0 0 / .6)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){color-scheme:dark;--basalt-status-danger: var(--basalt-status-danger-dark);--basalt-status-success: var(--basalt-status-success-dark);--basalt-status-warning: var(--basalt-status-warning-dark);--basalt-syntax-keyword: oklch(.8 .09 255);--basalt-syntax-string: oklch(.8 .09 150);--basalt-syntax-constant: oklch(.8 .09 70);--basalt-syntax-function: oklch(.8 .09 305);--basalt-surface-0: var(--basalt-neutral-0);--basalt-surface-1: var(--basalt-neutral-4);--basalt-surface-2: var(--basalt-neutral-7);--basalt-surface-3: var(--basalt-neutral-9);--basalt-surface-sunken: var(--basalt-surface-1);--basalt-surface-well-2: var(--basalt-surface-2);--basalt-surface-well-3: var(--basalt-surface-3);--basalt-surface-sunken-strong: var(--basalt-surface-2);--basalt-surface-kbd: var(--basalt-white-8);--basalt-surface-chrome: oklch(0 0 0 / .925);--basalt-surface-placeholder: var(--basalt-neutral-9);--basalt-text-primary: var(--basalt-neutral-95-7);--basalt-text-secondary: var(--basalt-neutral-73);--basalt-text-tertiary: var(--basalt-neutral-59);--basalt-text-disabled: var(--basalt-neutral-42-4);--basalt-text-inverse: var(--basalt-neutral-0);--basalt-border-hairline: var(--basalt-white-15);--basalt-border-rim: var(--basalt-white-6);--basalt-border-rim-top: var(--basalt-white-8);--basalt-border-hover: var(--basalt-white-24);--basalt-border-divider: var(--basalt-white-6);--basalt-border-input: var(--basalt-white-38);--basalt-border-focus: var(--basalt-text-secondary);--basalt-state-hover: var(--basalt-white-6);--basalt-state-selected: var(--basalt-white-9);--basalt-plate-0: oklch(.2438 0 0);--basalt-plate-1: oklch(.2703 0 0);--basalt-plate-2: oklch(.2926 0 0);--basalt-plate-3: oklch(.2926 0 0);--basalt-action-primary: var(--basalt-neutral-93);--basalt-action-primary-hover: var(--basalt-neutral-100);--basalt-action-primary-press: var(--basalt-neutral-75);--basalt-action-primary-text: var(--basalt-neutral-0);--basalt-line-contrast: var(--basalt-white-38);--basalt-ink-contrast: var(--basalt-text-secondary);--basalt-field-contrast: var(--basalt-text-secondary);--basalt-scrim: var(--basalt-black-80);--basalt-shadow-hairline: 0px 0px 0px 1px oklch(1 0 0 / .145), 0px 0px 0px 1px oklch(0 0 0);--basalt-shadow-overlay: 0px 4px 8px -4px oklch(0 0 0 / .24), 0px 16px 24px -8px oklch(0 0 0 / .4);--basalt-shadow-modal: 0px 8px 16px -4px oklch(0 0 0 / .24), 0px 24px 32px -8px oklch(0 0 0 / .6)}}@media(prefers-contrast:more){:root,[data-theme=light],[data-theme=dark],.light,.dark,:root:not([data-theme=light]):not(.light){--basalt-border-hairline: var(--basalt-line-contrast);--basalt-border-rim: var(--basalt-line-contrast);--basalt-border-rim-top: var(--basalt-line-contrast);--basalt-border-divider: var(--basalt-line-contrast);--basalt-text-tertiary: var(--basalt-ink-contrast);--basalt-border-field: var(--basalt-field-contrast);--basalt-border-hover: var(--basalt-text-secondary);--basalt-shadow-hairline: 0px 0px 0px 1px var(--basalt-line-contrast), 0px 0px 0px 1px var(--basalt-surface-0)}}@media(prefers-reduced-motion:reduce){:root{--basalt-duration-base: .1s;--basalt-duration-slow: .1s;--basalt-duration-slower: .1s;--basalt-duration-figure: .1s;--basalt-duration-stagger: 0ms}}@layer reset,basalt;@layer reset{*,*:before,*:after{box-sizing:border-box}html{background:var(--basalt-surface-0);-webkit-text-size-adjust:100%}body{margin:0;background:var(--basalt-surface-0);color:var(--basalt-text-primary);font:var(--basalt-font-weight-regular) var(--bh-base);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}b,strong,th{font-weight:var(--basalt-font-weight-semibold)}img,svg,video{max-width:100%}button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit;margin:0}a{color:inherit;text-decoration:underline;text-decoration-color:var(--basalt-border-input);text-underline-offset:var(--basalt-size-underline-offset)}a:hover{text-decoration-color:currentColor}h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}h1,h2,h3,h4{font-weight:var(--basalt-font-weight-semibold);color:var(--basalt-text-primary);text-wrap:balance}h5,h6{font-weight:var(--basalt-font-weight-semibold)}h1,.display{font-size:var(--basalt-text-3xl-size);line-height:var(--basalt-text-3xl-line-height);letter-spacing:var(--basalt-text-3xl-tracking)}h2{font-size:var(--basalt-text-2xl-size);line-height:var(--basalt-text-2xl-line-height);letter-spacing:var(--basalt-text-2xl-tracking)}h3{font-size:var(--basalt-text-lg-size);line-height:var(--basalt-text-lg-line-height);letter-spacing:var(--basalt-text-lg-tracking)}h4{font-size:var(--basalt-text-base-size);line-height:var(--basalt-text-base-line-height)}@media(width>=720px){h1,.display{font-size:var(--basalt-text-4xl-size);line-height:var(--basalt-text-4xl-line-height);letter-spacing:var(--basalt-text-4xl-tracking)}}p,li{text-wrap:pretty}code:not(.code code){padding:var(--basalt-size-hairline) var(--basalt-space-1);border-radius:var(--basalt-radius-xs);background:var(--basalt-surface-kbd);font:var(--basalt-font-weight-regular) .92em / 1 var(--basalt-font-family-mono)}pre,code,kbd,samp{font-family:var(--basalt-font-family-mono)}}@layer basalt{:root{--bh-xs: var(--basalt-text-xs-size) / var(--basalt-text-xs-line-height) var(--basalt-font-family-sans);--bh-sm: var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-sans);--bh-base: var(--basalt-text-base-size) / var(--basalt-text-base-line-height) var(--basalt-font-family-sans);--bh-md: var(--basalt-text-md-size) / var(--basalt-text-md-line-height) var(--basalt-font-family-sans);--bh-2xl: var(--basalt-text-2xl-size) / var(--basalt-text-2xl-line-height) var(--basalt-font-family-sans);--bh-xs-mono: var(--basalt-text-xs-size) / var(--basalt-text-xs-line-height) var(--basalt-font-family-mono);--bh-sm-mono: var(--basalt-text-sm-size) / var(--basalt-size-code-line-height) var(--basalt-font-family-mono)}:root{accent-color:var(--basalt-action-primary);--basalt-gutter: var(--basalt-size-gutter)}@media(width<720px){:root{--basalt-gutter: var(--basalt-size-gutter-narrow)}}a,button,summary,[role=tab],.row,.disclosure,.segment button{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}::selection{background:var(--basalt-state-selected)}svg.icon{flex:none}svg[data-brand]{pointer-events:none}.dot-sep:before{content:"·";content:"·" / ""}.dot-sep[data-spaced]:before{content:" · ";content:" · " / ""}.dot-sep>.visually-hidden{white-space:pre}.display{font-weight:var(--basalt-font-weight-semibold)}.text-5xl{font-size:var(--basalt-text-5xl-size);line-height:var(--basalt-text-5xl-line-height);letter-spacing:var(--basalt-text-5xl-tracking);font-weight:var(--basalt-font-weight-semibold)}.lead{font-size:var(--basalt-text-md-size);line-height:var(--basalt-text-md-line-height);color:var(--basalt-text-secondary);max-width:var(--basalt-size-prose-width);text-wrap:pretty}.eyebrow{font:var(--basalt-font-weight-medium) var(--bh-xs);color:var(--basalt-text-secondary)}.muted{color:var(--basalt-text-secondary)}.faint{color:var(--basalt-text-tertiary)}.small{font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height)}.mono{font-family:var(--basalt-font-family-mono)}.num{font-variant-numeric:tabular-nums}.prose{max-inline-size:var(--basalt-size-prose-width);margin-inline:0 auto}.prose>*+*{margin-top:var(--basalt-space-4)}.prose>:is(h2,h3){margin-top:var(--basalt-space-8)}.prose>:is(h2,h3)+*{margin-top:var(--basalt-space-2)}.prose :is(ul,ol){padding-inline-start:var(--basalt-space-5)}.prose li+li{margin-top:var(--basalt-space-1)}.prose blockquote{padding-inline-start:var(--basalt-space-4);color:var(--basalt-text-secondary)}.page{width:100%;max-width:var(--basalt-size-page-width);margin-inline:auto;padding:var(--basalt-space-8) var(--basalt-gutter) var(--basalt-space-16)}.page.narrow{max-width:46rem}@media(width<720px){.page{padding-block:var(--basalt-space-6) var(--basalt-space-12)}}.stack{display:flex;flex-direction:column;gap:var(--gap, var(--basalt-space-4));min-width:0}.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap, var(--basalt-space-2));min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min, 220px),100%),1fr));gap:var(--gap, var(--basalt-space-4))}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap, var(--basalt-space-6))}@media(width>=720px){.split.aside{grid-template-columns:minmax(0,var(--basalt-size-list-width)) minmax(0,1fr);align-items:start}}@media(width<720px){.split{grid-template-columns:minmax(0,1fr)}}.spacer{flex:1}@media(width<720px){.hide-narrow{display:none!important}}.section{margin-top:var(--basalt-space-12)}.section>.section-head{margin-bottom:var(--basalt-space-4)}.footer{margin-top:var(--basalt-space-16);padding-top:var(--basalt-space-4);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider);color:var(--basalt-text-secondary);font-size:var(--basalt-text-sm-size)}.footer:not(.page .footer){width:calc(min(100%,var(--basalt-size-page-width)) - 2 * var(--basalt-gutter));margin-top:0;margin-inline:auto;padding-bottom:var(--basalt-space-8)}.skip-link{position:absolute;inset-inline-start:var(--basalt-space-2);top:var(--basalt-space-2);transform:translateY(-200%);padding:var(--basalt-space-2) var(--basalt-space-3);border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-md);background:var(--basalt-surface-3);color:var(--basalt-text-primary);z-index:var(--basalt-layer-toast)}.skip-link:focus{transform:none;box-shadow:var(--basalt-shadow-overlay)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken);--panel-plate: light-dark(var(--basalt-state-selected), color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--panel-next)));position:relative;min-width:0;background-color:var(--panel-bg);color:var(--basalt-text-primary);border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-lg)}:is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}:is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap) :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-3);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-3)}@supports not (color: light-dark(white,black)){:root,[data-theme=light],.light{--_dkp: 0%}[data-theme=dark],.dark{--_dkp: 100%}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){--_dkp: 100%}}:root,:is(.panel,.card,.callout,.code,.table-wrap){--_dk: color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--panel-next, var(--basalt-surface-1)));--_mx: color-mix(in srgb, var(--_dk) var(--_dkp), color-mix(in srgb, var(--basalt-neutral-0) 7%, var(--panel-bg, var(--basalt-surface-page))));--panel-plate: color-mix(in srgb, var(--_dk) var(--_dkp), var(--basalt-state-selected))}.choice-card.choice-card{--_solid: var(--_mx)}.btn.btn.btn[aria-pressed=true]:not([data-variant=primary],[data-variant=danger]){background:var(--_mx)}.segment.segment{--pill-fill: color-mix(in srgb, color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--basalt-surface-top)) var(--_dkp), var(--basalt-surface-top))}select.input.input{--_pop-plate: color-mix(in srgb, color-mix(in srgb, var(--basalt-neutral-100) 9%, var(--_pop-next)) var(--_dkp), var(--basalt-state-selected))}}.panel-pad,.card{padding:var(--basalt-space-4)}@media(width>=720px){.panel-pad.lg,.card.lg{padding:var(--basalt-space-6)}}.panel-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--basalt-space-2);padding:var(--basalt-space-3) var(--basalt-space-4);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider);font-weight:var(--basalt-font-weight-medium)}.float{--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken);box-shadow:var(--basalt-shadow-overlay)}.float.modal{box-shadow:var(--basalt-shadow-modal);--panel-bg: var(--basalt-surface-1);--panel-next: var(--basalt-surface-2);--panel-well: var(--basalt-surface-sunken)}.float.modal :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}[data-level="0"]{--panel-next: var(--basalt-surface-1)}[data-level="1"] :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-2);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-2)}[data-level="2"] :is(.panel,.card,.callout,.code,.table-wrap),[data-level="3"] :is(.panel,.card,.callout,.code,.table-wrap){--panel-bg: var(--basalt-surface-3);--panel-next: var(--basalt-surface-3);--panel-well: var(--basalt-surface-well-3)}.divider{display:block;height:var(--basalt-size-hairline);margin:0;border:0;background:var(--basalt-border-divider);flex:none}.divide-y>*+*{border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.btn{position:relative;--_h: var(--basalt-size-control-md);--_px: var(--basalt-space-3);display:inline-flex;align-items:center;justify-content:center;gap:var(--basalt-space-1-5);height:var(--_h);padding:0 var(--_px);margin:0;border:0;border-radius:var(--basalt-radius-sm);font:var(--basalt-font-weight-medium) var(--basalt-text-base-size) / 1 var(--basalt-font-family-sans);white-space:nowrap;text-decoration:none;cursor:pointer;user-select:none;background:var(--basalt-surface-1);color:var(--basalt-text-primary);box-shadow:var(--basalt-shadow-hairline);transition-property:background-color,color,box-shadow,transform;transition-duration:var(--basalt-duration-fast);transition-timing-function:var(--basalt-ease-out)}.btn[data-size=sm]{--_h: var(--basalt-size-control-sm);--_px: var(--basalt-space-2-5);font-size:var(--basalt-text-sm-size)}.btn[data-size=lg]{--_h: var(--basalt-size-control-lg);--_px: var(--basalt-space-3-5);border-radius:var(--basalt-radius-md)}.btn[data-icon-only]{width:var(--_h);padding:0}.btn[data-variant=primary]{background:var(--basalt-action-primary);color:var(--basalt-action-primary-text);box-shadow:none}.btn[data-variant=ghost]{background:transparent;color:var(--basalt-text-secondary);box-shadow:none}.btn[data-variant=danger]{background:transparent;color:var(--basalt-status-danger);box-shadow:inset 0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-status-danger) 45%,transparent)}@media(hover:hover){.btn:hover:not([disabled],[aria-disabled=true]){box-shadow:0 0 0 var(--basalt-size-hairline) var(--basalt-border-hover),0 0 0 var(--basalt-size-hairline) var(--basalt-surface-0)}.btn[data-variant=primary]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-action-primary-hover);box-shadow:none}.btn[data-variant=ghost]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-state-hover);color:var(--basalt-text-primary);box-shadow:none}.btn[data-variant=danger]:hover:not([disabled],[aria-disabled=true]){background:var(--basalt-state-hover);box-shadow:inset 0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-status-danger) 70%,transparent)}}.btn:active:not([disabled],[aria-disabled=true]){background:var(--basalt-state-selected)}.btn[data-variant=primary]:active:not([disabled],[aria-disabled=true]){background:var(--basalt-action-primary-press)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]){transform:scale(.98)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]):after{content:"";position:absolute;inset:-1.03%}.btn[disabled],.btn[aria-disabled=true]{cursor:not-allowed;color:var(--basalt-text-disabled);box-shadow:0 0 0 var(--basalt-size-hairline) color-mix(in oklch,var(--basalt-border-hairline) 50%,transparent)}.btn[data-variant=primary][disabled],.btn[data-variant=primary][aria-disabled=true]{background:var(--basalt-state-selected);box-shadow:none}.btn[data-variant=ghost][disabled]{box-shadow:none}.btn[aria-busy=true]{cursor:progress}.btn[aria-busy=true]>*{opacity:0}.btn[aria-busy=true]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--basalt-size-icon-sm);height:var(--basalt-size-icon-sm);border:1.5px solid color-mix(in oklch,currentColor 25%,transparent);border-top-color:currentColor;border-radius:var(--basalt-radius-full);animation:bh-spin var(--basalt-duration-loop-ring) linear infinite}.btn svg{flex:none}@media(pointer:coarse),(width<720px){.btn{min-height:var(--basalt-size-tap-min);border-radius:var(--basalt-radius-md)}.btn[data-icon-only]{min-width:var(--basalt-size-tap-min)}}@media(pointer:coarse),(width<720px){a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),nav a:not(.btn,.site-footer-links-host a),.footer a,.tap{display:inline-flex;align-items:center;min-height:var(--basalt-size-tap-min);margin-block:var(--bh-tap-margin, min( 0lh , calc((1lh - var(--basalt-size-tap-min)) / 2)))}.skip-link{display:inline-flex;align-items:center;min-height:var(--basalt-size-tap-min)}:is(a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,.topbar-links a,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),.tap){position:relative}:is(a:not(.btn,.row,.tab,.disclosure,.brand,.skip-link,.topbar-links a,:is(p,li,.prose,.small,.hint,.error,.callout-body) a),.tap):after{content:"";position:absolute;inset-block:0;left:50%;width:max(100%,var(--basalt-size-tap-min));transform:translate(-50%)}.stack>a:not(.btn,.row,.tab,.disclosure):has(+a){margin-block-end:0;min-height:calc((var(--basalt-size-tap-min) + 1lh) / 2);align-items:flex-end}.stack>a+a:not(.btn,.row,.tab,.disclosure){margin-block-start:0;min-height:calc((var(--basalt-size-tap-min) + 1lh) / 2);align-items:flex-start}.stack>a+a:not(.btn,.row,.tab,.disclosure):has(+a){min-height:1lh;align-items:center}}@keyframes bh-spin{to{transform:rotate(360deg)}}@keyframes bh-fade{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn[aria-busy=true]:after{animation:bh-fade var(--basalt-duration-loop-fade) var(--basalt-ease-in-out) infinite;border-top-color:color-mix(in oklch,currentColor 25%,transparent)}.btn:active:not([disabled],[aria-disabled=true],[aria-busy=true]){transform:none}.btn{transition-property:background-color,color,box-shadow}}@media(forced-colors:active){:is(.panel,.card,.callout,.code,.table-wrap){border-color:CanvasText}.btn{border:var(--basalt-size-hairline) solid ButtonText}}@media print{.skip-link{display:none}:is(.panel,.card,.callout,.code,.table-wrap){break-inside:avoid}}} diff --git a/.agent/skills/basalt-html/parts/manifest.json b/.agent/skills/basalt-html/parts/manifest.json index 2ce034a6..84409c32 100644 --- a/.agent/skills/basalt-html/parts/manifest.json +++ b/.agent/skills/basalt-html/parts/manifest.json @@ -1,8 +1,8 @@ { - "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720).", + "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720). The full run after the stream (DECISIONS 246): the site footer's links keep their own flex column under 720, as React's, out of the bare-link touch rule (26 bytes), so core is 35400 (measured 35357); sheet 5250 to 5400 (measured 5368: React's B5 ring room, ported: the held actions reach space-1-5 above their band, clipped, and the body keeps space-1-5 at each end).", "budgets": { "skillMd": 12550, - "core": 35350 + "core": 35400 }, "core": { "classes": [ @@ -1059,7 +1059,7 @@ "requires": [ "dialog" ], - "budget": 5250, + "budget": 5400, "usage": 1450 }, "dialog-form": { diff --git a/.agent/skills/basalt-html/parts/sheet.css b/.agent/skills/basalt-html/parts/sheet.css index 7d928fae..87dc8a42 100644 --- a/.agent/skills/basalt-html/parts/sheet.css +++ b/.agent/skills/basalt-html/parts/sheet.css @@ -1 +1 @@ -@layer basalt{dialog.sheet{--_dur: var(--basalt-duration-slower);--_bin: var(--basalt-duration-slow);--_bout: calc(var(--basalt-duration-slower) * .75);--_safe-top: env(safe-area-inset-top, var(--basalt-space-0));--_pad: var(--basalt-space-6);margin:0;height:auto;max-height:none;padding:max(var(--_pad),var(--_safe-top)) max(var(--_pad),env(safe-area-inset-right,var(--basalt-space-0))) max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))) max(var(--_pad),env(safe-area-inset-left,var(--basalt-space-0)));border:0;border-radius:0;opacity:1}dialog.sheet[open]{display:flex;flex-direction:column}.sheet[data-side=right],.sheet[data-side=left]{top:0;bottom:0;width:min(var(--basalt-size-sheet-width),100%)}.sheet[data-side=right]{inset-inline:auto 0;border-left:var(--basalt-size-hairline) solid var(--basalt-border-rim);transform:translate(100%)}.sheet[data-side=left]{inset-inline:0 auto;border-right:var(--basalt-size-hairline) solid var(--basalt-border-rim);transform:translate(-100%)}.sheet[data-side=bottom]{inset:auto 0 0;width:auto;max-height:90dvh;border-radius:var(--basalt-radius-xl) var(--basalt-radius-xl) 0 0;border-top:var(--basalt-size-hairline) solid var(--basalt-border-rim-top);transform:translateY(100%)}.sheet[open]{transform:none}@starting-style{dialog.sheet[open]{opacity:1;transform:translate(100%)}}@starting-style{dialog.sheet[data-side=left][open]{transform:translate(-100%)}}@starting-style{dialog.sheet[data-side=bottom][open]{transform:translateY(100%)}}dialog.sheet[data-side=top]{--_reach: calc(-1 * var(--basalt-space-16));--_bin: var(--basalt-duration-slower);inset:0 0 auto;width:auto;max-height:100dvh;padding:0;padding-top:var(--_safe-top);overscroll-behavior:contain;border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-radius:0 0 var(--basalt-radius-xl) var(--basalt-radius-xl);transform:none;clip-path:inset(0 var(--_reach) calc(100% - var(--basalt-size-header) - var(--_safe-top)) var(--_reach))}dialog.sheet[data-side=top][open]{clip-path:inset(0 var(--_reach) var(--_reach) var(--_reach))}@starting-style{dialog.sheet[data-side=top][open]{opacity:1;transform:none;clip-path:inset(0 var(--_reach) calc(100% - var(--basalt-size-header) - var(--_safe-top)) var(--_reach))}}.sheet-band{box-sizing:border-box;display:flex;align-items:center;flex:none;height:var(--basalt-size-header);padding:var(--basalt-size-hairline) max(var(--basalt-gutter),env(safe-area-inset-right,var(--basalt-space-0))) 0 max(var(--basalt-gutter),env(safe-area-inset-left,var(--basalt-space-0)));border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.sheet>.dialog-actions{position:sticky;bottom:calc(-1*max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))));margin:auto calc(-1 * var(--_pad)) calc(-1*max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))));padding:var(--basalt-space-4) var(--_pad) max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0)));background:var(--panel-bg);box-shadow:inset 0 var(--basalt-size-hairline) 0 var(--basalt-border-divider)}.sheet-head{--_control-44: var(--basalt-size-control-2xl)}dialog.sheet:has(>.sheet-head,>.sheet-body,>.sheet-foot){padding:0;overflow:hidden}.sheet-head{box-sizing:border-box;flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--basalt-space-3);padding:max(var(--basalt-space-3),env(safe-area-inset-top,var(--basalt-space-0))) max(var(--basalt-space-3),env(safe-area-inset-right,var(--basalt-space-0))) var(--basalt-space-3) max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0)));border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.sheet-head-text{flex:1;min-width:0}.sheet-head .dialog-title{font:var(--basalt-font-weight-semibold) var(--basalt-text-xl-size) / var(--basalt-text-xl-line-height) var(--basalt-font-family-sans);letter-spacing:var(--basalt-text-xl-tracking)}.sheet-head .dialog-description{margin:0;font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-tertiary)}.sheet-close{--_h: var(--_control-44);border-radius:var(--basalt-radius-md);flex:none}.sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-inline:max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-right,var(--basalt-space-0)))}.sheet-foot{box-sizing:border-box;flex:none;padding:var(--basalt-space-4) max(var(--basalt-space-5),env(safe-area-inset-right,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-bottom,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0)));border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}@media(prefers-reduced-motion:reduce){dialog.sheet{transform:none;opacity:0;clip-path:none}dialog.sheet[open]{opacity:1}@starting-style{dialog.sheet[open],dialog.sheet[data-side][open]{transform:none;opacity:0;clip-path:none}}dialog.sheet[data-side=top],dialog.sheet[data-side=top][open]{clip-path:none}}@media(forced-colors:active){.sheet-band,.sheet-head{border-bottom-color:CanvasText}.sheet-foot{border-top-color:CanvasText}}} +@layer basalt{dialog.sheet{--_dur: var(--basalt-duration-slower);--_bin: var(--basalt-duration-slow);--_bout: calc(var(--basalt-duration-slower) * .75);--_safe-top: env(safe-area-inset-top, var(--basalt-space-0));--_pad: var(--basalt-space-6);margin:0;height:auto;max-height:none;padding:max(var(--_pad),var(--_safe-top)) max(var(--_pad),env(safe-area-inset-right,var(--basalt-space-0))) max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))) max(var(--_pad),env(safe-area-inset-left,var(--basalt-space-0)));border:0;border-radius:0;opacity:1}dialog.sheet[open]{display:flex;flex-direction:column}.sheet[data-side=right],.sheet[data-side=left]{top:0;bottom:0;width:min(var(--basalt-size-sheet-width),100%)}.sheet[data-side=right]{inset-inline:auto 0;border-left:var(--basalt-size-hairline) solid var(--basalt-border-rim);transform:translate(100%)}.sheet[data-side=left]{inset-inline:0 auto;border-right:var(--basalt-size-hairline) solid var(--basalt-border-rim);transform:translate(-100%)}.sheet[data-side=bottom]{inset:auto 0 0;width:auto;max-height:90dvh;border-radius:var(--basalt-radius-xl) var(--basalt-radius-xl) 0 0;border-top:var(--basalt-size-hairline) solid var(--basalt-border-rim-top);transform:translateY(100%)}.sheet[open]{transform:none}@starting-style{dialog.sheet[open]{opacity:1;transform:translate(100%)}}@starting-style{dialog.sheet[data-side=left][open]{transform:translate(-100%)}}@starting-style{dialog.sheet[data-side=bottom][open]{transform:translateY(100%)}}dialog.sheet[data-side=top]{--_reach: calc(-1 * var(--basalt-space-16));--_bin: var(--basalt-duration-slower);inset:0 0 auto;width:auto;max-height:100dvh;padding:0;padding-top:var(--_safe-top);overscroll-behavior:contain;border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-radius:0 0 var(--basalt-radius-xl) var(--basalt-radius-xl);transform:none;clip-path:inset(0 var(--_reach) calc(100% - var(--basalt-size-header) - var(--_safe-top)) var(--_reach))}dialog.sheet[data-side=top][open]{clip-path:inset(0 var(--_reach) var(--_reach) var(--_reach))}@starting-style{dialog.sheet[data-side=top][open]{opacity:1;transform:none;clip-path:inset(0 var(--_reach) calc(100% - var(--basalt-size-header) - var(--_safe-top)) var(--_reach))}}.sheet-band{box-sizing:border-box;display:flex;align-items:center;flex:none;height:var(--basalt-size-header);padding:var(--basalt-size-hairline) max(var(--basalt-gutter),env(safe-area-inset-right,var(--basalt-space-0))) 0 max(var(--basalt-gutter),env(safe-area-inset-left,var(--basalt-space-0)));border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.sheet>.dialog-actions{position:sticky;bottom:calc(-1*max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))));margin:auto calc(-1 * var(--_pad)) calc(-1*max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0))));padding:calc(var(--basalt-space-4) + var(--basalt-space-1-5)) var(--_pad) max(var(--_pad),env(safe-area-inset-bottom,var(--basalt-space-0)));background:var(--panel-bg);box-shadow:inset 0 calc(var(--basalt-space-1-5) + var(--basalt-size-hairline)) 0 var(--basalt-border-divider);clip-path:inset(var(--basalt-space-1-5) 0 0 0)}.sheet-head{--_control-44: var(--basalt-size-control-2xl)}dialog.sheet:has(>.sheet-head,>.sheet-body,>.sheet-foot){padding:0;overflow:hidden}.sheet-head{box-sizing:border-box;flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--basalt-space-3);padding:max(var(--basalt-space-3),env(safe-area-inset-top,var(--basalt-space-0))) max(var(--basalt-space-3),env(safe-area-inset-right,var(--basalt-space-0))) var(--basalt-space-3) max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0)));border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.sheet-head-text{flex:1;min-width:0}.sheet-head .dialog-title{font:var(--basalt-font-weight-semibold) var(--basalt-text-xl-size) / var(--basalt-text-xl-line-height) var(--basalt-font-family-sans);letter-spacing:var(--basalt-text-xl-tracking)}.sheet-head .dialog-description{margin:0;font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-tertiary)}.sheet-close{--_h: var(--_control-44);border-radius:var(--basalt-radius-md);flex:none}.sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-inline:max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-right,var(--basalt-space-0)));padding-block:var(--basalt-space-1-5)}.sheet-foot{box-sizing:border-box;flex:none;padding:var(--basalt-space-4) max(var(--basalt-space-5),env(safe-area-inset-right,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-bottom,var(--basalt-space-0))) max(var(--basalt-space-5),env(safe-area-inset-left,var(--basalt-space-0)));border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}@media(prefers-reduced-motion:reduce){dialog.sheet{transform:none;opacity:0;clip-path:none}dialog.sheet[open]{opacity:1}@starting-style{dialog.sheet[open],dialog.sheet[data-side][open]{transform:none;opacity:0;clip-path:none}}dialog.sheet[data-side=top],dialog.sheet[data-side=top][open]{clip-path:none}}@media(forced-colors:active){.sheet-band,.sheet-head{border-bottom-color:CanvasText}.sheet-foot{border-top-color:CanvasText}}} diff --git a/.agent/skills/basalt-html/parts/usage/menu.md b/.agent/skills/basalt-html/parts/usage/menu.md index 76874ade..6d66f7c8 100644 --- a/.agent/skills/basalt-html/parts/usage/menu.md +++ b/.agent/skills/basalt-html/parts/usage/menu.md @@ -19,6 +19,6 @@ A popup of actions: the opener is a `popovertarget` button, the menu comes right - Every row is a `button.menu-item` with its role (`menuitem`, `menuitemcheckbox`, `menuitemradio`); a radio sits in a `role="group"` with its siblings. The script adds the check seat; a click flips `aria-checked` (a radio picks one) and fires `menuchange` on the row, then leaves the menu open. A plain item closes the menu: listen for its `click`. - Arrow keys, Home, End and typing a name move the lit row; opened by a key the first row is lit. Tab closes. -- `.menu-item-description` is a second line, only when the label alone can't tell choices apart; the menu is as wide as its text up to 320, and a longer description wraps (the row grows; the label stays one line). -- A shortcut is a real one the page binds: `` last in the row, and `aria-keyshortcuts="Meta+D"` on the row. At most one per row. +- `.menu-item-description` is a second line, only when the label alone can't tell choices apart; the menu is at most 320 wide, and a longer description wraps (the label stays one line). +- A shortcut is one the page binds: `` last in the row, and `aria-keyshortcuts="Meta+D"` on the row. At most one per row. - `data-danger` is red text, never a fill. diff --git a/docs/foundations.md b/docs/foundations.md index 5d689c6f..caea1663 100644 --- a/docs/foundations.md +++ b/docs/foundations.md @@ -2223,7 +2223,7 @@ broke a rule, and each change is named. (56 steps to 48 in a container under 640), 24px between two labels, the first with no start padding. **Under 720 wide the row is replaced by a `Select` of the same links** (A15, 3 to 1, Castle's form; Grok's write-in, the row at every width with the `Select` left to the app, lost): both are in the server's markup and CSS alone chooses at `size-breakpoint-md`, so nothing moves or flashes on load, and the one not shown is `display: none`, out of the accessibility tree and the Tab order. The - `Select` is Basalt's own, drawn at Castle's 44 for Castle's 48 row (36 for the 36 row, 48 for the 56 row, the bar's narrow height; a 36 Select is 44 on a coarse pointer, as Basalt's is; what is below moves across 720 by the row's height less the Select's: 0, 4 and 8px), and its value is the current link's `href`, always the row's `aria-current`. **It navigates at once and says so first** (DECISIONS 158, Q2, 3 to 1: WCAG 3.2.2's own exception for a change of context the user has been advised of): a "Go to" label (`goToLabel`; in the skill, the text of `.link-tabs-select-label`) is drawn before the current page's name inside the trigger, in secondary ink on the Select's one line (the multi-select trigger's form, a label then its value, so the height does not change and nothing moves at 390), and its words start the Select's accessible name ("Go to Everything"; WCAG 2.5.3, Label in Name), so the nav's name alone is not enough. **Only a real choice navigates:** a choice from the open list (a click, or Enter on the highlighted option). No key on the closed `Select` does: a typed letter changes the value and fires `change` on a native select and calls Base UI's `onValueChange` (reason `none`) on the closed trigger, and both are held, so the value stays the current page's; the arrow keys open the list in React and navigate nowhere. Navigating is `onNavigate(href)` for an app's router, else `window.location.assign`. With `onNavigate` (or the skill's cancelled `linktabsnavigate`) routing in place, focus stays on the `Select`; on the default a new page loads and focus starts over there. The prototype's route effect that moved focus to the page's heading is X10 and is not ported. `Tabs` takes the same `size`. A link tab takes the selected state a `Tab` takes (DECISIONS 138 + `Select` is Basalt's own, drawn at Castle's 44 for Castle's 48 row (36 for the 36 row in a container under 640 on a wide window, 48 for the 56 row, the bar's narrow height; a 36 Select is 44 on a coarse pointer and in any window under 720, as Basalt's is (B5); what is below moves across 720 by the row's height less the Select's: −8, 4 and 8px), and its value is the current link's `href`, always the row's `aria-current`. **It navigates at once and says so first** (DECISIONS 158, Q2, 3 to 1: WCAG 3.2.2's own exception for a change of context the user has been advised of): a "Go to" label (`goToLabel`; in the skill, the text of `.link-tabs-select-label`) is drawn before the current page's name inside the trigger, in secondary ink on the Select's one line (the multi-select trigger's form, a label then its value, so the height does not change and nothing moves at 390), and its words start the Select's accessible name ("Go to Everything"; WCAG 2.5.3, Label in Name), so the nav's name alone is not enough. **Only a real choice navigates:** a choice from the open list (a click, or Enter on the highlighted option). No key on the closed `Select` does: a typed letter changes the value and fires `change` on a native select and calls Base UI's `onValueChange` (reason `none`) on the closed trigger, and both are held, so the value stays the current page's; the arrow keys open the list in React and navigate nowhere. Navigating is `onNavigate(href)` for an app's router, else `window.location.assign`. With `onNavigate` (or the skill's cancelled `linktabsnavigate`) routing in place, focus stays on the `Select`; on the default a new page loads and focus starts over there. The prototype's route effect that moved focus to the page's heading is X10 and is not ported. `Tabs` takes the same `size`. A link tab takes the selected state a `Tab` takes (DECISIONS 138 A, 145, 149; the ballot's D12 row): the current link's label is 600 in primary ink and a resting one 400 in secondary, every label reserves its 600 width and starts at the same edge, so choosing a page moves no link and no word (`LinkTab`'s label takes `ChosenLabel`; the skill's link tabs draw the label before the underline through `reserve()`). Castle's own row is 500 at rest; Basalt's rule wins where the two differ. Status: built; the owner approved it (DECISIONS 161: "a link tab is 400 at rest and 600 when current"). diff --git a/package.json b/package.json index 868b9df8..d2333be6 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "typecheck:review": "tsc -p tools/review/tsconfig.json", "check": "node scripts/check.mjs", "ci:local": "node scripts/ci-local.mjs", - "test:brand": "npm run build -w packages/tokens && node --test brand/test/*.test.mjs", - "test:html-skill": "node --test tools/html-skill/test/*.test.mjs", - "test:sites": "node --test sites/test/*.test.mjs", + "test:brand": "npm run build -w packages/tokens && node --test --test-timeout=120000 brand/test/*.test.mjs", + "test:html-skill": "node --test --test-timeout=120000 tools/html-skill/test/*.test.mjs", + "test:sites": "node --test --test-timeout=120000 sites/test/*.test.mjs", "html-skill:shots": "node tools/html-skill/shoot.mjs" }, "engines": { diff --git a/packages/react/src/button.tsx b/packages/react/src/button.tsx index aecea6a6..ed66b969 100644 --- a/packages/react/src/button.tsx +++ b/packages/react/src/button.tsx @@ -103,7 +103,7 @@ export function Button({ variant = "secondary", size = "md", fullWidth, icon, ic ref={useJoinedRef(ref, wait.ref)} render={link.render} disabled={disabled} - aria-disabled={disabled || wait.busy ? true : props["aria-disabled"]} + aria-disabled={disabled || wait.busy || props["aria-disabled"] || undefined} aria-busy={wait.busy ? true : props["aria-busy"]} data-busy={wait.busy || wait.shown ? "" : undefined} aria-pressed={toggles ? isPressed : undefined} @@ -204,7 +204,7 @@ export function IconButton({ variant = "ghost", size = "md", fullWidth, icon, do ref={useJoinedRef(ref, wait.ref)} render={link.render} disabled={disabled} - aria-disabled={disabled || wait.busy ? true : props["aria-disabled"]} + aria-disabled={disabled || wait.busy || props["aria-disabled"] || undefined} aria-busy={wait.busy ? true : props["aria-busy"]} data-busy={wait.busy || wait.shown ? "" : undefined} aria-pressed={toggles ? isPressed : undefined} diff --git a/packages/react/src/mention.tsx b/packages/react/src/mention.tsx index c50007ab..b3270a75 100644 --- a/packages/react/src/mention.tsx +++ b/packages/react/src/mention.tsx @@ -137,6 +137,22 @@ const OWNED = ["aria-autocomplete", "aria-haspopup", "aria-controls", "aria-acti /** 6px from the trigger's line, as a popup sits from its trigger; 8px from the window's edges. */ const OFFSET = 6; + +/** + * The lowest edge, above the caret, of what is pinned at the top of the view: the app's bar, a band stuck under it, an app's own strip marked + * `data-pinned-edge="top"` or `.basalt-sticky-bar`. The picker opens above only into the room below it, so it never covers them. Measured on + * each placement, so it holds whether or not the page measures its pinned edges (`usePinnedEdges`). + */ +function pinnedCeiling(viewTop: number, caretTop: number): number { + let ceiling = viewTop; + for (const part of document.querySelectorAll('[data-pinned-edge="top"], .basalt-sticky-bar')) { + const position = getComputedStyle(part).position; + if (position !== "sticky" && position !== "fixed") continue; + const box = part.getBoundingClientRect(); + if (box.height > 0 && box.bottom <= caretTop && box.bottom > ceiling) ceiling = box.bottom; + } + return ceiling; +} const MARGIN = 8; /** @@ -348,7 +364,7 @@ export function MentionPicker({ field, options, trigger = "@", filter, onQueryCh const height = view?.height ?? window.innerHeight; const viewWidth = view?.width ?? window.innerWidth; const below = top + height - caret.bottom - OFFSET - MARGIN; - const above = caret.top - top - OFFSET - MARGIN; + const above = caret.top - pinnedCeiling(top, caret.top) - OFFSET - MARGIN; list.style.removeProperty("--available-height"); const natural = list.scrollHeight + (list.offsetHeight - list.clientHeight); const down = below >= natural || below >= above; diff --git a/packages/react/src/menu.tsx b/packages/react/src/menu.tsx index 6cf10bd4..fe212c03 100644 --- a/packages/react/src/menu.tsx +++ b/packages/react/src/menu.tsx @@ -95,7 +95,7 @@ export function MenuTrigger({ className, ...props }: MenuTriggerProps) { {...props} // Unavailable while an item's answer is still to come (the menu will not open), but never disabled: focus stays on the trigger. aria-busy={waiting ? true : props["aria-busy"]} - aria-disabled={waiting ? true : props["aria-disabled"]} + aria-disabled={waiting ? true : props["aria-disabled"] || undefined} className={withClass("basalt-menu-trigger", className)} /> diff --git a/packages/react/src/selectable-list.tsx b/packages/react/src/selectable-list.tsx index 953b75ee..f4c24e45 100644 --- a/packages/react/src/selectable-list.tsx +++ b/packages/react/src/selectable-list.tsx @@ -39,7 +39,12 @@ function heirs(row: HTMLElement): HTMLElement[] { return [...walk("nextElementSibling"), ...walk("previousElementSibling"), ...(all ? [all] : []), ...(action ? [action] : [])]; } -const handOn = (to: HTMLElement[]) => to.find((box) => box.isConnected)?.focus(); +/** Focus the first heir still on the page, and remember its row: a focus moved inside React's commit does not reach the row's onFocus. */ +const handOn = (to: HTMLElement[], focused: React.RefObject) => { + const box = to.find((heir) => heir.isConnected); + box?.focus(); + focused.current = box?.closest(".basalt-selectable-item") ?? null; +}; const SelectionContext = React.createContext(null); @@ -130,7 +135,7 @@ export function SelectableItem({ value, label, children, className, ref, ...prop // A row dealt with while its box holds focus (a refresh marks it done) hands focus on to the next row that can still be chosen, so it is never lost. React.useLayoutEffect(() => { const element = row.current; - if (was.current && !open && element && selection.focused.current === element && lost()) handOn(heirs(element)); + if (was.current && !open && element && selection.focused.current === element && lost()) handOn(heirs(element), selection.focused); was.current = open; }, [open, selection.focused]); // A row taken out of the list while its box holds focus does the same, once the list has settled. @@ -140,7 +145,7 @@ export function SelectableItem({ value, label, children, className, ref, ...prop return () => { if (!element || focused.current !== element) return; const to = heirs(element); - queueMicrotask(() => { if (lost()) handOn(to); }); + queueMicrotask(() => { if (lost()) handOn(to, focused); }); }; }, [selection.focused]); return ( diff --git a/packages/react/src/styles/components.css b/packages/react/src/styles/components.css index 0824c927..7c44be8c 100644 --- a/packages/react/src/styles/components.css +++ b/packages/react/src/styles/components.css @@ -3276,7 +3276,7 @@ transition: background-color var(--basalt-duration-fast) var(--basalt-ease-out); } /* In a popover the plate is its level's; in the page (NotificationList, no level of its own) it is the page's solid plate. */ - .basalt-notification:hover::before { background-color: var(--_plate, var(--_plate-solid)); transition-duration: var(--basalt-duration-instant); } + .basalt-notification:hover::before { background-color: var(--_plate, var(--basalt-plate)); transition-duration: var(--basalt-duration-instant); } /* The hover glide, navigation's rules: one shared plate follows the pointer between entries (40 or 58 tall); the first key hides it and the resting hover, so only the ring shows, until the pointer moves again. Off on touch, under reduced motion and in forced colours, where each entry paints its own. */ @@ -5071,6 +5071,8 @@ .basalt-chrome .basalt-profile-handle, .basalt-chrome .basalt-framed-credit, .basalt-chrome .basalt-link-tile-details, + /* LoadingShape's Refreshing is made for a bar (its compact form is a phone's): on the smoked bar its word and ring take secondary ink. */ + .basalt-chrome .basalt-refreshing, .basalt-chrome .basalt-field-necessity { color: var(--basalt-text-secondary); } /* No backdrop-filter, or the reader asks for less transparency, or it is printed: the page colour, opaque. */ @@ -5518,7 +5520,7 @@ transition: background-color var(--basalt-duration-fast) var(--basalt-ease-out); } @media (hover: hover) { - .basalt-passage:hover::before { background-color: var(--_plate, var(--_plate-solid)); transition-duration: var(--basalt-duration-instant); } + .basalt-passage:hover::before { background-color: var(--_plate, var(--basalt-plate)); transition-duration: var(--basalt-duration-instant); } .basalt-passage:hover .basalt-passage-meta { color: var(--basalt-text-secondary); } } .basalt-passage:focus-visible { outline: var(--basalt-size-focus-width) solid var(--basalt-border-focus); outline-offset: calc(var(--basalt-size-focus-offset) - var(--_plate-inset)); } @@ -7048,9 +7050,9 @@ content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--basalt-space-1)) calc(-1 * var(--basalt-space-2)); border-radius: var(--basalt-radius-md); pointer-events: none; background-color: transparent; transition: background-color calc(var(--basalt-duration-slow) * 0.75) var(--basalt-ease-in); } - :is(.basalt-stream-message, .basalt-stream-note, .basalt-stream-entry, .basalt-stream-block)[data-arrived]:not([data-panel])::before { background-color: var(--_plate-solid); transition-duration: var(--basalt-duration-instant); } + :is(.basalt-stream-message, .basalt-stream-note, .basalt-stream-entry, .basalt-stream-block)[data-arrived]:not([data-panel])::before { background-color: var(--basalt-plate); transition-duration: var(--basalt-duration-instant); } :is(.basalt-stream-entry, .basalt-stream-block)[data-panel][data-arrival] > :not(.basalt-visually-hidden, .basalt-stream-word) { transition: background-color calc(var(--basalt-duration-slow) * 0.75) var(--basalt-ease-in); } - :is(.basalt-stream-entry, .basalt-stream-block)[data-panel][data-arrived] > :not(.basalt-visually-hidden, .basalt-stream-word) { background-color: var(--_plate-solid); transition-duration: var(--basalt-duration-instant); } + :is(.basalt-stream-entry, .basalt-stream-block)[data-panel][data-arrived] > :not(.basalt-visually-hidden, .basalt-stream-word) { background-color: var(--basalt-plate); transition-duration: var(--basalt-duration-instant); } :is(.basalt-stream-message, .basalt-stream-note, .basalt-stream-entry, .basalt-stream-block)[data-arrival]:focus { outline: none; } :is(.basalt-stream-message, .basalt-stream-note, .basalt-stream-entry, .basalt-stream-block)[data-arrived] :is(.basalt-stream-time, .basalt-stream-meta, .basalt-stream-quote-cite, .basalt-text[data-tone="tertiary"], .basalt-disclosure-meta, .basalt-activity-meta) { color: var(--basalt-text-secondary); } .basalt-stream-word { color: var(--basalt-text-secondary); font-size: var(--basalt-text-xs-size); line-height: var(--basalt-text-xs-line-height); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity calc(var(--basalt-duration-slow) * 0.75) var(--basalt-ease-in), visibility var(--basalt-duration-instant) linear calc(var(--basalt-duration-slow) * 0.75); } diff --git a/packages/react/src/text-button.tsx b/packages/react/src/text-button.tsx index 31905ab0..6944b7bc 100644 --- a/packages/react/src/text-button.tsx +++ b/packages/react/src/text-button.tsx @@ -55,7 +55,7 @@ export function TextButton({ quiet = false, iconEnd, className, children, focusa ref={useJoinedRef(ref, wait.ref)} focusableWhenDisabled={focusableWhenDisabled} render={rendered} - aria-disabled={props.disabled || wait.busy ? true : props["aria-disabled"]} + aria-disabled={props.disabled || wait.busy || props["aria-disabled"] || undefined} aria-busy={wait.busy ? true : props["aria-busy"]} data-busy={wait.busy || wait.shown ? "" : undefined} data-loading={wait.shown ? "" : undefined} diff --git a/packages/react/test/audit-fix-c1.test.mjs b/packages/react/test/audit-fix-c1.test.mjs index 3c32bace..2bf2040a 100644 --- a/packages/react/test/audit-fix-c1.test.mjs +++ b/packages/react/test/audit-fix-c1.test.mjs @@ -34,8 +34,11 @@ describe("A1-07: importing the package in Node", () => { assert.ok(!phosphor.some((f) => /\/dist\/index\.[a-z]+\.js$/.test(f)), "Phosphor's barrel is not loaded"); // 24 icons, each with its definition file, plus the icon base and its context: about 50. 60 leaves room for one more icon. assert.ok(phosphor.length <= 60, `${phosphor.length} Phosphor files loaded`); - // The base was 5,356 files. Base UI is 641 of what is left; the rest is the package, React and the icons. - assert.ok(files.length <= 1000, `${files.length} files loaded`); + // The base was 5,356 files. Base UI is 641 of what is left; the rest is the package, React and the icons. Raised from 1,000 to the measured + // 1,034 after the cimip-gaps-2 stream (DECISIONS 246): its new components are 260 of the package's own files and take Base UI to 666 (the + // CSP provider and more of menu, combobox and toast), with 56 of Base UI's utils, 36 of Phosphor's and 16 of React, reselect and Floating UI. + // The diagrams (#122, DECISIONS 281 and 282) add seven modules of their own: 1,041. + assert.ok(files.length <= 1041, `${files.length} files loaded`); } finally { fs.rmSync(dir, { recursive: true, force: true }); } }); }); diff --git a/packages/react/test/audit-fix-c6.test.mjs b/packages/react/test/audit-fix-c6.test.mjs index dcd5926b..10e85e31 100644 --- a/packages/react/test/audit-fix-c6.test.mjs +++ b/packages/react/test/audit-fix-c6.test.mjs @@ -377,7 +377,8 @@ describe("the React package's test script runs its typecheck and its tests as tw const manifest = JSON.parse(fs.readFileSync(path.join(pkg, "package.json"), "utf8")); assert.equal(manifest.scripts.test, "node ../../scripts/test-react.mjs"); const { STEPS } = await import(script("test-react.mjs")); - assert.deepEqual(STEPS.map((s) => s.command), ["npm run typecheck", "node build.mjs && node --test test/*.test.mjs"]); + // Each browser test may take two minutes (the runner's limit, added after the cimip-gaps-2 stream so a hung test fails rather than stalls the run). + assert.deepEqual(STEPS.map((s) => s.command), ["npm run typecheck", "node build.mjs && node --test --test-timeout=120000 test/*.test.mjs"]); const root = JSON.parse(fs.readFileSync(path.join(repo, "package.json"), "utf8")); assert.equal(root.scripts.test, "node scripts/test-all.mjs"); assert.match(fs.readFileSync(path.join(repo, ".github", "workflows", "ci.yml"), "utf8"), /- run: npm test\n/); diff --git a/packages/react/test/browser-floor.test.mjs b/packages/react/test/browser-floor.test.mjs index ce4f6688..2a5f16ff 100644 --- a/packages/react/test/browser-floor.test.mjs +++ b/packages/react/test/browser-floor.test.mjs @@ -55,6 +55,7 @@ const ALLOWED = { "scrollbar-gutter": "A browser without it (Safari before 18.2) has overlay scrollbars, which take no room, so there is nothing to reserve.", "prefers-reduced-transparency": "The query is the opaque fallback for the sticky header; a browser that does not evaluate it (Safari, Firefox) keeps the smoked header. Text on the bar holds 4.5:1 over any backdrop, so this is comfort and not legibility (foundations, Browser support).", "text-wrap: pretty": "A hint for the last line of a paragraph; a browser without it wraps as it always did.", + "field-sizing": "The Composer's field grows with its text (cimip-gaps-2, B3). Where CSS.supports(\"field-sizing\", \"content\") is false (Safari before 26.2, Firefox), composer.tsx measures the field's scrollHeight and sets its height within the same rows, so it grows there too (foundations, Writing to someone).", "the round(), mod() and rem() functions": "The plain badge's dot margin (components.css, .basalt-badge[data-variant=\"plain\"] > .basalt-badge-dot). Chrome 123 and 124 drop the declaration, so the dot sits in its seat to the half pixel and not on whole pixels. A fix changes a pixel, so it is the council's: found by this check, reported on the pull request that added it.", }; diff --git a/packages/react/test/bundle.test.mjs b/packages/react/test/bundle.test.mjs index aa18d940..0783bd0a 100644 --- a/packages/react/test/bundle.test.mjs +++ b/packages/react/test/bundle.test.mjs @@ -356,7 +356,9 @@ test("command-panel.js keeps Phosphor's full MIT notice as a preserved legal com // (the limit 147,900 to 152,550). // cimip-gaps-2 B5 (DECISIONS 246, 274): the stack stands above an on-screen keyboard (the shared watcher), closes toasts that echoed a page on a // page change, and swipes upward under 720 where it hangs from the bar; ToastProvider measures 93,451, so its limit is 93,500. -for (const [name, limit] of [["ToastProvider", 93_500], ["useToast", 4_000], ["NotificationCentre", 152_550]]) { +// The full-run fix (DECISIONS 246): a control that is not disabled no longer writes aria-disabled="false" (a toolbar passes its own false through), 4 +// bytes in Button and IconButton: NotificationCentre 152,550 measured, so its limit is 152,600. +for (const [name, limit] of [["ToastProvider", 93_500], ["useToast", 4_000], ["NotificationCentre", 152_600]]) { test(`${name} alone stays lean and loads no Shiki, cmdk or grammar`, async () => { // The static graph under splitting: what loads first. A control's glyph engine loads on demand and is not in it (and has a limit of its own, below). const { bytes, inputs } = await graph(name); @@ -483,8 +485,9 @@ test("LoopsToggleIcon alone loads the icon button and the hold, and not Switch", // and no Shiki. The three that carry a button (Reveal, DirectoryList's show all, CopyButton) carry Base UI's Button and nothing else. // Measured: LinkCard 5,174 bytes, LinkTile 4,597, BackLink 4,004, BigLinkList 391, DirectoryList 16,729, Reveal 16,328, CopyButton 15,495. // cimip-gaps-2, B7: `useReveal` takes `focusFirst` (a group's entries follow its row, so a keyboard open keeps focus there), 6 and 8 bytes: Reveal -// 19,600 to 19,650 (19,606 measured) and DirectoryList 20,000 to 20,050 (20,008). -for (const [name, limit, base] of [["LinkCard", 6_500, false], ["LinkTile", 6_000, false], ["BackLink", 5_500, false], ["BigLinkList", 1_000, false], ["BigLinkRow", 6_000, false], ["DirectoryRow", 6_500, false], ["DirectoryList", 20_050, true], ["Reveal", 19_650, true], ["CopyButton", 18_550, true]]) { +// 19,600 to 19,650 (19,606 measured) and DirectoryList 20,000 to 20,050 (20,008). The full-run fix (no aria-disabled="false" on a control that is +// not disabled, DECISIONS 246): CopyButton 18,551 measured, 18,550 to 18,600. +for (const [name, limit, base] of [["LinkCard", 6_500, false], ["LinkTile", 6_000, false], ["BackLink", 5_500, false], ["BigLinkList", 1_000, false], ["BigLinkRow", 6_000, false], ["DirectoryRow", 6_500, false], ["DirectoryList", 20_050, true], ["Reveal", 19_650, true], ["CopyButton", 18_600, true]]) { test(`${name} alone, with splitting, loads only its own static graph (${limit} bytes at most)`, async () => { const { bytes, chunks, inputs } = await graph(name); assert.ok(bytes < limit, `${name}: ${bytes} bytes in ${chunks} chunks (limit ${limit})`); @@ -510,7 +513,9 @@ test("the size table names every runtime export of the package, and nothing that assert.deepEqual(table.filter((name) => !exported.includes(name)), [], `recorded sizes for exports that are gone: ${ADVICE}`); }); -test("every runtime export alone stays within 5% of its recorded minified size", async () => { +// One build per export, four at a time: 19 seconds alone, but past the runner's two-minute limit when every test file runs beside it (the first full run +// after the cimip-gaps-2 stream timed out at 120 s), so it has a limit of its own. +test("every runtime export alone stays within 5% of its recorded minified size", { timeout: 600_000 }, async () => { const { exports } = recorded(); const names = Object.keys(exports); const over = []; @@ -594,7 +599,11 @@ test("a split app's first screen, through the imports plugin, loads what it woul const route = through.inputs.filter((f) => /@base-ui\/react\/(esm\/)?(combobox|select|menu|dialog|field|input)\//.test(f)); assert.deepEqual(route, [], "none of the route's popups and fields are up front"); assert.ok(through.inputs.some((f) => /@base-ui\/react\/(esm\/)?tooltip\//.test(f)), "the rail's tooltip, which Nav draws, is"); - assert.ok(through.bytes < 161_000, `first screen ${through.bytes} bytes (limit 161,000)`); + // After the cimip-gaps-2 stream (DECISIONS 246): the shell now draws B5's phone layout (the on-screen keyboard's watcher, screen-keyboard.ts, 2,441 + // bytes, and what is pinned, pinned-edges.ts, 2,107) and B4's facts under the title (DotLine, 532) and capped shell (app-shell.js 1,340 to 1,812), with + // Nav's sm size (135). Measured 166,056 bytes through the plugin (160,165 to 165,860 for the same files named directly); the limit is that rounded + // up to the next 1,000, from 161,000. + assert.ok(through.bytes < 167_000, `first screen ${through.bytes} bytes (limit 167,000)`); }); test("the imports plugin changes where code lands, not what the route gets: the route still loads every part it draws", async () => { diff --git a/packages/react/test/charts.test.mjs b/packages/react/test/charts.test.mjs index 54aa1262..6cc62680 100644 --- a/packages/react/test/charts.test.mjs +++ b/packages/react/test/charts.test.mjs @@ -1150,7 +1150,13 @@ describe("Layout tokens", () => { const lines = css.split("\n"); lines.forEach((line, i) => { if (/@media \(width [<>]=? \d+px\)|@media \(\d+px <= width/.test(line)) assert.match(lines[i - 1], /size-breakpoint-(md|lg)/, `line ${i + 1}: ${line.trim()}`); - if (/@container \(width < \d+/.test(line)) assert.match(lines[i - 1], /size-breakpoint-container/, `line ${i + 1}`); + if (!/@container \(width < \d+/.test(line)) return; + // One container query is at size-breakpoint-md: ListBand's narrow form on touch (foundations, Lists: "under size-breakpoint-md, 720, on a coarse + // pointer", and under 720 whatever the pointer since B5), inside that media query. Every other names a container token. + if (/@container \(width < 720px\)/.test(line)) { + assert.match(lines[i - 1], /size-breakpoint-md \(720px\)/, `line ${i + 1}`); + assert.match(lines[i - 2], /@media \(pointer: coarse\), \(width < 720px\)/, `line ${i + 1}: the 720 container query is the band's touch form`); + } else assert.match(lines[i - 1], /size-breakpoint-container/, `line ${i + 1}`); }); assert.ok(!/@container \(width < 30rem\)/.test(css), "the 30rem container queries read the token's 480px now"); }); diff --git a/packages/react/test/commands.test.mjs b/packages/react/test/commands.test.mjs index 9f158705..e79e7641 100644 --- a/packages/react/test/commands.test.mjs +++ b/packages/react/test/commands.test.mjs @@ -668,17 +668,24 @@ describe("two-line rows", () => { const label = el.querySelector(".basalt-menu-item-label")?.getBoundingClientRect(); const description = el.querySelector(".basalt-menu-item-description"); const d = description?.getBoundingClientRect(); - return { text: el.textContent.slice(0, 18), described: !!description, row: el.getBoundingClientRect().height, plate: Number.parseFloat(getComputedStyle(el, "::before").height), touch: label && d ? Math.abs(label.bottom - d.top) : null, titleTop: label ? label.top - el.getBoundingClientRect().top : null }; + return { text: el.textContent.slice(0, 18), described: !!description, row: el.getBoundingClientRect().height, plate: Number.parseFloat(getComputedStyle(el, "::before").height), touch: label && d ? Math.abs(label.bottom - d.top) : null, titleTop: label ? label.top - el.getBoundingClientRect().top : null, descriptionHeight: d?.height ?? 0, labelHeight: label?.height ?? 0 }; })); const [one, onePlate, two, twoPlate] = EXPECTED[density][surface.command ? "command" : "menu"]; const lone = measured.filter((m) => !m.described); const described = measured.filter((m) => m.described); assert.ok(lone.length && described.length, "one-line and two-line rows are mixed in one list"); for (const m of lone) assert.deepEqual([m.row, m.plate], [one, onePlate], `${m.text} (one line)`); + // In a Menu the description wraps (DECISIONS 275): the row and its plate grow by the description's line for each line it takes, and the title stays one + // line. Select, Combobox and the command menu keep the cut, so every described row there is two lines. + const descriptionLine = two - one; for (const m of described) { - assert.deepEqual([m.row, m.plate], [two, twoPlate], `${m.text} (two lines)`); + const lines = name === "menu" ? Math.round(m.descriptionHeight / descriptionLine) : 1; + assert.equal(m.descriptionHeight, lines * descriptionLine, `${m.text}: the description is whole lines`); + assert.deepEqual([m.row, m.plate], [two + (lines - 1) * descriptionLine, twoPlate + (lines - 1) * descriptionLine], `${m.text} (${lines + 1} lines)`); + assert.equal(m.labelHeight, density === "compact" ? 18 : 20, `${m.text}: the title is one line`); assert.equal(m.touch, 0, `${m.text}: the title and description line boxes touch`); } + if (name === "menu") assert.ok(described.some((m) => m.descriptionHeight > descriptionLine), "the long description wraps in a Menu"); // the title sits at the same place from the plate's top in both kinds of row, so a mixed list keeps one rhythm assert.equal(new Set(measured.map((m) => Math.round(m.titleTop * 10))).size, 1, "the title line sits 10px (8 in a menu) from the plate's top in every row"); await page.close(); @@ -691,7 +698,9 @@ describe("two-line rows", () => { await settle(page); const first = page.locator(surface.rows).filter({ has: page.locator(".basalt-menu-item-description") }).first(); assert.deepEqual(await style(first.locator(".basalt-menu-item-label"), "fontSize", "lineHeight", "fontWeight"), { fontSize: "14px", lineHeight: "20px", fontWeight: "400" }); - assert.deepEqual(await style(first.locator(".basalt-menu-item-description"), "fontSize", "lineHeight", "fontWeight", "whiteSpace", "textOverflow"), { fontSize: "13px", lineHeight: "18px", fontWeight: "400", whiteSpace: "nowrap", textOverflow: "ellipsis" }); + // A Menu's description wraps (DECISIONS 275); every other popup's is cut with an ellipsis. + const cut = name === "menu" ? { whiteSpace: "normal", textOverflow: "clip" } : { whiteSpace: "nowrap", textOverflow: "ellipsis" }; + assert.deepEqual(await style(first.locator(".basalt-menu-item-description"), "fontSize", "lineHeight", "fontWeight", "whiteSpace", "textOverflow"), { fontSize: "13px", lineHeight: "18px", fontWeight: "400", ...cut }); assert.deepEqual(await rgba(page, (await style(first.locator(".basalt-menu-item-description"), "color")).color), await token(page, "text-tertiary") && (await rgba(page, (await style(first.locator(".basalt-menu-item-description"), "color")).color))); await page.evaluate(() => { document.documentElement.dataset.density = "compact"; }); await settle(page); @@ -700,17 +709,26 @@ describe("two-line rows", () => { await page.close(); }); - test(`${name}: both lines truncate with an ellipsis and never wrap`, async () => { + // DECISIONS 275: in a Menu the description wraps inside the menu's 320 and nothing is cut; Select, Combobox and the command menu keep the cut. + test(name === "menu" ? `${name}: the title truncates and the description wraps inside the menu's size-popover-max, never cut` : `${name}: both lines truncate with an ellipsis and never wrap`, async () => { const { page } = await open(surface.body); await page.waitForSelector(surface.rows); await settle(page); const rows = page.locator(surface.rows).filter({ has: page.locator(".basalt-menu-item-description") }); const longest = await rows.evaluateAll((els) => { - const cut = els.map((el) => { const d = el.querySelector(".basalt-menu-item-description"); return { text: d.textContent, cut: d.scrollWidth > d.clientWidth, height: d.getBoundingClientRect().height }; }); + const cut = els.map((el) => { const d = el.querySelector(".basalt-menu-item-description"); const label = getComputedStyle(el.querySelector(".basalt-menu-item-label")); return { text: d.textContent, cut: d.scrollWidth > d.clientWidth, height: d.getBoundingClientRect().height, title: [label.whiteSpace, label.textOverflow] }; }); return cut.find((c) => c.text.length > 60); }); - assert.ok(longest?.cut, "the long description is cut"); - assert.equal(longest.height, 18, "on one line"); + assert.deepEqual(longest.title, ["nowrap", "ellipsis"], "the title is one line, cut with an ellipsis"); + if (name === "menu") { + assert.equal(longest.cut, false, "the long description is not cut"); + assert.ok(longest.height > 18 && longest.height % 18 === 0, `it wraps to whole lines (${longest.height}px)`); + const width = await page.locator(".basalt-menu").first().evaluate((el) => el.getBoundingClientRect().width); + assert.ok(width <= 320, `the menu stays at most size-popover-max wide (${width}px)`); + } else { + assert.ok(longest?.cut, "the long description is cut"); + assert.equal(longest.height, 18, "on one line"); + } await page.close(); }); } diff --git a/packages/react/test/composer-mentions.test.mjs b/packages/react/test/composer-mentions.test.mjs index d830e170..b84e3c7a 100644 --- a/packages/react/test/composer-mentions.test.mjs +++ b/packages/react/test/composer-mentions.test.mjs @@ -685,3 +685,34 @@ describe("fix pass 1", () => { await withPicker.close(); }); }); + +// Found adopting B3 (2026-11-22): at 390 a picker with many rows opened over the app's bar and a strip stuck under it. Opening above, it now +// stops under the lowest pinned part above the caret (data-pinned-edge="top" or .basalt-sticky-bar), measured whether or not the page +// measures its pinned edges. +describe("The picker under what is pinned", () => { + test("opening above, it never covers a pinned bar or strip", async () => { + const page = await open(` +window.picks = []; +const OPTIONS = ${PEOPLE}; +function App() { + const ref = React.useRef(null); + return ( +
+
Synthetic bar
+
Synthetic strip
+
+