diff --git a/.agent/skills/basalt-html/parts/link-tabs.css b/.agent/skills/basalt-html/parts/link-tabs.css
index 9cf7cd5..8ec22d9 100644
--- a/.agent/skills/basalt-html/parts/link-tabs.css
+++ b/.agent/skills/basalt-html/parts/link-tabs.css
@@ -1 +1 @@
-@layer basalt{.link-tabs{margin:0;padding:0}.link-tabs>ul{display:flex;flex-wrap:wrap;gap:0 var(--basalt-space-1);margin:0;padding:0;list-style:none;box-shadow:inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider)}.link-tab{--_h: var(--basalt-size-control-lg);position:relative;box-sizing:border-box;display:inline-flex;align-items:center;height:var(--_h);padding:0 var(--basalt-space-2);border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / 1 var(--basalt-font-family-sans);text-decoration:none;white-space:nowrap;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.link-tabs[data-size="3xl"] .link-tab{--_h: var(--basalt-size-control-3xl)}.link-tabs[data-size="5xl"] .link-tab{--_h: var(--basalt-size-control-5xl)}.link-tabs:is([data-size="3xl"],[data-size="5xl"]) .link-tab{padding-inline:var(--basalt-space-2-5);border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;font-size:var(--basalt-text-md-size)}@container (width < 640px){.link-tabs[data-size="5xl"] .link-tab{--_h: var(--basalt-size-control-3xl)}}.link-tabs>ul>li:first-child>.link-tab{padding-inline-start:0}.link-tab-line{position:absolute;inset-inline:0;bottom:0;height:var(--basalt-size-indicator);background:var(--basalt-text-primary);opacity:0;pointer-events:none}.link-tab[aria-current]{color:var(--basalt-text-primary)}.link-tab[aria-current] :is([data-label],[data-reserve]>:first-child){font-weight:var(--basalt-font-weight-semibold)}.link-tab[aria-current]>:not(.link-tab-line):not([data-reserved],[data-bare]){font-weight:var(--basalt-font-weight-semibold)}.link-tab [data-label]{display:inline-flex;flex-direction:column;align-items:flex-start}.link-tab [data-label]:after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.link-tab [data-reserve]{display:inline-grid;justify-items:start}.link-tab [data-reserve]>*{grid-area:1 / 1;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--basalt-space-1-5);white-space:nowrap}.link-tab [data-wide]{visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.link-tab :is(span,b,i,em,strong,small,mark,code,abbr):not([data-pair]):has(>svg,>[data-pair]){display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.link-tab [data-pair]{display:inline-grid;flex:none}.link-tab [data-pair]>*{grid-area:1 / 1;transition:opacity var(--basalt-duration-fast) var(--basalt-ease-out)}.link-tab [data-pair]>:last-child{opacity:0}.link-tab[aria-current] [data-pair]>:first-child{opacity:0}.link-tab[aria-current] [data-pair]>:last-child{opacity:1}.link-tab[aria-current]>.link-tab-line{opacity:1}@media(hover:hover){.link-tab:hover{color:var(--basalt-text-primary)}}.link-tab:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}@media(pointer:coarse),(width<720px){.link-tab{min-height:var(--basalt-size-tap-min)}}.link-tabs-select{display:none;min-width:0}.link-tabs-select .select{--_lead: 4ch}.link-tabs-select-label{position:absolute;inset-block:0;inset-inline-start:var(--basalt-space-2-5);display:flex;align-items:center;color:var(--basalt-text-secondary);font-size:var(--basalt-text-base-size);line-height:1;white-space:nowrap;pointer-events:none}.link-tabs-select select.input{padding-inline-start:calc(var(--basalt-space-2-5) + var(--_lead) + var(--basalt-space-1-5))}.link-tabs[data-size="3xl"] .link-tabs-select-label,.link-tabs[data-size="5xl"] .link-tabs-select-label{font-size:var(--basalt-text-md-size)}.link-tabs[data-size="3xl"] .link-tabs-select select.input{height:var(--basalt-size-control-2xl);border-radius:var(--basalt-radius-md);--_font: var(--basalt-text-md-size)}.link-tabs[data-size="5xl"] .link-tabs-select select.input{height:var(--basalt-size-control-3xl);border-radius:var(--basalt-radius-md);--_font: var(--basalt-text-md-size)}@media(width<720px){.link-tabs>ul{display:none}.link-tabs-select{display:block}}@media(forced-colors:active){.link-tabs-select-label{color:CanvasText}.link-tab-line{forced-color-adjust:none;background:Highlight}}}
+@layer basalt{.link-tabs{margin:0;padding:0}.link-tabs>ul{--_px: var(--basalt-space-2);--_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));--_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)));position:relative;display:flex;flex-wrap:wrap;gap:0 var(--basalt-space-1);margin:0;margin-inline-start:calc(-1 * var(--_hang));padding:0;list-style:none}.link-tabs>ul:before{content:"";position:absolute;inset-inline:var(--_hang) 0;bottom:0;height:var(--basalt-size-hairline);background:var(--basalt-border-divider);pointer-events:none}.link-tabs:is([data-size="3xl"],[data-size="5xl"])>ul{--_px: var(--basalt-space-2-5)}.link-tab{--_h: var(--basalt-size-control-lg);position:relative;box-sizing:border-box;display:inline-flex;align-items:center;height:var(--_h);padding:0 var(--basalt-space-2);border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / 1 var(--basalt-font-family-sans);text-decoration:none;white-space:nowrap;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.link-tabs[data-size="3xl"] .link-tab{--_h: var(--basalt-size-control-3xl)}.link-tabs[data-size="5xl"] .link-tab{--_h: var(--basalt-size-control-5xl)}.link-tabs:is([data-size="3xl"],[data-size="5xl"]) .link-tab{padding-inline:var(--basalt-space-2-5);border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;font-size:var(--basalt-text-md-size)}@container (width < 640px){.link-tabs[data-size="5xl"] .link-tab{--_h: var(--basalt-size-control-3xl)}}.link-tab-line{position:absolute;inset-inline:var(--_px);bottom:0;height:var(--basalt-size-indicator);background:var(--basalt-text-primary);opacity:0;pointer-events:none}.link-tab[aria-current]{color:var(--basalt-text-primary)}.link-tab[aria-current] :is([data-label],[data-reserve]>:first-child){font-weight:var(--basalt-font-weight-semibold)}.link-tab[aria-current]>:not(.link-tab-line):not([data-reserved],[data-bare]){font-weight:var(--basalt-font-weight-semibold)}.link-tab [data-label]{display:inline-flex;flex-direction:column;align-items:flex-start}.link-tab [data-label]:after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.link-tab [data-reserve]{display:inline-grid;justify-items:start}.link-tab [data-reserve]>*{grid-area:1 / 1;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--basalt-space-1-5);white-space:nowrap}.link-tab [data-wide]{visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.link-tab :is(span,b,i,em,strong,small,mark,code,abbr):not([data-pair]):has(>svg,>[data-pair]){display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.link-tab [data-pair]{display:inline-grid;flex:none}.link-tab [data-pair]>*{grid-area:1 / 1;transition:opacity var(--basalt-duration-fast) var(--basalt-ease-out)}.link-tab [data-pair]>:last-child{opacity:0}.link-tab[aria-current] [data-pair]>:first-child{opacity:0}.link-tab[aria-current] [data-pair]>:last-child{opacity:1}.link-tab[aria-current]>.link-tab-line{opacity:1}@media(hover:hover){.link-tab:hover{color:var(--basalt-text-primary)}}.link-tab:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}@media(pointer:coarse),(width<720px){.link-tab{min-height:var(--basalt-size-tap-min)}}.link-tabs-select{display:none;min-width:0}.link-tabs-select .select{--_lead: 4ch}.link-tabs-select-label{position:absolute;inset-block:0;inset-inline-start:var(--basalt-space-2-5);display:flex;align-items:center;color:var(--basalt-text-secondary);font-size:var(--basalt-text-base-size);line-height:1;white-space:nowrap;pointer-events:none}.link-tabs-select select.input{padding-inline-start:calc(var(--basalt-space-2-5) + var(--_lead) + var(--basalt-space-1-5))}.link-tabs[data-size="3xl"] .link-tabs-select-label,.link-tabs[data-size="5xl"] .link-tabs-select-label{font-size:var(--basalt-text-md-size)}.link-tabs[data-size="3xl"] .link-tabs-select select.input{height:var(--basalt-size-control-2xl);border-radius:var(--basalt-radius-md);--_font: var(--basalt-text-md-size)}.link-tabs[data-size="5xl"] .link-tabs-select select.input{height:var(--basalt-size-control-3xl);border-radius:var(--basalt-radius-md);--_font: var(--basalt-text-md-size)}@media(width<720px){.link-tabs>ul{display:none}.link-tabs-select{display:block}}@media(forced-colors:active){.link-tabs-select-label{color:CanvasText}.link-tab-line{forced-color-adjust:none;background:Highlight}}}
diff --git a/.agent/skills/basalt-html/parts/manifest.json b/.agent/skills/basalt-html/parts/manifest.json
index 65b09d0..c845bcf 100644
--- a/.agent/skills/basalt-html/parts/manifest.json
+++ b/.agent/skills/basalt-html/parts/manifest.json
@@ -1,5 +1,5 @@
{
- "$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). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Raised in batch A of the diagrams backlog (DECISIONS 301): diagram 91250 to 92400, for the engine fixes it bundles (a decision kept no taller than it is wide, labels on whole pixels, slots beside a straight line, a one-column schema's turn-back); the skill keeps the development checks a production React build now drops. Raised again in that batch's review fixes: diagram 92400 to 92650, for the drawn layout refusing two lines laid on one another (Neon's blocking finding 1 on #126). Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused). DECISIONS 320 (versions and release notes): the release module is new (budget 15900 at first, usage 2400); topbar, app-shell and tab-bar gain the version link's classes (budgets: topbar 17700 to 19900, app-shell 4300 to 5200 with the rail's tooltip for it, tab-bar 4850 to 5200), their usage caps rising 2900 to 3100, 2600 to 2850 and 2250 to 2400 for its one line each; skillMd rose 12650 to 12800 for the release module's line and .version-link in topbar's. The code review of round 68 adds data-focus-self to the popover module (its Tab walk; budget 4950 to 5600, usage cap 950 to 1100) and logical start and end for its alignment; the release module's header grid and the Sources panel's touch rows take it to 16900. The spacing sweep of round 68 (DECISIONS 326: Copy link's words on the edge, the callout's last change, its reference column, the last release, the touch rows' end and the whole code chip) takes the release module to 17400. The ruling on where a release ends (DECISIONS 331: no padding under the last change in a release, a release-ending fold's hang, an arrived change keeping its padding, the panel holding its first margin, Build details 44 on touch and a closed Fixed panel taking no room) takes it to 19000. The code recheck of round 68 (recheck 5) has the popover's Tab walk follow Safari's own rule (Tab skips links on Apple's WebKit, Option-Tab reaches them): popover 5600 to 5900. The pixel recheck of round 68 has the Sources panel's touch rows keep their 20px lines with the link's box as hit area, space-3 rows and space-6 between two linked values (recheck-pixels 4), and the release's whole header take the arrival's plate: release 19000 to 19600. Merging #127 (stages, DECISIONS 316 and 328) into the versioning branch: both had raised skillMd from 12650 to 12800 for their own module's line, and together they came to 12886; SKILL.md was tightened in its wording (no rule dropped) to stay within 12800. Raised in diagram batch B's fix round (DECISIONS 318, the owner's diagram raise; and 326's sweep), each to its measured size: diagram 137700 to 144100 (the two reviews' fixes in the shared engine: right to left frames and self-calls, the corridors' and lanes' development words, the unusable-placement check, the transcript's hanging lines, the text art's frame widening, the frame-side fit check, the sequence's layers, the stacked group's turn room), diagram-motion 28450 to 30450 (the text sequence's build by ink and its colour-only run, moved into the motion module), diagram-zoom 17000 to 17600 (a linked card closes the viewer; the text art's own width; a placed model for the key hint), diagram-export 7850 to 10450 (an export at rest: sized drawing SVGs, no reveal masks, the pseudo-element rules, the lines under the cards, a viewer's figure read at 100% with its head and key, the rim's lit top). Raised at the batch B re-check (the decider's four rulings): diagram 144100 to 145100 (5.1's first list reported as errors apart from the warnings, a turn's label lines on the group entered by it and the seats beside its turn, the bare stack applied, the text art's reset of the core's inline code chip). Merging main (#127 and #128) into diagram batch B: skillMd keeps main's 12800 (batch B had raised it to 12950 for its diagram lines); SKILL.md was tightened in its wording to stay within it, no rule dropped; core takes main's 35550.Raised in the repo review (23 Nov 2026; budgets are soft, the owner's word): notifications 12450 to 12700 (a link is written only when relative, http, https or mailto, and side and align are checked before they reach the markup), combobox 11200 to 11350 (a disabled field's hidden input is disabled too, now and later), tooltip 3200 to 3550 (the gap to the opener is the tooltip's own, and hover and keyboard focus each hold it open; WCAG 1.4.13), chart 34750 to 34800 (the scale's step search and gridlines are bounded, so extreme values cannot hang the page), spinner 650 to 720 (its held rule moved in from loops, so a ring-only page keeps a stored hold), kbd 2900 to 2950, palette 11400 to 11500 (and its usage text 1350 to 1400, for the Mod line) and toast 16050 to 16200 (Mod in a palette item's keys is bound as it is drawn, and a toast action's aria-keyshortcuts resolves Mod). The safe-sinks rule (decided by the owner, Fable, Astra and Muse, 23 Nov 2026): skillMd 12650 to 12900, and 13050 with main's own raise merged in (one line: data goes in as textContent, a link passes Basalt.safeHref, an option comes from a fixed list), core 35400 to 35650, and 35800 with main's own raise merged in, and its usage 2950 to 3200 (one safeHref, published as Basalt.safeHref, and _.pick, in place of a copy in each module; esc escapes the apostrophe), link-tabs 5750 to 5900 (a refused link dispatches no event), diagram 92650 to 93000 (a card's mark is a relative path, https or a data: image). Merging #129 into diagram batch B: diagram keeps batch B's 145100 plus #129's mark check, set to its measure, and batch B's usage 4600. The fix round after both reviews of 421348e8 sets them to the measured sizes again: core 38950 to 39600 (every room says all three forms, and a hung word's box grows by a short room's shortfall), search to 5700 (it places its top again on a resize and with the keyboard; an empty list holds no padding), command-list to 14700 (it keeps the taller of its two heights), notifications to 12950 (the bell's edge), pane to 1950 (the page column's room), chart to 34950 (the date line's reason), and code, diagram-zoom, filter, links, sheet, still-table, tab-bar and topbar each by under 150 bytes (the three forms of a room; the selection column's width however given). Merged with main at db0bc418 (#129 to #131), DECISIONS 336's caps are set to the measured sizes again: core 35800 to 38950 and its usage 3200 to 3650, toast 16200 to 16750, terminal to 12700 (13050 with the open items' ruling: both copy buttons draw their three glyphs once, so a refused copy shows the close with no markup written after), diagram-zoom 17600 to 17750 (its viewer's Close and Zoom out hung, and the foot's room). Raised in DECISIONS 336 (reserved room across every component, claude/reserved-room), each to its measured size: core 35550 to 38700 (the edge rule a ghost .btn hangs by at a head, its ring and touch hit area, the side insets by direction, the .panel-head and page section-head that hang their last button by themselves) and its usage 2950 to 3450 (how data-edge and --basalt-edge-room are written); search 4400 to 5200 (search.js, the held top), terminal 11950 to 12550 (the close glyph for a refused copy, the edge on both copies), links 2750 to 3300 (the first icon link hung, the card room, the 20px glyph), toast 16050 to 16650 (the 46px hit areas on touch), selection 1500 to 1650 and still-table 14650 to 15000 (the 44px select column), command-list 14000 to 14350 (the panel hugs, the room is page), menu 8950 to 9150 (the column every row keeps when any row has a check or a glyph), notifications 12450 to 12600, filter 17500 to 17600, forms 3500 to 3550, sheet 5400 to 5450, topbar-nav 7550 to 7600 and app-shell 5200 to 5250 (logical sides, the edge and the room); topbar's usage 3100 to 3200 (a bar's last ghost control takes data-edge); command-list's usage 2150 to 2300 (the panel hugs; the room is page, and only on the page); dialog-form's usage 1300 to 1350 (its Close is written data-icon-only data-edge=\"end\"). Raised in the polish ruling of 336 (the selection box keeps to the cell's line): selection 1650 to 1750 (the box's start margin, min(space-4, half the spare room): 1710 measured) and its usage 1150 to 1350 (the rule's sentence: 1313 measured). Merging main (#130, #131) into claude/diagram-interop: diagram usage 4600 to 4850 (+5.4%: Batch B's diagram usage plus the basalt-diagram-export rule line, measured 4806), then 4850 to 5050 (noting that .lucid is for Lucid's REST API only and to use .vsdx in Lucid's UI, measured 4999). Raised for right to left (diagrams-rtl): diagram 145450 to 146000 (the stacked figure mirrors, its snap and whole-pixel labels with it; a drawn schema takes its turn-backs, its one-column room and its gutter lanes from the end side); then 146000 to 148000 for Fable's ruling on the stacked group label (the stem gives way, the label slides, the last resort's warning) and the author's strings isolated in ).",
+ "$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). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Raised in batch A of the diagrams backlog (DECISIONS 301): diagram 91250 to 92400, for the engine fixes it bundles (a decision kept no taller than it is wide, labels on whole pixels, slots beside a straight line, a one-column schema's turn-back); the skill keeps the development checks a production React build now drops. Raised again in that batch's review fixes: diagram 92400 to 92650, for the drawn layout refusing two lines laid on one another (Neon's blocking finding 1 on #126). Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused). DECISIONS 320 (versions and release notes): the release module is new (budget 15900 at first, usage 2400); topbar, app-shell and tab-bar gain the version link's classes (budgets: topbar 17700 to 19900, app-shell 4300 to 5200 with the rail's tooltip for it, tab-bar 4850 to 5200), their usage caps rising 2900 to 3100, 2600 to 2850 and 2250 to 2400 for its one line each; skillMd rose 12650 to 12800 for the release module's line and .version-link in topbar's. The code review of round 68 adds data-focus-self to the popover module (its Tab walk; budget 4950 to 5600, usage cap 950 to 1100) and logical start and end for its alignment; the release module's header grid and the Sources panel's touch rows take it to 16900. The spacing sweep of round 68 (DECISIONS 326: Copy link's words on the edge, the callout's last change, its reference column, the last release, the touch rows' end and the whole code chip) takes the release module to 17400. The ruling on where a release ends (DECISIONS 331: no padding under the last change in a release, a release-ending fold's hang, an arrived change keeping its padding, the panel holding its first margin, Build details 44 on touch and a closed Fixed panel taking no room) takes it to 19000. The code recheck of round 68 (recheck 5) has the popover's Tab walk follow Safari's own rule (Tab skips links on Apple's WebKit, Option-Tab reaches them): popover 5600 to 5900. The pixel recheck of round 68 has the Sources panel's touch rows keep their 20px lines with the link's box as hit area, space-3 rows and space-6 between two linked values (recheck-pixels 4), and the release's whole header take the arrival's plate: release 19000 to 19600. Merging #127 (stages, DECISIONS 316 and 328) into the versioning branch: both had raised skillMd from 12650 to 12800 for their own module's line, and together they came to 12886; SKILL.md was tightened in its wording (no rule dropped) to stay within 12800. Raised in diagram batch B's fix round (DECISIONS 318, the owner's diagram raise; and 326's sweep), each to its measured size: diagram 137700 to 144100 (the two reviews' fixes in the shared engine: right to left frames and self-calls, the corridors' and lanes' development words, the unusable-placement check, the transcript's hanging lines, the text art's frame widening, the frame-side fit check, the sequence's layers, the stacked group's turn room), diagram-motion 28450 to 30450 (the text sequence's build by ink and its colour-only run, moved into the motion module), diagram-zoom 17000 to 17600 (a linked card closes the viewer; the text art's own width; a placed model for the key hint), diagram-export 7850 to 10450 (an export at rest: sized drawing SVGs, no reveal masks, the pseudo-element rules, the lines under the cards, a viewer's figure read at 100% with its head and key, the rim's lit top). Raised at the batch B re-check (the decider's four rulings): diagram 144100 to 145100 (5.1's first list reported as errors apart from the warnings, a turn's label lines on the group entered by it and the seats beside its turn, the bare stack applied, the text art's reset of the core's inline code chip). Merging main (#127 and #128) into diagram batch B: skillMd keeps main's 12800 (batch B had raised it to 12950 for its diagram lines); SKILL.md was tightened in its wording to stay within it, no rule dropped; core takes main's 35550.Raised in the repo review (23 Nov 2026; budgets are soft, the owner's word): notifications 12450 to 12700 (a link is written only when relative, http, https or mailto, and side and align are checked before they reach the markup), combobox 11200 to 11350 (a disabled field's hidden input is disabled too, now and later), tooltip 3200 to 3550 (the gap to the opener is the tooltip's own, and hover and keyboard focus each hold it open; WCAG 1.4.13), chart 34750 to 34800 (the scale's step search and gridlines are bounded, so extreme values cannot hang the page), spinner 650 to 720 (its held rule moved in from loops, so a ring-only page keeps a stored hold), kbd 2900 to 2950, palette 11400 to 11500 (and its usage text 1350 to 1400, for the Mod line) and toast 16050 to 16200 (Mod in a palette item's keys is bound as it is drawn, and a toast action's aria-keyshortcuts resolves Mod). The safe-sinks rule (decided by the owner, Fable, Astra and Muse, 23 Nov 2026): skillMd 12650 to 12900, and 13050 with main's own raise merged in (one line: data goes in as textContent, a link passes Basalt.safeHref, an option comes from a fixed list), core 35400 to 35650, and 35800 with main's own raise merged in, and its usage 2950 to 3200 (one safeHref, published as Basalt.safeHref, and _.pick, in place of a copy in each module; esc escapes the apostrophe), link-tabs 5750 to 5900 (a refused link dispatches no event), diagram 92650 to 93000 (a card's mark is a relative path, https or a data: image). Merging #129 into diagram batch B: diagram keeps batch B's 145100 plus #129's mark check, set to its measure, and batch B's usage 4600. The fix round after both reviews of 421348e8 sets them to the measured sizes again: core 38950 to 39600 (every room says all three forms, and a hung word's box grows by a short room's shortfall), search to 5700 (it places its top again on a resize and with the keyboard; an empty list holds no padding), command-list to 14700 (it keeps the taller of its two heights), notifications to 12950 (the bell's edge), pane to 1950 (the page column's room), chart to 34950 (the date line's reason), and code, diagram-zoom, filter, links, sheet, still-table, tab-bar and topbar each by under 150 bytes (the three forms of a room; the selection column's width however given). Merged with main at db0bc418 (#129 to #131), DECISIONS 336's caps are set to the measured sizes again: core 35800 to 38950 and its usage 3200 to 3650, toast 16200 to 16750, terminal to 12700 (13050 with the open items' ruling: both copy buttons draw their three glyphs once, so a refused copy shows the close with no markup written after), diagram-zoom 17600 to 17750 (its viewer's Close and Zoom out hung, and the foot's room). Raised in DECISIONS 336 (reserved room across every component, claude/reserved-room), each to its measured size: core 35550 to 38700 (the edge rule a ghost .btn hangs by at a head, its ring and touch hit area, the side insets by direction, the .panel-head and page section-head that hang their last button by themselves) and its usage 2950 to 3450 (how data-edge and --basalt-edge-room are written); search 4400 to 5200 (search.js, the held top), terminal 11950 to 12550 (the close glyph for a refused copy, the edge on both copies), links 2750 to 3300 (the first icon link hung, the card room, the 20px glyph), toast 16050 to 16650 (the 46px hit areas on touch), selection 1500 to 1650 and still-table 14650 to 15000 (the 44px select column), command-list 14000 to 14350 (the panel hugs, the room is page), menu 8950 to 9150 (the column every row keeps when any row has a check or a glyph), notifications 12450 to 12600, filter 17500 to 17600, forms 3500 to 3550, sheet 5400 to 5450, topbar-nav 7550 to 7600 and app-shell 5200 to 5250 (logical sides, the edge and the room); topbar's usage 3100 to 3200 (a bar's last ghost control takes data-edge); command-list's usage 2150 to 2300 (the panel hugs; the room is page, and only on the page); dialog-form's usage 1300 to 1350 (its Close is written data-icon-only data-edge=\"end\"). Raised in the polish ruling of 336 (the selection box keeps to the cell's line): selection 1650 to 1750 (the box's start margin, min(space-4, half the spare room): 1710 measured) and its usage 1150 to 1350 (the rule's sentence: 1313 measured). Merging main (#130, #131) into claude/diagram-interop: diagram usage 4600 to 4850 (+5.4%: Batch B's diagram usage plus the basalt-diagram-export rule line, measured 4806), then 4850 to 5050 (noting that .lucid is for Lucid's REST API only and to use .vsdx in Lucid's UI, measured 4999). Raised for right to left (diagrams-rtl): diagram 145450 to 146000 (the stacked figure mirrors, its snap and whole-pixel labels with it; a drawn schema takes its turn-backs, its one-column room and its gutter lanes from the end side); then 146000 to 148000 for Fable's ruling on the stacked group label (the stem gives way, the label slides, the last resort's warning) and the author's strings isolated in ). Raised in the first tab (DECISIONS 358): tabs 3700 to 4600 (the scrollport and its hang, the divider as ::before, the underline's inset, the scroll margin, and the script that wraps the row and brings a focused tab into view: 4524 measured), link-tabs 5900 to 6350 (the hang and the divider as ::before: 6276 measured), tabs usage 750 to 1150 (the .tabs-scroll wrapper in the markup and the sentence on the scrollport, the hang and the underline: 1111 measured) and link-tabs usage 2550 to 2750 (the hang and the underline's width: 2702 measured).",
"budgets": {
"skillMd": 13050,
"core": 39600
@@ -280,6 +280,7 @@
},
"tabs": {
"classes": [
+ "tabs-scroll",
"tabs",
"tab",
"tabpanel"
@@ -290,8 +291,8 @@
"text": [
"role\\s*=\\s*[\"']?tab(?:list|panel)?\\b"
],
- "budget": 3700,
- "usage": 750,
+ "budget": 4600,
+ "usage": 1150,
"textWords": [
"role=\"tab\", role=\"tablist\" or role=\"tabpanel\""
]
@@ -304,8 +305,8 @@
"link-tabs-select",
"link-tabs-select-label"
],
- "budget": 5900,
- "usage": 2550,
+ "budget": 6350,
+ "usage": 2750,
"requires": [
"select"
]
diff --git a/.agent/skills/basalt-html/parts/tabs.css b/.agent/skills/basalt-html/parts/tabs.css
index f381464..2665998 100644
--- a/.agent/skills/basalt-html/parts/tabs.css
+++ b/.agent/skills/basalt-html/parts/tabs.css
@@ -1 +1 @@
-@layer basalt{.tabs{display:flex;gap:var(--basalt-space-1);overflow-x:auto;box-shadow:inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider)}.tab{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--basalt-space-1-5);flex:none;height:var(--basalt-size-control-lg);padding:0 var(--basalt-space-2);margin:0;border:0;border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;background:transparent;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / normal var(--basalt-font-family-sans);cursor:pointer;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.tab[aria-selected=true]{color:var(--basalt-text-primary)}.tab[aria-selected=true] :is([data-label],[data-reserve]>:first-child){font-weight:var(--basalt-font-weight-semibold)}.tab[aria-selected=true]:not([data-reserved],[data-bare]){font-weight:var(--basalt-font-weight-semibold)}.tab :is(span,a,b,i,em,strong,small,mark,code,abbr):not([data-pair]):has(>svg,>[data-pair]){display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.tab [data-label]{display:inline-flex;flex-direction:column;align-items:flex-start}.tab [data-label]:after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.tab[aria-selected=true]:after{content:"";position:absolute;inset-inline:0;bottom:0;height:var(--basalt-size-indicator);background:var(--basalt-text-primary)}@media(hover:hover){.tab:hover{color:var(--basalt-text-primary)}}@media(pointer:coarse),(width<720px){.tab{height:var(--basalt-size-tap-min)}}.tab [data-reserve]{display:inline-grid;justify-items:start}.tab [data-reserve]>*{grid-area:1 / 1;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--basalt-space-1-5);white-space:nowrap}.tab [data-wide]{visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.tab [data-pair]{display:inline-grid;flex:none}.tab [data-pair]>*{grid-area:1 / 1;transition:opacity var(--basalt-duration-fast) var(--basalt-ease-out)}.tab [data-pair]>:last-child{opacity:0}.tab[aria-selected=true] [data-pair]>:first-child{opacity:0}.tab[aria-selected=true] [data-pair]>:last-child{opacity:1}.tab:focus-visible,.code-body:focus-visible{outline-offset:calc(-1 * var(--basalt-size-focus-width))}.tabpanel{padding-top:0}@media(forced-colors:active){.tab[aria-selected=true]:after{background:Highlight;forced-color-adjust:none}}}
+@layer basalt{:is(.tabs-scroll,.tabs){--_px: var(--basalt-space-2);--_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));--_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)))}.tabs-scroll{overflow-x:auto;padding:var(--_room);margin:calc(-1 * var(--_room));margin-inline-start:calc(-1 * (var(--_hang) + var(--_room)))}.tabs{position:relative;display:flex;gap:var(--basalt-space-1);width:max-content;min-width:100%;box-sizing:border-box}.tabs:before{content:"";position:absolute;inset-inline:var(--_hang) 0;bottom:0;height:var(--basalt-size-hairline);background:var(--basalt-border-divider);pointer-events:none}.tab{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--basalt-space-1-5);flex:none;height:var(--basalt-size-control-lg);padding:0 var(--basalt-space-2);margin:0;scroll-margin-inline:calc(var(--_room) + var(--basalt-size-hairline));border:0;border-radius:var(--basalt-radius-md) var(--basalt-radius-md) 0 0;background:transparent;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / normal var(--basalt-font-family-sans);cursor:pointer;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.tab[aria-selected=true]{color:var(--basalt-text-primary)}.tab[aria-selected=true] :is([data-label],[data-reserve]>:first-child){font-weight:var(--basalt-font-weight-semibold)}.tab[aria-selected=true]:not([data-reserved],[data-bare]){font-weight:var(--basalt-font-weight-semibold)}.tab :is(span,a,b,i,em,strong,small,mark,code,abbr):not([data-pair]):has(>svg,>[data-pair]){display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.tab [data-label]{display:inline-flex;flex-direction:column;align-items:flex-start}.tab [data-label]:after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.tab[aria-selected=true]:after{content:"";position:absolute;inset-inline:var(--_px);bottom:0;height:var(--basalt-size-indicator);background:var(--basalt-text-primary)}@media(hover:hover){.tab:hover{color:var(--basalt-text-primary)}}@media(pointer:coarse),(width<720px){.tab{height:var(--basalt-size-tap-min)}}.tab [data-reserve]{display:inline-grid;justify-items:start}.tab [data-reserve]>*{grid-area:1 / 1;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--basalt-space-1-5);white-space:nowrap}.tab [data-wide]{visibility:hidden;font-weight:var(--basalt-font-weight-semibold);user-select:none;pointer-events:none}.tab [data-pair]{display:inline-grid;flex:none}.tab [data-pair]>*{grid-area:1 / 1;transition:opacity var(--basalt-duration-fast) var(--basalt-ease-out)}.tab [data-pair]>:last-child{opacity:0}.tab[aria-selected=true] [data-pair]>:first-child{opacity:0}.tab[aria-selected=true] [data-pair]>:last-child{opacity:1}.code-body:focus-visible{outline-offset:calc(-1 * var(--basalt-size-focus-width))}.tabpanel{padding-top:0}@media(forced-colors:active){.tab[aria-selected=true]:after{background:Highlight;forced-color-adjust:none}}}
diff --git a/.agent/skills/basalt-html/parts/tabs.js b/.agent/skills/basalt-html/parts/tabs.js
index a4f8a18..ffea8c3 100644
--- a/.agent/skills/basalt-html/parts/tabs.js
+++ b/.agent/skills/basalt-html/parts/tabs.js
@@ -1 +1 @@
-(function(f){"use strict";var c=f._;function s(){document.querySelectorAll("[data-tabs]").forEach(function(a){if(!a.__bh){a.__bh=!0;var u=a.querySelector('[role="tablist"]');if(u){var t=Array.prototype.slice.call(u.querySelectorAll('[role="tab"]')),d=function(e){return document.getElementById(e.getAttribute("aria-controls"))},o=function(e,l){t.forEach(function(r){var i=r===e;r.setAttribute("aria-selected",String(i)),r.tabIndex=i?0:-1;var n=d(r);n&&(n.hidden=!i,n.tabIndex=0,n.setAttribute("role","tabpanel"))}),l&&e.focus()};t.forEach(function(e){e.type="button",c.reserve(e),e.addEventListener("click",function(){o(e,!1)}),e.addEventListener("keydown",function(l){var r=t.indexOf(e),i=getComputedStyle(u).direction==="rtl",n={ArrowRight:i?r-1:r+1,ArrowLeft:i?r+1:r-1,Home:0,End:t.length-1}[l.key];n!=null&&(l.preventDefault(),o(t[(n+t.length)%t.length],!0))})}),o(t.filter(function(e){return e.getAttribute("aria-selected")==="true"})[0]||t[0],!1)}}})}c.step(90,"wireTabs",s)})(window.Basalt);
+(function(f){"use strict";var u=f._;function d(){document.querySelectorAll("[data-tabs]").forEach(function(o){if(!o.__bh){o.__bh=!0;var t=o.querySelector('[role="tablist"]');if(t){if(t.classList.contains("tabs")&&!(t.parentElement&&t.parentElement.classList.contains("tabs-scroll"))){var s=document.createElement("div");s.className="tabs-scroll",t.parentNode.insertBefore(s,t),s.appendChild(t)}t.addEventListener("focusin",function(e){e.target.getAttribute("role")==="tab"&&e.target.scrollIntoView({block:"nearest",inline:"nearest"})});var r=Array.prototype.slice.call(t.querySelectorAll('[role="tab"]')),v=function(e){return document.getElementById(e.getAttribute("aria-controls"))},c=function(e,l){r.forEach(function(n){var i=n===e;n.setAttribute("aria-selected",String(i)),n.tabIndex=i?0:-1;var a=v(n);a&&(a.hidden=!i,a.tabIndex=0,a.setAttribute("role","tabpanel"))}),l&&e.focus({preventScroll:!0})};r.forEach(function(e){e.type="button",u.reserve(e),e.addEventListener("click",function(){c(e,!1)}),e.addEventListener("keydown",function(l){var n=r.indexOf(e),i=getComputedStyle(t).direction==="rtl",a={ArrowRight:i?n-1:n+1,ArrowLeft:i?n+1:n-1,Home:0,End:r.length-1}[l.key];a!=null&&(l.preventDefault(),c(r[(a+r.length)%r.length],!0))})}),c(r.filter(function(e){return e.getAttribute("aria-selected")==="true"})[0]||r[0],!1)}}})}u.step(90,"wireTabs",d)})(window.Basalt);
diff --git a/.agent/skills/basalt-html/parts/usage/link-tabs.md b/.agent/skills/basalt-html/parts/usage/link-tabs.md
index fda4b13..bf110b4 100644
--- a/.agent/skills/basalt-html/parts/usage/link-tabs.md
+++ b/.agent/skills/basalt-html/parts/usage/link-tabs.md
@@ -22,3 +22,4 @@ Tabs that are links: a `nav` of links on a hairline, one current, and under 720
- The select navigates at once and says so first: "Go to" is drawn before the current page's name (the text of `.link-tabs-select-label`; replace it there, and in the `aria-label`, which the script then keeps as those words and the chosen page's name). Only a choice from the open list navigates; a key on the closed select (a letter, an arrow, Home, End, a Page key) is held: the value goes back to the current page.
- A choice navigates to its `href`. A page that routes itself listens for `linktabsnavigate` (`detail.href`) and calls `preventDefault()`: focus then stays on the select. Otherwise a new page loads and focus starts over there.
- `data-size` is `3xl` (48) or `5xl` (56); none is 36. The row wraps and never scrolls. A 56 row is 48 in a container narrower than 640.
+- Each line's first label is on the content line and the links' boxes hang into the padding: leave 12 at the box's start (14 from `3xl`). The underline is as wide as the label.
diff --git a/.agent/skills/basalt-html/parts/usage/tabs.md b/.agent/skills/basalt-html/parts/usage/tabs.md
index 35552b0..a077786 100644
--- a/.agent/skills/basalt-html/parts/usage/tabs.md
+++ b/.agent/skills/basalt-html/parts/usage/tabs.md
@@ -2,11 +2,15 @@
```
-
-
+
+
+
+
…
```
Every tab has `aria-controls`, every panel `aria-labelledby`. The panel adds no space under the tab bar; set it as above. The script selects a tab on click, and hides the unselected panels when it starts; write `hidden` on them too so the page reads right before it runs. The selected tab keeps its underline, and its label is 600 against 400 for the rest (the script reserves the width). Tabs don't slide their indicator in static files.
+
+`.tabs-scroll` is the row's scrollport: it keeps the focus ring's room, so the ring is outside the tab and a focused tab scrolls fully into view. The script adds it if missing. The first label is on the content line and each tab's box hangs into the padding: leave 12 at the box's start. The underline is as wide as the tab's content.
diff --git a/AGENTS.md b/AGENTS.md
index 7c72f5f..67d07b8 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -120,8 +120,8 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie
shadow. In forced colours the chosen segment, vertical tab and current page are `Highlight` with `HighlightText`, and the
horizontal tab keeps its `Highlight` underline. **No state is ever marked by an outline** (selected, active, current and
pressed never draw one), and **there is no vertical bar anywhere.** Focus is a 2px ring at +2 outside the control, drawn
- inside at −2 only where +2 would be cut or would cross a neighbour: a field or band flush with a clipping edge, a row of
- tabs that scrolls, a sortable header cell (a header band that is itself a button), a phone tab bar cell, a ghost control hung at an edge with less than 4 of room left, and a cut cell of a still table (a focus stop, which shows its own ring after Esc has closed its plate). These structural
+ inside at −2 only where +2 would be cut or would cross a neighbour: a field or band flush with a clipping edge,
+ a sortable header cell (a header band that is itself a button), a phone tab bar cell, a ghost control hung at an edge with less than 4 of room left, and a cut cell of a still table (a focus stop, which shows its own ring after Esc has closed its plate). These structural
vertical lines are allowed, each named and never a selection, sort, active or status mark: the 1px divider at a pinned table
column's edge while the table is scrolled, the app sidebar's 1px edge, a meter's labelled target tick, the vertical
`Separator` between groups of controls, the edges between a `NumberField`'s value and its steppers, a diagram's connector, a sequence diagram's lifeline with its activation bar, a frame's sides, and a stage list's or run timeline's connector (1px between two marks, never
@@ -129,7 +129,7 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie
(radius 8, one solid fill per level) plus a lift from secondary ink to primary, with no
weight change: it is the row the keyboard is on, and it changes with every arrow key (WCAG 1.4.1). A selected table row is the wash band, and its checked box
carries the state. A wash over an opaque fill (a pinned cell) is one colour from `color-mix`, never a gradient, an image or a
- pseudo-element layer, and a hovered or selected row's wash is on every cell of the row, pinned or not, in React and the skill. Horizontal tabs keep their underline: it is horizontal. In a segmented
+ pseudo-element layer, and a hovered or selected row's wash is on every cell of the row, pinned or not, in React and the skill. Horizontal tabs keep their underline: it is horizontal. It is as wide as the tab's content, and the row hangs its first label on the line (DECISIONS 358). In a segmented
control and in vertical tabs one pill slides to the chosen item (`duration-slow`, `ease-out`);
under reduced motion and in forced colours each item paints its own.
- **Reserved room is page, not paint:** a box hugs what it shows; a seat's spare room lies outside it, on the open side; a seat
diff --git a/docs/foundations.md b/docs/foundations.md
index a008c36..a5d7c20 100644
--- a/docs/foundations.md
+++ b/docs/foundations.md
@@ -152,7 +152,7 @@ kept as a rule so both themes behave alike (DECISIONS 166). Four text levels wer
Outlines survive Windows forced-colours mode; box-shadow rings don't. **No state is ever marked by an outline:**
selected, active, current and pressed never draw one. Focus is a 2px ring at +2 outside the control, drawn inside at −2
only where +2 would be cut or would cross a neighbour: a field or band flush with a clipping edge (the search dialog's
- band, a flush listbox, an inline-label row), a row of tabs that scrolls, a sortable header cell, a phone tab bar cell, a ghost control hung at an edge whose box ends less than 4 from the edge of its room, and a cut cell of a
+ band, a flush listbox, an inline-label row), a sortable header cell, a phone tab bar cell, a ghost control hung at an edge whose box ends less than 4 from the edge of its room, and a cut cell of a
still table (a focus stop, which shows its own ring after Esc has closed its plate).
A focusable row (a link or button in a list, not a listbox option) takes the same control ring at +2, outside the
row, and its list keeps at least `space-1-5` (6px) between a row and any clipping edge so the ring is never cut. A
@@ -219,7 +219,9 @@ kept as a rule so both themes behave alike (DECISIONS 166). Four text levels wer
a real `CanvasText` border. With a fine pointer the plate is one shared element that glides between rows (see
[Motion](#motion)); each row's own plate is the fallback.
- **Tabs and segments.** Horizontal tabs keep a 2px underline that slides under the active tab: it is horizontal, not the
- vertical line the owner ruled out. A horizontal tab (and a link tab) is radius 8 on its top corners from 36px, as a 36px control is; compact (32) keeps 6 (DECISIONS 167). Vertical tabs are a column of 36px pills (radius 8) in a track (padding 4, radius
+ vertical line the owner ruled out. The chosen underline is as wide as the tab's content (label, icon, count), never
+ its padding, and still slides. The row hangs as the edge rule says, and a row that scrolls keeps the ring's 4 clear on every side,
+ bringing a focused tab fully into view, so the ring is always at +2 (DECISIONS 358). A horizontal tab (and a link tab) is radius 8 on its top corners from 36px, as a 36px control is; compact (32) keeps 6 (DECISIONS 167). Vertical tabs are a column of 36px pills (radius 8) in a track (padding 4, radius
12, `surface-sunken-strong`), the chosen one raised as the segmented control's pill is; there is no divider. The
chosen tab's pill slides as the segmented control's does (see [Motion](#motion)). The segmented control keeps its
horizontal size (28px segments in a track of padding 2 and radius 8) and takes the dark pill fill above. In all four
@@ -384,7 +386,8 @@ kept as a rule so both themes behave alike (DECISIONS 166). Four text levels wer
never layout, and stops inside the box's rim. Its focus ring follows the rule every control has: at +2 where the hung box keeps 4
from the edge of its room, inside at −2 only where it does not (a 44px control on a 16px line). On touch a hung control with words is
as wide as its words and takes what it lacks of 44 as hit area. A drawn control sits on the line with its edge. A control centred in
- its row (a period's arrows, pagination) and a tab are not at an edge.
+ its row (a period's arrows, pagination) is not at an edge. A row of horizontal tabs or link tabs is: its first label is on the
+ line and every tab's box hangs by its padding, narrowed only where a box declares less room (DECISIONS 358).
- **The last thing in a box** carries no padding of its own toward the box's edge: the box's padding is the only room under it. A
44px tap box there is hit area and reaches into that padding, never across the rim (DECISIONS 331).
- **The choice card** (`ChoiceCard`, in a `ChoiceCardGroup`) is a native radio (one of many) or checkbox (any of many)
@@ -2493,7 +2496,7 @@ broke a rule, and each change is named.
landing on it.
- **Link tabs (D12, A13, A14, A15).** `LinkTabs` and `LinkTab`: a `nav` of links on a hairline, the current one `aria-current="page"` with a real 2px
underline element (`Highlight` in forced colours) that does not slide, the control ring at +2 outside (never an inset outline), 36, 48 or 56 tall
- (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
+ (56 steps to 48 in a container under 640), 24px between two labels, every link keeping its padding on both sides and the row hung so each line's first label is on the content line, the underline as wide as the label (DECISIONS 358). **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 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
diff --git a/packages/react/src/link-tabs.tsx b/packages/react/src/link-tabs.tsx
index aa18d943..33f11df 100644
--- a/packages/react/src/link-tabs.tsx
+++ b/packages/react/src/link-tabs.tsx
@@ -90,7 +90,7 @@ export interface LinkTabProps extends Omit, "aria-curr
render?: React.ReactElement>;
}
-/** One link of a `LinkTabs`. The first one has no padding at its start, so its label sits on the content's edge. */
+/** One link of a `LinkTabs`. Every link keeps its padding; the row hangs into the box's padding by it, so each line's first label sits on the content's edge (DECISIONS 358). */
export function LinkTab({ current = false, render, className, children, ...props }: LinkTabProps) {
const content = (
<>
diff --git a/packages/react/src/styles/components.css b/packages/react/src/styles/components.css
index b5e44dc..aef26b2 100644
--- a/packages/react/src/styles/components.css
+++ b/packages/react/src/styles/components.css
@@ -949,15 +949,35 @@
position: relative;
display: flex;
gap: var(--basalt-space-1);
- box-shadow: inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider);
}
- /* An icon in a tab sits on the label's centre line, 6px before it, as it does in a button. */
+ /* The horizontal bar hangs as a ghost control at an edge does (DECISIONS 358): the first label sits on the content line and every tab's box
+ hangs into the padding by its own inline padding (--_px), narrowed only where a box declares less room than that padding and the ring's
+ 4 (--_room), so the ring at +2 always keeps 4. The divider starts on the content line (it is ::before, from the hang) and ends at the box's
+ end. Logical properties only, so right to left mirrors. */
+ .basalt-tabs-list:not([data-orientation="vertical"]) {
+ --_px: var(--basalt-space-2);
+ --_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));
+ --_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)));
+ margin-inline-start: calc(-1 * var(--_hang));
+ }
+ .basalt-tabs-list:not([data-orientation="vertical"])::before {
+ content: "";
+ position: absolute;
+ inset-inline: var(--_hang) 0;
+ bottom: 0;
+ height: var(--basalt-size-hairline);
+ background: var(--basalt-border-divider);
+ pointer-events: none;
+ }
+
+ /* An icon in a tab sits on the label's centre line, 6px before it, as it does in a button. The content starts at the tab's start, so a short
+ label drawn 44 wide on touch stays on the line. */
.basalt-tab {
position: relative;
display: inline-flex;
align-items: center;
- justify-content: center;
+ justify-content: flex-start;
gap: var(--basalt-space-1-5);
height: var(--_basalt-control-lg, var(--basalt-size-control-lg));
padding: 0 var(--basalt-space-2);
@@ -981,12 +1001,14 @@
.basalt-tab[data-active] { color: var(--basalt-text-primary); }
.basalt-tab[data-disabled] { color: var(--basalt-text-disabled); cursor: not-allowed; }
- /* The active tab in a horizontal bar is marked by a 2px underline (shape, not only colour) that slides between tabs. */
+ /* The active tab in a horizontal bar is marked by a 2px underline (shape, not only colour) that slides between tabs. It is as wide as the
+ chosen tab's content (its label, icon and count), never its padding (DECISIONS 358): --_line-left and --_line-right are the chosen tab's
+ physical insets to its content, measured by TabsList; until they are, the tab's padding stands in. */
.basalt-tabs-indicator {
position: absolute;
bottom: 0;
- left: var(--active-tab-left);
- width: var(--active-tab-width);
+ left: calc(var(--active-tab-left) + var(--_line-left, var(--_px)));
+ width: calc(var(--active-tab-width) - var(--_line-left, var(--_px)) - var(--_line-right, var(--_px)));
height: var(--basalt-size-indicator);
background: var(--basalt-text-primary);
transition-property: left, width;
@@ -1024,7 +1046,6 @@
padding: var(--basalt-space-1);
border-radius: var(--basalt-radius-lg);
background: var(--basalt-surface-sunken-strong);
- box-shadow: none;
}
.basalt-tabs-list[data-orientation="vertical"] .basalt-tab {
display: flex;
@@ -1048,6 +1069,7 @@
underline is the same 2px element as at 36. */
.basalt-tabs[data-size="3xl"] > .basalt-tabs-list:not([data-orientation="vertical"]) .basalt-tab { height: var(--_basalt-control-3xl, var(--basalt-size-control-3xl)); }
.basalt-tabs[data-size="5xl"] > .basalt-tabs-list:not([data-orientation="vertical"]) .basalt-tab { height: var(--_basalt-control-5xl, var(--basalt-size-control-5xl)); }
+ .basalt-tabs:is([data-size="3xl"], [data-size="5xl"]) > .basalt-tabs-list:not([data-orientation="vertical"]) { --_px: var(--basalt-space-2-5); }
.basalt-tabs:is([data-size="3xl"], [data-size="5xl"]) > .basalt-tabs-list:not([data-orientation="vertical"]) .basalt-tab {
padding-inline: var(--basalt-space-2-5);
border-radius: var(--basalt-radius-md) var(--basalt-radius-md) 0 0;
@@ -1073,18 +1095,33 @@
/* ---- Link tabs (DECISIONS 154, D12) ----
A nav of links on a hairline. The current link is its label at 600 in primary ink (400 in secondary at rest, each label reserving its 600 width, as a tab's
- does: decisions 138 and 149) with a 2px underline: a real element (so forced colours keep it), static, not sliding. Focus is the control ring at +2 outside the link, never an inset outline. Padding is 8 either side at 36, 10 at 48 and 56 (24px
- between two labels), the gap 4 and the first link has no padding at its start. Hover lifts the ink. */
+ does: decisions 138 and 149) with a 2px underline as wide as its content: a real element (so forced colours keep it), static, not sliding. Focus is the control ring at +2 outside the link, never an inset outline. Padding is 8 either side at 36, 10 at 48 and 56 (24px
+ between two labels), on every link, and the gap 4. The row hangs as Tabs' does (DECISIONS 358): each line's first label sits on the content line and every link's box hangs into
+ the padding by its own padding (--_px), narrowed only where a box declares less room than that and the ring's 4; the divider starts on the content line. Hover lifts the ink. */
.basalt-link-tabs { margin: 0; padding: 0; }
.basalt-link-tabs > ul {
+ --_px: var(--basalt-space-2);
+ --_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));
+ --_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)));
+ position: relative;
display: flex;
flex-wrap: wrap;
gap: 0 var(--basalt-space-1);
margin: 0;
+ margin-inline-start: calc(-1 * var(--_hang));
padding: 0;
list-style: none;
- box-shadow: inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider);
}
+ .basalt-link-tabs > ul::before {
+ content: "";
+ position: absolute;
+ inset-inline: var(--_hang) 0;
+ bottom: 0;
+ height: var(--basalt-size-hairline);
+ background: var(--basalt-border-divider);
+ pointer-events: none;
+ }
+ .basalt-link-tabs:is([data-size="3xl"], [data-size="5xl"]) > ul { --_px: var(--basalt-space-2-5); }
.basalt-link-tab {
--_h: var(--_basalt-control-lg, var(--basalt-size-control-lg));
position: relative;
@@ -1112,8 +1149,7 @@
@container (width < 640px) {
.basalt-link-tabs[data-size="5xl"] .basalt-link-tab { --_h: var(--_basalt-control-3xl, var(--basalt-size-control-3xl)); }
}
- .basalt-link-tabs > ul > li:first-child > .basalt-link-tab { padding-inline-start: 0; }
- .basalt-link-tab-line { position: absolute; inset-inline: 0; bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); opacity: 0; pointer-events: none; }
+ .basalt-link-tab-line { position: absolute; inset-inline: var(--_px); bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); opacity: 0; pointer-events: none; }
.basalt-link-tab[aria-current] { color: var(--basalt-text-primary); }
.basalt-link-tab[aria-current] > .basalt-link-tab-line { opacity: 1; }
@media (hover: hover) {
diff --git a/packages/react/src/tabs.tsx b/packages/react/src/tabs.tsx
index 24a9c72..4de6496 100644
--- a/packages/react/src/tabs.tsx
+++ b/packages/react/src/tabs.tsx
@@ -112,6 +112,44 @@ export function TabsList({ className, children, ref, ...props }: TabsListProps)
observer.observe(element.ownerDocument, { attributes: true, attributeFilter: ["dir"], subtree: true });
return () => observer.disconnect();
}, [orientation]);
+ // The underline is as wide as the chosen tab's content (its label, icon and count), never its padding (DECISIONS 358). The chosen tab's
+ // physical insets to its content are written on the list (--_line-left, --_line-right), which the indicator reads. They are measured again
+ // when the choice moves, when the chosen tab changes size (fonts arriving) and when the direction flips; until then the padding stands in.
+ React.useLayoutEffect(() => {
+ const element = list.current;
+ if (!element || orientation === "vertical") return undefined;
+ let watched: Element | null = null;
+ const sizes = new ResizeObserver(() => measure());
+ const measure = () => {
+ const tab = element.querySelector('[role="tab"][aria-selected="true"]');
+ if (tab !== watched) {
+ if (watched) sizes.unobserve(watched);
+ if (tab) sizes.observe(tab);
+ watched = tab;
+ }
+ if (!tab || !tab.firstChild) {
+ element.style.removeProperty("--_line-left");
+ element.style.removeProperty("--_line-right");
+ return;
+ }
+ const range = element.ownerDocument.createRange();
+ range.setStartBefore(tab.firstChild);
+ range.setEndAfter(tab.lastChild as Node);
+ const content = range.getBoundingClientRect();
+ const box = tab.getBoundingClientRect();
+ element.style.setProperty("--_line-left", `${content.left - box.left}px`);
+ element.style.setProperty("--_line-right", `${box.right - content.right}px`);
+ };
+ measure();
+ const choice = new MutationObserver(measure);
+ choice.observe(element, { attributes: true, attributeFilter: ["aria-selected"], subtree: true });
+ return () => {
+ choice.disconnect();
+ sizes.disconnect();
+ element.style.removeProperty("--_line-left");
+ element.style.removeProperty("--_line-right");
+ };
+ }, [orientation, flips]);
return (
{/* A vertical list is a column of pills in a track: one pill slides to the chosen tab, as the segmented control's does.
diff --git a/packages/react/test/audit-fixes-b.test.mjs b/packages/react/test/audit-fixes-b.test.mjs
index 5414f7d..710dc02 100644
--- a/packages/react/test/audit-fixes-b.test.mjs
+++ b/packages/react/test/audit-fixes-b.test.mjs
@@ -278,8 +278,11 @@ for (const theme of THEMES) {
for (const theme of THEMES) {
describe(`A3-07 right-to-left tabs (${theme})`, () => {
const TABS = render(`AlphaBeta tabGamma`);
+ // The underline is as wide as the chosen tab's content, never its padding (DECISIONS 358): it is compared with the content's box.
const under = (page) => page.evaluate(() => {
- const tab = document.querySelector("[role=tab][aria-selected=true]").getBoundingClientRect();
+ const chosen = document.querySelector("[role=tab][aria-selected=true]");
+ const range = document.createRange(); range.setStartBefore(chosen.firstChild); range.setEndAfter(chosen.lastChild);
+ const tab = range.getBoundingClientRect();
const bar = document.querySelector(".basalt-tabs-indicator").getBoundingClientRect();
return { tab: [Math.round(tab.left), Math.round(tab.right)], bar: [Math.round(bar.left), Math.round(bar.right)] };
});
@@ -287,7 +290,7 @@ for (const theme of THEMES) {
const { page } = await fixturePage(browser, TABS, { theme, viewport: { width: 700, height: 300 } });
await settle(page);
await page.evaluate(() => { document.documentElement.dir = "rtl"; });
- await page.waitForFunction(() => { const t = document.querySelector("[role=tab][aria-selected=true]").getBoundingClientRect(); const b = document.querySelector(".basalt-tabs-indicator").getBoundingClientRect(); return Math.abs(t.left - b.left) < 1.5 && Math.abs(t.right - b.right) < 1.5; }, null, { timeout: 3000 }).catch(() => {});
+ await page.waitForFunction(() => { const c = document.querySelector("[role=tab][aria-selected=true]"); const r = document.createRange(); r.setStartBefore(c.firstChild); r.setEndAfter(c.lastChild); const t = r.getBoundingClientRect(); const b = document.querySelector(".basalt-tabs-indicator").getBoundingClientRect(); return Math.abs(t.left - b.left) < 1.5 && Math.abs(t.right - b.right) < 1.5; }, null, { timeout: 3000 }).catch(() => {});
await settle(page);
const pos = await under(page);
assert.deepEqual(pos.bar, pos.tab, `underline ${pos.bar} under tab ${pos.tab}`);
diff --git a/packages/react/test/controls-port-tabs.test.mjs b/packages/react/test/controls-port-tabs.test.mjs
index eb35825..4c69a85 100644
--- a/packages/react/test/controls-port-tabs.test.mjs
+++ b/packages/react/test/controls-port-tabs.test.mjs
@@ -49,13 +49,15 @@ describe("D12: link tabs", () => {
for (const link of await page.getByRole("link").all()) assert.equal(await link.evaluate((el) => el.tabIndex), 0);
});
- test("heights 36, 48 and 56; 16px text from 48; 24px between two labels; the first has no start padding", async () => {
- for (const [size, h, font] of [["", 36, "13px"], ['size="3xl"', 48, "16px"], ['size="5xl"', 56, "16px"]]) {
+ test("heights 36, 48 and 56; 16px text from 48; 24px between two labels; every link keeps its padding and the first label is on the content edge (DECISIONS 358)", async () => {
+ for (const [size, h, font, pad] of [["", 36, "13px", 8], ['size="3xl"', 48, "16px", 10], ['size="5xl"', 56, "16px", 10]]) {
const { page } = await open(LINKS(size), DESKTOP);
const links = page.getByRole("link");
assert.equal((await box(links.nth(1))).height, h, size);
assert.equal((await css(links.nth(1), "fontSize")).fontSize, font);
- assert.equal((await css(links.nth(0), "paddingLeft")).paddingLeft, "0px", "the first link's label is on the content edge");
+ assert.equal((await css(links.nth(0), "paddingLeft")).paddingLeft, `${pad}px`, "the first link keeps its padding");
+ assert.equal((await box(links.nth(0).locator(".basalt-link-tab-label"))).x, 16, "the first link's label is on the content edge");
+ assert.equal((await box(links.nth(0))).x, 16 - pad, "its box hangs into the padding by its own padding");
if (size) {
const [a, b] = [await box(links.nth(1).locator(".basalt-link-tab-label")), await box(links.nth(2).locator(".basalt-link-tab-label"))];
assert.equal(b.x - (a.x + a.width), 24, "24px between two labels");
diff --git a/packages/react/test/export-sizes.json b/packages/react/test/export-sizes.json
index 58b75ca..be2dce3 100644
--- a/packages/react/test/export-sizes.json
+++ b/packages/react/test/export-sizes.json
@@ -330,7 +330,7 @@
"TableRowHead": 194,
"TableScrollHint": 938,
"Tabs": 37233,
- "TabsList": 38792,
+ "TabsList": 39633,
"TabsPanel": 36621,
"TabsPanels": 331,
"Terminal": 42441,
@@ -433,11 +433,11 @@
}
},
"package": {
- "bytes": 950108,
- "gzip": 316804
+ "bytes": 950942,
+ "gzip": 317019
},
"styles": {
- "bytes": 469113,
- "gzip": 60589
+ "bytes": 470197,
+ "gzip": 60709
}
}
diff --git a/packages/react/test/first-tab.test.mjs b/packages/react/test/first-tab.test.mjs
new file mode 100644
index 0000000..b356972
--- /dev/null
+++ b/packages/react/test/first-tab.test.mjs
@@ -0,0 +1,208 @@
+// The first tab (DECISIONS 358): `Tabs` and `LinkTabs` are one anatomy. The first label sits on the content line and every tab's box hangs into the
+// padding by its own inline padding (8 at 36, 10 at 48 and 56), narrowed only where a box declares less room than that padding and the ring's 4. The
+// divider starts on the content line; the chosen line is as wide as the tab's content (label, icon, count), never its padding, and Tabs' still slides.
+// Focus is the control ring at +2 outside every horizontal tab and link tab. Right to left mirrors. Driven in Chromium against the built package.
+// Written in the round and not run (DECISIONS 330 and 359: no tests until the open work is finished).
+import assert from "node:assert/strict";
+import { after, before, describe, test } from "node:test";
+
+import { fixturePage, launch, settle } from "./support.mjs";
+
+let browser;
+before(async () => { browser = await launch(); });
+after(async () => { await browser?.close(); });
+
+const THEMES = ["dark", "light"];
+const DESKTOP = { viewport: { width: 1440, height: 900 } };
+const PHONE = { viewport: { width: 390, height: 844 }, hasTouch: true, isMobile: true };
+// The content line is the wrapper's padding: 24 from its start edge.
+const LINE = 24;
+const BASE = "body { margin: 0; background: var(--basalt-surface-page); color: var(--basalt-text-primary); font-family: var(--basalt-font-family-sans); }";
+
+const open = async (jsx, { theme = "light", dir = "ltr", ...options } = {}) => {
+ const { page, errors } = await fixturePage(browser, `document.documentElement.dir = ${JSON.stringify(dir)}; createRoot(document.getElementById("root")).render(${jsx});`, { theme, ...options });
+ if (options.isMobile) {
+ await page.evaluate(() => { const m = document.createElement("meta"); m.name = "viewport"; m.content = "width=device-width, initial-scale=1"; document.head.append(m); });
+ await page.waitForFunction((w) => window.innerWidth === w, options.viewport.width);
+ }
+ await page.addStyleTag({ content: BASE });
+ await page.evaluate(() => document.fonts.ready);
+ await settle(page);
+ return { page, errors };
+};
+
+const wrap = (inner, style = `padding: "0 ${LINE}px"`) => `
${inner}
`;
+const TABS = (size = "", tabs = `OverviewActivitySettings`) =>
+ `${tabs}OneTwoThree`;
+const LINKS = (size = "", names = ["Everything", "Protein", "Creatine", "Pre-workout"]) =>
+ `${names.map((n, i) => `${n}`).join("")}`;
+
+/** A tab's box, its content's box (a range over its children: label, icon, count) and the indicator's box, in px from the viewport's start edge in the page's direction. */
+const tabGeometry = (page, selector) => page.evaluate((selector) => {
+ const rtl = getComputedStyle(document.documentElement).direction === "rtl";
+ const w = document.documentElement.clientWidth;
+ const edge = (r) => (rtl ? { start: w - r.right, end: w - r.left } : { start: r.left, end: r.right });
+ const tab = document.querySelector(selector);
+ const range = document.createRange(); range.setStartBefore(tab.firstChild); range.setEndAfter(tab.lastChild);
+ const indicator = document.querySelector(".basalt-tabs-indicator");
+ return { box: edge(tab.getBoundingClientRect()), content: edge(range.getBoundingClientRect()), line: indicator ? edge(indicator.getBoundingClientRect()) : null };
+}, selector);
+const near = (a, b, label, within = 0.5) => assert.ok(Math.abs(a - b) <= within, `${label}: ${a} against ${b}`);
+const PAD = { "": 8, "3xl": 10, "5xl": 10 };
+
+describe("Tabs: the hang and the line (DECISIONS 358)", () => {
+ for (const theme of THEMES) for (const dir of ["ltr", "rtl"]) for (const size of ["", "3xl", "5xl"]) {
+ test(`the first label is on the content line, its box hangs by the padding, the line is the content's width (${size || "lg"}, ${dir}, ${theme})`, async () => {
+ const { page, errors } = await open(wrap(TABS(size)), { theme, dir, ...DESKTOP });
+ const g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ near(g.content.start, LINE, "the first label's start");
+ near(g.box.start, LINE - PAD[size], "the first box's start");
+ near(g.line.start, g.content.start, "the line starts with the content");
+ near(g.line.end, g.content.end, "the line ends with the content");
+ // The divider is the list's ::before, from the hang: it starts on the content line and ends at the box's end.
+ const divider = await page.evaluate(() => { const l = document.querySelector(".basalt-tabs-list"); const s = getComputedStyle(l, "::before"); return { content: s.content, height: s.height, start: s.insetInlineStart, end: s.insetInlineEnd, shadow: getComputedStyle(l).boxShadow }; });
+ assert.deepEqual(divider, { content: '""', height: "1px", start: `${PAD[size]}px`, end: "0px", shadow: "none" });
+ const list = await page.evaluate(() => { const l = document.querySelector(".basalt-tabs-list").getBoundingClientRect(); const b = document.getElementById("box").getBoundingClientRect(); return [l.left, l.right, b.left, b.right]; });
+ if (dir === "ltr") { near(list[0] + PAD[size], list[2] + LINE, "the divider starts on the line"); near(list[1], list[3] - LINE, "and ends at the content's end"); }
+ else { near(list[1] - PAD[size], list[3] - LINE, "the divider starts on the line"); near(list[0], list[2] + LINE, "and ends at the content's end"); }
+ assert.deepEqual(errors, []);
+ await page.close();
+ });
+ }
+
+ test("choosing another tab slides the line to that tab's content, and nothing moves", async () => {
+ const { page } = await open(wrap(TABS()), DESKTOP);
+ const boxes = () => page.evaluate(() => [...document.querySelectorAll("[role=tab]")].map((t) => { const r = t.getBoundingClientRect(); return [r.left, r.width]; }));
+ const before = await boxes();
+ const transition = await page.evaluate(() => { const s = getComputedStyle(document.querySelector(".basalt-tabs-indicator")); return [s.transitionProperty, s.transitionDuration]; });
+ assert.equal(transition[0], "left, width", "it still slides");
+ await page.getByRole("tab", { name: "Activity" }).click();
+ await settle(page);
+ const g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ near(g.line.start, g.content.start, "the line starts with the second tab's content");
+ near(g.line.end, g.content.end, "and ends with it");
+ assert.deepEqual(await boxes(), before);
+ await page.close();
+ });
+
+ test("the line spans an icon, the label and a count, never the padding", async () => {
+ const { page } = await open(wrap(TABS("", `Inbox12DraftsSent`)), DESKTOP);
+ const g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ const ends = await page.evaluate(() => { const t = document.querySelector("[role=tab][aria-selected=true]"); return [t.querySelector("svg").getBoundingClientRect().left, t.querySelector(".count").getBoundingClientRect().right]; });
+ near(g.line.start, ends[0], "the line starts at the icon");
+ near(g.line.end, ends[1], "and ends after the count");
+ near(g.line.start, LINE, "the icon is on the content line");
+ await page.close();
+ });
+
+ test("on touch a short label drawn 44 wide stays on the line, and the line is the label's width", async () => {
+ const { page } = await open(wrap(TABS("", `ABee`)), PHONE);
+ const g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ assert.ok(g.box.end - g.box.start >= 44, "the tab is 44 wide");
+ near(g.content.start, LINE, "the label is on the line (justify-content: flex-start)");
+ near(g.line.start, g.content.start, "the line starts with the label");
+ near(g.line.end, g.content.end, "and ends with it, not at the box's 44");
+ await page.close();
+ });
+
+ test("the line is measured again when the chosen tab changes size (fonts arriving) and when the direction flips", async () => {
+ const { page } = await open(wrap(TABS()), DESKTOP);
+ await page.evaluate(() => { document.querySelector("[role=tab][aria-selected=true]").style.fontSize = "20px"; });
+ await page.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))));
+ await settle(page);
+ let g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ near(g.line.end, g.content.end, "a wider label: the line ends with it");
+ await page.evaluate(() => { document.documentElement.dir = "rtl"; });
+ await page.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))));
+ await settle(page);
+ g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ near(g.content.start, LINE, "right to left: the label is on the line");
+ near(g.line.start, g.content.start, "and the line starts with it");
+ near(g.line.end, g.content.end, "and ends with it");
+ await page.close();
+ });
+
+ test("vertical tabs and segments are unchanged: no hang, no divider", async () => {
+ const { page } = await open(wrap(`OneTwo12`), DESKTOP);
+ const v = await page.evaluate(() => { const l = document.querySelector(".basalt-tabs-list"); return { margin: getComputedStyle(l).marginInlineStart, before: getComputedStyle(l, "::before").content, x: l.getBoundingClientRect().left }; });
+ assert.deepEqual(v, { margin: "0px", before: "none", x: LINE });
+ await page.close();
+ });
+});
+
+describe("focus at +2 on every horizontal tab and link tab (DECISIONS 358)", () => {
+ for (const theme of THEMES) for (const [name, options] of [["1440", DESKTOP], ["390", PHONE]]) {
+ test(`the first tab's ring is +2 outside its box and keeps 4 clear of a card's rim (${name}, ${theme})`, async () => {
+ // A card's content is 16 in: the ring reaches the hang and its 4 before the line (12 at 36), so 4 is left inside the rim.
+ const { page } = await open(`
${TABS()}
`, { theme, ...options });
+ await page.keyboard.press("Tab");
+ const ring = await page.evaluate(() => {
+ const t = document.activeElement; const s = getComputedStyle(t); const r = t.getBoundingClientRect();
+ const card = t.closest(".basalt-card"); const c = card.getBoundingClientRect(); const rim = parseFloat(getComputedStyle(card).borderLeftWidth) || 0;
+ return { role: t.getAttribute("role"), style: s.outlineStyle, width: s.outlineWidth, offset: s.outlineOffset, room: r.left - 4 - (c.left + rim) };
+ });
+ assert.deepEqual([ring.role, ring.style, ring.width, ring.offset], ["tab", "solid", "2px", "2px"]);
+ assert.ok(ring.room >= 3.9, `4 clear of the rim: ${ring.room}`);
+ await page.close();
+ });
+ }
+
+ test("a box that declares less room narrows the hang, so the ring keeps 4", async () => {
+ // 8 of room: the hang is min(8, 8 - 4) = 4, so the box starts 4 before the line and its ring's outer edge meets the room's edge.
+ const { page } = await open(wrap(TABS(), `padding: "0 8px", "--basalt-edge-room-start": "8px"`), DESKTOP);
+ const g = await tabGeometry(page, "[role=tab][aria-selected=true]");
+ near(g.box.start, 4, "the box hangs by 4");
+ near(g.content.start, 12, "the label is the hang's 4 past the line");
+ const links = await open(wrap(LINKS(), `padding: "0 8px", "--basalt-edge-room-start": "8px"`), DESKTOP);
+ near(await links.page.evaluate(() => document.querySelector(".basalt-link-tab").getBoundingClientRect().left), 4, "a link tab's box hangs by 4 too");
+ await page.close(); await links.page.close();
+ });
+
+ test("a link tab's ring is +2 outside the link", async () => {
+ const { page } = await open(wrap(LINKS()), DESKTOP);
+ await page.keyboard.press("Tab");
+ const ring = await page.evaluate(() => { const s = getComputedStyle(document.activeElement); return [s.outlineStyle, s.outlineWidth, s.outlineOffset]; });
+ assert.deepEqual(ring, ["solid", "2px", "2px"]);
+ await page.close();
+ });
+});
+
+describe("LinkTabs: one anatomy with Tabs (DECISIONS 358)", () => {
+ for (const theme of THEMES) for (const dir of ["ltr", "rtl"]) for (const size of ["", "3xl", "5xl"]) {
+ test(`every link keeps its padding, the first label is on the line, the line is the label's width (${size || "lg"}, ${dir}, ${theme})`, async () => {
+ const { page, errors } = await open(wrap(LINKS(size)), { theme, dir, ...DESKTOP });
+ const g = await page.evaluate(() => {
+ const rtl = getComputedStyle(document.documentElement).direction === "rtl"; const w = document.documentElement.clientWidth;
+ const edge = (r) => (rtl ? { start: w - r.right, end: w - r.left } : { start: r.left, end: r.right });
+ return [...document.querySelectorAll(".basalt-link-tab")].map((a) => ({ box: edge(a.getBoundingClientRect()), label: edge(a.querySelector(".basalt-link-tab-label").getBoundingClientRect()), line: edge(a.querySelector(".basalt-link-tab-line").getBoundingClientRect()), pad: [getComputedStyle(a).paddingInlineStart, getComputedStyle(a).paddingInlineEnd] }));
+ });
+ for (const link of g) assert.deepEqual(link.pad, [`${PAD[size]}px`, `${PAD[size]}px`], "every link has its padding on both sides");
+ near(g[0].label.start, LINE, "the first label is on the content line");
+ near(g[0].box.start, LINE - PAD[size], "its box hangs by the padding");
+ for (const link of g) { near(link.line.start, link.label.start, "the line starts with the label"); near(link.line.end, link.label.end, "and ends with it"); }
+ const divider = await page.evaluate(() => { const u = document.querySelector(".basalt-link-tabs > ul"); const s = getComputedStyle(u, "::before"); return { start: s.insetInlineStart, end: s.insetInlineEnd, height: s.height, shadow: getComputedStyle(u).boxShadow }; });
+ assert.deepEqual(divider, { start: `${PAD[size]}px`, end: "0px", height: "1px", shadow: "none" });
+ assert.deepEqual(errors, []);
+ await page.close();
+ });
+ }
+
+ test("a wrapped row starts each line's first label on the content line", async () => {
+ const NINE = ["Everything", "Protein", "Creatine", "Pre-workout", "Vitamins & minerals", "Sleep", "Bars", "Mass gainers", "Accessories"];
+ const { page } = await open(wrap(LINKS("3xl", NINE), `padding: "0 24px", width: 420, boxSizing: "border-box"`), DESKTOP);
+ const lines = await page.evaluate(() => {
+ const starts = []; let top = null;
+ for (const a of document.querySelectorAll(".basalt-link-tab")) { const r = a.getBoundingClientRect(); if (r.top !== top) { starts.push(a.querySelector(".basalt-link-tab-label").getBoundingClientRect().left); top = r.top; } }
+ return starts;
+ });
+ assert.ok(lines.length >= 2, `the row wraps: ${lines.length} lines`);
+ for (const x of lines) near(x, LINE, "a line's first label");
+ await page.close();
+ });
+
+ test("at 390 the row is still the Select: nothing changes there", async () => {
+ const { page } = await open(wrap(LINKS()), PHONE);
+ assert.deepEqual(await page.evaluate(() => [getComputedStyle(document.querySelector(".basalt-link-tabs > ul")).display, getComputedStyle(document.querySelector(".basalt-link-tabs-select")).display]), ["none", "block"]);
+ await page.close();
+ });
+});
diff --git a/tools/html-skill/src/examples/interactive.body.html b/tools/html-skill/src/examples/interactive.body.html
index a946be7..272f375 100644
--- a/tools/html-skill/src/examples/interactive.body.html
+++ b/tools/html-skill/src/examples/interactive.body.html
@@ -63,10 +63,12 @@
Egress cost planner
-
-
-
-
+
+
+
+
+
+
diff --git a/tools/html-skill/src/modules.json b/tools/html-skill/src/modules.json
index 65b09d0..c845bcf 100644
--- a/tools/html-skill/src/modules.json
+++ b/tools/html-skill/src/modules.json
@@ -1,5 +1,5 @@
{
- "$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). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Raised in batch A of the diagrams backlog (DECISIONS 301): diagram 91250 to 92400, for the engine fixes it bundles (a decision kept no taller than it is wide, labels on whole pixels, slots beside a straight line, a one-column schema's turn-back); the skill keeps the development checks a production React build now drops. Raised again in that batch's review fixes: diagram 92400 to 92650, for the drawn layout refusing two lines laid on one another (Neon's blocking finding 1 on #126). Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused). DECISIONS 320 (versions and release notes): the release module is new (budget 15900 at first, usage 2400); topbar, app-shell and tab-bar gain the version link's classes (budgets: topbar 17700 to 19900, app-shell 4300 to 5200 with the rail's tooltip for it, tab-bar 4850 to 5200), their usage caps rising 2900 to 3100, 2600 to 2850 and 2250 to 2400 for its one line each; skillMd rose 12650 to 12800 for the release module's line and .version-link in topbar's. The code review of round 68 adds data-focus-self to the popover module (its Tab walk; budget 4950 to 5600, usage cap 950 to 1100) and logical start and end for its alignment; the release module's header grid and the Sources panel's touch rows take it to 16900. The spacing sweep of round 68 (DECISIONS 326: Copy link's words on the edge, the callout's last change, its reference column, the last release, the touch rows' end and the whole code chip) takes the release module to 17400. The ruling on where a release ends (DECISIONS 331: no padding under the last change in a release, a release-ending fold's hang, an arrived change keeping its padding, the panel holding its first margin, Build details 44 on touch and a closed Fixed panel taking no room) takes it to 19000. The code recheck of round 68 (recheck 5) has the popover's Tab walk follow Safari's own rule (Tab skips links on Apple's WebKit, Option-Tab reaches them): popover 5600 to 5900. The pixel recheck of round 68 has the Sources panel's touch rows keep their 20px lines with the link's box as hit area, space-3 rows and space-6 between two linked values (recheck-pixels 4), and the release's whole header take the arrival's plate: release 19000 to 19600. Merging #127 (stages, DECISIONS 316 and 328) into the versioning branch: both had raised skillMd from 12650 to 12800 for their own module's line, and together they came to 12886; SKILL.md was tightened in its wording (no rule dropped) to stay within 12800. Raised in diagram batch B's fix round (DECISIONS 318, the owner's diagram raise; and 326's sweep), each to its measured size: diagram 137700 to 144100 (the two reviews' fixes in the shared engine: right to left frames and self-calls, the corridors' and lanes' development words, the unusable-placement check, the transcript's hanging lines, the text art's frame widening, the frame-side fit check, the sequence's layers, the stacked group's turn room), diagram-motion 28450 to 30450 (the text sequence's build by ink and its colour-only run, moved into the motion module), diagram-zoom 17000 to 17600 (a linked card closes the viewer; the text art's own width; a placed model for the key hint), diagram-export 7850 to 10450 (an export at rest: sized drawing SVGs, no reveal masks, the pseudo-element rules, the lines under the cards, a viewer's figure read at 100% with its head and key, the rim's lit top). Raised at the batch B re-check (the decider's four rulings): diagram 144100 to 145100 (5.1's first list reported as errors apart from the warnings, a turn's label lines on the group entered by it and the seats beside its turn, the bare stack applied, the text art's reset of the core's inline code chip). Merging main (#127 and #128) into diagram batch B: skillMd keeps main's 12800 (batch B had raised it to 12950 for its diagram lines); SKILL.md was tightened in its wording to stay within it, no rule dropped; core takes main's 35550.Raised in the repo review (23 Nov 2026; budgets are soft, the owner's word): notifications 12450 to 12700 (a link is written only when relative, http, https or mailto, and side and align are checked before they reach the markup), combobox 11200 to 11350 (a disabled field's hidden input is disabled too, now and later), tooltip 3200 to 3550 (the gap to the opener is the tooltip's own, and hover and keyboard focus each hold it open; WCAG 1.4.13), chart 34750 to 34800 (the scale's step search and gridlines are bounded, so extreme values cannot hang the page), spinner 650 to 720 (its held rule moved in from loops, so a ring-only page keeps a stored hold), kbd 2900 to 2950, palette 11400 to 11500 (and its usage text 1350 to 1400, for the Mod line) and toast 16050 to 16200 (Mod in a palette item's keys is bound as it is drawn, and a toast action's aria-keyshortcuts resolves Mod). The safe-sinks rule (decided by the owner, Fable, Astra and Muse, 23 Nov 2026): skillMd 12650 to 12900, and 13050 with main's own raise merged in (one line: data goes in as textContent, a link passes Basalt.safeHref, an option comes from a fixed list), core 35400 to 35650, and 35800 with main's own raise merged in, and its usage 2950 to 3200 (one safeHref, published as Basalt.safeHref, and _.pick, in place of a copy in each module; esc escapes the apostrophe), link-tabs 5750 to 5900 (a refused link dispatches no event), diagram 92650 to 93000 (a card's mark is a relative path, https or a data: image). Merging #129 into diagram batch B: diagram keeps batch B's 145100 plus #129's mark check, set to its measure, and batch B's usage 4600. The fix round after both reviews of 421348e8 sets them to the measured sizes again: core 38950 to 39600 (every room says all three forms, and a hung word's box grows by a short room's shortfall), search to 5700 (it places its top again on a resize and with the keyboard; an empty list holds no padding), command-list to 14700 (it keeps the taller of its two heights), notifications to 12950 (the bell's edge), pane to 1950 (the page column's room), chart to 34950 (the date line's reason), and code, diagram-zoom, filter, links, sheet, still-table, tab-bar and topbar each by under 150 bytes (the three forms of a room; the selection column's width however given). Merged with main at db0bc418 (#129 to #131), DECISIONS 336's caps are set to the measured sizes again: core 35800 to 38950 and its usage 3200 to 3650, toast 16200 to 16750, terminal to 12700 (13050 with the open items' ruling: both copy buttons draw their three glyphs once, so a refused copy shows the close with no markup written after), diagram-zoom 17600 to 17750 (its viewer's Close and Zoom out hung, and the foot's room). Raised in DECISIONS 336 (reserved room across every component, claude/reserved-room), each to its measured size: core 35550 to 38700 (the edge rule a ghost .btn hangs by at a head, its ring and touch hit area, the side insets by direction, the .panel-head and page section-head that hang their last button by themselves) and its usage 2950 to 3450 (how data-edge and --basalt-edge-room are written); search 4400 to 5200 (search.js, the held top), terminal 11950 to 12550 (the close glyph for a refused copy, the edge on both copies), links 2750 to 3300 (the first icon link hung, the card room, the 20px glyph), toast 16050 to 16650 (the 46px hit areas on touch), selection 1500 to 1650 and still-table 14650 to 15000 (the 44px select column), command-list 14000 to 14350 (the panel hugs, the room is page), menu 8950 to 9150 (the column every row keeps when any row has a check or a glyph), notifications 12450 to 12600, filter 17500 to 17600, forms 3500 to 3550, sheet 5400 to 5450, topbar-nav 7550 to 7600 and app-shell 5200 to 5250 (logical sides, the edge and the room); topbar's usage 3100 to 3200 (a bar's last ghost control takes data-edge); command-list's usage 2150 to 2300 (the panel hugs; the room is page, and only on the page); dialog-form's usage 1300 to 1350 (its Close is written data-icon-only data-edge=\"end\"). Raised in the polish ruling of 336 (the selection box keeps to the cell's line): selection 1650 to 1750 (the box's start margin, min(space-4, half the spare room): 1710 measured) and its usage 1150 to 1350 (the rule's sentence: 1313 measured). Merging main (#130, #131) into claude/diagram-interop: diagram usage 4600 to 4850 (+5.4%: Batch B's diagram usage plus the basalt-diagram-export rule line, measured 4806), then 4850 to 5050 (noting that .lucid is for Lucid's REST API only and to use .vsdx in Lucid's UI, measured 4999). Raised for right to left (diagrams-rtl): diagram 145450 to 146000 (the stacked figure mirrors, its snap and whole-pixel labels with it; a drawn schema takes its turn-backs, its one-column room and its gutter lanes from the end side); then 146000 to 148000 for Fable's ruling on the stacked group label (the stem gives way, the label slides, the last resort's warning) and the author's strings isolated in ).",
+ "$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). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Raised in batch A of the diagrams backlog (DECISIONS 301): diagram 91250 to 92400, for the engine fixes it bundles (a decision kept no taller than it is wide, labels on whole pixels, slots beside a straight line, a one-column schema's turn-back); the skill keeps the development checks a production React build now drops. Raised again in that batch's review fixes: diagram 92400 to 92650, for the drawn layout refusing two lines laid on one another (Neon's blocking finding 1 on #126). Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused). DECISIONS 320 (versions and release notes): the release module is new (budget 15900 at first, usage 2400); topbar, app-shell and tab-bar gain the version link's classes (budgets: topbar 17700 to 19900, app-shell 4300 to 5200 with the rail's tooltip for it, tab-bar 4850 to 5200), their usage caps rising 2900 to 3100, 2600 to 2850 and 2250 to 2400 for its one line each; skillMd rose 12650 to 12800 for the release module's line and .version-link in topbar's. The code review of round 68 adds data-focus-self to the popover module (its Tab walk; budget 4950 to 5600, usage cap 950 to 1100) and logical start and end for its alignment; the release module's header grid and the Sources panel's touch rows take it to 16900. The spacing sweep of round 68 (DECISIONS 326: Copy link's words on the edge, the callout's last change, its reference column, the last release, the touch rows' end and the whole code chip) takes the release module to 17400. The ruling on where a release ends (DECISIONS 331: no padding under the last change in a release, a release-ending fold's hang, an arrived change keeping its padding, the panel holding its first margin, Build details 44 on touch and a closed Fixed panel taking no room) takes it to 19000. The code recheck of round 68 (recheck 5) has the popover's Tab walk follow Safari's own rule (Tab skips links on Apple's WebKit, Option-Tab reaches them): popover 5600 to 5900. The pixel recheck of round 68 has the Sources panel's touch rows keep their 20px lines with the link's box as hit area, space-3 rows and space-6 between two linked values (recheck-pixels 4), and the release's whole header take the arrival's plate: release 19000 to 19600. Merging #127 (stages, DECISIONS 316 and 328) into the versioning branch: both had raised skillMd from 12650 to 12800 for their own module's line, and together they came to 12886; SKILL.md was tightened in its wording (no rule dropped) to stay within 12800. Raised in diagram batch B's fix round (DECISIONS 318, the owner's diagram raise; and 326's sweep), each to its measured size: diagram 137700 to 144100 (the two reviews' fixes in the shared engine: right to left frames and self-calls, the corridors' and lanes' development words, the unusable-placement check, the transcript's hanging lines, the text art's frame widening, the frame-side fit check, the sequence's layers, the stacked group's turn room), diagram-motion 28450 to 30450 (the text sequence's build by ink and its colour-only run, moved into the motion module), diagram-zoom 17000 to 17600 (a linked card closes the viewer; the text art's own width; a placed model for the key hint), diagram-export 7850 to 10450 (an export at rest: sized drawing SVGs, no reveal masks, the pseudo-element rules, the lines under the cards, a viewer's figure read at 100% with its head and key, the rim's lit top). Raised at the batch B re-check (the decider's four rulings): diagram 144100 to 145100 (5.1's first list reported as errors apart from the warnings, a turn's label lines on the group entered by it and the seats beside its turn, the bare stack applied, the text art's reset of the core's inline code chip). Merging main (#127 and #128) into diagram batch B: skillMd keeps main's 12800 (batch B had raised it to 12950 for its diagram lines); SKILL.md was tightened in its wording to stay within it, no rule dropped; core takes main's 35550.Raised in the repo review (23 Nov 2026; budgets are soft, the owner's word): notifications 12450 to 12700 (a link is written only when relative, http, https or mailto, and side and align are checked before they reach the markup), combobox 11200 to 11350 (a disabled field's hidden input is disabled too, now and later), tooltip 3200 to 3550 (the gap to the opener is the tooltip's own, and hover and keyboard focus each hold it open; WCAG 1.4.13), chart 34750 to 34800 (the scale's step search and gridlines are bounded, so extreme values cannot hang the page), spinner 650 to 720 (its held rule moved in from loops, so a ring-only page keeps a stored hold), kbd 2900 to 2950, palette 11400 to 11500 (and its usage text 1350 to 1400, for the Mod line) and toast 16050 to 16200 (Mod in a palette item's keys is bound as it is drawn, and a toast action's aria-keyshortcuts resolves Mod). The safe-sinks rule (decided by the owner, Fable, Astra and Muse, 23 Nov 2026): skillMd 12650 to 12900, and 13050 with main's own raise merged in (one line: data goes in as textContent, a link passes Basalt.safeHref, an option comes from a fixed list), core 35400 to 35650, and 35800 with main's own raise merged in, and its usage 2950 to 3200 (one safeHref, published as Basalt.safeHref, and _.pick, in place of a copy in each module; esc escapes the apostrophe), link-tabs 5750 to 5900 (a refused link dispatches no event), diagram 92650 to 93000 (a card's mark is a relative path, https or a data: image). Merging #129 into diagram batch B: diagram keeps batch B's 145100 plus #129's mark check, set to its measure, and batch B's usage 4600. The fix round after both reviews of 421348e8 sets them to the measured sizes again: core 38950 to 39600 (every room says all three forms, and a hung word's box grows by a short room's shortfall), search to 5700 (it places its top again on a resize and with the keyboard; an empty list holds no padding), command-list to 14700 (it keeps the taller of its two heights), notifications to 12950 (the bell's edge), pane to 1950 (the page column's room), chart to 34950 (the date line's reason), and code, diagram-zoom, filter, links, sheet, still-table, tab-bar and topbar each by under 150 bytes (the three forms of a room; the selection column's width however given). Merged with main at db0bc418 (#129 to #131), DECISIONS 336's caps are set to the measured sizes again: core 35800 to 38950 and its usage 3200 to 3650, toast 16200 to 16750, terminal to 12700 (13050 with the open items' ruling: both copy buttons draw their three glyphs once, so a refused copy shows the close with no markup written after), diagram-zoom 17600 to 17750 (its viewer's Close and Zoom out hung, and the foot's room). Raised in DECISIONS 336 (reserved room across every component, claude/reserved-room), each to its measured size: core 35550 to 38700 (the edge rule a ghost .btn hangs by at a head, its ring and touch hit area, the side insets by direction, the .panel-head and page section-head that hang their last button by themselves) and its usage 2950 to 3450 (how data-edge and --basalt-edge-room are written); search 4400 to 5200 (search.js, the held top), terminal 11950 to 12550 (the close glyph for a refused copy, the edge on both copies), links 2750 to 3300 (the first icon link hung, the card room, the 20px glyph), toast 16050 to 16650 (the 46px hit areas on touch), selection 1500 to 1650 and still-table 14650 to 15000 (the 44px select column), command-list 14000 to 14350 (the panel hugs, the room is page), menu 8950 to 9150 (the column every row keeps when any row has a check or a glyph), notifications 12450 to 12600, filter 17500 to 17600, forms 3500 to 3550, sheet 5400 to 5450, topbar-nav 7550 to 7600 and app-shell 5200 to 5250 (logical sides, the edge and the room); topbar's usage 3100 to 3200 (a bar's last ghost control takes data-edge); command-list's usage 2150 to 2300 (the panel hugs; the room is page, and only on the page); dialog-form's usage 1300 to 1350 (its Close is written data-icon-only data-edge=\"end\"). Raised in the polish ruling of 336 (the selection box keeps to the cell's line): selection 1650 to 1750 (the box's start margin, min(space-4, half the spare room): 1710 measured) and its usage 1150 to 1350 (the rule's sentence: 1313 measured). Merging main (#130, #131) into claude/diagram-interop: diagram usage 4600 to 4850 (+5.4%: Batch B's diagram usage plus the basalt-diagram-export rule line, measured 4806), then 4850 to 5050 (noting that .lucid is for Lucid's REST API only and to use .vsdx in Lucid's UI, measured 4999). Raised for right to left (diagrams-rtl): diagram 145450 to 146000 (the stacked figure mirrors, its snap and whole-pixel labels with it; a drawn schema takes its turn-backs, its one-column room and its gutter lanes from the end side); then 146000 to 148000 for Fable's ruling on the stacked group label (the stem gives way, the label slides, the last resort's warning) and the author's strings isolated in ). Raised in the first tab (DECISIONS 358): tabs 3700 to 4600 (the scrollport and its hang, the divider as ::before, the underline's inset, the scroll margin, and the script that wraps the row and brings a focused tab into view: 4524 measured), link-tabs 5900 to 6350 (the hang and the divider as ::before: 6276 measured), tabs usage 750 to 1150 (the .tabs-scroll wrapper in the markup and the sentence on the scrollport, the hang and the underline: 1111 measured) and link-tabs usage 2550 to 2750 (the hang and the underline's width: 2702 measured).",
"budgets": {
"skillMd": 13050,
"core": 39600
@@ -280,6 +280,7 @@
},
"tabs": {
"classes": [
+ "tabs-scroll",
"tabs",
"tab",
"tabpanel"
@@ -290,8 +291,8 @@
"text": [
"role\\s*=\\s*[\"']?tab(?:list|panel)?\\b"
],
- "budget": 3700,
- "usage": 750,
+ "budget": 4600,
+ "usage": 1150,
"textWords": [
"role=\"tab\", role=\"tablist\" or role=\"tabpanel\""
]
@@ -304,8 +305,8 @@
"link-tabs-select",
"link-tabs-select-label"
],
- "budget": 5900,
- "usage": 2550,
+ "budget": 6350,
+ "usage": 2750,
"requires": [
"select"
]
diff --git a/tools/html-skill/src/modules/link-tabs.css b/tools/html-skill/src/modules/link-tabs.css
index cb97392..3090ab2 100644
--- a/tools/html-skill/src/modules/link-tabs.css
+++ b/tools/html-skill/src/modules/link-tabs.css
@@ -1,11 +1,20 @@
@layer basalt {
/* ---- Link tabs (React's LinkTabs, DECISIONS 154, D12): a nav of links on a hairline ----
- The current link is its label at 600 in primary ink (400 in secondary at rest, each label reserving its 600 width) with a 2px underline that does not slide, a real element (Highlight in forced colours); focus is the control ring at +2
+ The current link is its label at 600 in primary ink (400 in secondary at rest, each label reserving its 600 width) with a 2px underline as wide as its content that does not slide, a real element (Highlight in forced colours); focus is the control ring at +2
outside the link, never an inset outline. 36, 48 or 56 tall (data-size on the nav; 56 steps to 48 in a container under 640), 16px text from 48, 24px
- between two labels, and the first link has no padding at its start. The row wraps and does not scroll. Not a tablist: every link is a tab stop. Under 720 the row is a select (below). */
+ between two labels, and every link keeps its padding on both sides. The row hangs as the tabs' does (DECISIONS 358): each line's first label sits on the content line and every link's box
+ hangs into the padding by its own padding (--_px), narrowed only where a box declares less room than that and the ring's 4; the divider starts on the content line.
+ The row wraps and does not scroll. Not a tablist: every link is a tab stop. Under 720 the row is a select (below). */
.link-tabs { margin: 0; padding: 0; }
- .link-tabs > ul { display: flex; flex-wrap: wrap; gap: 0 var(--basalt-space-1); margin: 0; padding: 0; list-style: none; box-shadow: inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider); }
+ .link-tabs > ul {
+ --_px: var(--basalt-space-2);
+ --_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));
+ --_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)));
+ position: relative; display: flex; flex-wrap: wrap; gap: 0 var(--basalt-space-1); margin: 0; margin-inline-start: calc(-1 * var(--_hang)); padding: 0; list-style: none;
+ }
+ .link-tabs > ul::before { content: ""; position: absolute; inset-inline: var(--_hang) 0; bottom: 0; height: var(--basalt-size-hairline); background: var(--basalt-border-divider); pointer-events: none; }
+ .link-tabs:is([data-size="3xl"], [data-size="5xl"]) > ul { --_px: var(--basalt-space-2-5); }
.link-tab {
--_h: var(--basalt-size-control-lg);
position: relative;
@@ -28,8 +37,7 @@
@container (width < %bp-container-lg%) {
.link-tabs[data-size="5xl"] .link-tab { --_h: var(--basalt-size-control-3xl); }
}
- .link-tabs > ul > li:first-child > .link-tab { padding-inline-start: 0; }
- .link-tab-line { position: absolute; inset-inline: 0; bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); opacity: 0; pointer-events: none; }
+ .link-tab-line { position: absolute; inset-inline: var(--_px); bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); opacity: 0; pointer-events: none; }
.link-tab[aria-current] { color: var(--basalt-text-primary); }
/* The current link's label is 600 against 400 at rest and every label reserves its 600 width, as a tab's does (decisions 138 and 149): the script draws the label (the span before
the underline) through reserve(), so the 600 is on the label and no link's box moves. With the script off, or on a label it left alone, the current link is 600 itself unless data-bare. */
diff --git a/tools/html-skill/src/modules/tabs.css b/tools/html-skill/src/modules/tabs.css
index fd6a88c..1df5a66 100644
--- a/tools/html-skill/src/modules/tabs.css
+++ b/tools/html-skill/src/modules/tabs.css
@@ -3,8 +3,21 @@
/* ---- Tabs: a divider with a 2px underline under the selected tab (horizontal, not the vertical bar the owner ruled out). An icon in a tab sits on the
label's centre line, 6px before it, as it does in a button. ---- */
- .tabs { display: flex; gap: var(--basalt-space-1); overflow-x: auto; box-shadow: inset 0 calc(-1 * var(--basalt-size-hairline)) 0 var(--basalt-border-divider); }
- .tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--basalt-space-1-5); flex: none; height: var(--basalt-size-control-lg); padding: 0 var(--basalt-space-2); margin: 0; border: 0; border-radius: var(--basalt-radius-md) var(--basalt-radius-md) 0 0; background: transparent; color: var(--basalt-text-secondary); font: var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / normal var(--basalt-font-family-sans); cursor: pointer; transition: color var(--basalt-duration-fast) var(--basalt-ease-out); }
+ /* The row hangs as a ghost control at an edge does, as React's does (DECISIONS 358): the first label sits on the content line and every tab's box hangs
+ into the padding by its own inline padding (--_px), narrowed only where a box declares less room than that padding and the ring's 4 (--_room). The
+ scrollport (.tabs-scroll, which the script adds when a page left it out) has the ring's 4 of padding on every side, given back by its margins, so the
+ layout does not change and a focused tab's ring at +2 is never cut. The divider starts on the content line and sits at the tabs' foot. */
+ :is(.tabs-scroll, .tabs) {
+ --_px: var(--basalt-space-2);
+ --_room: calc(var(--basalt-size-focus-width) + var(--basalt-size-focus-offset));
+ --_hang: min(var(--_px), calc(var(--basalt-edge-room-start, calc(var(--_px) + var(--_room))) - var(--_room)));
+ }
+ .tabs-scroll { overflow-x: auto; padding: var(--_room); margin: calc(-1 * var(--_room)); margin-inline-start: calc(-1 * (var(--_hang) + var(--_room))); }
+ .tabs { position: relative; display: flex; gap: var(--basalt-space-1); width: max-content; min-width: 100%; box-sizing: border-box; }
+ .tabs::before { content: ""; position: absolute; inset-inline: var(--_hang) 0; bottom: 0; height: var(--basalt-size-hairline); background: var(--basalt-border-divider); pointer-events: none; }
+ /* A tab brought into view (the script's focusin reveal) keeps the ring's 4 clear, and a hairline more: a scroll offset lands on a whole pixel and a tab's
+ edge does not. The content starts at the tab's start. */
+ .tab { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--basalt-space-1-5); flex: none; height: var(--basalt-size-control-lg); padding: 0 var(--basalt-space-2); margin: 0; scroll-margin-inline: calc(var(--_room) + var(--basalt-size-hairline)); border: 0; border-radius: var(--basalt-radius-md) var(--basalt-radius-md) 0 0; background: transparent; color: var(--basalt-text-secondary); font: var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / normal var(--basalt-font-family-sans); cursor: pointer; transition: color var(--basalt-duration-fast) var(--basalt-ease-out); }
/* The selected tab is its label at 600 in primary ink (400 in secondary at rest), each reserving the 600's width (see segment), with the underline. */
.tab[aria-selected="true"] { color: var(--basalt-text-primary); }
/* The 600 is on the label, not on the tab (decision 149): words the script did not reserve keep their weight and move nothing. */
@@ -14,7 +27,8 @@
.tab :is(span, a, b, i, em, strong, small, mark, code, abbr):not([data-pair]):has(> svg, > [data-pair]) { display: inline-flex; align-items: center; gap: var(--basalt-space-1-5); }
.tab [data-label] { display: inline-flex; flex-direction: column; align-items: flex-start; }
.tab [data-label]::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: var(--basalt-font-weight-semibold); user-select: none; pointer-events: none; }
- .tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); }
+ /* The underline is as wide as the tab's content, never its padding (DECISIONS 358). */
+ .tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: var(--_px); bottom: 0; height: var(--basalt-size-indicator); background: var(--basalt-text-primary); }
@media (hover: hover) { .tab:hover { color: var(--basalt-text-primary); } }
@media (pointer: coarse), (width < %bp-md%) { .tab { height: var(--basalt-size-tap-min); } }
/* A label that is not plain text is drawn twice in one box, the second copy at 600, unseen (aria-hidden, inert): the box is the content's width at 600. */
@@ -27,9 +41,9 @@
.tab [data-pair] > :last-child { opacity: 0; }
.tab[aria-selected="true"] [data-pair] > :first-child { opacity: 0; }
.tab[aria-selected="true"] [data-pair] > :last-child { opacity: 1; }
- /* A ring that sits inside a scrolling parent is drawn inset, so all four sides show. React's tab ring is +2 outside; the council split 2-2
- on this (DECISIONS 69) and kept both, because the skill's tab row scrolls and an outside ring would be clipped on three sides. */
- .tab:focus-visible, .code-body:focus-visible { outline-offset: calc(-1 * var(--basalt-size-focus-width)); }
+ /* A tab's ring is the control ring at +2 outside the tab, as React's (DECISIONS 358, which ends DECISIONS 69's inset tab ring): the scrollport keeps
+ the ring's room on every side. The code body's ring sits inside its scrolling block, so it is drawn inset and all four sides show. */
+ .code-body:focus-visible { outline-offset: calc(-1 * var(--basalt-size-focus-width)); }
/* The panel adds no space above its content, as React's TabsPanel (the page sets the space). */
.tabpanel { padding-top: 0; }
diff --git a/tools/html-skill/src/modules/tabs.js b/tools/html-skill/src/modules/tabs.js
index eac386a..9964351 100644
--- a/tools/html-skill/src/modules/tabs.js
+++ b/tools/html-skill/src/modules/tabs.js
@@ -1,4 +1,5 @@
-/* Basalt HTML script, tabs module: [data-tabs] with arrow keys, Home and End. */
+/* Basalt HTML script, tabs module: [data-tabs] with arrow keys, Home and End. A .tabs row is wrapped in its scrollport (.tabs-scroll) when the page left
+ it out, and a focused tab is brought fully into view with its ring (DECISIONS 358). */
(function (B) {
'use strict';
var _ = B._;
@@ -9,6 +10,19 @@
root.__bh = true;
var list = root.querySelector('[role="tablist"]');
if (!list) return;
+ // The row scrolls in its own scrollport, whose padding keeps the ring's room on every side: a page that wrote the row alone gets one.
+ if (list.classList.contains('tabs') && !(list.parentElement && list.parentElement.classList.contains('tabs-scroll'))) {
+ var scroll = document.createElement('div');
+ scroll.className = 'tabs-scroll';
+ list.parentNode.insertBefore(scroll, list);
+ scroll.appendChild(list);
+ }
+ // The browser's own scroll on focus moves only a tab that is wholly out of view, and centres it: a partly cut tab stays cut. So the keys focus
+ // without it, and one listener brings any tab that takes focus (the arrows, Home, End, Tab into the row, a click on a cut tab) into view by the
+ // nearest way, its scroll-margin-inline (the ring's 4 and a hairline) kept clear.
+ list.addEventListener('focusin', function (e) {
+ if (e.target.getAttribute('role') === 'tab') e.target.scrollIntoView({ block: 'nearest', inline: 'nearest' });
+ });
var tabs = Array.prototype.slice.call(list.querySelectorAll('[role="tab"]'));
var panelOf = function (tab) { return document.getElementById(tab.getAttribute('aria-controls')); };
var select = function (tab, focus) {
@@ -19,7 +33,7 @@
var panel = panelOf(t);
if (panel) { panel.hidden = !on; panel.tabIndex = 0; panel.setAttribute('role', 'tabpanel'); }
});
- if (focus) tab.focus();
+ if (focus) tab.focus({ preventScroll: true });
};
tabs.forEach(function (tab) {
tab.type = 'button';
diff --git a/tools/html-skill/src/usage/link-tabs.md b/tools/html-skill/src/usage/link-tabs.md
index fda4b13..bf110b4 100644
--- a/tools/html-skill/src/usage/link-tabs.md
+++ b/tools/html-skill/src/usage/link-tabs.md
@@ -22,3 +22,4 @@ Tabs that are links: a `nav` of links on a hairline, one current, and under 720
- The select navigates at once and says so first: "Go to" is drawn before the current page's name (the text of `.link-tabs-select-label`; replace it there, and in the `aria-label`, which the script then keeps as those words and the chosen page's name). Only a choice from the open list navigates; a key on the closed select (a letter, an arrow, Home, End, a Page key) is held: the value goes back to the current page.
- A choice navigates to its `href`. A page that routes itself listens for `linktabsnavigate` (`detail.href`) and calls `preventDefault()`: focus then stays on the select. Otherwise a new page loads and focus starts over there.
- `data-size` is `3xl` (48) or `5xl` (56); none is 36. The row wraps and never scrolls. A 56 row is 48 in a container narrower than 640.
+- Each line's first label is on the content line and the links' boxes hang into the padding: leave 12 at the box's start (14 from `3xl`). The underline is as wide as the label.
diff --git a/tools/html-skill/src/usage/tabs.md b/tools/html-skill/src/usage/tabs.md
index 35552b0..a077786 100644
--- a/tools/html-skill/src/usage/tabs.md
+++ b/tools/html-skill/src/usage/tabs.md
@@ -2,11 +2,15 @@
```
-
-
+
+
+
+
…
```
Every tab has `aria-controls`, every panel `aria-labelledby`. The panel adds no space under the tab bar; set it as above. The script selects a tab on click, and hides the unselected panels when it starts; write `hidden` on them too so the page reads right before it runs. The selected tab keeps its underline, and its label is 600 against 400 for the rest (the script reserves the width). Tabs don't slide their indicator in static files.
+
+`.tabs-scroll` is the row's scrollport: it keeps the focus ring's room, so the ring is outside the tab and a focused tab scrolls fully into view. The script adds it if missing. The first label is on the content line and each tab's box hangs into the padding: leave 12 at the box's start. The underline is as wide as the tab's content.
diff --git a/tools/html-skill/test/first-tab.test.mjs b/tools/html-skill/test/first-tab.test.mjs
new file mode 100644
index 0000000..0f0c760
--- /dev/null
+++ b/tools/html-skill/test/first-tab.test.mjs
@@ -0,0 +1,191 @@
+// The first tab (DECISIONS 358) in the skill: tabs and link tabs are one anatomy with React's. The first label sits on the content line and every tab's box
+// hangs into the padding by its own padding; the divider starts on the line; the chosen line is as wide as the content. A tab's ring is +2 outside (DECISIONS
+// 69's inset ring ends): the row scrolls in `.tabs-scroll`, whose padding keeps the ring's 4 on every side, and a tab that takes focus is brought fully into
+// view by a focusin listener (`scrollIntoView`, nearest) with `scroll-margin-inline` of 4 and a hairline. The walk below uses the keys alone, in Chromium and
+// WebKit, at 1440 and 390, in both directions and both themes. Written in the round and not run (DECISIONS 330 and 359).
+import assert from "node:assert/strict";
+import { after, before, describe, test } from "node:test";
+
+import { webkit } from "playwright";
+
+import { compose } from "../../../.agent/skills/basalt-html/compose.mjs";
+import { launch, openHtml } from "./support.mjs";
+
+let browser;
+before(async () => { browser = await launch(); });
+after(async () => { await browser?.close(); });
+
+const THEMES = ["dark", "light"];
+const LINE = 24;
+const page = (body) => compose(body).html;
+const frames = (p) => p.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))));
+
+const NAMES = ["Overview", "Activity", "Settings", "Permissions", "Billing", "Audit log", "Webhooks", "Integrations", "Domains", "Environment", "Logs", "Usage", "Members", "Security", "Storage", "Analytics"];
+const row = (id, names, { scroll = true } = {}) => {
+ const tabs = names.map((t, i) => ``).join("");
+ const panels = names.map((t, i) => `
${t}
`).join("");
+ const list = `
${tabs}
`;
+ return `
${scroll ? `
${list}
` : list}${panels}
`;
+};
+const LINKS = (size = "", names = ["Everything", "Protein", "Creatine", "Pre-workout"]) => ``;
+const near = (a, b, label, within = 0.5) => assert.ok(Math.abs(a - b) <= within, `${label}: ${a} against ${b}`);
+
+/** Boxes in px from the viewport's start edge in the page's direction. */
+const geometry = (p) => p.evaluate(() => {
+ const rtl = getComputedStyle(document.querySelector("[data-tabs]")).direction === "rtl"; const w = document.documentElement.clientWidth;
+ const edge = (r) => (rtl ? { start: w - r.right, end: w - r.left } : { start: r.left, end: r.right });
+ const tab = document.querySelector('.tab[aria-selected="true"]');
+ const range = document.createRange(); range.setStartBefore(tab.firstChild); range.setEndAfter(tab.lastChild);
+ const after = getComputedStyle(tab, "::after"); const before = getComputedStyle(document.querySelector(".tabs"), "::before");
+ return { box: edge(tab.getBoundingClientRect()), content: edge(range.getBoundingClientRect()), line: [after.insetInlineStart, after.insetInlineEnd, after.height], divider: [before.insetInlineStart, before.insetInlineEnd, before.height], tabs: edge(document.querySelector(".tabs").getBoundingClientRect()), shadow: getComputedStyle(document.querySelector(".tabs")).boxShadow };
+});
+
+describe("tabs: the hang, the line and the scrollport (DECISIONS 358)", () => {
+ for (const theme of THEMES) for (const width of [1440, 390]) for (const dir of ["ltr", "rtl"]) {
+ test(`the first label is on the content line, the box hangs by 8, the line and the divider start on the line (${width}, ${dir}, ${theme})`, async () => {
+ const { page: p, context, errors } = await openHtml(browser, page(`
${row("r", NAMES.slice(0, 3))}
`), { scheme: theme, width });
+ const g = await geometry(p);
+ near(g.content.start, LINE, "the first label's start");
+ near(g.box.start, LINE - 8, "the first box's start");
+ assert.deepEqual(g.line, ["8px", "8px", "2px"], "the chosen line is inset by the tab's padding: the content's width");
+ assert.deepEqual(g.divider, ["8px", "0px", "1px"], "the divider starts on the content line and ends at the box's end");
+ near(g.tabs.start, LINE - 8, "the row hangs by the padding");
+ assert.equal(g.shadow, "none", "the divider is no longer the row's inset shadow");
+ assert.deepEqual(errors, []);
+ await context.close();
+ });
+ }
+
+ test("the scrollport gives back its padding: the layout is the same with and without it, and the script adds it to a row that lacks it", async () => {
+ const read = async (scroll) => {
+ const { page: p, context } = await openHtml(browser, page(`
Above
${row("r", NAMES.slice(0, 3), { scroll })}
Below
`));
+ const out = await p.evaluate(() => ({ wrapped: document.querySelector(".tabs").parentElement.classList.contains("tabs-scroll"), tab: document.querySelector(".tab").getBoundingClientRect().toJSON(), below: document.getElementById("below").getBoundingClientRect().top, port: getComputedStyle(document.querySelector(".tabs-scroll")).overflowX }));
+ await context.close();
+ return out;
+ };
+ const [written, added] = [await read(true), await read(false)];
+ assert.equal(added.wrapped, true, "the script wrapped the bare row");
+ assert.deepEqual(added, written);
+ assert.equal(written.port, "auto");
+ });
+
+ for (const theme of THEMES) for (const width of [1440, 390]) {
+ test(`a tab's ring is +2 outside, and the first tab's ring keeps 4 clear of a card's rim (${width}, ${theme})`, async () => {
+ const { page: p, context } = await openHtml(browser, page(`
${row("r", NAMES.slice(0, 3))}
`), { scheme: theme, width });
+ await p.locator("#before").focus();
+ await p.keyboard.press("Tab");
+ const ring = await p.evaluate(() => {
+ const t = document.activeElement; const s = getComputedStyle(t); const r = t.getBoundingClientRect();
+ const card = t.closest(".panel"); const c = card.getBoundingClientRect(); const rim = parseFloat(getComputedStyle(card).borderLeftWidth) || 0;
+ const port = t.closest(".tabs-scroll").getBoundingClientRect();
+ return { role: t.getAttribute("role"), ring: [s.outlineStyle, s.outlineWidth, s.outlineOffset], rim: r.left - 4 - (c.left + rim), clip: [r.left - port.left, port.right - r.right, r.top - port.top, port.bottom - r.bottom] };
+ });
+ assert.deepEqual([ring.role, ...ring.ring], ["tab", "solid", "2px", "2px"]);
+ assert.ok(ring.rim >= 3.9, `4 clear of the rim: ${ring.rim}`);
+ for (const gap of ring.clip) assert.ok(gap >= 4, `the scrollport keeps the ring's 4 on every side: ${ring.clip}`);
+ await context.close();
+ });
+ }
+
+ test("a box that declares less room narrows the hang, so the ring keeps 4", async () => {
+ const { page: p, context } = await openHtml(browser, page(`
${row("r", NAMES.slice(0, 3))}
`));
+ const g = await geometry(p);
+ near(g.box.start, 4, "the box hangs by min(8, 8 - 4) = 4");
+ near(g.content.start, 12, "its label is the hang's 4 past the line");
+ await context.close();
+ });
+});
+
+// The keyboard reveal, by the keys alone: no scrollIntoView or scrollLeft from the test, no programmatic focus inside the row. Focus the button above the row,
+// press Tab (the chosen first tab), End, Home, the forward arrow 15 times, the back arrow 15 times, then back once more, which wraps to the last tab. After
+// every key the focused tab is in the row with at least 4 between it and the scrollport's clip on every side (3.9: the last tab at the scroll's end gets 3.94,
+// because the browser rounds the row's scroll width to a whole pixel), and the page never scrolls.
+const walk = async (engine, browserOf, theme, width, dir) => {
+ const { page: p, context } = await openHtml(browserOf, page(`
${row("r", NAMES)}
`), { scheme: theme, width, deviceScaleFactor: 2 });
+ const rtl = dir === "rtl";
+ const [fwd, back] = rtl ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"];
+ const steps = [];
+ const press = async (key, expect) => {
+ await p.keyboard.press(key);
+ await frames(p);
+ steps.push(await p.evaluate(([key, expect]) => {
+ const a = document.activeElement; const port = document.querySelector(".tabs-scroll"); const tabs = [...document.querySelectorAll(".tab")];
+ const pr = port.getBoundingClientRect(), t = a.getBoundingClientRect();
+ return { key, index: tabs.indexOf(a), expect, overflows: port.scrollWidth > port.clientWidth, gaps: [t.left - pr.left, pr.right - t.right, t.top - pr.top, pr.bottom - t.bottom].map((n) => Math.round(n * 100) / 100), page: [scrollX, scrollY] };
+ }, [key, expect]));
+ };
+ await p.locator("#before").focus();
+ await press("Tab", 0);
+ await press("End", NAMES.length - 1);
+ await press("Home", 0);
+ for (let i = 1; i < NAMES.length; i++) await press(fwd, i);
+ for (let i = NAMES.length - 2; i >= 0; i--) await press(back, i);
+ await press(back, NAMES.length - 1);
+ await context.close();
+ const label = `${engine} ${width} ${dir} ${theme}`;
+ assert.ok(steps[0].overflows, `${label}: the 16-tab row overflows`);
+ for (const s of steps) {
+ assert.equal(s.index, s.expect, `${label} ${s.key}: focus is on the tab the key names`);
+ for (const gap of s.gaps) assert.ok(gap >= 3.9, `${label} ${s.key} (tab ${s.index}): the ring's 4 is clear on every side: ${s.gaps}`);
+ assert.deepEqual(s.page, [0, 0], `${label} ${s.key}: the page did not scroll`);
+ }
+};
+
+describe("the keyboard reveal: a focused tab comes fully into view with its ring (DECISIONS 358)", () => {
+ let safari;
+ before(async () => { safari = await webkit.launch(); });
+ after(async () => { await safari?.close(); });
+ for (const theme of THEMES) for (const width of [1440, 390]) for (const dir of ["ltr", "rtl"]) {
+ test(`Chromium, ${width}, ${dir}, ${theme}`, () => walk("chromium", browser, theme, width, dir));
+ test(`WebKit, ${width}, ${dir}, ${theme}`, () => walk("webkit", safari, theme, width, dir));
+ }
+
+ test("a click on a cut tab brings it into view too", async () => {
+ const { page: p, context } = await openHtml(browser, page(`
${row("r", NAMES)}
`), { width: 390 });
+ const cut = await p.evaluate(() => { const port = document.querySelector(".tabs-scroll").getBoundingClientRect(); return [...document.querySelectorAll(".tab")].findIndex((t) => { const r = t.getBoundingClientRect(); return r.left < port.right && r.right > port.right; }); });
+ assert.ok(cut > 0, "a tab is cut by the row's end");
+ await p.locator(".tab").nth(cut).click();
+ await frames(p);
+ const gaps = await p.evaluate((i) => { const port = document.querySelector(".tabs-scroll").getBoundingClientRect(); const r = document.querySelectorAll(".tab")[i].getBoundingClientRect(); return [r.left - port.left, port.right - r.right]; }, cut);
+ for (const gap of gaps) assert.ok(gap >= 3.9, `the clicked tab is fully in view with its ring's room: ${gaps}`);
+ await context.close();
+ });
+});
+
+describe("link tabs: one anatomy with tabs (DECISIONS 358)", () => {
+ for (const theme of THEMES) for (const dir of ["ltr", "rtl"]) for (const [size, pad] of [["", 8], ["3xl", 10], ["5xl", 10]]) {
+ test(`every link keeps its padding, the first label is on the line, the line is the label's width (${size || "lg"}, ${dir}, ${theme})`, async () => {
+ const { page: p, context, errors } = await openHtml(browser, page(`
${LINKS(size)}
`), { scheme: theme, width: 1440 });
+ const g = await p.evaluate(() => {
+ const rtl = getComputedStyle(document.querySelector(".link-tabs")).direction === "rtl"; const w = document.documentElement.clientWidth;
+ const edge = (r) => (rtl ? { start: w - r.right, end: w - r.left } : { start: r.left, end: r.right });
+ const ul = document.querySelector(".link-tabs > ul"); const before = getComputedStyle(ul, "::before");
+ return { links: [...document.querySelectorAll(".link-tab")].map((a) => ({ box: edge(a.getBoundingClientRect()), label: edge(a.querySelector(":scope > :not(.link-tab-line)").getBoundingClientRect()), line: edge(a.querySelector(".link-tab-line").getBoundingClientRect()), pad: [getComputedStyle(a).paddingInlineStart, getComputedStyle(a).paddingInlineEnd] })), divider: [before.insetInlineStart, before.insetInlineEnd, before.height], shadow: getComputedStyle(ul).boxShadow };
+ });
+ for (const link of g.links) assert.deepEqual(link.pad, [`${pad}px`, `${pad}px`]);
+ near(g.links[0].label.start, LINE, "the first label is on the content line");
+ near(g.links[0].box.start, LINE - pad, "its box hangs by the padding");
+ for (const link of g.links) { near(link.line.start, link.label.start, "the line starts with the label"); near(link.line.end, link.label.end, "and ends with it"); }
+ assert.deepEqual(g.divider, [`${pad}px`, "0px", "1px"]);
+ assert.equal(g.shadow, "none");
+ assert.deepEqual(errors, []);
+ await context.close();
+ });
+ }
+
+ test("a wrapped row starts each line's first label on the content line", async () => {
+ const NINE = ["Everything", "Protein", "Creatine", "Pre-workout", "Vitamins & minerals", "Sleep", "Bars", "Mass gainers", "Accessories"];
+ const { page: p, context } = await openHtml(browser, page(`
${LINKS("3xl", NINE)}
`));
+ const starts = await p.evaluate(() => { const out = []; let top = null; for (const a of document.querySelectorAll(".link-tab")) { const r = a.getBoundingClientRect(); if (r.top !== top) { out.push(a.querySelector(":scope > :not(.link-tab-line)").getBoundingClientRect().left); top = r.top; } } return out; });
+ assert.ok(starts.length >= 2, `the row wraps: ${starts.length} lines`);
+ for (const x of starts) near(x, LINE, "a line's first label");
+ await context.close();
+ });
+
+ test("a link tab's ring is +2 outside the link", async () => {
+ const { page: p, context } = await openHtml(browser, page(`
${LINKS()}
`));
+ await p.keyboard.press("Tab");
+ assert.deepEqual(await p.evaluate(() => { const s = getComputedStyle(document.activeElement); return [document.activeElement.className, s.outlineStyle, s.outlineWidth, s.outlineOffset]; }), ["link-tab", "solid", "2px", "2px"]);
+ await context.close();
+ });
+});
diff --git a/tools/html-skill/test/html-skill.test.mjs b/tools/html-skill/test/html-skill.test.mjs
index f3c09f9..855c72e 100644
--- a/tools/html-skill/test/html-skill.test.mjs
+++ b/tools/html-skill/test/html-skill.test.mjs
@@ -591,10 +591,12 @@ describe("code and focus", () => {
const tab = await page.evaluate(() => {
const el = document.activeElement;
const box = el.getBoundingClientRect();
- const clip = el.closest(".tabs").getBoundingClientRect();
- return { role: el.getAttribute("role"), offset: getComputedStyle(el).outlineOffset, inside: box.top >= clip.top && box.bottom <= clip.bottom && box.left >= clip.left && box.right <= clip.right };
+ // The ring is +2 outside the tab (DECISIONS 358); the row's scrollport keeps its 4 clear on every side, so all four sides show.
+ const clip = el.closest(".tabs-scroll").getBoundingClientRect();
+ const room = 4;
+ return { role: el.getAttribute("role"), offset: getComputedStyle(el).outlineOffset, inside: box.top - room >= clip.top && box.bottom + room <= clip.bottom && box.left - room >= clip.left && box.right + room <= clip.right };
});
- assert.deepEqual([tab.role, tab.offset, tab.inside], ["tab", "-2px", true]);
+ assert.deepEqual([tab.role, tab.offset, tab.inside], ["tab", "2px", true]);
await page.keyboard.press("End"); // the JSON tab, where the code is
await page.locator(".code-body").focus();
const code = await page.evaluate(() => {
diff --git a/tools/html-skill/test/parity-2.test.mjs b/tools/html-skill/test/parity-2.test.mjs
index 22e6c1b..e863c49 100644
--- a/tools/html-skill/test/parity-2.test.mjs
+++ b/tools/html-skill/test/parity-2.test.mjs
@@ -351,7 +351,8 @@ describe("a tab's icon", () => {
assert.deepEqual([out.display, out.gap], ["flex", "6px"], "a flex item of the bar, so its computed display is flex");
assert.ok(Math.abs(out.centre[0] - out.centre[1]) < 0.6 && Math.abs(out.centre[2] - out.centre[1]) < 1.6, `centred: ${out.centre}`);
assert.ok(Math.abs(out.gapPx - 6) < 0.6, `6px before the label: ${out.gapPx}`);
- assert.ok(out.under[0] === "2px" && Math.abs(parseFloat(out.under[1]) - out.under[2]) < 0.6, `a 2px underline across the tab: ${out.under}`);
+ // The underline is as wide as the tab's content (the icon and the label), never its padding: the box less 8 on each side (DECISIONS 358).
+ assert.ok(out.under[0] === "2px" && Math.abs(parseFloat(out.under[1]) - (out.under[2] - 16)) < 0.6, `a 2px underline across the tab's content: ${out.under}`);
await context.close();
});
});
diff --git a/tools/html-skill/test/parity-differences.mjs b/tools/html-skill/test/parity-differences.mjs
index d460abc..9883a8e 100644
--- a/tools/html-skill/test/parity-differences.mjs
+++ b/tools/html-skill/test/parity-differences.mjs
@@ -75,11 +75,13 @@
// "lands in" column names the skill's chart module). The lit marks, the headline frame, the trend line, PhaseChart, ShareBar, CoverageStrip, MarksRow and RangeMeter are React-only in this
// batch (so is the short bar plot, `TimeChart`'s `compact`, DECISIONS 160, which the owner chose for vote 10: the skill's chart module draws its own gridlines and gutter, and gets no such form): no skill module draws them yet (2C item 5 of the ballot would add them), so there is no computed style to compare.
+// The first tab (DECISIONS 358): the tab's focus ring, listed since DECISIONS 69 (React +2, the skill's scrolling row −2), is +2 in both now: the skill's row
+// scrolls in a scrollport that keeps the ring's room on every side. It left this list.
+
export const DIFFERENCES = [
{ area: "select popup", pair: "popup", prop: "transformOrigin", react: "160px -6px", skill: "160px 72px", reason: "React's Select popup grows from .98 at the point on the trigger's edge it opened from (Base UI writes --transform-origin from the popup's placement, here the trigger's bottom edge, 6px above the popup). The skill's native popup is a pseudo-element of the select, and CSS can't read where the browser placed it against its anchor, so it scales from its own centre. Same scale, duration and easing (compared above); only the origin differs, which is visible as a slight drift over 200ms.", source: "RECORDED (the lead, on the build's open item 3): keep the centre origin and record why; CSS cannot follow the anchor's placement." },
{ area: "select popup", pair: "lit plate", prop: "backgroundColor", react: "rgba(0, 0, 0, 0)", skill: "color(srgb 0.150612 0.150647 0.150651)", themes: ["dark"], reason: "React's Select glides one shared plate between its rows (Base UI's highlight, the glide plate), so each row's own plate stays transparent while the glide plate paints; the skill's native popup cannot draw a shared plate, so each row paints its own, the menu's fallback. The look is the same: the glide plate's fill is compared with the skill row's plate in the line below the list, with no difference.", source: "RECORDED (council, DECISIONS 56, the native popup where base-select is shipped; DECISIONS 108): no glide in the select's list." },
{ area: "select popup", pair: "lit plate", prop: "backgroundColor", react: "rgba(0, 0, 0, 0)", skill: "oklch(0 0 0 / 0.07)", themes: ["light"], reason: "React's Select glides one shared plate between its rows (Base UI's highlight, the glide plate), so each row's own plate stays transparent while the glide plate paints; the skill's native popup cannot draw a shared plate, so each row paints its own, the menu's fallback. The look is the same: the glide plate's fill is compared with the skill row's plate in the line below the list, with no difference.", source: "RECORDED (council, DECISIONS 56, the native popup where base-select is shipped; DECISIONS 108): no glide in the select's list." },
- { area: "tabs", pair: "focus ring", prop: "outlineOffset", react: "2px", skill: "-2px", reason: "The skill draws a tab's ring inset on purpose, because its tab row scrolls and a ring outside it would be clipped on three sides; React's row doesn't clip.", source: "RULED (council, DECISIONS 69, 2-2 so the tie keeps what is built): React keeps +2 and the skill's scrolling row keeps -2. Not a gap to close; stays listed so the test sees it." },
];
// Thirteenth parity PR (the site parts, DECISIONS 146): the site footer (its box, divider, labels, links, pill, hang and base, at 1440, 900 and 390, with the disclosures), the theme choice