{"$schema":"https:\/\/ui.shadcn.com\/schema\/registry.json","name":"kata-ui","version":"1.1.0","moldVersion":5,"moldInstruction":"moldVersion: 5. Before copying a part, check the tokens.css mold header against requiresMold; update the mold before using newer parts. Unversioned tokens.css is legacy v1.","tokens":{"url":"https:\/\/kata-ui.dev\/tokens.css","moldVersion":5,"note":"Every part reads its colors, spacing, radius and motion from tokens.css. Load it once, before any part CSS."},"homepage":"https:\/\/kata-ui.dev","audit":{"label":"Mold Verified 165 \/ 165 \u00b7 UI 121 \/ 121 \u00b7 Lab 44 \/ 44","url":"https:\/\/kata-ui.dev\/audit\/","updated_at":"2026-11-12","summary":{"passed":165,"failed":0,"total":165,"warnings":81,"findings":{"accessible-label":0,"button-type":0,"focus-visible":0,"js-global-bindings":0,"js-single-instance":0,"legacy-contract":0,"reduced-motion":0,"shared-token-scope":0,"spacing-values":136,"token-values":0,"type-values":119,"variant-hover":0},"by_profile":{"ui":{"passed":121,"failed":0,"total":121},"lab":{"passed":44,"failed":0,"total":44}}}},"items":[{"name":"button","type":"registry:component","title":"Button","description":"Buttons for primary actions, secondary actions and destructive actions, with disabled and loading examples.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/button\/button.css","type":"registry:component","content":"\/* KATA button 1.1.0 \u2014 kata-ui.dev\/components\/button \u2014 requires mold >= 4 *\/\n.btn{--k-btn-gap:var(--k-space-2);--k-btn-weight:500;--k-btn-press:.5px;--k-btn-height-sm:32px;--k-btn-height-md:38px;--k-btn-height-lg:44px;--k-btn-pad-lg:var(--k-space-5);--k-btn-text-lg:var(--k-text-md);--k-btn-disabled-opacity:.45;--k-btn-shadow:var(--k-shadow-xs);--k-btn-inset:var(--k-ring-inset);--k-btn-spinner-size:14px;--k-btn-spinner-border:2px;--k-btn-spinner-track:color-mix(in srgb,currentColor 35%,transparent);--k-btn-spin-duration:700ms;--k-btn-spin-turn:360deg;display:inline-flex;align-items:center;justify-content:center;gap:var(--k-btn-gap);font-weight:var(--k-btn-weight);border-radius:var(--k-radius);cursor:pointer;border:1px solid transparent;font-family:var(--k-font);transition:background-color var(--k-dur-1) var(--k-ease),color var(--k-dur-1) var(--k-ease),box-shadow var(--k-dur-1) var(--k-ease);white-space:nowrap;text-decoration:none;background:none;color:var(--k-ink)}\n.btn:hover:not(:disabled){background:var(--k-bg-soft)}\n.btn:active:not(:disabled){transform:translateY(var(--k-btn-press));background:var(--k-seg)}\n.btn-pri{background:var(--k-ink);color:var(--k-bg)}\n.btn-pri:hover:not(:disabled){background:var(--k-ink-2)}\n.btn-pri:active:not(:disabled){background:var(--k-ink)}\n.btn-sec{background:var(--k-bg);color:var(--k-ink);border-color:var(--k-line);box-shadow:var(--k-btn-shadow)}\n.btn-sec:hover:not(:disabled){background:var(--k-bg-soft)}\n.btn-sec:active:not(:disabled){background:var(--k-seg)}\n.btn-ghost{background:transparent;color:var(--k-ink-2)}\n.btn-ghost:hover:not(:disabled){background:var(--k-bg-soft);color:var(--k-ink)}\n.btn-ghost:active:not(:disabled){background:var(--k-seg);color:var(--k-ink)}\n.btn-danger{background:var(--k-danger);color:var(--k-on-color)}\n.btn-danger:hover:not(:disabled){background:var(--k-danger-bg);color:var(--k-danger-ink)}\n.btn-danger:active:not(:disabled){background:var(--k-danger);color:var(--k-on-color);box-shadow:var(--k-btn-inset)}\n\/* Deprecated: .btn-asagi is retained as an alias for .btn-accent. *\/\n.btn-accent,.btn-asagi{background:var(--k-accent);color:var(--k-on-accent)}\n.btn-accent:hover:not(:disabled),.btn-asagi:hover:not(:disabled){background:var(--k-accent-hover);color:var(--k-on-accent)}\n.btn-accent:active:not(:disabled),.btn-asagi:active:not(:disabled){background:var(--k-accent);box-shadow:var(--k-btn-inset);color:var(--k-on-accent)}\n.btn-sm{height:var(--k-btn-height-sm);padding:0 var(--k-space-3);font-size:var(--k-text-sm);border-radius:var(--k-radius-sm)}\n.btn-md{height:var(--k-btn-height-md);padding:0 var(--k-space-4);font-size:var(--k-text-base)}\n.btn-lg{height:var(--k-btn-height-lg);padding:0 var(--k-btn-pad-lg);font-size:var(--k-btn-text-lg)}\n.btn:focus-visible{outline:none;box-shadow:var(--k-ring)}\n.btn:disabled{opacity:var(--k-btn-disabled-opacity);cursor:not-allowed;transform:none}\n.btn[aria-busy=\"true\"]{cursor:progress}\n.btn .spin{width:var(--k-btn-spinner-size);height:var(--k-btn-spinner-size);flex-shrink:0;border-radius:var(--k-radius-full);border:var(--k-btn-spinner-border) solid var(--k-btn-spinner-track);border-top-color:currentColor;animation:k-rot calc(var(--k-btn-spin-duration) * var(--k-mscale, 1)) linear infinite}\n@keyframes k-rot{to{transform:rotate(var(--k-btn-spin-turn))}}\n@media(prefers-reduced-motion:reduce){.btn{transition:none}.btn .spin{animation:none}}\n"},{"path":"components\/button\/example.html","type":"registry:component","content":"<!-- KATA button 1.1.0 \u2014 kata-ui.dev\/components\/button \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-pri btn-md\">Primary<\/button>\n<button type=\"button\" class=\"btn btn-sec btn-md\">Secondary<\/button>\n<button type=\"button\" class=\"btn btn-ghost btn-md\">Ghost<\/button>\n<button type=\"button\" class=\"btn btn-accent btn-md\">Accent<\/button>\n<button type=\"button\" class=\"btn btn-danger btn-md\">Delete<\/button>\n<button type=\"button\" class=\"btn btn-pri btn-md\" disabled>Disabled<\/button>\n<button type=\"button\" class=\"btn btn-pri btn-md\" disabled aria-busy=\"true\"><span class=\"spin\" aria-hidden=\"true\"><\/span>Saving\u2026<\/button>\n<button type=\"button\" class=\"btn btn-sec btn-sm\">Small<\/button>\n<button type=\"button\" class=\"btn btn-pri btn-lg\">Large<\/button>"}],"meta":{"status":"stable","usage":"One primary action per view. Use Secondary for the alternative, Ghost for tertiary actions, Danger only for destructive ones.","accessibility":"Native buttons with explicit types; no JavaScript. Keyboard focus shows --k-ring (2px gap plus 2px ink ring, measured at 3:1 in light and dark). Primary, Secondary, Ghost, Accent and Danger each have hover, pressed and disabled styles; enabled text measures at least 5.5:1 in every state in both themes (docs\/review\/button). Disabled uses the native disabled attribute; loading examples keep their text and add disabled with aria-busy, and their spinner is aria-hidden and stops with prefers-reduced-motion. btn-asagi is a deprecated alias of btn-accent. Owner-reported VoiceOver pass on iPhone, 2026-11-06, without a transcript (docs\/review\/button\/screen-reader.md); NVDA not tested. IME does not apply because a button takes no text input. Checked in Chromium only; Safari and Firefox are not yet verified."},"audit":{"id":"components\/button","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"button-group","type":"registry:component","title":"Button Group","description":"Buttons joined into one piece: shared edges, one radius, no gaps. For toolbars, paging and split actions.","categories":["Form & Input"],"dependencies":["button"],"files":[{"path":"components\/button-group\/button-group.css","type":"registry:component","content":"\/* KATA button-group 1.1.0 \u2014 kata-ui.dev\/components\/button-group \u2014 requires mold >= 4 *\/\n\/* KATA Button Group \u2014 buttons sharing edges: the group owns the radius\n   and the seams, the Button part owns everything else. *\/\n.k-bgroup{display:inline-flex;font-family:var(--k-font)}\n.k-bgroup .btn{border-radius:0;margin-inline-start:calc(var(--k-space-px) * -1);position:relative}\n.k-bgroup .btn:first-child{border-start-start-radius:var(--k-radius);border-end-start-radius:var(--k-radius);margin-inline-start:0}\n.k-bgroup .btn:last-child{border-start-end-radius:var(--k-radius);border-end-end-radius:var(--k-radius)}\n.k-bgroup .btn:hover,.k-bgroup .btn:focus-visible{z-index:1}\n.k-bgroup.vert{flex-direction:column}\n.k-bgroup.vert .btn{margin-inline-start:0;margin-top:calc(var(--k-space-px) * -1)}\n.k-bgroup.vert .btn:first-child{border-radius:var(--k-radius) var(--k-radius) 0 0;margin-top:0}\n.k-bgroup.vert .btn:last-child{border-radius:0 0 var(--k-radius) var(--k-radius)}\n"},{"path":"components\/button-group\/example.html","type":"registry:component","content":"<!-- KATA button-group 1.1.0 \u2014 kata-ui.dev\/components\/button-group \u2014 requires mold >= 4 -->\n<div style=\"display:flex;flex-direction:column;gap:var(--k-space-3);align-items:flex-start\">\n  <div class=\"k-bgroup\" role=\"group\" aria-label=\"Pager\">\n    <button class=\"btn btn-sec btn-md\" type=\"button\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m15 6-6 6 6 6\"\/><\/svg> Prev<\/button>\n    <button class=\"btn btn-sec btn-md\" type=\"button\">Next <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"k-bgroup\" role=\"group\" aria-label=\"View\">\n    <button class=\"btn btn-sec btn-md\" type=\"button\">Day<\/button>\n    <button class=\"btn btn-pri btn-md\" type=\"button\">Week<\/button>\n    <button class=\"btn btn-sec btn-md\" type=\"button\">Month<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Group one size and one weight at a time \u2014 the group owns the outer radius and the shared borders, the buttons keep their own colors. A split action is a group of two: the action, then the chevron.","accessibility":"Plain buttons in a row; wrap the group in a labelled container (role=\"group\" with an aria-label) when the grouping itself carries meaning, and keep the tab order left to right."},"audit":{"id":"components\/button-group","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"calendar","type":"registry:component","title":"Calendar","description":"One month, standing on its own: a grid of real day buttons with today marked and a selection you can move.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/calendar\/calendar.css","type":"registry:component","content":"\/* KATA calendar 1.1.0 \u2014 kata-ui.dev\/components\/calendar \u2014 requires mold >= 4 *\/\n\/* KATA Calendar \u2014 one month of real buttons. *\/\n.k-cal{font-family:var(--k-font);color:var(--k-ink);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3);width:288px}\n.k-cal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--k-space-2)}\n.k-cal-title{font-size:var(--k-text-md);font-weight:600;letter-spacing:-.01em}\n.k-cal-nav{width:30px;height:30px;border-radius:var(--k-radius-md);border:1px solid var(--k-line);background:var(--k-bg);color:var(--k-ink-2);display:flex;align-items:center;justify-content:center;cursor:pointer}\n.k-cal-nav:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-cal-wd{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:var(--k-space-1)}\n.k-cal-wd span{text-align:center;font-size:var(--k-text-xs);font-weight:600;color:var(--k-ink-3);padding:var(--k-space-1) 0}\n.k-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--k-space-0-5)}\n.k-cal-day{height:34px;border:0;border-radius:var(--k-radius-md);background:none;font-family:inherit;font-size:var(--k-text-base);color:var(--k-ink);cursor:pointer;position:relative}\n.k-cal-day:hover{background:var(--k-bg-soft)}\n.k-cal-day.off{color:var(--k-ink-3);opacity:.55}\n.k-cal-day.today{font-weight:650}\n.k-cal-day.today::after{content:\"\";position:absolute;left:50%;bottom:4px;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--k-core)}\n.k-cal-day.sel{background:var(--k-ink);color:var(--k-bg);font-weight:600}\n.k-cal-day.sel::after{background:var(--k-bg)}\n.k-cal.sm{width:248px;padding:var(--k-space-3)}\n.k-cal.sm .k-cal-day{height:29px;font-size:var(--k-text-sm)}\n"},{"path":"components\/calendar\/calendar.js","type":"registry:component","content":"\/* KATA calendar 1.1.0 \u2014 kata-ui.dev\/components\/calendar \u2014 requires mold >= 4 *\/\n\/\/ KATA Calendar \u2014 renders one month of day buttons; the pick is yours.\n\/\/ Set data-selected=\"YYYY-MM-DD\" to start with a selection. Emits a\n\/\/ \"kata:date\" CustomEvent (detail: \"YYYY-MM-DD\") on the element per pick.\ndocument.querySelectorAll('[data-cal]').forEach(function (el) {\n  var title = el.querySelector('[data-cal-title]');\n  var grid = el.querySelector('[data-cal-grid]');\n  var sel = el.getAttribute('data-selected') || '';\n  var now = new Date();\n  var view = sel ? new Date(sel + 'T00:00:00') : new Date(now.getFullYear(), now.getMonth(), 1);\n  view = new Date(view.getFullYear(), view.getMonth(), 1);\n  var NAMES = ['January','February','March','April','May','June','July','August','September','October','November','December'];\n  var FULL = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];\n  var MON = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];\n  function iso(d) { return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); }\n  function render() {\n    title.textContent = NAMES[view.getMonth()] + ' ' + view.getFullYear();\n    grid.innerHTML = '';\n    var first = new Date(view.getFullYear(), view.getMonth(), 1);\n    var start = new Date(first); start.setDate(1 - first.getDay());\n    for (var i = 0; i < 42; i++) {\n      var d = new Date(start); d.setDate(start.getDate() + i);\n      var b = document.createElement('button');\n      b.type = 'button';\n      b.className = 'k-cal-day' + (d.getMonth() !== view.getMonth() ? ' off' : '') + (iso(d) === iso(now) ? ' today' : '') + (iso(d) === sel ? ' sel' : '');\n      b.textContent = d.getDate();\n      b.setAttribute('aria-label', FULL[d.getDay()] + ', ' + MON[d.getMonth()] + ' ' + d.getDate() + ', ' + d.getFullYear());\n      if (iso(d) === iso(now)) b.setAttribute('aria-current', 'date');\n      b.setAttribute('data-date', iso(d));\n      grid.appendChild(b);\n    }\n  }\n  grid.addEventListener('click', function (e) {\n    var b = e.target.closest('.k-cal-day'); if (!b) return;\n    sel = b.getAttribute('data-date');\n    el.setAttribute('data-selected', sel);\n    el.dispatchEvent(new CustomEvent('kata:date', { detail: sel, bubbles: true }));\n    render();\n  });\n  el.querySelector('[data-cal-prev]').addEventListener('click', function () { view = new Date(view.getFullYear(), view.getMonth() - 1, 1); render(); });\n  el.querySelector('[data-cal-next]').addEventListener('click', function () { view = new Date(view.getFullYear(), view.getMonth() + 1, 1); render(); });\n  render();\n});\n"},{"path":"components\/calendar\/example.html","type":"registry:component","content":"<!-- KATA calendar 1.1.0 \u2014 kata-ui.dev\/components\/calendar \u2014 requires mold >= 4 -->\n<div class=\"k-cal\" data-cal data-selected=\"2026-11-03\">\n  <div class=\"k-cal-h\">\n    <button class=\"k-cal-nav\" type=\"button\" data-cal-prev aria-label=\"Previous month\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m15 6-6 6 6 6\"\/><\/svg><\/button>\n    <span class=\"k-cal-title\" data-cal-title>November 2026<\/span>\n    <button class=\"k-cal-nav\" type=\"button\" data-cal-next aria-label=\"Next month\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"k-cal-wd\" aria-hidden=\"true\"><span>Su<\/span><span>Mo<\/span><span>Tu<\/span><span>We<\/span><span>Th<\/span><span>Fr<\/span><span>Sa<\/span><\/div>\n  <div class=\"k-cal-grid\" data-cal-grid><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-01\" aria-label=\"Sunday, Nov 1, 2026\">1<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-02\" aria-label=\"Monday, Nov 2, 2026\">2<\/button><button class=\"k-cal-day sel\" type=\"button\" data-date=\"2026-11-03\" aria-label=\"Tuesday, Nov 3, 2026\">3<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-04\" aria-label=\"Wednesday, Nov 4, 2026\">4<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-05\" aria-label=\"Thursday, Nov 5, 2026\">5<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-06\" aria-label=\"Friday, Nov 6, 2026\">6<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-07\" aria-label=\"Saturday, Nov 7, 2026\">7<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-08\" aria-label=\"Sunday, Nov 8, 2026\">8<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-09\" aria-label=\"Monday, Nov 9, 2026\">9<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-10\" aria-label=\"Tuesday, Nov 10, 2026\">10<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-11\" aria-label=\"Wednesday, Nov 11, 2026\">11<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-12\" aria-label=\"Thursday, Nov 12, 2026\">12<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-13\" aria-label=\"Friday, Nov 13, 2026\">13<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-14\" aria-label=\"Saturday, Nov 14, 2026\">14<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-15\" aria-label=\"Sunday, Nov 15, 2026\">15<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-16\" aria-label=\"Monday, Nov 16, 2026\">16<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-17\" aria-label=\"Tuesday, Nov 17, 2026\">17<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-18\" aria-label=\"Wednesday, Nov 18, 2026\">18<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-19\" aria-label=\"Thursday, Nov 19, 2026\">19<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-20\" aria-label=\"Friday, Nov 20, 2026\">20<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-21\" aria-label=\"Saturday, Nov 21, 2026\">21<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-22\" aria-label=\"Sunday, Nov 22, 2026\">22<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-23\" aria-label=\"Monday, Nov 23, 2026\">23<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-24\" aria-label=\"Tuesday, Nov 24, 2026\">24<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-25\" aria-label=\"Wednesday, Nov 25, 2026\">25<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-26\" aria-label=\"Thursday, Nov 26, 2026\">26<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-27\" aria-label=\"Friday, Nov 27, 2026\">27<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-28\" aria-label=\"Saturday, Nov 28, 2026\">28<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-29\" aria-label=\"Sunday, Nov 29, 2026\">29<\/button><button class=\"k-cal-day\" type=\"button\" data-date=\"2026-11-30\" aria-label=\"Monday, Nov 30, 2026\">30<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-01\" aria-label=\"Tuesday, Dec 1, 2026\">1<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-02\" aria-label=\"Wednesday, Dec 2, 2026\">2<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-03\" aria-label=\"Thursday, Dec 3, 2026\">3<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-04\" aria-label=\"Friday, Dec 4, 2026\">4<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-05\" aria-label=\"Saturday, Dec 5, 2026\">5<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-06\" aria-label=\"Sunday, Dec 6, 2026\">6<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-07\" aria-label=\"Monday, Dec 7, 2026\">7<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-08\" aria-label=\"Tuesday, Dec 8, 2026\">8<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-09\" aria-label=\"Wednesday, Dec 9, 2026\">9<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-10\" aria-label=\"Thursday, Dec 10, 2026\">10<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-11\" aria-label=\"Friday, Dec 11, 2026\">11<\/button><button class=\"k-cal-day off\" type=\"button\" data-date=\"2026-12-12\" aria-label=\"Saturday, Dec 12, 2026\">12<\/button><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The Date Picker\u2019s other half, unboxed \u2014 for booking pages, availability and anywhere the month itself is the interface. It renders one month and reports the pick; ranges, min\/max and disabled days are your layer on top of its day buttons.","accessibility":"Days are buttons with full date labels (\"November 14, 2026\"), today carries aria-current, and the month title is a live heading the arrows update. Arrow-key grid navigation is the app\u2019s layer; the tab stop per day is native."},"audit":{"id":"components\/calendar","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"cascader","type":"registry:component","title":"Cascader","description":"A select that walks a tree: pick a branch, then a branch of the branch, until the leaf is the answer.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/cascader\/cascader.css","type":"registry:component","content":"\/* KATA cascader 1.1.0 \u2014 kata-ui.dev\/components\/cascader \u2014 requires mold >= 4 *\/\n\/* KATA Cascader \u2014 a tree, dealt into columns. *\/\n.k-casc{position:relative;font-family:var(--k-font);color:var(--k-ink)}\n.k-casc-panel{position:absolute;inset-inline-start:0;top:calc(100% + 8px);z-index:50;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-1);display:none}\n.k-casc-panel.open{display:flex}\n.k-casc-col{min-width:148px;max-height:236px;overflow:auto;padding:var(--k-space-0-5)}\n.k-casc-col + .k-casc-col{border-inline-start:1px solid var(--k-line)}\n.k-casc-it{display:flex;align-items:center;gap:var(--k-space-2);width:100%;padding:var(--k-space-2) var(--k-space-2);border:0;border-radius:var(--k-radius-md);background:none;font-family:inherit;font-size:var(--k-text-base);color:var(--k-ink-2);cursor:pointer;text-align:start}\n.k-casc-it:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-casc-it.on{background:var(--k-accent-bg);color:var(--k-ink);font-weight:550}\n.k-casc-it svg{margin-inline-start:auto;color:var(--k-ink-3);flex:none}\n.k-casc-src{display:none}\n"},{"path":"components\/cascader\/cascader.js","type":"registry:component","content":"\/* KATA cascader 1.1.0 \u2014 kata-ui.dev\/components\/cascader \u2014 requires mold >= 4 *\/\n\/\/ KATA Cascader \u2014 the tree is nested lists in the markup; the script\n\/\/ deals the current path into columns. A leaf pick writes the path.\ndocument.querySelectorAll('[data-casc]').forEach(function (el) {\n  var btn = el.querySelector('[data-casc-btn]');\n  var label = el.querySelector('[data-casc-label]');\n  var panel = el.querySelector('[data-casc-panel]');\n  var src = el.querySelector('[data-casc-src]');\n  function toData(ul) {\n    return Array.prototype.map.call(ul.children, function (li) {\n      var a = li.querySelector(':scope > span');\n      var sub = li.querySelector(':scope > ul');\n      return { label: a.textContent, children: sub ? toData(sub) : null };\n    });\n  }\n  var tree = toData(src.querySelector('ul'));\n  var path = [];\n  function render() {\n    panel.innerHTML = '';\n    var level = tree;\n    for (var d = 0; ; d++) {\n      var col = document.createElement('div');\n      col.className = 'k-casc-col';\n      (function (nodes, depth) {\n        nodes.forEach(function (n) {\n          var b = document.createElement('button');\n          b.type = 'button';\n          b.className = 'k-casc-it' + (path[depth] === n ? ' on' : '');\n          b.textContent = n.label;\n          if (n.children) b.innerHTML += '<svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg>';\n          b.addEventListener('click', function () {\n            path = path.slice(0, depth); path.push(n);\n            if (n.children) { render(); }\n            else {\n              label.textContent = path.map(function (x) { return x.label; }).join(' \/ ');\n              el.setAttribute('data-value', JSON.stringify(path.map(function (x) { return x.label; })));\n              el.dispatchEvent(new CustomEvent('kata:cascader', { detail: path.map(function (x) { return x.label; }), bubbles: true }));\n              close();\n            }\n          });\n          col.appendChild(b);\n        });\n      })(level, d);\n      panel.appendChild(col);\n      if (path[d] && path[d].children) { level = path[d].children; } else { break; }\n    }\n  }\n  function open() { render(); panel.classList.add('open'); btn.setAttribute('aria-expanded', 'true'); }\n  function close() { panel.classList.remove('open'); btn.setAttribute('aria-expanded', 'false'); }\n  btn.addEventListener('click', function () { panel.classList.contains('open') ? close() : open(); });\n  document.addEventListener('click', function (e) { if (!el.contains(e.target)) close(); });\n  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') close(); });\n});\n"},{"path":"components\/cascader\/example.html","type":"registry:component","content":"<!-- KATA cascader 1.1.0 \u2014 kata-ui.dev\/components\/cascader \u2014 requires mold >= 4 -->\n<div class=\"k-casc\" data-casc style=\"max-width:340px\">\n  <button class=\"input\" data-casc-btn type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\" style=\"display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:left;width:100%\">\n    <span data-casc-label style=\"color:var(--k-ink-3)\">Choose a work location<\/span><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg>\n  <\/button>\n  <div class=\"k-casc-panel\" data-casc-panel><\/div>\n  <div class=\"k-casc-src\" data-casc-src aria-hidden=\"true\"><ul>\n    <li><span>Japan<\/span><ul>\n      <li><span>Tokyo<\/span><ul>\n        <li><span>Tachikawa<\/span><\/li>\n        <li><span>Tachikawa<\/span><\/li>\n        <li><span>Hachioji<\/span><\/li>\n      <\/ul><\/li>\n      <li><span>Osaka<\/span><ul>\n        <li><span>Osaka City<\/span><\/li>\n        <li><span>Sakai<\/span><\/li>\n      <\/ul><\/li>\n    <\/ul><\/li>\n    <li><span>Remote<\/span><ul>\n      <li><span>Home office<\/span><\/li>\n      <li><span>Client site<\/span><\/li>\n    <\/ul><\/li>\n  <\/ul><\/div>\n<\/div>\n<p style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2)\">Open it and walk: Japan, then Tokyo, then the city. The trigger keeps the whole path.<\/p>"}],"meta":{"status":"beta","usage":"For choices that are really addresses \u2014 region, category, org chart. The author writes the tree as nested lists in the panel; the script deals it into columns. The trigger shows the whole path, because the leaf alone (\"Central\") rarely says enough.","accessibility":"The trigger is a button with aria-expanded; columns are lists and items are buttons, the chosen path announced in the trigger text. Arrow-key column navigation is the app\u2019s layer; Escape closes from anywhere."},"audit":{"id":"components\/cascader","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"checkbox","type":"registry:component","title":"Checkbox \/ Radio","description":"Native inputs with a restyled face. Keyboard support and form behavior stay intact.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/checkbox\/checkbox.css","type":"registry:component","content":"\/* KATA checkbox 1.1.0 \u2014 kata-ui.dev\/components\/checkbox \u2014 requires mold >= 3 *\/\n.check{display:inline-flex;align-items:center;gap:var(--k-space-2);cursor:pointer;font-size:var(--k-text-base);font-family:var(--k-font);color:var(--k-ink)}\n\/* The unchecked border uses --k-ink-3: --k-border-strong measured 1.65:1 (light) and 2.29:1 (dark), below the 3:1 WCAG 1.4.11 asks of a control boundary. *\/\n.check input{-webkit-appearance:none;appearance:none;width:18px;height:18px;border:1.5px solid var(--k-ink-3);border-radius:var(--k-radius-sm);background:var(--k-bg);display:grid;place-content:center;cursor:pointer;transition:background var(--k-dur-fast),border-color var(--k-dur-fast);margin:0;flex:none}\n.check input::before{content:\"\";width:10px;height:10px;transform:scale(0);transition:transform var(--k-dur-fast);background:var(--k-bg);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}\n.check input:hover:not(:disabled):not(:checked):not(:indeterminate){border-color:var(--k-ink-2)}\n.check input:checked{background:var(--k-ink);border-color:var(--k-ink)}\n.check input:checked::before{transform:scale(1)}\n\/* Mixed state for a parent of partly selected items: a bar instead of the check. *\/\n.check input[type=\"checkbox\"]:indeterminate{background:var(--k-ink);border-color:var(--k-ink)}\n.check input[type=\"checkbox\"]:indeterminate::before{clip-path:none;height:2px;transform:scale(1)}\n.check input:focus-visible{box-shadow:var(--k-ring);outline:0}\n.check input[aria-invalid=\"true\"]:not(:checked){border-color:var(--k-danger)}\n.check input:disabled{opacity:.5;cursor:not-allowed}\n.check:has(input:disabled){color:var(--k-ink-3);cursor:not-allowed}\n.check input[type=\"radio\"]{border-radius:50%}\n.check input[type=\"radio\"]::before{clip-path:none;border-radius:50%;width:8px;height:8px}\n\n.check input[type=\"radio\"]:checked::before{background:var(--k-core)}\n"},{"path":"components\/checkbox\/example.html","type":"registry:component","content":"<!-- KATA checkbox 1.1.0 \u2014 kata-ui.dev\/components\/checkbox \u2014 requires mold >= 3 -->\n<label class=\"check\"><input type=\"checkbox\" checked>Send estimate<\/label>\n<label class=\"check\"><input type=\"checkbox\">Include travel<\/label>\n<label class=\"check\"><input type=\"radio\" name=\"kpay\" checked>End of month<\/label>\n<label class=\"check\"><input type=\"radio\" name=\"kpay\">End of next month<\/label>"}],"meta":{"status":"beta","usage":"Checkboxes for independent options, radios for exactly one choice in a group.","accessibility":"Native checkbox and radio inputs restyled with appearance:none inside a wrapping <label>; Space toggles, arrow keys move within a radio group, and form submission is unchanged. Keyboard focus shows --k-ring. The unchecked boundary measures 4.83:1 (light) and 5.6:1 (dark), above the 3:1 WCAG 1.4.11 asks; it was 1.65:1 and 2.29:1 before. Checked, mixed (set input.indeterminate = true from script), aria-invalid and disabled states are styled; disabled is dimmed, not-allowed and does not toggle. A radio group is defined by its name: give each group a name that is unique in its form, including when a sample is pasted twice. IME does not apply. Beta until a screen reader is checked by hand; Chromium only."},"audit":{"id":"components\/checkbox","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"color-picker","type":"registry:component","title":"Color Picker","description":"A curated palette first, any color second \u2014 swatches for the 95% case, a native picker for the rest.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/color-picker\/color-picker.css","type":"registry:component","content":"\/* KATA color-picker 1.1.0 \u2014 kata-ui.dev\/components\/color-picker \u2014 requires mold >= 3 *\/\n.k-cp{font-family:var(--k-font);text-align:start}\n.k-cp-grid{display:flex;flex-wrap:wrap;gap:var(--k-space-2)}\n.k-cp-sw{width:34px;height:34px;border-radius:var(--k-radius-lg);border:1px solid var(--k-line);cursor:pointer;padding:0;display:grid;place-items:center;color:transparent;transition:transform var(--k-dur-fast) var(--k-ease)}\n.k-cp-sw:hover{transform:scale(1.08)}\n.k-cp-sw.sel{color:var(--k-on-color);box-shadow:var(--k-ring-offset)}\n.k-cp-custom{position:relative;width:34px;height:34px;border-radius:var(--k-radius-lg);border:1.5px dashed var(--k-border-strong);display:grid;place-items:center;color:var(--k-ink-3);cursor:pointer;background:var(--k-bg)}\n.k-cp-custom input{position:absolute;inset:0;opacity:0;cursor:pointer}\n.k-cp-out{display:flex;align-items:center;gap:var(--k-space-2);margin-top:var(--k-space-3);font-size:var(--k-text-sm);color:var(--k-ink-2)}\n.k-cp-out .chipc{width:18px;height:18px;border-radius:var(--k-radius-sm);border:1px solid var(--k-line)}\n.k-cp-out code{font-family:var(--k-mono);font-size:var(--k-text-sm);color:var(--k-ink)}\n\n.k-cp-sw:focus-visible{outline:0;box-shadow:var(--k-ring)}\n\/* Selection keeps its offset ring; keyboard focus adds a separate outline outside it. *\/\n.k-cp-sw.sel:focus-visible{box-shadow:var(--k-ring-offset);outline:2px solid var(--k-ink);outline-offset:var(--k-space-1)}\n.k-cp-custom input:focus-visible{outline:0}\n.k-cp-custom:has(input:focus-visible){border-color:var(--k-accent);box-shadow:var(--k-ring)}\n"},{"path":"components\/color-picker\/color-picker.js","type":"registry:component","content":"\/* KATA color-picker 1.1.0 \u2014 kata-ui.dev\/components\/color-picker \u2014 requires mold >= 3 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  function hex(rgb) {\n    const parts = (rgb.match(\/[\\d.]+\/g) || []).slice(0, 3).map(Number);\n    if (parts.length < 3) return rgb;\n    return '#' + parts.map(n => Math.round(n).toString(16).padStart(2, '0')).join('').toUpperCase();\n  }\n\n  document.querySelectorAll('[data-cp]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const swatches = [...root.querySelectorAll('.k-cp-sw')];\n    const out = root.querySelector('[data-cp-hex]');\n    const chip = root.querySelector('[data-cp-chip]');\n    const custom = root.querySelector('[data-cp-custom]');\n    if (!swatches.length) return;\n    root.dataset.kataReady = 'true';\n    identify(root, 'kata-cp');\n    swatches.forEach(swatch => { swatch.type = 'button'; swatch.setAttribute('role', 'radio'); identify(swatch, 'kata-cp-swatch'); });\n    if (custom) identify(custom, 'kata-cp-custom');\n\n    \/\/ Roving tabindex: the checked swatch (or the first one) is the group's single tab stop.\n    function rove() {\n      const checked = swatches.find(swatch => swatch.getAttribute('aria-checked') === 'true') || swatches[0];\n      swatches.forEach(swatch => { swatch.tabIndex = swatch === checked ? 0 : -1; });\n    }\n    function select(swatch, color, notify) {\n      swatches.forEach(item => {\n        const on = item === swatch;\n        item.classList.toggle('sel', on); item.setAttribute('aria-checked', on ? 'true' : 'false');\n        \/\/ The check mark is application-owned markup from data-check.\n        item.innerHTML = on ? (root.dataset.check || '') : '';\n      });\n      rove();\n      if (out) out.textContent = color;\n      if (chip) chip.style.background = color;\n      root.dataset.value = color;\n      if (notify) root.dispatchEvent(new CustomEvent('kata-color-picker-change', { bubbles: true, detail: { value: color, name: swatch ? swatch.getAttribute('aria-label') : 'Custom' } }));\n    }\n    const colorOf = swatch => hex(getComputedStyle(swatch).backgroundColor);\n\n    root.addEventListener('click', event => {\n      const swatch = event.target.closest('.k-cp-sw');\n      if (swatch && swatches.includes(swatch) && swatch.getAttribute('aria-checked') !== 'true') select(swatch, colorOf(swatch), true);\n    });\n    root.addEventListener('keydown', event => {\n      const swatch = event.target.closest('.k-cp-sw');\n      if (!swatch || !swatches.includes(swatch) || event.isComposing || event.keyCode === 229) return;\n      const index = swatches.indexOf(swatch), last = swatches.length - 1;\n      const rtl = getComputedStyle(root).direction === 'rtl';\n      let next = null;\n      if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {\n        \/\/ Horizontal arrows follow the visual direction; in RTL, Left moves forward.\n        const forward = (event.key === 'ArrowRight') !== rtl;\n        next = forward ? (index === last ? 0 : index + 1) : (index === 0 ? last : index - 1);\n      } else if (event.key === 'ArrowDown') next = index === last ? 0 : index + 1;\n      else if (event.key === 'ArrowUp') next = index === 0 ? last : index - 1;\n      else if (event.key === 'Home') next = 0;\n      else if (event.key === 'End') next = last;\n      if (next === null) return;\n      event.preventDefault();\n      select(swatches[next], colorOf(swatches[next]), true);\n      swatches[next].focus();\n    });\n    if (custom) {\n      \/\/ Live preview while the native picker moves; one notification when it commits.\n      custom.addEventListener('input', () => select(null, custom.value.toUpperCase(), false));\n      custom.addEventListener('change', () => select(null, custom.value.toUpperCase(), true));\n    }\n\n    const first = swatches.find(swatch => swatch.getAttribute('aria-checked') === 'true');\n    if (first) select(first, colorOf(first), false); else rove();\n  });\n})();\n"},{"path":"components\/color-picker\/example.html","type":"registry:component","content":"<!-- KATA color-picker 1.1.0 \u2014 kata-ui.dev\/components\/color-picker \u2014 requires mold >= 3 -->\n<div class=\"k-cp\" data-cp data-check=\"<svg width=&quot;15&quot; height=&quot;15&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;><path d=&quot;m4.5 12.5 5 5L19.5 6.5&quot;\/><\/svg>\" style=\"max-width:300px\">\n  <div class=\"k-cp-grid\" role=\"radiogroup\" aria-label=\"Brand color\">\n    <button type=\"button\" role=\"radio\" aria-checked=\"true\" aria-label=\"Asagi\" class=\"k-cp-sw sel\" style=\"background:hsl(190 59% 46%)\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Ruri\" class=\"k-cp-sw\" style=\"background:hsl(216 68% 38%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Edomurasaki\" class=\"k-cp-sw\" style=\"background:hsl(265 27% 46%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Suo\" class=\"k-cp-sw\" style=\"background:hsl(346 39% 38%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Yamabuki\" class=\"k-cp-sw\" style=\"background:hsl(41 100% 55%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Wakatake\" class=\"k-cp-sw\" style=\"background:hsl(152 30% 52%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Sora\" class=\"k-cp-sw\" style=\"background:hsl(199 65% 60%)\"><\/button><button type=\"button\" role=\"radio\" aria-checked=\"false\" aria-label=\"Sumi\" class=\"k-cp-sw\" style=\"background:hsl(0 0% 11%)\"><\/button>\n    <label class=\"k-cp-custom\" title=\"Custom color\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><input type=\"color\" data-cp-custom aria-label=\"Custom color\"><\/label>\n  <\/div>\n  <div class=\"k-cp-out\"><span class=\"chipc\" data-cp-chip style=\"background:var(--k-accent)\"><\/span>Selected <code data-cp-hex>\u2014<\/code><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For brand colors, labels and categories \u2014 anywhere the right answer is usually one of a few known colors. Free-form color fields invite off-brand chaos; the palette is the point. Listen for a new choice:\n\n```js\ndocument.addEventListener('kata-color-picker-change', event => {\n  console.log(event.detail.value, event.detail.name);\n});\n```\nThe current hex value is also on the root as data-value.","accessibility":"Swatches are buttons with role=radio inside a labelled radiogroup, with one tab stop. Arrow keys move and select (horizontal arrows follow visual direction; in RTL, Left moves forward), Home and End jump to the ends, and Enter or Space selects. Focus on the selected swatch adds an outline outside its selection ring, so both states stay visible. The custom tile is a native color input: it previews while the picker moves and notifies once on change. There is no drag handle. Screen-reader output is not yet verified by hand."},"audit":{"id":"components\/color-picker","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"combobox","type":"registry:component","title":"Combobox","description":"Type to filter, arrows to choose \u2014 the Select for lists too long to scan.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/combobox\/combobox.css","type":"registry:component","content":"\/* KATA combobox 1.1.0 \u2014 kata-ui.dev\/components\/combobox \u2014 requires mold >= 3 *\/\n.k-combo{--combo-width:300px;--combo-input-end:var(--k-space-8);--combo-input-size:var(--k-text-lg);--combo-chevron-end:var(--k-space-3);--combo-chevron-bottom:var(--k-space-3);--combo-icon:15px;--combo-check-icon:14px;--combo-max-height:238px;--combo-sr-size:1px;--combo-focus-width:2px;position:relative;font-family:var(--k-font);text-align:start;max-inline-size:var(--combo-width)}\n.k-combo label{display:block;margin-block-end:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink)}\n.k-combo .input{inline-size:100%;box-sizing:border-box;padding-inline-end:var(--combo-input-end);font-size:var(--combo-input-size)}\n.k-combo .input:hover:not(:disabled){border-color:var(--k-border-strong)}\n.k-combo .input:active:not(:disabled){border-color:var(--k-accent)}\n.k-combo .input:disabled{background:var(--k-bg-soft);color:var(--k-ink-2);cursor:not-allowed}\n.k-combo .input:focus-visible{outline:var(--combo-focus-width) solid var(--k-accent);box-shadow:var(--k-ring)}\n.k-combo .chev{position:absolute;inset-inline-end:var(--combo-chevron-end);inset-block-end:var(--combo-chevron-bottom);color:var(--k-ink-2);pointer-events:none;display:grid;place-items:center}\n.k-combo .chev svg{inline-size:var(--combo-icon);block-size:var(--combo-icon)}\n.k-combo-list,.k-combo>.none{position:absolute;inset-inline-start:0;inset-inline-end:0;inset-block-start:calc(100% + var(--k-space-2));z-index:var(--k-z-overlay);box-sizing:border-box;margin:0;padding:var(--k-space-1);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-overlay)}\n.k-combo-list{list-style:none;max-block-size:var(--combo-max-height);overflow:auto;scrollbar-color:var(--k-border-strong) var(--k-bg)}\n.k-combo-list[hidden],.k-combo-list li[hidden],.k-combo>.none[hidden]{display:none}\n.k-combo-list li{padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius);font-size:var(--k-text-base);color:var(--k-ink);cursor:pointer;display:flex;align-items:center;gap:var(--k-space-2);overflow-wrap:anywhere}\n.k-combo-list li .ck{color:var(--k-accent-ink);visibility:hidden;display:grid;place-items:center}\n.k-combo-list li .ck svg{inline-size:var(--combo-check-icon);block-size:var(--combo-check-icon)}\n.k-combo-list li.act,.k-combo-list li:hover{background:var(--k-bg-soft)}\n.k-combo-list li:active{background:var(--k-accent-bg-strong)}\n.k-combo-list li[aria-selected=\"true\"] .ck{visibility:visible}\n.k-combo-list li[aria-disabled=\"true\"]{color:var(--k-ink-2);background:var(--k-bg);cursor:not-allowed}\n.k-combo-list li.none,.k-combo>.none{color:var(--k-ink-2);cursor:default;font-size:var(--k-text-base)}\n.k-combo-status{position:absolute;inline-size:var(--combo-sr-size);block-size:var(--combo-sr-size);padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n@media(prefers-reduced-motion:reduce){.k-combo *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}\n"},{"path":"components\/combobox\/combobox.js","type":"registry:component","content":"\/* KATA combobox 1.1.0 \u2014 kata-ui.dev\/components\/combobox \u2014 requires mold >= 3 *\/\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-combo-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n\n  const instances = [];\n  document.querySelectorAll('[data-combo]').forEach(combo => {\n    if (combo.hasAttribute('data-kata-ready')) return;\n    const input = combo.querySelector('[data-combo-input]');\n    const list = combo.querySelector('[data-combo-list]');\n    if (!input || !list) return;\n    combo.setAttribute('data-kata-ready', '');\n    const items = [...list.querySelectorAll('[data-val]')];\n    const label = combo.querySelector('label');\n    if (label) label.htmlFor = ensureId(input, 'input');\n    input.setAttribute('role', 'combobox');\n    input.setAttribute('aria-autocomplete', 'list');\n    input.setAttribute('aria-controls', ensureId(list, 'list'));\n    list.setAttribute('role', 'listbox');\n    if (label) list.setAttribute('aria-labelledby', ensureId(label, 'label'));\n    items.forEach(item => {\n      ensureId(item, 'option');\n      item.setAttribute('role', 'option');\n      item.setAttribute('aria-selected', String(item.getAttribute('aria-selected') === 'true'));\n    });\n    \/\/ Support older markup, moving the empty message out of the listbox.\n    let empty = combo.querySelector('.none');\n    if (!empty) {\n      empty = document.createElement('p');\n      empty.className = 'none';\n      empty.textContent = 'No matches.';\n    }\n    list.after(empty);\n    let status = combo.querySelector('[role=\"status\"]');\n    if (!status) {\n      status = document.createElement('span');\n      status.className = 'k-combo-status';\n      status.setAttribute('role', 'status');\n      combo.append(status);\n    }\n    status.setAttribute('aria-atomic', 'true');\n    let active = null;\n    let composing = false;\n    const enabled = item => item.getAttribute('aria-disabled') !== 'true';\n    const visible = () => items.filter(item => !item.hidden && enabled(item));\n    function clearActive() {\n      active = null;\n      items.forEach(item => item.classList.remove('act'));\n      input.removeAttribute('aria-activedescendant');\n    }\n    function close() {\n      list.hidden = true;\n      empty.hidden = true;\n      input.setAttribute('aria-expanded', 'false');\n      clearActive();\n      status.textContent = '';\n    }\n    function filter() {\n      const query = input.value.trim().toLowerCase();\n      clearActive();\n      items.forEach(item => { item.hidden = !item.dataset.val.toLowerCase().includes(query); });\n    }\n    function open() {\n      if (input.disabled || input.readOnly) return;\n      list.hidden = false;\n      input.setAttribute('aria-expanded', 'true');\n      const count = visible().length;\n      empty.hidden = count !== 0;\n    }\n    function highlight(item) {\n      clearActive();\n      if (!item) return;\n      active = item;\n      item.classList.add('act');\n      input.setAttribute('aria-activedescendant', item.id);\n      item.scrollIntoView({ block: 'nearest', behavior: 'instant' });\n    }\n    function pick(item) {\n      if (!enabled(item) || input.disabled || input.readOnly) return;\n      input.value = item.dataset.val;\n      items.forEach(option => option.setAttribute('aria-selected', String(option === item)));\n      close();\n      input.dispatchEvent(new Event('change', { bubbles: true }));\n    }\n    function showAll() {\n      clearActive();\n      items.forEach(item => { item.hidden = false; });\n      status.textContent = '';\n      open();\n    }\n    function refresh() {\n      filter();\n      open();\n      const count = visible().length;\n      const message = count === 1\n        ? (combo.dataset.comboResultOne || '{count} result available.')\n        : (combo.dataset.comboResultMany || '{count} results available.');\n      status.textContent = message.replaceAll('{count}', String(count));\n    }\n    input.addEventListener('focus', showAll);\n    input.addEventListener('click', showAll);\n    input.addEventListener('compositionstart', () => { composing = true; clearActive(); });\n    input.addEventListener('compositionend', () => {\n      composing = false;\n      items.forEach(item => item.setAttribute('aria-selected', 'false'));\n    });\n    input.addEventListener('input', event => {\n      if (composing || event.isComposing) return;\n      items.forEach(item => item.setAttribute('aria-selected', 'false'));\n      refresh();\n    });\n    input.addEventListener('keydown', event => {\n      if (composing || event.isComposing || event.keyCode === 229 || input.disabled || input.readOnly) return;\n      if (event.altKey && event.key === 'ArrowDown') {\n        event.preventDefault();\n        showAll();\n        return;\n      }\n      if (event.key === 'Escape') {\n        if (!list.hidden) { event.preventDefault(); event.stopPropagation(); close(); }\n        return;\n      }\n      if (event.key === 'Tab') { close(); return; }\n      if (event.key === 'Enter') {\n        if (!list.hidden && active) { event.preventDefault(); pick(active); }\n        return;\n      }\n      const arrow = event.key === 'ArrowDown' || event.key === 'ArrowUp';\n      const boundary = event.key === 'Home' || event.key === 'End';\n      if (!arrow && !(boundary && !list.hidden)) return;\n      if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n      event.preventDefault();\n      if (list.hidden) showAll();\n      const options = visible();\n      const index = options.indexOf(active);\n      let next;\n      if (event.key === 'Home') next = 0;\n      else if (event.key === 'End') next = options.length - 1;\n      else if (event.key === 'ArrowDown') next = index < 0 ? 0 : (index + 1) % options.length;\n      else next = index < 0 ? options.length - 1 : (index - 1 + options.length) % options.length;\n      highlight(options[next]);\n    });\n    items.forEach(item => {\n      item.addEventListener('pointerdown', event => { event.preventDefault(); });\n      item.addEventListener('click', () => { pick(item); });\n    });\n    combo.addEventListener('focusout', event => {\n      if (!event.relatedTarget) return;\n      if (!combo.contains(event.relatedTarget)) close();\n    });\n    instances.push({ combo, close });\n    close();\n  });\n  \/\/ One outside-press listener per script load, shared by its instances (contract item 11).\n  if (!instances.length) return;\n  document.addEventListener('pointerdown', event => { instances.forEach(instance => { if (!instance.combo.contains(event.target)) instance.close(); }); });\n})();\n"},{"path":"components\/combobox\/example.html","type":"registry:component","content":"<!-- KATA combobox 1.1.0 \u2014 kata-ui.dev\/components\/combobox \u2014 requires mold >= 3 -->\n<div class=\"k-combo\" data-combo data-combo-result-one=\"{count} result available.\" data-combo-result-many=\"{count} results available.\">\n  <label>Framework\n  <input class=\"input\" data-combo-input type=\"text\" role=\"combobox\" aria-expanded=\"false\" aria-autocomplete=\"list\" autocomplete=\"off\" placeholder=\"Choose a framework\" value=\"Astro\"><\/label>\n  <span class=\"chev\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span>\n  <ul class=\"k-combo-list\" data-combo-list role=\"listbox\" hidden>\n    <li role=\"option\" data-val=\"Astro\" aria-selected=\"true\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Astro<\/li><li role=\"option\" data-val=\"Django\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Django<\/li><li role=\"option\" data-val=\"Hugo\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Hugo<\/li><li role=\"option\" data-val=\"Laravel\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Laravel<\/li><li role=\"option\" data-val=\"Next.js\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Next.js<\/li><li role=\"option\" data-val=\"Nuxt\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Nuxt<\/li><li role=\"option\" data-val=\"Rails\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Rails<\/li><li role=\"option\" data-val=\"Remix\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>Remix<\/li><li role=\"option\" data-val=\"SvelteKit\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>SvelteKit<\/li><li role=\"option\" data-val=\"WordPress\" aria-selected=\"false\"><span class=\"ck\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>WordPress<\/li>\n<li role=\"option\" data-val=\"Angular\" aria-selected=\"false\">Angular<\/li><li role=\"option\" data-val=\"Eleventy\" aria-selected=\"false\">Eleventy<\/li><li role=\"option\" data-val=\"Express\" aria-selected=\"false\">Express<\/li><li role=\"option\" data-val=\"Flask\" aria-selected=\"false\">Flask<\/li><li role=\"option\" data-val=\"Phoenix\" aria-selected=\"false\">Phoenix<\/li><li role=\"option\" data-val=\"SolidStart\" aria-selected=\"false\">SolidStart<\/li>\n  <\/ul>\n  <p class=\"none\" hidden>No matches.<\/p>\n  <span class=\"k-combo-status\" role=\"status\" aria-atomic=\"true\"><\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"For long option lists: frameworks, countries, customers. Under a dozen options, a Select is faster and needs no JavaScript.","accessibility":"Labeled editable combobox with list autocomplete, per-instance listbox\/option IDs, expanded and active-descendant state, and a result-count status region. Arrow keys, Home and End navigate available options; Enter selects, Escape closes, and Tab leaves without selecting. Focus stays in the input; IME composition does not select an option. No-results text is outside the listbox. Supports multiple instances, repeated script loading, RTL and reduced motion. Browser and screen-reader combinations still need manual testing. Focus, click and Alt+ArrowDown show all options. Only typing filters and announces counts; data-combo-result-one and data-combo-result-many customize messages with {count}. An outside press (pointerdown) closes the list; one listener per script load serves every instance."},"audit":{"id":"components\/combobox","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"copy-field","type":"registry:component","title":"Copy field","description":"A value that exists to be copied: install commands, tokens, links. One click, confirmed in place.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/copy-field\/copy-field.css","type":"registry:component","content":"\/* KATA copy-field 1.1.0 \u2014 kata-ui.dev\/components\/copy-field \u2014 requires mold >= 2 *\/\n\/* KATA Copy field *\/\n.k-copyfield{display:flex;align-items:center;gap:var(--k-space-2);height:38px;padding-inline-start:var(--k-space-3);padding-inline-end:var(--k-space-1);border:1px solid var(--k-line);border-radius:var(--k-radius);background:var(--k-bg)}\n.k-copyfield code{font-family:var(--k-mono);font-size:var(--k-text-sm);color:var(--k-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-copyfield-btn{margin-inline-start:auto;flex:none;height:30px;padding:0 var(--k-space-3);border:0;border-radius:var(--k-radius-sm);background:var(--k-ink);color:var(--k-bg);font-family:var(--k-font);font-size:var(--k-text-sm);font-weight:550;cursor:pointer;transition:background var(--k-dur-fast)}\n.k-copyfield-btn:hover{opacity:.88}\n.k-copyfield[data-copied=\"true\"] .k-copyfield-btn{background:var(--k-accent);color:var(--k-on-accent)}\n"},{"path":"components\/copy-field\/copy-field.js","type":"registry:component","content":"\/* KATA copy-field 1.1.0 \u2014 kata-ui.dev\/components\/copy-field \u2014 requires mold >= 2 *\/\n\/\/ KATA Copy field \u2014 click to copy, confirm in place.\ndocument.querySelectorAll('[data-copy-field]').forEach(function (field) {\n  var btn = field.querySelector('[data-copy-btn]');\n  var val = field.querySelector('code');\n  if (!btn || !val) return;\n  var timer = null;\n  btn.addEventListener('click', function () {\n    var text = val.textContent.trim();\n    function done() {\n      field.dataset.copied = 'true';\n      btn.textContent = 'Copied';\n      clearTimeout(timer);\n      timer = setTimeout(function () {\n        field.dataset.copied = 'false';\n        btn.textContent = 'Copy';\n      }, 1600);\n    }\n    if (navigator.clipboard && navigator.clipboard.writeText) {\n      navigator.clipboard.writeText(text).then(done, done);\n    } else {\n      var ta = document.createElement('textarea');\n      ta.value = text;\n      document.body.appendChild(ta);\n      ta.select();\n      try { document.execCommand('copy'); } catch (e) {}\n      document.body.removeChild(ta);\n      done();\n    }\n  });\n});\n"},{"path":"components\/copy-field\/example.html","type":"registry:component","content":"<!-- KATA copy-field 1.1.0 \u2014 kata-ui.dev\/components\/copy-field \u2014 requires mold >= 2 -->\n<div style=\"display:grid;gap:var(--k-space-2);max-width:430px\">\n  <div class=\"k-copyfield\" data-copy-field>\n    <code>npx kata-ui add switch<\/code>\n    <button class=\"k-copyfield-btn\" type=\"button\" data-copy-btn aria-label=\"Copy value\">Copy<\/button>\n  <\/div>\n  <div class=\"k-copyfield\" data-copy-field>\n    <code>sk-demo-4f8c2e91b7<\/code>\n    <button class=\"k-copyfield-btn\" type=\"button\" data-copy-btn aria-label=\"Copy value\">Copy<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For values the user will paste somewhere else. The button confirms with 'Copied' for a moment \u2014 no toast needed for something this small.","accessibility":"The button keeps a stable aria-label ('Copy value'). The visible label changes to 'Copied', which screen readers announce as the button's name."},"audit":{"id":"components\/copy-field","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"date-picker","type":"registry:component","title":"Date Picker","description":"A calendar that opens under the input \u2014 real month math, a core dot for today, no library.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/date-picker\/date-picker.css","type":"registry:component","content":"\/* KATA date-picker 1.1.0 \u2014 kata-ui.dev\/components\/date-picker \u2014 requires mold >= 4 *\/\n.k-dp{position:relative;font-family:var(--k-font);text-align:start}\n.k-dp .wrap-in{position:relative}\n.k-dp .cal-btn{position:absolute;inset-inline-end:calc(var(--k-space-1) * 1.5);top:50%;transform:translateY(-50%);width:30px;height:30px;border:none;background:transparent;color:var(--k-ink-3);display:grid;place-items:center;cursor:pointer;border-radius:var(--k-radius-md)}\n.k-dp .cal-btn:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-dp-panel{position:absolute;inset-inline-start:0;top:calc(100% + 8px);z-index:50;width:288px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-3)}\n.k-dp-panel[hidden]{display:none}\n.k-dp-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--k-space-2)}\n.k-dp-h b{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink)}\n.k-dp-nav{width:29px;height:29px;border:1px solid var(--k-line);background:var(--k-bg);border-radius:var(--k-radius-md);color:var(--k-ink-2);display:grid;place-items:center;cursor:pointer}\n.k-dp-nav:hover{background:var(--k-bg-soft)}\n.k-dp-wd{display:grid;grid-template-columns:repeat(7,1fr);font-size:var(--k-text-xs);font-weight:600;letter-spacing:.06em;color:var(--k-ink-3);text-align:center;margin-bottom:var(--k-space-1)}\n.k-dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--k-space-0-5)}\n.k-dp-day{height:34px;border:none;background:transparent;border-radius:var(--k-radius-md);font:inherit;font-size:var(--k-text-base);color:var(--k-ink);cursor:pointer;position:relative;display:grid;place-items:center}\n.k-dp-day:hover{background:var(--k-bg-soft)}\n.k-dp-day.out{color:var(--k-ink-3);opacity:.45}\n.k-dp-day.today::after{content:\"\";position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:var(--k-core)}\n.k-dp-day.sel{background:var(--k-ink);color:var(--k-bg);font-weight:600}\n\n\n.k-dp-label{display:block;margin-block-end:var(--k-space-2);font-size:var(--k-text-sm);color:var(--k-ink)}\n.k-dp-grid [data-dp-week]{display:contents}\n.k-dp-grid .k-dp-wd{grid-column:1 \/ -1}\n.k-dp .input:focus-visible,.k-dp button:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.k-dp .wrap-in .input{width:100%;padding-inline-end:calc(var(--k-space-3) * 3.5)}\n"},{"path":"components\/date-picker\/date-picker.js","type":"registry:component","content":"\/* KATA date-picker 1.1.0 \u2014 kata-ui.dev\/components\/date-picker \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  function exitController(panel, finish) {\n    let timer, listener;\n    function cancel() {\n      clearTimeout(timer);\n      if (listener) {\n        panel.removeEventListener('transitionend', listener);\n        panel.removeEventListener('animationend', listener);\n      }\n      listener = null;\n      panel.classList.remove('kata-closing');\n    }\n    function close() {\n      cancel();\n      panel.classList.add('kata-closing');\n      const style = getComputedStyle(panel);\n      const seconds = value => value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000) || 0);\n      function longest(durations, delays, iterations) {\n        const d = seconds(durations), t = seconds(delays);\n        const n = (iterations || '1').split(',').map(Number);\n        return Math.max(0, ...d.map((value, index) => value * (Number.isFinite(n[index % n.length]) ? n[index % n.length] : 1) + t[index % t.length]));\n      }\n      const duration = Math.max(longest(style.transitionDuration, style.transitionDelay), longest(style.animationDuration, style.animationDelay, style.animationIterationCount));\n      const started = performance.now();\n      const complete = () => { cancel(); finish(); };\n      if (!duration) { complete(); return; }\n      listener = event => {\n        if (event.target === panel && performance.now() - started >= duration - 16) complete();\n      };\n      panel.addEventListener('transitionend', listener);\n      panel.addEventListener('animationend', listener);\n      timer = setTimeout(complete, duration + 50);\n    }\n    return { cancel, close };\n  }\n\n  const instances = [];\n  document.querySelectorAll('[data-dp]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const input = root.querySelector('[data-dp-input]'), panel = root.querySelector('[data-dp-panel]');\n    const grid = root.querySelector('[data-dp-grid]'), title = root.querySelector('[data-dp-title]');\n    const trigger = root.querySelector('[data-dp-btn]');\n    if (!input || !panel || !grid || !title || !trigger) return;\n    root.dataset.kataReady = 'true'; identify(root, 'kata-date-picker');\n    const inputId = identify(input, 'kata-date-input'), panelId = identify(panel, 'kata-date-panel');\n    const label = root.querySelector('[data-dp-label],label'); if (label && !label.htmlFor) label.htmlFor = inputId;\n    identify(grid, 'kata-date-grid'); identify(title, 'kata-date-title');\n    input.setAttribute('aria-controls', panelId); input.setAttribute('aria-haspopup', 'dialog');\n    trigger.setAttribute('aria-controls', panelId); trigger.setAttribute('aria-haspopup', 'dialog');\n    panel.setAttribute('aria-labelledby', title.id);\n    grid.setAttribute('role', 'grid'); grid.setAttribute('aria-labelledby', title.id);\n    title.setAttribute('aria-live', 'polite'); title.setAttribute('aria-atomic', 'true');\n    const weekdays = root.querySelector('.k-dp-wd');\n    if (weekdays) {\n      weekdays.setAttribute('role', 'row');\n      weekdays.querySelectorAll('span').forEach(day => day.setAttribute('role', 'columnheader'));\n      grid.prepend(weekdays);\n    }\n    const same = (a, b) => a && b && a.toDateString() === b.toDateString();\n    const key = date => [date.getFullYear(), String(date.getMonth() + 1).padStart(2, '0'), String(date.getDate()).padStart(2, '0')].join('-');\n    const parse = value => {\n      const match = \/^(\\d{4})-(\\d{2})-(\\d{2})$\/.exec(value);\n      if (!match) return null;\n      const date = new Date(+match[1], +match[2] - 1, +match[3]); return key(date) === value ? date : null;\n    };\n    let selected = parse(input.value), focused = selected || new Date();\n    let view = new Date(focused.getFullYear(), focused.getMonth(), 1), composing = false, opener = input, restore = false;\n    let compositionEnding = false;\n    const exit = exitController(panel, () => {\n      panel.hidden = true; input.setAttribute('aria-expanded', 'false'); trigger.setAttribute('aria-expanded', 'false');\n      if (restore && opener.isConnected) opener.focus();\n    });\n    function render(moveFocus = false) {\n      title.textContent = view.toLocaleDateString('en-US', { month: 'long', year: 'numeric' });\n      grid.querySelectorAll('[data-dp-week]').forEach(row => row.remove());\n      const first = new Date(view.getFullYear(), view.getMonth(), 1 - view.getDay());\n      for (let week = 0; week < 6; week++) {\n        const row = document.createElement('div'); row.dataset.dpWeek = ''; row.setAttribute('role', 'row');\n        for (let day = 0; day < 7; day++) {\n          const date = new Date(first.getFullYear(), first.getMonth(), first.getDate() + week * 7 + day);\n          const cell = document.createElement('button'); cell.type = 'button'; cell.className = 'k-dp-day';\n          cell.setAttribute('role', 'gridcell'); cell.dataset.d = key(date); identify(cell, 'kata-date-day');\n          cell.textContent = date.getDate(); cell.setAttribute('aria-label', date.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' }));\n          cell.setAttribute('aria-selected', String(!!same(selected, date)));\n          cell.classList.toggle('out', date.getMonth() !== view.getMonth());\n          cell.classList.toggle('sel', !!same(selected, date)); cell.classList.toggle('today', !!same(new Date(), date));\n          if (same(new Date(), date)) cell.setAttribute('aria-current', 'date');\n          cell.tabIndex = same(focused, date) ? 0 : -1; row.append(cell);\n        }\n        grid.append(row);\n      }\n      if (moveFocus) grid.querySelector('[tabindex=\"0\"]')?.focus();\n    }\n    function close(focus = false) { if (!panel.hidden) { restore = focus; exit.close(); } }\n    function open(source = input) {\n      exit.cancel(); opener = source; focused = selected || focused;\n      view = new Date(focused.getFullYear(), focused.getMonth(), 1);\n      panel.hidden = false; input.setAttribute('aria-expanded', 'true'); trigger.setAttribute('aria-expanded', 'true'); render(true);\n    }\n    function monthMove(amount) {\n      const month = new Date(focused.getFullYear(), focused.getMonth() + amount, 1);\n      focused = new Date(month.getFullYear(), month.getMonth(), Math.min(focused.getDate(), new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate()));\n      view = new Date(focused.getFullYear(), focused.getMonth(), 1);\n    }\n    function select(date) {\n      if (!date || composing) return;\n      selected = date; focused = date;\n      input.value = date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });\n      input.dataset.date = key(date);\n      input.dispatchEvent(new Event('input', { bubbles: true })); input.dispatchEvent(new Event('change', { bubbles: true })); close(true);\n    }\n    [input, trigger].forEach(button => button.addEventListener('click', () => panel.hidden || panel.classList.contains('kata-closing') ? open(button) : close(true)));\n    root.querySelector('[data-dp-prev]')?.addEventListener('click', () => { monthMove(-1); render(); });\n    root.querySelector('[data-dp-next]')?.addEventListener('click', () => { monthMove(1); render(); });\n    grid.addEventListener('click', event => { const cell = event.target.closest('[data-d]'); if (cell && grid.contains(cell)) select(parse(cell.dataset.d)); });\n    grid.addEventListener('focusin', event => {\n      const cell = event.target.closest('[data-d]'); if (!cell) return;\n      focused = parse(cell.dataset.d); grid.querySelectorAll('[data-d]').forEach(day => { day.tabIndex = day === cell ? 0 : -1; });\n    });\n    root.addEventListener('compositionstart', () => { composing = true; });\n    root.addEventListener('compositionend', () => { composing = false; compositionEnding = true; setTimeout(() => { compositionEnding = false; }, 0); });\n    root.addEventListener('keydown', event => {\n      if (composing || compositionEnding || event.isComposing || event.keyCode === 229) return;\n      if (event.key === 'Escape' && !panel.hidden) { event.preventDefault(); close(true); return; }\n      if (panel.hidden && (event.target === input || event.target === trigger) && ['ArrowDown', 'Enter', ' '].includes(event.key)) { event.preventDefault(); open(event.target); return; }\n      if (panel.hidden || !event.target.closest('[data-d]')) return;\n      const horizontal = getComputedStyle(grid).direction === 'rtl' ? -1 : 1;\n      const movement = { ArrowLeft: -horizontal, ArrowRight: horizontal, ArrowUp: -7, ArrowDown: 7 };\n      if (event.key in movement) focused = new Date(focused.getFullYear(), focused.getMonth(), focused.getDate() + movement[event.key]);\n      else if (event.key === 'Home' || event.key === 'End') focused = new Date(focused.getFullYear(), focused.getMonth(), focused.getDate() + (event.key === 'Home' ? -focused.getDay() : 6 - focused.getDay()));\n      else if (event.key === 'PageUp' || event.key === 'PageDown') monthMove((event.key === 'PageUp' ? -1 : 1) * (event.shiftKey ? 12 : 1));\n      else if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); select(focused); return; }\n      else return;\n      event.preventDefault(); view = new Date(focused.getFullYear(), focused.getMonth(), 1); render(true);\n    });\n    root.addEventListener('focusout', event => { if (event.relatedTarget && !root.contains(event.relatedTarget)) close(); });\n    instances.push({ root, close });\n    input.setAttribute('aria-expanded', 'false'); trigger.setAttribute('aria-expanded', 'false'); render();\n  });\n  \/\/ One outside-press listener per script load, shared by its instances (contract item 11).\n  if (!instances.length) return;\n  document.addEventListener('pointerdown', event => { instances.forEach(instance => { if (!instance.root.contains(event.target)) instance.close(); }); });\n})();\n"},{"path":"components\/date-picker\/example.html","type":"registry:component","content":"<!-- KATA date-picker 1.1.0 \u2014 kata-ui.dev\/components\/date-picker \u2014 requires mold >= 4 -->\n<div class=\"k-dp\" data-dp style=\"max-width:300px\">\n  <label class=\"k-dp-label\" data-dp-label>Date<\/label>\n  <div class=\"wrap-in\">\n    <input class=\"input\" data-dp-input aria-label=\"Date\" type=\"text\" placeholder=\"Pick a date\" readonly aria-haspopup=\"dialog\" aria-expanded=\"false\">\n    <button class=\"cal-btn\" data-dp-btn type=\"button\" aria-label=\"Open calendar\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"16\" rx=\"2\"\/><path d=\"M3.5 10h17M8 3v4M16 3v4\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"k-dp-panel\" data-dp-panel role=\"dialog\" aria-label=\"Choose a date\" hidden>\n    <div class=\"k-dp-h\">\n      <button class=\"k-dp-nav\" data-dp-prev type=\"button\" aria-label=\"Previous month\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m15 6-6 6 6 6\"\/><\/svg><\/button>\n      <b data-dp-title><\/b>\n      <button class=\"k-dp-nav\" data-dp-next type=\"button\" aria-label=\"Next month\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/button>\n    <\/div>\n    <div class=\"k-dp-wd\"><span>Su<\/span><span>Mo<\/span><span>Tu<\/span><span>We<\/span><span>Th<\/span><span>Fr<\/span><span>Sa<\/span><\/div>\n    <div class=\"k-dp-grid\" data-dp-grid><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For single dates: deadlines, start dates, birthdays. Ranges and time are separate problems; this part does one day, completely.","accessibility":"The labelled readonly input opens a non-modal calendar dialog. Its grid has weekday headers, one tabbable day, selected-date state and aria-current for today. Arrows move by day\/week, Home\/End by week edge, PageUp\/Down by month, Shift+PageUp\/Down by year; Enter selects and Escape restores the opener. Month changes are announced politely. Horizontal arrows follow visual direction: in RTL, Left moves to the next day and Right to the previous day. An outside press (pointerdown) closes the calendar; one listener per script load serves every instance."},"audit":{"id":"components\/date-picker","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"dual-range","type":"registry:component","title":"Dual Range","description":"Two thumbs on one track: the price-range slider every filter sidebar actually needs.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/dual-range\/dual-range.css","type":"registry:component","content":"\/* KATA dual-range 1.1.0 \u2014 kata-ui.dev\/components\/dual-range \u2014 requires mold >= 2 *\/\n\/* KATA Dual Range \u2014 two thumbs, one honest track. *\/\n.k-dr{font-family:var(--k-font);color:var(--k-ink);width:100%;max-width:340px}\n.k-dr-track{position:relative;height:26px}\n.k-dr-track::before{content:\"\";position:absolute;left:0;right:0;top:11px;height:4px;border-radius:var(--k-radius-xs);background:var(--k-zinc-200)}\n.k-dr-fill{position:absolute;top:11px;height:4px;border-radius:var(--k-radius-xs);background:var(--k-accent);color:var(--k-on-accent)}\n.k-dr input[type=range]{position:absolute;left:0;top:0;width:100%;height:26px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none}\n.k-dr input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:19px;height:19px;border-radius:50%;background:var(--k-bg);border:2px solid var(--k-zinc-400);box-shadow:var(--k-shadow-sm);pointer-events:auto;cursor:grab}\n.k-dr input[type=range]::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:var(--k-bg);border:2px solid var(--k-zinc-400);box-shadow:var(--k-shadow-sm);pointer-events:auto;cursor:grab}\n.k-dr input[type=range]:focus-visible{outline:2px solid var(--k-ink);outline-offset:4px;border-radius:var(--k-radius-sm)}\n.k-dr-out{display:flex;justify-content:space-between;font-size:var(--k-text-base);margin-top:var(--k-space-2)}\n.k-dr-out output{font-weight:650;font-variant-numeric:tabular-nums}\n.k-dr-out span{color:var(--k-ink-3)}\n"},{"path":"components\/dual-range\/dual-range.js","type":"registry:component","content":"\/* KATA dual-range 1.1.0 \u2014 kata-ui.dev\/components\/dual-range \u2014 requires mold >= 2 *\/\n\/\/ KATA Dual Range \u2014 keeps the gap, paints the fill, mirrors the numbers.\ndocument.querySelectorAll('[data-dr]').forEach(function (root) {\n  var lo = root.querySelector('[data-dr-lo]');\n  var hi = root.querySelector('[data-dr-hi]');\n  var fill = root.querySelector('.k-dr-fill');\n  var outLo = root.querySelector('[data-dr-out-lo]');\n  var outHi = root.querySelector('[data-dr-out-hi]');\n  var GAP = Number(root.getAttribute('data-dr-gap') || 50);\n  var min = Number(lo.min), max = Number(lo.max);\n  var fmt = function (v) { return '$' + Number(v).toLocaleString('en-US'); };\n  function paint() {\n    var a = Number(lo.value), b = Number(hi.value);\n    var pa = (a - min) \/ (max - min) * 100, pb = (b - min) \/ (max - min) * 100;\n    fill.style.left = pa + '%';\n    fill.style.width = (pb - pa) + '%';\n    outLo.textContent = fmt(a);\n    outHi.textContent = fmt(b);\n    lo.setAttribute('aria-valuetext', fmt(a));\n    hi.setAttribute('aria-valuetext', fmt(b));\n  }\n  lo.addEventListener('input', function () { if (Number(lo.value) > Number(hi.value) - GAP) lo.value = Number(hi.value) - GAP; paint(); });\n  hi.addEventListener('input', function () { if (Number(hi.value) < Number(lo.value) + GAP) hi.value = Number(lo.value) + GAP; paint(); });\n  paint();\n});\n"},{"path":"components\/dual-range\/example.html","type":"registry:component","content":"<!-- KATA dual-range 1.1.0 \u2014 kata-ui.dev\/components\/dual-range \u2014 requires mold >= 2 -->\n<div class=\"k-dr\" data-dr data-dr-gap=\"50\">\n  <div class=\"k-dr-track\">\n    <span class=\"k-dr-fill\"><\/span>\n    <input type=\"range\" min=\"0\" max=\"1000\" step=\"10\" value=\"150\" data-dr-lo aria-label=\"Minimum price\">\n    <input type=\"range\" min=\"0\" max=\"1000\" step=\"10\" value=\"720\" data-dr-hi aria-label=\"Maximum price\">\n  <\/div>\n  <div class=\"k-dr-out\"><span>From <output data-dr-out-lo>$150<\/output><\/span><span>To <output data-dr-out-hi>$720<\/output><\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Two native range inputs share one track; the fill between the thumbs is the selection, and the script keeps a minimum gap so the thumbs cannot cross into nonsense. Values mirror into the outputs beside it \u2014 wire those to your filter, and the URL if you are serious. Steps, min and max are plain attributes on the inputs.","accessibility":"Both thumbs are real range inputs with their own labels (\"Minimum price\", \"Maximum price\"), fully keyboard-operable with arrow keys \u2014 only the overlapping track is custom paint. The visible numbers are outputs tied to the inputs, so what is announced is what is shown."},"audit":{"id":"components\/dual-range","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"field","type":"registry:component","title":"Field","description":"The wrapper every control deserves: a label, a hint, and an error that knows which input it belongs to.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/field\/field.css","type":"registry:component","content":"\/* KATA field 1.1.0 \u2014 kata-ui.dev\/components\/field \u2014 requires mold >= 4 *\/\n.k-field{display:grid;gap:var(--k-space-2);font-family:var(--k-font);text-align:start}\n.k-field .lab{display:flex;align-items:baseline;gap:var(--k-space-2);font-size:var(--k-text-base);font-weight:550;color:var(--k-ink)}\n.k-field .req{font-size:var(--k-text-xs);font-weight:500;color:var(--k-danger-ink)}\n.k-field .opt{font-size:var(--k-text-xs);font-weight:500;color:var(--k-ink-3)}\n.k-field .hint{font-size:var(--k-text-sm);color:var(--k-ink-3);line-height:var(--k-lh-small)}\n.k-field .err{display:flex;gap:var(--k-space-1);align-items:center;font-size:var(--k-text-sm);font-weight:500;color:var(--k-danger-ink)}\n.k-field[data-invalid] input,.k-field[data-invalid] textarea,.k-field[data-invalid] select{border-color:var(--k-danger)}\n\/* A label that wraps its control: text and badge on the first line, the control below at full width. *\/\n.k-field .lab:has(> :is(input,textarea,select,.k-select)){flex-wrap:wrap;row-gap:var(--k-space-2)}\n.k-field .lab > :is(input,textarea,select,.k-select){flex-basis:100%}\n\/* Controls size to the field including their padding and border, so a 100% wide input does not overflow it. *\/\n.k-field :is(input,textarea,select){box-sizing:border-box;max-width:100%}\n"},{"path":"components\/field\/field.js","type":"registry:component","content":"\/* KATA field 1.1.0 \u2014 kata-ui.dev\/components\/field \u2014 requires mold >= 4 *\/\n\/\/ Field: links the hint and, while the field is invalid, the error to the control\n\/\/ with aria-describedby, and keeps aria-invalid in step with data-invalid. Existing\n\/\/ IDs are kept; missing ones are generated, so a pasted sample can appear twice.\n\/\/ When data-invalid is added after load (for example on submit), the error gets\n\/\/ role=\"alert\" so it is announced once; it is not announced while typing.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-field-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n\n  function sync(field, announce) {\n    const control = field.querySelector('input, textarea, select');\n    if (!control) return;\n    const label = field.querySelector('label');\n    if (label && !label.contains(control) && !label.htmlFor) label.htmlFor = ensureId(control, 'control');\n    const hint = field.querySelector('.hint');\n    const err = field.querySelector('.err');\n    const invalid = field.hasAttribute('data-invalid');\n    const own = [hint, err].filter(Boolean).map(el => el.id).filter(Boolean);\n    const ids = (control.getAttribute('aria-describedby') || '').split(\/\\s+\/).filter(id => id && !own.includes(id));\n    if (hint) ids.push(ensureId(hint, 'hint'));\n    if (err && invalid) ids.push(ensureId(err, 'error'));\n    if (ids.length) control.setAttribute('aria-describedby', ids.join(' '));\n    else control.removeAttribute('aria-describedby');\n    if (invalid) control.setAttribute('aria-invalid', 'true');\n    else control.removeAttribute('aria-invalid');\n    if (err) {\n      if (invalid && announce) err.setAttribute('role', 'alert');\n      else if (!invalid) err.removeAttribute('role');\n    }\n  }\n\n  document.querySelectorAll('.k-field').forEach(field => {\n    if (field.hasAttribute('data-kata-ready')) return;\n    field.setAttribute('data-kata-ready', '');\n    sync(field, false);\n    new MutationObserver(() => sync(field, true)).observe(field, { attributes: true, attributeFilter: ['data-invalid'] });\n  });\n})();\n"},{"path":"components\/field\/example.html","type":"registry:component","content":"<!-- KATA field 1.1.0 \u2014 kata-ui.dev\/components\/field \u2014 requires mold >= 4 -->\n<div style=\"display:grid;gap:var(--k-space-4);max-width:430px\">\n  <div class=\"k-field\">\n    <label class=\"lab\">Workspace name <span class=\"opt\">Optional<\/span><input class=\"input\" type=\"text\" value=\"Acme Studio\"><\/label>\n    <p class=\"hint\">Shown in menus and the sidebar. You can change it later.<\/p>\n  <\/div>\n  <div class=\"k-field\" data-invalid>\n    <label class=\"lab\">Billing email <span class=\"req\">Required<\/span><input class=\"input\" type=\"email\" value=\"accounts@acme\" aria-invalid=\"true\"><\/label>\n    <p class=\"err\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\"\/><path d=\"m9.5 9.5 5 5m0-5-5 5\"\/><\/svg> That address is missing its domain.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Wrap any single control in a Field so labels, hints and errors stay attached. Stack Fields with a consistent gap and a form stops looking improvised.","accessibility":"The label wraps its control, so the name works without IDs or script. field.js (optional, IIFE, safe to load twice, one MutationObserver per field) links the hint, and the error while data-invalid is set, with aria-describedby using generated IDs; it keeps existing IDs and author descriptions and keeps aria-invalid in step with data-invalid. An error present at load is not announced; when data-invalid is added later (for example on submit) the error gets role=\"alert\" once, not while typing. Label, badge, hint and error text measure at least 4.83:1 in light and dark. Controls inside a Field size with box-sizing:border-box so they fit it. Beta until a screen reader and real IME input are checked by hand. Checked in Chromium only."},"audit":{"id":"components\/field","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"file-upload","type":"registry:component","title":"File Upload","description":"A dropzone that says what it accepts, and a list that shows what it got.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/file-upload\/file-upload.css","type":"registry:component","content":"\/* KATA file-upload 1.1.0 \u2014 kata-ui.dev\/components\/file-upload \u2014 requires mold >= 3 *\/\n.k-up{font-family:var(--k-font);text-align:start}\n.k-up-zone{position:relative;display:grid;justify-items:center;gap:var(--k-space-2);border:1.5px dashed var(--k-border-strong);border-radius:var(--k-radius-xl);padding:var(--k-space-6) var(--k-space-4);text-align:center;cursor:pointer;color:var(--k-ink-2);transition:border-color var(--k-dur-fast),background var(--k-dur-fast)}\n.k-up-zone:hover:not(:has(input:disabled)){border-color:var(--k-accent);background:var(--k-accent-bg)}\n.k-up-zone:active:not(:has(input:disabled)){border-color:var(--k-accent);background:var(--k-bg-soft)}\n\/* On the tinted hover\/drag background --k-ink-3 measured 4.48:1; the hint steps up to --k-ink-2. *\/\n.k-up-zone:hover:not(:has(input:disabled)) > span:not(.ic),.k-up-zone.drag > span:not(.ic){color:var(--k-ink-2)}\n.k-up-zone:has(input:disabled){opacity:.45;cursor:not-allowed}\n.k-up-zone.drag{border-color:var(--k-accent);background:var(--k-accent-bg)}\n.k-up-zone .ic{color:var(--k-ink-3);display:grid;place-items:center}\n.k-up-zone b{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink)}\n.k-up-zone b u{text-decoration-color:var(--k-accent);text-underline-offset:3px}\n.k-up-zone span{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-up-list{list-style:none;margin:0;margin-block-start:var(--k-space-3);padding:0;display:grid;gap:var(--k-space-2)}\n.k-up-item{display:flex;align-items:center;gap:var(--k-space-3);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-2) var(--k-space-3);background:var(--k-bg)}\n.k-up-item .fi{color:var(--k-ink-3);display:grid;place-items:center;flex:none}\n.k-up-item .nm{font-size:var(--k-text-base);font-weight:550;color:var(--k-ink);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-up-item .sz{font-size:var(--k-text-xs);color:var(--k-ink-3);font-family:var(--k-mono)}\n.k-up-item .rm{width:26px;height:26px;border:none;background:transparent;color:var(--k-ink-3);border-radius:var(--k-radius-md);display:grid;place-items:center;cursor:pointer;flex:none}\n.k-up-item .rm:hover{background:var(--k-bg-soft);color:var(--k-danger-ink)}\n.k-up-item .rm:active{background:var(--k-line);color:var(--k-danger-ink)}\n\n.k-up-zone input[type=file]{position:absolute;inset-block-start:0;inset-inline-start:0;width:var(--k-space-1);height:var(--k-space-1);opacity:0;clip-path:inset(50%);overflow:hidden}\n.k-up-zone input[type=file]:focus-visible{outline:0}\n.k-up-zone:has(input[type=file]:focus-visible){border-color:var(--k-accent);box-shadow:var(--k-ring)}\n.k-up-item .rm:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.k-up-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"components\/file-upload\/file-upload.js","type":"registry:component","content":"\/* KATA file-upload 1.1.0 \u2014 kata-ui.dev\/components\/file-upload \u2014 requires mold >= 3 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  function size(bytes) {\n    return bytes > 1048576 ? (bytes \/ 1048576).toFixed(1) + ' MB' : Math.max(1, Math.round(bytes \/ 1024)) + ' KB';\n  }\n\n  document.querySelectorAll('[data-upload]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const input = root.querySelector('input[type=\"file\"]');\n    const zone = root.querySelector('.k-up-zone');\n    const list = root.querySelector('[data-up-list]');\n    if (!input || !zone || !list) return;\n    root.dataset.kataReady = 'true';\n    identify(root, 'kata-upload'); identify(input, 'kata-upload-input');\n    \/\/ A hidden input cannot take focus; the visually hidden input keeps keyboard browsing.\n    input.hidden = false;\n    input.classList.add('k-up-in');\n    const status = document.createElement('span');\n    status.className = 'k-up-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-upload-status'); root.append(status);\n    let depth = 0;\n\n    const nameOf = item => (item.querySelector('.nm')?.textContent || '').trim();\n    function prepare(item) {\n      const button = item.querySelector('.rm');\n      if (!button) return;\n      button.type = 'button';\n      button.setAttribute('aria-label', 'Remove ' + nameOf(item));\n    }\n    list.querySelectorAll('.k-up-item').forEach(prepare);\n\n    function add(files) {\n      const added = [...files];\n      if (!added.length) return;\n      added.forEach(file => {\n        const item = document.createElement('li'); item.className = 'k-up-item';\n        const icon = document.createElement('span'); icon.className = 'fi';\n        \/\/ Icons are application-owned markup; file names only use textContent.\n        icon.innerHTML = list.dataset.icon || '';\n        const name = document.createElement('span'); name.className = 'nm'; name.textContent = file.name;\n        const bytes = document.createElement('span'); bytes.className = 'sz'; bytes.textContent = size(file.size);\n        const button = document.createElement('button'); button.className = 'rm'; button.type = 'button';\n        if (list.dataset.rmIcon) button.innerHTML = list.dataset.rmIcon; else button.textContent = '\u00d7';\n        item.append(icon, name, bytes, button); prepare(item); list.append(item);\n      });\n      const names = added.map(file => file.name);\n      status.textContent = (names.length === 1 ? 'Added ' : 'Added ' + names.length + ' files: ') + names.join(', ') + '.';\n      root.dispatchEvent(new CustomEvent('kata-file-upload-add', { bubbles: true, detail: { files: added } }));\n    }\n    function remove(item) {\n      const items = [...list.querySelectorAll('.k-up-item')], index = items.indexOf(item), name = nameOf(item);\n      item.remove();\n      const next = list.querySelectorAll('.k-up-item')[Math.min(index, items.length - 2)];\n      (next?.querySelector('.rm') || input).focus();\n      status.textContent = 'Removed ' + name + '.';\n      root.dispatchEvent(new CustomEvent('kata-file-upload-remove', { bubbles: true, detail: { name } }));\n    }\n\n    input.addEventListener('change', () => { add(input.files); input.value = ''; });\n    list.addEventListener('click', event => {\n      const button = event.target.closest('.rm');\n      if (button && list.contains(button)) remove(button.closest('.k-up-item'));\n    });\n    \/\/ A depth count keeps child elements from flickering this zone's drag state.\n    zone.addEventListener('dragenter', event => { event.preventDefault(); depth++; zone.classList.add('drag'); });\n    zone.addEventListener('dragover', event => { event.preventDefault(); });\n    zone.addEventListener('dragleave', () => { depth = Math.max(0, depth - 1); if (!depth) zone.classList.remove('drag'); });\n    zone.addEventListener('drop', event => {\n      event.preventDefault(); depth = 0; zone.classList.remove('drag');\n      if (event.dataTransfer) add(event.dataTransfer.files);\n    });\n  });\n})();\n"},{"path":"components\/file-upload\/example.html","type":"registry:component","content":"<!-- KATA file-upload 1.1.0 \u2014 kata-ui.dev\/components\/file-upload \u2014 requires mold >= 3 -->\n<div class=\"k-up\" data-upload style=\"max-width:430px\">\n  <label class=\"k-up-zone\">\n    <input type=\"file\" multiple>\n    <span class=\"ic\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 15V3M7 8l5-5 5 5\"\/><path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\"\/><\/svg><\/span>\n    <b>Drop files here, or <u>browse<\/u><\/b>\n    <span>PNG, JPG or PDF \u2014 up to 10 MB each<\/span>\n  <\/label>\n  <ul class=\"k-up-list\" data-up-list data-rm-icon=\"<svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.7&quot; stroke-linecap=&quot;square&quot; stroke-linejoin=&quot;bevel&quot; aria-hidden=&quot;true&quot;><path d=&quot;M6 6l12 12M18 6 6 18&quot;\/><\/svg>\" data-icon=\"<svg width=&quot;17&quot; height=&quot;17&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;><path d=&quot;M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z&quot;\/><path d=&quot;M14 3v5h5&quot;\/><\/svg>\">\n    <li class=\"k-up-item\"><span class=\"fi\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">q3-board-deck.pdf<\/span><span class=\"sz\">2.4 MB<\/span><button class=\"rm\" type=\"button\" aria-label=\"Remove q3-board-deck.pdf\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/li>\n  <\/ul>\n<\/div>"}],"meta":{"status":"beta","usage":"For attachments and imports. State the accepted types and the size limit on the zone itself, where people see it before choosing a file. The part only lists files; your code keeps or uploads them:\n\n```js\ndocument.addEventListener('kata-file-upload-add', event => {\n  console.log(event.detail.files);\n});\n```\nUse kata-file-upload-remove (detail.name) for removals. The part does not check types or sizes; validate in your code.","accessibility":"The zone is a label for a real file input. The input is visually hidden but focusable, so Tab reaches it and Space opens the browser's picker (Enter depends on the browser); the zone shows the focus ring. Browsed and dropped files join the same list. Each remove button is named after its file, and focus moves to the next remove button (or back to the input). A status region announces added and removed file names. Drag highlighting belongs to each zone. The hint text steps up to --k-ink-2 on the tinted hover and drag background (7.16:1 light, 6.24:1 dark). A disabled input dims the zone and removes its hover tint. Screen-reader output and the native picker on each browser are not yet verified by hand."},"audit":{"id":"components\/file-upload","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"input","type":"registry:component","title":"Input","description":"Labels, helper text, error states and a search variant. A focus ring wraps the field.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/input\/input.css","type":"registry:component","content":"\/* KATA input 1.1.0 \u2014 kata-ui.dev\/components\/input \u2014 requires mold >= 3 *\/\n.field{display:flex;flex-direction:column;gap:var(--k-space-1);min-width:230px;flex:1;max-width:300px;font-family:var(--k-font)}\n.field label{font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink)}\n.field .hint{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.field .err{font-size:var(--k-text-sm);color:var(--k-danger-ink)}\n\/* A label that wraps its input needs no id\/for, so a pasted sample can appear twice. *\/\n.field label:has(> .input,> .searchwrap){display:grid;gap:var(--k-space-1)}\n.input{-webkit-appearance:none;appearance:none;height:38px;border:1px solid var(--k-line);border-radius:var(--k-radius);padding:0 var(--k-space-3);font-family:var(--k-font);font-size:var(--k-text-base);background:var(--k-bg);color:var(--k-ink);box-shadow:var(--k-shadow-xs);width:100%;box-sizing:border-box}\n.input::placeholder{color:var(--k-ink-3)}\n.input:focus-visible{outline:0;border-color:var(--k-ink);box-shadow:var(--k-ring)}\n\/* aria-invalid is the accessible error state; .errb stays as the visual class. *\/\n.input.errb,.input[aria-invalid=\"true\"]{border-color:var(--k-danger)}\n.input.errb:focus-visible,.input[aria-invalid=\"true\"]:focus-visible{border-color:var(--k-danger);box-shadow:var(--k-ring)}\n.input:disabled{background:var(--k-bg-soft);color:var(--k-ink-3);box-shadow:none;cursor:not-allowed}\n.input[readonly]:not(:disabled){background:var(--k-bg-soft)}\n.searchwrap{position:relative;display:block}\n.searchwrap svg{position:absolute;inset-inline-start:var(--k-space-3);top:50%;transform:translateY(-50%);pointer-events:none}\n.searchwrap .input{padding-inline-start:var(--k-space-8)}\n\/* iOS: fields under 16px make Safari zoom the page on focus \u2014 16px on small screens (the mold, KATA.md) *\/\n@media (max-width:640px){.input{font-size:var(--k-text-lg)}}\n"},{"path":"components\/input\/example.html","type":"registry:component","content":"<!-- KATA input 1.1.0 \u2014 kata-ui.dev\/components\/input \u2014 requires mold >= 3 -->\n<div class=\"field\"><label>Email<input class=\"input\" placeholder=\"you@example.com\"><\/label><span class=\"hint\">Used for invoice delivery<\/span><\/div>\n<div class=\"field\"><label>Full name<input aria-invalid=\"true\" class=\"input errb\" value=\"tanaka\"><\/label><span class=\"err\">Please enter your full name<\/span><\/div>\n<div class=\"field\"><label>Search<span class=\"searchwrap\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" style=\"color:var(--k-ink-3)\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"M20 20l-3.5-3.5\"\/><\/svg><input class=\"input\" placeholder=\"Search components\u2026\"><\/span><\/label><\/div>"}],"meta":{"status":"beta","usage":"Always pair with a visible label. Put helper text under the field; replace it with the error message when validation fails.","accessibility":"Each input is named by a <label> that wraps it, so samples carry no id\/for and can be pasted twice; the visible label stays above the field. Errors set aria-invalid=\"true\" (styled like .errb) and show text, not color alone. The hint and error text are not linked to the input for screen readers: add aria-describedby with ids that are unique in your page. Keyboard focus shows --k-ring (3:1 measured in light and dark). Disabled inputs use the native attribute, a soft background and muted text and are skipped by Tab; read-only inputs stay focusable. Enabled text measures at least 4.83:1 in both themes (docs\/review\/input). The search icon is aria-hidden and sits at the inline start, so it moves to the right in RTL. Fields use 16px or more below 640px so iOS Safari does not zoom. No JavaScript. Beta until manual checks are recorded: a screen reader (VoiceOver or NVDA) and real IME input (Japanese kana-kanji conversion) in the field. Checked in Chromium only."},"audit":{"id":"components\/input","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"input-group","type":"registry:component","title":"Input Group","description":"An input with its addons attached: a prefix, a suffix, or a button sharing the same outline.","categories":["Form & Input"],"dependencies":["button","input"],"files":[{"path":"components\/input-group\/input-group.css","type":"registry:component","content":"\/* KATA input-group 1.1.0 \u2014 kata-ui.dev\/components\/input-group \u2014 requires mold >= 4 *\/\n\/* KATA Input Group \u2014 addons sharing the input's outline. *\/\n.k-igroup{display:flex;align-items:stretch;font-family:var(--k-font);max-width:340px}\n.k-igroup .input{border-radius:0;margin-inline-start:calc(var(--k-space-px) * -1);position:relative}\n.k-igroup .input:first-child{border-start-start-radius:var(--k-radius);border-end-start-radius:var(--k-radius);margin-inline-start:0}\n.k-igroup .input:last-child{border-start-end-radius:var(--k-radius);border-end-end-radius:var(--k-radius)}\n.k-igroup .input:focus{z-index:1}\n.k-ig-addon{display:flex;align-items:center;padding:0 var(--k-space-3);background:var(--k-bg-soft);border:1px solid var(--k-line);color:var(--k-ink-2);font-size:var(--k-text-base);margin-inline-start:calc(var(--k-space-px) * -1);white-space:nowrap}\n.k-ig-addon:first-child{border-start-start-radius:var(--k-radius);border-end-start-radius:var(--k-radius);margin-inline-start:0}\n.k-ig-addon:last-child{border-start-end-radius:var(--k-radius);border-end-end-radius:var(--k-radius)}\n.k-igroup .btn{border-radius:0;margin-inline-start:calc(var(--k-space-px) * -1);position:relative}\n.k-igroup .btn:last-child{border-start-end-radius:var(--k-radius);border-end-end-radius:var(--k-radius)}\n.k-igroup .btn:first-child{border-start-start-radius:var(--k-radius);border-end-start-radius:var(--k-radius);margin-inline-start:0}\n"},{"path":"components\/input-group\/example.html","type":"registry:component","content":"<!-- KATA input-group 1.1.0 \u2014 kata-ui.dev\/components\/input-group \u2014 requires mold >= 4 -->\n<div style=\"display:flex;flex-direction:column;gap:var(--k-space-3)\">\n  <div class=\"k-igroup\">\n    <span class=\"k-ig-addon\">https:\/\/<\/span>\n    <input class=\"input\" type=\"text\" value=\"northwind.example\" aria-label=\"Site address\">\n    <span class=\"k-ig-addon\">.dev<\/span>\n  <\/div>\n  <div class=\"k-igroup\">\n    <span class=\"k-ig-addon\">\u00a5<\/span>\n    <input class=\"input\" type=\"text\" inputmode=\"numeric\" value=\"12,000\" aria-label=\"Amount in yen\">\n    <button class=\"btn btn-pri btn-md\" type=\"button\">Charge<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"One outline for the whole row: the group draws the seams, the Input part keeps its own focus ring. Text addons are for units and fixed prefixes (\u00a5, https:\/\/); anything clickable should be a real button at the end.","accessibility":"The addon is decoration for the eye \u2014 the label and the placeholder must carry the unit on their own (\"Amount in yen\", not just \"Amount\"). Attached buttons are ordinary buttons with ordinary names."},"audit":{"id":"components\/input-group","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"input-otp","type":"registry:component","title":"Input OTP","description":"Six boxes for a code that arrives somewhere else \u2014 typed, pasted, or autofilled as one.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/input-otp\/input-otp.css","type":"registry:component","content":"\/* KATA input-otp 1.1.0 \u2014 kata-ui.dev\/components\/input-otp \u2014 requires mold >= 3 *\/\n.k-otp{display:flex;gap:var(--k-space-2);align-items:center;font-family:var(--k-font)}\n.k-otp input{-webkit-appearance:none;appearance:none;width:44px;height:50px;border:1px solid var(--k-line);border-radius:var(--k-radius-lg);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-mono);font-size:var(--k-text-xl);font-weight:600;text-align:center;outline:none;transition:border-color var(--k-dur-fast), box-shadow var(--k-dur-fast)}\n.k-otp input:focus{border-color:var(--k-accent);box-shadow:var(--k-ring)}\n.k-otp .gap{width:10px;height:2px;border-radius:var(--k-radius-xs);background:var(--k-line)}\n\n.k-otp input:focus-visible{outline:0;box-shadow:var(--k-ring)}\n"},{"path":"components\/input-otp\/input-otp.js","type":"registry:component","content":"\/* KATA input-otp 1.1.0 \u2014 kata-ui.dev\/components\/input-otp \u2014 requires mold >= 3 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-otp]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const inputs = [...root.querySelectorAll('input')]; if (!inputs.length) return;\n    root.dataset.kataReady = 'true'; root.dir = 'ltr'; identify(root, 'kata-otp');\n    let composing = false, finishing = false, completed = '';\n    function update() {\n      const value = inputs.map(input => input.value).join(''); root.dataset.value = value;\n      if (inputs.every(input => \/^\\d$\/.test(input.value))) {\n        if (completed !== value) { completed = value; root.dispatchEvent(new Event('change', { bubbles: true })); }\n      } else completed = '';\n    }\n    function fill(index, value) {\n      const digits = value.replace(\/\\D\/g, '');\n      if (!digits) { inputs[index].value = ''; update(); return; }\n      const next = digits.slice(0, inputs.length - index);\n      [...next].forEach((digit, offset) => { inputs[index + offset].value = digit; });\n      inputs[Math.min(index + next.length, inputs.length - 1)].focus(); update();\n    }\n    inputs.forEach((input, index) => {\n      identify(input, 'kata-otp-digit'); input.inputMode = 'numeric';\n      if (!input.hasAttribute('aria-label') && !input.labels?.length) input.setAttribute('aria-label', 'Digit ' + (index + 1));\n      input.autocomplete = index === 0 ? 'one-time-code' : 'off';\n      input.addEventListener('focus', () => input.select());\n      input.addEventListener('input', event => { if (!composing && !finishing && !event.isComposing) fill(index, input.value); });\n      input.addEventListener('keydown', event => {\n        if (composing || finishing || event.isComposing || event.keyCode === 229) return;\n        if (event.key === 'Backspace') { event.preventDefault(); input.value = ''; inputs[Math.max(0, index - 1)].focus(); update(); }\n        if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {\n          event.preventDefault(); inputs[Math.max(0, Math.min(inputs.length - 1, index + (event.key === 'ArrowRight' ? 1 : -1)))].focus();\n        }\n        if (event.key === 'Enter') event.preventDefault();\n      });\n      input.addEventListener('paste', event => {\n        if (composing || finishing) return;\n        event.preventDefault(); fill(index, event.clipboardData?.getData('text') || '');\n      });\n    });\n    root.addEventListener('compositionstart', () => { composing = true; });\n    root.addEventListener('compositionend', event => {\n      composing = false; finishing = true;\n      const index = inputs.indexOf(event.target); if (index >= 0) fill(index, event.target.value);\n      setTimeout(() => { finishing = false; }, 0);\n    });\n    root.dataset.value = inputs.map(input => input.value).join('');\n  });\n})();\n"},{"path":"components\/input-otp\/example.html","type":"registry:component","content":"<!-- KATA input-otp 1.1.0 \u2014 kata-ui.dev\/components\/input-otp \u2014 requires mold >= 3 -->\n<div class=\"k-otp\" data-otp dir=\"ltr\" role=\"group\" aria-label=\"Verification code\">\n  <input type=\"text\" inputmode=\"numeric\" autocomplete=\"one-time-code\" aria-label=\"Digit 1\" value=\"4\">\n  <input type=\"text\" inputmode=\"numeric\" aria-label=\"Digit 2\" value=\"8\">\n  <input type=\"text\" inputmode=\"numeric\" aria-label=\"Digit 3\" value=\"2\">\n  <span class=\"gap\"><\/span>\n  <input type=\"text\" inputmode=\"numeric\" aria-label=\"Digit 4\">\n  <input type=\"text\" inputmode=\"numeric\" aria-label=\"Digit 5\">\n  <input type=\"text\" inputmode=\"numeric\" aria-label=\"Digit 6\">\n<\/div>"}],"meta":{"status":"beta","usage":"For verification codes and short PINs. Each digit is a separate native tab stop; paste or autofill a complete code when available. Listen to completion on the group, distinguishing it from native per-digit changes:\n\n```js\ndocument.addEventListener('change', event => {\n  if (event.target.matches('[data-otp]')) console.log(event.target.dataset.value);\n});\n```","accessibility":"Each digit is a labelled numeric input; the first supports one-time-code autocomplete. Digits stay left-to-right inside RTL pages. Typing advances, Backspace clears and moves back, Left\/Right move visually, and paste\/autofill distributes digits within one instance. IME composition is guarded. A completed changed code emits a bubbling change on the group."},"audit":{"id":"components\/input-otp","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"radio","type":"registry:component","title":"Radio group","description":"One choice from a visible set. The dot scales in; nothing else moves.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/radio\/radio.css","type":"registry:component","content":"\/* KATA radio 1.1.0 \u2014 kata-ui.dev\/components\/radio \u2014 requires mold >= 4 *\/\n\/* KATA Radio \u2014 native input, styled face. No JS. *\/\n\/* The unchecked border uses --k-ink-3: --k-border-strong measured 1.65:1 (light) and 2.29:1 (dark), below the 3:1 WCAG 1.4.11 asks of a control boundary. *\/\n.k-radio{display:inline-flex;align-items:center;gap:var(--k-space-2);font-size:var(--k-text-base);cursor:pointer}\n.k-radio input{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin:0;border:1.5px solid var(--k-ink-3);border-radius:50%;background:var(--k-bg);display:grid;place-content:center;cursor:pointer;transition:border-color var(--k-dur-fast);flex:none}\n.k-radio input::after{content:\"\";width:9px;height:9px;border-radius:50%;background:var(--k-core);transform:scale(0);transition:transform var(--k-dur-fast) var(--k-ease)}\n.k-radio input:hover:not(:disabled):not(:checked){border-color:var(--k-ink-2)}\n.k-radio input:checked{border-color:var(--k-ink)}\n.k-radio input:checked::after{transform:scale(1)}\n.k-radio input:focus-visible{outline:none;box-shadow:var(--k-ring)}\n.k-radio input[aria-invalid=\"true\"]:not(:checked){border-color:var(--k-danger)}\n.k-radio input:disabled{opacity:.5;cursor:not-allowed}\n.k-radio:has(input:disabled){color:var(--k-ink-3);cursor:not-allowed}\n"},{"path":"components\/radio\/example.html","type":"registry:component","content":"<!-- KATA radio 1.1.0 \u2014 kata-ui.dev\/components\/radio \u2014 requires mold >= 4 -->\n<fieldset style=\"border:0;padding:0;margin:0;display:grid;gap:var(--k-space-2)\">\n  <legend style=\"font-size:var(--k-text-sm);font-weight:550;margin-bottom:var(--k-space-0-5)\">Billing cycle<\/legend>\n  <label class=\"k-radio\"><input type=\"radio\" name=\"cycle\" checked> Monthly<\/label>\n  <label class=\"k-radio\"><input type=\"radio\" name=\"cycle\"> Yearly <span style=\"color:var(--k-accent-ink);font-size:var(--k-text-sm);font-weight:600\">\u221220%<\/span><\/label>\n  <label class=\"k-radio\"><input type=\"radio\" name=\"cycle\" disabled> Lifetime (sold out)<\/label>\n<\/fieldset>"}],"meta":{"status":"beta","usage":"Use when all options deserve to be seen (2\u20135). For longer lists use Select. Group with fieldset\/legend.","accessibility":"Native radio inputs in a fieldset with a legend; inputs in one group share a name, so arrow keys move the choice and skip disabled options. The visible circle is the real input; keyboard focus shows --k-ring. The unchecked boundary measures 4.83:1 (light) and 5.6:1 (dark), above WCAG 1.4.11's 3:1 (it was 1.65:1 and 2.29:1). Hover, aria-invalid and disabled are styled; disabled is dimmed, not-allowed and cannot be chosen. Give each group a name unique in its form, including when a sample is pasted twice. IME does not apply. Beta until a screen reader is checked by hand; Chromium only."},"audit":{"id":"components\/radio","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"rating","type":"registry:component","title":"Rating","description":"Five stars, no JavaScript \u2014 a radio group wearing its meaning on its face.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/rating\/rating.css","type":"registry:component","content":"\/* KATA rating 1.1.0 \u2014 kata-ui.dev\/components\/rating \u2014 requires mold >= 4 *\/\n.k-rate{display:inline-flex;flex-direction:row-reverse;gap:var(--k-space-1);font-family:var(--k-font)}\n.k-rate input{position:absolute;opacity:0;width:1px;height:1px}\n.k-rate label{cursor:pointer;color:var(--k-border-strong);display:grid;place-items:center;padding:var(--k-space-0-5)}\n.k-rate label svg path{fill:none;transition:fill var(--k-dur-fast)}\n.k-rate input:checked ~ label{color:var(--k-accent-ink)}\n.k-rate input:checked ~ label svg path{fill:currentColor}\n.k-rate label:hover,.k-rate label:hover ~ label{color:var(--k-accent-ink)}\n.k-rate input:focus-visible + label{outline:2px solid var(--k-ink);outline-offset:2px;border-radius:var(--k-radius-sm)}\n"},{"path":"components\/rating\/example.html","type":"registry:component","content":"<!-- KATA rating 1.1.0 \u2014 kata-ui.dev\/components\/rating \u2014 requires mold >= 4 -->\n<fieldset style=\"border:none;margin:0;padding:0\">\n  <legend style=\"font-size:var(--k-text-base);font-weight:550;margin-bottom:var(--k-space-2)\">How was the session?<\/legend>\n  <div class=\"k-rate\"><input type=\"radio\" name=\"k-rate-demo\" id=\"kr5\" value=\"5\"><label for=\"kr5\" aria-label=\"Rate 5 of 5\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/label><input type=\"radio\" name=\"k-rate-demo\" id=\"kr4\" value=\"4\" checked><label for=\"kr4\" aria-label=\"Rate 4 of 5\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/label><input type=\"radio\" name=\"k-rate-demo\" id=\"kr3\" value=\"3\"><label for=\"kr3\" aria-label=\"Rate 3 of 5\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/label><input type=\"radio\" name=\"k-rate-demo\" id=\"kr2\" value=\"2\"><label for=\"kr2\" aria-label=\"Rate 2 of 5\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/label><input type=\"radio\" name=\"k-rate-demo\" id=\"kr1\" value=\"1\"><label for=\"kr1\" aria-label=\"Rate 1 of 5\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/label><\/div>\n<\/fieldset>"}],"meta":{"status":"beta","usage":"For reviews and satisfaction scores. The stars are decoration; the radio group underneath is the actual control, so forms and keyboards just work.","accessibility":"Real radio inputs with text labels available to screen readers (\"Rate 4 of 5\"). Hover preview is pointer-only; the checked state never depends on it."},"audit":{"id":"components\/rating","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"segmented","type":"registry:component","title":"Segmented control","description":"A row of radios wearing one pill. Switching views or modes, cast as a single control.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/segmented\/segmented.css","type":"registry:component","content":"\/* KATA segmented 1.1.0 \u2014 kata-ui.dev\/components\/segmented \u2014 requires mold >= 4 *\/\n\/* KATA Segmented \u2014 radios in one pill. No JS. *\/\n.k-seg{display:inline-flex;gap:var(--k-space-0-5);padding:var(--k-space-1);border-radius:var(--k-radius-lg);background:var(--k-seg)}\n.k-seg-item{position:relative}\n.k-seg-item input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}\n.k-seg-item span{display:flex;align-items:center;height:27px;padding:0 var(--k-space-3);border-radius:var(--k-radius-md);font-size:var(--k-text-sm);color:var(--k-ink-2);transition:background var(--k-dur-fast),color var(--k-dur-fast);white-space:nowrap}\n.k-seg-item input:checked + span{background:var(--k-bg);color:var(--k-ink);font-weight:550;box-shadow:var(--k-shadow-xs)}\n.k-seg-item input:focus-visible + span{box-shadow:var(--k-ring)}\n.k-seg-item input:disabled + span{opacity:.5;cursor:not-allowed}\n.k-seg-item:hover input:not(:checked):not(:disabled) + span{color:var(--k-ink)}\n"},{"path":"components\/segmented\/example.html","type":"registry:component","content":"<!-- KATA segmented 1.1.0 \u2014 kata-ui.dev\/components\/segmented \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-3);flex-wrap:wrap;align-items:center\">\n  <div class=\"k-seg\" role=\"radiogroup\" aria-label=\"Range\">\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"range\" checked><span>Day<\/span><\/label>\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"range\"><span>Week<\/span><\/label>\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"range\"><span>Month<\/span><\/label>\n  <\/div>\n  <div class=\"k-seg\" role=\"radiogroup\" aria-label=\"Density\">\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"density\"><span>Comfort<\/span><\/label>\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"density\" checked><span>Compact<\/span><\/label>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For 2\u20134 mutually exclusive modes that switch content in place (Day \/ Week \/ Month). For settings that submit with a form, Tabs or Radio group may fit better.","accessibility":"Real radio inputs underneath, so arrow keys and screen readers behave. The pill is presentation only; the group is a named radiogroup and each segment is named by its label text. Each group needs its own name attribute: a sample pasted twice with the same names joins one radio group. Unchecked text measures 6.55:1 light \/ 5.81:1 dark on the segment track; the selected segment 17.72:1 \/ 16.12:1. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/segmented","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"select","type":"registry:component","title":"Select","description":"A native select, dressed in KATA tokens. The platform picker and keyboard support come free.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/select\/select.css","type":"registry:component","content":"\/* KATA select 1.1.0 \u2014 kata-ui.dev\/components\/select \u2014 requires mold >= 4 *\/\n\/* KATA Select \u2014 native <select>, token-styled. No JS. *\/\n.k-select{position:relative;display:inline-block}\n\/* Logical padding keeps the chevron's room on the inline end, so RTL text does not run under it. *\/\n.k-select select{appearance:none;-webkit-appearance:none;height:38px;max-width:100%;padding-block:0;padding-inline:var(--k-space-3) var(--k-space-8);border:1px solid var(--k-line);border-radius:var(--k-radius);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font);font-size:var(--k-text-base);cursor:pointer;transition:border-color var(--k-dur-fast)}\n.k-select select:hover:not(:disabled){border-color:var(--k-border-strong)}\n.k-select select:focus-visible{outline:none;border-color:var(--k-ink);box-shadow:var(--k-ring)}\n.k-select select:disabled{opacity:.5;cursor:not-allowed}\n\/* aria-invalid is the accessible error state, as in Input and Textarea. *\/\n.k-select select[aria-invalid=\"true\"]{border-color:var(--k-danger)}\n.k-select select[aria-invalid=\"true\"]:focus-visible{border-color:var(--k-danger);box-shadow:var(--k-ring)}\n.k-select svg{position:absolute;inset-inline-end:var(--k-space-2);top:50%;transform:translateY(-50%);pointer-events:none;color:var(--k-ink-3)}\n.k-select[data-size=\"sm\"] select{height:32px;font-size:var(--k-text-sm)}\n.k-select[data-size=\"lg\"] select{height:44px;font-size:var(--k-text-md)}\n\/* iOS: fields under 16px make Safari zoom the page on focus \u2014 16px on small screens (the mold, KATA.md) *\/\n@media (max-width:640px){.k-select select,.k-select[data-size=\"sm\"] select,.k-select[data-size=\"lg\"] select{font-size:var(--k-text-lg)}}\n\n.k-select-examples{display:flex;gap:var(--k-space-3);flex-wrap:wrap;align-items:flex-end}\n\/* The native option list follows the KATA theme. Scoped to the select: the part no longer sets color-scheme on :root. *\/\n.k-select select{color-scheme:light}\n[data-theme=\"dark\"] .k-select select{color-scheme:dark}\n@media(prefers-color-scheme:dark){:root:not([data-theme]) .k-select select{color-scheme:dark}}\n"},{"path":"components\/select\/example.html","type":"registry:component","content":"<!-- KATA select 1.1.0 \u2014 kata-ui.dev\/components\/select \u2014 requires mold >= 4 -->\n<div class=\"k-select-examples\">\n  <div class=\"field\"><label>Plan\n    <span class=\"k-select\"><select><option>Starter<\/option><option selected>Studio<\/option><option>Scale<\/option><\/select><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span>\n  <\/label><\/div>\n  <div class=\"field\"><label>Region\n    <span class=\"k-select\"><select><option selected>Tokyo<\/option><option>Osaka<\/option><option>Remote<\/option><\/select><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span>\n  <\/label><\/div>\n  <div class=\"field\"><label>Availability<span class=\"k-select\"><select disabled><option>Locked<\/option><\/select><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span><\/label><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Use for 4+ options where a native control fits. The chevron is decorative; the select itself carries the behavior.","accessibility":"Real <select> wrapped in its <label>; keyboard, touch pickers and screen readers use the platform's own behavior. Keyboard focus shows --k-ring via :focus-visible; arrow keys change the value. aria-invalid=\"true\" draws the danger border; disabled is dimmed, not-allowed, unaffected by hover and skipped by Tab. The chevron is aria-hidden and its room is on the inline end, so RTL text does not run under it. Selected text measures at least 16:1 in light and dark; 16px or more below 640px so iOS Safari does not zoom. The native option list follows the KATA theme through color-scheme on the select only. IME does not apply (no text entry). Beta until a screen reader is checked by hand; Chromium only."},"audit":{"id":"components\/select","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"slider","type":"registry:component","title":"Slider","description":"A range with a filled track and the core in the thumb \u2014 the mark shows where your grip is.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/slider\/slider.css","type":"registry:component","content":"\/* KATA slider 1.1.0 \u2014 kata-ui.dev\/components\/slider \u2014 requires mold >= 4 *\/\n\/* KATA Slider *\/\n.k-slider{-webkit-appearance:none;appearance:none;width:100%;height:20px;background:transparent;cursor:pointer;--p:50%}\n.k-slider::-webkit-slider-runnable-track{height:4px;border-radius:var(--k-radius-full);background:linear-gradient(to right,var(--k-ink) var(--p),var(--k-track) var(--p))}\n\/* In RTL the native range runs right to left, so the fill starts at the right. *\/\n.k-slider:dir(rtl)::-webkit-slider-runnable-track{background:linear-gradient(to left,var(--k-ink) var(--p),var(--k-track) var(--p))}\n.k-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:calc(var(--k-space-1) * -1);border-radius:50%;background:radial-gradient(circle at center,var(--k-core) 0 2.5px,var(--k-knob) 3.2px);border:1.5px solid var(--k-ink-3);box-shadow:var(--k-shadow-xs)}\n.k-slider::-moz-range-track{height:4px;border-radius:var(--k-radius-full);background:var(--k-track)}\n.k-slider::-moz-range-progress{height:4px;border-radius:var(--k-radius-full);background:var(--k-ink)}\n.k-slider::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at center,var(--k-core) 0 2.5px,var(--k-knob) 3.2px);border:1.5px solid var(--k-ink-3);box-shadow:var(--k-shadow-xs)}\n.k-slider:focus-visible{outline:none}\n.k-slider:focus-visible::-webkit-slider-thumb{box-shadow:var(--k-ring)}\n\/* Label row: the label wraps the range, so a pasted sample needs no id\/for. The readout repeats the value the range already exposes. *\/\n.k-slider-row{display:grid;gap:var(--k-space-0-5)}\n.k-slider-head{display:flex;justify-content:space-between;font-size:var(--k-text-sm)}\n.k-slider-label{font-weight:550}\n.k-slider-val{font-family:var(--k-mono);color:var(--k-ink-2)}\n"},{"path":"components\/slider\/slider.js","type":"registry:component","content":"\/* KATA slider 1.1.0 \u2014 kata-ui.dev\/components\/slider \u2014 requires mold >= 4 *\/\n\/\/ KATA Slider \u2014 keep the filled track and the readout in sync.\n(() => {\n  document.querySelectorAll('[data-slider]').forEach(root => {\n    if (root.hasAttribute('data-kata-ready')) return;\n    const input = root.querySelector('input[type=\"range\"]');\n    const out = root.querySelector('[data-slider-val]');\n    if (!input) return;\n    root.setAttribute('data-kata-ready', '');\n    function sync() {\n      const min = parseFloat(input.min || 0);\n      const max = parseFloat(input.max || 100);\n      const pct = ((parseFloat(input.value) - min) \/ (max - min)) * 100;\n      input.style.setProperty('--p', pct + '%');\n      if (out) out.textContent = input.value;\n    }\n    input.addEventListener('input', sync);\n    sync();\n  });\n})();\n"},{"path":"components\/slider\/example.html","type":"registry:component","content":"<!-- KATA slider 1.1.0 \u2014 kata-ui.dev\/components\/slider \u2014 requires mold >= 4 -->\n<div style=\"display:grid;gap:var(--k-space-4);max-width:400px\">\n  <label class=\"k-slider-row\" data-slider>\n    <span class=\"k-slider-head\"><span class=\"k-slider-label\">Volume<\/span><span class=\"k-slider-val\" data-slider-val aria-hidden=\"true\">60<\/span><\/span>\n    <input class=\"k-slider\" type=\"range\" min=\"0\" max=\"100\" value=\"60\">\n  <\/label>\n  <label class=\"k-slider-row\" data-slider>\n    <span class=\"k-slider-head\"><span class=\"k-slider-label\">Brightness<\/span><span class=\"k-slider-val\" data-slider-val aria-hidden=\"true\">30<\/span><\/span>\n    <input class=\"k-slider\" type=\"range\" min=\"0\" max=\"100\" value=\"30\">\n  <\/label>\n<\/div>"}],"meta":{"status":"beta","usage":"For values chosen by feel: volume, brightness, opacity. Always pair with the numeric value; if the exact number matters, add an Input beside it.","accessibility":"A native range input wrapped in its <label>, so the label names it without id\/for: arrows, Page Up\/Down and screen readers work as the platform defines. The visible readout repeats the value and is aria-hidden. The filled track starts at the inline start (left in LTR, right in RTL). The thumb outline uses --k-ink-3 (4.83:1 on the light page). Instances initialize once even if the script loads twice. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/slider","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"stepper","type":"registry:component","title":"Stepper","description":"A number with minus and plus on either side, cast as one control. Bounds are enforced: the value cannot leave the range.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/stepper\/stepper.css","type":"registry:component","content":"\/* KATA stepper 1.1.0 \u2014 kata-ui.dev\/components\/stepper \u2014 requires mold >= 2 *\/\n\/* KATA Stepper *\/\n.k-stepper{display:inline-flex;align-items:stretch;height:38px;border:1px solid var(--k-line);border-radius:var(--k-radius);background:var(--k-bg);overflow:hidden}\n.k-stepper button{width:37px;border:0;background:transparent;color:var(--k-ink);font-family:var(--k-font);font-size:var(--k-text-lg);cursor:pointer;transition:background var(--k-dur-fast)}\n.k-stepper button:hover:not(:disabled){background:var(--k-bg-soft)}\n.k-stepper button:disabled{opacity:.35;cursor:not-allowed}\n.k-stepper button:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px;box-shadow:none}\n.k-stepper output{display:flex;align-items:center;justify-content:center;min-width:46px;padding:0 var(--k-space-1);border-inline-start:1px solid var(--k-line);border-inline-end:1px solid var(--k-line);font-family:var(--k-mono);font-size:var(--k-text-base);color:var(--k-ink)}\n"},{"path":"components\/stepper\/stepper.js","type":"registry:component","content":"\/* KATA stepper 1.1.0 \u2014 kata-ui.dev\/components\/stepper \u2014 requires mold >= 2 *\/\n\/\/ KATA Stepper \u2014 bounded increment control.\ndocument.querySelectorAll('[data-stepper]').forEach(function (root) {\n  var out = root.querySelector('[data-step-val]');\n  var min = parseFloat(root.dataset.min || '-Infinity');\n  var max = parseFloat(root.dataset.max || 'Infinity');\n  var step = parseFloat(root.dataset.step || '1');\n  function render() {\n    var v = parseFloat(out.textContent) || 0;\n    root.querySelectorAll('[data-step-btn]').forEach(function (b) {\n      var d = parseFloat(b.dataset.stepBtn);\n      b.disabled = (d < 0 && v <= min) || (d > 0 && v >= max);\n    });\n  }\n  root.querySelectorAll('[data-step-btn]').forEach(function (b) {\n    b.addEventListener('click', function () {\n      var v = parseFloat(out.textContent) || 0;\n      v = Math.min(max, Math.max(min, v + parseFloat(b.dataset.stepBtn) * step));\n      out.textContent = String(v);\n      render();\n    });\n  });\n  render();\n});\n"},{"path":"components\/stepper\/example.html","type":"registry:component","content":"<!-- KATA stepper 1.1.0 \u2014 kata-ui.dev\/components\/stepper \u2014 requires mold >= 2 -->\n<div style=\"display:flex;gap:var(--k-space-6);flex-wrap:wrap;align-items:center\">\n  <label style=\"display:grid;gap:var(--k-space-1);font-size:var(--k-text-sm);font-weight:550\">Seats\n    <span class=\"k-stepper\" data-stepper data-min=\"1\" data-max=\"8\">\n      <button type=\"button\" data-step-btn=\"-1\" aria-label=\"Decrease seats\">\u2212<\/button>\n      <output data-step-val aria-live=\"polite\">2<\/output>\n      <button type=\"button\" data-step-btn=\"1\" aria-label=\"Increase seats\">+<\/button>\n    <\/span>\n  <\/label>\n  <label style=\"display:grid;gap:var(--k-space-1);font-size:var(--k-text-sm);font-weight:550\">Copies\n    <span class=\"k-stepper\" data-stepper data-min=\"1\" data-max=\"5\">\n      <button type=\"button\" data-step-btn=\"-1\" aria-label=\"Decrease copies\">\u2212<\/button>\n      <output data-step-val aria-live=\"polite\">5<\/output>\n      <button type=\"button\" data-step-btn=\"1\" aria-label=\"Increase copies\">+<\/button>\n    <\/span>\n  <\/label>\n<\/div>"}],"meta":{"status":"beta","usage":"For small integer quantities \u2014 seats, copies, nights. For typing a number directly, use Input type=number instead.","accessibility":"Real buttons with aria-labels; the value is an <output> with aria-live so changes are announced. Buttons disable at the bounds."},"audit":{"id":"components\/stepper","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"switch","type":"registry:component","title":"Switch","description":"A real checkbox underneath, so it works with no JS at all. Asagi variant included.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/switch\/switch.css","type":"registry:component","content":"\/* KATA switch 1.1.0 \u2014 kata-ui.dev\/components\/switch \u2014 requires mold >= 3 *\/\n.switch{position:relative;display:inline-block;width:42px;height:24px;flex:none}\n.switch input{position:absolute;opacity:0;inset:0;cursor:pointer;z-index:2;margin:0}\n\/* The 1px outline keeps the off track 3:1 from the page (WCAG 1.4.11): --k-track alone measured 1.48:1 (light) and 2.29:1 (dark). *\/\n.switch .tr{position:absolute;inset:0;border-radius:var(--k-radius-full);background:var(--k-track);outline:1px solid var(--k-ink-3);outline-offset:-1px;transition:background var(--k-dur-base)}\n.switch .tr::after{content:\"\";position:absolute;inset-inline-start:var(--k-space-1);top:3px;width:18px;height:18px;border-radius:50%;background:var(--k-knob);box-shadow:var(--k-shadow-xs),var(--k-ring-inset);transition:transform var(--k-dur-base)}\n.switch input:hover:not(:disabled):not(:checked) + .tr{outline-color:var(--k-ink-2)}\n.switch input:checked + .tr{background:var(--k-ink);outline-color:var(--k-ink)}\n.switch input:checked + .tr::after{background:radial-gradient(circle at center,var(--k-core) 0 3px,var(--k-knob) 3.6px)}\n.switch input:checked + .tr::after{transform:translateX(18px)}\n.switch input:focus-visible + .tr{box-shadow:var(--k-ring)}\n\/* The accent track is 2.88:1 on white; its accent-ink rim keeps the boundary above 3:1. *\/\n.switch.asagi input:checked + .tr{background:var(--k-accent);color:var(--k-on-accent);outline-color:var(--k-accent-ink)}\n.switch input:disabled{cursor:not-allowed}\n.switch input:disabled + .tr{opacity:.5}\n.switchrow{display:inline-flex;align-items:center;gap:var(--k-space-3);font-size:var(--k-text-base);font-family:var(--k-font);color:var(--k-ink)}\n\/* A switchrow that is a <label> names the switch and makes its text clickable. *\/\nlabel.switchrow{cursor:pointer}\n.switchrow:has(input:disabled){color:var(--k-ink-3);cursor:not-allowed}\n\n[dir=\"rtl\"] .switch input:checked + .tr::after,.switch input:checked:dir(rtl) + .tr::after{transform:translateX(-18px)}\n"},{"path":"components\/switch\/example.html","type":"registry:component","content":"<!-- KATA switch 1.1.0 \u2014 kata-ui.dev\/components\/switch \u2014 requires mold >= 3 -->\n<label class=\"switchrow\"><span class=\"switch\"><input role=\"switch\" type=\"checkbox\" checked><span class=\"tr\"><\/span><\/span>Notifications<\/label>\n<label class=\"switchrow\"><span class=\"switch asagi\"><input role=\"switch\" type=\"checkbox\" checked><span class=\"tr\"><\/span><\/span>Auto-save<\/label>\n<label class=\"switchrow\"><span class=\"switch\"><input role=\"switch\" type=\"checkbox\"><span class=\"tr\"><\/span><\/span>Public<\/label>"}],"meta":{"status":"beta","usage":"For settings that take effect immediately. For choices applied on submit, use a Checkbox instead.","accessibility":"A native checkbox with role=\"switch\", so screen readers announce on\/off. Wrap the switch and its text in label.switchrow: the text names the switch and is clickable. When the text sits elsewhere (a settings row), give the input an aria-label. Space toggles; keyboard focus shows --k-ring; disabled is dimmed and does not toggle. The off track has a 1px --k-ink-3 outline so its edge measures at least 3:1 from the page (the track alone was 1.48:1 light, 2.29:1 dark); the accent track gets an --k-accent-ink rim (the accent alone is 2.88:1 on white). The knob moves to the inline end in RTL. IME does not apply. Beta until a screen reader is checked by hand; Chromium only."},"audit":{"id":"components\/switch","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"tag-input","type":"registry:component","title":"Tag Input","description":"An input that turns words into chips \u2014 Enter commits, Backspace repents.","categories":["Form & Input"],"dependencies":["chip"],"files":[{"path":"components\/tag-input\/tag-input.css","type":"registry:component","content":"\/* KATA tag-input 1.1.0 \u2014 kata-ui.dev\/components\/tag-input \u2014 requires mold >= 3 *\/\n.k-tags{display:flex;flex-wrap:wrap;gap:var(--k-space-2);align-items:center;border:1px solid var(--k-line);border-radius:var(--k-radius);background:var(--k-bg);padding:var(--k-space-2) var(--k-space-2);font-family:var(--k-font);transition:border-color var(--k-dur-fast), box-shadow var(--k-dur-fast);text-align:start}\n.k-tags:focus-within{border-color:var(--k-accent)}\n.k-tags-in{flex:1;min-width:110px;border:none;outline:none;background:transparent;font:inherit;font-size:var(--k-text-base);color:var(--k-ink);height:29px}\n.k-tags-in::placeholder{color:var(--k-ink-3)}\n\/* iOS: fields under 16px make Safari zoom the page on focus \u2014 16px on small screens (the mold, KATA.md) *\/\n@media (max-width:640px){.k-tags-in{font-size:var(--k-text-lg)}}\n\n.k-tags-in:focus-visible,.k-tags .k-chip-x:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.k-tags-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"components\/tag-input\/tag-input.js","type":"registry:component","content":"\/* KATA tag-input 1.1.0 \u2014 kata-ui.dev\/components\/tag-input \u2014 requires mold >= 3 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-tags]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const input = root.querySelector('.k-tags-in');\n    if (!input) return;\n    root.dataset.kataReady = 'true'; identify(root, 'kata-tags'); identify(input, 'kata-tags-input');\n    const status = document.createElement('span'); status.className = 'k-tags-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-tags-status'); root.append(status);\n    let composing = false, finishing = false;\n    const chips = () => [...root.querySelectorAll('.k-chip')];\n    const text = chip => [...chip.childNodes].filter(node => node !== chip.querySelector('button')).map(node => node.textContent).join('').trim();\n    function prepare(chip) {\n      identify(chip, 'kata-tag');\n      chip.dataset.tag = text(chip).toLocaleLowerCase();\n      const button = chip.querySelector('.k-chip-x');\n      if (button) { identify(button, 'kata-tag-remove'); button.setAttribute('aria-label', 'Remove tag ' + text(chip)); }\n    }\n    chips().forEach(prepare);\n    function announce(action, tag) {\n      status.textContent = (action === 'add' ? 'Added ' : 'Removed ') + tag + '.';\n      root.dispatchEvent(new CustomEvent('kata-tag-input-' + action, { bubbles: true, detail: { tag, tags: chips().map(text) } }));\n    }\n    function add(value) {\n      const tag = value.trim().replace(\/,$\/, '').trim();\n      if (!tag) return;\n      if (chips().some(chip => chip.dataset.tag === tag.toLocaleLowerCase())) { status.textContent = tag + ' is already added.'; return; }\n      const chip = document.createElement('span'); chip.className = 'k-chip';\n      const label = document.createElement('span'); label.textContent = tag;\n      const button = document.createElement('button'); button.type = 'button'; button.className = 'k-chip-x';\n      \/\/ The icon is application-owned markup; tag text never enters innerHTML.\n      if (root.dataset.x) button.innerHTML = root.dataset.x; else button.textContent = '\u00d7';\n      chip.append(label, button); prepare(chip); root.insertBefore(chip, input); announce('add', tag);\n    }\n    function remove(chip, moveFocus = false) {\n      const list = chips(), index = list.indexOf(chip), tag = text(chip);\n      chip.remove();\n      if (moveFocus) (chips()[index]?.querySelector('button') || input).focus();\n      announce('remove', tag);\n    }\n    root.addEventListener('compositionstart', () => { composing = true; });\n    root.addEventListener('compositionend', () => { composing = false; finishing = true; setTimeout(() => { finishing = false; }, 0); });\n    root.addEventListener('keydown', event => {\n      if (composing || finishing || event.isComposing || event.keyCode === 229) return;\n      const button = event.target.closest('.k-chip-x'), list = chips();\n      if (event.target === input && (event.key === 'Enter' || event.key === ',')) {\n        event.preventDefault(); add(input.value); input.value = ''; return;\n      }\n      if (event.key === 'Backspace' || event.key === 'Delete') {\n        if (button) { event.preventDefault(); remove(button.closest('.k-chip'), true); }\n        else if (event.target === input && event.key === 'Backspace' && !input.value && list.length) { event.preventDefault(); remove(list[list.length - 1]); }\n        return;\n      }\n      if (!['ArrowLeft', 'ArrowRight'].includes(event.key)) return;\n      const forward = (event.key === 'ArrowRight') !== (getComputedStyle(root).direction === 'rtl');\n      if (button) {\n        event.preventDefault(); const index = list.indexOf(button.closest('.k-chip')) + (forward ? 1 : -1);\n        if (index >= 0) (list[index]?.querySelector('button') || input).focus();\n      } else if (event.target === input && !forward && input.selectionStart === 0 && input.selectionEnd === 0 && list.length) {\n        event.preventDefault(); list[list.length - 1].querySelector('button').focus();\n      }\n    });\n    root.addEventListener('click', event => {\n      const button = event.target.closest('.k-chip-x');\n      if (button && root.contains(button)) remove(button.closest('.k-chip'), true);\n      else if (event.target === root) input.focus();\n    });\n  });\n})();\n"},{"path":"components\/tag-input\/example.html","type":"registry:component","content":"<!-- KATA tag-input 1.1.0 \u2014 kata-ui.dev\/components\/tag-input \u2014 requires mold >= 3 -->\n<div class=\"k-tags\" data-tags data-x=\"<svg width=&quot;11&quot; height=&quot;11&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot;><path d=&quot;M6 6l12 12M18 6 6 18&quot;\/><\/svg>\" style=\"max-width:430px\">\n  <span class=\"k-chip\" data-tag=\"design\">Design<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Design\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n  <span class=\"k-chip\" data-tag=\"vanilla\">Vanilla<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Vanilla\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n  <input class=\"k-tags-in\" type=\"text\" placeholder=\"Add a tag\u2026\" aria-label=\"Add a tag\">\n<\/div>"}],"meta":{"status":"beta","usage":"For labels, skills, invite lists. Built on the Chip part, so committed tags look and behave exactly like chips everywhere else. Listen for added or removed tags:\n\n```js\ndocument.addEventListener('kata-tag-input-add', event => {\n  console.log(event.detail.tag, event.detail.tags);\n});\n```\nUse kata-tag-input-remove for removals. Typed text is kept when focus leaves; only Enter or comma commits it.","accessibility":"Enter or comma adds a trimmed tag; duplicates are ignored case-insensitively. An empty input Backspace removes the last tag. Horizontal arrows follow visual direction between removal buttons; Delete\/Backspace removes the focused tag. Buttons have tag-specific names; status announces additions and removals. Composition keys do not commit tags."},"audit":{"id":"components\/tag-input","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"textarea","type":"registry:component","title":"Textarea","description":"Multi-line input on the same mold as Input: same border, same ring, same heights logic.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/textarea\/textarea.css","type":"registry:component","content":"\/* KATA textarea 1.1.0 \u2014 kata-ui.dev\/components\/textarea \u2014 requires mold >= 3 *\/\n\/* KATA Textarea *\/\n\/* border-box: width 100% and min-height include padding and border, so the field fits its container. *\/\n.k-textarea{box-sizing:border-box;width:100%;min-height:92px;padding:var(--k-space-2) var(--k-space-3);border:1px solid var(--k-line);border-radius:var(--k-radius);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font);font-size:var(--k-text-base);line-height:var(--k-lh-body);resize:vertical;transition:border-color var(--k-dur-fast),box-shadow var(--k-dur-fast)}\n.k-textarea::placeholder{color:var(--k-ink-3)}\n.k-textarea:hover:not(:disabled){border-color:var(--k-border-strong)}\n.k-textarea:focus-visible{outline:none;border-color:var(--k-ink);box-shadow:var(--k-ring)}\n.k-textarea:disabled{opacity:.55;resize:none;cursor:not-allowed}\n.k-textarea[readonly]:not(:disabled){background:var(--k-bg-soft)}\n\/* aria-invalid is the accessible error state; data-invalid=\"true\" stays as the original hook. *\/\n.k-textarea[data-invalid=\"true\"],.k-textarea[aria-invalid=\"true\"]{border-color:var(--k-danger)}\n.k-textarea[data-invalid=\"true\"]:focus-visible,.k-textarea[aria-invalid=\"true\"]:focus-visible{border-color:var(--k-danger);box-shadow:var(--k-ring)}\n\/* iOS: fields under 16px make Safari zoom the page on focus \u2014 16px on small screens (the mold, KATA.md) *\/\n@media (max-width:640px){.k-textarea{font-size:var(--k-text-lg)}}\n"},{"path":"components\/textarea\/example.html","type":"registry:component","content":"<!-- KATA textarea 1.1.0 \u2014 kata-ui.dev\/components\/textarea \u2014 requires mold >= 3 -->\n<div style=\"display:grid;gap:var(--k-space-1);max-width:420px\">\n  <label style=\"display:grid;gap:var(--k-space-1);font-size:var(--k-text-sm);font-weight:550\">Release notes<textarea class=\"k-textarea\" rows=\"3\" placeholder=\"What changed in this version?\">Fixed the export dialog. Copy buttons now confirm with a check.<\/textarea><\/label>\n  <span style=\"font-size:var(--k-text-sm);color:var(--k-ink-3)\">Markdown is fine. 62 \/ 280<\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"For text longer than a line. Set rows for the expected length; keep the hint short and put character counts outside the field.","accessibility":"Samples wrap the textarea in its <label> (no fixed IDs, so a sample can be pasted twice). For hints and errors add aria-describedby with IDs unique in your page, or place it in a Field, whose script links them. aria-invalid=\"true\" (and the original data-invalid=\"true\") draws the danger border. Keyboard focus shows --k-ring via :focus-visible. Disabled is dimmed with a not-allowed cursor and skipped by Tab; read-only gets a soft background and stays focusable. Text measures at least 5.74:1 (value, read-only, placeholder) in light and dark. The field is border-box, so width 100% fits its container and the 92px minimum height is the rendered height; 16px or more below 640px so iOS Safari does not zoom. No JavaScript. Beta until a screen reader and real IME input (Japanese conversion) are checked by hand. Checked in Chromium only."},"audit":{"id":"components\/textarea","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"time-picker","type":"registry:component","title":"Time Picker","description":"The Date Picker\u2019s other half: an input with two scrolling columns of hours and minutes.","categories":["Form & Input"],"dependencies":["input"],"files":[{"path":"components\/time-picker\/time-picker.css","type":"registry:component","content":"\/* KATA time-picker 1.1.0 \u2014 kata-ui.dev\/components\/time-picker \u2014 requires mold >= 4 *\/\n\/* KATA Time Picker \u2014 two columns, one value. *\/\n.k-tp{position:relative;font-family:var(--k-font);color:var(--k-ink)}\n.k-tp .wrap-in{position:relative}\n.k-tp-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:var(--k-radius-md);background:none;color:var(--k-ink-3);display:flex;align-items:center;justify-content:center;cursor:pointer}\n.k-tp-btn:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-tp-panel{position:absolute;inset-inline-start:0;top:calc(100% + 8px);z-index:50;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-2);display:flex;gap:var(--k-space-1)}\n.k-tp-panel[hidden]{display:none}\n.k-tp-col{display:flex;flex-direction:column;gap:var(--k-space-0-5);max-height:196px;overflow:auto;width:64px;padding-inline-end:var(--k-space-0-5)}\n.k-tp-col .hd{font-size:var(--k-text-xs);font-weight:600;letter-spacing:.08em;color:var(--k-ink-3);text-align:center;padding:var(--k-space-1) 0 var(--k-space-1);position:sticky;top:0;background:var(--k-bg)}\n.k-tp-opt{padding:var(--k-space-2) 0;border:0;border-radius:var(--k-radius-md);background:none;font-family:inherit;font-size:var(--k-text-base);color:var(--k-ink-2);cursor:pointer;text-align:center}\n.k-tp-opt:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-tp-opt.sel{background:var(--k-ink);color:var(--k-bg);font-weight:600}\n\/* The column scrolls, so the focus ring is drawn inside the option. *\/\n.k-tp-opt:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n.k-tp-opt.sel:focus-visible{outline-color:var(--k-bg)}\n"},{"path":"components\/time-picker\/time-picker.js","type":"registry:component","content":"\/* KATA time-picker 1.1.0 \u2014 kata-ui.dev\/components\/time-picker \u2014 requires mold >= 4 *\/\n\/\/ KATA Time Picker \u2014 hours and five-minute steps; typing still works.\ndocument.querySelectorAll('[data-tp]').forEach(function (el) {\n  var input = el.querySelector('[data-tp-input]');\n  var btn = el.querySelector('[data-tp-btn]');\n  var panel = el.querySelector('[data-tp-panel]');\n  var hCol = el.querySelector('[data-tp-h]');\n  var mCol = el.querySelector('[data-tp-m]');\n  function pad(n) { return String(n).padStart(2, '0'); }\n  function build(col, values, cur) {\n    col.querySelectorAll('.k-tp-opt').forEach(function (o) { o.remove(); });\n    values.forEach(function (v) {\n      var b = document.createElement('button');\n      b.type = 'button'; b.className = 'k-tp-opt' + (v === cur ? ' sel' : ''); b.textContent = v; b.setAttribute('data-v', v);\n      col.appendChild(b);\n    });\n  }\n  function render() {\n    var m = \/^(\\d{1,2}):(\\d{2})\/.exec(input.value || '');\n    build(hCol, Array.from({ length: 24 }, function (_, i) { return pad(i); }), m ? pad(+m[1]) : '');\n    build(mCol, Array.from({ length: 12 }, function (_, i) { return pad(i * 5); }), m ? m[2] : '');\n  }\n  function open() { render(); panel.hidden = false; btn.setAttribute('aria-expanded', 'true'); }\n  function close() { panel.hidden = true; btn.setAttribute('aria-expanded', 'false'); }\n  btn.addEventListener('click', function () { panel.hidden ? open() : close(); });\n  input.addEventListener('focus', open);\n  panel.addEventListener('click', function (e) {\n    var b = e.target.closest('.k-tp-opt'); if (!b) return;\n    var m = \/^(\\d{1,2}):(\\d{2})\/.exec(input.value || '');\n    var h = m ? pad(+m[1]) : '09', min = m ? m[2] : '00';\n    if (b.parentElement === hCol) h = b.getAttribute('data-v'); else min = b.getAttribute('data-v');\n    input.value = h + ':' + min;\n    input.dispatchEvent(new Event('change', { bubbles: true }));\n    render();\n  });\n  document.addEventListener('click', function (e) { if (!el.contains(e.target)) close(); });\n  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') close(); });\n  render();\n});\n"},{"path":"components\/time-picker\/example.html","type":"registry:component","content":"<!-- KATA time-picker 1.1.0 \u2014 kata-ui.dev\/components\/time-picker \u2014 requires mold >= 4 -->\n<div class=\"k-tp\" data-tp style=\"max-width:220px\">\n  <div class=\"wrap-in\">\n    <input class=\"input\" data-tp-input type=\"text\" value=\"14:30\" placeholder=\"HH:MM\" aria-label=\"Time\" style=\"width:100%;padding-right:var(--k-space-10)\">\n    <button class=\"k-tp-btn\" data-tp-btn type=\"button\" aria-label=\"Open time picker\" aria-expanded=\"false\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\"\/><path d=\"M12 7.5V12l3 2\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"k-tp-panel\" data-tp-panel role=\"dialog\" aria-label=\"Choose a time\" hidden>\n    <div class=\"k-tp-col\" data-tp-h><span class=\"hd\">HOUR<\/span><\/div>\n    <div class=\"k-tp-col\" data-tp-m><span class=\"hd\">MIN<\/span><\/div>\n  <\/div>\n<\/div>\n<p style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2)\">Open it, pick an hour and a minute \u2014 or just type. The panel closes on Escape or a click away.<\/p>"}],"meta":{"status":"beta","usage":"Minutes step by five, the way appointments actually work; type the value directly when you know it; the panel is optional. The pick writes HH:MM (24-hour) into the input.","accessibility":"The columns are lists of buttons with plain labels (\"14\", \"05\") under hour and minute headings; the input stays editable by keyboard, Escape closes the panel, and the toggle button is named for what it opens."},"audit":{"id":"components\/time-picker","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"toggle","type":"registry:component","title":"Toggle","description":"A button that stays pressed \u2014 for bold, for pinning, for any on\/off state. For one-off actions, use Button.","categories":["Form & Input"],"dependencies":[],"files":[{"path":"components\/toggle\/toggle.css","type":"registry:component","content":"\/* KATA toggle 1.1.0 \u2014 kata-ui.dev\/components\/toggle \u2014 requires mold >= 2 *\/\n.k-tgl{display:inline-flex;align-items:center;gap:var(--k-space-2);height:34px;padding:0 var(--k-space-3);border-radius:var(--k-radius-md);border:1px solid var(--k-line);background:var(--k-bg);color:var(--k-ink-2);font-family:var(--k-font);font-size:var(--k-text-base);font-weight:500;cursor:pointer;transition:background var(--k-dur-fast),border-color var(--k-dur-fast),color var(--k-dur-fast)}\n.k-tgl:hover:not(:disabled){border-color:var(--k-border-strong);color:var(--k-ink)}\n.k-tgl[aria-pressed=\"true\"]{background:var(--k-ink);border-color:var(--k-ink);color:var(--k-bg);font-weight:600}\n.k-tgl:focus-visible{outline:2px solid var(--k-ink);outline-offset:2px}\n.k-tgroup{display:inline-flex;gap:var(--k-space-1);padding:var(--k-space-1);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);background:var(--k-bg)}\n.k-tgroup .k-tgl{border-color:transparent}\n.k-tgroup .k-tgl[aria-pressed=\"true\"]{border-color:var(--k-ink)}\n.k-tgl:active:not(:disabled){background:var(--k-bg-soft)}\n.k-tgl[aria-pressed=\"true\"]:active:not(:disabled){background:var(--k-ink-2);border-color:var(--k-ink-2)}\n.k-tgl:disabled{opacity:.45;cursor:not-allowed}\n"},{"path":"components\/toggle\/toggle.js","type":"registry:component","content":"\/* KATA toggle 1.1.0 \u2014 kata-ui.dev\/components\/toggle \u2014 requires mold >= 2 *\/\n\/\/ KATA Toggle \u2014 a button that keeps its own pressed state in aria-pressed.\n(() => {\n  document.querySelectorAll('.k-tgl').forEach(button => {\n    \/\/ A second load must not bind a second listener: two would flip the state back on every click.\n    if (button.hasAttribute('data-kata-ready')) return;\n    button.setAttribute('data-kata-ready', '');\n    button.addEventListener('click', () => {\n      button.setAttribute('aria-pressed', String(button.getAttribute('aria-pressed') !== 'true'));\n      button.dispatchEvent(new CustomEvent('kata-toggle-change', { bubbles: true, detail: { pressed: button.getAttribute('aria-pressed') === 'true' } }));\n    });\n  });\n})();\n"},{"path":"components\/toggle\/example.html","type":"registry:component","content":"<!-- KATA toggle 1.1.0 \u2014 kata-ui.dev\/components\/toggle \u2014 requires mold >= 2 -->\n<div style=\"display:flex;gap:var(--k-space-3);align-items:center;flex-wrap:wrap\">\n  <button class=\"k-tgl\" type=\"button\" aria-pressed=\"true\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 21s-7-5.5-7-11a7 7 0 0 1 14 0c0 5.5-7 11-7 11Z\"\/><circle cx=\"12\" cy=\"10\" r=\"2.6\"\/><\/svg> Pinned<\/button>\n  <div class=\"k-tgroup\" role=\"group\" aria-label=\"Text formatting\">\n    <button class=\"k-tgl\" type=\"button\" aria-pressed=\"true\" aria-label=\"Bold\" style=\"font-weight:700\">B<\/button>\n    <button class=\"k-tgl\" type=\"button\" aria-pressed=\"false\" aria-label=\"Italic\" style=\"font-style:italic\">I<\/button>\n    <button class=\"k-tgl\" type=\"button\" aria-pressed=\"false\" aria-label=\"Underline\" style=\"text-decoration:underline\">U<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For state that lives on the button itself: formatting, filters, pins. If pressing it does something and finishes, that is a Button; if it stays down, it is this.","accessibility":"aria-pressed carries the state, and the pressed style is more than color \u2014 weight and fill change too, so the state survives grayscale. Icon- or letter-only toggles need an aria-label (the formatting sample names B\/I\/U as Bold, Italic, Underline). A disabled toggle is dimmed and does not change. One click flips the state once even if the script loads twice; a bubbling kata-toggle-change event reports detail.pressed. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/toggle","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"transfer","type":"registry:component","title":"Transfer","description":"Two lists and a shuttle: what is in, what is out, and the move between them, counted.","categories":["Form & Input"],"dependencies":["button","input"],"files":[{"path":"components\/transfer\/transfer.css","type":"registry:component","content":"\/* KATA transfer 1.1.0 \u2014 kata-ui.dev\/components\/transfer \u2014 requires mold >= 4 *\/\n\/* KATA Transfer \u2014 two lists and a shuttle. *\/\n.k-xfer{width:100%;display:grid;grid-template-columns:1fr auto 1fr;gap:var(--k-space-3);align-items:stretch;font-family:var(--k-font);color:var(--k-ink);max-width:560px}\n.k-xfer-panel{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);display:flex;flex-direction:column;background:var(--k-bg);min-height:216px}\n.k-xfer-h{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-3);border-bottom:1px solid var(--k-line);font-size:var(--k-text-sm);font-weight:600}\n.k-xfer-h .cnt{margin-inline-start:auto;color:var(--k-ink-3);font-weight:500}\n.k-xfer-filter{margin:var(--k-space-2) var(--k-space-2) var(--k-space-1)}\n.k-xfer-list{padding:var(--k-space-1);overflow:auto;display:flex;flex-direction:column;gap:var(--k-space-px)}\n.k-xfer-it{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);font-size:var(--k-text-base);cursor:pointer}\n.k-xfer-it:hover{background:var(--k-bg-soft)}\n.k-xfer input[type=checkbox]{accent-color:var(--k-ink);width:15px;height:15px;flex:none;cursor:pointer}\n.k-xfer-acts{display:flex;flex-direction:column;gap:var(--k-space-2);justify-content:center}\n.k-xfer-acts .btn{padding:0 var(--k-space-3)}\n@media (max-width:560px){.k-xfer{grid-template-columns:1fr}.k-xfer-acts{flex-direction:row;justify-content:center}}\n"},{"path":"components\/transfer\/transfer.js","type":"registry:component","content":"\/* KATA transfer 1.1.0 \u2014 kata-ui.dev\/components\/transfer \u2014 requires mold >= 4 *\/\n\/\/ KATA Transfer \u2014 checked items move; counts and filters stay honest.\ndocument.querySelectorAll('[data-xfer]').forEach(function (root) {\n  var sides = { l: root.querySelector('[data-xfer-l]'), r: root.querySelector('[data-xfer-r]') };\n  function items(side) { return Array.prototype.slice.call(side.querySelectorAll('.k-xfer-it')); }\n  function refresh() {\n    Object.keys(sides).forEach(function (k) {\n      var s = sides[k], list = items(s);\n      var checked = list.filter(function (i) { return i.querySelector('input').checked; }).length;\n      s.querySelector('[data-xfer-cnt]').textContent = list.length + ' items';\n      var all = s.querySelector('[data-xfer-all]');\n      all.checked = list.length > 0 && checked === list.length;\n      all.indeterminate = checked > 0 && checked < list.length;\n    });\n    root.querySelector('[data-xfer-tor]').disabled = !items(sides.l).some(function (i) { return i.querySelector('input').checked; });\n    root.querySelector('[data-xfer-tol]').disabled = !items(sides.r).some(function (i) { return i.querySelector('input').checked; });\n  }\n  function move(from, to) {\n    items(from).forEach(function (i) {\n      var box = i.querySelector('input');\n      if (box.checked) { box.checked = false; to.querySelector('.k-xfer-list').appendChild(i); }\n    });\n    refresh();\n  }\n  root.querySelector('[data-xfer-tor]').addEventListener('click', function () { move(sides.l, sides.r); });\n  root.querySelector('[data-xfer-tol]').addEventListener('click', function () { move(sides.r, sides.l); });\n  Object.keys(sides).forEach(function (k) {\n    var s = sides[k];\n    s.addEventListener('change', refresh);\n    s.querySelector('[data-xfer-all]').addEventListener('change', function (e) {\n      items(s).forEach(function (i) { if (i.style.display !== 'none') i.querySelector('input').checked = e.target.checked; });\n      refresh();\n    });\n    s.querySelector('[data-xfer-q]').addEventListener('input', function (e) {\n      var q = e.target.value.toLowerCase();\n      items(s).forEach(function (i) { i.style.display = i.textContent.toLowerCase().indexOf(q) !== -1 ? '' : 'none'; });\n    });\n  });\n  refresh();\n});\n"},{"path":"components\/transfer\/example.html","type":"registry:component","content":"<!-- KATA transfer 1.1.0 \u2014 kata-ui.dev\/components\/transfer \u2014 requires mold >= 4 -->\n<div class=\"k-xfer\" data-xfer>\n  <div class=\"k-xfer-panel\" data-xfer-l>\n      <div class=\"k-xfer-h\"><input type=\"checkbox\" data-xfer-all aria-label=\"Select all in Catalog\"> Catalog <span class=\"cnt\" data-xfer-cnt><\/span><\/div>\n      <div class=\"k-xfer-filter searchwrap\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><input class=\"input\" data-xfer-q type=\"search\" placeholder=\"Filter\" aria-label=\"Filter Catalog\" style=\"height:32px;font-size:var(--k-text-sm)\"><\/div>\n      <div class=\"k-xfer-list\"><label class=\"k-xfer-it\"><input type=\"checkbox\"> Button<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Calendar<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Data Table<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Sidebar<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Spotlight<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Tree<\/label><\/div>\n    <\/div>\n  <div class=\"k-xfer-acts\">\n    <button class=\"btn btn-sec btn-md\" type=\"button\" data-xfer-tor aria-label=\"Move selected right\">&gt;<\/button>\n    <button class=\"btn btn-sec btn-md\" type=\"button\" data-xfer-tol aria-label=\"Move selected left\">&lt;<\/button>\n  <\/div>\n  <div class=\"k-xfer-panel\" data-xfer-r>\n      <div class=\"k-xfer-h\"><input type=\"checkbox\" data-xfer-all aria-label=\"Select all in On this page\"> On this page <span class=\"cnt\" data-xfer-cnt><\/span><\/div>\n      <div class=\"k-xfer-filter searchwrap\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><input class=\"input\" data-xfer-q type=\"search\" placeholder=\"Filter\" aria-label=\"Filter On this page\" style=\"height:32px;font-size:var(--k-text-sm)\"><\/div>\n      <div class=\"k-xfer-list\"><label class=\"k-xfer-it\"><input type=\"checkbox\"> Badge<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Card<\/label><label class=\"k-xfer-it\"><input type=\"checkbox\"> Tabs<\/label><\/div>\n    <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For assigning things in bulk \u2014 members to a team, parts to a page, tags to a post. Each side filters itself, the buttons move only what is checked, and the counts always say how many are where.","accessibility":"Real checkboxes in two labelled groups; the move buttons say what they move (\"Move selected right\"), and the header checkbox per side selects that side only. Moving focus is left to the reader \u2014 nothing jumps."},"audit":{"id":"components\/transfer","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"accordion","type":"registry:component","title":"Accordion","description":"Disclosure built on native <details>. Zero JavaScript, keyboard and find-in-page included.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/accordion\/accordion.css","type":"registry:component","content":"\/* KATA accordion 1.1.0 \u2014 kata-ui.dev\/components\/accordion \u2014 requires mold >= 4 *\/\n\/* KATA Accordion \u2014 native <details>. No JS. *\/\n.k-acc{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);background:var(--k-bg)}\n.k-acc + .k-acc{margin-top:var(--k-space-2)}\n.k-acc summary{display:flex;align-items:center;justify-content:space-between;gap:var(--k-space-3);padding:var(--k-space-3) var(--k-space-4);font-size:var(--k-text-base);font-weight:550;cursor:pointer;list-style:none;border-radius:var(--k-radius-lg)}\n.k-acc summary::-webkit-details-marker{display:none}\n.k-acc summary:hover{background:var(--k-bg-soft)}\n.k-acc summary:focus-visible{outline:none;box-shadow:var(--k-ring)}\n.k-acc summary svg{color:var(--k-ink-3);transition:transform var(--k-dur-base) var(--k-ease);flex:none}\n.k-acc[open] summary svg{transform:rotate(180deg)}\n.k-acc-body{padding:var(--k-space-0-5) var(--k-space-4) var(--k-space-4);font-size:var(--k-text-base);line-height:var(--k-lh-loose);color:var(--k-ink-2);letter-spacing:.012em}\n"},{"path":"components\/accordion\/example.html","type":"registry:component","content":"<!-- KATA accordion 1.1.0 \u2014 kata-ui.dev\/components\/accordion \u2014 requires mold >= 4 -->\n<div style=\"max-width:460px\">\n  <details class=\"k-acc\" open>\n    <summary>Is there a build step?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary>\n    <div class=\"k-acc-body\">No. Copy the CSS, paste the markup. This accordion itself runs on native details \u2014 there is no script on this page for it.<\/div>\n  <\/details>\n  <details class=\"k-acc\">\n    <summary>Does it work in dark mode?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary>\n    <div class=\"k-acc-body\">Yes. Every color comes from a token, and the token set has a dark theme.<\/div>\n  <\/details>\n  <details class=\"k-acc\">\n    <summary>Can I change the radius?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary>\n    <div class=\"k-acc-body\">Change --k-radius-lg once and every component follows. That is the point of the mold.<\/div>\n  <\/details>\n<\/div>"}],"meta":{"status":"beta","usage":"For FAQs and secondary detail. The first item can start open; the rest stay shut. If content must be findable with Ctrl-F, this is the right primitive \u2014 details content is searchable.","accessibility":"<details>\/<summary> is natively focusable and announced as expandable. The chevron is decorative; state comes from the element itself."},"audit":{"id":"components\/accordion","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"bottom-navigation","type":"registry:component","title":"Bottom Navigation","description":"The mobile app tab bar: three to five destinations under the thumb, the current one lit with the core.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/bottom-navigation\/bottom-navigation.css","type":"registry:component","content":"\/* KATA bottom-navigation 1.1.0 \u2014 kata-ui.dev\/components\/bottom-navigation \u2014 requires mold >= 4 *\/\n\/* KATA Bottom Navigation \u2014 destinations under the thumb. *\/\n.k-bnav{display:flex;background:var(--k-bg);border-top:1px solid var(--k-line);font-family:var(--k-font);padding:var(--k-space-1) var(--k-space-2) calc(var(--k-space-1) + env(safe-area-inset-bottom))}\n.k-bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:var(--k-space-1);padding:var(--k-space-1) var(--k-space-0-5);border-radius:var(--k-radius-md);color:var(--k-ink-3);text-decoration:none;font-size:var(--k-text-xs);font-weight:550;position:relative}\n.k-bnav a:hover{background:var(--k-bg-soft)}\n.k-bnav a.on{color:var(--k-ink)}\n.k-bnav a.on svg{color:var(--k-core)}\n.k-bnav .dot{position:absolute;top:5px;right:calc(50% - 14px);width:7px;height:7px;border-radius:50%;background:var(--k-core);border:1.5px solid var(--k-bg)}\n.k-bnav.icons a{padding:var(--k-space-2) var(--k-space-0-5)}\n.k-bnav.icons .lbl{display:none}\n"},{"path":"components\/bottom-navigation\/bottom-navigation.js","type":"registry:component","content":"\/* KATA bottom-navigation 1.1.0 \u2014 kata-ui.dev\/components\/bottom-navigation \u2014 requires mold >= 4 *\/\n\/\/ KATA Bottom Navigation \u2014 in the catalog preview, taps move the marker.\n\/\/ In production these are links; the current page carries .on.\ndocument.querySelectorAll('[data-bnav]').forEach(function (bar) {\n  bar.querySelectorAll('a').forEach(function (a) {\n    a.addEventListener('click', function (e) {\n      e.preventDefault();\n      bar.querySelectorAll('a').forEach(function (x) { x.classList.remove('on'); });\n      a.classList.add('on');\n    });\n  });\n});\n"},{"path":"components\/bottom-navigation\/example.html","type":"registry:component","content":"<!-- KATA bottom-navigation 1.1.0 \u2014 kata-ui.dev\/components\/bottom-navigation \u2014 requires mold >= 4 -->\n<div style=\"max-width:330px;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;background:var(--k-bg)\">\n  <div style=\"padding:var(--k-space-4);min-height:120px\">\n    <p style=\"font-size:var(--k-text-md);font-weight:600\">Home<\/p>\n    <p style=\"font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-body);margin-top:var(--k-space-1);letter-spacing:.01em\">The bar is the part; this is the room it stands in. Tap a destination \u2014 the core moves to it.<\/p>\n  <\/div>\n  <nav class=\"k-bnav\" data-bnav aria-label=\"Bottom\">\n    <a class=\"on\" href=\"#\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m3 11 9-8 9 8\"\/><path d=\"M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5\"\/><\/svg><span class=\"lbl\">Home<\/span><\/a>\n    <a href=\"#\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M9 13h6M9 17h6\"\/><\/svg><span class=\"lbl\">Docs<\/span><\/a>\n    <a href=\"#\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><span class=\"lbl\">New<\/span><\/a>\n    <a href=\"#\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M18 16H6c.6-1.2 1-2.6 1-4.5V10a5 5 0 0 1 10 0v1.5c0 1.9.4 3.3 1 4.5Z\"\/><path d=\"M10 20a2 2 0 0 0 4 0\"\/><\/svg><span class=\"lbl\">Alerts<\/span><span class=\"dot\"><\/span><\/a>\n    <a href=\"#\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8\" r=\"3.6\"\/><path d=\"M5 20c.8-3.2 3.6-5 7-5s6.2 1.8 7 5\"\/><\/svg><span class=\"lbl\">You<\/span><\/a>\n  <\/nav>\n<\/div>"}],"meta":{"status":"beta","usage":"For app-shaped pages on phones: the destinations a thumb can reach, always in the same order. Three to five items; with six or more, use a menu instead. The part ships the bar \u2014 fixing it to the viewport bottom is the page\u2019s job.","accessibility":"A nav landmark of real links, each with an icon and a text label \u2014 the label is what the screen reader reads, so never ship the icon-only variant to production without aria-labels."},"audit":{"id":"components\/bottom-navigation","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"breadcrumbs","type":"registry:component","title":"Breadcrumbs","description":"Where you are, as a path. The last crumb is the current page, shown as plain text.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/breadcrumbs\/breadcrumbs.css","type":"registry:component","content":"\/* KATA breadcrumbs 1.1.0 \u2014 kata-ui.dev\/components\/breadcrumbs \u2014 requires mold >= 2 *\/\n\/* KATA Breadcrumbs *\/\n.k-crumbs{display:flex;align-items:center;gap:var(--k-space-2);flex-wrap:wrap;font-size:var(--k-text-base);font-family:var(--k-font);list-style:none}\n.k-crumbs li{display:flex;align-items:center;gap:var(--k-space-2)}\n.k-crumbs a{color:var(--k-ink-2);text-decoration:none}\n.k-crumbs a:hover{color:var(--k-ink);text-decoration:underline;text-underline-offset:3px}\n.k-crumbs svg{color:var(--k-ink-3);flex:none}\n.k-crumbs [aria-current=\"page\"]{color:var(--k-ink);font-weight:550}\n\/* Separators point in the reading direction. *\/\n.k-crumbs:dir(rtl) svg{transform:scaleX(-1)}\n"},{"path":"components\/breadcrumbs\/example.html","type":"registry:component","content":"<!-- KATA breadcrumbs 1.1.0 \u2014 kata-ui.dev\/components\/breadcrumbs \u2014 requires mold >= 2 -->\n<nav aria-label=\"Breadcrumb\"><ol class=\"k-crumbs\">\n  <li><a href=\"#\">Home<\/a><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/li>\n  <li><a href=\"#\">Projects<\/a><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/li>\n  <li><a href=\"#\">kata-ui<\/a><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/li>\n  <li><span aria-current=\"page\">Components<\/span><\/li>\n<\/ol><\/nav>"}],"meta":{"status":"beta","usage":"For hierarchies three levels or deeper. Keep crumb names short; if the path gets long, collapse the middle on small screens rather than wrapping.","accessibility":"A <nav aria-label=\"Breadcrumb\"> with an ordered list; the current page is plain text with aria-current=\"page\". Separators are decorative (aria-hidden) and mirror in RTL so they point toward the current page. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/breadcrumbs","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"collapsible","type":"registry:component","title":"Collapsible","description":"One disclosure on its own: a trigger row and the region it folds away. The Accordion is this, grouped.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/collapsible\/collapsible.css","type":"registry:component","content":"\/* KATA collapsible 1.1.0 \u2014 kata-ui.dev\/components\/collapsible \u2014 requires mold >= 2 *\/\n\/* KATA Collapsible \u2014 one native details, styled as a row. *\/\n.k-coll{font-family:var(--k-font);color:var(--k-ink);max-width:460px}\n.k-coll summary{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-3);border:1px solid var(--k-line);border-radius:var(--k-radius);font-size:var(--k-text-base);font-weight:550;cursor:pointer;list-style:none;background:var(--k-bg)}\n.k-coll summary::-webkit-details-marker{display:none}\n.k-coll summary:hover{background:var(--k-bg-soft)}\n.k-coll summary svg{margin-inline-start:auto;transition:transform var(--k-dur-base);color:var(--k-ink-3)}\n.k-coll[open ] summary{border-radius:var(--k-radius) var(--k-radius) 0 0}\n.k-coll[open ] summary svg{transform:rotate(180deg)}\n.k-coll-body{border:1px solid var(--k-line);border-top:0;border-radius:0 0 var(--k-radius) var(--k-radius);padding:var(--k-space-3);font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n@media (prefers-reduced-motion:reduce){.k-coll summary svg{transition:none}}\n"},{"path":"components\/collapsible\/example.html","type":"registry:component","content":"<!-- KATA collapsible 1.1.0 \u2014 kata-ui.dev\/components\/collapsible \u2014 requires mold >= 2 -->\n<details class=\"k-coll\">\n  <summary>Advanced options <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary>\n  <div class=\"k-coll-body\">Caching, retries and the webhook secret live here \u2014 the settings a form needs once, not every time. The fold is native: no script, and the browser keeps the state.<\/div>\n<\/details>"}],"meta":{"status":"beta","usage":"For the single \"show more\" a page needs once \u2014 advanced options, a long answer, the fine print. It is a native details element: no script, and it stays exactly as open or closed as the markup says. For a stack of them, use Accordion.","accessibility":"The summary is a real disclosure control: keyboard-operable, with its state announced. Keep the trigger text meaningful on its own (\"Advanced options\", not \"More\")."},"audit":{"id":"components\/collapsible","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"menubar","type":"registry:component","title":"Menubar","description":"The desktop menu bar: File, Edit, View \u2014 menus that open on click and slide sideways while open, with the shortcuts showing.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/menubar\/menubar.css","type":"registry:component","content":"\/* KATA menubar 1.1.0 \u2014 kata-ui.dev\/components\/menubar \u2014 requires mold >= 4 *\/\n\/* KATA Menubar \u2014 the desktop bar, with the shortcuts showing. *\/\n.k-mbar{display:flex;align-items:center;gap:var(--k-space-0-5);font-family:var(--k-font);color:var(--k-ink);position:relative;background:var(--k-bg)}\n.k-mbar-item{position:relative}\n.k-mbar-btn{padding:var(--k-space-1) var(--k-space-3);border:0;background:none;font-family:inherit;font-size:var(--k-text-base);color:var(--k-ink-2);border-radius:var(--k-radius-md);cursor:pointer}\n.k-mbar-btn:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-mbar-item.open .k-mbar-btn{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-mbar-menu{position:absolute;inset-inline-start:0;top:calc(100% + 4px);min-width:228px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-pop);padding:var(--k-space-1);display:none;z-index:60}\n.k-mbar-item.open .k-mbar-menu{display:block}\n.k-mbar-mi{display:flex;align-items:center;gap:var(--k-space-2);width:100%;padding:var(--k-space-2) var(--k-space-2);border:0;background:none;font-family:inherit;font-size:var(--k-text-base);color:var(--k-ink);border-radius:var(--k-radius-md);cursor:pointer;text-align:start}\n.k-mbar-mi:hover{background:var(--k-bg-soft)}\n.k-mbar-mi .ck{width:15px;flex:none;color:var(--k-ink)}\n.k-mbar-mi .sc{margin-inline-start:auto;font-size:var(--k-text-xs);color:var(--k-ink-3);font-family:var(--k-mono,monospace);padding-inline-start:var(--k-space-5)}\n.k-mbar-sep{height:1px;background:var(--k-line);margin:var(--k-space-1) var(--k-space-2)}\n.k-mbar-mi[disabled]{opacity:.45;pointer-events:none}\n"},{"path":"components\/menubar\/menubar.js","type":"registry:component","content":"\/* KATA menubar 1.1.0 \u2014 kata-ui.dev\/components\/menubar \u2014 requires mold >= 4 *\/\n\/\/ KATA Menubar \u2014 click opens; while open, crossing the bar switches menus.\ndocument.querySelectorAll('[data-mbar]').forEach(function (bar) {\n  var items = Array.prototype.slice.call(bar.querySelectorAll('.k-mbar-item'));\n  var anyOpen = false;\n  function set(it, open) {\n    it.classList.toggle('open', open);\n    it.querySelector('.k-mbar-btn').setAttribute('aria-expanded', open ? 'true' : 'false');\n  }\n  function closeAll() { items.forEach(function (it) { set(it, false); }); anyOpen = false; }\n  items.forEach(function (it) {\n    var btn = it.querySelector('.k-mbar-btn');\n    btn.addEventListener('click', function () {\n      var was = it.classList.contains('open');\n      closeAll();\n      if (!was) { set(it, true); anyOpen = true; }\n    });\n    btn.addEventListener('pointerenter', function () { if (anyOpen) { closeAll(); set(it, true); anyOpen = true; } });\n    it.querySelectorAll('.k-mbar-mi').forEach(function (mi) { mi.addEventListener('click', closeAll); });\n  });\n  document.addEventListener('click', function (e) { if (!bar.contains(e.target)) closeAll(); });\n  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeAll(); });\n});\n"},{"path":"components\/menubar\/example.html","type":"registry:component","content":"<!-- KATA menubar 1.1.0 \u2014 kata-ui.dev\/components\/menubar \u2014 requires mold >= 4 -->\n<div style=\"border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;background:var(--k-bg)\">\n  <div style=\"display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-3);border-bottom:1px solid var(--k-line)\">\n    <span style=\"width:11px;height:11px;border-radius:50%;background:var(--k-zinc-300)\"><\/span>\n    <span style=\"width:11px;height:11px;border-radius:50%;background:var(--k-zinc-300)\"><\/span>\n    <span style=\"width:11px;height:11px;border-radius:50%;background:var(--k-zinc-300)\"><\/span>\n    <span style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-left:var(--k-space-2)\">notes.txt \u2014 Editor<\/span>\n  <\/div>\n  <div style=\"padding:var(--k-space-1) var(--k-space-2);min-height:190px\">\n    <div class=\"k-mbar\" data-mbar role=\"menubar\" aria-label=\"Preview\">\n      <span class=\"k-mbar-item\"><button class=\"k-mbar-btn\" type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\">File<\/button><div class=\"k-mbar-menu\" role=\"menu\"><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>New window<span class=\"sc\">Ctrl N<\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Open\u2026<span class=\"sc\">Ctrl O<\/span><\/button><div class=\"k-mbar-sep\"><\/div><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Close window<span class=\"sc\"><\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Quit<span class=\"sc\">Ctrl Q<\/span><\/button><\/div><\/span>\n      <span class=\"k-mbar-item\"><button class=\"k-mbar-btn\" type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\">Edit<\/button><div class=\"k-mbar-menu\" role=\"menu\"><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Undo<span class=\"sc\">Ctrl Z<\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Redo<span class=\"sc\">Ctrl \u21e7 Z<\/span><\/button><div class=\"k-mbar-sep\"><\/div><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Cut<span class=\"sc\">Ctrl X<\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Copy<span class=\"sc\">Ctrl C<\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Paste<span class=\"sc\">Ctrl V<\/span><\/button><\/div><\/span>\n      <span class=\"k-mbar-item\"><button class=\"k-mbar-btn\" type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\">View<\/button><div class=\"k-mbar-menu\" role=\"menu\"><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m5 12.5 4.5 4.5L19 7.5\"\/><\/svg><\/span>Sidebar<span class=\"sc\"><\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m5 12.5 4.5 4.5L19 7.5\"\/><\/svg><\/span>Status bar<span class=\"sc\"><\/span><\/button><div class=\"k-mbar-sep\"><\/div><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Zoom in<span class=\"sc\">Ctrl +<\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Zoom out<span class=\"sc\">Ctrl \u2212<\/span><\/button><\/div><\/span>\n      <span class=\"k-mbar-item\"><button class=\"k-mbar-btn\" type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\">Help<\/button><div class=\"k-mbar-menu\" role=\"menu\"><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>Keyboard shortcuts<span class=\"sc\"><\/span><\/button><button class=\"k-mbar-mi\" type=\"button\" role=\"menuitem\"><span class=\"ck\"><\/span>About<span class=\"sc\"><\/span><\/button><\/div><\/span>\n    <\/div>\n    <p style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-3);padding:0 var(--k-space-1)\">Open File, then slide across to Edit \u2014 the bar follows, like a desktop.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For editor-shaped and tool-shaped apps \u2014 anywhere commands outnumber buttons. Menus carry the shortcuts on the right so the bar doubles as documentation. While one menu is open, moving across the bar switches menus, the way every desktop taught its users to expect.","accessibility":"Buttons carry aria-expanded; menu items are menuitem buttons, Escape closes and returns focus, and clicking away closes. Full arrow-key menu navigation is the app\u2019s layer \u2014 the part guarantees the mouse and the basics."},"audit":{"id":"components\/menubar","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"navigation-menu","type":"registry:component","title":"Navigation Menu","description":"Site navigation with panels: the top level stays one line, the depth opens underneath it.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/navigation-menu\/navigation-menu.css","type":"registry:component","content":"\/* KATA navigation-menu 1.1.0 \u2014 kata-ui.dev\/components\/navigation-menu \u2014 requires mold >= 4 *\/\n\/* KATA Navigation Menu \u2014 one line on top, the depth underneath. *\/\n.k-navm{position:relative;font-family:var(--k-font);color:var(--k-ink)}\n.k-navm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--k-space-1)}\n.k-navm-item{position:relative}\n.k-navm-btn{display:flex;align-items:center;gap:var(--k-space-1);padding:var(--k-space-2) var(--k-space-3);border:0;background:none;font-family:inherit;font-size:var(--k-text-base);font-weight:550;color:var(--k-ink-2);border-radius:var(--k-radius-md);cursor:pointer;text-decoration:none}\n.k-navm-btn:hover,.k-navm-item.open .k-navm-btn{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-navm-btn svg{transition:transform var(--k-dur-base);color:var(--k-ink-3)}\n.k-navm-item.open .k-navm-btn svg{transform:rotate(180deg)}\n.k-navm-panel{position:absolute;inset-inline-start:0;top:calc(100% + 8px);min-width:300px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-2);display:none;z-index:60}\n.k-navm-item.open .k-navm-panel{display:block}\n.k-navm-link{display:flex;gap:var(--k-space-3);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);text-decoration:none;color:var(--k-ink)}\n.k-navm-link:hover{background:var(--k-bg-soft)}\n.k-navm-link .ic{width:32px;height:32px;flex:none;border:1px solid var(--k-line);border-radius:var(--k-radius-md);display:flex;align-items:center;justify-content:center;color:var(--k-ink-2)}\n.k-navm-link b{display:block;font-size:var(--k-text-base);font-weight:600}\n.k-navm-link span{font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-small);letter-spacing:.01em}\n@media (prefers-reduced-motion:reduce){.k-navm-btn svg{transition:none}}\n"},{"path":"components\/navigation-menu\/navigation-menu.js","type":"registry:component","content":"\/* KATA navigation-menu 1.1.0 \u2014 kata-ui.dev\/components\/navigation-menu \u2014 requires mold >= 4 *\/\n\/\/ KATA Navigation Menu \u2014 one panel at a time; Escape and outside clicks close.\ndocument.querySelectorAll('[data-navm]').forEach(function (root) {\n  var items = Array.prototype.slice.call(root.querySelectorAll('.k-navm-item'));\n  function closeAll(except) {\n    items.forEach(function (it) {\n      if (it === except) return;\n      it.classList.remove('open');\n      var b = it.querySelector('.k-navm-btn'); if (b) b.setAttribute('aria-expanded', 'false');\n    });\n  }\n  items.forEach(function (it) {\n    var btn = it.querySelector('.k-navm-btn');\n    if (!btn || !it.querySelector('.k-navm-panel')) return;\n    btn.addEventListener('click', function () {\n      var open = it.classList.toggle('open');\n      btn.setAttribute('aria-expanded', open ? 'true' : 'false');\n      if (open) closeAll(it);\n    });\n    it.addEventListener('pointerenter', function () {\n      if (window.matchMedia('(hover: hover)').matches) { closeAll(it); it.classList.add('open'); btn.setAttribute('aria-expanded', 'true'); }\n    });\n    it.addEventListener('pointerleave', function () {\n      if (window.matchMedia('(hover: hover)').matches) { it.classList.remove('open'); btn.setAttribute('aria-expanded', 'false'); }\n    });\n  });\n  document.addEventListener('click', function (e) { if (!root.contains(e.target)) closeAll(null); });\n  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeAll(null); });\n});\n"},{"path":"components\/navigation-menu\/example.html","type":"registry:component","content":"<!-- KATA navigation-menu 1.1.0 \u2014 kata-ui.dev\/components\/navigation-menu \u2014 requires mold >= 4 -->\n<div style=\"border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-2) var(--k-space-3) calc(var(--k-space-1) * 37);background:var(--k-bg)\">\n  <div class=\"k-navm\" data-navm>\n    <div class=\"k-navm-bar\" role=\"navigation\" aria-label=\"Preview\">\n      <span class=\"k-navm-item open\">\n        <button class=\"k-navm-btn\" type=\"button\" aria-expanded=\"true\" aria-haspopup=\"true\">Product <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button>\n        <div class=\"k-navm-panel\"><a class=\"k-navm-link\" href=\"#\"><span class=\"ic\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3 3 7.5v9L12 21l9-4.5v-9L12 3Z\"\/><path d=\"M3 7.5 12 12l9-4.5M12 12v9\"\/><\/svg><\/span><span><b>Components<\/b><span>The parts themselves, with live previews.<\/span><\/span><\/a><a class=\"k-navm-link\" href=\"#\"><span class=\"ic\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3.5 2.5 8.5 12 13.5l9.5-5L12 3.5Z\"\/><path d=\"m2.5 12.8 9.5 5 9.5-5\"\/><\/svg><\/span><span><b>Blocks<\/b><span>Parts already assembled into sections.<\/span><\/span><\/a><a class=\"k-navm-link\" href=\"#\"><span class=\"ic\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 20v-6M12 20V4M18 20v-9\"\/><path d=\"M3.5 20.5h17\"\/><\/svg><\/span><span><b>Themes<\/b><span>Five accents over one token set.<\/span><\/span><\/a><a class=\"k-navm-link\" href=\"#\"><span class=\"ic\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M9 13h6M9 17h6\"\/><\/svg><\/span><span><b>Changelog<\/b><span>What changed, and when.<\/span><\/span><\/a><\/div>\n      <\/span>\n      <span class=\"k-navm-item\">\n        <button class=\"k-navm-btn\" type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\">Resources <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button>\n        <div class=\"k-navm-panel\">\n          <a class=\"k-navm-link\" href=\"#\"><span><b>Documentation<\/b><span>Install, theme and compose.<\/span><\/span><\/a>\n          <a class=\"k-navm-link\" href=\"#\"><span><b>Guides<\/b><span>Dashboards, settings and pricing, walked through.<\/span><\/span><\/a>\n        <\/div>\n      <\/span>\n      <a class=\"k-navm-btn\" href=\"#\">Pricing<\/a>\n      <a class=\"k-navm-btn\" href=\"#\">About<\/a>\n    <\/div>\n  <\/div>\n  <p style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2)\">The panel opens under its item. Hover or click \u2014 Escape puts it away.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"For the header of a site with real depth \u2014 products with sub-pages, resources with kinds. On wide screens the panel opens under its item; below that width, use a Drawer. One panel open at a time, always.","accessibility":"Buttons carry aria-expanded and the panels are lists of plain links. Hover opens the panel for the mouse; the click is what the keyboard gets, and Escape or an outside click closes it. Not yet implemented: returning focus to the button after Escape. Items wrap onto a second line on narrow screens instead of scrolling, because a scrolling bar clipped the open panel."},"audit":{"id":"components\/navigation-menu","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"pagination","type":"registry:component","title":"Pagination","description":"Page numbers with a clear current page: ink-filled, everything else quiet.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/pagination\/pagination.css","type":"registry:component","content":"\/* KATA pagination 1.1.0 \u2014 kata-ui.dev\/components\/pagination \u2014 requires mold >= 2 *\/\n\/* KATA Pagination *\/\n.k-pagination{display:flex;align-items:center;gap:var(--k-space-1)}\n.k-page{min-width:32px;height:32px;padding:0 var(--k-space-2);display:inline-flex;align-items:center;justify-content:center;gap:var(--k-space-1);border-radius:var(--k-radius);font-size:var(--k-text-base);color:var(--k-ink-2);text-decoration:none;font-family:var(--k-font);transition:background var(--k-dur-fast)}\na.k-page:not([aria-current=\"page\"]):hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-page[aria-current=\"page\"]{background:var(--k-ink);color:var(--k-bg);font-weight:550}\n.k-page.dots{color:var(--k-ink-3);pointer-events:none}\n\/* Disabled: an <a> without href and aria-disabled=\"true\" is out of the Tab order and does nothing.\n   .disabled is kept as a deprecated alias; it only stops the pointer. *\/\n.k-page[aria-disabled=\"true\"],.k-page.disabled{opacity:.4;pointer-events:none}\na.k-page:not([aria-current=\"page\"]):active{background:var(--k-line)}\n.k-page-pos{font-size:var(--k-text-sm);color:var(--k-ink-2);padding:0 var(--k-space-1)}\n\/* Arrows point in the reading direction. *\/\n.k-pagination:dir(rtl) .k-page svg,.k-pagination:dir(rtl) .k-page-arrow{transform:scaleX(-1)}\n.k-page-arrow{display:inline-block}\n"},{"path":"components\/pagination\/example.html","type":"registry:component","content":"<!-- KATA pagination 1.1.0 \u2014 kata-ui.dev\/components\/pagination \u2014 requires mold >= 2 -->\n<div style=\"display:grid;gap:var(--k-space-4)\">\n  <nav class=\"k-pagination\" aria-label=\"Pagination\">\n    <a class=\"k-page\" href=\"#\" aria-label=\"Previous page\"><svg aria-hidden=\"true\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\"><path d=\"m15 6-6 6 6 6\"\/><\/svg><\/a>\n    <a class=\"k-page\" href=\"#\">1<\/a><a class=\"k-page\" href=\"#\" aria-current=\"page\">2<\/a><a class=\"k-page\" href=\"#\">3<\/a><a class=\"k-page\" href=\"#\">4<\/a><span class=\"k-page dots\" aria-hidden=\"true\">\u2026<\/span><a class=\"k-page\" href=\"#\">18<\/a>\n    <a class=\"k-page\" href=\"#\" aria-label=\"Next page\"><svg aria-hidden=\"true\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/a>\n  <\/nav>\n  <nav class=\"k-pagination\" aria-label=\"Pagination, first page\">\n    <a class=\"k-page\" aria-disabled=\"true\" aria-label=\"Previous page\"><svg aria-hidden=\"true\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\"><path d=\"m15 6-6 6 6 6\"\/><\/svg><\/a>\n    <a class=\"k-page\" href=\"#\" aria-current=\"page\">1<\/a><a class=\"k-page\" href=\"#\">2<\/a><a class=\"k-page\" href=\"#\">3<\/a>\n    <a class=\"k-page\" href=\"#\" aria-label=\"Next page\"><svg aria-hidden=\"true\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/a>\n  <\/nav>\n  <nav class=\"k-pagination\" aria-label=\"Pagination compact\">\n    <a class=\"k-page\" href=\"#\"><span class=\"k-page-arrow\" aria-hidden=\"true\">\u2190<\/span> Prev<\/a><span class=\"k-page-pos\">Page 3 of 12<\/span><a class=\"k-page\" href=\"#\">Next <span class=\"k-page-arrow\" aria-hidden=\"true\">\u2192<\/span><\/a>\n  <\/nav>\n<\/div>"}],"meta":{"status":"beta","usage":"For lists longer than a screen. Show the current page and its neighbours; collapse the rest into an ellipsis. On mobile, the compact form (prev \/ next + position) is enough.","accessibility":"A <nav> with its own aria-label; the current page carries aria-current=\"page\" and keeps its filled state on hover. Prev\/next links are named (\"Previous page\", \"Next page\"); their arrow icons and the compact form's text arrows are aria-hidden and mirror in RTL so they point in the reading direction. The ellipsis is aria-hidden. A disabled prev\/next is an <a> without href and with aria-disabled=\"true\", so it is out of the Tab order; .disabled remains as a deprecated alias that only stops the pointer. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/pagination","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"scroll-area","type":"registry:component","title":"Scroll Area","description":"A long list in a fixed frame, with a scrollbar that matches the room and a fade that admits there is more.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/scroll-area\/scroll-area.css","type":"registry:component","content":"\/* KATA scroll-area 1.1.0 \u2014 kata-ui.dev\/components\/scroll-area \u2014 requires mold >= 2 *\/\n.k-scroll{position:relative;font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-scroll-in{max-height:216px;overflow-y:auto;padding-inline-end:var(--k-space-1);scrollbar-width:thin;scrollbar-color:var(--k-border-strong) transparent}\n.k-scroll-in::-webkit-scrollbar{width:8px}\n.k-scroll-in::-webkit-scrollbar-thumb{background:var(--k-border-strong);border-radius:var(--k-radius-full)}\n.k-scroll-in::-webkit-scrollbar-track{background:transparent}\n.k-scroll::after{content:\"\";position:absolute;left:0;right:10px;bottom:0;height:34px;background:linear-gradient(transparent,var(--k-bg));pointer-events:none}\n.k-scroll .rl{display:flex;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);font-size:var(--k-text-base);align-items:baseline}\n.k-scroll .rl:hover{background:var(--k-bg-soft)}\n.k-scroll .rl time{font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3);flex:none}\n.k-scroll .rl b{font-weight:550}\n"},{"path":"components\/scroll-area\/example.html","type":"registry:component","content":"<!-- KATA scroll-area 1.1.0 \u2014 kata-ui.dev\/components\/scroll-area \u2014 requires mold >= 2 -->\n<div class=\"k-scroll\" style=\"max-width:400px\">\n  <div class=\"k-scroll-in\" tabindex=\"0\" aria-label=\"Release notes\">\n    <div class=\"rl\"><time>Nov 1<\/time><span><b>v2.20.0<\/b> \u2014 New: Date Picker and Combobox join the set.<\/span><\/div><div class=\"rl\"><time>Oct 28<\/time><span><b>v2.19.0<\/b> \u2014 Blocks: Use Cases and Integrations.<\/span><\/div><div class=\"rl\"><time>Oct 24<\/time><span><b>v2.18.0<\/b> \u2014 Data Table sorts; Tree folds.<\/span><\/div><div class=\"rl\"><time>Oct 19<\/time><span><b>v2.17.2<\/b> \u2014 Fix: MPEG-TS cuts keep their video stream.<\/span><\/div><div class=\"rl\"><time>Oct 12<\/time><span><b>v2.17.0<\/b> \u2014 File Upload and Tag Input.<\/span><\/div><div class=\"rl\"><time>Oct 5<\/time><span><b>v2.16.0<\/b> \u2014 Context Menu, written as a component.<\/span><\/div><div class=\"rl\"><time>Sep 28<\/time><span><b>v2.15.0<\/b> \u2014 The mold check learns the class-coverage rule.<\/span><\/div><div class=\"rl\"><time>Sep 20<\/time><span><b>v2.14.0<\/b> \u2014 Themes ship: five accents, one command.<\/span><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For sidebars, logs and pickers that must not push the page around. If the content is the page, let the page scroll \u2014 this is for regions inside it.","accessibility":"Native scrolling throughout: keyboard, wheel and touch all work because nothing is faked. The custom styling is paint only."},"audit":{"id":"components\/scroll-area","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"scrollspy","type":"registry:component","title":"Scrollspy","description":"A contents list that watches the page: the section you are reading is the one it lights.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/scrollspy\/scrollspy.css","type":"registry:component","content":"\/* KATA scrollspy 1.1.0 \u2014 kata-ui.dev\/components\/scrollspy \u2014 requires mold >= 4 *\/\n\/* KATA Scrollspy \u2014 the contents list that keeps its place. *\/\n.k-spy{width:100%;display:grid;grid-template-columns:168px 1fr;gap:var(--k-space-5);font-family:var(--k-font);color:var(--k-ink)}\n.k-spy nav{display:flex;flex-direction:column;gap:var(--k-space-0-5);align-self:start}\n.k-spy nav a{font-size:var(--k-text-base);color:var(--k-ink-2);text-decoration:none;padding:var(--k-space-1) var(--k-space-2);border-radius:var(--k-radius-md);border-inline-start:2px solid var(--k-line)}\n.k-spy nav a:hover{color:var(--k-ink);background:var(--k-bg-soft)}\n.k-spy nav a.on{color:var(--k-ink);font-weight:600;border-inline-start-color:var(--k-core);background:var(--k-bg-soft)}\n.k-spy-body{height:264px;overflow:auto;border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-4) var(--k-space-4);scroll-behavior:smooth}\n.k-spy-body section{margin-bottom:var(--k-space-5)}\n.k-spy-body h4{font-size:var(--k-text-md);font-weight:600;margin-bottom:var(--k-space-1)}\n.k-spy-body p{font-size:var(--k-text-base);line-height:var(--k-lh-loose);color:var(--k-ink-2);letter-spacing:.01em}\n@media (max-width:560px){.k-spy{grid-template-columns:1fr}.k-spy nav{flex-direction:row;flex-wrap:wrap}}\n"},{"path":"components\/scrollspy\/scrollspy.js","type":"registry:component","content":"\/* KATA scrollspy 1.1.0 \u2014 kata-ui.dev\/components\/scrollspy \u2014 requires mold >= 4 *\/\n\/\/ KATA Scrollspy \u2014 IntersectionObserver against the real scroll container.\ndocument.querySelectorAll('[data-spy]').forEach(function (root) {\n  var body = root.querySelector('.k-spy-body');\n  var links = {};\n  root.querySelectorAll('nav a[href^=\"#\"]').forEach(function (a) { links[a.getAttribute('href').slice(1)] = a; });\n  var io = new IntersectionObserver(function (entries) {\n    entries.forEach(function (en) {\n      if (!en.isIntersecting) return;\n      Object.values(links).forEach(function (a) { a.classList.remove('on'); a.removeAttribute('aria-current'); });\n      var a = links[en.target.id];\n      if (a) { a.classList.add('on'); a.setAttribute('aria-current', 'location'); }\n    });\n  }, { root: body, rootMargin: '0px 0px -62% 0px', threshold: 0 });\n  body.querySelectorAll('section[id]').forEach(function (s) { io.observe(s); });\n});\n"},{"path":"components\/scrollspy\/example.html","type":"registry:component","content":"<!-- KATA scrollspy 1.1.0 \u2014 kata-ui.dev\/components\/scrollspy \u2014 requires mold >= 4 -->\n<div class=\"k-spy\" data-spy>\n  <nav aria-label=\"On this page\">\n    <a href=\"#spy-install\" class=\"on\" aria-current=\"location\">Installation<\/a>\n    <a href=\"#spy-tokens\">Tokens<\/a>\n    <a href=\"#spy-parts\">Parts<\/a>\n    <a href=\"#spy-blocks\">Blocks<\/a>\n    <a href=\"#spy-themes\">Themes<\/a>\n  <\/nav>\n  <div class=\"k-spy-body\">\n    <section id=\"spy-install\"><h4>Installation<\/h4><p>Load the tokens once, then copy the part. Nothing in the catalog needs a build step, a framework or a package manager \u2014 the files are the product.<\/p><\/section>\n    <section id=\"spy-tokens\"><h4>Tokens<\/h4><p>Every color, radius and motion curve is a custom property. Parts read the tokens; they never name a color of their own, which is what makes themes a one-file change.<\/p><\/section>\n    <section id=\"spy-parts\"><h4>Parts<\/h4><p>A part is a folder: the markup, the CSS, and the small script if it has one. The page for each part shows all three, ready to copy.<\/p><\/section>\n    <section id=\"spy-blocks\"><h4>Blocks<\/h4><p>Blocks are parts already assembled \u2014 a login, a pricing table, an app shell. Take the whole block, then take it apart with the catalog.<\/p><\/section>\n    <section id=\"spy-themes\"><h4>Themes<\/h4><p>A theme moves the accent only. Neutrals, spacing and the vermillion core never change, so a rebrand cannot quietly become a redesign.<\/p><\/section>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For long pages with a table of contents \u2014 docs, guides, policies. The observer marks the section near the top of the viewport; clicking still uses plain anchors, so the back button and deep links keep working. In an app, the scroll container is whatever actually scrolls.","accessibility":"The links are plain anchors to real ids, and the current one carries aria-current=\"location\" \u2014 the highlight is the same information for every reader, not a color alone."},"audit":{"id":"components\/scrollspy","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"separator","type":"registry:component","title":"Separator","description":"A hairline that divides without decorating. Plain, labelled, and vertical forms.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/separator\/separator.css","type":"registry:component","content":"\/* KATA separator 1.1.0 \u2014 kata-ui.dev\/components\/separator \u2014 requires mold >= 2 *\/\n\/* KATA Separator *\/\n\/* Zero inline margins: the UA hr margin is auto, which shrinks it to 0px inside grid and flex containers. *\/\n.k-sep{border:0;border-block-start:1px solid var(--k-line);margin-inline:0}\n.k-sep-label{display:flex;align-items:center;gap:var(--k-space-3);color:var(--k-ink-3);font-size:var(--k-text-sm);font-family:var(--k-font)}\n\/* Borders, not backgrounds: forced-colors mode drops background colors. *\/\n.k-sep-label::before,.k-sep-label::after{content:\"\";block-size:0;border-block-start:1px solid var(--k-line);flex:1}\n.k-sep-v{inline-size:0;align-self:stretch;border-inline-start:1px solid var(--k-line);flex:none}\n"},{"path":"components\/separator\/example.html","type":"registry:component","content":"<!-- KATA separator 1.1.0 \u2014 kata-ui.dev\/components\/separator \u2014 requires mold >= 2 -->\n<div style=\"display:grid;gap:var(--k-space-4);max-width:430px\">\n  <p style=\"font-size:var(--k-text-base)\">Account details<\/p>\n  <hr class=\"k-sep\">\n  <p style=\"font-size:var(--k-text-base)\">Billing address<\/p>\n  <div class=\"k-sep-label\">OR<\/div>\n  <div style=\"display:flex;gap:var(--k-space-3);align-items:center;font-size:var(--k-text-base);color:var(--k-ink-2)\"><span>Docs<\/span><span class=\"k-sep-v\" style=\"height:16px\" aria-hidden=\"true\"><\/span><span>Support<\/span><span class=\"k-sep-v\" style=\"height:16px\" aria-hidden=\"true\"><\/span><span>Community<\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Use it between groups of content. If everything needs a separator, the grouping is wrong. The labelled form is for alternatives (OR) and section breaks in forms.","accessibility":"The plain form is a native <hr> (role=\"separator\"); use role=\"separator\" on other elements only when the division carries meaning, and aria-hidden=\"true\" on purely visual ones such as the vertical form. Every line is a 1px border, so it stays visible in forced-colors mode."},"audit":{"id":"components\/separator","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"sidebar","type":"registry:component","title":"Sidebar","description":"The app sidebar as a part: sections, collapsible groups, badges, an icon rail variant, and the user at the foot.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/sidebar\/sidebar.css","type":"registry:component","content":"\/* KATA sidebar 1.1.0 \u2014 kata-ui.dev\/components\/sidebar \u2014 requires mold >= 4 *\/\n\/* KATA Sidebar \u2014 the app sidebar as a part: sections, collapsible groups,\n   an icon rail, and the user at the foot. The current page carries the\n   vermillion core on its icon, like the app shell and the templates. *\/\n.k-side{width:230px;flex:none;display:flex;flex-direction:column;background:var(--k-bg);border-inline-end:1px solid var(--k-line);padding:var(--k-space-3) var(--k-space-2);font-family:var(--k-font);color:var(--k-ink);text-align:start}\n.k-side-brand{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-0-5) var(--k-space-2) var(--k-space-3);font-size:var(--k-text-md);font-weight:600}\n.k-side-mark{width:24px;height:24px;border-radius:var(--k-radius-md);background:var(--k-ink);color:var(--k-bg);display:flex;align-items:center;justify-content:center;flex:none}\n.k-side-sec{font-size:var(--k-text-xs);letter-spacing:.1em;font-weight:650;color:var(--k-ink-2);margin:var(--k-space-4) var(--k-space-2) var(--k-space-1);line-height:var(--k-lh-heading)}\n.k-side-nav{display:grid;gap:var(--k-space-0-5)}\n.k-side-item{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);font-size:var(--k-text-base);letter-spacing:.01em;color:var(--k-ink-2);text-decoration:none;cursor:pointer;background:none;border:0;width:100%;text-align:start;font-family:inherit}\n.k-side-item:hover{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-side-item.on,.k-side-item[aria-current=\"page\"]{background:var(--k-bg-soft);color:var(--k-ink);font-weight:550}\n.k-side-item.on svg,.k-side-item[aria-current=\"page\"] svg{color:var(--k-core)}\n.k-side-item svg{flex:none}\n.k-side-badge{margin-inline-start:auto;font-size:var(--k-text-xs);font-weight:600;background:var(--k-bg-soft);border:1px solid var(--k-line);color:var(--k-ink-2);border-radius:var(--k-radius-full);padding:var(--k-space-px) var(--k-space-2)}\n.k-side-item.on .k-side-badge,.k-side-item[aria-current=\"page\"] .k-side-badge{background:var(--k-bg)}\n.k-side-chev{margin-inline-start:auto;transition:transform var(--k-dur-base)}\n.k-side-group.open .k-side-chev{transform:rotate(180deg)}\n.k-side-sub{display:none;gap:var(--k-space-0-5);margin-block:var(--k-space-0-5);margin-inline-start:var(--k-space-6)}\n.k-side-group.open .k-side-sub{display:grid}\n.k-side-sub .k-side-item{font-size:var(--k-text-base);padding:var(--k-space-1) var(--k-space-2)}\n.k-side-user{margin-block-start:auto;display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-2) var(--k-space-0-5);border-block-start:1px solid var(--k-line)}\n.k-side-ava{width:30px;height:30px;border-radius:50%;background:var(--k-ink);color:var(--k-bg);display:flex;align-items:center;justify-content:center;font-size:var(--k-text-sm);font-weight:600;flex:none}\n.k-side-uname{font-size:var(--k-text-base);font-weight:550;line-height:var(--k-lh-heading)}\n.k-side-urole{font-size:var(--k-text-xs);color:var(--k-ink-3);letter-spacing:.01em}\n.k-side.rail{width:60px;padding:var(--k-space-3) var(--k-space-2);align-items:center}\n.k-side.rail .k-side-brand{padding:var(--k-space-0-5) 0 var(--k-space-3)}\n.k-side.rail .k-side-nav{justify-items:center}\n.k-side.rail .k-side-item{justify-content:center;padding:var(--k-space-2) 0;width:40px}\n.k-side.rail .k-side-sec,.k-side.rail .k-side-badge,.k-side.rail .k-side-chev{display:none}\n\/* Rail labels stay in the accessibility tree: hidden visually, not removed. *\/\n.k-side.rail .k-side-item,.k-side.rail .k-side-user{position:relative}\n.k-side.rail .k-side-t,.k-side.rail .k-side-umeta{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n.k-side.rail .k-side-user{justify-content:center;padding:var(--k-space-3) 0 var(--k-space-0-5)}\n@media (prefers-reduced-motion:reduce){.k-side-chev{transition:none}}\n"},{"path":"components\/sidebar\/sidebar.js","type":"registry:component","content":"\/* KATA sidebar 1.1.0 \u2014 kata-ui.dev\/components\/sidebar \u2014 requires mold >= 4 *\/\n\/\/ KATA Sidebar \u2014 collapsible groups. Everything else is plain links.\n(function () {\n  document.querySelectorAll('[data-side-toggle]').forEach(function (btn) {\n    if (btn.hasAttribute('data-kata-ready')) return;\n    btn.setAttribute('data-kata-ready', '');\n    btn.addEventListener('click', function () {\n      var group = btn.closest('.k-side-group');\n      if (!group) return;\n      var open = group.classList.toggle('open');\n      btn.setAttribute('aria-expanded', open ? 'true' : 'false');\n    });\n  });\n})();\n"},{"path":"components\/sidebar\/example.html","type":"registry:component","content":"<!-- KATA sidebar 1.1.0 \u2014 kata-ui.dev\/components\/sidebar \u2014 requires mold >= 4 -->\n<div style=\"display:flex;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;max-width:620px;background:var(--k-bg)\">\n  <nav class=\"k-side\" data-side aria-label=\"Sidebar preview\">\n    <div class=\"k-side-brand\"><span class=\"k-side-mark\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3.5 2.5 8.5 12 13.5l9.5-5L12 3.5Z\"\/><path d=\"m2.5 12.8 9.5 5 9.5-5\"\/><\/svg><\/span>Northwind<\/div>\n    <div class=\"k-side-sec\">MAIN<\/div>\n    <div class=\"k-side-nav\">\n      <a class=\"k-side-item on\" href=\"#\" aria-current=\"page\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m3 11 9-8 9 8\"\/><path d=\"M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5\"\/><\/svg><span class=\"k-side-t\">Overview<\/span><\/a>\n      <div class=\"k-side-group open\">\n        <button class=\"k-side-item\" type=\"button\" data-side-toggle aria-expanded=\"true\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><span class=\"k-side-t\">Projects<\/span><svg class=\"k-side-chev\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button>\n        <div class=\"k-side-sub\">\n          <a class=\"k-side-item\" href=\"#\"><span class=\"k-side-t\">Website rebuild<\/span><\/a>\n          <a class=\"k-side-item\" href=\"#\"><span class=\"k-side-t\">Mobile app<\/span><\/a>\n          <a class=\"k-side-item\" href=\"#\"><span class=\"k-side-t\">Brand refresh<\/span><\/a>\n        <\/div>\n      <\/div>\n      <a class=\"k-side-item\" href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"16\" rx=\"2\"\/><path d=\"M3.5 10h17M8 3v4M16 3v4\"\/><\/svg><span class=\"k-side-t\">Calendar<\/span><span class=\"k-side-badge\">3<\/span><\/a>\n      <a class=\"k-side-item\" href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 20v-6M12 20V4M18 20v-9\"\/><path d=\"M3.5 20.5h17\"\/><\/svg><span class=\"k-side-t\">Reports<\/span><\/a>\n    <\/div>\n    <div class=\"k-side-sec\">MANAGE<\/div>\n    <div class=\"k-side-nav\">\n      <a class=\"k-side-item\" href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"9\" cy=\"8.5\" r=\"3.4\"\/><path d=\"M2.8 20c.7-3.4 3.2-5.2 6.2-5.2s5.5 1.8 6.2 5.2\"\/><path d=\"M16 5.4a3.4 3.4 0 0 1 0 6.4M18.5 15.4c1.5.8 2.5 2.4 2.9 4.6\"\/><\/svg><span class=\"k-side-t\">Team<\/span><\/a>\n      <a class=\"k-side-item\" href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 6h10M17 6h4M3 12h4M11 12h10M3 18h12M19 18h2\"\/><circle cx=\"15\" cy=\"6\" r=\"2\"\/><circle cx=\"9\" cy=\"12\" r=\"2\"\/><circle cx=\"17\" cy=\"18\" r=\"2\"\/><\/svg><span class=\"k-side-t\">Settings<\/span><\/a>\n    <\/div>\n    <div class=\"k-side-user\"><span class=\"k-side-ava\" aria-hidden=\"true\">AR<\/span><span class=\"k-side-umeta\"><span class=\"k-side-uname\">Aoki Ren<\/span><br><span class=\"k-side-urole\">Workspace admin<\/span><\/span><\/div>\n  <\/nav>\n  <div style=\"flex:1;padding:var(--k-space-5);min-width:0\">\n    <p style=\"font-size:var(--k-text-lead);font-weight:600\">Overview<\/p>\n    <p style=\"font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-loose);margin-top:var(--k-space-1);letter-spacing:.01em\">The sidebar is the part; this column is just the room it stands in. Try the Projects group \u2014 it folds. The current page carries the vermillion core on its icon, and the user sits at the foot, out of the way until needed.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Drop it at the left edge of an app frame. The current page is marked by the vermillion core on its icon \u2014 the same mark the App Shell block and the templates use. Groups collapse with the small script; without the script they stay exactly as written, so write the important one open.","accessibility":"A real nav landmark of links; the current page carries aria-current=\"page\" (styled like .on). Group buttons carry aria-expanded and the sub-list is plain links. In the rail the labels and the user name are visually hidden (1px clip), not removed, so rail links keep their text names; keep a title for a pointer tooltip. The avatar initials are aria-hidden. The script is guarded with data-kata-ready, so loading it twice toggles once per click. Spacing uses logical properties for dir=\"rtl\"."},"audit":{"id":"components\/sidebar","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"speed-dial","type":"registry:component","title":"Speed Dial","description":"One floating button that fans out into the few actions a page is really for.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/speed-dial\/speed-dial.css","type":"registry:component","content":"\/* KATA speed-dial 1.1.0 \u2014 kata-ui.dev\/components\/speed-dial \u2014 requires mold >= 2 *\/\n\/* KATA Speed Dial \u2014 one button, a fan of actions. *\/\n.k-dial{position:absolute;right:18px;bottom:18px;display:flex;flex-direction:column;align-items:flex-end;gap:var(--k-space-2);font-family:var(--k-font)}\n\/* Collapsed actions leave the Tab order and assistive tech once the fade-out ends. *\/\n.k-dial .acts{display:flex;flex-direction:column;align-items:flex-end;gap:var(--k-space-2);opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;transition:opacity var(--k-dur-base),transform var(--k-dur-base),visibility 0s linear var(--k-dur-base)}\n.k-dial.open .acts{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}\n.k-dial .act{display:flex;align-items:center;gap:var(--k-space-2);background:none;border:0;cursor:pointer;font-family:inherit;padding:0}\n.k-dial .act .lbl{font-size:var(--k-text-sm);font-weight:550;color:var(--k-ink);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-md);padding:var(--k-space-1) var(--k-space-2);box-shadow:var(--k-shadow-sm)}\n.k-dial .act .fab{width:42px;height:42px;border-radius:50%;background:var(--k-bg);border:1px solid var(--k-line);color:var(--k-ink-2);display:flex;align-items:center;justify-content:center;box-shadow:var(--k-shadow-sm)}\n.k-dial .act:hover .fab{background:var(--k-bg-soft);color:var(--k-ink)}\n.k-dial .main{width:54px;height:54px;border-radius:50%;background:var(--k-ink);color:var(--k-bg);border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--k-shadow-sm)}\n.k-dial .main svg{transition:transform var(--k-dur-base)}\n.k-dial.open .main svg{transform:rotate(45deg)}\n@media (prefers-reduced-motion:reduce){.k-dial .acts,.k-dial .main svg{transition:none}}\n"},{"path":"components\/speed-dial\/speed-dial.js","type":"registry:component","content":"\/* KATA speed-dial 1.1.0 \u2014 kata-ui.dev\/components\/speed-dial \u2014 requires mold >= 2 *\/\n\/\/ KATA Speed Dial \u2014 open and shut; Escape shuts it from anywhere.\ndocument.querySelectorAll('[data-dial]').forEach(function (el) {\n  var main = el.querySelector('.main');\n  main.addEventListener('click', function () {\n    var open = el.classList.toggle('open');\n    main.setAttribute('aria-expanded', open ? 'true' : 'false');\n  });\n  document.addEventListener('keydown', function (e) {\n    if (e.key === 'Escape' && el.classList.contains('open')) {\n      el.classList.remove('open');\n      main.setAttribute('aria-expanded', 'false');\n    }\n  });\n});\n"},{"path":"components\/speed-dial\/example.html","type":"registry:component","content":"<!-- KATA speed-dial 1.1.0 \u2014 kata-ui.dev\/components\/speed-dial \u2014 requires mold >= 2 -->\n<div style=\"position:relative;width:100%;height:290px;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;background:var(--k-bg-soft)\">\n  <p style=\"position:absolute;left:16px;top:14px;font-size:var(--k-text-sm);color:var(--k-ink-3)\">The corner of an app. The button below is the part.<\/p>\n  <div class=\"k-dial\" data-dial>\n    <div class=\"acts\">\n      <button class=\"act\" type=\"button\"><span class=\"lbl\">New document<\/span><span class=\"fab\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M9 13h6M9 17h6\"\/><\/svg><\/span><\/button>\n      <button class=\"act\" type=\"button\"><span class=\"lbl\">New photo<\/span><span class=\"fab\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><circle cx=\"9\" cy=\"10\" r=\"1.6\"\/><path d=\"m5 19 5.5-5.5 3 3L17 13l2 2\"\/><\/svg><\/span><\/button>\n      <button class=\"act\" type=\"button\"><span class=\"lbl\">Invite people<\/span><span class=\"fab\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"9\" cy=\"8.5\" r=\"3.4\"\/><path d=\"M2.8 20c.7-3.4 3.2-5.2 6.2-5.2s5.5 1.8 6.2 5.2\"\/><path d=\"M16 5.4a3.4 3.4 0 0 1 0 6.4M18.5 15.4c1.5.8 2.5 2.4 2.9 4.6\"\/><\/svg><\/span><\/button>\n    <\/div>\n    <button class=\"main\" type=\"button\" aria-label=\"Create\" aria-expanded=\"false\" aria-haspopup=\"true\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For app-shaped pages where one verb (\"add\", \"compose\") has variants: the button rests at the corner, the actions rise with their labels showing. Three to five actions \u2014 a sixth is a menu wearing a costume. Fixing it to the viewport is the page\u2019s job; the part is the cluster.","accessibility":"The trigger carries aria-expanded and the actions are ordinary buttons, reachable by keyboard in order when open; while collapsed they are hidden from Tab and assistive tech after the fade-out. Each action shows its name as visible text, without hovering."},"audit":{"id":"components\/speed-dial","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"split-panel","type":"registry:component","title":"Split Panel","description":"Two panes and a handle \u2014 drag it, or tab to it and use the arrow keys.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/split-panel\/split-panel.css","type":"registry:component","content":"\/* KATA split-panel 1.1.0 \u2014 kata-ui.dev\/components\/split-panel \u2014 requires mold >= 4 *\/\n.k-split{display:flex;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;background:var(--k-bg);font-family:var(--k-font);text-align:start;color:var(--k-ink);min-height:210px}\n.k-split-a{flex:none;box-sizing:border-box;overflow:auto;padding:var(--k-space-4)}\n.k-split-b{flex:1;overflow:auto;padding:var(--k-space-4);min-width:0}\n.k-split-h{flex:none;width:9px;margin:0 calc(var(--k-space-px) * -1);cursor:col-resize;display:grid;place-items:center;color:var(--k-ink-3);background:transparent;border-left:1px solid var(--k-line);border-right:1px solid var(--k-line);touch-action:none;z-index:2}\n.k-split-h:hover,.k-split-h:focus-visible{background:var(--k-accent-bg);color:var(--k-accent-ink);outline:none}\n\/* .k-split clips overflow, so the handle draws its ring inside. *\/\n.k-split-h:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n.k-split h5{font-size:var(--k-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);font-weight:600;margin-bottom:var(--k-space-2)}\n.k-split p{font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-split .row{font-size:var(--k-text-base);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);white-space:nowrap}\n.k-split .row.on{background:var(--k-accent-bg);color:var(--k-accent-ink);font-weight:550}\n.k-split-h .dots{width:4px;height:24px;background-image:radial-gradient(circle,currentColor 1.3px,transparent 1.5px);background-size:4px 7px;background-position:center}\n\n\/* Stacked panes: set aria-orientation=\"horizontal\" on the handle. *\/\n.k-split.k-split-v{flex-direction:column;block-size:calc(var(--k-space-16) * 5)}\n.k-split-v .k-split-a{min-block-size:0}\n.k-split-v .k-split-b{min-block-size:0}\n.k-split-v .k-split-h{width:auto;height:9px;margin:0;cursor:row-resize;border-left:0;border-right:0;border-top:1px solid var(--k-line);border-bottom:1px solid var(--k-line)}\n.k-split-v .k-split-h .dots{width:24px;height:4px;background-size:7px 4px}\n"},{"path":"components\/split-panel\/split-panel.js","type":"registry:component","content":"\/* KATA split-panel 1.1.0 \u2014 kata-ui.dev\/components\/split-panel \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-split]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const pane = root.querySelector('.k-split-a');\n    const handle = root.querySelector('[data-split-h]');\n    if (!pane || !handle) return;\n    root.dataset.kataReady = 'true';\n    identify(root, 'kata-split'); identify(pane, 'kata-split-pane');\n    handle.setAttribute('role', 'separator');\n    if (!handle.hasAttribute('tabindex')) handle.tabIndex = 0;\n    if (!handle.hasAttribute('aria-label')) handle.setAttribute('aria-label', 'Resize panes');\n    handle.setAttribute('aria-controls', pane.id);\n    \/\/ aria-orientation=\"horizontal\" means a horizontal bar between stacked panes.\n    const stacked = handle.getAttribute('aria-orientation') === 'horizontal';\n    root.classList.toggle('k-split-v', stacked);\n    const read = (name, fallback) => { const n = parseFloat(handle.getAttribute(name)); return Number.isFinite(n) ? n : fallback; };\n    const min = read('aria-valuemin', 20), max = read('aria-valuemax', 80);\n    handle.setAttribute('aria-valuemin', String(min)); handle.setAttribute('aria-valuemax', String(max));\n    let value = read('aria-valuenow', 38);\n\n    function set(next, notify) {\n      const clamped = Math.max(min, Math.min(max, next));\n      const changed = Math.round(clamped) !== Math.round(value);\n      value = clamped;\n      pane.style[stacked ? 'height' : 'width'] = value + '%';\n      handle.setAttribute('aria-valuenow', String(Math.round(value)));\n      if (notify && changed) root.dispatchEvent(new CustomEvent('kata-split-panel-change', { bubbles: true, detail: { value: Math.round(value) } }));\n    }\n    set(value, false);\n    const rtl = () => getComputedStyle(root).direction === 'rtl';\n    function fromPointer(event) {\n      const box = root.getBoundingClientRect();\n      if (stacked) return (event.clientY - box.top) \/ box.height * 100;\n      return (rtl() ? box.right - event.clientX : event.clientX - box.left) \/ box.width * 100;\n    }\n\n    let start = null;\n    handle.addEventListener('pointerdown', event => {\n      if (event.button !== 0) return;\n      event.preventDefault();\n      start = value;\n      handle.setPointerCapture(event.pointerId);\n      handle.focus();\n    });\n    handle.addEventListener('pointermove', event => {\n      if (start !== null && handle.hasPointerCapture(event.pointerId)) set(fromPointer(event), false);\n    });\n    \/\/ Capture ends on pointerup, pointercancel or loss; report one change per drag.\n    handle.addEventListener('lostpointercapture', () => {\n      if (start === null) return;\n      const before = start; start = null;\n      if (Math.round(before) !== Math.round(value)) root.dispatchEvent(new CustomEvent('kata-split-panel-change', { bubbles: true, detail: { value: Math.round(value) } }));\n    });\n    handle.addEventListener('keydown', event => {\n      if (event.isComposing || event.keyCode === 229) return;\n      const step = event.shiftKey ? 10 : 2;\n      let next = null;\n      if (stacked) {\n        if (event.key === 'ArrowUp') next = value - step;\n        else if (event.key === 'ArrowDown') next = value + step;\n      } else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {\n        \/\/ The handle moves in the arrow's visual direction; in RTL the first pane sits on the right.\n        const toward = (event.key === 'ArrowRight') !== rtl() ? 1 : -1;\n        next = value + toward * step;\n      }\n      if (event.key === 'Home') next = min;\n      else if (event.key === 'End') next = max;\n      if (next === null) return;\n      event.preventDefault(); set(next, true);\n    });\n  });\n})();\n"},{"path":"components\/split-panel\/example.html","type":"registry:component","content":"<!-- KATA split-panel 1.1.0 \u2014 kata-ui.dev\/components\/split-panel \u2014 requires mold >= 4 -->\n<div class=\"k-split\" data-split style=\"max-width:600px\">\n  <div class=\"k-split-a\">\n    <h5>Notebooks<\/h5>\n    <div class=\"row on\">Product notes<\/div>\n    <div class=\"row\">Meeting log<\/div>\n    <div class=\"row\">Reading list<\/div>\n    <div class=\"row\">Archive<\/div>\n  <\/div>\n  <div class=\"k-split-h\" data-split-h tabindex=\"0\" role=\"separator\" aria-orientation=\"vertical\" aria-label=\"Resize panes\" aria-valuenow=\"38\" aria-valuemin=\"20\" aria-valuemax=\"80\"><span class=\"dots\"><\/span><\/div>\n  <div class=\"k-split-b\">\n    <h5>Product notes<\/h5>\n    <p>The left pane is a list, the right pane is the thing itself. Drag the handle \u2014 or focus it and use the arrow keys \u2014 and the split holds anywhere between 20% and 80%.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For editors, mail clients and inspectors: a list on one side, the thing itself on the other. Below two panes, stop \u2014 stack instead. Set aria-orientation=\"horizontal\" on the handle to stack the panes vertically. Listen for a finished resize:\n\n```js\ndocument.addEventListener('kata-split-panel-change', event => {\n  console.log(event.detail.value);\n});\n```","accessibility":"The handle is a focusable role=separator that controls the first pane, with aria-valuenow, aria-valuemin and aria-valuemax (default 20\u201380). Left\/Right move it in the arrow's visual direction (RTL included); stacked panes use Up\/Down. Shift moves 10 instead of 2, and Home\/End jump to the limits. Dragging uses pointer capture and reports one change when it ends. Screen-reader output is not yet verified by hand."},"audit":{"id":"components\/split-panel","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"steps","type":"registry:component","title":"Steps","description":"Where you are in a sequence of things that must happen in order.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/steps\/steps.css","type":"registry:component","content":"\/* KATA steps 1.1.0 \u2014 kata-ui.dev\/components\/steps \u2014 requires mold >= 2 *\/\n.k-steps{list-style:none;margin:0;padding:0;display:flex;width:100%;font-family:var(--k-font)}\n.k-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:var(--k-space-2);position:relative;text-align:center}\n.k-steps li::before{content:\"\";position:absolute;top:13px;left:calc(-50% + 16px);right:calc(50% + 16px);height:2px;background:var(--k-line);border-radius:var(--k-radius-xs)}\n.k-steps li:first-child::before{display:none}\n.k-steps li[data-state=\"done\"]::before{background:var(--k-ink)}\n.k-steps .n{width:27px;height:27px;border-radius:50%;border:2px solid var(--k-line);background:var(--k-bg);display:grid;place-items:center;font-size:var(--k-text-sm);font-weight:600;color:var(--k-ink-3);position:relative;z-index:1}\n.k-steps li[data-state=\"done\"] .n{background:var(--k-ink);border-color:var(--k-ink);color:var(--k-bg)}\n.k-steps li[data-state=\"current\"] .n{border-color:var(--k-ink);color:var(--k-ink)}\n.k-steps li[data-state=\"current\"] .n::after{content:\"\";width:7px;height:7px;border-radius:50%;background:var(--k-core);position:absolute}\n.k-steps .t{font-size:var(--k-text-sm);white-space:nowrap;font-weight:550;color:var(--k-ink-3)}\n.k-steps li[data-state=\"current\"] .t{color:var(--k-ink)}\n.k-steps li[data-state=\"done\"] .t{color:var(--k-ink-2)}\n"},{"path":"components\/steps\/example.html","type":"registry:component","content":"<!-- KATA steps 1.1.0 \u2014 kata-ui.dev\/components\/steps \u2014 requires mold >= 2 -->\n<ol class=\"k-steps\" style=\"max-width:430px\">\n  <li data-state=\"done\"><span class=\"n\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span><span class=\"t\">Account<\/span><\/li>\n  <li data-state=\"done\"><span class=\"n\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span><span class=\"t\">Workspace<\/span><\/li>\n  <li data-state=\"current\" aria-current=\"step\"><span class=\"n\"><\/span><span class=\"t\">Billing<\/span><\/li>\n  <li><span class=\"n\">4<\/span><span class=\"t\">Invite team<\/span><\/li>\n<\/ol>"}],"meta":{"status":"beta","usage":"For checkouts, onboarding and setup flows of three to five steps. The current step carries the core dot \u2014 the same signature as the Switch and the Radio.","accessibility":"An ordered list underneath: screen readers get the sequence for free. Mark the current step with aria-current=\"step\"."},"audit":{"id":"components\/steps","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"tabs","type":"registry:component","title":"Tabs","description":"The white thumb slides between tabs, and the panel switches with it.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/tabs\/tabs.css","type":"registry:component","content":"\/* KATA tabs 1.1.0 \u2014 kata-ui.dev\/components\/tabs \u2014 requires mold >= 4 *\/\n.tabs{display:inline-flex;background:var(--k-seg);border-radius:var(--k-radius-lg);padding:var(--k-space-1);gap:var(--k-space-0-5);position:relative;font-family:var(--k-font)}\n.tabs button{position:relative;z-index:1;border:0;background:transparent;font-family:var(--k-font);font-size:var(--k-text-base);font-weight:500;color:var(--k-ink-2);padding:var(--k-space-2) var(--k-space-4);border-radius:var(--k-radius-md);cursor:pointer}\n.tabs button.on{color:var(--k-ink)}\n.tabs .thumb{position:absolute;top:3px;bottom:3px;background:var(--k-bg);border-radius:var(--k-radius-md);box-shadow:var(--k-shadow-xs);transition:left var(--k-dur-slow) var(--k-ease),width var(--k-dur-slow) var(--k-ease)}\n.tabpane{box-sizing:border-box;margin-block-start:var(--k-space-3);font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-loose);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-4) var(--k-space-4);width:100%;font-family:var(--k-font);letter-spacing:.012em}\n\/* A hidden panel stays hidden even when the author sets display on it. *\/\n[data-tabpane][hidden]{display:none!important}\n"},{"path":"components\/tabs\/tabs.js","type":"registry:component","content":"\/* KATA tabs 1.1.0 \u2014 kata-ui.dev\/components\/tabs \u2014 requires mold >= 4 *\/\n\/\/ KATA Tabs \u2014 WAI-ARIA APG tabs with automatic activation, independent instances.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-tabs-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  \/\/ Panels are the [data-tabpane] elements after the tab list, up to the next tab list.\n  function panelsFor(list, count) {\n    const panels = [];\n    const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n    walker.currentNode = list;\n    let node;\n    while (panels.length < count && (node = walker.nextNode())) {\n      if (node.matches('[data-tabs]')) break;\n      if (list.contains(node)) continue;\n      if (node.matches('[data-tabpane]')) panels.push(node);\n    }\n    return panels;\n  }\n  const instances = [];\n  function place(instance) {\n    const active = instance.tabs[instance.index];\n    if (!instance.thumb || !active) return;\n    instance.thumb.style.left = active.offsetLeft + 'px';\n    instance.thumb.style.width = active.offsetWidth + 'px';\n  }\n  const resize = typeof ResizeObserver === 'function' ? new ResizeObserver(entries => entries.forEach(entry => { const instance = instances.find(item => item.list === entry.target); if (instance) place(instance); })) : null;\n  document.querySelectorAll('[data-tabs]').forEach(list => {\n    if (list.hasAttribute('data-kata-ready')) return;\n    const tabs = [...list.querySelectorAll('button')];\n    if (!tabs.length) return;\n    list.setAttribute('data-kata-ready', '');\n    list.setAttribute('role', 'tablist');\n    const thumb = list.querySelector('.thumb');\n    if (thumb) thumb.setAttribute('aria-hidden', 'true');\n    const panels = panelsFor(list, tabs.length);\n    const instance = { list, tabs, thumb, index: Math.max(0, tabs.findIndex(tab => tab.classList.contains('on'))) };\n    tabs.forEach((tab, i) => {\n      tab.setAttribute('role', 'tab');\n      ensureId(tab, 'tab');\n      const panel = panels[i];\n      if (panel) {\n        panel.setAttribute('role', 'tabpanel');\n        tab.setAttribute('aria-controls', ensureId(panel, 'panel'));\n        if (!panel.hasAttribute('aria-labelledby') && !panel.hasAttribute('aria-label')) panel.setAttribute('aria-labelledby', tab.id);\n        \/\/ A panel without focusable content takes focus itself, so Tab reaches it (APG).\n        if (!panel.hasAttribute('tabindex') && !panel.querySelector('a[href],button,input,select,textarea,[tabindex]')) panel.tabIndex = 0;\n      }\n    });\n    function select(i, focus, quiet) {\n      instance.index = i;\n      tabs.forEach((tab, j) => {\n        const on = j === i;\n        tab.classList.toggle('on', on);\n        tab.setAttribute('aria-selected', String(on));\n        tab.tabIndex = on ? 0 : -1;\n        if (panels[j]) panels[j].hidden = !on;\n      });\n      place(instance);\n      if (focus) tabs[i].focus();\n      if (!quiet) list.dispatchEvent(new CustomEvent('kata-tabs-change', { bubbles: true, detail: { index: i, tab: tabs[i], panel: panels[i] || null } }));\n    }\n    tabs.forEach((tab, i) => tab.addEventListener('click', () => select(i, false)));\n    list.addEventListener('keydown', event => {\n      if (event.isComposing || event.keyCode === 229) return;\n      const i = tabs.indexOf(document.activeElement);\n      if (i < 0) return;\n      \/\/ Horizontal arrows follow the visual direction: in RTL, ArrowLeft moves forward.\n      const rtl = getComputedStyle(list).direction === 'rtl';\n      let next = null;\n      if (event.key === 'ArrowRight') next = rtl ? i - 1 : i + 1;\n      else if (event.key === 'ArrowLeft') next = rtl ? i + 1 : i - 1;\n      else if (event.key === 'Home') next = 0;\n      else if (event.key === 'End') next = tabs.length - 1;\n      if (next === null) return;\n      event.preventDefault();\n      select((next + tabs.length) % tabs.length, true);\n    });\n    instances.push(instance);\n    select(instance.index, false, true);\n    if (resize) resize.observe(list);\n  });\n})();\n"},{"path":"components\/tabs\/example.html","type":"registry:component","content":"<!-- KATA tabs 1.1.0 \u2014 kata-ui.dev\/components\/tabs \u2014 requires mold >= 4 -->\n<span class=\"tabs\" data-tabs><span class=\"thumb\"><\/span>\n  <button type=\"button\" class=\"on\">Overview<\/button><button type=\"button\">Details<\/button><button type=\"button\">History<\/button>\n<\/span>\n<div class=\"tabpane\" data-tabpane>Overview panel \u2014 the essentials of the project live here.<\/div>\n<div class=\"tabpane\" data-tabpane>Details panel \u2014 labor, day rates and travel, itemized.<\/div>\n<div class=\"tabpane\" data-tabpane>History panel \u2014 created, edited and sent.<\/div>"}],"meta":{"status":"beta","usage":"For peer sections of one object. Keep to 2\u20135 tabs with short labels. Put one [data-tabpane] per tab after the tab list, in tab order.","accessibility":"WAI-ARIA APG tabs with automatic activation. The list is a tablist, buttons are tabs with aria-selected and aria-controls, and each [data-tabpane] is a tabpanel labelled by its tab; unselected panels are hidden. Only the selected tab is in the Tab order; ArrowLeft\/ArrowRight move and select (visual direction, so reversed in RTL) and wrap, Home\/End jump. A panel without focusable content takes focus so Tab reaches it. A kata-tabs-change event (bubbling, detail.index) reports changes. Instances initialize independently and loading the script twice is safe. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/tabs","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"tree","type":"registry:component","title":"Tree","description":"Nested items, indented by level \u2014 files, folders, and outlines that fold away.","categories":["Layout & Navigation"],"dependencies":[],"files":[{"path":"components\/tree\/tree.css","type":"registry:component","content":"\/* KATA tree 1.1.0 \u2014 kata-ui.dev\/components\/tree \u2014 requires mold >= 4 *\/\n.k-tree{list-style:none;margin:0;padding:0;font-family:var(--k-font);font-size:var(--k-text-base);color:var(--k-ink);text-align:start}\n.k-tree ul{list-style:none;margin:0;padding-inline-start:var(--k-space-5);border-inline-start:1px solid var(--k-line);margin-inline-start:var(--k-space-2)}\n.k-tree-row{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-1) var(--k-space-2);border-radius:var(--k-radius-md)}\n.k-tree-row:hover{background:var(--k-bg-soft)}\n.k-tree-row .tg{width:20px;height:20px;border:none;background:transparent;color:var(--k-ink-3);display:grid;place-items:center;cursor:pointer;border-radius:var(--k-radius-sm);padding:0;flex:none}\n.k-tree-row .tg svg{transition:transform var(--k-dur-fast) var(--k-ease)}\n.k-tree-row .tg[aria-expanded=\"false\"] svg{transform:rotate(-90deg)}\n.k-tree-row .fi{color:var(--k-ink-3);display:grid;place-items:center;flex:none}\n.k-tree-row .fi.fold{color:var(--k-accent-ink)}\n.k-tree-row .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-tree-row.sel{background:var(--k-accent-bg);color:var(--k-accent-ink);font-weight:550}\n"},{"path":"components\/tree\/tree.js","type":"registry:component","content":"\/* KATA tree 1.1.0 \u2014 kata-ui.dev\/components\/tree \u2014 requires mold >= 4 *\/\ndocument.querySelectorAll('.k-tree .tg').forEach(btn => {\n  btn.addEventListener('click', () => {\n    const open = btn.getAttribute('aria-expanded') === 'true';\n    btn.setAttribute('aria-expanded', String(!open));\n    const ul = btn.closest('li').querySelector(':scope > ul');\n    if (ul) ul.hidden = open;\n  });\n});\n"},{"path":"components\/tree\/example.html","type":"registry:component","content":"<!-- KATA tree 1.1.0 \u2014 kata-ui.dev\/components\/tree \u2014 requires mold >= 4 -->\n<ul class=\"k-tree\" style=\"max-width:300px\">\n  <li><div class=\"k-tree-row\"><button class=\"tg\" type=\"button\" aria-expanded=\"true\" aria-label=\"Toggle kata-ui\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button><span class=\"fi fold\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><\/span><span class=\"nm\">kata-ui<\/span><\/div>\n    <ul>\n      <li><div class=\"k-tree-row\"><button class=\"tg\" type=\"button\" aria-expanded=\"true\" aria-label=\"Toggle components\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button><span class=\"fi fold\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><\/span><span class=\"nm\">components<\/span><\/div>\n        <ul>\n          <li><div class=\"k-tree-row\"><button class=\"tg\" type=\"button\" aria-expanded=\"false\" aria-label=\"Toggle button\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button><span class=\"fi fold\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><\/span><span class=\"nm\">button<\/span><\/div>\n            <ul hidden>\n              <li><div class=\"k-tree-row\"><span class=\"tg\"><\/span><span class=\"fi\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">button.css<\/span><\/div><\/li>\n              <li><div class=\"k-tree-row\"><span class=\"tg\"><\/span><span class=\"fi\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">preview.html<\/span><\/div><\/li>\n            <\/ul>\n          <\/li>\n          <li><div class=\"k-tree-row\"><button class=\"tg\" type=\"button\" aria-expanded=\"false\" aria-label=\"Toggle date-picker\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button><span class=\"fi fold\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><\/span><span class=\"nm\">date-picker<\/span><\/div>\n            <ul hidden>\n              <li><div class=\"k-tree-row\"><span class=\"tg\"><\/span><span class=\"fi\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">date-picker.js<\/span><\/div><\/li>\n            <\/ul>\n          <\/li>\n        <\/ul>\n      <\/li>\n      <li><div class=\"k-tree-row\"><button class=\"tg\" type=\"button\" aria-expanded=\"false\" aria-label=\"Toggle icons\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/button><span class=\"fi fold\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><\/span><span class=\"nm\">icons<\/span><\/div>\n        <ul hidden>\n          <li><div class=\"k-tree-row\"><span class=\"tg\"><\/span><span class=\"fi\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">star.svg<\/span><\/div><\/li>\n        <\/ul>\n      <\/li>\n      <li><div class=\"k-tree-row sel\"><span class=\"tg\"><\/span><span class=\"fi\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg><\/span><span class=\"nm\">build.py<\/span><\/div><\/li>\n    <\/ul>\n  <\/li>\n<\/ul>"}],"meta":{"status":"beta","usage":"For file structures and nested navigation. Depth beyond four levels is a smell; flatten or split before the indent eats the label.","accessibility":"Real nested lists with aria-expanded on the toggles, so the hierarchy is announced as a hierarchy. Files and folders are text, not links, unless they navigate."},"audit":{"id":"components\/tree","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"alert-dialog","type":"registry:component","title":"Alert Dialog","description":"A confirmation dialog for destructive actions, with initial focus on the safer choice.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/alert-dialog\/alert-dialog.css","type":"registry:component","content":"\/* KATA alert-dialog 1.1.0 \u2014 kata-ui.dev\/components\/alert-dialog \u2014 requires mold >= 4 *\/\n.kalert{border:0;border-radius:var(--k-radius-xl);padding:0;max-width:420px;width:calc(100% - 40px);box-shadow:var(--k-shadow-modal);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font)}\n.kalert::backdrop{background:var(--k-backdrop);backdrop-filter:blur(3px)}\n.kalert-in{padding:var(--k-space-6)}\n.kalert-in h3{font-size:var(--k-text-lg);font-weight:600}\n.kalert-in p{margin-top:var(--k-space-2);font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-loose);letter-spacing:.012em}\n.kalert-row{display:flex;flex-wrap:wrap;gap:var(--k-space-2);justify-content:flex-end;margin-top:var(--k-space-5)}\n"},{"path":"components\/alert-dialog\/alert-dialog.js","type":"registry:component","content":"\/* KATA alert-dialog 1.1.0 \u2014 kata-ui.dev\/components\/alert-dialog \u2014 requires mold >= 4 *\/\n\/\/ KATA Alert Dialog \u2014 independent native modal instances.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-alert-dialog-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  const dialogs = [...document.querySelectorAll('[data-alert-dialog]')];\n  const triggers = [...document.querySelectorAll('[data-alert-open]')];\n  function targetOf(trigger) {\n    const controls = trigger.getAttribute('aria-controls');\n    if (controls) {\n      const target = dialogs.find(dialog => dialog.id === controls);\n      if (target) return target;\n    }\n    return dialogs.find(dialog => trigger.compareDocumentPosition(dialog) & Node.DOCUMENT_POSITION_FOLLOWING) || dialogs[dialogs.length - 1];\n  }\n  dialogs.forEach(dialog => {\n    if (dialog.hasAttribute('data-kata-ready') || !(dialog instanceof HTMLDialogElement)) return;\n    dialog.setAttribute('data-kata-ready', '');\n    const id = ensureId(dialog, 'dialog');\n    const heading = dialog.querySelector('h1,h2,h3,h4,h5,h6');\n    const description = dialog.querySelector('p');\n    if (!dialog.hasAttribute('aria-label') && !dialog.hasAttribute('aria-labelledby') && heading) dialog.setAttribute('aria-labelledby', ensureId(heading, 'title'));\n    if (!dialog.hasAttribute('aria-describedby') && description) dialog.setAttribute('aria-describedby', ensureId(description, 'description'));\n    if (!dialog.hasAttribute('tabindex')) dialog.tabIndex = -1;\n    let opener = null;\n    let composing = false;\n    function focusables() {\n      return [...dialog.querySelectorAll('button,a[href],input,select,textarea,[tabindex]')].filter(element => element.tabIndex >= 0 && !element.disabled && !element.closest('[inert]') && element.getClientRects().length && getComputedStyle(element).visibility !== 'hidden');\n    }\n    \/\/ Native close is immediate; it never waits for a CSS end event.\n    function close() { composing = false; if (dialog.open) dialog.close(); }\n    triggers.filter(trigger => targetOf(trigger) === dialog).forEach(trigger => {\n      ensureId(trigger, 'trigger');\n      trigger.setAttribute('aria-controls', id);\n      trigger.setAttribute('aria-haspopup', 'dialog');\n      trigger.addEventListener('click', () => {\n        if (dialog.open) return;\n        composing = false;\n        opener = trigger;\n        dialog.showModal();\n        (focusables().find(element => element.hasAttribute('data-autofocus') || element.hasAttribute('autofocus')) || focusables().find(element => element.matches('button:not(.btn-pri):not(.btn-danger):not([data-primary])')) || dialog).focus();\n      });\n    });\n    dialog.querySelectorAll('[data-alert-close]').forEach(button => button.addEventListener('click', close));\n    dialog.addEventListener('compositionstart', () => { composing = true; });\n    dialog.addEventListener('compositionend', () => { composing = false; });\n    dialog.addEventListener('keydown', event => {\n      if (composing || event.isComposing || event.keyCode === 229) {\n        if (event.key === 'Escape') event.preventDefault();\n        return;\n      }\n      if (event.key !== 'Tab') return;\n      const items = focusables();\n      const first = items[0], last = items[items.length - 1];\n      if (!first) { event.preventDefault(); dialog.focus(); return; }\n      if (event.shiftKey && (document.activeElement === first || document.activeElement === dialog)) { event.preventDefault(); last.focus(); }\n      else if (!event.shiftKey && (document.activeElement === last || document.activeElement === dialog)) { event.preventDefault(); first.focus(); }\n    });\n    dialog.addEventListener('close', () => {\n      if (dialog.open) return; \/\/ Ignore a queued close event from an earlier opening.\n      composing = false;\n      if (opener?.isConnected && !opener.disabled && !document.querySelectorAll('dialog[open]').length) opener.focus();\n    });\n  });\n})();\n"},{"path":"components\/alert-dialog\/example.html","type":"registry:component","content":"<!-- KATA alert-dialog 1.1.0 \u2014 kata-ui.dev\/components\/alert-dialog \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-danger btn-md\" data-alert-open>Delete project<\/button>\n<dialog class=\"kalert\" data-alert-dialog role=\"alertdialog\" aria-label=\"Delete project\">\n  <div class=\"kalert-in\">\n    <h3>Delete this project?<\/h3>\n    <p>The project and all of its files will be permanently deleted. This cannot be undone, and shared links stop working immediately.<\/p>\n    <div class=\"kalert-row\">\n      <button type=\"button\" class=\"btn btn-sec btn-md\" data-autofocus data-alert-close>Keep project<\/button>\n      <button type=\"button\" class=\"btn btn-danger btn-md\" data-alert-close>Delete project<\/button>\n    <\/div>\n  <\/div>\n<\/dialog>"}],"meta":{"status":"beta","usage":"Connect the destructive button to your own action. Backdrop clicks do not dismiss this dialog. Escape follows the native cancel \u2192 close path; applications can listen for cancel and treat Escape as cancellation, or prevent its default if needed.","accessibility":"Uses native <dialog> with role=\"alertdialog\". Initial focus uses data-autofocus\/autofocus, then the first non-primary button, then the dialog itself to avoid placing focus on a destructive action. Tab cycles inside. Native Escape emits cancel and closes; backdrop clicks do not close. Close restores the opener; IDs are generated without replacing existing IDs."},"audit":{"id":"components\/alert-dialog","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"command","type":"registry:component","title":"Command","description":"The \u2318K palette: one input that searches actions and pages, driven from the keyboard.","categories":["Overlays & Dialogs"],"dependencies":["button","kbd"],"files":[{"path":"components\/command\/command.css","type":"registry:component","content":"\/* KATA command 1.1.0 \u2014 kata-ui.dev\/components\/command \u2014 requires mold >= 4 *\/\n.kcmd{border:0;padding:0;border-radius:var(--k-radius-xl);width:min(560px,calc(100% - 40px));margin:var(--k-space-16) auto auto;background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font);box-shadow:var(--k-shadow-modal)}\n.kcmd::backdrop{background:var(--k-backdrop);backdrop-filter:blur(3px)}\n.kcmd-input-row{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-4);border-block-end:1px solid var(--k-line);color:var(--k-ink-3)}\n.kcmd-input{-webkit-appearance:none;appearance:none;flex:1;border:0;outline:0;font:inherit;font-size:var(--k-text-lead);background:transparent;color:var(--k-ink)}\n.kcmd-input::placeholder{color:var(--k-ink-3)}\n.kcmd-list{list-style:none;margin:0;padding:var(--k-space-1);max-block-size:300px;overflow:auto}\n.kcmd-item{display:flex;align-items:center;gap:var(--k-space-3);width:100%;padding:var(--k-space-2) var(--k-space-2);border:0;border-radius:var(--k-radius-md);background:transparent;font:inherit;font-size:var(--k-text-base);color:var(--k-ink);cursor:pointer;text-align:start}\n.kcmd-item svg{color:var(--k-ink-3);flex:none}\n.kcmd-item.active{background:var(--k-bg-soft)}\n.kcmd-hint{margin-inline-start:auto;font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.kcmd-empty{padding:var(--k-space-5) var(--k-space-2);text-align:center;font-size:var(--k-text-base);color:var(--k-ink-3)}\n\/* iOS: fields under 16px make Safari zoom the page on focus \u2014 16px on small screens (the mold, KATA.md) *\/\n@media (max-width:640px){.kcmd-input{font-size:var(--k-text-lg)}}\n\n.kcmd-input:focus-visible,.kcmd-item:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.kcmd-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"},{"path":"components\/command\/command.js","type":"registry:component","content":"\/* KATA command 1.1.0 \u2014 kata-ui.dev\/components\/command \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  const instances = [];\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  function exitController(panel, finish) {\n    let timer, listener;\n    function cancel() {\n      clearTimeout(timer);\n      if (listener) {\n        panel.removeEventListener('transitionend', listener);\n        panel.removeEventListener('animationend', listener);\n      }\n      listener = null;\n      panel.classList.remove('kata-closing');\n    }\n    function close() {\n      cancel();\n      panel.classList.add('kata-closing');\n      const style = getComputedStyle(panel);\n      const seconds = value => value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000) || 0);\n      function longest(durations, delays, iterations) {\n        const d = seconds(durations), t = seconds(delays);\n        const n = (iterations || '1').split(',').map(Number);\n        return Math.max(0, ...d.map((value, index) => value * (Number.isFinite(n[index % n.length]) ? n[index % n.length] : 1) + t[index % t.length]));\n      }\n      const duration = Math.max(longest(style.transitionDuration, style.transitionDelay), longest(style.animationDuration, style.animationDelay, style.animationIterationCount));\n      const started = performance.now();\n      const complete = () => { cancel(); finish(); };\n      if (!duration) { complete(); return; }\n      listener = event => {\n        if (event.target === panel && performance.now() - started >= duration - 16) complete();\n      };\n      panel.addEventListener('transitionend', listener);\n      panel.addEventListener('animationend', listener);\n      timer = setTimeout(complete, duration + 50);\n    }\n    return { cancel, close };\n  }\n\n  document.querySelectorAll('[data-command]').forEach(dialog => {\n    if (dialog.dataset.kataReady) return;\n    const input = dialog.querySelector('[data-command-input]');\n    const list = dialog.querySelector('.kcmd-list');\n    if (!input || !list || typeof dialog.showModal !== 'function') return;\n    dialog.dataset.kataReady = 'true';\n    const id = identify(dialog, 'kata-command');\n    identify(input, 'kata-command-input');\n    input.setAttribute('role', 'combobox');\n    input.setAttribute('aria-autocomplete', 'list');\n    input.setAttribute('aria-expanded', 'false');\n    input.setAttribute('aria-controls', identify(list, 'kata-command-list'));\n    list.setAttribute('role', 'listbox');\n    const items = [...dialog.querySelectorAll('[data-cmd-item]')];\n    items.forEach(item => {\n      identify(item, 'kata-command-option');\n      item.setAttribute('role', 'option');\n      item.tabIndex = -1;\n      item.parentElement.setAttribute('role', 'presentation');\n    });\n    let status = dialog.querySelector('[role=\"status\"]');\n    if (!status) {\n      status = document.createElement('div');\n      status.className = 'kcmd-status'; status.setAttribute('role', 'status');\n      dialog.append(status);\n    }\n    const empty = dialog.querySelector('[data-command-empty]');\n    let active = 0, composing = false, opener;\n    const visible = () => items.filter(item => !item.parentElement.hidden);\n    function setActive(index) {\n      const options = visible();\n      active = options.length ? (index + options.length) % options.length : -1;\n      items.forEach(item => {\n        const selected = item === options[active];\n        item.classList.toggle('active', selected);\n        item.setAttribute('aria-selected', String(selected));\n      });\n      if (options[active] && dialog.open) {\n        input.setAttribute('aria-activedescendant', options[active].id);\n        options[active].scrollIntoView({ block: 'nearest' });\n      } else input.removeAttribute('aria-activedescendant');\n    }\n    function filter(announce = false) {\n      const query = input.value.trim().toLocaleLowerCase();\n      items.forEach(item => { item.parentElement.hidden = !item.textContent.toLocaleLowerCase().includes(query); });\n      const count = visible().length;\n      if (empty) { empty.hidden = count !== 0; empty.style.display = ''; }\n      if (announce) status.textContent = count + (count === 1 ? ' result.' : ' results.');\n      setActive(0);\n    }\n    let compositionEnding = false;\n    const exit = exitController(dialog, () => {\n      input.setAttribute('aria-expanded', 'false'); input.removeAttribute('aria-activedescendant');\n      if (dialog.open) dialog.close();\n    });\n    function close() { if (dialog.open) exit.close(); }\n    function open(trigger) {\n      exit.cancel(); opener = trigger || document.activeElement;\n      if (!dialog.open) dialog.showModal();\n      input.value = ''; status.textContent = ''; filter();\n      input.setAttribute('aria-expanded', 'true'); input.focus();\n    }\n    document.querySelectorAll('[data-command-open]').forEach(trigger => {\n      const target = trigger.getAttribute('aria-controls');\n      const following = [...document.querySelectorAll('[data-command]')].find(candidate => trigger.compareDocumentPosition(candidate) & Node.DOCUMENT_POSITION_FOLLOWING);\n      if (target ? target !== id : following !== dialog) return;\n      identify(trigger, 'kata-command-trigger');\n      trigger.setAttribute('aria-controls', id); trigger.setAttribute('aria-haspopup', 'dialog');\n      trigger.addEventListener('click', () => open(trigger));\n    });\n    dialog.addEventListener('compositionstart', () => { composing = true; });\n    dialog.addEventListener('compositionend', () => { composing = false; compositionEnding = true; setTimeout(() => { compositionEnding = false; }, 0); filter(true); });\n    input.addEventListener('input', event => { if (!composing && !event.isComposing) filter(true); });\n    input.addEventListener('keydown', event => {\n      if (composing || compositionEnding || event.isComposing || event.keyCode === 229) return;\n      if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n        event.preventDefault(); setActive(active + (event.key === 'ArrowDown' ? 1 : -1));\n      } else if (event.key === 'Enter') {\n        event.preventDefault(); const item = visible()[active]; if (item) item.click();\n      }\n    });\n    items.forEach(item => item.addEventListener('click', () => {\n      if (composing) return;\n      dialog.dispatchEvent(new CustomEvent('kata-command-select', { bubbles: true, detail: { item } }));\n      close();\n    }));\n    dialog.addEventListener('keydown', event => {\n      if ((composing || compositionEnding || event.isComposing || event.keyCode === 229) && event.key === 'Escape') event.preventDefault();\n    });\n    dialog.addEventListener('cancel', event => {\n      if (composing || compositionEnding) { event.preventDefault(); return; }\n      \/\/ Native Escape retains the cancel event, including application preventDefault().\n    });\n    dialog.addEventListener('close', () => {\n      if (dialog.open) return;\n      exit.cancel(); input.setAttribute('aria-expanded', 'false'); input.removeAttribute('aria-activedescendant');\n      if (opener?.isConnected) opener.focus();\n    });\n    instances.push({ dialog, open, composing: () => composing });\n    filter();\n  });\n\n  \/\/ One shared Cmd\/Ctrl+K listener per script load; a second load finds no new palette and adds none.\n  if (!instances.length) return;\n  document.addEventListener('keydown', event => {\n    if (event.isComposing || event.keyCode === 229 || instances.some(instance => instance.composing()) || !(event.metaKey || event.ctrlKey) || event.key.toLowerCase() !== 'k') return;\n    const dialogs = [...document.querySelectorAll('[data-command][data-kata-ready]')];\n    const focused = document.activeElement;\n    const target = dialogs.find(candidate => candidate.open) || dialogs.find(candidate => focused?.getAttribute('aria-controls') === candidate.id) || dialogs[0];\n    const instance = instances.find(candidate => candidate.dialog === target);\n    if (!instance) return;\n    event.preventDefault(); if (!target.open) instance.open(focused);\n  });\n})();\n"},{"path":"components\/command\/example.html","type":"registry:component","content":"<!-- KATA command 1.1.0 \u2014 kata-ui.dev\/components\/command \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-sec btn-md\" data-command-open><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><span style=\"margin:0 var(--k-space-6) 0 var(--k-space-0-5)\">Search\u2026<\/span><span class=\"k-kbd\">\u2318<\/span> <span class=\"k-kbd\">K<\/span><\/button>\n<dialog class=\"kcmd\" data-command aria-label=\"Command palette\">\n  <div class=\"kcmd-input-row\">\n    <svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg>\n    <input class=\"kcmd-input\" data-command-input type=\"text\" placeholder=\"Type a command or search\u2026\" aria-label=\"Search commands\">\n  <\/div>\n  <ul class=\"kcmd-list\">\n    <li><button type=\"button\" class=\"kcmd-item active\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"\/><path d=\"M3.5 9.5h17M9.5 9.5v10\"\/><\/svg><span>Go to Dashboard<\/span><span class=\"kcmd-hint\">Page<\/span><\/button><\/li>\n    <li><button type=\"button\" class=\"kcmd-item\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M12 12v6M9 15h6\"\/><\/svg><span>New file<\/span><span class=\"kcmd-hint\">Action<\/span><\/button><\/li>\n    <li><button type=\"button\" class=\"kcmd-item\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"3.6\"\/><path d=\"M12 2.5v2.4M12 19.1v2.4M2.5 12h2.4M19.1 12h2.4M5 5l1.7 1.7M17.3 17.3 19 19M19 5l-1.7 1.7M6.7 17.3 5 19\"\/><\/svg><span>Toggle theme<\/span><span class=\"kcmd-hint\">Action<\/span><\/button><\/li>\n    <li><button type=\"button\" class=\"kcmd-item\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 6h10M17 6h4M3 12h4M11 12h10M3 18h12M19 18h2\"\/><circle cx=\"15\" cy=\"6\" r=\"2\"\/><circle cx=\"9\" cy=\"12\" r=\"2\"\/><circle cx=\"17\" cy=\"18\" r=\"2\"\/><\/svg><span>Open settings<\/span><span class=\"kcmd-hint\">Page<\/span><\/button><\/li>\n    <li><button type=\"button\" class=\"kcmd-item\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M10 14a4 4 0 0 0 6 0l3-3a4 4 0 1 0-6-6l-1.5 1.5\"\/><path d=\"M14 10a4 4 0 0 0-6 0l-3 3a4 4 0 1 0 6 6l1.5-1.5\"\/><\/svg><span>Copy page link<\/span><span class=\"kcmd-hint\">Action<\/span><\/button><\/li>\n    <li><button type=\"button\" class=\"kcmd-item\" data-cmd-item><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3v12m-5-5 5 5 5-5\"\/><path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\"\/><\/svg><span>Download report<\/span><span class=\"kcmd-hint\">Action<\/span><\/button><\/li>\n  <\/ul>\n  <div class=\"kcmd-empty\" data-command-empty style=\"display:none\">No results.<\/div>\n<\/dialog>"}],"meta":{"status":"beta","usage":"For apps with many actions or pages. Trigger it with a button and with Cmd\/Ctrl+K; selecting an item is the app\u2019s job. On pages with multiple palettes, Cmd\/Ctrl+K opens the palette associated with the focused trigger, or the first palette in document order if there is none.\n\n```js\ndocument.addEventListener('kata-command-select', event => {\n  console.log(event.detail.item);\n});\n```","accessibility":"Native modal dialog. Search keeps focus on a labelled combobox; Up\/Down loop through listbox options, Enter activates a command, Escape closes and restores the opener. Empty results and a polite result count are provided. Composition events and IME keys are ignored during selection. One shared Cmd\/Ctrl+K document listener per script load serves every palette; loading the script twice adds none."},"audit":{"id":"components\/command","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"context-menu","type":"registry:component","title":"Context Menu","description":"The right-click menu, written as a component instead of an accident of the browser.","categories":["Overlays & Dialogs"],"dependencies":[],"files":[{"path":"components\/context-menu\/context-menu.css","type":"registry:component","content":"\/* KATA context-menu 1.1.0 \u2014 kata-ui.dev\/components\/context-menu \u2014 requires mold >= 3 *\/\n.k-ctx-zone{border:1.5px dashed var(--k-border-strong);border-radius:var(--k-radius-xl);min-block-size:168px;display:grid;place-items:center;font-family:var(--k-font);color:var(--k-ink-3);font-size:var(--k-text-base);text-align:center;padding:var(--k-space-4)}\n.k-ctx{position:fixed;z-index:90;width:224px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-pop);padding:var(--k-space-1);font-family:var(--k-font);text-align:start}\n.k-ctx[hidden]{display:none}\n.k-ctx button{display:flex;align-items:center;gap:var(--k-space-2);width:100%;padding:var(--k-space-2) var(--k-space-2);border:none;background:transparent;border-radius:var(--k-radius-md);font:inherit;font-size:var(--k-text-base);color:var(--k-ink);cursor:pointer}\n.k-ctx button:hover,.k-ctx button:focus-visible{background:var(--k-bg-soft);outline:none}\n.k-ctx button .hint{margin-inline-start:auto;font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-ctx button.danger{color:var(--k-danger-ink)}\n.k-ctx hr{border:none;border-block-start:1px solid var(--k-line);margin:var(--k-space-1) var(--k-space-1)}\n\n.k-ctx-zone:focus-visible,.k-ctx button:focus-visible{outline:0;box-shadow:var(--k-ring)}\n"},{"path":"components\/context-menu\/context-menu.js","type":"registry:component","content":"\/* KATA context-menu 1.1.0 \u2014 kata-ui.dev\/components\/context-menu \u2014 requires mold >= 3 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  const instances = [];\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  function exitController(panel, finish) {\n    let timer, listener;\n    function cancel() {\n      clearTimeout(timer);\n      if (listener) {\n        panel.removeEventListener('transitionend', listener);\n        panel.removeEventListener('animationend', listener);\n      }\n      listener = null;\n      panel.classList.remove('kata-closing');\n    }\n    function close() {\n      cancel();\n      panel.classList.add('kata-closing');\n      const style = getComputedStyle(panel);\n      const seconds = value => value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000) || 0);\n      function longest(durations, delays, iterations) {\n        const d = seconds(durations), t = seconds(delays);\n        const n = (iterations || '1').split(',').map(Number);\n        return Math.max(0, ...d.map((value, index) => value * (Number.isFinite(n[index % n.length]) ? n[index % n.length] : 1) + t[index % t.length]));\n      }\n      const duration = Math.max(longest(style.transitionDuration, style.transitionDelay), longest(style.animationDuration, style.animationDelay, style.animationIterationCount));\n      const started = performance.now();\n      const complete = () => { cancel(); finish(); };\n      if (!duration) { complete(); return; }\n      listener = event => {\n        if (event.target === panel && performance.now() - started >= duration - 16) complete();\n      };\n      panel.addEventListener('transitionend', listener);\n      panel.addEventListener('animationend', listener);\n      timer = setTimeout(complete, duration + 50);\n    }\n    return { cancel, close };\n  }\n\n  \/\/ A document-level guard keeps one window listener across repeated script loads.\n  if (!document.documentElement.hasAttribute('data-kata-context-blur-ready')) {\n    document.documentElement.setAttribute('data-kata-context-blur-ready', 'true');\n    window.addEventListener('blur', () => {\n      document.querySelectorAll('[data-ctx][data-kata-ready]').forEach(menu => {\n        if (!menu.hidden) menu.dispatchEvent(new Event('kata-context-blur'));\n      });\n    });\n  }\n  document.querySelectorAll('[data-ctx-zone]').forEach(zone => {\n    if (zone.dataset.kataReady) return;\n    const target = zone.getAttribute('aria-controls');\n    const menu = target ? document.getElementById(target) : zone.parentElement.querySelector('[data-ctx]');\n    if (!menu || menu.dataset.kataReady) return;\n    zone.dataset.kataReady = menu.dataset.kataReady = 'true';\n    identify(zone, 'kata-context-zone');\n    zone.setAttribute('aria-controls', identify(menu, 'kata-context-menu'));\n    zone.setAttribute('aria-haspopup', 'menu'); zone.setAttribute('aria-expanded', 'false');\n    menu.setAttribute('role', 'menu');\n    menu.setAttribute('aria-labelledby', zone.id);\n    const items = [...menu.querySelectorAll('[role=\"menuitem\"],button')];\n    items.forEach(item => { identify(item, 'kata-context-item'); item.setAttribute('role', 'menuitem'); item.tabIndex = -1; });\n    menu.querySelectorAll('hr').forEach(line => line.setAttribute('role', 'separator'));\n    const available = () => items.filter(item => !item.disabled && !item.hidden);\n    let composing = false, search = '', searchTimer, restore = false;\n    let compositionEnding = false;\n    const exit = exitController(menu, () => {\n      menu.hidden = true; zone.setAttribute('aria-expanded', 'false');\n      if (restore && zone.isConnected) zone.focus();\n    });\n    function close(focus = true) { if (menu.hidden) return; restore = focus; exit.close(); }\n    menu.addEventListener('kata-context-blur', () => close(false));\n    function focusItem(index) {\n      const options = available(); const item = options[(index + options.length) % options.length];\n      items.forEach(candidate => { candidate.tabIndex = candidate === item ? 0 : -1; });\n      item?.focus();\n    }\n    function open(x, y) {\n      exit.cancel(); clearTimeout(searchTimer); search = '';\n      menu.hidden = false; zone.setAttribute('aria-expanded', 'true');\n      const rect = menu.getBoundingClientRect();\n      const margin = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--k-space-2')) || 0;\n      const left = Math.max(margin, Math.min(x + rect.width > innerWidth ? x - rect.width : x, innerWidth - rect.width - margin));\n      const top = Math.max(margin, Math.min(y + rect.height > innerHeight ? y - rect.height : y, innerHeight - rect.height - margin));\n      menu.style.insetInlineStart = (getComputedStyle(menu).direction === 'rtl' ? innerWidth - left - rect.width : left) + 'px';\n      menu.style.insetBlockStart = top + 'px'; focusItem(0);\n    }\n    zone.addEventListener('contextmenu', event => { event.preventDefault(); open(event.clientX, event.clientY); });\n    zone.addEventListener('keydown', event => {\n      if (composing || compositionEnding || event.isComposing || event.keyCode === 229) return;\n      if (event.key === 'ContextMenu' || (event.shiftKey && event.key === 'F10')) {\n        event.preventDefault(); const rect = zone.getBoundingClientRect(); open(rect.left, rect.bottom);\n      }\n    });\n    [zone, menu].forEach(element => {\n      element.addEventListener('compositionstart', () => { composing = true; });\n      element.addEventListener('compositionend', () => { composing = false; compositionEnding = true; setTimeout(() => { compositionEnding = false; }, 0); });\n      element.addEventListener('focusout', event => {\n        if (!event.relatedTarget || zone.contains(event.relatedTarget) || menu.contains(event.relatedTarget)) return;\n        close(false);\n      });\n    });\n    menu.addEventListener('keydown', event => {\n      if (composing || compositionEnding || event.isComposing || event.keyCode === 229) return;\n      const options = available(), index = options.indexOf(document.activeElement);\n      if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n        event.preventDefault(); focusItem(event.key === 'Home' ? 0 : event.key === 'End' ? options.length - 1 : index + (event.key === 'ArrowDown' ? 1 : -1));\n      } else if (event.key === 'Escape' || event.key === 'Tab') {\n        event.preventDefault(); close();\n      } else if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey && event.key !== ' ') {\n        event.preventDefault(); clearTimeout(searchTimer); search += event.key.toLocaleLowerCase();\n        const query = [...search].every(letter => letter === search[0]) ? search[0] : search;\n        for (let offset = 1; offset <= options.length; offset++) {\n          const next = (index + offset) % options.length;\n          const text = [...options[next].childNodes].filter(node => node.nodeType === Node.TEXT_NODE).map(node => node.textContent).join('').trim().toLocaleLowerCase();\n          if (text.startsWith(query)) { focusItem(next); break; }\n        }\n        searchTimer = setTimeout(() => { search = ''; }, 700);\n      }\n    });\n    items.forEach(item => item.addEventListener('click', () => close()));\n    instances.push({ zone, menu, close });\n  });\n  \/\/ One shared outside-press listener per script load; a second load finds no new menu and adds none.\n  if (!instances.length) return;\n  document.addEventListener('pointerdown', event => {\n    instances.forEach(({ zone, menu, close }) => { if (!zone.contains(event.target) && !menu.contains(event.target)) close(false); });\n  });\n})();\n"},{"path":"components\/context-menu\/example.html","type":"registry:component","content":"<!-- KATA context-menu 1.1.0 \u2014 kata-ui.dev\/components\/context-menu \u2014 requires mold >= 3 -->\n<div style=\"max-width:430px\">\n  <div class=\"k-ctx-zone\" data-ctx-zone tabindex=\"0\">Right-click in this area<br>(or press Shift+F10)<\/div>\n  <div class=\"k-ctx\" data-ctx role=\"menu\" hidden>\n    <button type=\"button\" role=\"menuitem\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z\"\/><circle cx=\"12\" cy=\"12\" r=\"3\"\/><\/svg> Open preview <span class=\"hint\">\u23ce<\/span><\/button>\n    <button type=\"button\" role=\"menuitem\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"12\" height=\"12\" rx=\"2\"\/><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\/><\/svg> Duplicate <span class=\"hint\">\u2318D<\/span><\/button>\n    <button type=\"button\" role=\"menuitem\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M10 14a4 4 0 0 0 6 0l3-3a4 4 0 1 0-6-6l-1.5 1.5\"\/><path d=\"M14 10a4 4 0 0 0-6 0l-3 3a4 4 0 1 0 6 6l1.5-1.5\"\/><\/svg> Copy link<\/button>\n    <hr>\n    <button type=\"button\" role=\"menuitem\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3v12m-5-5 5 5 5-5\"\/><path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\"\/><\/svg> Download<\/button>\n    <button type=\"button\" role=\"menuitem\" class=\"danger\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M4 7h16M9 7V4h6v3M6.5 7l1 12a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2l1-12\"\/><path d=\"M10 11.5v5.5M14 11.5v5.5\"\/><\/svg> Delete <span class=\"hint\">\u232b<\/span><\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For dense surfaces \u2014 file rows, canvas items, table cells \u2014 where actions belong to the thing under the cursor. Always mirror the same actions somewhere visible; a context menu is a shortcut, never the only door. Focus the trigger and press Shift+F10 or the Menu key to open it.","accessibility":"Right-click, Shift+F10 or the Menu key opens a menu with button menuitems. Up\/Down, Home\/End and prefix search move focus. Escape and Tab close it; Escape and selection restore the trigger. Pointer placement flips at viewport edges. Null focusout does not dismiss the menu. Window blur dismisses an open menu without moving focus. One shared outside-press listener per script load serves every menu; loading the script twice adds none."},"audit":{"id":"components\/context-menu","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"drawer","type":"registry:component","title":"Drawer","description":"A panel that slides in from the edge \u2014 detail and forms without losing the page.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/drawer\/drawer.css","type":"registry:component","content":"\/* KATA drawer 1.1.0 \u2014 kata-ui.dev\/components\/drawer \u2014 requires mold >= 4 *\/\n\/* The panel sits at the inline end: the right edge in LTR, the left edge in RTL. *\/\n.kdrawer{border:0;padding:0;margin:0;margin-inline-start:auto;inset-block:0;inset-inline-start:auto;inset-inline-end:0;position:fixed;height:100dvh;max-height:100dvh;width:min(360px,92vw);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font);box-shadow:var(--k-shadow-modal)}\n.kdrawer::backdrop{background:var(--k-backdrop);backdrop-filter:blur(3px)}\n.kdrawer[open]{animation:kdrawer-in var(--k-dur-2) var(--k-ease)}\n@keyframes kdrawer-in{from{transform:translateX(36px);opacity:.4}to{transform:none;opacity:1}}\n.kdrawer[open]:dir(rtl){animation-name:kdrawer-in-rtl}\n@keyframes kdrawer-in-rtl{from{transform:translateX(-36px);opacity:.4}to{transform:none;opacity:1}}\n@media (prefers-reduced-motion:reduce){.kdrawer[open],.kdrawer[open]:dir(rtl){animation:none}}\n.kdrawer-head{display:flex;align-items:center;justify-content:space-between;padding:var(--k-space-4) var(--k-space-5);border-bottom:1px solid var(--k-line)}\n.kdrawer-title{font-size:var(--k-text-lead);font-weight:600}\n.kdrawer-body{padding:var(--k-space-5);font-size:var(--k-text-base);line-height:var(--k-lh-loose);color:var(--k-ink-2);letter-spacing:.012em}\n.kdrawer-foot{display:flex;gap:var(--k-space-2);justify-content:flex-end;padding:var(--k-space-4) var(--k-space-5);border-top:1px solid var(--k-line)}\n"},{"path":"components\/drawer\/drawer.js","type":"registry:component","content":"\/* KATA drawer 1.1.0 \u2014 kata-ui.dev\/components\/drawer \u2014 requires mold >= 4 *\/\n\/\/ KATA Drawer \u2014 independent native modal instances.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-drawer-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  const dialogs = [...document.querySelectorAll('[data-drawer]')];\n  const triggers = [...document.querySelectorAll('[data-drawer-open]')];\n  function targetOf(trigger) {\n    const controls = trigger.getAttribute('aria-controls');\n    if (controls) {\n      const target = dialogs.find(dialog => dialog.id === controls);\n      if (target) return target;\n    }\n    return dialogs.find(dialog => trigger.compareDocumentPosition(dialog) & Node.DOCUMENT_POSITION_FOLLOWING) || dialogs[dialogs.length - 1];\n  }\n  dialogs.forEach(dialog => {\n    if (dialog.hasAttribute('data-kata-ready') || !(dialog instanceof HTMLDialogElement)) return;\n    dialog.setAttribute('data-kata-ready', '');\n    const id = ensureId(dialog, 'dialog');\n    const heading = dialog.querySelector('h1,h2,h3,h4,h5,h6');\n    const description = dialog.querySelector('p');\n    if (!dialog.hasAttribute('aria-label') && !dialog.hasAttribute('aria-labelledby') && heading) dialog.setAttribute('aria-labelledby', ensureId(heading, 'title'));\n    if (!dialog.hasAttribute('aria-describedby') && description) dialog.setAttribute('aria-describedby', ensureId(description, 'description'));\n    if (!dialog.hasAttribute('tabindex')) dialog.tabIndex = -1;\n    dialog.inert = !dialog.open;\n    let opener = null;\n    let composing = false;\n    function focusables() {\n      return [...dialog.querySelectorAll('button,a[href],input,select,textarea,[tabindex]')].filter(element => element.tabIndex >= 0 && !element.disabled && !element.closest('[inert]') && element.getClientRects().length && getComputedStyle(element).visibility !== 'hidden');\n    }\n    \/\/ Native close is immediate; it never waits for a CSS end event.\n    function close() { composing = false; if (dialog.open) dialog.close(); }\n    triggers.filter(trigger => targetOf(trigger) === dialog).forEach(trigger => {\n      ensureId(trigger, 'trigger');\n      trigger.setAttribute('aria-controls', id);\n      trigger.setAttribute('aria-haspopup', 'dialog');\n      trigger.addEventListener('click', () => {\n        if (dialog.open) return;\n        composing = false;\n        opener = trigger;\n        dialog.inert = false;\n        dialog.showModal();\n        (focusables().find(element => element.hasAttribute('autofocus')) || focusables()[0] || dialog).focus();\n      });\n    });\n    dialog.querySelectorAll('[data-drawer-close]').forEach(button => button.addEventListener('click', close));\n    dialog.addEventListener('compositionstart', () => { composing = true; });\n    dialog.addEventListener('compositionend', () => { composing = false; });\n    dialog.addEventListener('cancel', event => { if (composing) event.preventDefault(); });\n    dialog.addEventListener('keydown', event => {\n      if (composing || event.isComposing || event.keyCode === 229) {\n        if (event.key === 'Escape') event.preventDefault();\n        return;\n      }\n      if (event.key !== 'Tab') return;\n      const items = focusables();\n      const first = items[0], last = items[items.length - 1];\n      if (!first) { event.preventDefault(); dialog.focus(); return; }\n      if (event.shiftKey && (document.activeElement === first || document.activeElement === dialog)) { event.preventDefault(); last.focus(); }\n      else if (!event.shiftKey && (document.activeElement === last || document.activeElement === dialog)) { event.preventDefault(); first.focus(); }\n    });\n    dialog.addEventListener('click', event => {\n      if (event.target !== dialog) return;\n      const rect = dialog.getBoundingClientRect();\n      if (event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom) close();\n    });\n    dialog.addEventListener('close', () => {\n      if (dialog.open) return; \/\/ Ignore a queued close event from an earlier opening.\n      composing = false;\n      dialog.inert = true;\n      if (opener?.isConnected && !opener.disabled && !document.querySelectorAll('dialog[open]').length) opener.focus();\n    });\n  });\n})();\n"},{"path":"components\/drawer\/example.html","type":"registry:component","content":"<!-- KATA drawer 1.1.0 \u2014 kata-ui.dev\/components\/drawer \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-pri btn-md\" data-drawer-open>Open drawer<\/button>\n<dialog class=\"kdrawer\" data-drawer aria-label=\"Invoice detail\">\n  <div class=\"kdrawer-head\">\n    <div class=\"kdrawer-title\">Invoice INV-1042<\/div>\n    <button type=\"button\" class=\"btn btn-ghost btn-sm\" data-drawer-close aria-label=\"Close\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"kdrawer-body\">Issued on the 1st, due at the end of the month. Two line items, both confirmed by the client. The full breakdown and the payment link live here, next to the list they came from.<\/div>\n  <div class=\"kdrawer-foot\">\n    <button type=\"button\" class=\"btn btn-sec btn-md\" data-drawer-close>Close<\/button>\n    <button type=\"button\" class=\"btn btn-pri btn-md\" data-drawer-close>Send reminder<\/button>\n  <\/div>\n<\/dialog>"}],"meta":{"status":"beta","usage":"For detail views and edit forms that belong to the current page. On narrow screens it takes most of the width.","accessibility":"Uses native <dialog>. Tab and Shift+Tab cycle inside the panel. Escape, backdrop clicks and labelled close buttons dismiss it and return focus to the opener. All instances initialize independently; existing IDs are preserved and missing IDs are generated. Closing is immediate, as in the original implementation; the closed dialog is inert. Native modal focus does not use focusout dismissal. The panel sits at the inline end (right in LTR, left in RTL) and slides in from that edge; reduced motion removes the slide."},"audit":{"id":"components\/drawer","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"dropdown","type":"registry:component","title":"Dropdown","description":"Opens with a soft scale. Headings, dividers and a red danger item included.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/dropdown\/dropdown.css","type":"registry:component","content":"\/* KATA dropdown 1.1.0 \u2014 kata-ui.dev\/components\/dropdown \u2014 requires mold >= 4 *\/\n.dd{position:relative;display:inline-block}\n\/* A closed menu is hidden from Tab and assistive tech once its fade-out ends. *\/\n.menu{position:absolute;top:calc(100% + 6px);inset-inline-start:0;min-width:196px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-pop);padding:var(--k-space-1);opacity:0;visibility:hidden;transform:translateY(-4px) scale(.98);pointer-events:none;transition:opacity var(--k-dur-fast),transform var(--k-dur-fast),visibility 0s linear var(--k-dur-fast);z-index:20}\n.menu.open{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}\n.menu a{display:flex;gap:var(--k-space-2);align-items:center;padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);color:var(--k-ink);text-decoration:none;font-size:var(--k-text-base);font-family:var(--k-font)}\n.menu a:hover,.menu a:focus-visible{background:var(--k-bg-soft)}\n.menu a:active{background:var(--k-line)}\n.menu a.danger{color:var(--k-danger-ink)}\n.menu a.danger:hover,.menu a.danger:focus-visible{background:var(--k-danger-bg)}\n\/* Disabled items stay readable, are skipped by the arrow keys and do not react to the pointer. *\/\n.menu a[aria-disabled=\"true\"]{color:var(--k-ink-3);pointer-events:none}\n.menu hr{border:0;border-top:1px solid var(--k-line);margin:var(--k-space-1) var(--k-space-1)}\n.menu .mh{display:block;font-size:var(--k-text-xs);color:var(--k-ink-3);padding:var(--k-space-1) var(--k-space-2) var(--k-space-1);letter-spacing:.06em}\n"},{"path":"components\/dropdown\/dropdown.js","type":"registry:component","content":"\/* KATA dropdown 1.1.0 \u2014 kata-ui.dev\/components\/dropdown \u2014 requires mold >= 4 *\/\n\/\/ KATA Dropdown \u2014 menu button (WAI-ARIA APG pattern), independent instances.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-dropdown-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  const ITEMS = 'a[href],button,[role=\"menuitem\"]';\n  const instances = [];\n  function emit(root, open) { root.dispatchEvent(new CustomEvent('kata-dropdown-toggle', { bubbles: true, detail: { open } })); }\n  document.querySelectorAll('[data-dd-trigger]').forEach(trigger => {\n    const root = trigger.closest('.dd') || trigger.parentElement;\n    const menu = root && root.querySelector('[data-dd-menu]');\n    if (!menu || root.hasAttribute('data-kata-ready')) return;\n    root.setAttribute('data-kata-ready', '');\n    const menuId = ensureId(menu, 'menu');\n    trigger.setAttribute('aria-haspopup', 'menu');\n    trigger.setAttribute('aria-controls', menuId);\n    trigger.setAttribute('aria-expanded', 'false');\n    menu.setAttribute('role', 'menu');\n    if (!menu.hasAttribute('aria-label') && !menu.hasAttribute('aria-labelledby')) menu.setAttribute('aria-labelledby', ensureId(trigger, 'trigger'));\n    const items = () => [...menu.querySelectorAll(ITEMS)].filter(item => !item.hidden && item.getAttribute('aria-disabled') !== 'true' && !item.disabled);\n    menu.querySelectorAll(ITEMS).forEach(item => { item.setAttribute('role', 'menuitem'); item.tabIndex = -1; });\n    menu.querySelectorAll('hr').forEach(hr => hr.setAttribute('role', 'separator'));\n    menu.querySelectorAll('.mh').forEach(heading => heading.setAttribute('role', 'presentation'));\n    const isOpen = () => menu.classList.contains('open');\n    function open(focus) {\n      if (!isOpen()) {\n        instances.forEach(other => { if (other.root !== root) other.close(false); });\n        menu.classList.add('open');\n        trigger.setAttribute('aria-expanded', 'true');\n        emit(root, true);\n      }\n      const list = items();\n      const target = focus === 'last' ? list[list.length - 1] : list[0];\n      if (target) target.focus();\n    }\n    function close(returnFocus) {\n      if (!isOpen()) return;\n      menu.classList.remove('open');\n      trigger.setAttribute('aria-expanded', 'false');\n      if (returnFocus) trigger.focus();\n      emit(root, false);\n    }\n    instances.push({ root, close });\n    trigger.addEventListener('click', () => { if (isOpen()) close(true); else open('first'); });\n    trigger.addEventListener('keydown', event => {\n      if (event.isComposing || event.keyCode === 229) return;\n      if (event.key === 'ArrowDown') { event.preventDefault(); open('first'); }\n      else if (event.key === 'ArrowUp') { event.preventDefault(); open('last'); }\n      else if (event.key === 'Escape' && isOpen()) { event.preventDefault(); close(true); }\n    });\n    menu.addEventListener('keydown', event => {\n      if (event.isComposing || event.keyCode === 229) return;\n      const list = items();\n      const index = list.indexOf(document.activeElement);\n      let next = null;\n      if (event.key === 'ArrowDown') next = list[(index + 1) % list.length];\n      else if (event.key === 'ArrowUp') next = list[(index - 1 + list.length) % list.length];\n      else if (event.key === 'Home' || event.key === 'PageUp') next = list[0];\n      else if (event.key === 'End' || event.key === 'PageDown') next = list[list.length - 1];\n      else if (event.key === 'Escape') { event.preventDefault(); close(true); return; }\n      else if (event.key === 'Tab') { close(false); return; }\n      else if (event.key === ' ' && document.activeElement?.matches('a[href]')) { event.preventDefault(); document.activeElement.click(); return; }\n      if (next) { event.preventDefault(); next.focus(); }\n    });\n    menu.addEventListener('click', event => { if (event.target.closest(ITEMS)) close(true); });\n    \/\/ A null relatedTarget (window switch, removed node) never closes the menu.\n    root.addEventListener('focusout', event => { if (event.relatedTarget && !root.contains(event.relatedTarget)) close(false); });\n  });\n  \/\/ One outside-press and one window-blur listener per script load, shared by its instances.\n  if (!instances.length) return;\n  document.addEventListener('pointerdown', event => { instances.forEach(instance => { if (!instance.root.contains(event.target)) instance.close(false); }); });\n  window.addEventListener('blur', () => instances.forEach(instance => instance.close(false)));\n})();\n"},{"path":"components\/dropdown\/example.html","type":"registry:component","content":"<!-- KATA dropdown 1.1.0 \u2014 kata-ui.dev\/components\/dropdown \u2014 requires mold >= 4 -->\n<span class=\"dd\">\n  <button type=\"button\" class=\"btn btn-sec btn-md\" data-dd-trigger>Actions <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"M6 9l6 6 6-6\"\/><\/svg><\/button>\n  <span class=\"menu\" data-dd-menu>\n    <span class=\"mh\">Project<\/span>\n    <a href=\"#\">Edit<\/a><a href=\"#\">Duplicate<\/a><a href=\"#\">Copy share link<\/a>\n    <hr>\n    <a href=\"#\" class=\"danger\">Delete<\/a>\n  <\/span>\n<\/span>"}],"meta":{"status":"beta","usage":"Group actions under one trigger. Keep destructive actions last, below a divider, in red.","accessibility":"Menu button pattern (WAI-ARIA APG). The trigger has aria-haspopup=\"menu\", aria-expanded and aria-controls; the menu has role=\"menu\" and is named by the trigger, items are menuitems and dividers are separators. Enter, Space or ArrowDown opens on the first item, ArrowUp on the last; ArrowUp\/Down wrap, Home\/End jump, disabled items (aria-disabled) are skipped. Escape and choosing an item close the menu and return focus to the trigger; Tab, an outside press and window blur close it. Opening one menu closes the others. Instances initialize independently and loading the script twice is safe. Closed items are not Tab stops. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/dropdown","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"hover-card","type":"registry:component","title":"Hover Card","description":"A richer tooltip for things with a face: profiles, previews, and anything a title attribute cannot carry.","categories":["Overlays & Dialogs"],"dependencies":["avatar"],"files":[{"path":"components\/hover-card\/hover-card.css","type":"registry:component","content":"\/* KATA hover-card 1.1.0 \u2014 kata-ui.dev\/components\/hover-card \u2014 requires mold >= 4 *\/\n\/* --khover-shift is set by hover-card.js so the centred card stays inside the viewport. *\/\n.k-hover{--khover-shift:0px;position:relative;display:inline-block;font-family:var(--k-font)}\n.k-hover .card{position:absolute;left:50%;top:calc(100% + 10px);transform:translate(calc(-50% + var(--khover-shift)),4px);width:262px;max-width:calc(100vw - var(--k-space-16));background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-4);text-align:start;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--k-dur-base) var(--k-ease),transform var(--k-dur-base) var(--k-ease),visibility 0s linear var(--k-dur-base);z-index:40}\n\/* Closed cards are visibility:hidden so screen readers do not read them in the sentence; the delay keeps the fade-out. *\/\n.k-hover.open .card{opacity:1;visibility:visible;pointer-events:auto;transform:translate(calc(-50% + var(--khover-shift)),0);transition-delay:0s}\n.k-hover .card h4{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink)}\n.k-hover .card p{margin-top:var(--k-space-1);font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-hover .trigger{font-weight:550;color:var(--k-accent-ink);cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--k-accent-line)}\n"},{"path":"components\/hover-card\/hover-card.js","type":"registry:component","content":"\/* KATA hover-card 1.1.0 \u2014 kata-ui.dev\/components\/hover-card \u2014 requires mold >= 4 *\/\n\/\/ KATA Hover Card \u2014 opens on hover (with delay) and on focus; Escape dismisses (WCAG 1.4.13).\n(() => {\n  'use strict';\n  const instances = [];\n  \/\/ Keep the centred card inside the viewport with a margin of one --k-space-4 on each side.\n  function fit(wrap) {\n    const card = wrap.querySelector('.card');\n    if (!card) return;\n    wrap.style.setProperty('--khover-shift', '0px');\n    const margin = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--k-space-4')) || 16;\n    const rect = card.getBoundingClientRect();\n    const view = document.documentElement.clientWidth;\n    let shift = 0;\n    if (rect.left < margin) shift = margin - rect.left;\n    else if (rect.right > view - margin) shift = view - margin - rect.right;\n    wrap.style.setProperty('--khover-shift', `${Math.round(shift)}px`);\n  }\n  document.querySelectorAll('[data-hover]').forEach(wrap => {\n    if (wrap.hasAttribute('data-kata-ready')) return;\n    wrap.setAttribute('data-kata-ready', '');\n    let openT, closeT;\n    const show = () => { clearTimeout(closeT); fit(wrap); wrap.classList.add('open'); };\n    const hide = () => { clearTimeout(openT); clearTimeout(closeT); wrap.classList.remove('open'); };\n    wrap.addEventListener('pointerenter', () => { clearTimeout(closeT); openT = setTimeout(show, 300); });\n    wrap.addEventListener('pointerleave', () => { clearTimeout(openT); closeT = setTimeout(hide, 180); });\n    wrap.addEventListener('focusin', show);\n    wrap.addEventListener('focusout', event => { if (!wrap.contains(event.relatedTarget)) { clearTimeout(openT); closeT = setTimeout(hide, 180); } });\n    instances.push({ wrap, hide });\n  });\n  \/\/ One shared Escape listener per script load; a second load finds no new card and adds none.\n  if (!instances.length) return;\n  document.addEventListener('keydown', event => {\n    if (event.key !== 'Escape' || event.isComposing || event.keyCode === 229) return;\n    instances.forEach(({ wrap, hide }) => { if (wrap.classList.contains('open')) hide(); });\n  });\n})();\n"},{"path":"components\/hover-card\/example.html","type":"registry:component","content":"<!-- KATA hover-card 1.1.0 \u2014 kata-ui.dev\/components\/hover-card \u2014 requires mold >= 4 -->\n<div style=\"font-size:var(--k-text-base);color:var(--k-ink-2)\">The release notes were drafted by\n  <span class=\"k-hover\" data-hover>\n    <a class=\"trigger\" href=\"#\">Aoi Kimura<\/a>\n    <span class=\"card\">\n      <span style=\"display:flex;gap:var(--k-space-3);align-items:center\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"lg\">AK<\/span><span><h4>Aoi Kimura<\/h4><p style=\"margin:0\">Product designer, Tokyo<\/p><\/span><\/span>\n      <p>Owns the design system and the Motion line. Usually replies within the hour.<\/p>\n    <\/span>\n  <\/span>\n  and are ready for review.<\/div>"}],"meta":{"status":"beta","usage":"For profile previews on names and avatars. Rich content only \u2014 anything actionable belongs in a Popover, which also works on tap.","accessibility":"Opens on focus at once and on hover after 300ms; closes 180ms after the pointer or focus leaves. Escape dismisses it without moving focus (WCAG 1.4.13). While closed the card is visibility:hidden, so screen readers do not read it inside the sentence. The card shifts to stay inside the viewport. Touch users get the Popover pattern instead; never hide essential content here."},"audit":{"id":"components\/hover-card","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"modal","type":"registry:component","title":"Modal","description":"Built on the native dialog element \u2014 backdrop blur and Esc-to-close come free.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/modal\/modal.css","type":"registry:component","content":"\/* KATA modal 1.1.0 \u2014 kata-ui.dev\/components\/modal \u2014 requires mold >= 4 *\/\n.kmodal{border:0;border-radius:var(--k-radius-xl);padding:0;max-width:420px;width:calc(100% - 40px);box-shadow:var(--k-shadow-modal);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font)}\n.kmodal::backdrop{background:var(--k-backdrop);backdrop-filter:blur(3px)}\n.modal-in{padding:var(--k-space-6)}\n.modal-in h3{font-size:var(--k-text-lg);font-weight:600}\n.modal-in p{margin-top:var(--k-space-2);font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-loose);letter-spacing:.012em}\n.modal-in .row{display:flex;gap:var(--k-space-2);justify-content:flex-end;margin-top:var(--k-space-5)}\n"},{"path":"components\/modal\/modal.js","type":"registry:component","content":"\/* KATA modal 1.1.0 \u2014 kata-ui.dev\/components\/modal \u2014 requires mold >= 4 *\/\n\/\/ KATA Modal \u2014 independent native modal instances.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-modal-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  const dialogs = [...document.querySelectorAll('[data-modal]')];\n  const triggers = [...document.querySelectorAll('[data-modal-open]')];\n  function targetOf(trigger) {\n    const controls = trigger.getAttribute('aria-controls');\n    if (controls) {\n      const target = dialogs.find(dialog => dialog.id === controls);\n      if (target) return target;\n    }\n    return dialogs.find(dialog => trigger.compareDocumentPosition(dialog) & Node.DOCUMENT_POSITION_FOLLOWING) || dialogs[dialogs.length - 1];\n  }\n  dialogs.forEach(dialog => {\n    if (dialog.hasAttribute('data-kata-ready') || !(dialog instanceof HTMLDialogElement)) return;\n    dialog.setAttribute('data-kata-ready', '');\n    const id = ensureId(dialog, 'dialog');\n    const heading = dialog.querySelector('h1,h2,h3,h4,h5,h6');\n    const description = dialog.querySelector('p');\n    if (!dialog.hasAttribute('aria-label') && !dialog.hasAttribute('aria-labelledby') && heading) dialog.setAttribute('aria-labelledby', ensureId(heading, 'title'));\n    if (!dialog.hasAttribute('aria-describedby') && description) dialog.setAttribute('aria-describedby', ensureId(description, 'description'));\n    if (!dialog.hasAttribute('tabindex')) dialog.tabIndex = -1;\n    let opener = null;\n    let composing = false;\n    function focusables() {\n      return [...dialog.querySelectorAll('button,a[href],input,select,textarea,[tabindex]')].filter(element => element.tabIndex >= 0 && !element.disabled && !element.closest('[inert]') && element.getClientRects().length && getComputedStyle(element).visibility !== 'hidden');\n    }\n    \/\/ Native close is immediate; it never waits for a CSS end event.\n    function close() { composing = false; if (dialog.open) dialog.close(); }\n    triggers.filter(trigger => targetOf(trigger) === dialog).forEach(trigger => {\n      ensureId(trigger, 'trigger');\n      trigger.setAttribute('aria-controls', id);\n      trigger.setAttribute('aria-haspopup', 'dialog');\n      trigger.addEventListener('click', () => {\n        if (dialog.open) return;\n        composing = false;\n        opener = trigger;\n        dialog.showModal();\n        (focusables().find(element => element.hasAttribute('autofocus')) || focusables()[0] || dialog).focus();\n      });\n    });\n    dialog.querySelectorAll('[data-modal-close]').forEach(button => button.addEventListener('click', close));\n    dialog.addEventListener('compositionstart', () => { composing = true; });\n    dialog.addEventListener('compositionend', () => { composing = false; });\n    dialog.addEventListener('cancel', event => { if (composing) event.preventDefault(); });\n    dialog.addEventListener('keydown', event => {\n      if (composing || event.isComposing || event.keyCode === 229) {\n        if (event.key === 'Escape') event.preventDefault();\n        return;\n      }\n      if (event.key !== 'Tab') return;\n      const items = focusables();\n      const first = items[0], last = items[items.length - 1];\n      if (!first) { event.preventDefault(); dialog.focus(); return; }\n      if (event.shiftKey && (document.activeElement === first || document.activeElement === dialog)) { event.preventDefault(); last.focus(); }\n      else if (!event.shiftKey && (document.activeElement === last || document.activeElement === dialog)) { event.preventDefault(); first.focus(); }\n    });\n    \/\/ A click on the backdrop lands on the dialog element outside its box.\n    dialog.addEventListener('click', event => {\n      if (event.target !== dialog) return;\n      const rect = dialog.getBoundingClientRect();\n      if (event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom) close();\n    });\n    dialog.addEventListener('close', () => {\n      if (dialog.open) return; \/\/ Ignore a queued close event from an earlier opening.\n      composing = false;\n      if (opener?.isConnected && !opener.disabled && !document.querySelectorAll('dialog[open]').length) opener.focus();\n    });\n  });\n})();\n"},{"path":"components\/modal\/example.html","type":"registry:component","content":"<!-- KATA modal 1.1.0 \u2014 kata-ui.dev\/components\/modal \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-pri btn-md\" data-modal-open>Open modal<\/button>\n<dialog class=\"kmodal\" data-modal>\n  <div class=\"modal-in\">\n    <h3>Send this estimate?<\/h3>\n    <p>Once sent, it can't be undone. Check the recipient and the amount first.<\/p>\n    <div class=\"row\">\n      <button type=\"button\" class=\"btn btn-sec btn-md\" data-modal-close>Cancel<\/button>\n      <button type=\"button\" class=\"btn btn-pri btn-md\" data-modal-close>Send<\/button>\n    <\/div>\n  <\/div>\n<\/dialog>"}],"meta":{"status":"beta","usage":"For confirmations that block the flow. Keep the message to one decision.","accessibility":"Uses native <dialog> with showModal. Tab and Shift+Tab cycle inside the dialog. Escape, backdrop clicks and [data-modal-close] buttons close it and return focus to the opener. The first heading names the dialog (aria-labelledby) and the first paragraph describes it (aria-describedby), with generated IDs; existing IDs are preserved. All instances initialize independently and loading the script twice is safe. Escape is ignored while an IME is composing. Label the primary action with the verb, not \"OK\". Beta until a recorded screen-reader pass."},"audit":{"id":"components\/modal","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"popover","type":"registry:component","title":"Popover","description":"A small panel anchored to its trigger \u2014 for detail that does not deserve a page.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/popover\/popover.css","type":"registry:component","content":"\/* KATA popover 1.1.0 \u2014 kata-ui.dev\/components\/popover \u2014 requires mold >= 4 *\/\n.kpop-wrap{position:relative;display:inline-block;font-family:var(--k-font)}\n\/* --kpop-shift is set by popover.js so the centred panel stays inside the viewport. *\/\n.kpop{--kpop-shift:0px;position:absolute;top:calc(100% + 8px);left:50%;transform:translate(calc(-50% + var(--kpop-shift)),4px);width:272px;max-width:calc(100vw - var(--k-space-16));background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-overlay);padding:var(--k-space-4);opacity:0;pointer-events:none;transition:opacity var(--k-dur-1) var(--k-ease),transform var(--k-dur-1) var(--k-ease);z-index:var(--k-z-overlay);text-align:start}\n.kpop.open{opacity:1;transform:translate(calc(-50% + var(--kpop-shift)),0);pointer-events:auto}\n.kpop-h{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink)}\n.kpop-p{margin-top:var(--k-space-1);font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.kpop-row{display:flex;gap:var(--k-space-2);margin-top:var(--k-space-3)}\n"},{"path":"components\/popover\/popover.js","type":"registry:component","content":"\/* KATA popover 1.1.0 \u2014 kata-ui.dev\/components\/popover \u2014 requires mold >= 4 *\/\n\/\/ KATA Popover \u2014 independent non-modal panels.\n(() => {\n  let nextId = 0;\n  function ensureId(element, suffix) {\n    if (element.id) return element.id;\n    let id;\n    do { id = `kata-popover-${++nextId}-${suffix}`; } while (document.getElementById(id));\n    element.id = id;\n    return id;\n  }\n  const instances = [];\n  \/\/ Keep the centred panel inside the viewport with a margin of one --k-space-4 on each side.\n  function fit(panel) {\n    panel.style.setProperty('--kpop-shift', '0px');\n    const margin = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--k-space-4')) || 16;\n    const rect = panel.getBoundingClientRect();\n    const view = document.documentElement.clientWidth;\n    let shift = 0;\n    if (rect.left < margin) shift = margin - rect.left;\n    else if (rect.right > view - margin) shift = view - margin - rect.right;\n    panel.style.setProperty('--kpop-shift', `${Math.round(shift)}px`);\n  }\n  document.querySelectorAll('[data-popover]').forEach(wrap => {\n    if (wrap.hasAttribute('data-kata-ready')) return;\n    const trigger = wrap.querySelector('[data-popover-btn]');\n    const panel = wrap.querySelector('[data-popover-panel]');\n    if (!trigger || !panel) return;\n    wrap.setAttribute('data-kata-ready', '');\n    ensureId(trigger, 'trigger');\n    trigger.setAttribute('aria-controls', ensureId(panel, 'panel'));\n    trigger.setAttribute('aria-haspopup', 'dialog');\n    if (!panel.hasAttribute('aria-label') && !panel.hasAttribute('aria-labelledby')) panel.setAttribute('aria-labelledby', ensureId(trigger, 'trigger'));\n    let open = false;\n    let timer;\n    let composing = false;\n    panel.hidden = true;\n    panel.inert = true;\n    trigger.setAttribute('aria-expanded', 'false');\n    function finish() { if (!open) panel.hidden = true; clearTimeout(timer); }\n    function close(restore = false) {\n      if (!open) return;\n      open = false;\n      composing = false;\n      panel.classList.remove('open');\n      trigger.setAttribute('aria-expanded', 'false');\n      panel.inert = true;\n      const style = getComputedStyle(panel);\n      const ms = value => value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000));\n      const duration = Math.max(...ms(style.transitionDuration));\n      const delay = Math.max(0, ...ms(style.transitionDelay));\n      clearTimeout(timer);\n      if (duration === 0) finish();\n      else timer = setTimeout(finish, duration + delay + 50);\n      if (restore) trigger.focus();\n    }\n    function show() {\n      clearTimeout(timer);\n      open = true;\n      composing = false;\n      panel.hidden = false;\n      panel.inert = false;\n      fit(panel);\n      void panel.offsetWidth;\n      panel.classList.add('open');\n      trigger.setAttribute('aria-expanded', 'true');\n    }\n    trigger.addEventListener('click', () => { if (open) close(); else show(); });\n    wrap.addEventListener('compositionstart', () => { composing = true; });\n    wrap.addEventListener('compositionend', () => { composing = false; });\n    wrap.addEventListener('keydown', event => {\n      if (composing || event.isComposing || event.keyCode === 229) return;\n      if (event.key === 'Escape' && open) { event.preventDefault(); event.stopPropagation(); close(true); }\n    });\n    wrap.addEventListener('focusout', event => {\n      if (!event.relatedTarget) return;\n      if (!wrap.contains(event.relatedTarget)) close();\n    });\n    instances.push({ wrap, close, panel, isOpen: () => open });\n    panel.addEventListener('transitionend', event => { if (event.target === panel && event.propertyName === 'opacity' && !open) finish(); });\n    panel.addEventListener('transitioncancel', event => { if (event.target === panel && !open) finish(); });\n  });\n  \/\/ One outside-press and one resize listener per script load, shared by its instances.\n  if (!instances.length) return;\n  document.addEventListener('pointerdown', event => { instances.forEach(instance => { if (!instance.wrap.contains(event.target)) instance.close(); }); });\n  window.addEventListener('resize', () => instances.forEach(instance => { if (instance.isOpen()) fit(instance.panel); }));\n})();\n"},{"path":"components\/popover\/example.html","type":"registry:component","content":"<!-- KATA popover 1.1.0 \u2014 kata-ui.dev\/components\/popover \u2014 requires mold >= 4 -->\n<div class=\"kpop-wrap\" data-popover>\n  <button type=\"button\" class=\"btn btn-pri btn-md\" data-popover-btn aria-expanded=\"false\" aria-haspopup=\"dialog\">Share<\/button>\n  <div class=\"kpop\" data-popover-panel hidden inert role=\"dialog\" aria-label=\"Share\">\n    <div class=\"kpop-h\">Share this page<\/div>\n    <p class=\"kpop-p\">Anyone with the link can view it. No sign-in needed, and the link can be revoked at any time.<\/p>\n    <div class=\"kpop-row\">\n      <button type=\"button\" class=\"btn btn-sec btn-sm\">Copy link<\/button>\n      <button type=\"button\" class=\"btn btn-sec btn-sm\">Permissions<\/button>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For rich, short content tied to one element: share panels, quick info, mini forms. Not for plain text \u2014 that is the Tooltip.","accessibility":"The non-modal dialog panel has an automatically linked trigger with aria-expanded. Escape closes and returns focus to the trigger. A null focusout target is ignored. Outside presses and focus leaving the component close without stealing focus. On narrow screens the panel shifts to stay inside the viewport. Closed panels are inert and hidden; zero-duration transitions complete immediately with a timeout fallback otherwise. Existing IDs are preserved. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/popover","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"tooltip","type":"registry:component","title":"Tooltip","description":"A label that appears on hover and focus, in ink black. Pure CSS \u2014 no positioning library, no JS.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/tooltip\/tooltip.css","type":"registry:component","content":"\/* KATA tooltip 1.1.0 \u2014 kata-ui.dev\/components\/tooltip \u2014 requires mold >= 4 *\/\n\/* KATA Tooltip \u2014 CSS only, driven by [data-tip]. The empty alternative text after \"\/\" keeps the tip out of the accessible name. *\/\n.k-tip{position:relative}\n.k-tip::after{content:attr(data-tip) \/ \"\";position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%) translateY(2px);background:var(--k-ink);color:var(--k-bg);font-family:var(--k-font);font-size:var(--k-text-xs);font-weight:500;line-height:var(--k-lh-tight);padding:var(--k-space-1) var(--k-space-2);border-radius:var(--k-radius-sm);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity var(--k-dur-fast),transform var(--k-dur-fast);z-index:30}\n.k-tip::before{content:\"\";position:absolute;left:50%;bottom:calc(100% + 2px);transform:translateX(-50%);width:calc(var(--k-space-2) * 1.25);height:calc(var(--k-space-2) * 1.25);box-sizing:border-box;border:1px solid var(--k-line);background:var(--k-ink);clip-path:polygon(0 0,100% 0,50% 50%);opacity:0;pointer-events:none;transition:opacity var(--k-dur-fast);z-index:30}\n.k-tip:hover::after,.k-tip:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}\n.k-tip:hover::before,.k-tip:focus-visible::before{opacity:1}\n.k-tip[data-side=\"bottom\"]::after{bottom:auto;top:calc(100% + 7px)}\n.k-tip[data-side=\"bottom\"]::before{bottom:auto;top:calc(100% + 2px);clip-path:polygon(0 100%,100% 100%,50% 50%)}\n"},{"path":"components\/tooltip\/example.html","type":"registry:component","content":"<!-- KATA tooltip 1.1.0 \u2014 kata-ui.dev\/components\/tooltip \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-2);padding-top:var(--k-space-7);flex-wrap:wrap\">\n  <button class=\"btn btn-sec btn-md k-tip\" data-tip=\"Copy link\" type=\"button\">Copy<\/button>\n  <button class=\"btn btn-sec btn-md k-tip\" data-tip=\"Open settings\" type=\"button\">Settings<\/button>\n  <button class=\"btn btn-pri btn-md k-tip\" data-tip=\"Nothing to save yet\" data-side=\"bottom\" type=\"button\">Save<\/button>\n<\/div>"}],"meta":{"status":"beta","usage":"For naming icon buttons and shortening explanations. Never for essential information \u2014 if it matters, write it on the page. Keep it under five words.","accessibility":"Appears on hover and keyboard focus (:focus-visible), so the trigger must be focusable. The tip text is CSS generated content with empty alternative text, so it does not change the trigger's accessible name and is not exposed as a description: an icon-only trigger needs its own aria-label, and essential information belongs on the page. Not implemented (CSS only): dismissing with Escape and keeping the tip open while the pointer moves onto it (WCAG 1.4.13 content on hover or focus)."},"audit":{"id":"components\/tooltip","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"tour","type":"registry:component","title":"Tour","description":"A short guided walk: a ring on the thing, a card that explains it, and a way out at every step.","categories":["Overlays & Dialogs"],"dependencies":["button"],"files":[{"path":"components\/tour\/tour.css","type":"registry:component","content":"\/* KATA tour 1.1.0 \u2014 kata-ui.dev\/components\/tour \u2014 requires mold >= 4 *\/\n\/* KATA Tour \u2014 a ring on the target, a card beside it, an exit on every step *\/\n.k-tour-stage{position:relative;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg-soft);padding:var(--k-space-4);min-height:196px;overflow:hidden}\n.k-tour-anchor{position:relative;display:inline-flex}\n.k-tour-ring{position:absolute;border:2px solid var(--k-accent);border-radius:var(--k-radius-lg);box-shadow:var(--k-ring-offset);pointer-events:none;transition:top var(--k-dur-2) var(--k-ease),left var(--k-dur-2) var(--k-ease),width var(--k-dur-2) var(--k-ease),height var(--k-dur-2) var(--k-ease)}\n\/* The spotlight ring sits outside the 4px keyboard focus ring (gap + ink) so both stay visible. *\/\n.k-tour-anchor .k-tour-ring{inset:calc(var(--k-space-2) * -1)}\n.k-tour{position:absolute;width:262px;max-width:calc(100% - 24px);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);padding:var(--k-space-4);z-index:5;font-family:var(--k-font)}\n.k-tour h4{margin:0 0 var(--k-space-1);font-size:var(--k-text-md);font-weight:650;color:var(--k-ink)}\n.k-tour p{margin:0;font-size:var(--k-text-base);line-height:var(--k-lh-small);color:var(--k-ink-2);letter-spacing:.01em}\n.k-tour-arrow{position:absolute;top:-6px;left:28px;width:11px;height:11px;background:var(--k-bg);border-left:1px solid var(--k-line);border-top:1px solid var(--k-line);transform:rotate(45deg)}\n.k-tour.flip .k-tour-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}\n.k-tour-ft{display:flex;align-items:center;gap:var(--k-space-2);margin-top:var(--k-space-3)}\n.k-tour-dots{display:flex;gap:var(--k-space-1);margin-right:auto;align-items:center}\n.k-tour-dots i{width:6px;height:6px;border-radius:var(--k-radius-full);background:var(--k-zinc-300);display:block}\n.k-tour-dots i.on{background:var(--k-core);width:16px}\n"},{"path":"components\/tour\/tour.js","type":"registry:component","content":"\/* KATA tour 1.1.0 \u2014 kata-ui.dev\/components\/tour \u2014 requires mold >= 4 *\/\n\/* KATA Tour \u2014 KATATour.start([{el, title, text}, ...]); Skip and Escape always work. *\/\n(function () {\n  var card = null, ring = null, steps = [], idx = 0, target = null;\n  function ensure() {\n    if (card) return;\n    ring = document.createElement('div');\n    ring.className = 'k-tour-ring';\n    ring.hidden = true;\n    ring.style.position = 'fixed';\n    ring.style.zIndex = '90';\n    document.body.appendChild(ring);\n    card = document.createElement('div');\n    card.className = 'k-tour';\n    card.hidden = true;\n    card.style.position = 'fixed';\n    card.style.zIndex = '91';\n    card.setAttribute('role', 'dialog');\n    card.setAttribute('aria-label', 'Product tour');\n    card.innerHTML = '<span class=\"k-tour-arrow\"><\/span><h4 data-t><\/h4><p data-x><\/p>' +\n      '<div class=\"k-tour-ft\"><span class=\"k-tour-dots\" data-d><\/span>' +\n      '<button type=\"button\" class=\"btn btn-ghost btn-sm\" data-skip>Skip<\/button>' +\n      '<button type=\"button\" class=\"btn btn-pri btn-sm\" data-next>Next<\/button><\/div>';\n    document.body.appendChild(card);\n    card.querySelector('[data-skip]').addEventListener('click', end);\n    card.querySelector('[data-next]').addEventListener('click', function () {\n      idx++;\n      if (idx >= steps.length) end(); else show();\n    });\n    document.addEventListener('keydown', function (e) {\n      if (!card || card.hidden) return;\n      if (e.key === 'Escape') end();\n      if (e.key === 'ArrowRight') card.querySelector('[data-next]').click();\n    });\n    window.addEventListener('resize', place);\n    window.addEventListener('scroll', place, true);\n  }\n  function place() {\n    if (!target || card.hidden) return;\n    var r = target.getBoundingClientRect();\n    ring.style.left = (r.left - 5) + 'px';\n    ring.style.top = (r.top - 5) + 'px';\n    ring.style.width = (r.width + 10) + 'px';\n    ring.style.height = (r.height + 10) + 'px';\n    var cw = card.offsetWidth, ch = card.offsetHeight;\n    var below = r.bottom + 14 + ch <= window.innerHeight - 10;\n    card.classList.toggle('flip', !below);\n    card.style.top = (below ? r.bottom + 14 : r.top - ch - 14) + 'px';\n    card.style.left = Math.max(10, Math.min(r.left, window.innerWidth - cw - 10)) + 'px';\n    var ax = r.left + r.width \/ 2 - card.offsetLeft - 6;\n    card.querySelector('.k-tour-arrow').style.left = Math.max(14, Math.min(ax, cw - 26)) + 'px';\n  }\n  function show() {\n    var s = steps[idx];\n    target = document.querySelector(s.el);\n    if (!target) { idx++; if (idx < steps.length) show(); else end(); return; }\n    card.querySelector('[data-t]').textContent = s.title;\n    card.querySelector('[data-x]').textContent = s.text;\n    var dots = card.querySelector('[data-d]');\n    dots.innerHTML = '';\n    steps.forEach(function (_, i) {\n      var d = document.createElement('i');\n      if (i === idx) d.className = 'on';\n      dots.appendChild(d);\n    });\n    card.querySelector('[data-next]').textContent = idx === steps.length - 1 ? 'Done' : 'Next';\n    card.hidden = false;\n    ring.hidden = false;\n    place();\n    card.querySelector('[data-next]').focus();\n  }\n  function end() {\n    if (!card) return;\n    card.hidden = true;\n    ring.hidden = true;\n  }\n  window.KATATour = {\n    start: function (s) { steps = s || []; idx = 0; ensure(); if (steps.length) show(); },\n    end: end\n  };\n})();\n"},{"path":"components\/tour\/example.html","type":"registry:component","content":"<!-- KATA tour 1.1.0 \u2014 kata-ui.dev\/components\/tour \u2014 requires mold >= 4 -->\n<div class=\"k-tour-stage\" style=\"min-height:300px\">\n  <div style=\"display:flex;gap:var(--k-space-2);align-items:center\">\n    <button class=\"btn btn-pri btn-sm\" type=\"button\">New project<\/button>\n    <span class=\"k-tour-anchor\"><button class=\"btn btn-sec btn-sm\" type=\"button\">Share<\/button><span class=\"k-tour-ring\"><\/span><\/span>\n    <button class=\"btn btn-ghost btn-sm\" type=\"button\">Export<\/button>\n  <\/div>\n  <div class=\"k-tour\" style=\"left:18px;top:78px\" role=\"dialog\" aria-label=\"Product tour\">\n    <span class=\"k-tour-arrow\" style=\"left:118px\"><\/span>\n    <h4>Share when you are ready<\/h4>\n    <p>Projects start private. Invite your team from here when the draft is worth showing \u2014 you can change who sees it at any time.<\/p>\n    <div class=\"k-tour-ft\"><span class=\"k-tour-dots\"><i><\/i><i class=\"on\"><\/i><i><\/i><\/span><button type=\"button\" class=\"btn btn-ghost btn-sm\">Skip<\/button><button type=\"button\" class=\"btn btn-pri btn-sm\">Next<\/button><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Introduce a surface once, in four steps at most: KATATour.start([{el, title, text}, \u2026]). Each step rings its target and anchors the card to it. Skip is always on screen \u2014 a tour the reader cannot leave is a modal in disguise.","accessibility":"Focus moves into the card on each step and the dialog is labelled by its heading. Escape skips the whole tour, arrow-right advances, and nothing the tour points at is ever blocked by it."},"audit":{"id":"components\/tour","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"alert","type":"registry:component","title":"Alert","description":"A message that stays on the page: info, success, warning, danger. Flat, token-tinted, one icon.","categories":["Feedback & Status"],"dependencies":[],"files":[{"path":"components\/alert\/alert.css","type":"registry:component","content":"\/* KATA alert 1.1.0 \u2014 kata-ui.dev\/components\/alert \u2014 requires mold >= 4 *\/\n\/* KATA Alert *\/\n.k-alert{display:flex;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-3);border:1px solid var(--k-accent-line);border-radius:var(--k-radius-lg);background:var(--k-accent-bg);color:var(--k-ink);font-size:var(--k-text-base);line-height:var(--k-lh-body);letter-spacing:.012em}\n.k-alert svg{flex:none;margin-top:var(--k-space-px);color:var(--k-accent-ink)}\n.k-alert b{font-weight:600}\n.k-alert p{color:var(--k-ink-2)}\n.k-alert[data-tone=\"success\"]{background:var(--k-success-bg);border-color:var(--k-success-line)}\n.k-alert[data-tone=\"success\"] svg{color:var(--k-success-ink)}\n.k-alert[data-tone=\"warning\"]{background:var(--k-yamabuki-bg);border-color:var(--k-yamabuki-line)}\n.k-alert[data-tone=\"warning\"] svg{color:var(--k-yamabuki-ink)}\n.k-alert[data-tone=\"danger\"]{background:var(--k-danger-bg);border-color:var(--k-danger-line)}\n.k-alert[data-tone=\"danger\"] svg{color:var(--k-danger-ink)}\n"},{"path":"components\/alert\/example.html","type":"registry:component","content":"<!-- KATA alert 1.1.0 \u2014 kata-ui.dev\/components\/alert \u2014 requires mold >= 4 -->\n<div style=\"display:grid;gap:var(--k-space-2);max-width:460px\">\n  <div class=\"k-alert\"><svg aria-hidden=\"true\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\"><circle cx=\"12\" cy=\"12\" r=\"9\"\/><path d=\"M12 11v5M12 8h.01\"\/><\/svg><div><b>Deploy scheduled.<\/b><p>The new version goes out at 02:00 JST. No action needed.<\/p><\/div><\/div>\n  <div class=\"k-alert\" data-tone=\"success\"><svg aria-hidden=\"true\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\"><circle cx=\"12\" cy=\"12\" r=\"9\"\/><path d=\"m8.5 12.2 2.4 2.4 4.6-5\"\/><\/svg><div><b>Backup complete.<\/b><p>All 128 files verified against the manifest.<\/p><\/div><\/div>\n  <div class=\"k-alert\" data-tone=\"warning\"><svg aria-hidden=\"true\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\"><path d=\"M12 4 2.8 20h18.4L12 4Z\"\/><path d=\"M12 10v4.4M12 17.2h.01\"\/><\/svg><div><b>Storage at 86%.<\/b><p>Exports stop working at 100%. Clear old previews or raise the limit.<\/p><\/div><\/div>\n  <div class=\"k-alert\" data-tone=\"danger\"><svg aria-hidden=\"true\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\"><circle cx=\"12\" cy=\"12\" r=\"9\"\/><path d=\"m9 9 6 6m0-6-6 6\"\/><\/svg><div><b>Payment failed.<\/b><p>The card on file was declined. Update it before the next invoice on the 1st.<\/p><\/div><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For information the user must not miss but does not need to act on right now. Toasts interrupt; alerts stay. One alert per region is usually enough.","accessibility":"Use role=\"alert\" only for messages injected after load; static alerts are plain regions. Tone is never carried by color alone: the title says it, and the icon is decorative (aria-hidden=\"true\") so screen readers do not announce an unnamed image. Title and body text measure at least 12.68:1 and 5.44:1 in every tone and theme; the tone icon at least 3.1:1 (success, dark). Beta until a recorded screen-reader pass."},"audit":{"id":"components\/alert","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"badge","type":"registry:component","title":"Badge","description":"Small status pills \u2014 dots, colors and a solid variant.","categories":["Feedback & Status"],"dependencies":[],"files":[{"path":"components\/badge\/badge.css","type":"registry:component","content":"\/* KATA badge 1.1.0 \u2014 kata-ui.dev\/components\/badge \u2014 requires mold >= 2 *\/\n.badge{display:inline-flex;align-items:center;gap:var(--k-space-1);height:23px;padding:0 var(--k-space-2);border-radius:var(--k-radius-full);font-size:var(--k-text-xs);font-weight:500;background:var(--k-bg-soft);color:var(--k-ink-2);border:1px solid var(--k-line);font-family:var(--k-font)}\n.badge i{width:6px;height:6px;border-radius:50%;background:currentColor}\n.badge.dark{background:var(--k-ink);color:var(--k-bg);border-color:var(--k-ink)}\n.badge.asagi{background:var(--k-accent-bg);color:var(--k-accent-ink);border-color:var(--k-accent-line)}\n.badge.red{background:var(--k-danger-bg);color:var(--k-danger-ink);border-color:var(--k-danger-line)}\n.badge.yamabuki{background:var(--k-yamabuki-bg);color:var(--k-yamabuki-ink);border-color:var(--k-yamabuki-line)}\n"},{"path":"components\/badge\/example.html","type":"registry:component","content":"<!-- KATA badge 1.1.0 \u2014 kata-ui.dev\/components\/badge \u2014 requires mold >= 2 -->\n<span class=\"badge\"><i><\/i>Draft<\/span>\n<span class=\"badge asagi\"><i><\/i>Live<\/span>\n<span class=\"badge red\"><i><\/i>Needs action<\/span>\n<span class=\"badge yamabuki\"><i><\/i>In review<\/span>\n<span class=\"badge dark\">Pro<\/span>\n<span class=\"badge\">3 left<\/span>"}],"meta":{"status":"beta","usage":"Short status words only. Pair the dot variant with a text label; color alone is not a status.","accessibility":"Status is carried by the text, never by color alone; the dot is decorative. Every tone measures at least 5.26:1 (light) and 5.81:1 (dark) text contrast, and text-spacing overrides (WCAG 1.4.12) do not clip the label. Badges are not interactive. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/badge","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"empty-state","type":"registry:component","title":"Empty state","description":"What a screen says when there is nothing in it yet: one icon, one line, one way forward.","categories":["Feedback & Status"],"dependencies":["button"],"files":[{"path":"components\/empty-state\/empty-state.css","type":"registry:component","content":"\/* KATA empty-state 1.1.0 \u2014 kata-ui.dev\/components\/empty-state \u2014 requires mold >= 4 *\/\n\/* KATA Empty state *\/\n.k-empty{display:grid;justify-items:center;text-align:center;gap:var(--k-space-2);padding:calc(var(--k-space-1) * 9) var(--k-space-5);border:1.5px dashed var(--k-border-strong);border-radius:var(--k-radius-lg);background:var(--k-bg)}\n.k-empty .k-empty-ic{width:46px;height:46px;border-radius:50%;background:var(--k-bg-soft);display:grid;place-content:center;color:var(--k-ink-3);margin-block-end:var(--k-space-1)}\n.k-empty h3{font-size:var(--k-text-md);font-weight:600;color:var(--k-ink);font-family:var(--k-font)}\n.k-empty p{font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);max-inline-size:36ch;font-family:var(--k-font);letter-spacing:.01em}\n.k-empty .k-empty-act{margin-block-start:var(--k-space-2)}\n"},{"path":"components\/empty-state\/example.html","type":"registry:component","content":"<!-- KATA empty-state 1.1.0 \u2014 kata-ui.dev\/components\/empty-state \u2014 requires mold >= 4 -->\n<div class=\"k-empty\" style=\"max-width:440px\">\n  <span class=\"k-empty-ic\"><svg aria-hidden=\"true\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\"><path d=\"M12 3v10m0 0 4-4m-4 4-4-4\"\/><path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\"\/><\/svg><\/span>\n  <h3>No exports yet<\/h3>\n  <p>Exports you create will appear here, ready to download or share.<\/p>\n  <span class=\"k-empty-act\"><button class=\"btn btn-pri btn-md\" type=\"button\">Create export<\/button><\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"For first-run and no-results states. Name what is missing, then give the single action that fixes it. Never a dead end, never a joke at the user's expense.","accessibility":"The heading inside is a real heading at the right level for the page. The action is a real button or link. The icon is decorative and aria-hidden=\"true\". Spacing uses logical properties, so the layout holds under dir=\"rtl\"."},"audit":{"id":"components\/empty-state","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"meter","type":"registry:component","title":"Meter","description":"A measured level with a tick scale \u2014 storage, capacity, load. The scale is part of the component.","categories":["Feedback & Status"],"dependencies":[],"files":[{"path":"components\/meter\/meter.css","type":"registry:component","content":"\/* KATA meter 1.1.0 \u2014 kata-ui.dev\/components\/meter \u2014 requires mold >= 2 *\/\n\/* KATA Meter *\/\n.k-meter-track{position:relative;height:8px;border-radius:var(--k-radius-full);background:var(--k-seg);overflow:hidden}\n.k-meter-fill{height:100%;border-radius:var(--k-radius-full);background:var(--k-ink)}\n.k-meter-track::after{content:\"\";position:absolute;inset:0;background-image:linear-gradient(90deg,color-mix(in srgb,var(--k-zinc-50) 50%,transparent) 1px,transparent 1px);background-size:10% 100%}\n.k-meter[data-tone=\"warning\"] .k-meter-fill{background:var(--k-yamabuki)}\n.k-meter[data-tone=\"critical\"] .k-meter-fill{background:var(--k-danger)}\n.k-meter-scale{display:flex;justify-content:space-between;margin-top:var(--k-space-1);font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3)}\n"},{"path":"components\/meter\/example.html","type":"registry:component","content":"<!-- KATA meter 1.1.0 \u2014 kata-ui.dev\/components\/meter \u2014 requires mold >= 2 -->\n<div style=\"display:grid;gap:var(--k-space-4);max-width:420px;width:100%\">\n  <div style=\"display:grid;gap:var(--k-space-2)\">\n    <div style=\"display:flex;justify-content:space-between;font-size:var(--k-text-sm)\"><span style=\"font-weight:550\">Storage<\/span><span style=\"font-family:var(--k-mono);color:var(--k-ink-2)\">72 \/ 100 GB<\/span><\/div>\n    <div class=\"k-meter\" role=\"meter\" aria-label=\"Storage used\" aria-valuenow=\"72\" aria-valuemin=\"0\" aria-valuemax=\"100\"><div class=\"k-meter-track\"><div class=\"k-meter-fill\" style=\"width:72%\"><\/div><\/div><div class=\"k-meter-scale\"><span>0<\/span><span>25<\/span><span>50<\/span><span>75<\/span><span>100<\/span><\/div><\/div>\n  <\/div>\n  <div style=\"display:grid;gap:var(--k-space-2)\">\n    <div style=\"display:flex;justify-content:space-between;font-size:var(--k-text-sm)\"><span style=\"font-weight:550\">Export queue<\/span><span style=\"font-family:var(--k-mono);color:var(--k-ink-2)\">88%<\/span><\/div>\n    <div class=\"k-meter\" data-tone=\"warning\" role=\"meter\" aria-label=\"Export queue load\" aria-valuenow=\"88\" aria-valuemin=\"0\" aria-valuemax=\"100\"><div class=\"k-meter-track\"><div class=\"k-meter-fill\" style=\"width:88%\"><\/div><\/div><\/div>\n  <\/div>\n  <div style=\"display:grid;gap:var(--k-space-2)\">\n    <div style=\"display:flex;justify-content:space-between;font-size:var(--k-text-sm)\"><span style=\"font-weight:550\">Failed jobs<\/span><span style=\"font-family:var(--k-mono);color:var(--k-ink-2)\">96%<\/span><\/div>\n    <div class=\"k-meter\" data-tone=\"critical\" role=\"meter\" aria-label=\"Failed job ratio\" aria-valuenow=\"96\" aria-valuemin=\"0\" aria-valuemax=\"100\"><div class=\"k-meter-track\"><div class=\"k-meter-fill\" style=\"width:96%\"><\/div><\/div><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For a value that has a limit and a meaning at a glance. Tones: default ink, warning yamabuki, critical red. If there is no limit, it is not a meter \u2014 use Progress for work being done.","accessibility":"role=\"meter\" with aria-valuenow\/min\/max and a label. The visible number next to it carries the same information as the bar."},"audit":{"id":"components\/meter","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"progress","type":"registry:component","title":"Progress","description":"A thin bar that tells the truth: how much is done, in ink or in the one accent.","categories":["Feedback & Status"],"dependencies":[],"files":[{"path":"components\/progress\/progress.css","type":"registry:component","content":"\/* KATA progress 1.1.0 \u2014 kata-ui.dev\/components\/progress \u2014 requires mold >= 2 *\/\n\/* KATA Progress *\/\n.k-progress{height:6px;border-radius:var(--k-radius-full);background:var(--k-track);overflow:hidden}\n.k-progress-bar{height:100%;border-radius:var(--k-radius-full);background:var(--k-ink);transition:width var(--k-dur-slow) var(--k-ease)}\n.k-progress[data-tone=\"accent\"] .k-progress-bar{background:var(--k-accent);color:var(--k-on-accent)}\n"},{"path":"components\/progress\/example.html","type":"registry:component","content":"<!-- KATA progress 1.1.0 \u2014 kata-ui.dev\/components\/progress \u2014 requires mold >= 2 -->\n<div style=\"display:grid;gap:var(--k-space-4);max-width:420px;width:100%\">\n  <div style=\"display:grid;gap:var(--k-space-2)\">\n    <div style=\"display:flex;justify-content:space-between;font-size:var(--k-text-sm)\"><span style=\"font-weight:550\">Uploading footage<\/span><span style=\"font-family:var(--k-mono);color:var(--k-ink-2)\">68%<\/span><\/div>\n    <div class=\"k-progress\" role=\"progressbar\" aria-label=\"Uploading footage\" aria-valuenow=\"68\" aria-valuemin=\"0\" aria-valuemax=\"100\"><div class=\"k-progress-bar\" style=\"width:68%\"><\/div><\/div>\n  <\/div>\n  <div style=\"display:grid;gap:var(--k-space-2)\">\n    <div style=\"display:flex;justify-content:space-between;font-size:var(--k-text-sm)\"><span style=\"font-weight:550\">Verifying files<\/span><span style=\"font-family:var(--k-mono);color:var(--k-ink-2)\">92%<\/span><\/div>\n    <div class=\"k-progress\" data-tone=\"accent\" role=\"progressbar\" aria-label=\"Verifying files\" aria-valuenow=\"92\" aria-valuemin=\"0\" aria-valuemax=\"100\"><div class=\"k-progress-bar\" style=\"width:92%\"><\/div><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Determinate work only \u2014 uploads, exports, steps. The percentage in mono type next to the bar is part of the component.","accessibility":"role=\"progressbar\" with aria-valuenow\/min\/max and an aria-label that repeats the visible task name. Keep the visible percentage in sync with the value. The fill starts at the inline start, so it grows from the right in RTL."},"audit":{"id":"components\/progress","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"result","type":"registry:component","title":"Result","description":"The outcome page as a part: the mark, the verdict and the next action, centered. Success, failure, and the space between.","categories":["Feedback & Status"],"dependencies":["button"],"files":[{"path":"components\/result\/result.css","type":"registry:component","content":"\/* KATA result 1.1.0 \u2014 kata-ui.dev\/components\/result \u2014 requires mold >= 4 *\/\n\/* KATA Result \u2014 a verdict, centered. *\/\n.k-result{font-family:var(--k-font);color:var(--k-ink);text-align:center;max-width:420px;margin:0 auto;padding:var(--k-space-6) var(--k-space-5)}\n.k-result-ic{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto var(--k-space-4)}\n.k-result-ic.ok{background:var(--k-success-bg);color:var(--k-success-ink)}\n.k-result-ic.err{background:var(--k-danger-bg);color:var(--k-danger-ink)}\n.k-result h3{font-size:var(--k-text-lg);font-weight:600;letter-spacing:-.015em}\n.k-result p{margin-top:var(--k-space-2);font-size:var(--k-text-base);line-height:var(--k-lh-loose);color:var(--k-ink-2);letter-spacing:.012em}\n.k-result .acts{margin-top:var(--k-space-4);display:flex;gap:var(--k-space-2);justify-content:center;flex-wrap:wrap}\n"},{"path":"components\/result\/example.html","type":"registry:component","content":"<!-- KATA result 1.1.0 \u2014 kata-ui.dev\/components\/result \u2014 requires mold >= 4 -->\n<div class=\"k-result\">\n  <span class=\"k-result-ic ok\"><svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\"\/><path d=\"m8.5 12.2 2.4 2.4 4.8-5\"\/><\/svg><\/span>\n  <h3>Payment complete<\/h3>\n  <p>\u00a5128,400 was charged to the card on file. The receipt is on its way to the billing address \u2014 reference INV-2041.<\/p>\n  <div class=\"acts\"><button class=\"btn btn-pri btn-md\" type=\"button\">View the invoice<\/button><button class=\"btn btn-ghost btn-md\" type=\"button\">Back to billing<\/button><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For the end of a flow \u2014 paid, sent, deleted, failed. One verdict per page, said in the title; the words under it carry the detail (the reference number, the reason), and the buttons carry the way out. Empty State is for \"nothing here yet\"; Result is for \"this just happened\".","accessibility":"The mark is decoration \u2014 the verdict lives in the heading text, never in the icon alone. After a submitted flow, move focus to the heading so the outcome is the first thing announced."},"audit":{"id":"components\/result","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"skeleton","type":"registry:component","title":"Skeleton","description":"Loading placeholders with the same geometry as the real content, so the page never jumps.","categories":["Feedback & Status"],"dependencies":["avatar"],"files":[{"path":"components\/skeleton\/skeleton.css","type":"registry:component","content":"\/* KATA skeleton 1.1.0 \u2014 kata-ui.dev\/components\/skeleton \u2014 requires mold >= 4 *\/\n\/* KATA Skeleton *\/\n.k-sk{display:block;border-radius:var(--k-radius-sm);background:linear-gradient(90deg,var(--k-line) 25%,var(--k-bg) 50%,var(--k-line) 75%);background-size:200% 100%;animation:k-shimmer calc(1.4s * var(--k-mscale)) ease-in-out infinite}\n.k-sk-circle{border-radius:50%}\n@keyframes k-shimmer{0%{background-position:120% 0}100%{background-position:-80% 0}}\n@media (prefers-reduced-motion: reduce){.k-sk{animation:none}}\n.k-sk:dir(rtl){animation-direction:reverse}\n.k-sk-status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"},{"path":"components\/skeleton\/example.html","type":"registry:component","content":"<!-- KATA skeleton 1.1.0 \u2014 kata-ui.dev\/components\/skeleton \u2014 requires mold >= 4 -->\n<div role=\"status\" style=\"display:grid;gap:var(--k-space-3);max-width:380px;width:100%\">\n  <span class=\"k-sk-status\">Loading profile<\/span>\n  <div style=\"display:grid;gap:var(--k-space-3)\" aria-hidden=\"true\">\n  <div style=\"display:flex;gap:var(--k-space-3);align-items:center\">\n    <span class=\"k-sk k-sk-circle\" style=\"width:40px;height:40px\"><\/span>\n    <div style=\"display:grid;gap:var(--k-space-2);flex:1\"><span class=\"k-sk\" style=\"height:12px;width:46%\"><\/span><span class=\"k-sk\" style=\"height:12px;width:72%\"><\/span><\/div>\n  <\/div>\n  <span class=\"k-sk\" style=\"height:12px\"><\/span>\n  <span class=\"k-sk\" style=\"height:12px;width:84%\"><\/span>\n  <span class=\"k-sk\" style=\"height:64px;border-radius:var(--k-radius-lg)\"><\/span>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Match the skeleton to the layout it replaces \u2014 same widths, same heights. If the wait passes a second, prefer a spinner with a label instead.","accessibility":"The placeholder shapes sit inside an aria-hidden wrapper. The container has role=\"status\" and one visually hidden .k-sk-status label (\"Loading profile\" in the preview) that is read once. The shimmer runs in reverse under dir=\"rtl\" and stops under prefers-reduced-motion."},"audit":{"id":"components\/skeleton","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"spinner","type":"registry:component","title":"Spinner","description":"One ring, one moving edge. Three sizes, tuned to sit inside buttons without shifting the label.","categories":["Feedback & Status"],"dependencies":["button"],"files":[{"path":"components\/spinner\/spinner.css","type":"registry:component","content":"\/* KATA spinner 1.1.0 \u2014 kata-ui.dev\/components\/spinner \u2014 requires mold >= 4 *\/\n\/* KATA Spinner *\/\n.k-spinner{display:inline-block;width:18px;height:18px;border-radius:50%;border:2px solid var(--k-line);border-top-color:var(--k-ink);animation:k-spin calc(.7s * var(--k-mscale)) linear infinite;flex:none}\n.k-spinner[data-size=\"sm\"]{width:14px;height:14px;border-width:2px}\n.k-spinner[data-size=\"lg\"]{width:26px;height:26px;border-width:3px}\n@keyframes k-spin{to{transform:rotate(360deg)}}\n@media (prefers-reduced-motion: reduce){.k-spinner{animation:none}}\n"},{"path":"components\/spinner\/example.html","type":"registry:component","content":"<!-- KATA spinner 1.1.0 \u2014 kata-ui.dev\/components\/spinner \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-5);align-items:center;flex-wrap:wrap\">\n  <span class=\"k-spinner\" data-size=\"sm\" role=\"status\" aria-label=\"Loading\"><\/span>\n  <span class=\"k-spinner\" role=\"status\" aria-label=\"Loading\"><\/span>\n  <span class=\"k-spinner\" data-size=\"lg\" role=\"status\" aria-label=\"Loading\"><\/span>\n  <button type=\"button\" class=\"btn btn-sec btn-md\" disabled><span class=\"k-spinner\" data-size=\"sm\"><\/span> Saving\u2026<\/button>\n<\/div>"}],"meta":{"status":"beta","usage":"For waits under a few seconds. Inside a button, keep the label visible so the action stays named. For longer waits, say what is happening in words.","accessibility":"Give it role=\"status\" and an accessible label (\"Loading\"). Never the only signal \u2014 pair with text when the wait matters."},"audit":{"id":"components\/spinner","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"toast","type":"registry:component","title":"Toast","description":"Slides in at the bottom right and fades after a few seconds \u2014 for saves and sends.","categories":["Feedback & Status"],"dependencies":["button"],"files":[{"path":"components\/toast\/toast.css","type":"registry:component","content":"\/* KATA toast 1.1.0 \u2014 kata-ui.dev\/components\/toast \u2014 requires mold >= 4 *\/\n.k-toast,.toasts{--k-toast-ink:var(--k-bg);--k-toast-sub:var(--k-bg-soft)}\n.toasts{position:fixed;inset-inline-end:var(--k-space-4);bottom:18px;display:flex;flex-direction:column;gap:var(--k-space-2);z-index:99;font-family:var(--k-font)}\n.toast{display:flex;gap:var(--k-space-3);align-items:flex-start;background:var(--k-ink);color:var(--k-toast-ink);border-radius:var(--k-radius-lg);padding:var(--k-space-3) var(--k-space-4);font-size:var(--k-text-base);box-shadow:var(--k-shadow-pop);animation:k-tin var(--k-dur-slow) var(--k-ease-spring);max-width:320px}\n.toast-icon{flex:none;margin-top:var(--k-space-px);color:var(--k-success)}\n.toast small{display:block;color:var(--k-toast-sub);margin-top:var(--k-space-0-5);font-size:var(--k-text-sm);line-height:var(--k-lh-small)}\n.toast[data-closing]{transition:opacity var(--k-dur-slow) var(--k-ease)}\n@keyframes k-tin{from{opacity:0;transform:translateY(10px) scale(.97)}}\n\n@media (prefers-reduced-motion:reduce){.toast{animation:none;transition:none!important}}\n"},{"path":"components\/toast\/toast.js","type":"registry:component","content":"\/* KATA toast 1.1.0 \u2014 kata-ui.dev\/components\/toast \u2014 requires mold >= 4 *\/\n(function () {\n'use strict';\nfunction toastBox(near){\n  const all = [...document.querySelectorAll('[data-toasts]')];\n  if (!all.length) return null;\n  if (!near) return all[0];\n  return all.find(t => near.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING) || all[0];\n}\nfunction toast(title, sub, near){\n  const toasts = toastBox(near);\n  if (!toasts) return;\n  const el = document.createElement('div');\n  el.className = 'toast';\n  \/\/ Text goes in as text, never as markup. The check icon is decorative; the title says the outcome.\n  el.innerHTML = '<svg class=\"toast-icon\" width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M4 12.5l5 5L20 6.5\"\/><\/svg><span><b><\/b><\/span>';\n  el.querySelector('b').textContent = title;\n  if (sub) { const small = document.createElement('small'); small.textContent = sub; el.querySelector('span').append(small); }\n  toasts.appendChild(el);\n  setTimeout(() => {\n    el.setAttribute('data-closing', '');\n    \/\/ Commit the visible state before starting the exit transition.\n    void el.offsetWidth;\n    el.style.opacity = '0';\n    const style = getComputedStyle(el);\n    const milliseconds = value => value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000));\n    const duration = Math.max(...milliseconds(style.transitionDuration));\n    const delay = Math.max(...milliseconds(style.transitionDelay));\n    if (duration === 0) { el.remove(); return; }\n    const timer = setTimeout(() => el.remove(), duration + Math.max(0, delay) + 50);\n    const finish = event => {\n      if (event.target !== el || event.propertyName !== 'opacity') return;\n      clearTimeout(timer);\n      el.remove();\n    };\n    el.addEventListener('transitionend', finish);\n    el.addEventListener('transitioncancel', finish);\n  }, 4000);\n}\n\/\/ Each stack is a polite status live region before any toast is added, so screen readers announce new toasts.\ndocument.querySelectorAll('[data-toasts]').forEach(box => {\n  if (!box.hasAttribute('role')) box.setAttribute('role', 'status');\n  if (!box.hasAttribute('aria-live')) box.setAttribute('aria-live', 'polite');\n});\ndocument.querySelectorAll('[data-toast-demo]').forEach(btn => {\n  if (btn.dataset.kataReady) return;\n  btn.dataset.kataReady = 'true';\n  btn.addEventListener('click', () => toast('Saved', 'Your draft is synced automatically.', btn));\n});\n\n})();\n"},{"path":"components\/toast\/example.html","type":"registry:component","content":"<!-- KATA toast 1.1.0 \u2014 kata-ui.dev\/components\/toast \u2014 requires mold >= 4 -->\n<button type=\"button\" class=\"btn btn-sec btn-md\" data-toast-demo>Show toast<\/button>\n<div class=\"toasts k-toast\" data-toasts><\/div>"}],"meta":{"status":"beta","usage":"Confirm completed actions. Never put errors that need action into a toast.","accessibility":"Each [data-toasts] stack is a polite status live region (role=\"status\", aria-live=\"polite\") set before any toast is added, so new toasts are announced without moving focus. The check icon is decorative (aria-hidden); the title states the outcome. Title and detail are inserted as text, not markup. Toasts leave after 4 seconds, at once at zero motion, so they must only confirm actions that are visible elsewhere; never put errors that need action into a toast. Not implemented: pausing on hover or focus and a dismiss button. The script exposes no public toast() API; the demo button triggers it. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/toast","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"aspect-ratio","type":"registry:component","title":"Aspect Ratio","description":"A box that holds its shape \u2014 16\/9 for video, 4\/3 for photos, 1\/1 for avatars \u2014 whatever fills it.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/aspect-ratio\/aspect-ratio.css","type":"registry:component","content":"\/* KATA aspect-ratio 1.1.0 \u2014 kata-ui.dev\/components\/aspect-ratio \u2014 requires mold >= 2 *\/\n.k-ar{position:relative;border-radius:var(--k-radius-lg);overflow:hidden;background:var(--k-bg-soft);border:1px solid var(--k-line);font-family:var(--k-font);color:var(--k-ink-3)}\n.k-ar[data-r=\"16\/9\"]{aspect-ratio:16\/9}\n.k-ar[data-r=\"4\/3\"]{aspect-ratio:4\/3}\n.k-ar[data-r=\"1\/1\"]{aspect-ratio:1\/1}\n.k-ar .in{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:var(--k-space-1);font-size:var(--k-text-sm);font-weight:550}\n"},{"path":"components\/aspect-ratio\/example.html","type":"registry:component","content":"<!-- KATA aspect-ratio 1.1.0 \u2014 kata-ui.dev\/components\/aspect-ratio \u2014 requires mold >= 2 -->\n<div style=\"display:grid;grid-template-columns:1.35fr 1fr 0.85fr;gap:var(--k-space-2);max-width:520px;width:100%;align-items:start\">\n  <div class=\"k-ar\" data-r=\"16\/9\"><div class=\"in\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><circle cx=\"9\" cy=\"10\" r=\"1.6\"\/><path d=\"m21 15-4.5-4.5L6 21\"\/><\/svg><span style=\"white-space:nowrap\">16\/9 \u2014 Video<\/span><\/div><\/div>\n  <div class=\"k-ar\" data-r=\"4\/3\"><div class=\"in\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><circle cx=\"9\" cy=\"10\" r=\"1.6\"\/><path d=\"m21 15-4.5-4.5L6 21\"\/><\/svg><span style=\"white-space:nowrap\">4\/3 \u2014 Photo<\/span><\/div><\/div>\n  <div class=\"k-ar\" data-r=\"1\/1\"><div class=\"in\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><circle cx=\"9\" cy=\"10\" r=\"1.6\"\/><path d=\"m21 15-4.5-4.5L6 21\"\/><\/svg><span style=\"white-space:nowrap\">1\/1 \u2014 Avatar<\/span><\/div><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For media slots whose content arrives late or varies: embeds, thumbnails, covers. The layout never jumps because the shape was reserved first.","accessibility":"Pure CSS \u2014 the aspect-ratio property does the work, so there is nothing to announce and nothing to break. Put the alt text on the media inside, as usual."},"audit":{"id":"components\/aspect-ratio","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"avatar","type":"registry:component","title":"Avatar","description":"Initials first, photo when there is one. Three sizes, a status dot, and a stacking group.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/avatar\/avatar.css","type":"registry:component","content":"\/* KATA avatar 1.1.0 \u2014 kata-ui.dev\/components\/avatar \u2014 requires mold >= 4 *\/\n\/* KATA Avatar *\/\n.k-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--k-zinc-200);color:var(--k-zinc-600);font-size:var(--k-text-xs);font-weight:600;letter-spacing:.02em;flex:none;user-select:none}\n\/* Clip the photo, not the avatar: overflow:hidden on the circle cut the status dot in half. *\/\n.k-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}\n.k-avatar[data-size=\"sm\"]{width:24px;height:24px;font-size:var(--k-text-xs)}\n.k-avatar[data-size=\"lg\"]{width:40px;height:40px;font-size:var(--k-text-md)}\n.k-avatar[data-status]::after{content:\"\";position:absolute;inset-inline-end:0;bottom:0;width:9px;height:9px;border-radius:50%;background:var(--k-success);border:2px solid var(--k-bg)}\n.k-avatars{display:inline-flex}\n.k-avatars .k-avatar{border:2px solid var(--k-bg)}\n.k-avatars .k-avatar + .k-avatar{margin-inline-start:calc(var(--k-space-2) * -1)}\n"},{"path":"components\/avatar\/example.html","type":"registry:component","content":"<!-- KATA avatar 1.1.0 \u2014 kata-ui.dev\/components\/avatar \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-5);align-items:center;flex-wrap:wrap\">\n  <div style=\"display:flex;gap:var(--k-space-2);align-items:center\">\n    <span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">AM<\/span>\n    <span class=\"k-avatar\" aria-hidden=\"true\">AM<\/span>\n    <span class=\"k-avatar\" data-size=\"lg\" aria-hidden=\"true\">AM<\/span>\n    <span class=\"k-avatar\" data-size=\"lg\" data-status role=\"img\" aria-label=\"Aki Morita, online\">AM<\/span>\n  <\/div>\n  <span class=\"k-avatars\" role=\"img\" aria-label=\"Ren A., Mio T., Jun O. and 3 more\">\n    <span class=\"k-avatar\">RA<\/span><span class=\"k-avatar\">MT<\/span><span class=\"k-avatar\">JO<\/span><span class=\"k-avatar\">+3<\/span>\n  <\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"Initials are the default \u2014 they never 404. Use the group for teams; cap it at 4 faces plus a count chip.","accessibility":"Decorative avatars (initials next to a visible name) are aria-hidden; an avatar that stands for a person on its own is role=\"img\" with the name in aria-label (a bare aria-label on a span is not allowed for generic elements). A stack is one role=\"img\" with a summary label. The status dot sits at the inline end (left in RTL); its state is in the label, not the color. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/avatar","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"bar-chart","type":"registry:component","title":"Bar Chart","description":"Columns for comparing a handful of values \u2014 the chart people read correctly at a glance.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/bar-chart\/bar-chart.css","type":"registry:component","content":"\/* KATA bar-chart 1.1.0 \u2014 kata-ui.dev\/components\/bar-chart \u2014 requires mold >= 4 *\/\n.k-chart{font-family:var(--k-font);text-align:start;margin:0}\n.k-chart figcaption{display:flex;align-items:baseline;justify-content:space-between;font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-3)}\n.k-chart figcaption span{font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink-3)}\n.k-bars{display:flex;gap:var(--k-space-2);align-items:flex-end;height:168px;border-bottom:2px solid var(--k-line);padding:0 var(--k-space-0-5)}\n.k-bar{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:var(--k-space-1)}\n.k-bar i{display:block;width:100%;max-width:36px;background:var(--k-accent);border-radius:var(--k-radius-sm) var(--k-radius-sm) 0 0;transform-origin:bottom;color:var(--k-on-accent)}\n.k-bar.hot i{background:var(--k-ink)}\n.k-bar .v{font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-bar.hot .v{color:var(--k-ink);font-weight:600}\n.k-bar-l{display:flex;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-0-5) 0}\n.k-bar-l span{flex:1;text-align:center;font-size:var(--k-text-xs);color:var(--k-ink-3)}\n@keyframes k-rise{from{transform:scaleY(0)}to{transform:scaleY(1)}}\n@media (prefers-reduced-motion:reduce){.k-bar i{animation:none}}\n"},{"path":"components\/bar-chart\/example.html","type":"registry:component","content":"<!-- KATA bar-chart 1.1.0 \u2014 kata-ui.dev\/components\/bar-chart \u2014 requires mold >= 4 -->\n<figure class=\"k-chart\" role=\"img\" aria-label=\"Weekly signups rose over eight weeks, peaking at 100 in week 8\" style=\"max-width:430px\">\n  <figcaption>Weekly signups <span>Last 8 weeks<\/span><\/figcaption>\n  <div class=\"k-bars\"><div class=\"k-bar\"><span class=\"v\">42<\/span><i style=\"height:42%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">68<\/span><i style=\"height:68%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">54<\/span><i style=\"height:54%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">81<\/span><i style=\"height:81%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">63<\/span><i style=\"height:63%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">92<\/span><i style=\"height:92%\"><\/i><\/div><div class=\"k-bar\"><span class=\"v\">74<\/span><i style=\"height:74%\"><\/i><\/div><div class=\"k-bar hot\"><span class=\"v\">100<\/span><i style=\"height:100%\"><\/i><\/div><\/div>\n  <div class=\"k-bar-l\"><span>W1<\/span><span>W2<\/span><span>W3<\/span><span>W4<\/span><span>W5<\/span><span>W6<\/span><span>W7<\/span><span>W8<\/span><\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"For comparing categories: weeks, plans, channels. Keep it under a dozen bars, label every value, and highlight at most one bar \u2014 the one the reader should remember.","accessibility":"A chart is a picture of numbers: give the figure role=\"img\" and an aria-label that states the conclusion (\"Signups rose from 22 to 71 over the year\"), and keep the data available as a table nearby."},"audit":{"id":"components\/bar-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"candlestick-chart","type":"registry:component","title":"Candlestick Chart","description":"Open, high, low, close as cast candles \u2014 price action for a session at a glance.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/candlestick-chart\/candlestick-chart.css","type":"registry:component","content":"\/* KATA candlestick-chart 1.1.0 \u2014 kata-ui.dev\/components\/candlestick-chart \u2014 requires mold >= 4 *\/\n\/* KATA Candlestick Chart \u2014 precomputed OHLC candles on the line chart's frame *\/\n.k-candle{font-family:var(--k-font);text-align:start;margin:0}\n.k-candle figcaption{display:flex;align-items:baseline;justify-content:space-between;font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-3)}\n.k-candle figcaption span{font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink-3)}\n.k-candle svg{width:100%;height:auto;display:block}\n.k-candle .x{display:flex;justify-content:space-between;font-size:var(--k-text-xs);color:var(--k-ink-3);margin-top:var(--k-space-2);padding:0 var(--k-space-px)}\n"},{"path":"components\/candlestick-chart\/example.html","type":"registry:component","content":"<!-- KATA candlestick-chart 1.1.0 \u2014 kata-ui.dev\/components\/candlestick-chart \u2014 requires mold >= 4 -->\n<figure class=\"k-candle\" role=\"img\" aria-label=\"Candlestick chart: ACME rose over the last 14 sessions with more up days than down\" style=\"max-width:430px\"><figcaption>ACME Corp <span>Daily closes, last 14 sessions<\/span><\/figcaption><svg viewBox=\"0 0 560 190\" aria-hidden=\"true\"><line x1=\"0\" y1=\"30\" x2=\"560\" y2=\"30\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"79\" x2=\"560\" y2=\"79\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"128\" x2=\"560\" y2=\"128\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"178\" x2=\"560\" y2=\"178\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"24\" y1=\"152.3\" x2=\"24\" y2=\"173.1\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"14\" y=\"157.5\" width=\"20\" height=\"9.900000000000006\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"64\" y1=\"133.7\" x2=\"64\" y2=\"163.9\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"54\" y=\"139.1\" width=\"20\" height=\"18.400000000000006\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"104\" y1=\"135.2\" x2=\"104\" y2=\"152.0\" style=\"stroke:var(--k-danger)\" stroke-width=\"2\"\/><rect x=\"94\" y=\"139.1\" width=\"20\" height=\"6.5\" rx=\"2\" style=\"fill:var(--k-danger)\"\/><line x1=\"144\" y1=\"128.7\" x2=\"144\" y2=\"147.3\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"134\" y=\"134.9\" width=\"20\" height=\"10.699999999999989\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"184\" y1=\"126.8\" x2=\"184\" y2=\"139.1\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"174\" y=\"129.5\" width=\"20\" height=\"5.400000000000006\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"224\" y1=\"119.6\" x2=\"224\" y2=\"132.0\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"214\" y=\"121.1\" width=\"20\" height=\"8.400000000000006\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"264\" y1=\"114.1\" x2=\"264\" y2=\"126.5\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"254\" y=\"120.6\" width=\"20\" height=\"2.4\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"304\" y1=\"114.9\" x2=\"304\" y2=\"125.3\" style=\"stroke:var(--k-danger)\" stroke-width=\"2\"\/><rect x=\"294\" y=\"120.6\" width=\"20\" height=\"2.700000000000003\" rx=\"2\" style=\"fill:var(--k-danger)\"\/><line x1=\"344\" y1=\"111.7\" x2=\"344\" y2=\"124.5\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"334\" y=\"113.7\" width=\"20\" height=\"9.599999999999994\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"384\" y1=\"94.8\" x2=\"384\" y2=\"116.1\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"374\" y=\"97.1\" width=\"20\" height=\"16.60000000000001\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"424\" y1=\"71.6\" x2=\"424\" y2=\"100.0\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"414\" y=\"77.5\" width=\"20\" height=\"19.599999999999994\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"464\" y1=\"54.3\" x2=\"464\" y2=\"82.7\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"454\" y=\"58.7\" width=\"20\" height=\"18.799999999999997\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><line x1=\"504\" y1=\"52.0\" x2=\"504\" y2=\"65.4\" style=\"stroke:var(--k-danger)\" stroke-width=\"2\"\/><rect x=\"494\" y=\"58.7\" width=\"20\" height=\"2.4\" rx=\"2\" style=\"fill:var(--k-danger)\"\/><line x1=\"544\" y1=\"34.9\" x2=\"544\" y2=\"63.2\" style=\"stroke:var(--k-accent)\" stroke-width=\"2\"\/><rect x=\"534\" y=\"41.1\" width=\"20\" height=\"19.1\" rx=\"2\" style=\"fill:var(--k-accent)\"\/><\/svg><div class=\"x\"><span>Sep<\/span><span>Oct<\/span><\/div><\/figure>"}],"meta":{"status":"beta","usage":"For price series where the range matters as much as the close: markets, exchange rates, any OHLC data. Up sessions take the accent, down sessions the danger color; the wick is the full range, the body is open to close.","accessibility":"Nobody can read fourteen candles aloud, so the figure label states the verdict \u2014 direction, period and range \u2014 and the underlying OHLC table belongs next to the chart for anyone who needs exact values."},"audit":{"id":"components\/candlestick-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"card","type":"registry:component","title":"Card","description":"The universal container: a hairline box with a header, a body and a footer that agree with each other.","categories":["Display & Media"],"dependencies":["badge","button"],"files":[{"path":"components\/card\/card.css","type":"registry:component","content":"\/* KATA card 1.1.0 \u2014 kata-ui.dev\/components\/card \u2014 requires mold >= 4 *\/\n.k-card{border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);font-family:var(--k-font);color:var(--k-ink);overflow:hidden;text-align:start}\n.k-card-h{display:flex;align-items:flex-start;gap:var(--k-space-3);padding:var(--k-space-4) var(--k-space-4) 0}\n.k-card-h h3{font-size:var(--k-text-lead);font-weight:600;letter-spacing:-.01em}\n.k-card-h p{margin-top:var(--k-space-1);font-size:var(--k-text-sm);color:var(--k-ink-3);line-height:var(--k-lh-small);letter-spacing:.01em}\n.k-card-h .sp{margin-inline-start:auto;flex:none}\n.k-card-b{padding:var(--k-space-3) var(--k-space-4) var(--k-space-4);font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.012em}\n.k-card-f{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-4);border-top:1px solid var(--k-line);background:var(--k-bg-soft);font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-card-f .sp{margin-inline-start:auto;display:flex;gap:var(--k-space-2)}\n\/* Optional title and text for a body without a header. *\/\n.k-card-t{font-size:var(--k-text-lead)}\n.k-card-p{font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-card-t + .k-card-p{margin-top:var(--k-space-1)}\n"},{"path":"components\/card\/example.html","type":"registry:component","content":"<!-- KATA card 1.1.0 \u2014 kata-ui.dev\/components\/card \u2014 requires mold >= 4 -->\n<div class=\"k-card\" style=\"max-width:430px\">\n  <div class=\"k-card-h\">\n    <div><h3>Usage this month<\/h3><p>Across all projects in this workspace.<\/p><\/div>\n    <span class=\"sp\"><span class=\"badge asagi\">On track<\/span><\/span>\n  <\/div>\n  <div class=\"k-card-b\">Build minutes are at 62% with nine days left. The deploy queue cleared twice as fast since the cache change, and nothing is waiting on review.<\/div>\n  <div class=\"k-card-f\">Updated 2 hours ago<span class=\"sp\"><button type=\"button\" class=\"btn btn-sec btn-sm\">Details<\/button><button type=\"button\" class=\"btn btn-pri btn-sm\">Open report<\/button><\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The default box for grouped content. If a thing has a title, a body and actions, it is a card; if it only has a body, use a plain section. A body without a header can use .k-card-t for its title and .k-card-p for its text.","accessibility":"A card is a region, not a landmark: give the page real headings and let the card carry an aria-label only when it needs a name. Controls inside keep their own names (the combo names its progress bars). A whole-card link shows the shared focus outline outside its box. Footer text (ink-3 on bg-soft) measures 4.51:1 light and 4.71:1 dark; do not lighten it."},"audit":{"id":"components\/card","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"carousel","type":"registry:component","title":"Carousel","description":"A row of panels that scrolls like it means it \u2014 snap points, real buttons, no autoplay.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/carousel\/carousel.css","type":"registry:component","content":"\/* KATA carousel 1.1.0 \u2014 kata-ui.dev\/components\/carousel \u2014 requires mold >= 4 *\/\n.k-car{font-family:var(--k-font);text-align:start}\n.k-car-track{display:flex;gap:var(--k-space-3);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:var(--k-space-1)}\n.k-car-track::-webkit-scrollbar{display:none}\n.k-car-slide{flex:0 0 78%;scroll-snap-align:start;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);padding:var(--k-space-4);min-height:118px}\n.k-car-slide h4{font-size:var(--k-text-md);font-weight:600;color:var(--k-ink)}\n.k-car-slide p{margin-top:var(--k-space-1);font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-car-ui{display:flex;align-items:center;gap:var(--k-space-2);margin-top:var(--k-space-3)}\n.k-car-btn{width:32px;height:32px;border-radius:50%;border:1px solid var(--k-line);background:var(--k-bg);color:var(--k-ink);display:grid;place-items:center;cursor:pointer}\n.k-car-btn:hover{background:var(--k-bg-soft)}\n.k-car-dots{display:flex;gap:var(--k-space-1);margin-inline-start:auto}\n.k-car-dots button{width:7px;height:7px;border-radius:var(--k-radius-full);border:none;background:var(--k-line);cursor:pointer;padding:0;transition:width var(--k-dur-base) var(--k-ease),background var(--k-dur-base)}\n.k-car-dots button[aria-current=\"true\"]{width:20px;background:var(--k-ink)}\n\n.k-car-track:focus-visible,.k-car-btn:focus-visible,.k-car-dots button:focus-visible{outline:0;box-shadow:var(--k-ring)}\n\/* Arrow icons point toward the slide they reveal, so they mirror in RTL. *\/\n.k-car:dir(rtl) .k-car-btn svg{transform:scaleX(-1)}\n.k-car-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"components\/carousel\/carousel.js","type":"registry:component","content":"\/* KATA carousel 1.1.0 \u2014 kata-ui.dev\/components\/carousel \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-car-track]').forEach(track => {\n    if (track.dataset.kataReady) return;\n    const root = track.closest('.k-car') || track.parentElement;\n    const slides = [...track.children];\n    if (!root || !slides.length) return;\n    track.dataset.kataReady = 'true';\n    identify(root, 'kata-carousel'); identify(track, 'kata-carousel-track');\n    const prev = root.querySelector('[data-car-prev]');\n    const next = root.querySelector('[data-car-next]');\n    const dots = [...root.querySelectorAll('[data-car-dot]')];\n    \/\/ A group, not a region landmark: pasted copies would repeat the same landmark name.\n    if (!root.hasAttribute('role')) root.setAttribute('role', 'group');\n    if (!root.hasAttribute('aria-roledescription')) root.setAttribute('aria-roledescription', 'carousel');\n    if (!root.hasAttribute('aria-label') && !root.hasAttribute('aria-labelledby')) root.setAttribute('aria-label', 'Carousel');\n    slides.forEach((slide, i) => {\n      identify(slide, 'kata-carousel-slide');\n      slide.setAttribute('role', 'group'); slide.setAttribute('aria-roledescription', 'slide');\n      if (!slide.hasAttribute('aria-label')) slide.setAttribute('aria-label', (i + 1) + ' of ' + slides.length);\n    });\n    \/\/ The scroll container is a tab stop so keyboard users can move it directly.\n    if (!track.hasAttribute('tabindex')) track.tabIndex = 0;\n    if (!track.hasAttribute('aria-label')) track.setAttribute('aria-label', 'Slides');\n    [prev, next].forEach(button => { if (button) button.setAttribute('aria-controls', track.id); });\n    dots.forEach((dot, i) => {\n      dot.setAttribute('aria-controls', track.id);\n      if (!dot.hasAttribute('aria-label')) dot.setAttribute('aria-label', 'Go to slide ' + (i + 1));\n    });\n    const status = document.createElement('span');\n    status.className = 'k-car-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-carousel-status'); root.append(status);\n\n    const rtl = () => getComputedStyle(track).direction === 'rtl';\n    \/\/ Distance from the track's inline-start edge, so RTL scrolling uses the same math.\n    function offset(slide) {\n      const a = slide.getBoundingClientRect(), b = track.getBoundingClientRect();\n      return rtl() ? b.right - a.right : a.left - b.left;\n    }\n    function current() {\n      let best = 0, distance = Infinity;\n      slides.forEach((slide, i) => { const d = Math.abs(offset(slide)); if (d < distance) { distance = d; best = i; } });\n      return best;\n    }\n    function still() {\n      const scale = parseFloat(getComputedStyle(root).getPropertyValue('--k-mscale'));\n      return matchMedia('(prefers-reduced-motion: reduce)').matches || scale === 0;\n    }\n    function go(index) {\n      const target = slides[Math.max(0, Math.min(slides.length - 1, index))];\n      const delta = offset(target);\n      track.scrollBy({ left: rtl() ? -delta : delta, behavior: still() ? 'auto' : 'smooth' });\n    }\n    let shown = -1, announced = -1, timer = 0;\n    function sync() {\n      const index = current();\n      if (index === shown) return;\n      shown = index;\n      dots.forEach((dot, i) => dot.setAttribute('aria-current', i === index ? 'true' : 'false'));\n    }\n    \/\/ Announce once the scroll settles, so a smooth jump does not report the slides it passes.\n    function settle() {\n      sync();\n      if (shown === announced) return;\n      announced = shown;\n      status.textContent = 'Slide ' + (shown + 1) + ' of ' + slides.length;\n      root.dispatchEvent(new CustomEvent('kata-carousel-change', { bubbles: true, detail: { index: shown, count: slides.length } }));\n    }\n    const native = 'onscrollend' in track;\n\n    if (prev) prev.addEventListener('click', () => go(current() - 1));\n    if (next) next.addEventListener('click', () => go(current() + 1));\n    dots.forEach((dot, i) => dot.addEventListener('click', () => go(i)));\n    track.addEventListener('keydown', event => {\n      if (event.target !== track || event.isComposing || event.keyCode === 229) return;\n      let index = null;\n      if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {\n        \/\/ Horizontal arrows follow the visual direction; in RTL, Left moves forward.\n        index = current() + (((event.key === 'ArrowRight') !== rtl()) ? 1 : -1);\n      } else if (event.key === 'Home') index = 0;\n      else if (event.key === 'End') index = slides.length - 1;\n      if (index === null) return;\n      event.preventDefault(); go(index);\n    });\n    track.addEventListener('scroll', () => {\n      sync();\n      if (!native) { clearTimeout(timer); timer = setTimeout(settle, 150); }\n    }, { passive: true });\n    if (native) track.addEventListener('scrollend', settle);\n    sync(); announced = shown;\n  });\n})();\n"},{"path":"components\/carousel\/example.html","type":"registry:component","content":"<!-- KATA carousel 1.1.0 \u2014 kata-ui.dev\/components\/carousel \u2014 requires mold >= 4 -->\n<div class=\"k-car\" role=\"group\" aria-roledescription=\"carousel\" aria-label=\"Highlights\" style=\"max-width:430px\">\n  <div class=\"k-car-track\" data-car-track>\n    <div class=\"k-car-slide\"><h4>Cast from one mold<\/h4><p>Every part shares tokens, heights and motion, so a page assembled from strangers still reads as one product.<\/p><\/div><div class=\"k-car-slide\"><h4>Zero dependencies<\/h4><p>No framework, no build step, no runtime. Paste the part, link the tokens, ship it.<\/p><\/div><div class=\"k-car-slide\"><h4>The core stays vermilion<\/h4><p>One signature, used once per state: the center of whatever is on. Nothing else wears it.<\/p><\/div>\n  <\/div>\n  <div class=\"k-car-ui\">\n    <button class=\"k-car-btn\" type=\"button\" data-car-prev aria-label=\"Previous slide\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M20 12H4m6-6-6 6 6 6\"\/><\/svg><\/button>\n    <button class=\"k-car-btn\" type=\"button\" data-car-next aria-label=\"Next slide\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M4 12h16m-6-6 6 6-6 6\"\/><\/svg><\/button>\n    <div class=\"k-car-dots\"><button type=\"button\" data-car-dot aria-label=\"Go to slide 1\" aria-current=\"true\"><\/button><button type=\"button\" data-car-dot aria-label=\"Go to slide 2\" aria-current=\"false\"><\/button><button type=\"button\" data-car-dot aria-label=\"Go to slide 3\" aria-current=\"false\"><\/button><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For galleries and card rails on narrow screens. On wide screens it is a grid that happens to scroll; design for that first. There is no autoplay, so there is nothing to pause. Listen for the visible slide:\n\n```js\ndocument.addEventListener('kata-carousel-change', event => {\n  console.log(event.detail.index, event.detail.count);\n});\n```","accessibility":"Built on native scroll, so touch and trackpads work. The root is a labelled group with the carousel role description (not a landmark, so pasted copies do not repeat landmark names); each slide is a group named 'n of N'. The track is a tab stop: horizontal arrows follow visual direction (in RTL, Left moves forward), and Home and End jump to the ends. Previous and Next are named buttons whose icons mirror in RTL, and dots are buttons labelled by position. A status region announces 'Slide n of N' after a change. Smooth scrolling turns off with reduced motion or a zero motion multiplier. Screen-reader output is not yet verified by hand."},"audit":{"id":"components\/carousel","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"chip","type":"registry:component","title":"Chip","description":"A small labeled thing that can be removed, selected, or both \u2014 tags, filters, people.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/chip\/chip.css","type":"registry:component","content":"\/* KATA chip 1.1.0 \u2014 kata-ui.dev\/components\/chip \u2014 requires mold >= 2 *\/\n.k-chip{display:inline-flex;align-items:center;gap:var(--k-space-2);height:29px;padding:0 var(--k-space-2) 0 var(--k-space-3);border:1px solid var(--k-line);border-radius:var(--k-radius-full);background:var(--k-bg);font-family:var(--k-font);font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink)}\n.k-chip[data-on]{background:var(--k-ink);border-color:var(--k-ink);color:var(--k-bg)}\n.k-chip-x{width:19px;height:19px;border-radius:50%;border:none;background:var(--k-bg-soft);color:var(--k-ink-2);display:grid;place-items:center;cursor:pointer;padding:0}\n.k-chip[data-on] .k-chip-x{background:color-mix(in srgb,var(--k-bg) 16%,transparent);color:var(--k-bg)}\n.k-chip-x:hover{color:var(--k-danger-ink)}\n.k-chips{display:flex;flex-wrap:wrap;gap:var(--k-space-2)}\n\/* On a selected (ink) chip the ink focus ring would vanish; use the page color. *\/\n.k-chip[data-on] .k-chip-x:focus-visible{outline-color:var(--k-bg)}\n"},{"path":"components\/chip\/chip.js","type":"registry:component","content":"\/* KATA chip 1.1.0 \u2014 kata-ui.dev\/components\/chip \u2014 requires mold >= 2 *\/\ndocument.querySelectorAll('.k-chip-x').forEach(btn => {\n  btn.addEventListener('click', () => btn.closest('.k-chip').remove());\n});\n"},{"path":"components\/chip\/example.html","type":"registry:component","content":"<!-- KATA chip 1.1.0 \u2014 kata-ui.dev\/components\/chip \u2014 requires mold >= 2 -->\n<div class=\"k-chips\" style=\"max-width:430px\">\n  <span class=\"k-chip\" data-on>Design<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Design\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n  <span class=\"k-chip\">Vanilla<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Vanilla\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n  <span class=\"k-chip\">Accessibility<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Accessibility\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n  <span class=\"k-chip\">Motion<button class=\"k-chip-x\" type=\"button\" aria-label=\"Remove tag Motion\"><svg width=\"11\" height=\"11\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"\/><\/svg><\/button><\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"For tag sets and active filters. Chips state what is in play and offer the way out (the \u00d7); they are not buttons for primary actions.","accessibility":"The remove control is a real button with the chip name in its label (\"Remove tag Design\"), so removing never depends on sight."},"audit":{"id":"components\/chip","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"data-table","type":"registry:component","title":"Data Table","description":"The table with its working clothes on: sortable columns, selectable rows, and a footer that counts the rows shown.","categories":["Display & Media"],"dependencies":["badge","button"],"files":[{"path":"components\/data-table\/data-table.css","type":"registry:component","content":"\/* KATA data-table 1.1.0 \u2014 kata-ui.dev\/components\/data-table \u2014 requires mold >= 4 *\/\n.k-dt{border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);font-family:var(--k-font);overflow:hidden;text-align:start;color:var(--k-ink)}\n\/* Narrow screens: the table scrolls inside a named, focusable region; .k-dt keeps overflow:hidden for its corners. *\/\n.k-dt-scroll{overflow-x:auto}\n\/* Inset ring: .k-dt clips anything drawn outside the scroller. *\/\n.k-dt-scroll:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n.k-dt-t{width:100%;border-collapse:collapse;font-size:var(--k-text-base)}\n.k-dt-t th{font-size:var(--k-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);font-weight:600;text-align:start;padding:var(--k-space-3) var(--k-space-3);border-block-end:1px solid var(--k-line);background:var(--k-bg-soft);white-space:nowrap}\n.k-dt-t td{padding:var(--k-space-3) var(--k-space-3);border-block-end:1px solid var(--k-line);vertical-align:middle}\n.k-dt-t tbody tr:hover{background:var(--k-bg-soft)}\n.k-dt-t tbody tr:last-child td{border-block-end:none}\n.k-dt-t .num{text-align:end;font-variant-numeric:tabular-nums}\n.k-dt-t th.num{text-align:end}\n.k-dt-sort{display:inline-flex;align-items:center;gap:var(--k-space-1);border:none;background:none;font:inherit;color:inherit;cursor:pointer;padding:0;text-transform:inherit;letter-spacing:inherit}\n.k-dt-sort .arr{display:grid;place-items:center;opacity:.35;transition:transform var(--k-dur-fast) var(--k-ease),opacity var(--k-dur-fast)}\n.k-dt-sort[data-dir=\"asc\"] .arr{opacity:1;transform:rotate(180deg)}\n.k-dt-sort[data-dir=\"desc\"] .arr{opacity:1}\n.k-dt input[type=\"checkbox\"]{accent-color:var(--k-accent);width:15px;height:15px;cursor:pointer;vertical-align:middle}\n.k-dt-f{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-3);border-block-start:1px solid var(--k-line);font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-dt-f .pg{margin-inline-start:auto;display:flex;gap:var(--k-space-2)}\n\n.k-dt-sort:focus-visible,.k-dt input:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.k-dt-status,.k-dt-caption{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"components\/data-table\/data-table.js","type":"registry:component","content":"\/* KATA data-table 1.1.0 \u2014 kata-ui.dev\/components\/data-table \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-dt]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const table = root.querySelector('table'), body = table?.tBodies[0]; if (!body) return;\n    root.dataset.kataReady = 'true'; identify(root, 'kata-data-table'); identify(table, 'kata-data-grid');\n    if (!table.caption && !table.hasAttribute('aria-labelledby') && !table.hasAttribute('aria-label')) table.setAttribute('aria-label', 'Data table');\n    const status = document.createElement('span'); status.className = 'k-dt-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-data-status'); root.append(status);\n    const sorters = [...table.querySelectorAll('[data-sort]')];\n    sorters.forEach(button => {\n      identify(button, 'kata-data-sort'); button.setAttribute('aria-controls', table.id);\n      button.addEventListener('click', () => {\n        const header = button.closest('th'), column = header.cellIndex;\n        const direction = button.dataset.dir === 'asc' ? 'desc' : 'asc';\n        sorters.forEach(other => {\n          other.dataset.dir = ''; other.closest('th').setAttribute('aria-sort', 'none');\n        });\n        button.dataset.dir = direction;\n        const aria = direction === 'asc' ? 'ascending' : 'descending';\n        \/\/ aria-sort belongs on the column header, not its native button.\n        header.setAttribute('aria-sort', aria); button.removeAttribute('aria-sort');\n        const rows = [...body.rows];\n        rows.sort((a, b) => {\n          const x = a.cells[column].dataset.v ?? a.cells[column].textContent.trim();\n          const y = b.cells[column].dataset.v ?? b.cells[column].textContent.trim();\n          const order = button.dataset.sort === 'num' ? Number(x) - Number(y) : String(x).localeCompare(String(y));\n          return direction === 'asc' ? order : -order;\n        });\n        rows.forEach(row => body.append(row)); status.textContent = button.textContent.trim() + ' sorted ' + aria + '.';\n        root.dispatchEvent(new CustomEvent('kata-data-table-sort', { bubbles: true, detail: { column, direction } }));\n      });\n    });\n    const all = table.querySelector('thead input[type=\"checkbox\"]');\n    const selected = () => [...body.querySelectorAll('input[type=\"checkbox\"]:checked')];\n    function selection() {\n      const boxes = [...body.querySelectorAll('input[type=\"checkbox\"]')];\n      if (all) { all.checked = boxes.length > 0 && boxes.every(box => box.checked); all.indeterminate = selected().length > 0 && !all.checked; }\n      const count = selected().length;\n      status.textContent = count + (count === 1 ? ' row selected.' : ' rows selected.');\n    }\n    table.querySelectorAll('input[type=\"checkbox\"]').forEach((input, index) => {\n      identify(input, 'kata-data-select');\n      if (!input.hasAttribute('aria-label')) input.setAttribute('aria-label', input === all ? 'Select all rows' : 'Select row ' + index);\n      input.addEventListener('change', () => {\n        if (input === all) body.querySelectorAll('input[type=\"checkbox\"]:not(:disabled)').forEach(box => { box.checked = all.checked; });\n        selection();\n      });\n    });\n  });\n})();\n"},{"path":"components\/data-table\/example.html","type":"registry:component","content":"<!-- KATA data-table 1.1.0 \u2014 kata-ui.dev\/components\/data-table \u2014 requires mold >= 4 -->\n<div class=\"k-dt\" data-dt style=\"max-width:560px\">\n  <div class=\"k-dt-scroll\" role=\"region\" aria-label=\"Members\" tabindex=\"0\">\n    <table class=\"k-dt-t\">\n      <caption class=\"k-dt-caption\">Members<\/caption>\n      <thead><tr>\n        <th style=\"width:34px\"><input type=\"checkbox\" aria-label=\"Select all rows\"><\/th>\n        <th aria-sort=\"none\"><button class=\"k-dt-sort\" data-sort=\"str\" data-dir=\"\" type=\"button\">Name <span class=\"arr\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span><\/button><\/th>\n        <th>Role<\/th>\n        <th>Status<\/th>\n        <th class=\"num\"><button class=\"k-dt-sort\" data-sort=\"num\" data-dir=\"\" type=\"button\">Billed <span class=\"arr\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span><\/button><\/th>\n      <\/tr><\/thead>\n      <tbody><tr><td><input type=\"checkbox\" aria-label=\"Select Aoi Kimura\"><\/td><td style=\"font-weight:550\">Aoi Kimura<\/td><td>Designer<\/td><td><span class=\"badge asagi\">Active<\/span><\/td><td class=\"num\" data-v=\"4820\">$4,820<\/td><\/tr><tr><td><input type=\"checkbox\" aria-label=\"Select Ren Sato\"><\/td><td style=\"font-weight:550\">Ren Sato<\/td><td>Engineer<\/td><td><span class=\"badge asagi\">Active<\/span><\/td><td class=\"num\" data-v=\"3950\">$3,950<\/td><\/tr><tr><td><input type=\"checkbox\" aria-label=\"Select Mei Chen\"><\/td><td style=\"font-weight:550\">Mei Chen<\/td><td>Engineer<\/td><td><span class=\"badge\">Invited<\/span><\/td><td class=\"num\" data-v=\"0\">$0<\/td><\/tr><tr><td><input type=\"checkbox\" aria-label=\"Select Jonas Berg\"><\/td><td style=\"font-weight:550\">Jonas Berg<\/td><td>Support<\/td><td><span class=\"badge asagi\">Active<\/span><\/td><td class=\"num\" data-v=\"2715\">$2,715<\/td><\/tr><tr><td><input type=\"checkbox\" aria-label=\"Select Priya Nair\"><\/td><td style=\"font-weight:550\">Priya Nair<\/td><td>Designer<\/td><td><span class=\"badge red\">Suspended<\/span><\/td><td class=\"num\" data-v=\"1980\">$1,980<\/td><\/tr><\/tbody>\n    <\/table>\n  <\/div>\n  <div class=\"k-dt-f\">5 members<span class=\"pg\"><button type=\"button\" class=\"btn btn-sec btn-sm\" disabled>Previous<\/button><button type=\"button\" class=\"btn btn-sec btn-sm\">Next<\/button><\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For admin lists where the reader compares, sorts and acts. Read-only data stays a plain Table; the moment headers sort and rows select, it is this part. Native checkbox change events bubble. Listen for sorting:\n\n```js\ndocument.addEventListener('kata-data-table-sort', event => {\n  console.log(event.detail.column, event.detail.direction);\n});\n```","accessibility":"The table has a caption. Native header buttons sort text\/numeric columns; aria-sort is on their column headers. Named row\/select-all checkboxes retain selection through sorting. Mixed selection sets the select-all indeterminate state. A polite status reports sorting and selection counts. Each table keeps its own state. The table sits in a .k-dt-scroll region (role=\"region\", aria-label, tabindex=\"0\") so narrow screens scroll it with the keyboard or a swipe."},"audit":{"id":"components\/data-table","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"descriptions","type":"registry:component","title":"Descriptions","description":"Label-and-value pairs, set as a list: the invoice header, the record detail, the spec sheet.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/descriptions\/descriptions.css","type":"registry:component","content":"\/* KATA descriptions 1.1.0 \u2014 kata-ui.dev\/components\/descriptions \u2014 requires mold >= 4 *\/\n\/* KATA Descriptions \u2014 a definition list with hairlines. *\/\n.k-desc{font-family:var(--k-font);color:var(--k-ink);max-width:520px}\n.k-desc .row{display:grid;grid-template-columns:150px 1fr;gap:var(--k-space-3);padding:var(--k-space-2) var(--k-space-0-5);border-top:1px solid var(--k-line)}\n.k-desc .row:first-child{border-top:0}\n.k-desc dt{font-size:var(--k-text-sm);color:var(--k-ink-3);font-weight:500;padding-top:var(--k-space-px)}\n.k-desc dd{font-size:var(--k-text-base);line-height:var(--k-lh-body);letter-spacing:.012em}\n.k-desc.boxed{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-1) var(--k-space-4)}\n.k-desc.pairs .row{grid-template-columns:110px 1fr 110px 1fr}\n@media (max-width:560px){.k-desc .row{grid-template-columns:110px 1fr}.k-desc.pairs .row{grid-template-columns:110px 1fr}}\n"},{"path":"components\/descriptions\/example.html","type":"registry:component","content":"<!-- KATA descriptions 1.1.0 \u2014 kata-ui.dev\/components\/descriptions \u2014 requires mold >= 4 -->\n<dl class=\"k-desc boxed\">\n  <div class=\"row\"><dt>Invoice<\/dt><dd>INV-2041<\/dd><\/div>\n  <div class=\"row\"><dt>Billed to<\/dt><dd>Northwind KK \u2014 Accounts<\/dd><\/div>\n  <div class=\"row\"><dt>Issued<\/dt><dd>November 2, 2026<\/dd><\/div>\n  <div class=\"row\"><dt>Due<\/dt><dd>December 31, 2026<\/dd><\/div>\n  <div class=\"row\"><dt>Total<\/dt><dd>\u00a5128,400 (tax included)<\/dd><\/div>\n<\/dl>"}],"meta":{"status":"beta","usage":"For reading a record. The moment the pairs become inputs, it is a form and Field takes over. Keep labels short and values complete; the pair is the sentence.","accessibility":"A real dl: term and description stay paired for assistive technology. Do not fake the pairing with two loose columns of divs."},"audit":{"id":"components\/descriptions","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"donut-chart","type":"registry:component","title":"Donut Chart","description":"Parts of a whole, as a ring \u2014 with the one segment that matters wearing the core.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/donut-chart\/donut-chart.css","type":"registry:component","content":"\/* KATA donut-chart 1.1.0 \u2014 kata-ui.dev\/components\/donut-chart \u2014 requires mold >= 4 *\/\n.k-donut{font-family:var(--k-font);text-align:start;margin:0}\n.k-donut figcaption{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-3)}\n.k-donut-wrap{display:flex;align-items:center;gap:var(--k-space-5);flex-wrap:wrap}\n.k-donut-ring{position:relative;width:158px;height:158px;flex:none}\n.k-donut-ring svg{transform:rotate(-90deg)}\n.k-donut-c{position:absolute;inset:0;display:grid;place-content:center;text-align:center}\n.k-donut-c b{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.02em;color:var(--k-ink)}\n.k-donut-c span{font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-donut-leg{list-style:none;margin:0;padding:0;display:grid;gap:var(--k-space-2);font-size:var(--k-text-sm);color:var(--k-ink-2)}\n.k-donut-leg li{display:flex;align-items:center;gap:var(--k-space-2)}\n.k-donut-leg .dot{width:9px;height:9px;border-radius:var(--k-radius-xs);flex:none}\n.k-donut-leg b{margin-inline-start:auto;font-weight:600;color:var(--k-ink);font-family:var(--k-mono);font-size:var(--k-text-sm);padding-inline-start:var(--k-space-4)}\n"},{"path":"components\/donut-chart\/example.html","type":"registry:component","content":"<!-- KATA donut-chart 1.1.0 \u2014 kata-ui.dev\/components\/donut-chart \u2014 requires mold >= 4 -->\n<figure class=\"k-donut\" role=\"img\" aria-label=\"Signups by channel: 52 percent direct, 31 percent referral, 17 percent from this week\u2019s campaign\" style=\"max-width:430px\">\n  <figcaption>Signups by channel<\/figcaption>\n  <div class=\"k-donut-wrap\">\n    <div class=\"k-donut-ring\">\n      <svg width=\"158\" height=\"158\" viewBox=\"0 0 160 160\" aria-hidden=\"true\"><circle cx=\"80\" cy=\"80\" r=\"62\" fill=\"none\" stroke-width=\"19\" style=\"stroke:var(--k-accent)\" stroke-dasharray=\"199.6 190.0\" stroke-dashoffset=\"-0.0\"\/><circle cx=\"80\" cy=\"80\" r=\"62\" fill=\"none\" stroke-width=\"19\" style=\"stroke:var(--k-zinc-300)\" stroke-dasharray=\"117.8 271.8\" stroke-dashoffset=\"-202.6\"\/><circle cx=\"80\" cy=\"80\" r=\"62\" fill=\"none\" stroke-width=\"19\" style=\"stroke:var(--k-core)\" stroke-dasharray=\"63.2 326.3\" stroke-dashoffset=\"-323.3\"\/><\/svg>\n      <div class=\"k-donut-c\"><b>2,418<\/b><span>total signups<\/span><\/div>\n    <\/div>\n    <ul class=\"k-donut-leg\"><li><span class=\"dot\" style=\"background:var(--k-accent)\"><\/span>Direct<b>52%<\/b><\/li><li><span class=\"dot\" style=\"background:var(--k-zinc-300)\"><\/span>Referral<b>31%<\/b><\/li><li><span class=\"dot\" style=\"background:var(--k-core)\"><\/span>This week<b>17%<\/b><\/li><\/ul>\n  <\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"For shares of a total with three to five parts. The segment the reader should act on takes the core; the rest stay in the accent family and zinc.","accessibility":"A chart is a picture of numbers: give the figure role=\"img\" and an aria-label that states the conclusion (\"Signups rose from 22 to 71 over the year\"), and keep the data available as a table nearby."},"audit":{"id":"components\/donut-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"funnel-chart","type":"registry:component","title":"Funnel Chart","description":"Stages that only shrink \u2014 visited, signed up, activated, paid \u2014 with the leak visible at every step.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/funnel-chart\/funnel-chart.css","type":"registry:component","content":"\/* KATA funnel-chart 1.1.0 \u2014 kata-ui.dev\/components\/funnel-chart \u2014 requires mold >= 2 *\/\n.k-funnel{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-funnel .st{display:grid;grid-template-columns:92px 1fr 74px;gap:var(--k-space-3);align-items:center;padding:var(--k-space-1) 0}\n.k-funnel .nm{font-size:var(--k-text-sm);font-weight:550;color:var(--k-ink-2)}\n.k-funnel .bar{height:30px;border-radius:var(--k-radius-md);background:var(--k-accent);color:var(--k-on-accent)}\n.k-funnel .st:nth-child(2) .bar{opacity:.78}\n.k-funnel .st:nth-child(3) .bar{opacity:.56}\n.k-funnel .st:nth-child(4) .bar{opacity:.36}\n.k-funnel .vl{font-size:var(--k-text-sm);text-align:end;font-variant-numeric:tabular-nums}\n.k-funnel .vl span{color:var(--k-ink-3);font-size:var(--k-text-xs);display:block}\n.k-funnel figcaption{margin-top:var(--k-space-2);font-size:var(--k-text-sm);color:var(--k-ink-3)}\n"},{"path":"components\/funnel-chart\/example.html","type":"registry:component","content":"<!-- KATA funnel-chart 1.1.0 \u2014 kata-ui.dev\/components\/funnel-chart \u2014 requires mold >= 2 -->\n<figure class=\"k-funnel\" role=\"img\" aria-label=\"Funnel: of 12,480 visitors, 3,910 signed up, 1,864 activated and 693 purchased \u2014 a 5.6% end-to-end conversion.\" style=\"margin:0;max-width:430px;width:100%\">\n  <div class=\"st\"><span class=\"nm\">Visited<\/span><div class=\"bar\" style=\"width:100%\"><\/div><span class=\"vl\">12,480<span>100% of visitors<\/span><\/span><\/div><div class=\"st\"><span class=\"nm\">Signed up<\/span><div class=\"bar\" style=\"width:72%\"><\/div><span class=\"vl\">3,910<span>31% of visitors<\/span><\/span><\/div><div class=\"st\"><span class=\"nm\">Activated<\/span><div class=\"bar\" style=\"width:47%\"><\/div><span class=\"vl\">1,864<span>15% of visitors<\/span><\/span><\/div><div class=\"st\"><span class=\"nm\">Purchased<\/span><div class=\"bar\" style=\"width:28%\"><\/div><span class=\"vl\">693<span>5.6% of visitors<\/span><\/span><\/div>\n  <figcaption>Visited \u2192 Purchased: <b>5.6%<\/b>. The biggest leak is signup \u2192 activation.<\/figcaption>\n<\/figure>"}],"meta":{"status":"beta","usage":"For conversion pipelines where each stage is a subset of the last. If stages can grow or repeat, use a Bar Chart instead.","accessibility":"Every stage is a text row first \u2014 name, count, share \u2014 and the bar is decoration on top, so the whole funnel reads without the picture."},"audit":{"id":"components\/funnel-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"gauge","type":"registry:component","title":"Gauge","description":"One number against its limit, as an arc \u2014 health you can read from across the room.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/gauge\/gauge.css","type":"registry:component","content":"\/* KATA gauge 1.1.0 \u2014 kata-ui.dev\/components\/gauge \u2014 requires mold >= 4 *\/\n.k-gauge{font-family:var(--k-font);text-align:start;margin:0}\n.k-gauge figcaption{font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-1)}\n.k-gauge-wrap{position:relative;width:210px}\n.k-gauge-c{position:absolute;left:0;right:0;bottom:2px;text-align:center}\n.k-gauge-c b{font-size:var(--k-text-2xl);font-weight:650;letter-spacing:-.02em;color:var(--k-ink)}\n.k-gauge-c span{display:block;font-size:var(--k-text-xs);color:var(--k-ink-3);margin-top:var(--k-space-px)}\n"},{"path":"components\/gauge\/example.html","type":"registry:component","content":"<!-- KATA gauge 1.1.0 \u2014 kata-ui.dev\/components\/gauge \u2014 requires mold >= 4 -->\n<figure class=\"k-gauge\" role=\"img\" aria-label=\"Deploy success rate is 72 percent over the last 30 days\" style=\"max-width:430px\">\n  <figcaption>Deploy success<\/figcaption>\n  <div class=\"k-gauge-wrap\">\n    <svg width=\"210\" height=\"122\" viewBox=\"0 0 200 118\" aria-hidden=\"true\">\n      <path d=\"M20,104 A80,80 0 0 1 180,104\" fill=\"none\" style=\"stroke:var(--k-zinc-200)\" stroke-width=\"15\" stroke-linecap=\"round\"\/>\n      <path d=\"M20,104 A80,80 0 0 1 180,104\" fill=\"none\" style=\"stroke:var(--k-accent)\" stroke-width=\"15\" stroke-linecap=\"round\" stroke-dasharray=\"181 251\"\/>\n    <\/svg>\n    <div class=\"k-gauge-c\"><b>72%<\/b><span>last 30 days<\/span><\/div>\n  <\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"For a single health metric with a known ceiling: uptime, budget burn, quota. If there is no meaningful limit, use a Stat instead.","accessibility":"A chart is a picture of numbers: give the figure role=\"img\" and an aria-label that states the conclusion (\"Signups rose from 22 to 71 over the year\"), and keep the data available as a table nearby."},"audit":{"id":"components\/gauge","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"glass-panel","type":"registry:component","title":"Glass Panel","description":"A translucent panel that floats over bright surfaces \u2014 the menu in front of the aurora.","categories":["Display & Media"],"dependencies":["aurora"],"files":[{"path":"components\/glass-panel\/glass-panel.css","type":"registry:component","content":"\/* KATA glass-panel 1.1.0 \u2014 kata-ui.dev\/components\/glass-panel \u2014 requires mold >= 4 *\/\n.k-glass{background:color-mix(in srgb,var(--k-bg) 68%,transparent);backdrop-filter:blur(14px) saturate(1.5);-webkit-backdrop-filter:blur(14px) saturate(1.5);border:1px solid color-mix(in srgb,var(--k-on-color) 32%,transparent);border-radius:var(--k-radius-xl);box-shadow:var(--k-shadow-pop);color:var(--k-ink);font-family:var(--k-font);padding:var(--k-space-4);text-align:left}\n.k-glass-h{display:flex;align-items:baseline;justify-content:space-between;font-size:var(--k-text-sm);font-weight:600;letter-spacing:.04em}\n.k-glass-h span{font-weight:500;color:var(--k-ink-3);letter-spacing:0}\n.k-glass-row{display:flex;align-items:center;gap:var(--k-space-3);padding:var(--k-space-2) 0;border-top:1px solid color-mix(in srgb,var(--k-on-color) 16%,transparent);font-size:var(--k-text-base)}\n.k-glass-row:first-of-type{margin-top:var(--k-space-2)}\n.k-glass-num{font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3);width:13px}\n.k-glass-val{margin-left:auto;font-size:var(--k-text-xs);color:var(--k-ink-3)}\n"},{"path":"components\/glass-panel\/example.html","type":"registry:component","content":"<!-- KATA glass-panel 1.1.0 \u2014 kata-ui.dev\/components\/glass-panel \u2014 requires mold >= 4 -->\n<div class=\"k-aurora\" style=\"max-width:430px\">\n  <i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i>\n  <div style=\"position:relative;padding:var(--k-space-5)\">\n    <div class=\"k-glass\" data-theme=\"dark\">\n      <div class=\"k-glass-h\">Ranked by impact <span>Today<\/span><\/div>\n      <div class=\"k-glass-row\"><span class=\"k-glass-num\">1<\/span>Pricing reply<span class=\"k-glass-val\">98<\/span><\/div>\n      <div class=\"k-glass-row\"><span class=\"k-glass-num\">2<\/span>Renewal follow-up<span class=\"k-glass-val\">87<\/span><\/div>\n      <div class=\"k-glass-row\"><span class=\"k-glass-num\">3<\/span>Thursday demo brief<span class=\"k-glass-val\">76<\/span><\/div>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For panels that sit on photography, gradients or the Aurora: menus, summaries, now-playing cards. Needs a busy surface behind it; on a plain page it is just a card.","accessibility":"The blur is decorative; text sits on a 68% ground so contrast holds in both themes. Do not put small print on the thinnest part of the blur."},"audit":{"id":"components\/glass-panel","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"heatmap","type":"registry:component","title":"Heatmap","description":"A calendar of intensity \u2014 the contribution-graph pattern, for activity that has rhythm.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/heatmap\/heatmap.css","type":"registry:component","content":"\/* KATA heatmap 1.1.0 \u2014 kata-ui.dev\/components\/heatmap \u2014 requires mold >= 2 *\/\n.k-hm{font-family:var(--k-font);text-align:start;margin:0}\n.k-hm figcaption{display:flex;align-items:baseline;justify-content:space-between;font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-3)}\n.k-hm figcaption span{font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink-3)}\n.k-hm-grid{display:grid;overflow-x:auto;max-width:100%;padding-bottom:var(--k-space-1);grid-template-rows:repeat(7,11px);grid-auto-flow:column;grid-auto-columns:11px;gap:var(--k-space-1)}\n.k-hm-grid i{border-radius:var(--k-radius-xs);display:block}\n.k-hm-grid .l0{background:var(--k-zinc-100)}\n.k-hm-grid .l1{background:color-mix(in srgb,var(--k-accent) 26%,var(--k-bg))}\n.k-hm-grid .l2{background:color-mix(in srgb,var(--k-accent) 52%,var(--k-bg))}\n.k-hm-grid .l3{background:color-mix(in srgb,var(--k-accent) 78%,var(--k-bg))}\n.k-hm-grid .l4{background:var(--k-accent);color:var(--k-on-accent)}\n.k-hm-leg{display:flex;align-items:center;gap:var(--k-space-1);margin-top:var(--k-space-3);font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-hm-leg i{width:11px;height:11px;border-radius:var(--k-radius-xs);display:block}\n"},{"path":"components\/heatmap\/example.html","type":"registry:component","content":"<!-- KATA heatmap 1.1.0 \u2014 kata-ui.dev\/components\/heatmap \u2014 requires mold >= 2 -->\n<figure class=\"k-hm\" role=\"img\" aria-label=\"Deploy activity over the last 26 weeks, busiest in the most recent month\" style=\"max-width:430px\">\n  <figcaption>Deploys <span>Last 26 weeks \u00b7 312 total<\/span><\/figcaption>\n  <div class=\"k-hm-grid\"><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l4\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l4\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l4\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l3\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l2\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l4\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l2\"><\/i><i class=\"l4\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l4\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l4\"><\/i><i class=\"l2\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l4\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l4\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l4\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l1\"><\/i><i class=\"l3\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l3\"><\/i><i class=\"l4\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l3\"><\/i><i class=\"l2\"><\/i><i class=\"l0\"><\/i><i class=\"l1\"><\/i><i class=\"l1\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><i class=\"l0\"><\/i><\/div>\n  <div class=\"k-hm-leg\">Less <i style=\"background:var(--k-zinc-100)\"><\/i><i style=\"background:color-mix(in srgb,var(--k-accent) 26%,var(--k-bg))\"><\/i><i style=\"background:color-mix(in srgb,var(--k-accent) 52%,var(--k-bg))\"><\/i><i style=\"background:color-mix(in srgb,var(--k-accent) 78%,var(--k-bg))\"><\/i><i style=\"background:var(--k-accent)\"><\/i> More<\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"For activity over weeks: deploys, posts, workouts, commits. Five steps of one accent; anything more and the steps stop being comparable.","accessibility":"A chart is a picture of numbers: give the figure role=\"img\" and an aria-label that states the conclusion (\"Signups rose from 22 to 71 over the year\"), and keep the data available as a table nearby."},"audit":{"id":"components\/heatmap","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"kbd","type":"registry:component","title":"Kbd","description":"Keyboard keys as small cast pieces: a bottom edge, mono type, nothing else.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/kbd\/kbd.css","type":"registry:component","content":"\/* KATA kbd 1.1.0 \u2014 kata-ui.dev\/components\/kbd \u2014 requires mold >= 4 *\/\n\/* KATA Kbd *\/\n.k-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 var(--k-space-1);border:1px solid var(--k-line);border-bottom-width:2px;border-radius:var(--k-radius-sm);background:var(--k-bg-soft);color:var(--k-ink-2);font-family:var(--k-mono);font-size:var(--k-text-xs);font-weight:500;line-height:var(--k-lh-tight)}\n"},{"path":"components\/kbd\/example.html","type":"registry:component","content":"<!-- KATA kbd 1.1.0 \u2014 kata-ui.dev\/components\/kbd \u2014 requires mold >= 4 -->\n<div style=\"display:grid;gap:var(--k-space-3);font-size:var(--k-text-base);color:var(--k-ink-2)\">\n  <p>Press <kbd class=\"k-kbd\">\u2318<\/kbd> <kbd class=\"k-kbd\">K<\/kbd> to search, <kbd class=\"k-kbd\">\u2318<\/kbd> <kbd class=\"k-kbd\">\u21e7<\/kbd> <kbd class=\"k-kbd\">P<\/kbd> for commands.<\/p>\n  <p>Move with <kbd class=\"k-kbd\">\u2190<\/kbd> <kbd class=\"k-kbd\">\u2192<\/kbd>, confirm with <kbd class=\"k-kbd\">Enter<\/kbd>, close with <kbd class=\"k-kbd\">Esc<\/kbd>.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"In menus, tooltips and empty states to teach shortcuts. Use symbols (\u2318 \u21e7 \u2325) on Apple platforms, words (Ctrl, Alt) elsewhere.","accessibility":"Wrap the key in <kbd> so it is announced as keyboard input. A shortcut hint never replaces a visible label for the action itself."},"audit":{"id":"components\/kbd","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"line-chart","type":"registry:component","title":"Line Chart","description":"One series over time, drawn in \u2014 the shape of a trend, with the area under it kept quiet.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/line-chart\/line-chart.css","type":"registry:component","content":"\/* KATA line-chart 1.1.0 \u2014 kata-ui.dev\/components\/line-chart \u2014 requires mold >= 4 *\/\n.k-line-chart{font-family:var(--k-font);text-align:start;margin:0}\n.k-line-chart figcaption{display:flex;align-items:baseline;justify-content:space-between;font-size:var(--k-text-base);font-weight:600;color:var(--k-ink);margin-bottom:var(--k-space-3)}\n.k-line-chart figcaption span{font-size:var(--k-text-sm);font-weight:500;color:var(--k-ink-3)}\n.k-line-chart svg{width:100%;height:auto;display:block}\n.k-line-chart .line{stroke:var(--k-accent);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}\n.k-line-chart .x{display:flex;justify-content:space-between;font-size:var(--k-text-xs);color:var(--k-ink-3);margin-top:var(--k-space-2);padding:0 var(--k-space-px)}\n@keyframes k-draw{to{stroke-dashoffset:0}}\n@media (prefers-reduced-motion:reduce){.k-line-chart .line{animation:none;stroke-dashoffset:0}}\n"},{"path":"components\/line-chart\/example.html","type":"registry:component","content":"<!-- KATA line-chart 1.1.0 \u2014 kata-ui.dev\/components\/line-chart \u2014 requires mold >= 4 -->\n<figure class=\"k-line-chart\" role=\"img\" aria-label=\"Monthly active users grew from 22 to 71 thousand across the year\" style=\"max-width:430px\">\n  <figcaption>Active users <span>Thousands, monthly<\/span><\/figcaption>\n  <svg viewBox=\"0 0 560 190\" aria-hidden=\"true\">\n    <line x1=\"0\" y1=\"30\" x2=\"560\" y2=\"30\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"79\" x2=\"560\" y2=\"79\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"128\" x2=\"560\" y2=\"128\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"178\" x2=\"560\" y2=\"178\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/>\n    <path d=\"M0.0,143.2 L50.9,130.6 L101.8,136.9 L152.7,118.0 L203.6,124.3 L254.5,103.7 L305.5,111.6 L356.4,91.1 L407.3,99.0 L458.2,78.5 L509.1,86.4 L560.0,65.8 L560,186 L0,186 Z\" style=\"fill:color-mix(in srgb,var(--k-accent) 13%,transparent)\"\/>\n    <path class=\"line\" pathLength=\"1\" d=\"M0.0,143.2 L50.9,130.6 L101.8,136.9 L152.7,118.0 L203.6,124.3 L254.5,103.7 L305.5,111.6 L356.4,91.1 L407.3,99.0 L458.2,78.5 L509.1,86.4 L560.0,65.8\"\/>\n    <circle cx=\"560.0\" cy=\"65.8\" r=\"5.5\" style=\"fill:var(--k-core);stroke:var(--k-bg)\" stroke-width=\"2\"\/>\n  <\/svg>\n  <div class=\"x\"><span>Jan<\/span><span>Mar<\/span><span>May<\/span><span>Jul<\/span><span>Sep<\/span><span>Nov<\/span><\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"For a single metric over time. One line, scaled from zero when the values are counts; the end point is marked with the core because the present is the point.","accessibility":"A chart is a picture of numbers: give the figure role=\"img\" and an aria-label that states the conclusion (\"Signups rose from 22 to 71 over the year\"), and keep the data available as a table nearby."},"audit":{"id":"components\/line-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"list","type":"registry:component","title":"List","description":"Rows of like things: a face or an icon, a title, a whisper of meta, and somewhere to go.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/list\/list.css","type":"registry:component","content":"\/* KATA list 1.1.0 \u2014 kata-ui.dev\/components\/list \u2014 requires mold >= 4 *\/\n.k-list{list-style:none;margin:0;padding:0;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);font-family:var(--k-font);overflow:hidden;text-align:start}\n.k-list li+li{border-top:1px solid var(--k-line)}\n.k-list-row{display:flex;align-items:center;gap:var(--k-space-3);padding:var(--k-space-3) var(--k-space-4);text-decoration:none;color:var(--k-ink)}\na.k-list-row:hover{background:var(--k-bg-soft)}\n.k-list-row .main{flex:1;min-width:0}\n.k-list-row .tt{display:block;font-size:var(--k-text-base);font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-list-row .ss{display:block;font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-list-row .meta{font-size:var(--k-text-sm);color:var(--k-ink-3);flex:none}\n.k-list-row .chev{color:var(--k-ink-3);flex:none;display:grid;place-items:center}\n\/* The list clips overflow, so rows draw their focus ring inside. *\/\n.k-list-row:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n"},{"path":"components\/list\/example.html","type":"registry:component","content":"<!-- KATA list 1.1.0 \u2014 kata-ui.dev\/components\/list \u2014 requires mold >= 4 -->\n<ul class=\"k-list\" style=\"max-width:430px\">\n  <li><a class=\"k-list-row\" href=\"#\"><span class=\"main\"><span class=\"tt\">Q3-board-deck.pdf<\/span><span class=\"ss\">Shared by Aoi Kimura<\/span><\/span><span class=\"meta\">2h ago<\/span><span class=\"chev\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/span><\/a><\/li>\n  <li><a class=\"k-list-row\" href=\"#\"><span class=\"main\"><span class=\"tt\">invoice-1042.pdf<\/span><span class=\"ss\">Shared by Ren Sato<\/span><\/span><span class=\"meta\">Yesterday<\/span><span class=\"chev\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/span><\/a><\/li>\n  <li><a class=\"k-list-row\" href=\"#\"><span class=\"main\"><span class=\"tt\">brand-assets.zip<\/span><span class=\"ss\">Shared by Mei Chen<\/span><\/span><span class=\"meta\">Mon<\/span><span class=\"chev\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/span><\/a><\/li>\n<\/ul>"}],"meta":{"status":"beta","usage":"For indexes, member lists, file lists \u2014 anywhere the same row shape repeats. If rows need sorting or filtering, use Data Table instead.","accessibility":"A real list element underneath. Rows that navigate are links; rows that act are buttons \u2014 never a clickable div."},"audit":{"id":"components\/list","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"qr-code","type":"registry:component","title":"QR Code","description":"A real QR code, encoded in your page by a zero-dependency script written from the spec \u2014 no library, no image service.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/qr-code\/qr-code.css","type":"registry:component","content":"\/* KATA qr-code 1.1.0 \u2014 kata-ui.dev\/components\/qr-code \u2014 requires mold >= 4 *\/\n\/* KATA QR Code \u2014 the code is drawn by the part's own encoder. *\/\n.k-qr{display:inline-block;background:var(--k-on-color);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3);line-height:0}\n.k-qr svg{width:100%;height:auto;display:block}\n.k-qr .qr-fallback{font-size:var(--k-text-sm);line-height:var(--k-lh-small);color:var(--k-danger-ink);max-width:22ch;letter-spacing:.01em}\n"},{"path":"components\/qr-code\/qr-code.js","type":"registry:component","content":"\/* KATA qr-code 1.1.0 \u2014 kata-ui.dev\/components\/qr-code \u2014 requires mold >= 4 *\/\n\/\/ KATA QR Code \u2014 a zero-dependency encoder written from ISO\/IEC 18004.\n\/\/ Byte mode, error-correction level M, versions 1\u20136 (14\u2013106 bytes).\n\/\/ The mask is chosen by the standard's four penalty rules.\n\n\/\/ ---- Galois field GF(256), primitive polynomial 0x11d ----\nvar KQR_EXP = [], KQR_LOG = [];\n(function () {\n  var x = 1;\n  for (var i = 0; i < 255; i++) { KQR_EXP.push(x); KQR_LOG[x] = i; x <<= 1; if (x & 0x100) x ^= 0x11d; }\n})();\nfunction kqrMul(a, b) { return (a && b) ? KQR_EXP[(KQR_LOG[a] + KQR_LOG[b]) % 255] : 0; }\nfunction kqrPolyMul(p, q) {\n  var r = new Array(p.length + q.length - 1).fill(0);\n  for (var i = 0; i < p.length; i++) for (var j = 0; j < q.length; j++) r[i + j] ^= kqrMul(p[i], q[j]);\n  return r;\n}\nfunction kqrGenPoly(n) {\n  var g = [1];\n  for (var i = 0; i < n; i++) g = kqrPolyMul(g, [1, KQR_EXP[i]]);\n  return g;\n}\nfunction kqrRemainder(data, gen) {\n  var res = new Array(gen.length - 1).fill(0);\n  data.forEach(function (b) {\n    var factor = b ^ res.shift();\n    res.push(0);\n    for (var i = 0; i < res.length; i++) res[i] ^= kqrMul(gen[i + 1], factor);\n  });\n  return res;\n}\n\n\/\/ version -> [blocks, data codewords per block, EC per block, alignment center, remainder bits]\nvar KQR_V = [null,\n  [1, 16, 10, 0, 0], [1, 28, 16, 18, 7], [1, 44, 26, 22, 7],\n  [2, 32, 18, 26, 7], [2, 43, 24, 30, 7], [4, 27, 16, 34, 7]];\n\nfunction kqrDataCodewords(bytes, ver) {\n  var info = KQR_V[ver];\n  var capBits = info[0] * info[1] * 8;\n  var bits = [];\n  function push(val, len) { for (var i = len - 1; i >= 0; i--) bits.push((val >>> i) & 1); }\n  push(0x4, 4); \/\/ byte mode\n  push(bytes.length, 8);\n  bytes.forEach(function (b) { push(b, 8); });\n  push(0, Math.min(4, capBits - bits.length));\n  while (bits.length % 8) bits.push(0);\n  var out = [];\n  for (var i = 0; i < bits.length; i += 8) {\n    var v = 0; for (var j = 0; j < 8; j++) v = (v << 1) | bits[i + j];\n    out.push(v);\n  }\n  var pads = [0xec, 0x11], total = info[0] * info[1];\n  for (var k = 0; out.length < total; k++) out.push(pads[k % 2]);\n  return out;\n}\n\nfunction kqrInterleave(dataCw, ver) {\n  var info = KQR_V[ver], nb = info[0], per = info[1], gen = kqrGenPoly(info[2]);\n  var blocks = [], ecs = [], i, j;\n  for (i = 0; i < nb; i++) {\n    var chunk = dataCw.slice(i * per, (i + 1) * per);\n    blocks.push(chunk);\n    ecs.push(kqrRemainder(chunk, gen));\n  }\n  var bits = [];\n  function pushByte(v) { for (var k = 7; k >= 0; k--) bits.push((v >>> k) & 1); }\n  for (j = 0; j < per; j++) for (i = 0; i < nb; i++) pushByte(blocks[i][j]);\n  for (j = 0; j < info[2]; j++) for (i = 0; i < nb; i++) pushByte(ecs[i][j]);\n  for (i = 0; i < info[4]; i++) bits.push(0);\n  return bits;\n}\n\nfunction kqrFormatBits(mask) {\n  var data = mask; \/\/ EC level M indicator bits are 00, so data = 0b00<<3 | mask\n  var rem = data;\n  for (var i = 0; i < 10; i++) rem = (rem << 1) ^ (((rem >>> 9) & 1) * 0x537);\n  return ((data << 10) | rem) ^ 0x5412;\n}\n\nfunction kqrMatrix(text) {\n  var bytes = Array.prototype.slice.call(new TextEncoder().encode(text));\n  var ver = 0;\n  for (var v = 1; v <= 6; v++) {\n    if (bytes.length <= Math.floor((KQR_V[v][0] * KQR_V[v][1] * 8 - 12) \/ 8)) { ver = v; break; }\n  }\n  if (!ver) return null;\n  var size = 17 + 4 * ver;\n  var bits = kqrInterleave(kqrDataCodewords(bytes, ver), ver);\n  var mod = [], fn = [], x, y;\n  for (y = 0; y < size; y++) { mod.push(new Array(size).fill(0)); fn.push(new Array(size).fill(false)); }\n  function setF(xx, yy, dark) { if (0 <= xx && xx < size && 0 <= yy && yy < size) { mod[yy][xx] = dark ? 1 : 0; fn[yy][xx] = true; } }\n  function drawFinder(cx, cy) {\n    for (var dy = -4; dy <= 4; dy++) for (var dx = -4; dx <= 4; dx++) {\n      var dist = Math.max(Math.abs(dx), Math.abs(dy));\n      setF(cx + dx, cy + dy, dist !== 2 && dist !== 4);\n    }\n  }\n  for (var i = 0; i < size; i++) { setF(6, i, i % 2 === 0); setF(i, 6, i % 2 === 0); }\n  drawFinder(3, 3); drawFinder(size - 4, 3); drawFinder(3, size - 4);\n  var align = KQR_V[ver][3];\n  if (align) {\n    for (var dy2 = -2; dy2 <= 2; dy2++) for (var dx2 = -2; dx2 <= 2; dx2++)\n      setF(align + dx2, align + dy2, Math.max(Math.abs(dx2), Math.abs(dy2)) !== 1);\n  }\n  setF(8, size - 8, 1); \/\/ dark module\n  \/\/ reserve the format-information cells before data placement \u2014\n  \/\/ they are function modules even though their values wait for the mask\n  (function reserveFormat() {\n    for (var i = 0; i <= 5; i++) { setF(8, i, 0); setF(i, 8, 0); }\n    setF(8, 7, 0); setF(8, 8, 0); setF(7, 8, 0);\n    for (var i = 0; i < 8; i++) setF(size - 1 - i, 8, 0);\n    for (var i = 8; i < 15; i++) setF(8, size - 15 + i, 0);\n  })();\n  \/\/ reserve format cells (values drawn after masking)\n  function drawFormat(mask) {\n    var bitsF = kqrFormatBits(mask);\n    function bit(i) { return ((bitsF >>> i) & 1) === 1; }\n    for (var i = 0; i <= 5; i++) setF(8, i, bit(i));\n    setF(8, 7, bit(6)); setF(8, 8, bit(7)); setF(7, 8, bit(8));\n    for (var i = 9; i < 15; i++) setF(14 - i, 8, bit(i));\n    for (var i = 0; i < 8; i++) setF(size - 1 - i, 8, bit(i));\n    for (var i = 8; i < 15; i++) setF(8, size - 15 + i, bit(i));\n    setF(8, size - 8, 1);\n  }\n  \/\/ place data bits (zigzag), skipping function modules\n  var bi = 0;\n  for (var right = size - 1; right >= 1; right -= 2) {\n    if (right === 6) right = 5;\n    for (var vert = 0; vert < size; vert++) {\n      for (var j = 0; j < 2; j++) {\n        var xx = right - j;\n        var upward = ((right + 1) & 2) === 0;\n        var yy = upward ? size - 1 - vert : vert;\n        if (!fn[yy][xx]) { mod[yy][xx] = bi < bits.length ? bits[bi] : 0; bi++; }\n      }\n    }\n  }\n  function maskBit(mask, xx, yy) {\n    switch (mask) {\n      case 0: return (xx + yy) % 2 === 0;\n      case 1: return yy % 2 === 0;\n      case 2: return xx % 3 === 0;\n      case 3: return (xx + yy) % 3 === 0;\n      case 4: return (Math.floor(yy \/ 2) + Math.floor(xx \/ 3)) % 2 === 0;\n      case 5: return (xx * yy) % 2 + (xx * yy) % 3 === 0;\n      case 6: return ((xx * yy) % 2 + (xx * yy) % 3) % 2 === 0;\n      case 7: return ((xx + yy) % 2 + (xx * yy) % 3) % 2 === 0;\n    }\n    return false;\n  }\n  function penalties(m) {\n    var score = 0, xx, yy, run, c;\n    \/\/ rule 1: runs\n    for (yy = 0; yy < size; yy++) {\n      run = 1;\n      for (xx = 1; xx < size; xx++) { if (m[yy][xx] === m[yy][xx - 1]) { run++; } else { if (run >= 5) score += run - 2; run = 1; } }\n      if (run >= 5) score += run - 2;\n    }\n    for (xx = 0; xx < size; xx++) {\n      run = 1;\n      for (yy = 1; yy < size; yy++) { if (m[yy][xx] === m[yy - 1][xx]) { run++; } else { if (run >= 5) score += run - 2; run = 1; } }\n      if (run >= 5) score += run - 2;\n    }\n    \/\/ rule 2: 2x2 blocks\n    for (yy = 0; yy < size - 1; yy++) for (xx = 0; xx < size - 1; xx++) {\n      c = m[yy][xx];\n      if (c === m[yy][xx + 1] && c === m[yy + 1][xx] && c === m[yy + 1][xx + 1]) score += 3;\n    }\n    \/\/ rule 3: finder-like patterns\n    function checkLine(line) {\n      var s = 0;\n      for (var i = 0; i + 11 <= line.length; i++) {\n        var w = line.slice(i, i + 11).join('');\n        if (w === '10111010000' || w === '00001011101') s += 40;\n      }\n      return s;\n    }\n    for (yy = 0; yy < size; yy++) score += checkLine(m[yy]);\n    for (xx = 0; xx < size; xx++) score += checkLine(m.map(function (row) { return row[xx]; }));\n    \/\/ rule 4: balance\n    var dark = 0;\n    m.forEach(function (row) { row.forEach(function (v) { dark += v; }); });\n    var k = Math.ceil(Math.abs(dark * 20 - size * size * 10) \/ (size * size)) - 1;\n    if (k > 0) score += k * 10;\n    return score;\n  }\n  var best = null, bestScore = Infinity, bestMask = 0;\n  for (var mask = 0; mask < 8; mask++) {\n    var trial = mod.map(function (row, yy) {\n      return row.map(function (v, xx) { return (!fn[yy][xx] && maskBit(mask, xx, yy)) ? v ^ 1 : v; });\n    });\n    \/\/ format cells in the trial: temporarily draw, score, keep matrix pure\n    var saved = [];\n    for (y = 0; y < size; y++) for (x = 0; x < size; x++) if (fn[y][x] && ((x === 8) || (y === 8))) saved.push([x, y, trial[y][x]]);\n    \/\/ draw format on the trial via a shim: reuse setF against trial\n    (function () {\n      var bitsF = kqrFormatBits(mask);\n      function bit(i2) { return ((bitsF >>> i2) & 1) === 1 ? 1 : 0; }\n      function s2(xx, yy, val) { if (0 <= xx && xx < size && 0 <= yy && yy < size) trial[yy][xx] = val; }\n      for (var i = 0; i <= 5; i++) s2(8, i, bit(i));\n      s2(8, 7, bit(6)); s2(8, 8, bit(7)); s2(7, 8, bit(8));\n      for (var i = 9; i < 15; i++) s2(14 - i, 8, bit(i));\n      for (var i = 0; i < 8; i++) s2(size - 1 - i, 8, bit(i));\n      for (var i = 8; i < 15; i++) s2(8, size - 15 + i, bit(i));\n      s2(8, size - 8, 1);\n    })();\n    var sc = penalties(trial);\n    if (sc < bestScore) { bestScore = sc; best = trial; bestMask = mask; }\n  }\n  return { size: size, version: ver, mask: bestMask, modules: best };\n}\n\nfunction kqrSVG(text, label) {\n  var r = kqrMatrix(text);\n  if (!r) return null;\n  var n = r.size, d = '';\n  for (var y = 0; y < n; y++) for (var x = 0; x < n; x++)\n    if (r.modules[y][x]) d += 'M' + (x + 4) + ' ' + (y + 4) + 'h1v1h-1z';\n  return '<svg viewBox=\"0 0 ' + (n + 8) + ' ' + (n + 8) + '\" role=\"img\" aria-label=\"' +\n    (label || ('QR code: ' + text)) + '\"><rect width=\"' + (n + 8) + '\" height=\"' + (n + 8) + '\" fill=\"#fff\"\/>' +\n    '<path d=\"' + d + '\" fill=\"#18181b\"\/><\/svg>';\n}\n\ndocument.querySelectorAll('[data-qr]').forEach(function (el) {\n  var svg = kqrSVG(el.getAttribute('data-qr'), el.getAttribute('data-qr-label'));\n  if (svg) { el.innerHTML = svg; }\n  else { el.innerHTML = '<span class=\"qr-fallback\">This text is too long for a version 6 code (106 bytes at level M).<\/span>'; }\n});\n"},{"path":"components\/qr-code\/example.html","type":"registry:component","content":"<!-- KATA qr-code 1.1.0 \u2014 kata-ui.dev\/components\/qr-code \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-4);align-items:center;flex-wrap:wrap\">\n  <div class=\"k-qr\" data-qr=\"https:\/\/kata-ui.dev\" data-qr-label=\"QR code linking to kata-ui.dev\" style=\"width:168px\"><\/div>\n  <div style=\"max-width:250px\">\n    <p style=\"font-size:var(--k-text-lead);font-weight:600\">kata-ui.dev<\/p>\n    <p style=\"font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-body);margin-top:var(--k-space-1);letter-spacing:.01em\">Encoded on this page, by the part itself \u2014 scan it and check. The URL is printed beside the code, because a code should never be the only way through.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Give the element a data-qr with the text (a URL, up to 106 bytes at error level M, versions 1\u20136). The script encodes it \u2014 byte mode, Reed\u2013Solomon, mask by the penalty rules \u2014 and draws an SVG. Because the encoder is the part, codes work offline and never phone a generator service.","accessibility":"The SVG is an image of data: give the element an aria-label with the destination in words (\"Link to kata-ui.dev\"), and never make the code the only way to reach it \u2014 print the URL beside it for everyone the camera fails."},"audit":{"id":"components\/qr-code","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"radar-chart","type":"registry:component","title":"Radar Chart","description":"Five or six qualities on one shape \u2014 for comparing profiles; use a Bar Chart for exact values.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/radar-chart\/radar-chart.css","type":"registry:component","content":"\/* KATA radar-chart 1.1.0 \u2014 kata-ui.dev\/components\/radar-chart \u2014 requires mold >= 2 *\/\n.k-radar{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-radar figcaption{display:flex;gap:var(--k-space-3);font-size:var(--k-text-xs);color:var(--k-ink-2);margin-top:var(--k-space-1)}\n.k-radar figcaption i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:var(--k-space-1)}\n"},{"path":"components\/radar-chart\/example.html","type":"registry:component","content":"<!-- KATA radar-chart 1.1.0 \u2014 kata-ui.dev\/components\/radar-chart \u2014 requires mold >= 2 -->\n<figure class=\"k-radar\" role=\"img\" aria-label=\"Radar chart across Speed, Quality, Cost, Reach and Support: this quarter (accent) beats last quarter on Speed and Reach, and trails on Cost.\" style=\"margin:0;max-width:300px;width:100%\">\n  <svg viewBox=\"-16 -2 252 204\" width=\"100%\" role=\"presentation\">\n    <polygon points=\"110,32 182,85 155,170 65,170 38,85\" fill=\"none\" stroke=\"var(--k-line)\"\/>\n    <polygon points=\"110,58 158,93 140,149 80,149 62,93\" fill=\"none\" stroke=\"var(--k-line)\"\/>\n    <polygon points=\"110,83 134,100 125,129 95,129 86,100\" fill=\"none\" stroke=\"var(--k-line)\"\/>\n    <polygon points=\"110,55 150,95 144,154 88,139 49,88\" fill=\"none\" stroke=\"var(--k-ink-3)\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"\/>\n    <polygon points=\"110,38 159,92 132,139 74,157 65,93\" fill=\"var(--k-accent)\" fill-opacity=\"0.16\" stroke=\"var(--k-accent)\" stroke-width=\"2\" stroke-linejoin=\"round\"\/>\n    <text x=\"110\" y=\"18\" font-size=\"10\" fill=\"var(--k-ink-2)\" text-anchor=\"middle\" font-weight=\"600\">Speed<\/text>\n    <text x=\"186\" y=\"80\" font-size=\"10\" fill=\"var(--k-ink-2)\" font-weight=\"600\">Quality<\/text>\n    <text x=\"158\" y=\"190\" font-size=\"10\" fill=\"var(--k-ink-2)\" text-anchor=\"middle\" font-weight=\"600\">Cost<\/text>\n    <text x=\"62\" y=\"190\" font-size=\"10\" fill=\"var(--k-ink-2)\" text-anchor=\"middle\" font-weight=\"600\">Reach<\/text>\n    <text x=\"34\" y=\"80\" font-size=\"10\" fill=\"var(--k-ink-2)\" text-anchor=\"end\" font-weight=\"600\">Support<\/text>\n  <\/svg>\n  <figcaption><span><i style=\"background:var(--k-accent)\"><\/i>This quarter<\/span><span><i style=\"background:var(--k-ink-3)\"><\/i>Last quarter<\/span><\/figcaption>\n<\/figure>"}],"meta":{"status":"beta","usage":"For comparing profiles: two products, two quarters, plan vs. actual. Keep it to six axes; past that the shape becomes a star and stops meaning anything.","accessibility":"Radar shapes are nearly impossible to read aloud point by point, so the label states the verdict and the axes are listed in order."},"audit":{"id":"components\/radar-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"scatter-chart","type":"registry:component","title":"Scatter Chart","description":"Two measures, one cloud of dots \u2014 the chart that shows whether they move together.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/scatter-chart\/scatter-chart.css","type":"registry:component","content":"\/* KATA scatter-chart 1.1.0 \u2014 kata-ui.dev\/components\/scatter-chart \u2014 requires mold >= 2 *\/\n.k-scatter{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-scatter figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:var(--k-space-2);margin-top:var(--k-space-2)}\n.k-scatter .cap{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-scatter .lg{display:flex;gap:var(--k-space-3);font-size:var(--k-text-xs);color:var(--k-ink-2)}\n.k-scatter .lg i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:var(--k-space-1)}\n"},{"path":"components\/scatter-chart\/example.html","type":"registry:component","content":"<!-- KATA scatter-chart 1.1.0 \u2014 kata-ui.dev\/components\/scatter-chart \u2014 requires mold >= 2 -->\n<figure class=\"k-scatter\" role=\"img\" aria-label=\"Scatter chart: ad spend and signups rise together; the paid social series (accent) sits higher at every spend level.\" style=\"margin:0;max-width:340px;width:100%\">\n  <svg viewBox=\"0 0 320 170\" width=\"100%\" role=\"presentation\">\n    <line x1=\"30\" y1=\"12\" x2=\"30\" y2=\"146\" stroke=\"var(--k-line)\"\/>\n    <line x1=\"30\" y1=\"146\" x2=\"308\" y2=\"146\" stroke=\"var(--k-line)\"\/>\n    <line x1=\"30\" y1=\"79\" x2=\"308\" y2=\"79\" stroke=\"var(--k-line)\" stroke-dasharray=\"3 4\"\/>\n    <circle cx=\"38\" cy=\"128\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"62\" cy=\"118\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"84\" cy=\"124\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"104\" cy=\"102\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"126\" cy=\"108\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"148\" cy=\"88\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"168\" cy=\"96\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"188\" cy=\"74\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"210\" cy=\"80\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"232\" cy=\"58\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"254\" cy=\"64\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"276\" cy=\"40\" r=\"4.5\" fill=\"var(--k-ink-3)\"\/><circle cx=\"52\" cy=\"84\" r=\"4.5\" fill=\"var(--k-accent)\"\/><circle cx=\"96\" cy=\"66\" r=\"4.5\" fill=\"var(--k-accent)\"\/><circle cx=\"140\" cy=\"52\" r=\"4.5\" fill=\"var(--k-accent)\"\/><circle cx=\"196\" cy=\"44\" r=\"4.5\" fill=\"var(--k-accent)\"\/><circle cx=\"244\" cy=\"30\" r=\"4.5\" fill=\"var(--k-accent)\"\/><circle cx=\"286\" cy=\"22\" r=\"4.5\" fill=\"var(--k-accent)\"\/>\n    <text x=\"30\" y=\"162\" font-size=\"9.5\" fill=\"var(--k-ink-3)\">Ad spend \u2192<\/text>\n    <text x=\"308\" y=\"162\" font-size=\"9.5\" fill=\"var(--k-ink-3)\" text-anchor=\"end\">Signups \u2191<\/text>\n  <\/svg>\n  <figcaption><span class=\"cap\">Last 12 weeks<\/span><span class=\"lg\"><span><i style=\"background:var(--k-ink-3)\"><\/i>Organic<\/span><span><i style=\"background:var(--k-accent)\"><\/i>Paid social<\/span><\/span><\/figcaption>\n<\/figure>"}],"meta":{"status":"beta","usage":"For correlation questions: spend vs. return, price vs. rating. If the reader only needs one measure over time, that is a Line Chart; this is for two measures at once.","accessibility":"The figure carries the conclusion in its label (\"spend and signups rise together\"), because a dot cloud cannot be read point by point by ear."},"audit":{"id":"components\/scatter-chart","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"sparkline","type":"registry:component","title":"Sparkline","description":"A chart the size of a word \u2014 trend without axes, made to sit inside a sentence or a stat.","categories":["Display & Media"],"dependencies":["badge","stat"],"files":[{"path":"components\/sparkline\/sparkline.css","type":"registry:component","content":"\/* KATA sparkline 1.1.0 \u2014 kata-ui.dev\/components\/sparkline \u2014 requires mold >= 4 *\/\n.k-spark{display:inline-flex;align-items:center;gap:var(--k-space-3);font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n"},{"path":"components\/sparkline\/example.html","type":"registry:component","content":"<!-- KATA sparkline 1.1.0 \u2014 kata-ui.dev\/components\/sparkline \u2014 requires mold >= 4 -->\n<div style=\"display:flex;gap:var(--k-space-6);flex-wrap:wrap\">\n  <div>\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Weekly signups<\/div><div class=\"k-stat-val\">1,284<\/div><\/div>\n    <span class=\"k-spark\" role=\"img\" aria-label=\"Trend: rising over the last 12 weeks\" style=\"margin-top:var(--k-space-2)\">\n      <svg width=\"104\" height=\"30\" viewBox=\"0 0 104 30\" role=\"presentation\"><polyline points=\"2,24 12,22 22,23 32,18 42,19 52,14 62,15 72,10 82,11 92,6 102,4\" fill=\"none\" stroke=\"var(--k-accent)\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><circle cx=\"102\" cy=\"4\" r=\"3.5\" fill=\"var(--k-core)\"\/><\/svg>\n      <span class=\"badge asagi\"><i><\/i>\u2191 18%<\/span>\n    <\/span>\n  <\/div>\n  <div>\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Churn<\/div><div class=\"k-stat-val\">1.9%<\/div><\/div>\n    <span class=\"k-spark\" role=\"img\" aria-label=\"Trend: falling over the last 12 weeks\" style=\"margin-top:var(--k-space-2)\">\n      <svg width=\"104\" height=\"30\" viewBox=\"0 0 104 30\" role=\"presentation\"><polyline points=\"2,6 12,8 22,7 32,11 42,10 52,14 62,13 72,18 82,17 92,22 102,24\" fill=\"none\" stroke=\"var(--k-accent)\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><circle cx=\"102\" cy=\"24\" r=\"3.5\" fill=\"var(--k-core)\"\/><\/svg>\n      <span class=\"badge\"><i><\/i>\u2193 0.4pt<\/span>\n    <\/span>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Next to a number that needs a direction: this week vs. the trend. It deliberately has no axes; if the reader needs values, give them the Line Chart.","accessibility":"Decorative by design \u2014 the number and delta beside it carry the meaning, and the figure label repeats the trend in words."},"audit":{"id":"components\/sparkline","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"stat","type":"registry:component","title":"Stat","description":"One number, its name, and which way it moved. Tabular figures, quiet deltas.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/stat\/stat.css","type":"registry:component","content":"\/* KATA stat 1.1.0 \u2014 kata-ui.dev\/components\/stat \u2014 requires mold >= 4 *\/\n\/* KATA Stat *\/\n.k-stat{font-family:var(--k-font);min-width:0}\n.k-stat .k-stat-lbl{font-size:var(--k-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--k-ink-3)}\n.k-stat .k-stat-val{margin-top:var(--k-space-1);font-size:var(--k-text-2xl);font-weight:600;letter-spacing:-.02em;color:var(--k-ink);font-variant-numeric:tabular-nums}\n.k-stat .k-stat-delta{display:inline-flex;align-items:center;gap:var(--k-space-1);margin-top:var(--k-space-1);padding:var(--k-space-0-5) var(--k-space-2);border-radius:var(--k-radius-full);font-size:var(--k-text-xs);font-weight:550;background:var(--k-accent-bg);color:var(--k-accent-ink)}\n.k-stat .k-stat-delta[data-dir=\"down\"]{background:var(--k-danger-bg);color:var(--k-danger-ink)}\n"},{"path":"components\/stat\/example.html","type":"registry:component","content":"<!-- KATA stat 1.1.0 \u2014 kata-ui.dev\/components\/stat \u2014 requires mold >= 4 -->\n<div style=\"width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:var(--k-space-5);max-width:520px\">\n  <div class=\"k-stat\"><div class=\"k-stat-lbl\">Active users<\/div><div class=\"k-stat-val\">8,412<\/div><span class=\"k-stat-delta\">\u2191 12.4% vs last week<\/span><\/div>\n  <div class=\"k-stat\"><div class=\"k-stat-lbl\">Exports<\/div><div class=\"k-stat-val\">1,204<\/div><span class=\"k-stat-delta\" data-dir=\"down\">\u2193 3.1% vs last week<\/span><\/div>\n  <div class=\"k-stat\"><div class=\"k-stat-lbl\">Uptime<\/div><div class=\"k-stat-val\">99.98%<\/div><span class=\"k-stat-delta\">\u2191 0.02 pt vs last week<\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For dashboards and summaries. One stat per idea; the delta always names its period in the label or title. Green means better: for costs, a decrease is green.","accessibility":"The delta's direction is in the text (the arrow and the sign), never color alone."},"audit":{"id":"components\/stat","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"table","type":"registry:component","title":"Table","description":"The admin staple \u2014 a quiet header, hairline rows, and a Badge for status.","categories":["Display & Media"],"dependencies":["badge"],"files":[{"path":"components\/table\/table.css","type":"registry:component","content":"\/* KATA table 1.1.0 \u2014 kata-ui.dev\/components\/table \u2014 requires mold >= 2 *\/\n.ktable-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--k-line);border-radius:var(--k-radius-lg);background:var(--k-bg)}\n.ktable{width:100%;border-collapse:collapse;background:var(--k-bg);font-size:var(--k-text-base);font-family:var(--k-font)}\n.ktable th{text-align:start;font-size:var(--k-text-xs);letter-spacing:.05em;color:var(--k-ink-3);font-weight:600;background:var(--k-bg-soft);padding:var(--k-space-2) var(--k-space-3);border-bottom:1px solid var(--k-line)}\n.ktable td{padding:var(--k-space-3) var(--k-space-3);border-bottom:1px solid var(--k-line);color:var(--k-ink-2)}\n.ktable tr:last-child td{border-bottom:0}\n.ktable td:first-child{color:var(--k-ink);font-weight:500}\n.ktable .ava{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--k-accent-bg-strong);color:var(--k-accent-ink);font-size:var(--k-text-xs);font-weight:600;margin-inline-end:var(--k-space-2);vertical-align:middle}\n\/* Numbers: end-aligned with equal-width digits so columns of amounts line up. *\/\n.ktable .num{text-align:end;font-variant-numeric:tabular-nums}\n"},{"path":"components\/table\/example.html","type":"registry:component","content":"<!-- KATA table 1.1.0 \u2014 kata-ui.dev\/components\/table \u2014 requires mold >= 2 -->\n<div class=\"ktable-wrap\" role=\"region\" aria-label=\"Projects\" tabindex=\"0\">\n<table class=\"ktable\">\n  <thead><tr><th scope=\"col\">Project<\/th><th scope=\"col\">Owner<\/th><th scope=\"col\">Status<\/th><th scope=\"col\" class=\"num\">Amount<\/th><\/tr><\/thead>\n  <tbody>\n  <tr><td>Product launch<\/td><td><span class=\"ava\" aria-hidden=\"true\">YM<\/span>Yamada<\/td><td><span class=\"badge asagi\"><i><\/i>Confirmed<\/span><\/td><td class=\"num\">$860<\/td><\/tr>\n  <tr><td>Conference \u2014 live day<\/td><td><span class=\"ava\" aria-hidden=\"true\">ST<\/span>Sato<\/td><td><span class=\"badge yamabuki\"><i><\/i>Preparing<\/span><\/td><td class=\"num\">$3,200<\/td><\/tr>\n  <tr><td>Expo booth<\/td><td><span class=\"ava\" aria-hidden=\"true\">SZ<\/span>Suzuki<\/td><td><span class=\"badge\"><i><\/i>Draft<\/span><\/td><td class=\"num\">$545<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<\/div>"}],"meta":{"status":"beta","usage":"Left-align text, right-align numbers with .num on the th and td (end-aligned, tabular digits). Keep row actions at the far right. Put the header row in <thead> with scope=\"col\".","accessibility":"Real <table> with a <thead> of scope=\"col\" headers so screen readers can navigate by row and column. The scrolling wrapper is a named region with tabindex=\"0\", so keyboard users can scroll a table wider than the screen with the arrow keys; give each region its own aria-label. Avatar initials are aria-hidden so the owner cell reads as the name. Header text (ink-3 on bg-soft) measures 4.51:1 light and 4.71:1 dark. Beta until a recorded screen-reader pass."},"audit":{"id":"components\/table","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"timeline","type":"registry:component","title":"Timeline","description":"Events on a rail, newest last. The current step carries the core.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/timeline\/timeline.css","type":"registry:component","content":"\/* KATA timeline 1.1.0 \u2014 kata-ui.dev\/components\/timeline \u2014 requires mold >= 4 *\/\n\/* KATA Timeline *\/\n.k-timeline{list-style:none;font-family:var(--k-font)}\n.k-timeline li{position:relative;padding:0 0 var(--k-space-4) var(--k-space-5)}\n.k-timeline li::before{content:\"\";position:absolute;left:0;top:3px;width:9px;height:9px;border-radius:50%;background:var(--k-bg);border:2px solid var(--k-border-strong)}\n.k-timeline li::after{content:\"\";position:absolute;left:4px;top:16px;bottom:-2px;width:1px;background:var(--k-line)}\n.k-timeline li:last-child{padding-bottom:0}\n.k-timeline li:last-child::after{display:none}\n.k-timeline li[data-now]::before{background:var(--k-core);border-color:var(--k-core)}\n.k-timeline time{display:block;font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3);margin-bottom:var(--k-space-px)}\n.k-timeline b{display:block;font-size:var(--k-text-base);font-weight:550;color:var(--k-ink)}\n.k-timeline p{font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-body);letter-spacing:.01em}\n"},{"path":"components\/timeline\/example.html","type":"registry:component","content":"<!-- KATA timeline 1.1.0 \u2014 kata-ui.dev\/components\/timeline \u2014 requires mold >= 4 -->\n<ol class=\"k-timeline\" style=\"max-width:400px\">\n  <li><time>09:41<\/time><b>Build passed<\/b><p>128 files compiled with no warnings.<\/p><\/li>\n  <li data-now><time>09:43<\/time><b>Deploying \u2014 current step<\/b><p>Uploading to production.<\/p><\/li>\n  <li><time>\u2014<\/time><b>Cache purge<\/b><p>Queued.<\/p><\/li>\n<\/ol>"}],"meta":{"status":"beta","usage":"For histories, delivery steps and changelogs. Times in mono, one line per event; if an event needs a paragraph, it belongs somewhere else.","accessibility":"An ordered list in chronological order. The current step is marked with data-now and announced in its text, not by color alone."},"audit":{"id":"components\/timeline","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"torn-ticket","type":"registry:component","title":"Torn Ticket","description":"A ticket with a real perforation: notched edges, a dashed tear line, and a stub that keeps the code.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/torn-ticket\/torn-ticket.css","type":"registry:component","content":"\/* KATA torn-ticket 1.1.0 \u2014 kata-ui.dev\/components\/torn-ticket \u2014 requires mold >= 4 *\/\n\/* KATA Torn Ticket \u2014 perforation by mask, stub by flex. *\/\n.k-tick{--px:calc(100% - 98px);display:flex;width:100%;max-width:520px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);font-family:var(--k-font);color:var(--k-ink);transform:rotate(-1.1deg);box-shadow:var(--k-shadow-pop);\n  -webkit-mask:radial-gradient(circle 10px at var(--px) 0, transparent 10px, #000 11px), radial-gradient(circle 10px at var(--px) 100%, transparent 10px, #000 11px);\n  -webkit-mask-composite:source-in;\n  mask:radial-gradient(circle 10px at var(--px) 0, transparent 10px, #000 11px), radial-gradient(circle 10px at var(--px) 100%, transparent 10px, #000 11px);\n  mask-composite:intersect}\n.k-tick-main{flex:1;padding:var(--k-space-5) var(--k-space-5);min-width:0}\n.k-tick-main .ev{font-size:var(--k-text-xs);font-weight:650;letter-spacing:.16em;color:var(--k-accent-ink)}\n.k-tick-main h3{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.015em;margin:var(--k-space-1) 0 var(--k-space-1)}\n.k-tick-main p{font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-body);letter-spacing:.01em}\n.k-tick-stub{flex:none;width:98px;border-inline-start:2px dashed var(--k-zinc-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-2);text-align:center}\n.k-tick-stub .code{font-size:var(--k-text-md);font-weight:700;letter-spacing:.1em}\n.k-tick-stub .lbl{font-size:var(--k-text-xs);letter-spacing:.14em;color:var(--k-ink-3)}\n.k-tick-bar{width:64px;height:26px;background:repeating-linear-gradient(90deg, var(--k-ink) 0 2px, transparent 2px 5px, var(--k-ink) 5px 6px, transparent 6px 10px, var(--k-ink) 10px 13px, transparent 13px 16px)}\n@media (max-width:460px){.k-tick{--px:calc(100% - 84px)}.k-tick-stub{width:84px}}\n"},{"path":"components\/torn-ticket\/example.html","type":"registry:component","content":"<!-- KATA torn-ticket 1.1.0 \u2014 kata-ui.dev\/components\/torn-ticket \u2014 requires mold >= 4 -->\n<div style=\"padding:var(--k-space-3) var(--k-space-2)\">\n  <div class=\"k-tick\">\n    <div class=\"k-tick-main\">\n      <p class=\"ev\">NORTHWIND HALL \u00b7 LIVE<\/p>\n      <h3>Winter Sessions \u2014 Night Two<\/h3>\n      <p>Sat, Dec 12 \u00b7 Doors 18:30 \u00b7 Show 19:00<br>General admission \u00b7 Row GA \u00b7 Seat 114<\/p>\n    <\/div>\n    <div class=\"k-tick-stub\">\n      <span class=\"lbl\">ADMIT ONE<\/span>\n      <span class=\"code\">NW-2417<\/span>\n      <span class=\"k-tick-bar\" aria-hidden=\"true\"><\/span>\n      <span class=\"lbl\">$48.00<\/span>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For tickets, coupons and boarding-pass moments in interfaces: the notches are cut by CSS masks at the tear line, the line itself is dashed, and the stub carries the code and the barcode. Slightly rotated on the page, it reads as paper; at zero degrees, as policy. The tear is visual \u2014 pair it with a real \"use coupon\" action.","accessibility":"Everything on the ticket is ordinary text in reading order \u2014 event, seat, code \u2014 and the perforation is mask paint that assistive technology never meets. Do not encode the only copy of a code in the barcode stripes; they are decorative, and the digits sit beside them."},"audit":{"id":"components\/torn-ticket","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"typeset","type":"registry:component","title":"Typeset","description":"Long-form text as one cast part: eyebrow, headings, lead, body, lists, quotes and code on a single type scale.","categories":["Display & Media"],"dependencies":[],"files":[{"path":"components\/typeset\/typeset.css","type":"registry:component","content":"\/* KATA typeset 1.1.0 \u2014 kata-ui.dev\/components\/typeset \u2014 requires mold >= 5 *\/\n\/* KATA Typeset \u2014 one wrapper, semantic children, a single type scale *\/\n.k-type{color:var(--k-ink);font-size:var(--k-text-lead);line-height:var(--k-lh-body);max-width:68ch;letter-spacing:.012em}\n.k-type .eyebrow{font-size:var(--k-text-xs);font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--k-accent-ink);margin:0 0 var(--k-space-2);line-height:var(--k-lh-card)}\n.k-type h1{font-size:var(--k-text-3xl);line-height:var(--k-lh-heading);font-weight:650;letter-spacing:-.01em;margin:0 0 var(--k-space-2)}\n.k-type h2{font-size:var(--k-text-xl);line-height:var(--k-lh-card);font-weight:650;margin:var(--k-space-7) 0 var(--k-space-2);padding-top:var(--k-space-5);border-top:1px solid var(--k-line);letter-spacing:-.015em}\n.k-type h3{font-size:var(--k-text-lg);line-height:var(--k-lh-card);font-weight:600;margin:var(--k-space-5) 0 var(--k-space-1)}\n.k-type p{margin:0 0 var(--k-space-3)}\n.k-type .lead{font-size:var(--k-text-lg);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-bottom:var(--k-space-4)}\n.k-type a{color:var(--k-accent-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--k-accent-line)}\n.k-type strong{font-weight:650}\n.k-type code{font-family:var(--k-mono);font-size:var(--k-text-code);background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-sm);padding:var(--k-space-px) var(--k-space-1);white-space:nowrap}\n.k-type ul,.k-type ol{margin:0 0 var(--k-space-3);padding-inline-start:var(--k-space-5)}\n.k-type li{margin:var(--k-space-1) 0}\n.k-type li::marker{color:var(--k-ink-3)}\n.k-type blockquote{margin:var(--k-space-4) 0;padding:var(--k-space-0-5) 0 var(--k-space-0-5) var(--k-space-4);border-inline-start:2px solid var(--k-accent);color:var(--k-ink-2);font-size:var(--k-text-lead);line-height:var(--k-lh-body)}\n.k-type blockquote p{margin:0}\n.k-type hr{border:0;border-top:1px solid var(--k-line);margin:var(--k-space-6) 0}\n.k-type .fine{font-size:var(--k-text-sm);color:var(--k-ink-3);line-height:var(--k-lh-body)}\n"},{"path":"components\/typeset\/example.html","type":"registry:component","content":"<!-- KATA typeset 1.1.0 \u2014 kata-ui.dev\/components\/typeset \u2014 requires mold >= 5 -->\n<article class=\"k-type\">\n  <p class=\"eyebrow\">Guides<\/p>\n  <h1>Designing with one mold<\/h1>\n  <p class=\"lead\">Every part in a KATA interface is cast from the same mold, so a page assembled from them holds together without a design review for every screen.<\/p>\n  <p>The mold fixes the things teams usually re-decide: the <strong>spacing rhythm<\/strong>, the type scale, and which color is allowed to mean <em>action<\/em>. What stays free is the content. See the <a href=\"#\">notes on the mold<\/a> for the full reasoning, or run <code>kata-ui add typeset<\/code> and write.<\/p>\n  <h2>The rule of three shapes<\/h2>\n  <p>Glyphs and parts are drawn from three shapes only, which is why things that were never designed together still look related:<\/p>\n  <ul>\n    <li>The circle \u2014 dots, knobs, avatars, the core of a switch<\/li>\n    <li>The 45\u00b0 line \u2014 arrows, checks, the cut of a corner<\/li>\n    <li>The r2 corner \u2014 every radius in the system, no exceptions<\/li>\n  <\/ul>\n  <blockquote><p>A constraint you can state in one sentence is a constraint a whole team can keep.<\/p><\/blockquote>\n  <h3>In practice<\/h3>\n  <p>When a new part is needed, it is drawn on the same grid and checked against the mold before it ships. If it cannot be drawn from the three shapes, the shape set is wrong \u2014 not the part.<\/p>\n  <hr>\n  <p class=\"fine\">Working notes from the KATA studio. Examples here are illustrative; names and products are fictional.<\/p>\n<\/article>"}],"meta":{"status":"beta","usage":"Wrap any article, doc or changelog body in .k-type and write plain semantic HTML inside \u2014 h1\/h2\/h3, p, ul, blockquote, code. Add .lead to the first paragraph and .eyebrow above the title. One wrapper, no per-element classes.","accessibility":"Keep a real heading order (one h1, h2 before h3) and let the text be the link text \u2014 'read the migration guide', never 'click here'. The measure caps at 68ch so lines stay readable."},"audit":{"id":"components\/typeset","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":5},{"name":"accordion-gallery","type":"registry:component","title":"Accordion Gallery","description":"Five scenes in a row; the one you touch opens up and tells its caption.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/accordion-gallery\/accordion-gallery.css","type":"registry:component","content":"\/* KATA accordion-gallery 1.1.0 \u2014 kata-ui.dev\/components\/accordion-gallery \u2014 requires mold >= 2 *\/\n\/* KATA Accordion Gallery \u2014 the touched panel takes the room. *\/\n.k-gal{display:flex;gap:8px;width:100%;height:238px;font-family:var(--k-font)}\n.k-gal-p{position:relative;flex:1;border-radius:13px;overflow:hidden;transition:flex calc(.55s * var(--k-mscale)) var(--k-ease-in-out);cursor:pointer;outline-offset:2px}\n.k-gal-p:hover,.k-gal-p:focus-visible{flex:3.1}\n.k-gal-p .t{position:absolute;left:13px;bottom:12px;writing-mode:vertical-rl;transform:rotate(180deg);color:var(--k-on-color);font-size:12.5px;font-weight:650;letter-spacing:.16em}\n.k-gal-p .c{position:absolute;left:15px;bottom:13px;right:14px;color:var(--k-on-color);font-size:13.5px;font-weight:550;opacity:0;transition:opacity calc(.3s * var(--k-mscale)) calc(.18s * var(--k-mscale))}\n.k-gal-p:hover .c,.k-gal-p:focus-visible .c{opacity:1}\n.k-gal-p:hover .t,.k-gal-p:focus-visible .t{opacity:0}\n@media (prefers-reduced-motion:reduce){.k-gal-p{transition:none}.k-gal-p .c{transition:none}}\n"},{"path":"components\/accordion-gallery\/example.html","type":"registry:component","content":"<!-- KATA accordion-gallery 1.1.0 \u2014 kata-ui.dev\/components\/accordion-gallery \u2014 requires mold >= 2 -->\n<div class=\"k-gal\">\n  <div class=\"k-gal-p\" tabindex=\"0\" style=\"background:linear-gradient(165deg, var(--k-zinc-700), var(--k-zinc-950))\"><span class=\"t\">North<\/span><span class=\"c\">The night shift, distilled.<\/span><\/div>\n  <div class=\"k-gal-p\" tabindex=\"0\" style=\"background:linear-gradient(165deg, var(--k-accent), var(--k-zinc-950))\"><span class=\"t\">Lagoon<\/span><span class=\"c\">Asagi, all the way down.<\/span><\/div>\n  <div class=\"k-gal-p\" tabindex=\"0\" style=\"background:linear-gradient(165deg, var(--k-zinc-400), var(--k-zinc-800))\"><span class=\"t\">Fog<\/span><span class=\"c\">A landscape withholding.<\/span><\/div>\n  <div class=\"k-gal-p\" tabindex=\"0\" style=\"background:linear-gradient(165deg, var(--k-yamabuki-ink), var(--k-zinc-950))\"><span class=\"t\">Ember<\/span><span class=\"c\">The last warm hour.<\/span><\/div>\n  <div class=\"k-gal-p\" tabindex=\"0\" style=\"background:linear-gradient(165deg, var(--k-zinc-900), var(--k-zinc-950))\"><span class=\"t\">Vault<\/span><span class=\"c\">Mostly shadow, some door.<\/span><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"A flex row where the hovered (or focused) panel takes three times the room and its caption fades in. The scenes here are gradients, but photographs slot straight in. A staple of landing pages because it shows five things and describes one \u2014 exactly the right ratio.","accessibility":"Panels are focusable and expand on focus as well as hover, so the keyboard gets the same gallery. Captions are real text inside each panel, present in the reading order whether or not the panel is open."},"audit":{"id":"components\/accordion-gallery","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/accordion-gallery\/accordion-gallery.css: gap: 8px [spacing] \u2014 raw spacing: 8px"],"profile":"lab","details":[{"path":"components\/accordion-gallery\/accordion-gallery.css","property":"gap","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/accordion-gallery\/accordion-gallery.css: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/accordion-gallery\/accordion-gallery.css: font-size: 13.5px [type] \u2014 raw type: 13.5px"],"profile":"lab","details":[{"path":"components\/accordion-gallery\/accordion-gallery.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/accordion-gallery\/accordion-gallery.css","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"aurora","type":"registry:component","title":"Aurora","description":"A slow wash of color behind a hero \u2014 the accent and the core, drifting under glass.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/aurora\/aurora.css","type":"registry:component","content":"\/* KATA aurora 1.1.0 \u2014 kata-ui.dev\/components\/aurora \u2014 requires mold >= 2 *\/\n.k-aurora{width:100%;position:relative;overflow:hidden;border-radius:14px;background:var(--k-zinc-950);color:var(--k-on-color);font-family:var(--k-font)}\n.k-aurora i{position:absolute;border-radius:50%;filter:blur(34px);display:block;will-change:transform}\n.k-aurora .b1{width:230px;height:230px;left:-50px;top:-70px;background:color-mix(in srgb,var(--k-accent) 65%,transparent);animation:k-aur-a calc(9s * var(--k-mscale)) var(--k-ease) infinite alternate}\n.k-aurora .b2{width:190px;height:190px;right:-40px;bottom:-80px;background:color-mix(in srgb,var(--k-core) 55%,transparent);animation:k-aur-b calc(12s * var(--k-mscale)) var(--k-ease) infinite alternate}\n.k-aurora .b3{width:150px;height:150px;right:28%;top:-50px;background:color-mix(in srgb,var(--k-accent-ink) 45%,transparent);animation:k-aur-c calc(11s * var(--k-mscale)) var(--k-ease) infinite alternate}\n.k-aurora-in{position:relative;padding:28px;text-align:left}\n.k-aurora-in h3{font-size:19px;font-weight:600;letter-spacing:-.015em}\n.k-aurora-in p{margin-top:7px;font-size:13.5px;line-height:1.8;color:var(--k-zinc-300);max-width:34ch;letter-spacing:.012em}\n@keyframes k-aur-a{from{transform:translate(0,0) scale(1)}to{transform:translate(96px,46px) scale(1.22)}}\n@keyframes k-aur-b{from{transform:translate(0,0) scale(1.12)}to{transform:translate(-80px,-42px) scale(.94)}}\n@keyframes k-aur-c{from{transform:translate(0,0) scale(1)}to{transform:translate(-64px,38px) scale(1.18)}}\n@media (prefers-reduced-motion:reduce){.k-aurora i{animation:none}}\n.k-aurora-pat{position:absolute;top:0;left:0;width:calc(100% + 56px);height:100%;color:var(--k-on-color);opacity:.16;animation:k-aur-pat calc(26s * var(--k-mscale)) linear infinite alternate}\n@keyframes k-aur-pat{from{transform:translateX(0)}to{transform:translateX(-56px)}}\n@media (prefers-reduced-motion:reduce){.k-aurora-pat{animation:none}}\n"},{"path":"components\/aurora\/example.html","type":"registry:component","content":"<!-- KATA aurora 1.1.0 \u2014 kata-ui.dev\/components\/aurora \u2014 requires mold >= 2 -->\n<div class=\"k-aurora\" style=\"max-width:430px\">\n  <i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i>\n  <div class=\"k-aurora-in\">\n    <h3>Ship the calm version<\/h3>\n    <p>A slow wash of the accent and the core, moving behind whatever the hero needs to say.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"As the backdrop of a hero or a featured card. Use it as a background surface: keep the text on top short and let the wash move.","accessibility":"Pure CSS. Under prefers-reduced-motion the wash holds still; text contrast comes from the dark ground, not the moving color."},"audit":{"id":"components\/aurora","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/aurora\/aurora.css: padding: 28px [spacing] \u2014 raw spacing: 28px","components\/aurora\/aurora.css: margin-top: 7px [spacing] \u2014 raw spacing: 7px"],"profile":"lab","details":[{"path":"components\/aurora\/aurora.css","property":"padding","value":"28px","kind":"spacing","reasons":["raw spacing: 28px"]},{"path":"components\/aurora\/aurora.css","property":"margin-top","value":"7px","kind":"spacing","reasons":["raw spacing: 7px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/aurora\/aurora.css: font-size: 19px [type] \u2014 raw type: 19px","components\/aurora\/aurora.css: font-size: 13.5px [type] \u2014 raw type: 13.5px","components\/aurora\/aurora.css: line-height: 1.8 [type] \u2014 raw type: 1.8"],"profile":"lab","details":[{"path":"components\/aurora\/aurora.css","property":"font-size","value":"19px","kind":"type","reasons":["raw type: 19px"]},{"path":"components\/aurora\/aurora.css","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]},{"path":"components\/aurora\/aurora.css","property":"line-height","value":"1.8","kind":"type","reasons":["raw type: 1.8"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"beam-border","type":"registry:component","title":"Beam border","description":"A single point of light travels the edge of a card. The beam is the core color \u2014 the one accent, in motion.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/beam-border\/beam-border.css","type":"registry:component","content":"\/* KATA beam-border 1.1.0 \u2014 kata-ui.dev\/components\/beam-border \u2014 requires mold >= 2 *\/\n\/* KATA Beam border *\/\n@property --k-angle { syntax: \"<angle>\"; initial-value: 0deg; inherits: false; }\n.k-beam{position:relative;border-radius:14px;padding:1.5px;background:conic-gradient(from var(--k-angle),transparent 0deg,transparent 255deg,var(--k-core) 305deg,transparent 360deg),linear-gradient(var(--k-line),var(--k-line));animation:k-beam-spin calc(4.5s * var(--k-mscale)) linear infinite}\n.k-beam-in{border-radius:12.5px;background:var(--k-bg);padding:20px}\n@keyframes k-beam-spin{to{--k-angle:360deg}}\n@media (prefers-reduced-motion: reduce){.k-beam{animation:none}}\n"},{"path":"components\/beam-border\/example.html","type":"registry:component","content":"<!-- KATA beam-border 1.1.0 \u2014 kata-ui.dev\/components\/beam-border \u2014 requires mold >= 2 -->\n<div class=\"k-beam\" style=\"max-width:400px\">\n  <div class=\"k-beam-in\">\n    <p style=\"font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--k-accent-ink)\">FEATURED<\/p>\n    <p style=\"font-size:16.5px;font-weight:600;margin-top:7px\">Studio plan<\/p>\n    <p style=\"font-size:13px;color:var(--k-ink-2);line-height:1.7;margin-top:5px;letter-spacing:.01em\">Every component, every block, and the motion line \u2014 cast from the same mold.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For the one card on the page that deserves attention \u2014 a featured plan, a key upgrade. If two beams are visible at once, both stop working.","accessibility":"Pure decoration: the card's content carries all meaning. The animation is removed under prefers-reduced-motion; in browsers without @property the border rests, still complete."},"audit":{"id":"components\/beam-border","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/beam-border\/beam-border.css: padding: 1.5px [spacing] \u2014 raw spacing: 1.5px","components\/beam-border\/beam-border.css: padding: 20px [spacing] \u2014 raw spacing: 20px","components\/beam-border\/preview.html: margin-top: 7px [spacing] \u2014 raw spacing: 7px","components\/beam-border\/preview.html: margin-top: 5px [spacing] \u2014 raw spacing: 5px"],"profile":"lab","details":[{"path":"components\/beam-border\/beam-border.css","property":"padding","value":"1.5px","kind":"spacing","reasons":["raw spacing: 1.5px"]},{"path":"components\/beam-border\/beam-border.css","property":"padding","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]},{"path":"components\/beam-border\/preview.html","property":"margin-top","value":"7px","kind":"spacing","reasons":["raw spacing: 7px"]},{"path":"components\/beam-border\/preview.html","property":"margin-top","value":"5px","kind":"spacing","reasons":["raw spacing: 5px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/beam-border\/preview.html: font-size: 11px [type] \u2014 raw type: 11px","components\/beam-border\/preview.html: font-size: 16.5px [type] \u2014 raw type: 16.5px","components\/beam-border\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/beam-border\/preview.html: line-height: 1.7 [type] \u2014 raw type: 1.7"],"profile":"lab","details":[{"path":"components\/beam-border\/preview.html","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/beam-border\/preview.html","property":"font-size","value":"16.5px","kind":"type","reasons":["raw type: 16.5px"]},{"path":"components\/beam-border\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/beam-border\/preview.html","property":"line-height","value":"1.7","kind":"type","reasons":["raw type: 1.7"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"blur-in","type":"registry:component","title":"Blur In","description":"Words arrive out of focus and sharpen one after another, like eyes adjusting.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/blur-in\/blur-in.css","type":"registry:component","content":"\/* KATA blur-in 1.1.0 \u2014 kata-ui.dev\/components\/blur-in \u2014 requires mold >= 2 *\/\n\/* KATA Blur In \u2014 words sharpening in sequence. *\/\n.k-blur{font-family:var(--k-font)}\n.k-blur .w{display:inline-block;opacity:0;filter:blur(9px);transform:translateY(7px);animation:k-blur-in calc(.7s * var(--k-mscale)) var(--k-ease) forwards}\n@keyframes k-blur-in{to{opacity:1;filter:blur(0);transform:none}}\n@media (prefers-reduced-motion:reduce){.k-blur .w{animation:none;opacity:1;filter:none;transform:none}}\n"},{"path":"components\/blur-in\/blur-in.js","type":"registry:component","content":"\/* KATA blur-in 1.1.0 \u2014 kata-ui.dev\/components\/blur-in \u2014 requires mold >= 2 *\/\n\/\/ KATA Blur In \u2014 splits the words, staggers the sharpening.\ndocument.querySelectorAll('[data-blur]').forEach(function (el) {\n  var words = el.textContent.trim().split(\/\\s+\/);\n  el.textContent = '';\n  words.forEach(function (word, i) {\n    var s = document.createElement('span');\n    s.className = 'w';\n    s.textContent = word;\n    s.style.animationDelay = (i * 90) + 'ms';\n    el.appendChild(s);\n    el.appendChild(document.createTextNode(' '));\n  });\n});\n"},{"path":"components\/blur-in\/example.html","type":"registry:component","content":"<!-- KATA blur-in 1.1.0 \u2014 kata-ui.dev\/components\/blur-in \u2014 requires mold >= 2 -->\n<p class=\"k-blur\" data-blur style=\"font-size:23px;font-weight:650;letter-spacing:-.02em;line-height:1.4;max-width:440px\">Every part in this catalog was cast from a single mold.<\/p>"}],"meta":{"status":"beta","usage":"For the one sentence a page opens with. The script splits the element\u2019s words into spans and staggers their sharpening; run it once, on load or on scroll into view \u2014 a headline that re-blurs on every visit is a jump scare. Pairs well with restraint everywhere else.","accessibility":"The words are all in the DOM from the start, in order \u2014 screen readers read the whole sentence once. Under prefers-reduced-motion nothing blurs: the words simply stand there, which is what they were doing anyway."},"audit":{"id":"components\/blur-in","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/blur-in\/examples.html: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/blur-in\/examples.html: line-height: 1.85 [type] \u2014 raw type: 1.85","components\/blur-in\/preview.html: font-size: 23px [type] \u2014 raw type: 23px","components\/blur-in\/preview.html: line-height: 1.4 [type] \u2014 raw type: 1.4"],"profile":"lab","details":[{"path":"components\/blur-in\/examples.html","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/blur-in\/examples.html","property":"line-height","value":"1.85","kind":"type","reasons":["raw type: 1.85"]},{"path":"components\/blur-in\/preview.html","property":"font-size","value":"23px","kind":"type","reasons":["raw type: 23px"]},{"path":"components\/blur-in\/preview.html","property":"line-height","value":"1.4","kind":"type","reasons":["raw type: 1.4"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"burst-button","type":"registry:component","title":"Burst Button","description":"A real call-to-action that answers a click with a burst of sparks \u2014 feedback you can see from across the room.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/burst-button\/burst-button.css","type":"registry:component","content":"\/* KATA burst-button 1.1.0 \u2014 kata-ui.dev\/components\/burst-button \u2014 requires mold >= 2 *\/\n\/* KATA Burst Button \u2014 a CTA with visible punctuation. *\/\n.k-burst{position:relative;display:inline-block;font-family:var(--k-font)}\n.k-burst canvas{position:absolute;inset:-70px -90px;width:calc(100% + 180px);height:calc(100% + 140px);pointer-events:none}\n.k-burst-btn{position:relative;z-index:1;background:var(--k-ink);color:var(--k-bg);border:0;font-family:inherit;font-size:14.5px;font-weight:650;padding:13px 26px;border-radius:11px;cursor:pointer;transition:transform calc(.12s * var(--k-mscale))}\n.k-burst-btn:active{transform:scale(.96)}\n.k-burst-btn.asagi{background:var(--k-accent);color:var(--k-on-accent)}\n"},{"path":"components\/burst-button\/burst-button.js","type":"registry:component","content":"\/* KATA burst-button 1.1.0 \u2014 kata-ui.dev\/components\/burst-button \u2014 requires mold >= 2 *\/\n\/\/ KATA Burst Button \u2014 sparks from the point of the click.\ndocument.querySelectorAll('[data-burst]').forEach(function (wrap) {\n  var canvas = wrap.querySelector('canvas');\n  var btn = wrap.querySelector('.k-burst-btn');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var cs = getComputedStyle(wrap);\n  var COLORS = ['--k-accent', '--k-ink', '--k-zinc-400'].map(function (v) { return cs.getPropertyValue(v).trim(); }).filter(Boolean);\n  var parts = [], raf = null, W = 0, H = 0;\n  function size() { W = wrap.offsetWidth + 180; H = wrap.offsetHeight + 140; canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0); }\n  function fire(cx, cy) {\n    if (reduced) return;\n    size();\n    var r = wrap.getBoundingClientRect();\n    var ox = cx != null ? cx - r.left + 90 : W \/ 2;\n    var oy = cy != null ? cy - r.top + 70 : H \/ 2;\n    for (var i = 0; i < 30; i++) {\n      var a = Math.PI * 2 * Math.random();\n      var sp = 1.4 + Math.random() * 4.4;\n      parts.push({ x: ox, y: oy, vx: Math.cos(a) * sp, vy: Math.sin(a) * sp - .8, life: 1, c: COLORS[i % COLORS.length], s: 2 + Math.random() * 2.6 });\n    }\n    if (!raf) tick();\n  }\n  function tick() {\n    ctx.clearRect(0, 0, W, H);\n    parts = parts.filter(function (p) { return p.life > 0; });\n    parts.forEach(function (p) {\n      p.vy += .11; p.vx *= .985; p.vy *= .985;\n      p.x += p.vx; p.y += p.vy; p.life -= .02;\n      ctx.globalAlpha = Math.max(0, p.life);\n      ctx.fillStyle = p.c;\n      ctx.beginPath(); ctx.arc(p.x, p.y, p.s, 0, 7); ctx.fill();\n    });\n    ctx.globalAlpha = 1;\n    raf = parts.length ? requestAnimationFrame(tick) : null;\n  }\n  btn.addEventListener('click', function (e) { fire(e.clientX, e.clientY); });\n  if ('IntersectionObserver' in window && !reduced) {\n    var io = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { setTimeout(function () { fire(); }, 450); io.disconnect(); } }, { threshold: .6 });\n    io.observe(wrap);\n  }\n  size();\n});\n"},{"path":"components\/burst-button\/example.html","type":"registry:component","content":"<!-- KATA burst-button 1.1.0 \u2014 kata-ui.dev\/components\/burst-button \u2014 requires mold >= 2 -->\n<div style=\"display:flex;gap:26px;flex-wrap:wrap;align-items:center;padding:16px 6px\">\n  <span class=\"k-burst\" data-burst><canvas aria-hidden=\"true\"><\/canvas><button class=\"k-burst-btn\" type=\"button\">Deploy to production<\/button><\/span>\n  <span class=\"k-burst\" data-burst><canvas aria-hidden=\"true\"><\/canvas><button class=\"k-burst-btn asagi\" type=\"button\">Publish the part<\/button><\/span>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3)\">It fires once when it arrives. After that, it answers clicks only.<\/p>"}],"meta":{"status":"beta","usage":"The button is an ordinary primary button; the burst is its click feedback, fired from the exact point of the click, in the token palette. Use it on the one action a page exists for \u2014 deploy, purchase, publish. A burst on every button is a fireworks stall; a burst on the button is punctuation.","accessibility":"The click still does its job with the script removed, and the burst is aria-hidden canvas. Under prefers-reduced-motion there is no burst \u2014 the button relies on its pressed state like its ancestors, which is sufficient because it is, first, a button."},"audit":{"id":"components\/burst-button","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/burst-button\/burst-button.css: inset: -70px -90px [spacing] \u2014 raw spacing: -70px; raw spacing: -90px","components\/burst-button\/burst-button.css: padding: 13px 26px [spacing] \u2014 raw spacing: 13px; raw spacing: 26px","components\/burst-button\/preview.html: gap: 26px [spacing] \u2014 raw spacing: 26px","components\/burst-button\/preview.html: padding: 16px 6px [spacing] \u2014 raw spacing: 16px; raw spacing: 6px"],"profile":"lab","details":[{"path":"components\/burst-button\/burst-button.css","property":"inset","value":"-70px -90px","kind":"spacing","reasons":["raw spacing: -70px","raw spacing: -90px"]},{"path":"components\/burst-button\/burst-button.css","property":"padding","value":"13px 26px","kind":"spacing","reasons":["raw spacing: 13px","raw spacing: 26px"]},{"path":"components\/burst-button\/preview.html","property":"gap","value":"26px","kind":"spacing","reasons":["raw spacing: 26px"]},{"path":"components\/burst-button\/preview.html","property":"padding","value":"16px 6px","kind":"spacing","reasons":["raw spacing: 16px","raw spacing: 6px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/burst-button\/burst-button.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/burst-button\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/burst-button\/burst-button.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/burst-button\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"comparison-slider","type":"registry:component","title":"Comparison Slider","description":"Before and after, one image wide: drag the seam and the second state wipes over the first.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/comparison-slider\/comparison-slider.css","type":"registry:component","content":"\/* KATA comparison-slider 1.1.0 \u2014 kata-ui.dev\/components\/comparison-slider \u2014 requires mold >= 2 *\/\n\/* KATA Comparison Slider \u2014 two states, one seam. *\/\n.k-cmp{--pos:55%;width:100%;position:relative;overflow:hidden;border-radius:var(--k-radius-lg);border:1px solid var(--k-line);font-family:var(--k-font);max-width:520px;aspect-ratio:8\/5;background:var(--k-bg-soft)}\n.k-cmp .layer{position:absolute;inset:0}\n.k-cmp .top{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}\n.k-cmp .tag{position:absolute;top:10px;font-size:11px;font-weight:600;letter-spacing:.06em;padding:3px 9px;border-radius:99px;background:color-mix(in srgb,var(--k-zinc-900) 72%,transparent);color:var(--k-on-color)}\n.k-cmp .tag.l{left:10px}\n.k-cmp .tag.r{right:10px}\n.k-cmp .seam{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:var(--k-on-color);box-shadow:0 0 0 1px color-mix(in srgb,var(--k-zinc-900) 25%,transparent)}\n.k-cmp .grip{position:absolute;top:50%;left:var(--pos);transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:var(--k-on-color);color:var(--k-zinc-900);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px color-mix(in srgb,var(--k-zinc-900) 30%,transparent);pointer-events:none}\n.k-cmp input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}\n\/* The range input is transparent; show its keyboard focus on the visible grip. *\/\n.k-cmp:has(input[type=range]:focus-visible) .grip{outline:2px solid var(--k-zinc-900);outline-offset:2px}\n.k-cmp input[type=range]:focus-visible{outline:none}\n"},{"path":"components\/comparison-slider\/comparison-slider.js","type":"registry:component","content":"\/* KATA comparison-slider 1.1.0 \u2014 kata-ui.dev\/components\/comparison-slider \u2014 requires mold >= 2 *\/\n\/\/ KATA Comparison Slider \u2014 the seam is a range input wearing the picture.\ndocument.querySelectorAll('[data-cmp]').forEach(function (el) {\n  var range = el.querySelector('input[type=range]');\n  function set() { el.style.setProperty('--pos', range.value + '%'); }\n  range.addEventListener('input', set);\n  set();\n});\n"},{"path":"components\/comparison-slider\/example.html","type":"registry:component","content":"<!-- KATA comparison-slider 1.1.0 \u2014 kata-ui.dev\/components\/comparison-slider \u2014 requires mold >= 2 -->\n<div class=\"k-cmp\" data-cmp>\n  <div class=\"layer\"><svg viewBox=\"0 0 400 250\" width=\"100%\" height=\"100%\" preserveAspectRatio=\"none\" aria-hidden=\"true\" style=\"display:block\">\n  <rect width=\"400\" height=\"250\" style=\"fill:var(--k-accent-bg-strong)\"\/>\n  <circle cx=\"322\" cy=\"52\" r=\"24\" style=\"fill:var(--k-core)\"\/>\n  <path d=\"M0 178 L110 108 L215 178 L300 128 L400 188 L400 250 L0 250 Z\" style=\"fill:var(--k-zinc-600)\"\/>\n  <path d=\"M0 208 L140 148 L265 208 L345 168 L400 202 L400 250 L0 250 Z\" style=\"fill:var(--k-zinc-800)\"\/>\n  <rect x=\"52\" y=\"168\" width=\"46\" height=\"34\" style=\"fill:var(--k-zinc-100)\"\/>\n  <path d=\"M46 168 L75 148 L104 168 Z\" style=\"fill:var(--k-ink)\"\/>\n<\/svg><\/div>\n  <div class=\"layer top\"><svg viewBox=\"0 0 400 250\" width=\"100%\" height=\"100%\" preserveAspectRatio=\"none\" aria-hidden=\"true\" style=\"display:block\">\n  <rect width=\"400\" height=\"250\" style=\"fill:var(--k-zinc-200)\"\/>\n  <circle cx=\"322\" cy=\"52\" r=\"24\" style=\"fill:var(--k-zinc-400)\"\/>\n  <path d=\"M0 178 L110 108 L215 178 L300 128 L400 188 L400 250 L0 250 Z\" style=\"fill:var(--k-zinc-300)\"\/>\n  <path d=\"M0 208 L140 148 L265 208 L345 168 L400 202 L400 250 L0 250 Z\" style=\"fill:var(--k-zinc-400)\"\/>\n  <rect x=\"52\" y=\"168\" width=\"46\" height=\"34\" style=\"fill:var(--k-zinc-500)\"\/>\n  <path d=\"M46 168 L75 148 L104 168 Z\" style=\"fill:var(--k-zinc-600)\"\/>\n<\/svg><\/div>\n  <span class=\"tag l\">BEFORE<\/span><span class=\"tag r\">AFTER<\/span>\n  <div class=\"seam\"><\/div>\n  <div class=\"grip\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m11 8-4 4 4 4M13 8l4 4-4 4\"\/><\/svg><\/div>\n  <input type=\"range\" min=\"0\" max=\"100\" value=\"55\" aria-label=\"Share of the before image shown\">\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">One scene, drawn twice \u2014 flat zinc before, lit after. Drag, or focus and use the arrow keys.<\/p>"}],"meta":{"status":"beta","usage":"For redesigns, retouching and day-versus-night \u2014 two states of the same picture, divided by a seam the reader moves. Both layers are the same scene drawn twice here; with photographs, use the same image twice and let a filter be the difference.","accessibility":"The seam is a real slider: arrow keys move it for people who cannot drag, and its label says what it divides (\"Share of the before image shown\"). The pictures themselves still need their own alt text."},"audit":{"id":"components\/comparison-slider","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/comparison-slider\/comparison-slider.css: padding: 3px 9px [spacing] \u2014 raw spacing: 3px; raw spacing: 9px","components\/comparison-slider\/comparison-slider.css: margin-left: -1px [spacing] \u2014 raw spacing: -1px","components\/comparison-slider\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/comparison-slider\/comparison-slider.css","property":"padding","value":"3px 9px","kind":"spacing","reasons":["raw spacing: 3px","raw spacing: 9px"]},{"path":"components\/comparison-slider\/comparison-slider.css","property":"margin-left","value":"-1px","kind":"spacing","reasons":["raw spacing: -1px"]},{"path":"components\/comparison-slider\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":3}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/comparison-slider\/comparison-slider.css: font-size: 11px [type] \u2014 raw type: 11px","components\/comparison-slider\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/comparison-slider\/comparison-slider.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/comparison-slider\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"converge","type":"registry:component","title":"Converge","description":"Light streams gather into one tile \u2014 many inputs, one place where they land.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/converge\/converge.css","type":"registry:component","content":"\/* KATA converge 1.1.0 \u2014 kata-ui.dev\/components\/converge \u2014 requires mold >= 2 *\/\n.k-converge{width:100%;position:relative;border-radius:14px;background:var(--k-zinc-950);overflow:hidden;min-height:196px;font-family:var(--k-font)}\n.k-converge .src{position:absolute;left:16px;top:50%;transform:translateY(-50%);display:grid;gap:7px;z-index:3}\n.k-converge .src>span{display:flex;gap:6px;align-items:center;background:color-mix(in srgb,var(--k-on-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--k-on-color) 28%,transparent);backdrop-filter:blur(6px);font-size:11px;padding:5px 9px;border-radius:7px}\n.k-converge .src .lb{color:var(--k-on-color)}\n.k-converge .beams{position:absolute;inset:0;width:100%;height:100%;z-index:1;display:block}\n.k-converge .beam{fill:none;stroke-width:1.8;stroke-linecap:round}\n.k-converge .beam-bg{fill:none;stroke-width:6;stroke-linecap:round;opacity:.14}\n.k-converge .b1{stroke:var(--k-tsutsuji)}\n.k-converge .b2{stroke:var(--k-yamabuki)}\n.k-converge .b3{stroke:var(--k-asagi-300)}\n.k-converge .dot .core{fill:var(--k-on-color)}\n.k-converge .dot.d1 .halo{fill:var(--k-tsutsuji);opacity:.45}\n.k-converge .dot.d2 .halo{fill:var(--k-yamabuki);opacity:.45}\n.k-converge .dot.d3 .halo{fill:var(--k-asagi-300);opacity:.45}\n.k-converge .glow{position:absolute;left:58%;top:50%;width:230px;height:230px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 38% 32%,color-mix(in srgb,var(--k-tsutsuji) 34%,transparent),transparent 62%),radial-gradient(circle at 66% 70%,color-mix(in srgb,var(--k-asagi-300) 30%,transparent),transparent 62%),radial-gradient(circle,color-mix(in srgb,var(--k-accent) 42%,transparent),transparent 68%);animation:k-conv-pulse calc(3.4s * var(--k-mscale)) var(--k-ease) infinite alternate;display:block}\n.k-converge .spark{position:absolute;z-index:2;display:grid;place-items:center;color:var(--k-on-color);animation:k-conv-tw calc(2.2s * var(--k-mscale)) ease-in-out infinite alternate}\n.k-converge .sp1{left:48%;top:20%}\n.k-converge .sp2{left:67%;top:28%;animation-delay:calc(.5s * var(--k-mscale))}\n.k-converge .sp3{left:65%;top:64%;animation-delay:calc(1.1s * var(--k-mscale))}\n.k-converge .sp4{left:46%;top:60%;animation-delay:calc(1.6s * var(--k-mscale))}\n.k-converge-tile{position:absolute;left:58%;top:50%;transform:translate(-50%,-50%);z-index:2;width:64px;height:64px;border-radius:16px;background:var(--k-bg);display:grid;place-items:center;color:var(--k-ink);box-shadow:0 0 46px color-mix(in srgb,var(--k-accent) 45%,transparent)}\n@keyframes k-conv-tw{from{opacity:.15;transform:scale(.55) rotate(0deg)}to{opacity:1;transform:scale(1.05) rotate(18deg)}}\n@keyframes k-conv-pulse{from{transform:translate(-50%,-50%) scale(.94);opacity:.75}to{transform:translate(-50%,-50%) scale(1.1);opacity:1}}\n@media (prefers-reduced-motion:reduce){.k-converge .glow,.k-converge .spark{animation:none}.k-converge .dot{display:none}}\n"},{"path":"components\/converge\/example.html","type":"registry:component","content":"<!-- KATA converge 1.1.0 \u2014 kata-ui.dev\/components\/converge \u2014 requires mold >= 2 -->\n<div class=\"k-converge\" style=\"max-width:430px\">\n  <i class=\"glow\"><\/i>\n  <svg class=\"beams\" viewBox=\"0 0 400 196\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n    <path class=\"beam-bg b1\" d=\"M104,66 C160,66 168,98 196,98\"\/><path class=\"beam b1\" d=\"M104,66 C160,66 168,98 196,98\"\/><path class=\"beam-bg b2\" d=\"M104,98 H196\"\/><path class=\"beam b2\" d=\"M104,98 H196\"\/><path class=\"beam-bg b3\" d=\"M104,130 C160,130 168,98 196,98\"\/><path class=\"beam b3\" d=\"M104,130 C160,130 168,98 196,98\"\/>\n    <g class=\"dot d1\"><circle class=\"halo\" r=\"9\"\/><circle class=\"core\" r=\"3.5\"\/><animateMotion dur=\"3.2s\" begin=\"0s\" repeatCount=\"indefinite\" path=\"M104,66 C160,66 168,98 196,98\"\/><animate attributeName=\"opacity\" values=\"0;1;1;0\" keyTimes=\"0;.12;.85;1\" dur=\"3.2s\" begin=\"0s\" repeatCount=\"indefinite\"\/><\/g><g class=\"dot d2\"><circle class=\"halo\" r=\"9\"\/><circle class=\"core\" r=\"3.5\"\/><animateMotion dur=\"2.7s\" begin=\"-1.2s\" repeatCount=\"indefinite\" path=\"M104,98 H196\"\/><animate attributeName=\"opacity\" values=\"0;1;1;0\" keyTimes=\"0;.12;.85;1\" dur=\"2.7s\" begin=\"-1.2s\" repeatCount=\"indefinite\"\/><\/g><g class=\"dot d3\"><circle class=\"halo\" r=\"9\"\/><circle class=\"core\" r=\"3.5\"\/><animateMotion dur=\"3.7s\" begin=\"-2.1s\" repeatCount=\"indefinite\" path=\"M104,130 C160,130 168,98 196,98\"\/><animate attributeName=\"opacity\" values=\"0;1;1;0\" keyTimes=\"0;.12;.85;1\" dur=\"3.7s\" begin=\"-2.1s\" repeatCount=\"indefinite\"\/><\/g>\n  <\/svg>\n  <span class=\"spark sp1\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"\/><\/svg><\/span>\n  <span class=\"spark sp2\"><svg width=\"10\" height=\"10\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"\/><\/svg><\/span>\n  <span class=\"spark sp3\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"\/><\/svg><\/span>\n  <span class=\"spark sp4\"><svg width=\"9\" height=\"9\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"\/><\/svg><\/span>\n  <div class=\"src\">\n    <span style=\"color:var(--k-tsutsuji)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"16\" rx=\"2\"\/><path d=\"M3.5 10h17M8 3v4M16 3v4\"\/><\/svg><span class=\"lb\">Calendar<\/span><\/span>\n    <span style=\"color:var(--k-yamabuki)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><path d=\"m3 7 9 6 9-6\"\/><\/svg><span class=\"lb\">Inbox<\/span><\/span>\n    <span style=\"color:var(--k-asagi-300)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M21 11.5a8.5 8.5 0 0 1-12.4 7.1L3 21l2.4-5.6A8.5 8.5 0 1 1 21 11.5Z\"\/><\/svg><span class=\"lb\">Chat<\/span><\/span>\n  <\/div>\n  <div class=\"k-converge-tile\"><svg width=\"27\" height=\"27\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"\/><path d=\"M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9L19 15Z\"\/><\/svg><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For the moment a product pulls everything into itself: integration heroes, import screens, AI summaries. The tile holds your mark or the action everything feeds.","accessibility":"Pure CSS. The streams stop under prefers-reduced-motion; the tile and its label carry the meaning without them."},"audit":{"id":"components\/converge","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/converge\/converge.css: gap: 7px [spacing] \u2014 raw spacing: 7px","components\/converge\/converge.css: gap: 6px [spacing] \u2014 raw spacing: 6px","components\/converge\/converge.css: padding: 5px 9px [spacing] \u2014 raw spacing: 5px; raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/converge\/converge.css","property":"gap","value":"7px","kind":"spacing","reasons":["raw spacing: 7px"]},{"path":"components\/converge\/converge.css","property":"gap","value":"6px","kind":"spacing","reasons":["raw spacing: 6px"]},{"path":"components\/converge\/converge.css","property":"padding","value":"5px 9px","kind":"spacing","reasons":["raw spacing: 5px","raw spacing: 9px"]}],"by_kind":{"spacing":3}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/converge\/converge.css: font-size: 11px [type] \u2014 raw type: 11px"],"profile":"lab","details":[{"path":"components\/converge\/converge.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"counter","type":"registry:component","title":"Counter","description":"Numbers that count up once, when they arrive on screen \u2014 a steady ease with no overshoot.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/counter\/counter.css","type":"registry:component","content":"\/* KATA counter 1.1.0 \u2014 kata-ui.dev\/components\/counter \u2014 requires mold >= 2 *\/\n\/* KATA Counter *\/\n.k-counter{font-family:var(--k-font);font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.02em;color:var(--k-ink)}\n"},{"path":"components\/counter\/counter.js","type":"registry:component","content":"\/* KATA counter 1.1.0 \u2014 kata-ui.dev\/components\/counter \u2014 requires mold >= 2 *\/\n\/\/ KATA Counter \u2014 count up once, when visible.\ndocument.querySelectorAll('[data-count-to]').forEach(function (el) {\n  var to = parseFloat(el.dataset.countTo);\n  var decimals = parseInt(el.dataset.decimals || '0', 10);\n  var dur = parseInt(el.dataset.duration || '1400', 10);\n  function fmt(v) {\n    return v.toLocaleString('en-US', { minimumFractionDigits: decimals, maximumFractionDigits: decimals });\n  }\n  function finish() { el.textContent = fmt(to); }\n  if (!('IntersectionObserver' in window) || window.matchMedia('(prefers-reduced-motion: reduce)').matches) {\n    finish();\n    return;\n  }\n  el.textContent = fmt(0);\n  var io = new IntersectionObserver(function (entries) {\n    if (!entries[0].isIntersecting) return;\n    io.disconnect();\n    var t0 = null;\n    function tick(t) {\n      if (!t0) t0 = t;\n      var p = Math.min(1, (t - t0) \/ dur);\n      var eased = 1 - Math.pow(1 - p, 4);\n      el.textContent = fmt(to * eased);\n      if (p < 1) requestAnimationFrame(tick); else finish();\n    }\n    requestAnimationFrame(tick);\n  }, { threshold: 0.4 });\n  io.observe(el);\n});\n"},{"path":"components\/counter\/example.html","type":"registry:component","content":"<!-- KATA counter 1.1.0 \u2014 kata-ui.dev\/components\/counter \u2014 requires mold >= 2 -->\n<div style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:20px;max-width:520px\">\n  <div><div class=\"k-counter\" data-count-to=\"8412\" style=\"font-size:30px\">8,412<\/div><p style=\"font-size:12px;color:var(--k-ink-3);margin-top:3px\">Active users<\/p><\/div>\n  <div><div class=\"k-counter\" data-count-to=\"99.98\" data-decimals=\"2\" style=\"font-size:30px\">99.98<\/div><p style=\"font-size:12px;color:var(--k-ink-3);margin-top:3px\">Uptime %<\/p><\/div>\n  <div><div class=\"k-counter\" data-count-to=\"1280\" data-duration=\"2000\" style=\"font-size:30px\">1,280<\/div><p style=\"font-size:12px;color:var(--k-ink-3);margin-top:3px\">Exports made<\/p><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For stats and hero numbers. Set the target with data-count-to; decimals and duration are attributes too. It runs once, when the element enters the viewport.","accessibility":"The final value is the text content from the start for no-JS and reduced-motion users \u2014 the animation only enhances. Screen readers get the settled number."},"audit":{"id":"components\/counter","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/counter\/preview.html: gap: 20px [spacing] \u2014 raw spacing: 20px","components\/counter\/preview.html: margin-top: 3px [spacing] \u2014 raw spacing: 3px","components\/counter\/preview.html: margin-top: 3px [spacing] \u2014 raw spacing: 3px","components\/counter\/preview.html: margin-top: 3px [spacing] \u2014 raw spacing: 3px"],"profile":"lab","details":[{"path":"components\/counter\/preview.html","property":"gap","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]},{"path":"components\/counter\/preview.html","property":"margin-top","value":"3px","kind":"spacing","reasons":["raw spacing: 3px"]},{"path":"components\/counter\/preview.html","property":"margin-top","value":"3px","kind":"spacing","reasons":["raw spacing: 3px"]},{"path":"components\/counter\/preview.html","property":"margin-top","value":"3px","kind":"spacing","reasons":["raw spacing: 3px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/counter\/preview.html: font-size: 30px [type] \u2014 raw type: 30px","components\/counter\/preview.html: font-size: 12px [type] \u2014 raw type: 12px","components\/counter\/preview.html: font-size: 30px [type] \u2014 raw type: 30px","components\/counter\/preview.html: font-size: 12px [type] \u2014 raw type: 12px","components\/counter\/preview.html: font-size: 30px [type] \u2014 raw type: 30px","components\/counter\/preview.html: font-size: 12px [type] \u2014 raw type: 12px"],"profile":"lab","details":[{"path":"components\/counter\/preview.html","property":"font-size","value":"30px","kind":"type","reasons":["raw type: 30px"]},{"path":"components\/counter\/preview.html","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]},{"path":"components\/counter\/preview.html","property":"font-size","value":"30px","kind":"type","reasons":["raw type: 30px"]},{"path":"components\/counter\/preview.html","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]},{"path":"components\/counter\/preview.html","property":"font-size","value":"30px","kind":"type","reasons":["raw type: 30px"]},{"path":"components\/counter\/preview.html","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]}],"by_kind":{"type":6}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"dock","type":"registry:component","title":"Dock","description":"The macOS dock, in vanilla: tiles swell as the cursor approaches and settle as it leaves.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/dock\/dock.css","type":"registry:component","content":"\/* KATA dock 1.1.0 \u2014 kata-ui.dev\/components\/dock \u2014 requires mold >= 2 *\/\n\/* KATA Dock \u2014 tiles swell by proximity. *\/\n.k-dock{display:inline-flex;align-items:flex-end;touch-action:none;gap:7px;padding:9px 10px;background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:20px;font-family:var(--k-font)}\n.k-dock-i{position:relative;width:46px;height:46px;border:0;border-radius:13px;color:var(--k-on-color);display:flex;align-items:center;justify-content:center;cursor:pointer;transform-origin:bottom center;transition:transform calc(.14s * var(--k-mscale)) ease-out;flex:none}\n.k-dock-i::after{content:attr(data-label);position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%) translateY(3px);background:var(--k-ink);color:var(--k-bg);font-size:11px;font-weight:550;padding:4px 9px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity calc(.15s * var(--k-mscale)),transform calc(.15s * var(--k-mscale))}\n.k-dock-i:hover::after,.k-dock-i:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}\n"},{"path":"components\/dock\/dock.js","type":"registry:component","content":"\/* KATA dock 1.1.0 \u2014 kata-ui.dev\/components\/dock \u2014 requires mold >= 2 *\/\n\/\/ KATA Dock \u2014 scale by distance from the cursor; rest when it leaves.\ndocument.querySelectorAll('[data-dock]').forEach(function (dock) {\n  var tiles = Array.prototype.slice.call(dock.querySelectorAll('.k-dock-i'));\n  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;\n  dock.addEventListener('pointermove', function (e) {\n    tiles.forEach(function (t) {\n      var r = t.getBoundingClientRect();\n      var d = Math.abs(e.clientX - (r.left + r.width \/ 2));\n      var s = 1 + 0.55 * Math.max(0, 1 - d \/ 120);\n      t.style.transform = 'scale(' + s.toFixed(3) + ')';\n    });\n  });\n  dock.addEventListener('pointerleave', function () {\n    tiles.forEach(function (t) { t.style.transform = ''; });\n  });\n});\n"},{"path":"components\/dock\/example.html","type":"registry:component","content":"<!-- KATA dock 1.1.0 \u2014 kata-ui.dev\/components\/dock \u2014 requires mold >= 2 -->\n<div style=\"background:var(--k-zinc-950);border-radius:14px;min-height:170px;display:flex;align-items:center;justify-content:center;padding:18px\">\n  <div class=\"k-dock\" data-dock><button class=\"k-dock-i\" type=\"button\" data-label=\"Home\" aria-label=\"Home\" style=\"background:var(--k-ink)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m3 11 9-8 9 8\"\/><path d=\"M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Calendar\" aria-label=\"Calendar\" style=\"background:var(--k-accent)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"16\" rx=\"2\"\/><path d=\"M3.5 10h17M8 3v4M16 3v4\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Reports\" aria-label=\"Reports\" style=\"background:var(--k-zinc-500)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 20v-6M12 20V4M18 20v-9\"\/><path d=\"M3.5 20.5h17\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Docs\" aria-label=\"Docs\" style=\"background:var(--k-danger)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M9 13h6M9 17h6\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Alerts\" aria-label=\"Alerts\" style=\"background:var(--k-zinc-700)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M18 16H6c.6-1.2 1-2.6 1-4.5V10a5 5 0 0 1 10 0v1.5c0 1.9.4 3.3 1 4.5Z\"\/><path d=\"M10 20a2 2 0 0 0 4 0\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Team\" aria-label=\"Team\" style=\"background:var(--k-success)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8\" r=\"3.6\"\/><path d=\"M5 20c.8-3.2 3.6-5 7-5s6.2 1.8 7 5\"\/><\/svg><\/button><button class=\"k-dock-i\" type=\"button\" data-label=\"Settings\" aria-label=\"Settings\" style=\"background:var(--k-zinc-800)\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 6h10M17 6h4M3 12h4M11 12h10M3 18h12M19 18h2\"\/><circle cx=\"15\" cy=\"6\" r=\"2\"\/><circle cx=\"9\" cy=\"12\" r=\"2\"\/><circle cx=\"17\" cy=\"18\" r=\"2\"\/><\/svg><\/button><\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Sweep the cursor across \u2014 slowly. The wave is the part.<\/p>"}],"meta":{"status":"beta","usage":"For app launchers and playful navigation. The script measures each tile\u2019s distance from the cursor and scales by proximity \u2014 near tiles grow, the wave falls off within about two tiles. Tiles are buttons or links with real names; the label above a hovered tile is its accessible name.","accessibility":"Magnification is pointer theatre: focus order, names and layout never move, and a keyboard user tabs through ordinary buttons. Under prefers-reduced-motion the wave is off and every tile sits at rest size."},"audit":{"id":"components\/dock","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/dock\/dock.css: gap: 7px [spacing] \u2014 raw spacing: 7px","components\/dock\/dock.css: padding: 9px 10px [spacing] \u2014 raw spacing: 9px; raw spacing: 10px","components\/dock\/dock.css: padding: 4px 9px [spacing] \u2014 raw spacing: 4px; raw spacing: 9px","components\/dock\/preview.html: padding: 18px [spacing] \u2014 raw spacing: 18px","components\/dock\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/dock\/dock.css","property":"gap","value":"7px","kind":"spacing","reasons":["raw spacing: 7px"]},{"path":"components\/dock\/dock.css","property":"padding","value":"9px 10px","kind":"spacing","reasons":["raw spacing: 9px","raw spacing: 10px"]},{"path":"components\/dock\/dock.css","property":"padding","value":"4px 9px","kind":"spacing","reasons":["raw spacing: 4px","raw spacing: 9px"]},{"path":"components\/dock\/preview.html","property":"padding","value":"18px","kind":"spacing","reasons":["raw spacing: 18px"]},{"path":"components\/dock\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/dock\/dock.css: font-size: 11px [type] \u2014 raw type: 11px","components\/dock\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/dock\/dock.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/dock\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"follow-frame","type":"registry:component","title":"Follow Frame","description":"A dashed frame that trails the cursor and names the action waiting there.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/follow-frame\/follow-frame.css","type":"registry:component","content":"\/* KATA follow-frame 1.1.0 \u2014 kata-ui.dev\/components\/follow-frame \u2014 requires mold >= 2 *\/\n.k-fzone{position:relative;width:100%;min-height:190px;touch-action:none;border:1px solid var(--k-line);border-radius:14px;background:var(--k-bg);overflow:hidden;font-family:var(--k-font)}\n.k-fzone .hint{position:absolute;inset-inline-start:var(--k-space-4);bottom:12px;font-size:12px;color:var(--k-ink-3)}\n.k-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:118px;height:74px;border:1.5px dashed var(--k-border-strong);border-radius:10px;pointer-events:none;will-change:transform}\n.k-frame-tag{position:absolute;left:50%;top:50%;transform:translate(-50%,-168%);display:flex;gap:6px;align-items:center;background:var(--k-ink);color:var(--k-bg);font-size:11px;font-weight:550;padding:4px 9px;border-radius:99px;pointer-events:none;white-space:nowrap;will-change:transform}\n.k-frame-tag i{width:6px;height:6px;border-radius:50%;background:var(--k-core);display:block;flex:none}\n"},{"path":"components\/follow-frame\/follow-frame.js","type":"registry:component","content":"\/* KATA follow-frame 1.1.0 \u2014 kata-ui.dev\/components\/follow-frame \u2014 requires mold >= 2 *\/\n(() => {\n  'use strict';\n  const reduced = () => matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n  document.querySelectorAll('[data-follow]').forEach(zone => {\n    if (zone.dataset.kataReady) return;\n    const frame = zone.querySelector('[data-frame]');\n    const tag = zone.querySelector('[data-frame-tag]');\n    if (!frame || !tag) return;\n    zone.dataset.kataReady = 'true';\n    let tx = 0, ty = 0, x = 0, y = 0, moved = false, raf = 0;\n\n    function center() { tx = zone.clientWidth \/ 2; ty = zone.clientHeight \/ 2; }\n    function place() {\n      frame.style.left = x + 'px'; frame.style.top = y + 'px';\n      tag.style.left = x + 'px'; tag.style.top = y + 'px';\n    }\n    function jump() { x = tx; y = ty; place(); }\n    \/\/ The loop runs only while this frame is travelling, and stops once it arrives.\n    function step() {\n      x += (tx - x) * 0.16; y += (ty - y) * 0.16;\n      if (Math.abs(tx - x) < 0.5 && Math.abs(ty - y) < 0.5) { x = tx; y = ty; raf = 0; }\n      else raf = requestAnimationFrame(step);\n      place();\n    }\n    function follow() {\n      const scale = parseFloat(getComputedStyle(zone).getPropertyValue('--k-mscale'));\n      if (scale === 0) { cancelAnimationFrame(raf); raf = 0; jump(); return; }\n      if (!raf) raf = requestAnimationFrame(step);\n    }\n    center(); jump();\n\n    zone.addEventListener('pointermove', event => {\n      \/\/ Under reduced motion the frame stays parked in the center.\n      if (reduced()) return;\n      const box = zone.getBoundingClientRect();\n      moved = true;\n      tx = Math.max(64, Math.min(box.width - 64, event.clientX - box.left));\n      ty = Math.max(48, Math.min(box.height - 48, event.clientY - box.top));\n      follow();\n    });\n    zone.addEventListener('pointerleave', () => { moved = false; center(); if (reduced()) jump(); else follow(); });\n    \/\/ One observer per zone keeps the parked frame centered when the zone resizes.\n    if ('ResizeObserver' in window) new ResizeObserver(() => { if (!moved) { cancelAnimationFrame(raf); raf = 0; center(); jump(); } }).observe(zone);\n  });\n})();\n"},{"path":"components\/follow-frame\/example.html","type":"registry:component","content":"<!-- KATA follow-frame 1.1.0 \u2014 kata-ui.dev\/components\/follow-frame \u2014 requires mold >= 2 -->\n<div class=\"k-fzone\" data-follow style=\"max-width:430px\">\n  <div class=\"k-frame\" data-frame><\/div>\n  <div class=\"k-frame-tag\" data-frame-tag><i><\/i>Approve &amp; send<\/div>\n  <span class=\"hint\">Move your cursor \u2014 the frame follows, and names the action.<\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"For playful surfaces \u2014 onboarding, product tours, marketing panels. The label must name a real action. Several zones on one page follow the pointer independently.","accessibility":"Pointer-only by design; touch and keyboard users lose nothing, since the frame carries no information the panel itself does not. Each zone animates only while its frame is moving. Under prefers-reduced-motion the frame stays parked in the center; with --k-mscale set to 0 it jumps to the pointer without easing."},"audit":{"id":"components\/follow-frame","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/follow-frame\/follow-frame.css: gap: 6px [spacing] \u2014 raw spacing: 6px","components\/follow-frame\/follow-frame.css: padding: 4px 9px [spacing] \u2014 raw spacing: 4px; raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/follow-frame\/follow-frame.css","property":"gap","value":"6px","kind":"spacing","reasons":["raw spacing: 6px"]},{"path":"components\/follow-frame\/follow-frame.css","property":"padding","value":"4px 9px","kind":"spacing","reasons":["raw spacing: 4px","raw spacing: 9px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/follow-frame\/follow-frame.css: font-size: 12px [type] \u2014 raw type: 12px","components\/follow-frame\/follow-frame.css: font-size: 11px [type] \u2014 raw type: 11px"],"profile":"lab","details":[{"path":"components\/follow-frame\/follow-frame.css","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]},{"path":"components\/follow-frame\/follow-frame.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"glow-button","type":"registry:component","title":"Glow Button","description":"A call-to-action in a ring of traveling light: a conic border that orbits, and a glow that answers the hover.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/glow-button\/glow-button.css","type":"registry:component","content":"\/* KATA glow-button 1.1.0 \u2014 kata-ui.dev\/components\/glow-button \u2014 requires mold >= 3 *\/\n\/* KATA Glow Button \u2014 a ring of light, on duty. *\/\n@property --k-ga{syntax:\"<angle>\";initial-value:0deg;inherits:false}\n.k-glowbtn{display:inline-block;padding:2px;border-radius:13px;background:conic-gradient(from var(--k-ga), var(--k-accent) 0 14%, transparent 30%, var(--k-zinc-300) 50%, transparent 70%, var(--k-accent) 88% 100%);animation:k-ga-spin calc(3.6s * var(--k-mscale)) linear infinite;transition:box-shadow calc(.3s * var(--k-mscale));font-family:var(--k-font)}\n.k-glowbtn:hover,.k-glowbtn:focus-within{box-shadow:0 0 26px -6px var(--k-accent)}\n.k-glowbtn button{display:block;border:0;background:var(--k-zinc-950);color:var(--k-on-color);font-family:inherit;font-size:14.5px;font-weight:650;padding:12px 26px;border-radius:11px;cursor:pointer}\n@keyframes k-ga-spin{to{--k-ga:360deg}}\n.k-glowfield{display:flex;align-items:center;gap:9px;max-width:330px;padding:2px;border-radius:11px;background:var(--k-line);transition:background calc(.3s * var(--k-mscale)), box-shadow calc(.3s * var(--k-mscale));font-family:var(--k-font);color:var(--k-ink-3)}\n.k-glowfield:focus-within{background:conic-gradient(from var(--k-ga), var(--k-accent), var(--k-line) 40%, var(--k-accent));animation:k-ga-spin calc(3.6s * var(--k-mscale)) linear infinite;box-shadow:0 0 18px -4px var(--k-accent-bg)}\n.k-glowfield .in{flex:1;display:flex;align-items:center;gap:9px;background:var(--k-bg);border-radius:9.5px;padding:0 12px}\n.k-glowfield input{flex:1;border:0;background:none;font-family:inherit;font-size:13.5px;height:38px;color:var(--k-ink);outline:none;min-width:0}\n@media (prefers-reduced-motion:reduce){.k-glowbtn,.k-glowfield:focus-within{animation:none}}\n\/* The input draws no outline; the field carries the shared 3:1 keyboard ring. *\/\n.k-glowfield:has(input:focus-visible){box-shadow:var(--k-ring)}\n"},{"path":"components\/glow-button\/example.html","type":"registry:component","content":"<!-- KATA glow-button 1.1.0 \u2014 kata-ui.dev\/components\/glow-button \u2014 requires mold >= 3 -->\n<div style=\"display:flex;flex-direction:column;gap:20px;padding:10px 0\">\n  <span><span class=\"k-glowbtn\"><button type=\"button\">Upgrade to Pro<\/button><\/span><\/span>\n  <label class=\"k-glowfield\"><span class=\"in\">\n    <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m20 20-3.8-3.8\"\/><\/svg>\n    <input type=\"search\" placeholder=\"Focus me \u2014 the ring wakes up\" aria-label=\"Search the catalog\">\n  <\/span><\/label>\n<\/div>"}],"meta":{"status":"beta","usage":"One per page \u2014 the action the page is for. The ring is a conic gradient rotating behind a 1.5px frame (an @property angle, so it animates smoothly), and the halo is a plain box-shadow that deepens on hover and focus. The example below shows the same ring as a field treatment: use the glow on one control per view.","accessibility":"The button\u2019s name, size and focus ring are untouched \u2014 focus shows the standard outline outside the glow. The orbit is decorative and stops under prefers-reduced-motion, leaving a still, lit border that reads as emphasis, not as a state."},"audit":{"id":"components\/glow-button","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/glow-button\/glow-button.css: padding: 2px [spacing] \u2014 raw spacing: 2px","components\/glow-button\/glow-button.css: padding: 12px 26px [spacing] \u2014 raw spacing: 12px; raw spacing: 26px","components\/glow-button\/glow-button.css: gap: 9px [spacing] \u2014 raw spacing: 9px","components\/glow-button\/glow-button.css: padding: 2px [spacing] \u2014 raw spacing: 2px","components\/glow-button\/glow-button.css: gap: 9px [spacing] \u2014 raw spacing: 9px","components\/glow-button\/glow-button.css: padding: 0 12px [spacing] \u2014 raw spacing: 12px","components\/glow-button\/preview.html: gap: 20px [spacing] \u2014 raw spacing: 20px","components\/glow-button\/preview.html: padding: 10px 0 [spacing] \u2014 raw spacing: 10px"],"profile":"lab","details":[{"path":"components\/glow-button\/glow-button.css","property":"padding","value":"2px","kind":"spacing","reasons":["raw spacing: 2px"]},{"path":"components\/glow-button\/glow-button.css","property":"padding","value":"12px 26px","kind":"spacing","reasons":["raw spacing: 12px","raw spacing: 26px"]},{"path":"components\/glow-button\/glow-button.css","property":"gap","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]},{"path":"components\/glow-button\/glow-button.css","property":"padding","value":"2px","kind":"spacing","reasons":["raw spacing: 2px"]},{"path":"components\/glow-button\/glow-button.css","property":"gap","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]},{"path":"components\/glow-button\/glow-button.css","property":"padding","value":"0 12px","kind":"spacing","reasons":["raw spacing: 12px"]},{"path":"components\/glow-button\/preview.html","property":"gap","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]},{"path":"components\/glow-button\/preview.html","property":"padding","value":"10px 0","kind":"spacing","reasons":["raw spacing: 10px"]}],"by_kind":{"spacing":8}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/glow-button\/glow-button.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/glow-button\/glow-button.css: font-size: 13.5px [type] \u2014 raw type: 13.5px"],"profile":"lab","details":[{"path":"components\/glow-button\/glow-button.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/glow-button\/glow-button.css","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"glow-cards","type":"registry:component","title":"Glow Cards","description":"A grid of cards whose borders light up where the cursor passes \u2014 only the border glows.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/glow-cards\/glow-cards.css","type":"registry:component","content":"\/* KATA glow-cards 1.1.0 \u2014 kata-ui.dev\/components\/glow-cards \u2014 requires mold >= 2 *\/\n\/* KATA Glow Cards \u2014 the border warms where the cursor passes. *\/\n.k-glow-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;font-family:var(--k-font);color:var(--k-ink)}\n.k-glow{position:relative;background:var(--k-bg);border:1px solid var(--k-line);border-radius:14px;padding:18px}\n.k-glow::before{content:\"\";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;background:radial-gradient(190px circle at var(--mx,50%) var(--my,50%), var(--k-accent), transparent 70%);-webkit-mask:linear-gradient(var(--k-on-color) 0 0) content-box, linear-gradient(var(--k-on-color) 0 0);-webkit-mask-composite:xor;mask:linear-gradient(var(--k-on-color) 0 0) content-box, linear-gradient(var(--k-on-color) 0 0);mask-composite:exclude;opacity:0;transition:opacity calc(.25s * var(--k-mscale));pointer-events:none}\n.k-glow:hover::before{opacity:1}\n.k-glow .ic{width:36px;height:36px;border-radius:10px;background:var(--k-accent-bg);color:var(--k-accent-ink);display:flex;align-items:center;justify-content:center;margin-bottom:11px}\n.k-glow h3{font-size:14.5px;font-weight:600}\n.k-glow p{font-size:12.5px;line-height:1.75;color:var(--k-ink-2);margin-top:5px;letter-spacing:.01em}\n@media (max-width:640px){.k-glow-grid{grid-template-columns:1fr}}\n@media (prefers-reduced-motion:reduce){.k-glow::before{display:none}}\n"},{"path":"components\/glow-cards\/glow-cards.js","type":"registry:component","content":"\/* KATA glow-cards 1.1.0 \u2014 kata-ui.dev\/components\/glow-cards \u2014 requires mold >= 2 *\/\n\/\/ KATA Glow Cards \u2014 feeds each card the pointer's position.\ndocument.querySelectorAll('.k-glow').forEach(function (card) {\n  card.addEventListener('pointermove', function (e) {\n    var r = card.getBoundingClientRect();\n    card.style.setProperty('--mx', (e.clientX - r.left) + 'px');\n    card.style.setProperty('--my', (e.clientY - r.top) + 'px');\n  });\n});\n"},{"path":"components\/glow-cards\/example.html","type":"registry:component","content":"<!-- KATA glow-cards 1.1.0 \u2014 kata-ui.dev\/components\/glow-cards \u2014 requires mold >= 2 -->\n<div class=\"k-glow-grid\"><div class=\"k-glow\"><span class=\"ic\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 3.5 2.5 8.5 12 13.5l9.5-5L12 3.5Z\"\/><path d=\"m2.5 12.8 9.5 5 9.5-5\"\/><\/svg><\/span><h3>Cast from one mold<\/h3><p>Every card in this grid shares tokens with every other \u2014 the glow included.<\/p><\/div><div class=\"k-glow\"><span class=\"ic\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M13 2 4 14h6l-1 8 9-12h-6l1-8Z\"\/><\/svg><\/span><h3>No runtime<\/h3><p>The light is two custom properties and a mask. Nothing loads, nothing phones home.<\/p><\/div><div class=\"k-glow\"><span class=\"ic\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\"\/><path d=\"m8.5 12.2 2.4 2.4 4.8-5\"\/><\/svg><\/span><h3>Checked before shipping<\/h3><p>Each part passes the same automated mold check before it joins the catalog.<\/p><\/div><\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Move slowly along the edges \u2014 the frame is where the light lives.<\/p>"}],"meta":{"status":"beta","usage":"For feature grids that need life without noise: at rest the cards are plain catalog cards, and only the border near the cursor warms. The script tracks the pointer per card and feeds two custom properties; the frame does the rest with a masked radial gradient.","accessibility":"The glow is a border treatment on cards that read perfectly without it \u2014 no information rides on the light. It follows the pointer only, so keyboard and touch users lose nothing, and it is off under prefers-reduced-motion."},"audit":{"id":"components\/glow-cards","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/glow-cards\/glow-cards.css: gap: 13px [spacing] \u2014 raw spacing: 13px","components\/glow-cards\/glow-cards.css: padding: 18px [spacing] \u2014 raw spacing: 18px","components\/glow-cards\/glow-cards.css: inset: -1px [spacing] \u2014 raw spacing: -1px","components\/glow-cards\/glow-cards.css: padding: 1.5px [spacing] \u2014 raw spacing: 1.5px","components\/glow-cards\/glow-cards.css: margin-bottom: 11px [spacing] \u2014 raw spacing: 11px","components\/glow-cards\/glow-cards.css: margin-top: 5px [spacing] \u2014 raw spacing: 5px","components\/glow-cards\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/glow-cards\/glow-cards.css","property":"gap","value":"13px","kind":"spacing","reasons":["raw spacing: 13px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"padding","value":"18px","kind":"spacing","reasons":["raw spacing: 18px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"inset","value":"-1px","kind":"spacing","reasons":["raw spacing: -1px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"padding","value":"1.5px","kind":"spacing","reasons":["raw spacing: 1.5px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"margin-bottom","value":"11px","kind":"spacing","reasons":["raw spacing: 11px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"margin-top","value":"5px","kind":"spacing","reasons":["raw spacing: 5px"]},{"path":"components\/glow-cards\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":7}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/glow-cards\/glow-cards.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/glow-cards\/glow-cards.css: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/glow-cards\/glow-cards.css: line-height: 1.75 [type] \u2014 raw type: 1.75","components\/glow-cards\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/glow-cards\/glow-cards.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/glow-cards\/glow-cards.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]},{"path":"components\/glow-cards\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"goo-tabs","type":"registry:component","title":"Goo Tabs","description":"Tabs whose indicator travels like liquid: it stretches mid-flight, then settles over the chosen tab.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/goo-tabs\/goo-tabs.css","type":"registry:component","content":"\/* KATA goo-tabs 1.1.0 \u2014 kata-ui.dev\/components\/goo-tabs \u2014 requires mold >= 2 *\/\n\/* KATA Goo Tabs \u2014 the indicator travels like liquid. *\/\n.k-goo-tabs{font-family:var(--k-font);color:var(--k-ink);max-width:520px}\n.k-goo-bar{position:relative;display:inline-flex;background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:99px;padding:4px}\n.k-goo-ind{position:absolute;top:4px;bottom:4px;border-radius:99px;background:var(--k-ink);transition:left calc(.45s * var(--k-mscale)) var(--k-ease-spring), width calc(.45s * var(--k-mscale)) var(--k-ease-spring), transform calc(.3s * var(--k-mscale))}\n.k-goo-ind.moving{transform:scaleY(.86)}\n.k-goo-bar button{position:relative;z-index:1;border:0;background:none;font-family:inherit;font-size:13.5px;font-weight:600;color:var(--k-ink-2);padding:8px 16px;border-radius:99px;cursor:pointer;transition:color calc(.25s * var(--k-mscale))}\n.k-goo-bar button[aria-selected=\"true\"]{color:var(--k-bg)}\n.k-goo-panel{padding:16px 3px 2px;font-size:13.5px;line-height:1.75;color:var(--k-ink-2);letter-spacing:.012em}\n@media (prefers-reduced-motion:reduce){.k-goo-ind{transition:none}}\n"},{"path":"components\/goo-tabs\/goo-tabs.js","type":"registry:component","content":"\/* KATA goo-tabs 1.1.0 \u2014 kata-ui.dev\/components\/goo-tabs \u2014 requires mold >= 2 *\/\n\/\/ KATA Goo Tabs \u2014 real tabs; only the indicator is theatrical.\ndocument.querySelectorAll('[data-gootabs]').forEach(function (root) {\n  var bar = root.querySelector('.k-goo-bar');\n  var ind = root.querySelector('.k-goo-ind');\n  var tabs = Array.prototype.slice.call(bar.querySelectorAll('button[role=\"tab\"]'));\n  var panels = Array.prototype.slice.call(root.querySelectorAll('[role=\"tabpanel\"]'));\n  function place(tab, animate) {\n    ind.style.left = tab.offsetLeft + 'px';\n    ind.style.width = tab.offsetWidth + 'px';\n    if (animate) {\n      ind.classList.add('moving');\n      ind.style.width = (tab.offsetWidth * 1.18) + 'px';\n      setTimeout(function () { ind.style.width = tab.offsetWidth + 'px'; ind.classList.remove('moving'); }, 180);\n    }\n  }\n  function choose(tab, focus) {\n    tabs.forEach(function (t) {\n      var on = t === tab;\n      t.setAttribute('aria-selected', on);\n      t.tabIndex = on ? 0 : -1;\n      var p = panels[tabs.indexOf(t)];\n      if (p) p.hidden = !on;\n    });\n    place(tab, true);\n    if (focus) tab.focus();\n  }\n  tabs.forEach(function (t) { t.addEventListener('click', function () { choose(t, false); }); });\n  bar.addEventListener('keydown', function (e) {\n    var i = tabs.indexOf(document.activeElement);\n    if (i < 0) return;\n    if (e.key === 'ArrowRight') { choose(tabs[(i + 1) % tabs.length], true); e.preventDefault(); }\n    if (e.key === 'ArrowLeft') { choose(tabs[(i - 1 + tabs.length) % tabs.length], true); e.preventDefault(); }\n  });\n  var start = tabs.filter(function (t) { return t.getAttribute('aria-selected') === 'true'; })[0] || tabs[0];\n  choose(start, false);\n  place(start, false);\n});\n"},{"path":"components\/goo-tabs\/example.html","type":"registry:component","content":"<!-- KATA goo-tabs 1.1.0 \u2014 kata-ui.dev\/components\/goo-tabs \u2014 requires mold >= 2 -->\n<div class=\"k-goo-tabs\" data-gootabs>\n  <div class=\"k-goo-bar\" role=\"tablist\" aria-label=\"Workspace\">\n    <span class=\"k-goo-ind\" aria-hidden=\"true\"><\/span>\n    <button type=\"button\" role=\"tab\" id=\"gt-0\" aria-controls=\"gtp-0\" aria-selected=\"true\" tabindex=\"0\">Overview<\/button><button type=\"button\" role=\"tab\" id=\"gt-1\" aria-controls=\"gtp-1\" aria-selected=\"false\" tabindex=\"-1\">Orders<\/button><button type=\"button\" role=\"tab\" id=\"gt-2\" aria-controls=\"gtp-2\" aria-selected=\"false\" tabindex=\"-1\">Customers<\/button>\n  <\/div>\n  <div class=\"k-goo-panel\" role=\"tabpanel\" id=\"gtp-0\" aria-labelledby=\"gt-0\">The workspace at a glance: open orders, this week\u2019s revenue, and the three parts everyone keeps copying.<\/div><div class=\"k-goo-panel\" role=\"tabpanel\" id=\"gtp-1\" aria-labelledby=\"gt-1\" hidden>128 orders, newest first. Four are overdue \u2014 the toolbar above the table already knows which.<\/div><div class=\"k-goo-panel\" role=\"tabpanel\" id=\"gtp-2\" aria-labelledby=\"gt-2\" hidden>312 customers, 41 of them new this month. The list exports exactly what it shows.<\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"A working tab set \u2014 buttons, panels, arrow keys \u2014 whose indicator refuses to move like a spreadsheet. It slides with an elastic curve and stretches a fifth wider mid-journey, which is all the goo a production interface can defend. The panels are real panels; switch the content, keep the plumbing.","accessibility":"Full tab semantics: role=tablist, aria-selected, one tab stop, arrow-key travel \u2014 the liquid never touches the keyboard model. Under prefers-reduced-motion the indicator jumps without stretching, still landing exactly where it belongs."},"audit":{"id":"components\/goo-tabs","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/goo-tabs\/goo-tabs.css: padding: 4px [spacing] \u2014 raw spacing: 4px","components\/goo-tabs\/goo-tabs.css: padding: 8px 16px [spacing] \u2014 raw spacing: 8px; raw spacing: 16px","components\/goo-tabs\/goo-tabs.css: padding: 16px 3px 2px [spacing] \u2014 raw spacing: 16px; raw spacing: 3px; raw spacing: 2px"],"profile":"lab","details":[{"path":"components\/goo-tabs\/goo-tabs.css","property":"padding","value":"4px","kind":"spacing","reasons":["raw spacing: 4px"]},{"path":"components\/goo-tabs\/goo-tabs.css","property":"padding","value":"8px 16px","kind":"spacing","reasons":["raw spacing: 8px","raw spacing: 16px"]},{"path":"components\/goo-tabs\/goo-tabs.css","property":"padding","value":"16px 3px 2px","kind":"spacing","reasons":["raw spacing: 16px","raw spacing: 3px","raw spacing: 2px"]}],"by_kind":{"spacing":3}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/goo-tabs\/goo-tabs.css: font-size: 13.5px [type] \u2014 raw type: 13.5px","components\/goo-tabs\/goo-tabs.css: font-size: 13.5px [type] \u2014 raw type: 13.5px","components\/goo-tabs\/goo-tabs.css: line-height: 1.75 [type] \u2014 raw type: 1.75"],"profile":"lab","details":[{"path":"components\/goo-tabs\/goo-tabs.css","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]},{"path":"components\/goo-tabs\/goo-tabs.css","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]},{"path":"components\/goo-tabs\/goo-tabs.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"horizontal-reel","type":"registry:component","title":"Horizontal Reel","description":"Scroll down, travel sideways: vertical scrolling drives a horizontal strip of cards.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/horizontal-reel\/horizontal-reel.css","type":"registry:component","content":"\/* KATA horizontal-reel 1.1.0 \u2014 kata-ui.dev\/components\/horizontal-reel \u2014 requires mold >= 2 *\/\n\/* KATA Horizontal Reel \u2014 down becomes sideways. *\/\n.k-reel{height:236px;overflow:auto;border:1px solid var(--k-line);border-radius:14px;background:var(--k-bg);font-family:var(--k-font);color:var(--k-ink)}\n.k-reel-space{height:290%;position:relative}\n.k-reel-view{position:sticky;top:0;height:236px;overflow:hidden;display:flex;align-items:center}\n.k-reel-strip{display:flex;gap:13px;padding:0 18px;will-change:transform}\n.k-reel-card{flex:none;width:196px;height:148px;border:1px solid var(--k-line);border-radius:13px;background:var(--k-bg-soft);padding:16px;display:flex;flex-direction:column;justify-content:flex-end;gap:5px}\n.k-reel-card b{font-size:14.5px;font-weight:650}\n.k-reel-card span{font-size:12px;color:var(--k-ink-2)}\n"},{"path":"components\/horizontal-reel\/horizontal-reel.js","type":"registry:component","content":"\/* KATA horizontal-reel 1.1.0 \u2014 kata-ui.dev\/components\/horizontal-reel \u2014 requires mold >= 2 *\/\n\/\/ KATA Horizontal Reel \u2014 the scroll fraction, pointed sideways.\ndocument.querySelectorAll('[data-reel]').forEach(function (root) {\n  var strip = root.querySelector('.k-reel-strip');\n  var view = root.querySelector('.k-reel-view');\n  function update() {\n    var max = root.scrollHeight - root.clientHeight;\n    var p = max > 0 ? root.scrollTop \/ max : 0;\n    var travel = Math.max(0, strip.scrollWidth - view.clientWidth + 18);\n    strip.style.transform = 'translateX(' + (-p * travel).toFixed(1) + 'px)';\n  }\n  root.addEventListener('scroll', update, { passive: true });\n  update();\n});\n"},{"path":"components\/horizontal-reel\/example.html","type":"registry:component","content":"<!-- KATA horizontal-reel 1.1.0 \u2014 kata-ui.dev\/components\/horizontal-reel \u2014 requires mold >= 2 -->\n<div class=\"k-reel\" data-reel>\n  <div class=\"k-reel-space\">\n    <div class=\"k-reel-view\"><div class=\"k-reel-strip\">\n      <div class=\"k-reel-card\"><b>01 \u00b7 Cast<\/b><span>One mold for every part<\/span><\/div><div class=\"k-reel-card\"><b>02 \u00b7 Check<\/b><span>The mold inspects<\/span><\/div><div class=\"k-reel-card\"><b>03 \u00b7 Compose<\/b><span>Blocks from parts<\/span><\/div><div class=\"k-reel-card\"><b>04 \u00b7 Theme<\/b><span>Five accents, one core<\/span><\/div><div class=\"k-reel-card\"><b>05 \u00b7 Ship<\/b><span>Copy, paste, own it<\/span><\/div><div class=\"k-reel-card\"><b>06 \u00b7 Again<\/b><span>The mold remembers<\/span><\/div>\n    <\/div><\/div>\n  <\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Scroll inside the box. Down becomes sideways.<\/p>"}],"meta":{"status":"beta","usage":"The page\u2019s scroll becomes the strip\u2019s journey: a tall spacer, a sticky window, and a script that maps scroll fraction to sideways travel. In the wild it runs full-bleed sections; here it is boxed so the trick can be studied. Use it for the one gallery that deserves a journey. Do not use it for navigation.","accessibility":"The mapping is one-to-one with the scrollbar, so position is never a mystery, and every card is ordinary content in reading order. Under prefers-reduced-motion the strip becomes a plain horizontally scrollable row \u2014 the journey, democratized."},"audit":{"id":"components\/horizontal-reel","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/horizontal-reel\/horizontal-reel.css: gap: 13px [spacing] \u2014 raw spacing: 13px","components\/horizontal-reel\/horizontal-reel.css: padding: 0 18px [spacing] \u2014 raw spacing: 18px","components\/horizontal-reel\/horizontal-reel.css: padding: 16px [spacing] \u2014 raw spacing: 16px","components\/horizontal-reel\/horizontal-reel.css: gap: 5px [spacing] \u2014 raw spacing: 5px","components\/horizontal-reel\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"gap","value":"13px","kind":"spacing","reasons":["raw spacing: 13px"]},{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"padding","value":"0 18px","kind":"spacing","reasons":["raw spacing: 18px"]},{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"padding","value":"16px","kind":"spacing","reasons":["raw spacing: 16px"]},{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"gap","value":"5px","kind":"spacing","reasons":["raw spacing: 5px"]},{"path":"components\/horizontal-reel\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/horizontal-reel\/horizontal-reel.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/horizontal-reel\/horizontal-reel.css: font-size: 12px [type] \u2014 raw type: 12px","components\/horizontal-reel\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/horizontal-reel\/horizontal-reel.css","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]},{"path":"components\/horizontal-reel\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"liquid-button","type":"registry:component","title":"Liquid Button","description":"Hover and the button fills with liquid \u2014 a rising, rotating wave behind the label.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/liquid-button\/liquid-button.css","type":"registry:component","content":"\/* KATA liquid-button 1.1.0 \u2014 kata-ui.dev\/components\/liquid-button \u2014 requires mold >= 2 *\/\n\/* KATA Liquid Button \u2014 hover pours. *\/\n.k-liq{position:relative;overflow:hidden;display:inline-block;border:1.5px solid var(--k-ink);background:var(--k-bg);color:var(--k-ink);font-family:var(--k-font);font-size:14.5px;font-weight:650;padding:13px 27px;border-radius:11px;cursor:pointer}\n.k-liq .fill{position:absolute;left:-30%;top:100%;width:160%;padding-top:160%;background:var(--k-accent);border-radius:42% 46% 44% 48%;transition:transform calc(.65s * var(--k-mscale)) var(--k-ease-in-out);transform:rotate(0);color:var(--k-on-accent)}\n.k-liq:hover .fill,.k-liq:focus-visible .fill{transform:translateY(-58%) rotate(160deg)}\n.k-liq .lbl{position:relative;z-index:1;transition:color calc(.4s * var(--k-mscale))}\n.k-liq:hover .lbl,.k-liq:focus-visible .lbl{color:var(--k-on-color)}\n.k-liq.dark{border-color:var(--k-ink);background:var(--k-ink);color:var(--k-bg)}\n.k-liq.dark .fill{background:var(--k-on-color)}\n.k-liq.dark:hover .lbl,.k-liq.dark:focus-visible .lbl{color:var(--k-zinc-950)}\n.k-liq:active{transform:scale(.97)}\n@media (prefers-reduced-motion:reduce){.k-liq .fill{transition:none}}\n"},{"path":"components\/liquid-button\/example.html","type":"registry:component","content":"<!-- KATA liquid-button 1.1.0 \u2014 kata-ui.dev\/components\/liquid-button \u2014 requires mold >= 2 -->\n<div style=\"display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:8px 0\">\n  <button class=\"k-liq\" type=\"button\"><span class=\"fill\" aria-hidden=\"true\"><\/span><span class=\"lbl\">Start the trial<\/span><\/button>\n  <button class=\"k-liq dark\" type=\"button\"><span class=\"fill\" aria-hidden=\"true\"><\/span><span class=\"lbl\">Download the mold<\/span><\/button>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:8px\">Hover slowly \u2014 the wave is the rotation, not a picture of one.<\/p>"}],"meta":{"status":"beta","usage":"The fill is a rotating blob on a rising carrier: hover lifts it past the label line and the rotation reads as a wave. The button stays a button \u2014 same size, same name, same keyboard behavior \u2014 with the liquid as its one party trick. Dark label on light, light label once filled; both states are token pairs, so themes keep working.","accessibility":"Fill is hover garnish: focus shows the standard focus ring, activation is unchanged, and touch users tap a perfectly good button that simply skips the pour. Under prefers-reduced-motion the fill snaps instead of rising."},"audit":{"id":"components\/liquid-button","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/liquid-button\/liquid-button.css: padding: 13px 27px [spacing] \u2014 raw spacing: 13px; raw spacing: 27px","components\/liquid-button\/liquid-button.css: padding-top: 160% [spacing] \u2014 raw spacing: 160%","components\/liquid-button\/preview.html: gap: 16px [spacing] \u2014 raw spacing: 16px","components\/liquid-button\/preview.html: padding: 8px 0 [spacing] \u2014 raw spacing: 8px","components\/liquid-button\/preview.html: margin-top: 8px [spacing] \u2014 raw spacing: 8px"],"profile":"lab","details":[{"path":"components\/liquid-button\/liquid-button.css","property":"padding","value":"13px 27px","kind":"spacing","reasons":["raw spacing: 13px","raw spacing: 27px"]},{"path":"components\/liquid-button\/liquid-button.css","property":"padding-top","value":"160%","kind":"spacing","reasons":["raw spacing: 160%"]},{"path":"components\/liquid-button\/preview.html","property":"gap","value":"16px","kind":"spacing","reasons":["raw spacing: 16px"]},{"path":"components\/liquid-button\/preview.html","property":"padding","value":"8px 0","kind":"spacing","reasons":["raw spacing: 8px"]},{"path":"components\/liquid-button\/preview.html","property":"margin-top","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/liquid-button\/liquid-button.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/liquid-button\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/liquid-button\/liquid-button.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/liquid-button\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"magnet","type":"registry:component","title":"Magnet","description":"A button with gravity: it leans toward the pointer, then springs home when the pointer leaves.","categories":["Motion"],"dependencies":["button"],"files":[{"path":"components\/magnet\/magnet.css","type":"registry:component","content":"\/* KATA magnet 1.1.0 \u2014 kata-ui.dev\/components\/magnet \u2014 requires mold >= 4 *\/\n\/* KATA Magnet \u2014 a control with gravity. *\/\n.k-mag{display:inline-block;padding:26px;touch-action:none}\n.k-mag-in{display:inline-block;transition:transform calc(.35s * var(--k-mscale)) var(--k-ease-spring);will-change:transform}\n.k-mag.live .k-mag-in{transition:transform calc(.12s * var(--k-mscale)) ease-out}\n"},{"path":"components\/magnet\/magnet.js","type":"registry:component","content":"\/* KATA magnet 1.1.0 \u2014 kata-ui.dev\/components\/magnet \u2014 requires mold >= 4 *\/\n\/\/ KATA Magnet \u2014 leans toward the cursor at a third of the distance.\ndocument.querySelectorAll('[data-magnet]').forEach(function (zone) {\n  var inner = zone.querySelector('.k-mag-in');\n  if (!inner || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;\n  zone.addEventListener('pointermove', function (e) {\n    var r = zone.getBoundingClientRect();\n    var dx = e.clientX - (r.left + r.width \/ 2);\n    var dy = e.clientY - (r.top + r.height \/ 2);\n    zone.classList.add('live');\n    inner.style.transform = 'translate(' + (dx * .32).toFixed(1) + 'px,' + (dy * .32).toFixed(1) + 'px)';\n  });\n  function home() {\n    zone.classList.remove('live');\n    inner.style.transform = '';\n  }\n  zone.addEventListener('pointerleave', home);\n  zone.addEventListener('pointerup', home);\n  zone.addEventListener('pointercancel', home);\n});\n"},{"path":"components\/magnet\/example.html","type":"registry:component","content":"<!-- KATA magnet 1.1.0 \u2014 kata-ui.dev\/components\/magnet \u2014 requires mold >= 4 -->\n<div style=\"background:var(--k-zinc-950);border-radius:14px;display:flex;align-items:center;justify-content:center;min-height:190px\">\n  <span class=\"k-mag\" data-magnet><span class=\"k-mag-in\"><button class=\"btn btn-lg\" type=\"button\" style=\"background:var(--k-on-color);color:var(--k-zinc-950);border-radius:99px;padding:0 26px\">Get the parts<\/button><\/span><\/span>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Bring the cursor \u2014 or your finger \u2014 near, not even onto, the button.<\/p>"}],"meta":{"status":"beta","usage":"Wrap the one control a hero lives or dies by \u2014 the call to action, the play button. The pull is a fraction of the distance (about a third), the return is a spring, and on touch a dragging finger pulls it the same way \u2014 it springs home when the finger lifts.","accessibility":"Motion only: the control\u2019s position in the layout, its focus order and its name never change, and keyboard focus does not trigger the pull. Under prefers-reduced-motion the magnet is switched off and the button sits still like its ancestors."},"audit":{"id":"components\/magnet","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/magnet\/magnet.css: padding: 26px [spacing] \u2014 raw spacing: 26px","components\/magnet\/preview.html: padding: 0 26px [spacing] \u2014 raw spacing: 26px","components\/magnet\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/magnet\/magnet.css","property":"padding","value":"26px","kind":"spacing","reasons":["raw spacing: 26px"]},{"path":"components\/magnet\/preview.html","property":"padding","value":"0 26px","kind":"spacing","reasons":["raw spacing: 26px"]},{"path":"components\/magnet\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":3}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/magnet\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/magnet\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"marquee","type":"registry:component","title":"Marquee","description":"An endless, even loop. Pauses when you reach for it; fades at both edges.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/marquee\/marquee.css","type":"registry:component","content":"\/* KATA marquee 1.1.0 \u2014 kata-ui.dev\/components\/marquee \u2014 requires mold >= 2 *\/\n\/* KATA Marquee *\/\n.k-marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}\n.k-marquee-track{display:flex;gap:0;width:max-content;animation:k-marquee calc(30s * var(--k-mscale)) linear infinite}\n.k-marquee:hover .k-marquee-track{animation-play-state:paused}\n.k-marquee-group{display:flex;align-items:center;gap:44px;padding-right:44px}\n@keyframes k-marquee{to{transform:translateX(-50%)}}\n@media (prefers-reduced-motion: reduce){.k-marquee-track{animation:none}}\n"},{"path":"components\/marquee\/example.html","type":"registry:component","content":"<!-- KATA marquee 1.1.0 \u2014 kata-ui.dev\/components\/marquee \u2014 requires mold >= 2 -->\n<div class=\"k-marquee\" style=\"max-width:520px\">\n  <div class=\"k-marquee-track\">\n    <div class=\"k-marquee-group\">\n      <span style=\"font-weight:600;font-size:15px;color:var(--k-ink-2)\">NORTHWIND<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">hexlab<\/span><span style=\"font-weight:600;font-size:15px;letter-spacing:.06em;color:var(--k-ink-2)\">ATELIER&nbsp;9<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">mono&amp;co<\/span><span style=\"font-weight:600;font-size:15px;color:var(--k-ink-2)\">Fieldset<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">oslo.fm<\/span>\n    <\/div>\n    <div class=\"k-marquee-group\" aria-hidden=\"true\">\n      <span style=\"font-weight:600;font-size:15px;color:var(--k-ink-2)\">NORTHWIND<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">hexlab<\/span><span style=\"font-weight:600;font-size:15px;letter-spacing:.06em;color:var(--k-ink-2)\">ATELIER&nbsp;9<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">mono&amp;co<\/span><span style=\"font-weight:600;font-size:15px;color:var(--k-ink-2)\">Fieldset<\/span><span style=\"font-family:var(--k-mono);font-size:13px;color:var(--k-ink-3)\">oslo.fm<\/span>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For logo rows and quiet tickers. The track holds the content twice; the second copy is aria-hidden. Speed is the animation duration \u2014 slower reads calmer.","accessibility":"The duplicated half is aria-hidden so screen readers hear the list once. Motion stops under prefers-reduced-motion."},"audit":{"id":"components\/marquee","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/marquee\/marquee.css: gap: 44px [spacing] \u2014 raw spacing: 44px","components\/marquee\/marquee.css: padding-right: 44px [spacing] \u2014 raw spacing: 44px"],"profile":"lab","details":[{"path":"components\/marquee\/marquee.css","property":"gap","value":"44px","kind":"spacing","reasons":["raw spacing: 44px"]},{"path":"components\/marquee\/marquee.css","property":"padding-right","value":"44px","kind":"spacing","reasons":["raw spacing: 44px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px","components\/marquee\/preview.html: font-size: 15px [type] \u2014 raw type: 15px","components\/marquee\/preview.html: font-size: 13px [type] \u2014 raw type: 13px"],"profile":"lab","details":[{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/marquee\/preview.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]}],"by_kind":{"type":12}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"meteors","type":"registry:component","title":"Meteors","description":"A night sky for a hero: meteors streak across a dark panel on their own schedules.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/meteors\/meteors.css","type":"registry:component","content":"\/* KATA meteors 1.1.0 \u2014 kata-ui.dev\/components\/meteors \u2014 requires mold >= 2 *\/\n\/* KATA Meteors \u2014 a seeded night sky. *\/\n.k-met{position:relative;overflow:hidden;background:var(--k-zinc-950);color:var(--k-on-color);border-radius:14px;min-height:230px;font-family:var(--k-font)}\n.k-met-in{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:230px;padding:28px 22px;gap:9px}\n.k-met-in h3{font-size:21px;font-weight:650;letter-spacing:-.02em}\n.k-met-in p{font-size:13px;line-height:1.75;color:var(--k-zinc-400);max-width:340px;letter-spacing:.01em}\n.k-meteor{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--k-on-color);box-shadow:0 0 10px 2px color-mix(in srgb,var(--k-zinc-50) 30%,transparent);animation-name:k-met-fall;animation-timing-function:linear;animation-iteration-count:infinite;opacity:0;z-index:1}\n.k-meteor::before{content:\"\";position:absolute;left:2px;top:50%;width:86px;height:2px;transform:translateY(-50%) rotate(-45deg);transform-origin:left center;background:linear-gradient(to right, color-mix(in srgb,var(--k-zinc-50) 75%,transparent), transparent);border-radius:2px}\n@keyframes k-met-fall{0%{transform:translate3d(0,0,0);opacity:0}6%{opacity:1}92%{opacity:1}100%{transform:translate3d(-330px,330px,0);opacity:0}}\n@media (prefers-reduced-motion:reduce){.k-meteor{display:none}}\n"},{"path":"components\/meteors\/meteors.js","type":"registry:component","content":"\/* KATA meteors 1.1.0 \u2014 kata-ui.dev\/components\/meteors \u2014 requires mold >= 2 *\/\n\/\/ KATA Meteors \u2014 seeds the sky: random starts, delays and speeds.\ndocument.querySelectorAll('[data-meteors]').forEach(function (stage) {\n  var N = 14;\n  for (var i = 0; i < N; i++) {\n    var m = document.createElement('span');\n    m.className = 'k-meteor';\n    m.setAttribute('aria-hidden', 'true');\n    m.style.left = (25 + Math.random() * 85) + '%';\n    m.style.top = (-8 + Math.random() * 45) + '%';\n    m.style.animationDelay = (Math.random() * 9).toFixed(2) + 's';\n    m.style.animationDuration = (3.2 + Math.random() * 3.6).toFixed(2) + 's';\n    stage.appendChild(m);\n  }\n});\n"},{"path":"components\/meteors\/example.html","type":"registry:component","content":"<!-- KATA meteors 1.1.0 \u2014 kata-ui.dev\/components\/meteors \u2014 requires mold >= 2 -->\n<div class=\"k-met\" data-meteors>\n  <div class=\"k-met-in\">\n    <h3>Ship it under a night sky<\/h3>\n    <p>The launch page for a fictional star registry. The sky is the part; the words are yours.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Use it as a background: the stage is a dark panel and the script seeds about fourteen meteors with random starts, delays and speeds, forever. Put one short line of type over it and stop; a paragraph over moving meteors is hard to read.","accessibility":"Pure decoration: the meteors are aria-hidden and the words over them are ordinary text. Under prefers-reduced-motion the sky goes still and the meteors hide \u2014 the panel and the message remain."},"audit":{"id":"components\/meteors","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/meteors\/meteors.css: padding: 28px 22px [spacing] \u2014 raw spacing: 28px; raw spacing: 22px","components\/meteors\/meteors.css: gap: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/meteors\/meteors.css","property":"padding","value":"28px 22px","kind":"spacing","reasons":["raw spacing: 28px","raw spacing: 22px"]},{"path":"components\/meteors\/meteors.css","property":"gap","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/meteors\/meteors.css: font-size: 21px [type] \u2014 raw type: 21px","components\/meteors\/meteors.css: font-size: 13px [type] \u2014 raw type: 13px","components\/meteors\/meteors.css: line-height: 1.75 [type] \u2014 raw type: 1.75"],"profile":"lab","details":[{"path":"components\/meteors\/meteors.css","property":"font-size","value":"21px","kind":"type","reasons":["raw type: 21px"]},{"path":"components\/meteors\/meteors.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/meteors\/meteors.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"orbit","type":"registry:component","title":"Orbit","description":"Icons in orbit around a center: two rings, two speeds, everything staying upright.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/orbit\/orbit.css","type":"registry:component","content":"\/* KATA orbit 1.1.0 \u2014 kata-ui.dev\/components\/orbit \u2014 requires mold >= 2 *\/\n\/* KATA Orbit \u2014 rings that travel, chips that ride upright. *\/\n.k-orbit{position:relative;width:252px;height:252px;margin:6px auto;font-family:var(--k-font);color:var(--k-ink)}\n.k-orbit .core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:18px;background:var(--k-ink);color:var(--k-bg);display:flex;align-items:center;justify-content:center;box-shadow:0 12px 26px -10px color-mix(in srgb,var(--k-zinc-900) 40%,transparent)}\n.k-orbit .ring{position:absolute;border:1px dashed var(--k-zinc-300);border-radius:50%;animation:k-orb-spin linear infinite}\n.k-orbit .ring.r1{inset:26px;animation-duration:calc(16s * var(--k-mscale))}\n.k-orbit .ring.r2{inset:-2px;animation-duration:calc(26s * var(--k-mscale));animation-direction:reverse}\n.k-orbit .chip{position:absolute;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:12px;background:var(--k-bg);border:1px solid var(--k-line);box-shadow:0 4px 12px color-mix(in srgb,var(--k-zinc-900) 10%,transparent);display:flex;align-items:center;justify-content:center;color:var(--k-ink-2);animation:k-orb-spin linear infinite reverse}\n.k-orbit .r1 .chip{animation-duration:calc(16s * var(--k-mscale))}\n.k-orbit .r2 .chip{animation-duration:calc(26s * var(--k-mscale))}\n@keyframes k-orb-spin{to{transform:rotate(360deg)}}\n@media (prefers-reduced-motion:reduce){.k-orbit .ring,.k-orbit .chip{animation:none}}\n"},{"path":"components\/orbit\/example.html","type":"registry:component","content":"<!-- KATA orbit 1.1.0 \u2014 kata-ui.dev\/components\/orbit \u2014 requires mold >= 2 -->\n<figure class=\"k-orbit\" role=\"img\" aria-label=\"Calendar, charts, the whole web and speed, orbiting the mold\">\n  <span class=\"core\"><svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4\"\/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\" rx=\"1.2\"\/><\/svg><\/span>\n  <div class=\"ring r1\"><span class=\"chip\" style=\"left:50.0%;top:0.0%\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"16\" rx=\"2\"\/><path d=\"M3.5 10h17M8 3v4M16 3v4\"\/><\/svg><\/span><span class=\"chip\" style=\"left:50.0%;top:100.0%\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M6 20v-6M12 20V4M18 20v-9\"\/><path d=\"M3.5 20.5h17\"\/><\/svg><\/span><\/div>\n  <div class=\"ring r2\"><span class=\"chip\" style=\"left:93.3%;top:25.0%\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\"\/><path d=\"M3.5 12h17\"\/><path d=\"M12 3.5c2.5 2.3 3.8 5.2 3.8 8.5s-1.3 6.2-3.8 8.5c-2.5-2.3-3.8-5.2-3.8-8.5s1.3-6.2 3.8-8.5Z\"\/><\/svg><\/span><span class=\"chip\" style=\"left:6.7%;top:75.0%\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M13 2 4 14h6l-1 8 9-12h-6l1-8Z\"\/><\/svg><\/span><\/div>\n<\/figure>"}],"meta":{"status":"beta","usage":"A hero device for \"things that work around your product\" \u2014 integrations, features, the catalog itself. Two rings is the composition limit; a third is a solar system. Chips counter-rotate so the glyphs never tilt: the ring travels, the icons ride.","accessibility":"The orbit is a picture of the list, so give the figure an aria-label naming what circles (\"Integrations orbiting the workspace\") and keep a real list nearby in the page. Under prefers-reduced-motion the rings stop mid-sky, upright and readable."},"audit":{"id":"components\/orbit","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/orbit\/orbit.css: margin: 6px auto [spacing] \u2014 raw spacing: 6px","components\/orbit\/orbit.css: inset: 26px [spacing] \u2014 raw spacing: 26px","components\/orbit\/orbit.css: inset: -2px [spacing] \u2014 raw spacing: -2px","components\/orbit\/orbit.css: margin: -18px 0 0 -18px [spacing] \u2014 raw spacing: -18px"],"profile":"lab","details":[{"path":"components\/orbit\/orbit.css","property":"margin","value":"6px auto","kind":"spacing","reasons":["raw spacing: 6px"]},{"path":"components\/orbit\/orbit.css","property":"inset","value":"26px","kind":"spacing","reasons":["raw spacing: 26px"]},{"path":"components\/orbit\/orbit.css","property":"inset","value":"-2px","kind":"spacing","reasons":["raw spacing: -2px"]},{"path":"components\/orbit\/orbit.css","property":"margin","value":"-18px 0 0 -18px","kind":"spacing","reasons":["raw spacing: -18px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"particle-net","type":"registry:component","title":"Particle Net","description":"A constellation that drifts and connects: the classic particle network, tuned quiet enough for real heroes.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/particle-net\/particle-net.css","type":"registry:component","content":"\/* KATA particle-net 1.1.0 \u2014 kata-ui.dev\/components\/particle-net \u2014 requires mold >= 2 *\/\n\/* KATA Particle Net \u2014 a quiet constellation. *\/\n.k-net{position:relative;width:100%;background:var(--k-zinc-950);touch-action:none;border-radius:14px;overflow:hidden;font-family:var(--k-font)}\n.k-net canvas{position:absolute;inset:0;width:100%;height:100%}\n.k-net-in{position:relative;z-index:1;padding:30px 26px;color:var(--k-on-color);max-width:430px}\n.k-net-in h3{font-size:20px;font-weight:650;letter-spacing:-.02em}\n.k-net-in p{font-size:13px;line-height:1.75;color:var(--k-zinc-400);margin-top:8px;letter-spacing:.01em}\n"},{"path":"components\/particle-net\/particle-net.js","type":"registry:component","content":"\/* KATA particle-net 1.1.0 \u2014 kata-ui.dev\/components\/particle-net \u2014 requires mold >= 2 *\/\n\/\/ KATA Particle Net \u2014 drift, connect, gather at the cursor.\ndocument.querySelectorAll('[data-net]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var cs = getComputedStyle(stage);\n  var INK = cs.getPropertyValue('--k-zinc-400').trim() || '#a1a1aa';\n  var ACCENT = cs.getPropertyValue('--k-accent').trim() || '#0e9594';\n  var W, H, pts = [], mouse = { x: -9999, y: -9999 };\n  function size() {\n    W = stage.clientWidth; H = stage.clientHeight;\n    canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0);\n    var n = Math.min(78, Math.floor(W * H \/ 2600));\n    pts = [];\n    for (var i = 0; i < n; i++) pts.push({ x: Math.random() * W, y: Math.random() * H, vx: (Math.random() - .5) * .34, vy: (Math.random() - .5) * .34 });\n  }\n  function draw() {\n    ctx.clearRect(0, 0, W, H);\n    var i, j, p, q;\n    for (i = 0; i < pts.length; i++) {\n      p = pts[i];\n      p.x += p.vx; p.y += p.vy;\n      if (p.x < 0 || p.x > W) p.vx *= -1;\n      if (p.y < 0 || p.y > H) p.vy *= -1;\n      var dm = Math.hypot(mouse.x - p.x, mouse.y - p.y);\n      if (dm < 130 && dm > 1) { p.x += (mouse.x - p.x) * .0016; p.y += (mouse.y - p.y) * .0016; }\n    }\n    for (i = 0; i < pts.length; i++) for (j = i + 1; j < pts.length; j++) {\n      p = pts[i]; q = pts[j];\n      var d = Math.hypot(p.x - q.x, p.y - q.y);\n      if (d < 108) {\n        ctx.strokeStyle = INK;\n        ctx.globalAlpha = (1 - d \/ 108) * .42;\n        ctx.beginPath(); ctx.moveTo(p.x, p.y); ctx.lineTo(q.x, q.y); ctx.stroke();\n      }\n    }\n    ctx.globalAlpha = 1;\n    pts.forEach(function (p, i) {\n      ctx.fillStyle = i % 9 === 0 ? ACCENT : INK;\n      ctx.beginPath(); ctx.arc(p.x, p.y, 2, 0, 7); ctx.fill();\n    });\n  }\n  function frame() { draw(); if (!reduced) requestAnimationFrame(frame); }\n  stage.addEventListener('pointermove', function (e) {\n    var r = stage.getBoundingClientRect();\n    mouse.x = e.clientX - r.left; mouse.y = e.clientY - r.top;\n  });\n  stage.addEventListener('pointerleave', function () { mouse.x = -9999; mouse.y = -9999; });\n  size();\n  window.addEventListener('resize', size);\n  frame();\n});\n"},{"path":"components\/particle-net\/example.html","type":"registry:component","content":"<!-- KATA particle-net 1.1.0 \u2014 kata-ui.dev\/components\/particle-net \u2014 requires mold >= 2 -->\n<div class=\"k-net\" data-net role=\"img\" aria-label=\"A drifting particle network behind the headline\">\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <div class=\"k-net-in\">\n    <h3>Built by a network of one-person studios<\/h3>\n    <p>312 independent builders ship on the mold. The net behind this panel is the part; the sentence is the kind it carries.<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"A background for hero sections and empty states: points drift slowly, lines form between near neighbors, and the cursor gathers a small crowd. Density and speed are set low on purpose \u2014 a net you notice working is a net set wrong. Real content rides above it in the same panel.","accessibility":"The canvas is aria-hidden scenery behind real, high-contrast content. Under prefers-reduced-motion a single still constellation is drawn and left alone. If the text cannot be read with the net removed, fix the text."},"audit":{"id":"components\/particle-net","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/particle-net\/particle-net.css: padding: 30px 26px [spacing] \u2014 raw spacing: 30px; raw spacing: 26px","components\/particle-net\/particle-net.css: margin-top: 8px [spacing] \u2014 raw spacing: 8px"],"profile":"lab","details":[{"path":"components\/particle-net\/particle-net.css","property":"padding","value":"30px 26px","kind":"spacing","reasons":["raw spacing: 30px","raw spacing: 26px"]},{"path":"components\/particle-net\/particle-net.css","property":"margin-top","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/particle-net\/particle-net.css: font-size: 20px [type] \u2014 raw type: 20px","components\/particle-net\/particle-net.css: font-size: 13px [type] \u2014 raw type: 13px","components\/particle-net\/particle-net.css: line-height: 1.75 [type] \u2014 raw type: 1.75"],"profile":"lab","details":[{"path":"components\/particle-net\/particle-net.css","property":"font-size","value":"20px","kind":"type","reasons":["raw type: 20px"]},{"path":"components\/particle-net\/particle-net.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/particle-net\/particle-net.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"pixel-switch","type":"registry:component","title":"Pixel Switch","description":"A switch whose knob carries a dot icon: on change the dots scatter and re-form, and a lit arc sweeps the rim.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/pixel-switch\/pixel-switch.css","type":"registry:component","content":"\/* KATA pixel-switch 1.1.0 \u2014 kata-ui.dev\/components\/pixel-switch \u2014 requires mold >= 3 *\/\n\/* KATA Pixel Switch \u2014 an 11 x 11 dot icon on the knob, a lit arc on its rim. *\/\n@property --k-pxs-a{syntax:\"<angle>\";inherits:true;initial-value:210deg}\n@property --k-pxs-glow{syntax:\"<color>\";inherits:true;initial-value:transparent}\n\/* The 1px rim keeps the track 3:1 from the page (WCAG 1.4.11), as in Switch. Every length derives from --k-pxs-h (88px; 44px in .k-pxs-sm), so one value resizes the whole part. *\/\n.k-pxs{--k-pxs-h:88px;--k-pxs-u:calc(var(--k-pxs-h) \/ 88);--k-pxs-track:var(--k-bg-soft);--k-pxs-face:var(--k-bg);--k-pxs-dot:var(--k-ink-2);--k-pxs-rim:var(--k-ink-3);--k-pxs-rim-hover:var(--k-ink-2);--k-pxs-glow:var(--k-accent);--k-pxs-halo:transparent;--k-pxs-lit:0;--k-pxs-inset:inset 0 calc(var(--k-pxs-u) * 2) calc(var(--k-pxs-u) * 6) color-mix(in srgb,var(--k-zinc-950) 18%,transparent);position:relative;display:inline-block;flex:none;vertical-align:middle;inline-size:calc(var(--k-pxs-u) * 168);block-size:var(--k-pxs-h);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:--k-pxs-glow calc(.6s * var(--k-mscale)) var(--k-ease-in-out)}\n.k-pxs-sm{--k-pxs-h:44px}\n\/* The native checkbox covers the whole part: it takes the pointer, the keyboard and the accessible state. *\/\n.k-pxs input{position:absolute;inset:0;inline-size:100%;block-size:100%;margin:0;opacity:0;cursor:inherit;z-index:2}\n.k-pxs-track{position:absolute;inset:0;border-radius:calc(var(--k-pxs-u) * 24);background:var(--k-pxs-track);box-shadow:var(--k-pxs-inset),inset 0 0 0 1px var(--k-pxs-rim);transition:background-color calc(.6s * var(--k-mscale)) var(--k-ease-in-out),box-shadow var(--k-dur-base) var(--k-ease)}\n.k-pxs-knob{--k-pxs-a:210deg;position:absolute;inset-block-start:calc(var(--k-pxs-u) * 8);inset-inline-start:calc(var(--k-pxs-u) * 8);inline-size:calc(var(--k-pxs-u) * 72);block-size:calc(var(--k-pxs-u) * 72);border-radius:calc(var(--k-pxs-u) * 18);display:grid;place-items:center;color:var(--k-pxs-dot);background:linear-gradient(160deg,color-mix(in srgb,var(--k-zinc-50) 32%,transparent),transparent 62%) var(--k-pxs-face);box-shadow:0 calc(var(--k-pxs-u) * 6) calc(var(--k-pxs-u) * 14) color-mix(in srgb,var(--k-zinc-950) 18%,transparent),0 0 calc(var(--k-pxs-u) * 30) calc(var(--k-pxs-u) * 2) var(--k-pxs-halo);transition:transform calc(.7s * var(--k-mscale)) var(--k-ease-in-out),scale var(--k-dur-fast) var(--k-ease),background-color calc(.6s * var(--k-mscale)) var(--k-ease-in-out),color calc(.6s * var(--k-mscale)) var(--k-ease-in-out),box-shadow calc(.6s * var(--k-mscale)) var(--k-ease-in-out),--k-pxs-a calc(.9s * var(--k-mscale)) var(--k-ease-in-out)}\n\/* The rim: a bright arc masked to a 3px ring, and a blurred copy of it for the bloom. *\/\n.k-pxs-knob::before,.k-pxs-bloom{content:\"\";position:absolute;inset:calc(var(--k-pxs-u) * -3);padding:calc(var(--k-pxs-u) * 3);border-radius:calc(var(--k-pxs-u) * 21);pointer-events:none;background:conic-gradient(from var(--k-pxs-a),transparent 0deg 40deg,var(--k-pxs-glow) 120deg,var(--k-zinc-50) 150deg,var(--k-pxs-glow) 180deg,transparent 260deg 360deg);-webkit-mask:linear-gradient(var(--k-zinc-950) 0 0) content-box,linear-gradient(var(--k-zinc-950) 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:var(--k-pxs-lit);transition:opacity calc(.6s * var(--k-mscale)) var(--k-ease-in-out)}\n.k-pxs-bloom{inset:calc(var(--k-pxs-u) * -9);padding:calc(var(--k-pxs-u) * 9);border-radius:calc(var(--k-pxs-u) * 27);filter:blur(calc(var(--k-pxs-u) * 10));opacity:calc(var(--k-pxs-lit) * .95)}\n\/* Dot coordinates are pixel-art coordinates: the icon keeps its drawing in RTL. *\/\n.k-pxs-dots{position:relative;z-index:1;direction:ltr;inline-size:calc(var(--k-pxs-u) * 44);block-size:calc(var(--k-pxs-u) * 44)}\n.k-pxs-dots > span{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:calc(100% \/ 11);block-size:calc(100% \/ 11)}\n\/* A 1px gutter on the end edges keeps each 3px dot on whole pixels at 1x. *\/\n.k-pxs-dots > span::before{content:\"\";position:absolute;inset-block:0 var(--k-pxs-u);inset-inline:0 var(--k-pxs-u);background:currentColor;border-radius:calc(var(--k-pxs-u) * .5)}\n\/* On: the knob travels to the inline end, the arc makes one full turn and the rim lights. *\/\n.k-pxs:has(input:checked){--k-pxs-dot:var(--k-ink);--k-pxs-lit:1;--k-pxs-halo:color-mix(in srgb,var(--k-pxs-glow) 45%,transparent)}\n.k-pxs input:checked ~ .k-pxs-knob{--k-pxs-a:570deg;transform:translateX(calc(var(--k-pxs-u) * 80))}\n[dir=\"rtl\"] .k-pxs input:checked ~ .k-pxs-knob,.k-pxs input:checked:dir(rtl) ~ .k-pxs-knob{transform:translateX(calc(var(--k-pxs-u) * -80))}\n\/* Theme pair: both states are lit, on fixed palette, so the sun chip stays light and the moon chip stays dark in either page theme. *\/\n.k-pxs[data-pxs=\"theme\"]{--k-pxs-track:var(--k-zinc-200);--k-pxs-face:var(--k-zinc-50);--k-pxs-dot:var(--k-zinc-900);--k-pxs-rim:var(--k-zinc-500);--k-pxs-rim-hover:var(--k-zinc-700);--k-pxs-glow:var(--k-yamabuki);--k-pxs-lit:1;--k-pxs-halo:color-mix(in srgb,var(--k-pxs-glow) 45%,transparent)}\n.k-pxs[data-pxs=\"theme\"]:has(input:checked){--k-pxs-track:var(--k-zinc-950);--k-pxs-face:var(--k-zinc-800);--k-pxs-dot:var(--k-zinc-50);--k-pxs-rim:var(--k-zinc-500);--k-pxs-rim-hover:var(--k-zinc-300);--k-pxs-glow:var(--k-asagi-300)}\n.k-pxs:hover input:not(:disabled) ~ .k-pxs-track{box-shadow:var(--k-pxs-inset),inset 0 0 0 1px var(--k-pxs-rim-hover)}\n.k-pxs input:active:not(:disabled) ~ .k-pxs-knob{scale:.96}\n.k-pxs input:focus-visible ~ .k-pxs-track{box-shadow:var(--k-ring),var(--k-pxs-inset),inset 0 0 0 1px var(--k-pxs-rim-hover)}\n.k-pxs:has(input:disabled){cursor:not-allowed;opacity:.5}\n"},{"path":"components\/pixel-switch\/pixel-switch.js","type":"registry:component","content":"\/* KATA pixel-switch 1.1.0 \u2014 kata-ui.dev\/components\/pixel-switch \u2014 requires mold >= 3 *\/\n\/\/ KATA Pixel Switch \u2014 the knob's dot icon scatters and re-forms on every change.\n(() => {\n  'use strict';\n  \/\/ 11 x 11 dot maps, '#' lit: [unchecked, checked]. Edit a pair or add one, then name it in data-pxs.\n  const MAPS = {\n    theme: [\n      ['.....#.....', '.#.......#.', '...........', '....###....', '...#####...', '#..#####..#', '...#####...', '....###....', '...........', '.#.......#.', '.....#.....'],\n      ['...........', '....###..#.', '...###.....', '..###....#.', '..###......', '..###......', '..####.....', '...#####.#.', '....#####..', '.....###...', '...........']],\n    sound: [\n      ['...........', '....#......', '...##......', '..###.#...#', '#####..#.#.', '#####...#..', '#####..#.#.', '..###.#...#', '...##......', '....#......', '...........'],\n      ['...........', '....#......', '...##...#..', '..###.#..#.', '#####..#.#.', '#####..#.#.', '#####..#.#.', '..###.#..#.', '...##...#..', '....#......', '...........']],\n    bell: [\n      ['...........', '.#...#.....', '..#.###....', '...#.###...', '...##.##...', '...###.#...', '..#####.#..', '.#######.#.', '........#..', '....###..#.', '...........'],\n      ['...........', '.....#.....', '....###....', '...#####...', '...#####...', '...#####...', '..#######..', '.#########.', '...........', '....###....', '...........']],\n    power: [\n      ['.....#.....', '.....#.....', '...#.#.#...', '..#..#..#..', '.##..#..##.', '.#...#...#.', '.#.......#.', '.##.....##.', '..#.....#..', '...#####...', '...........'],\n      ['......#....', '.....##....', '....##.....', '...##......', '..#######..', '.....##....', '....##.....', '...##......', '..##.......', '..#........', '...........']]\n  };\n  const SIZE = 11, MID = 5, PERIOD = 720, STAGGER = 20;\n  const cells = rows => {\n    const out = [];\n    rows.forEach((row, y) => { for (let x = 0; x < SIZE; x++) if (row[x] === '#') out.push([x, y]); });\n    return out;\n  };\n  const SHAPES = {};\n  Object.keys(MAPS).forEach(name => { SHAPES[name] = MAPS[name].map(cells); });\n  const reduce = window.matchMedia('(prefers-reduced-motion: reduce)');\n  \/\/ Translate percentages are the dot's own size, so one unit is one cell at any part size.\n  const at = p => 'translate(' + (p.x * 100) + '%, ' + (p.y * 100) + '%)';\n\n  document.querySelectorAll('[data-pxs]').forEach(root => {\n    if (root.dataset.kataReady) return;\n    const input = root.querySelector('input[type=\"checkbox\"]');\n    const knob = root.querySelector('.k-pxs-knob');\n    if (!input || !knob) return;\n    root.dataset.kataReady = 'true';\n    const pair = SHAPES[root.dataset.pxs] || SHAPES.theme;\n    let box = knob.querySelector('.k-pxs-dots');\n    if (!box) {\n      box = document.createElement('span');\n      box.className = 'k-pxs-dots';\n      knob.append(box);\n    }\n    box.setAttribute('aria-hidden', 'true');\n    box.textContent = '';\n    \/\/ One dot per lit cell of the larger icon; spare dots fade out at the centre.\n    const dots = Array.from({ length: Math.max(pair[0].length, pair[1].length) }, () => box.appendChild(document.createElement('span')));\n    const runs = [];\n    const ends = () => {\n      const shape = pair[input.checked ? 1 : 0];\n      return dots.map((_, i) => shape[i] ? { x: shape[i][0], y: shape[i][1], a: 1 } : { x: MID, y: MID, a: 0 });\n    };\n    const place = (dot, p) => { dot.style.transform = at(p); dot.style.opacity = String(p.a); };\n    const still = () => {\n      const scale = parseFloat(getComputedStyle(root).getPropertyValue('--k-mscale'));\n      return reduce.matches || scale === 0 || typeof dots[0].animate !== 'function';\n    };\n    const sync = () => {\n      const targets = ends();\n      const scale = parseFloat(getComputedStyle(root).getPropertyValue('--k-mscale'));\n      const factor = Number.isFinite(scale) ? scale : 1;\n      const easing = getComputedStyle(root).getPropertyValue('--k-ease-in-out').trim() || 'ease-in-out';\n      const instant = still();\n      dots.forEach((dot, i) => {\n        \/\/ An interrupted morph starts again from where its dot is now.\n        if (runs[i]) { try { runs[i].commitStyles(); } catch (e) { \/* not rendered *\/ } runs[i].cancel(); runs[i] = null; }\n        const cs = getComputedStyle(dot);\n        const from = { transform: cs.transform === 'none' ? at({ x: 0, y: 0 }) : cs.transform, opacity: cs.opacity };\n        place(dot, targets[i]);\n        if (instant) return;\n        const turn = Math.random() * Math.PI * 2, reach = 3 + Math.random() * 3;\n        const out = { x: MID + Math.cos(turn) * reach, y: MID + Math.sin(turn) * reach };\n        runs[i] = dot.animate([\n          { offset: 0, transform: from.transform, opacity: from.opacity, easing },\n          { offset: 0.45, transform: at(out), opacity: String(parseFloat(from.opacity) * 0.6), easing },\n          { offset: 1, transform: at(targets[i]), opacity: String(targets[i].a) }\n        ], { duration: PERIOD * factor, delay: (i % 7) * STAGGER * factor, fill: 'backwards' });\n        runs[i].onfinish = () => { runs[i] = null; };\n      });\n    };\n    ends().forEach((p, i) => place(dots[i], p));\n    input.addEventListener('change', sync);\n    if (input.form) input.form.addEventListener('reset', () => setTimeout(sync));\n  });\n})();\n"},{"path":"components\/pixel-switch\/example.html","type":"registry:component","content":"<!-- KATA pixel-switch 1.1.0 \u2014 kata-ui.dev\/components\/pixel-switch \u2014 requires mold >= 3 -->\n<label class=\"k-pxs\" data-pxs=\"theme\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Dark mode\"><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>\n<label class=\"k-pxs\" data-pxs=\"sound\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Sound\" checked><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>\n<label class=\"k-pxs\" data-pxs=\"bell\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Notifications\"><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>\n<label class=\"k-pxs\" data-pxs=\"power\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Power\" checked><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>\n<label class=\"k-pxs k-pxs-sm\" data-pxs=\"theme\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Dark mode, compact\" checked><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>\n<label class=\"k-pxs k-pxs-sm\" data-pxs=\"bell\"><input type=\"checkbox\" role=\"switch\" aria-label=\"Notifications, unavailable\" disabled><span class=\"k-pxs-track\" aria-hidden=\"true\"><\/span><span class=\"k-pxs-knob\" aria-hidden=\"true\"><span class=\"k-pxs-bloom\"><\/span><span class=\"k-pxs-dots\"><\/span><\/span><\/label>"}],"meta":{"status":"beta","usage":"For one or two settings per view that deserve a moment: theme, sound, notifications, power. Four icon pairs ship in MAPS inside pixel-switch.js (theme, sound, bell, power); edit a pair or add one, then name it in data-pxs. The control is a native checkbox, so read it on change: for the theme pair, set document.documentElement.dataset.theme from input.checked. After setting checked from script, dispatch a change event so the icon follows. For a list of settings, use Switch.","accessibility":"A native checkbox with role=\"switch\" covers the whole part: Tab focuses it, Space toggles it, and assistive technology reads its name from aria-label (or a visible label) and its on\/off state from the checkbox. Keyboard focus draws the shared --k-ring around the track. The dots, rim and glow are aria-hidden decoration; in Chromium the icon measured at least 6.9:1 against the knob and the 1px rim at least 3.6:1 against the page in both themes. Under prefers-reduced-motion or a zero motion multiplier the icon and knob change without animation. Without JavaScript the switch still toggles and reports its state; the knob shows no icon."},"audit":{"id":"components\/pixel-switch","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/pixel-switch\/pixel-switch.css: inset-block-start: calc(var(--k-pxs-u) * 8) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: inset-inline-start: calc(var(--k-pxs-u) * 8) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: inset: calc(var(--k-pxs-u) * -3) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: padding: calc(var(--k-pxs-u) * 3) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: inset: calc(var(--k-pxs-u) * -9) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: padding: calc(var(--k-pxs-u) * 9) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: inset-block: 0 var(--k-pxs-u) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px","components\/pixel-switch\/pixel-switch.css: inset-inline: 0 var(--k-pxs-u) [spacing] \u2014 --k-pxs-u -> --k-pxs-h -> raw spacing: 88px; --k-pxs-u -> --k-pxs-h -> raw spacing: 44px"],"profile":"lab","details":[{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset-block-start","value":"calc(var(--k-pxs-u) * 8)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset-inline-start","value":"calc(var(--k-pxs-u) * 8)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset","value":"calc(var(--k-pxs-u) * -3)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"padding","value":"calc(var(--k-pxs-u) * 3)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset","value":"calc(var(--k-pxs-u) * -9)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"padding","value":"calc(var(--k-pxs-u) * 9)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset-block","value":"0 var(--k-pxs-u)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]},{"path":"components\/pixel-switch\/pixel-switch.css","property":"inset-inline","value":"0 var(--k-pxs-u)","kind":"spacing","reasons":["--k-pxs-u -> --k-pxs-h -> raw spacing: 88px","--k-pxs-u -> --k-pxs-h -> raw spacing: 44px"]}],"by_kind":{"spacing":8}},{"id":"type-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":3},{"name":"reorder","type":"registry:component","title":"Reorder","description":"A ranked list that re-sorts itself \u2014 rows glide to their new positions instead of jumping.","categories":["Motion"],"dependencies":["aurora","glass-panel"],"files":[{"path":"components\/reorder\/reorder.css","type":"registry:component","content":"\/* KATA reorder 1.1.0 \u2014 kata-ui.dev\/components\/reorder \u2014 requires mold >= 4 *\/\n.k-rank{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:7px;font-family:var(--k-font)}\n.k-rank li{display:flex;align-items:center;gap:11px;background:color-mix(in srgb,var(--k-on-color) 9%,transparent);border:1px solid color-mix(in srgb,var(--k-on-color) 18%,transparent);border-radius:10px;padding:10px 12px;font-size:13px;color:var(--k-ink)}\n.k-rank .no{font-family:var(--k-mono);font-size:11px;color:var(--k-ink-3);width:14px}\n.k-rank .val{margin-inline-start:auto;font-size:11.5px;color:var(--k-ink-3)}\n.k-rank-btn{font:inherit;font-size:11.5px;font-weight:550;border:1px solid color-mix(in srgb,var(--k-on-color) 25%,transparent);background:transparent;color:var(--k-ink);border-radius:99px;padding:4px 11px;cursor:pointer}\n.k-rank-btn:hover{background:color-mix(in srgb,var(--k-on-color) 12%,transparent)}\n.k-rank-btn[aria-pressed=\"true\"]{background:color-mix(in srgb,var(--k-on-color) 18%,transparent)}\n.k-rank-btn:focus-visible{outline:0;box-shadow:var(--k-ring)}\n.k-rank-ctl{display:inline-flex;gap:var(--k-space-2)}\n.k-rank-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"components\/reorder\/reorder.js","type":"registry:component","content":"\/* KATA reorder 1.1.0 \u2014 kata-ui.dev\/components\/reorder \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  const INTERVAL = 3000;\n  const reduced = () => matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n  document.querySelectorAll('[data-rank]').forEach(list => {\n    if (list.dataset.kataReady) return;\n    const panel = list.closest('.k-glass') || list.parentElement;\n    const button = panel.querySelector('[data-rank-btn]');\n    list.dataset.kataReady = 'true';\n    identify(list, 'kata-rank');\n    if (button) { button.type = 'button'; button.setAttribute('aria-controls', list.id); }\n    const status = document.createElement('span');\n    status.className = 'k-rank-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-rank-status'); list.after(status);\n\n    function sort(announce) {\n      const items = [...list.children];\n      const first = new Map(items.map(item => [item, item.getBoundingClientRect().top]));\n      items.forEach(item => { item.dataset.score = Math.max(40, Math.min(99, +item.dataset.score + Math.round((Math.random() - 0.5) * 36))); });\n      items.sort((a, b) => +b.dataset.score - +a.dataset.score).forEach(item => list.append(item));\n      const scale = parseFloat(getComputedStyle(list).getPropertyValue('--k-mscale'));\n      const duration = 560 * (Number.isFinite(scale) ? scale : 1);\n      const ease = getComputedStyle(list).getPropertyValue('--k-ease-in-out').trim() || 'ease';\n      [...list.children].forEach((item, index) => {\n        item.querySelector('.no').textContent = index + 1;\n        item.querySelector('.val').textContent = item.dataset.score;\n        const dy = first.get(item) - item.getBoundingClientRect().top;\n        \/\/ FLIP: rows travel from their old position; zero duration or reduced motion just lands them.\n        if (dy && duration > 0 && !reduced()) item.animate([{ transform: `translateY(${dy}px)` }, { transform: 'none' }], { duration, easing: ease });\n      });\n      const top = list.firstElementChild;\n      const name = top ? [...top.childNodes].filter(node => node.nodeType === 3).map(node => node.textContent).join('').trim() : '';\n      if (announce) status.textContent = 'Re-ranked. First: ' + name + '.';\n      list.dispatchEvent(new CustomEvent('kata-reorder-change', { bubbles: true, detail: { order: [...list.children].map(item => [...item.childNodes].filter(node => node.nodeType === 3).map(node => node.textContent).join('').trim()), source: announce ? 'button' : 'auto' } }));\n    }\n    if (button) button.addEventListener('click', () => sort(true));\n    const pause = panel.querySelector('[data-rank-pause]');\n\n    \/\/ Autoplay pauses while a pointer or keyboard focus is inside, and never starts with reduced motion.\n    let timer = 0, hovered = false, focused = false;\n    const stop = () => { clearInterval(timer); timer = 0; };\n    const resume = () => { stop(); if (!hovered && !focused && !reduced() && list.dataset.rankAutoplay !== 'off') timer = setInterval(() => sort(false), INTERVAL); };\n    panel.addEventListener('pointerenter', () => { hovered = true; stop(); });\n    panel.addEventListener('pointerleave', () => { hovered = false; resume(); });\n    panel.addEventListener('focusin', () => { focused = true; stop(); });\n    panel.addEventListener('focusout', event => { if (event.relatedTarget && panel.contains(event.relatedTarget)) return; focused = false; resume(); });\n    if (pause) {\n      pause.type = 'button'; pause.setAttribute('aria-controls', list.id);\n      pause.setAttribute('aria-pressed', list.dataset.rankAutoplay === 'off' ? 'true' : 'false');\n      pause.addEventListener('click', () => {\n        const off = list.dataset.rankAutoplay !== 'off';\n        list.dataset.rankAutoplay = off ? 'off' : 'on';\n        pause.setAttribute('aria-pressed', off ? 'true' : 'false');\n        resume();\n      });\n    }\n    resume();\n  });\n})();\n"},{"path":"components\/reorder\/example.html","type":"registry:component","content":"<!-- KATA reorder 1.1.0 \u2014 kata-ui.dev\/components\/reorder \u2014 requires mold >= 4 -->\n<div class=\"k-aurora\" style=\"max-width:430px\">\n  <i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i>\n  <div style=\"position:relative;padding:20px\">\n    <div class=\"k-glass\" data-theme=\"dark\">\n      <div class=\"k-glass-h\">Ranked by impact <span class=\"k-rank-ctl\"><button class=\"k-rank-btn\" data-rank-pause type=\"button\" aria-pressed=\"false\" aria-label=\"Pause automatic re-ranking\">Pause<\/button><button class=\"k-rank-btn\" data-rank-btn type=\"button\">Re-rank<\/button><\/span><\/div>\n      <ul class=\"k-rank\" data-rank>\n      <li data-score=\"98\"><span class=\"no\">1<\/span>Pricing reply<span class=\"val\">98<\/span><\/li>\n      <li data-score=\"87\"><span class=\"no\">2<\/span>Renewal follow-up<span class=\"val\">87<\/span><\/li>\n      <li data-score=\"76\"><span class=\"no\">3<\/span>Thursday demo brief<span class=\"val\">76<\/span><\/li>\n      <li data-score=\"64\"><span class=\"no\">4<\/span>Invoice question<span class=\"val\">64<\/span><\/li>\n      <\/ul>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For leaderboards, priority queues and anything whose order is the message. The FLIP technique makes rows glide to their new positions instead of jumping. This part re-ranks sample scores; it is not a drag-to-sort list. Add data-rank-autoplay=\"off\" to the list to start paused. Listen for new orders:\n\n```js\ndocument.addEventListener('kata-reorder-change', event => {\n  console.log(event.detail.order, event.detail.source);\n});\n```","accessibility":"Rows keep their text and rank numbers after every move, so screen readers follow the final order. Autoplay re-ranks every 3 seconds; it pauses while a pointer or keyboard focus is inside the panel, a Pause toggle (aria-pressed) stops it, and it never starts under prefers-reduced-motion. A status region announces manual re-ranks only. Motion scales with --k-mscale and is skipped at zero. Screen-reader output is not yet verified by hand."},"audit":{"id":"components\/reorder","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/reorder\/reorder.css: margin: 10px 0 0 [spacing] \u2014 raw spacing: 10px","components\/reorder\/reorder.css: gap: 7px [spacing] \u2014 raw spacing: 7px","components\/reorder\/reorder.css: gap: 11px [spacing] \u2014 raw spacing: 11px","components\/reorder\/reorder.css: padding: 10px 12px [spacing] \u2014 raw spacing: 10px; raw spacing: 12px","components\/reorder\/reorder.css: padding: 4px 11px [spacing] \u2014 raw spacing: 4px; raw spacing: 11px","components\/reorder\/preview.html: padding: 20px [spacing] \u2014 raw spacing: 20px"],"profile":"lab","details":[{"path":"components\/reorder\/reorder.css","property":"margin","value":"10px 0 0","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/reorder\/reorder.css","property":"gap","value":"7px","kind":"spacing","reasons":["raw spacing: 7px"]},{"path":"components\/reorder\/reorder.css","property":"gap","value":"11px","kind":"spacing","reasons":["raw spacing: 11px"]},{"path":"components\/reorder\/reorder.css","property":"padding","value":"10px 12px","kind":"spacing","reasons":["raw spacing: 10px","raw spacing: 12px"]},{"path":"components\/reorder\/reorder.css","property":"padding","value":"4px 11px","kind":"spacing","reasons":["raw spacing: 4px","raw spacing: 11px"]},{"path":"components\/reorder\/preview.html","property":"padding","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]}],"by_kind":{"spacing":6}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/reorder\/reorder.css: font-size: 13px [type] \u2014 raw type: 13px","components\/reorder\/reorder.css: font-size: 11px [type] \u2014 raw type: 11px","components\/reorder\/reorder.css: font-size: 11.5px [type] \u2014 raw type: 11.5px","components\/reorder\/reorder.css: font-size: 11.5px [type] \u2014 raw type: 11.5px"],"profile":"lab","details":[{"path":"components\/reorder\/reorder.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/reorder\/reorder.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/reorder\/reorder.css","property":"font-size","value":"11.5px","kind":"type","reasons":["raw type: 11.5px"]},{"path":"components\/reorder\/reorder.css","property":"font-size","value":"11.5px","kind":"type","reasons":["raw type: 11.5px"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"scramble","type":"registry:component","title":"Scramble","description":"Text that decodes itself: glyphs churn, then settle into the word, left to right.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/scramble\/scramble.css","type":"registry:component","content":"\/* KATA scramble 1.1.0 \u2014 kata-ui.dev\/components\/scramble \u2014 requires mold >= 2 *\/\n\/* KATA Scramble \u2014 glyphs churn, then settle. *\/\n.k-scr{font-family:var(--k-mono,monospace);letter-spacing:.04em}\n"},{"path":"components\/scramble\/scramble.js","type":"registry:component","content":"\/* KATA scramble 1.1.0 \u2014 kata-ui.dev\/components\/scramble \u2014 requires mold >= 2 *\/\n\/\/ KATA Scramble \u2014 decodes on view; click decodes again.\ndocument.querySelectorAll('[data-scramble]').forEach(function (el) {\n  var out = el.querySelector('[data-scr-out]');\n  var target = el.getAttribute('data-scramble') || '';\n  var GLYPHS = '!<>-_\\\\\/[]{}=+*^?#@$%&';\n  var frame = 0, timer = null;\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  function run() {\n    if (reduced) { out.textContent = target; return; }\n    frame = 0;\n    clearInterval(timer);\n    timer = setInterval(function () {\n      frame++;\n      var settled = Math.floor(frame \/ 2.2);\n      var s = '';\n      for (var i = 0; i < target.length; i++) {\n        if (target[i] === ' ') { s += ' '; continue; }\n        s += i < settled ? target[i] : GLYPHS[Math.floor(Math.random() * GLYPHS.length)];\n      }\n      out.textContent = s;\n      if (settled >= target.length) { out.textContent = target; clearInterval(timer); }\n    }, 34);\n  }\n  if ('IntersectionObserver' in window && !reduced) {\n    var io = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { run(); io.disconnect(); } }, { threshold: .4 });\n    io.observe(el);\n  } else { run(); }\n  el.addEventListener('click', run);\n});\n"},{"path":"components\/scramble\/example.html","type":"registry:component","content":"<!-- KATA scramble 1.1.0 \u2014 kata-ui.dev\/components\/scramble \u2014 requires mold >= 2 -->\n<p class=\"k-scr\" data-scramble=\"SEVENTH WELL\" aria-label=\"SEVENTH WELL\" style=\"font-size:19px;font-weight:600\">\n  <span aria-hidden=\"true\" data-scr-out>SEVENTH WELL<\/span>\n<\/p>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:8px\">It decoded when it scrolled in. Click it to run again.<\/p>"}],"meta":{"status":"beta","usage":"For short, loud strings \u2014 a title, a status line, a launch date. The script runs when the element scrolls into view and again whenever it is clicked. Long sentences scramble into noise; keep it under a dozen characters per burst if you can.","accessibility":"The real string is the element\u2019s text and its aria-label from the start; the churn is aria-hidden theatre in a sibling span. Under prefers-reduced-motion there is no churn at all \u2014 the word simply stands there, decoded since birth."},"audit":{"id":"components\/scramble","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/scramble\/preview.html: margin-top: 8px [spacing] \u2014 raw spacing: 8px"],"profile":"lab","details":[{"path":"components\/scramble\/preview.html","property":"margin-top","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/scramble\/preview.html: font-size: 19px [type] \u2014 raw type: 19px","components\/scramble\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/scramble\/preview.html","property":"font-size","value":"19px","kind":"type","reasons":["raw type: 19px"]},{"path":"components\/scramble\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"shine-text","type":"registry:component","title":"Shine Text","description":"A light that keeps passing over a headline: a gradient sweep clipped to the letters.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/shine-text\/shine-text.css","type":"registry:component","content":"\/* KATA shine-text 1.1.0 \u2014 kata-ui.dev\/components\/shine-text \u2014 requires mold >= 2 *\/\n\/* KATA Shine Text \u2014 a sweep of light, clipped to the letters. *\/\n.k-shine{font-family:var(--k-font);font-weight:650;letter-spacing:-.025em;line-height:1.16;background:linear-gradient(100deg, var(--k-ink) 25%, var(--k-zinc-400) 50%, var(--k-ink) 75%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:k-shine-move calc(3.4s * var(--k-mscale)) linear infinite}\n.k-shine.on-dark{background-image:linear-gradient(100deg, var(--k-zinc-400) 25%, var(--k-on-color) 50%, var(--k-zinc-400) 75%)}\n@keyframes k-shine-move{from{background-position:120% 0}to{background-position:-120% 0}}\n@media (prefers-reduced-motion:reduce){.k-shine{animation:none;background:none;color:var(--k-ink)}.k-shine.on-dark{color:var(--k-on-color)}}\n"},{"path":"components\/shine-text\/example.html","type":"registry:component","content":"<!-- KATA shine-text 1.1.0 \u2014 kata-ui.dev\/components\/shine-text \u2014 requires mold >= 2 -->\n<p class=\"k-shine\" style=\"font-size:31px;max-width:430px\">Cast once. Ship everywhere the web is written.<\/p>"}],"meta":{"status":"beta","usage":"One headline per page, large. The sweep is a background gradient moving behind clipped text \u2014 no script, and it survives copy-paste intact. On dark panels the same part runs light-on-dark (see the example).","accessibility":"The text is real text in a real heading; the gradient is paint. Under prefers-reduced-motion the sweep stops and the headline sits at full contrast \u2014 check yours does, because a mid-sweep frame must never be the resting state."},"audit":{"id":"components\/shine-text","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/shine-text\/examples.html: padding: 24px [spacing] \u2014 raw spacing: 24px"],"profile":"lab","details":[{"path":"components\/shine-text\/examples.html","property":"padding","value":"24px","kind":"spacing","reasons":["raw spacing: 24px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/shine-text\/shine-text.css: line-height: 1.16 [type] \u2014 raw type: 1.16","components\/shine-text\/examples.html: font-size: 24px [type] \u2014 raw type: 24px","components\/shine-text\/preview.html: font-size: 31px [type] \u2014 raw type: 31px"],"profile":"lab","details":[{"path":"components\/shine-text\/shine-text.css","property":"line-height","value":"1.16","kind":"type","reasons":["raw type: 1.16"]},{"path":"components\/shine-text\/examples.html","property":"font-size","value":"24px","kind":"type","reasons":["raw type: 24px"]},{"path":"components\/shine-text\/preview.html","property":"font-size","value":"31px","kind":"type","reasons":["raw type: 31px"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"sparkles","type":"registry:component","title":"Sparkles","description":"Twinkling points of light scattered over a line of type \u2014 celebration, kept quiet.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/sparkles\/sparkles.css","type":"registry:component","content":"\/* KATA sparkles 1.1.0 \u2014 kata-ui.dev\/components\/sparkles \u2014 requires mold >= 2 *\/\n\/* KATA Sparkles \u2014 specks on their own clocks. *\/\n.k-spk{position:relative;font-family:var(--k-font)}\n.k-spk-i{position:absolute;border-radius:50%;background:currentColor;animation:k-spk-tw ease-in-out infinite alternate;pointer-events:none}\n@keyframes k-spk-tw{from{opacity:.08;transform:scale(.55)}to{opacity:.95;transform:scale(1.15)}}\n@media (prefers-reduced-motion:reduce){.k-spk-i{animation:none;opacity:.35}}\n"},{"path":"components\/sparkles\/sparkles.js","type":"registry:component","content":"\/* KATA sparkles 1.1.0 \u2014 kata-ui.dev\/components\/sparkles \u2014 requires mold >= 2 *\/\n\/\/ KATA Sparkles \u2014 scatters the specks; each twinkles on its own clock.\ndocument.querySelectorAll('[data-sparkles]').forEach(function (stage) {\n  var N = 26;\n  for (var i = 0; i < N; i++) {\n    var s = document.createElement('span');\n    s.className = 'k-spk-i';\n    s.setAttribute('aria-hidden', 'true');\n    var size = 2 + Math.random() * 3.4;\n    s.style.width = size.toFixed(1) + 'px';\n    s.style.height = size.toFixed(1) + 'px';\n    s.style.left = (Math.random() * 98) + '%';\n    s.style.top = (Math.random() * 92) + '%';\n    s.style.animationDuration = (1.5 + Math.random() * 2.2).toFixed(2) + 's';\n    s.style.animationDelay = (-Math.random() * 3).toFixed(2) + 's';\n    stage.appendChild(s);\n  }\n});\n"},{"path":"components\/sparkles\/example.html","type":"registry:component","content":"<!-- KATA sparkles 1.1.0 \u2014 kata-ui.dev\/components\/sparkles \u2014 requires mold >= 2 -->\n<div class=\"k-spk\" data-sparkles style=\"background:var(--k-zinc-950);color:var(--k-on-color);border-radius:14px;padding:34px 24px;text-align:center\">\n  <p style=\"font-size:11px;letter-spacing:.22em;font-weight:600;color:var(--k-zinc-400)\">TEN THOUSAND PARTS COPIED<\/p>\n  <p style=\"font-size:20px;font-weight:650;letter-spacing:-.02em;margin-top:9px\">Thank you for building with the mold.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"The script scatters about two dozen specks inside the stage and each twinkles on its own clock. Dots take the container\u2019s color (currentColor), so the same part sparkles white over a hero and ink over a card. Keep the count low; sparkle is seasoning.","accessibility":"Decoration only, aria-hidden, and the twinkle stops under prefers-reduced-motion. The text it decorates must read complete with every speck removed \u2014 it will be, for some readers."},"audit":{"id":"components\/sparkles","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/sparkles\/examples.html: padding: 26px 22px [spacing] \u2014 raw spacing: 26px; raw spacing: 22px","components\/sparkles\/examples.html: margin-top: 5px [spacing] \u2014 raw spacing: 5px","components\/sparkles\/preview.html: padding: 34px 24px [spacing] \u2014 raw spacing: 34px; raw spacing: 24px","components\/sparkles\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/sparkles\/examples.html","property":"padding","value":"26px 22px","kind":"spacing","reasons":["raw spacing: 26px","raw spacing: 22px"]},{"path":"components\/sparkles\/examples.html","property":"margin-top","value":"5px","kind":"spacing","reasons":["raw spacing: 5px"]},{"path":"components\/sparkles\/preview.html","property":"padding","value":"34px 24px","kind":"spacing","reasons":["raw spacing: 34px","raw spacing: 24px"]},{"path":"components\/sparkles\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/sparkles\/examples.html: font-size: 16.5px [type] \u2014 raw type: 16.5px","components\/sparkles\/examples.html: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/sparkles\/preview.html: font-size: 11px [type] \u2014 raw type: 11px","components\/sparkles\/preview.html: font-size: 20px [type] \u2014 raw type: 20px"],"profile":"lab","details":[{"path":"components\/sparkles\/examples.html","property":"font-size","value":"16.5px","kind":"type","reasons":["raw type: 16.5px"]},{"path":"components\/sparkles\/examples.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/sparkles\/preview.html","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/sparkles\/preview.html","property":"font-size","value":"20px","kind":"type","reasons":["raw type: 20px"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"spotlight","type":"registry:component","title":"Spotlight","description":"A pointer-following light highlights muted text on a fixed dark panel.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/spotlight\/spotlight.css","type":"registry:component","content":"\/* KATA spotlight 1.1.0 \u2014 kata-ui.dev\/components\/spotlight \u2014 requires mold >= 2 *\/\n\/* KATA Spotlight \u2014 a pointer-following highlight over readable muted text.\n   The fixed base remains visible outside the beam in either theme. *\/\n.k-spot{--mx:30%;--my:34%;position:relative;touch-action:none;overflow:hidden;border-radius:var(--k-radius-lg);background:var(--k-zinc-950);color:var(--k-on-color);font-family:var(--k-font)}\n.k-spot::before{content:\"\";position:absolute;inset:0;background:radial-gradient(200px circle at var(--mx) var(--my),color-mix(in srgb,var(--k-zinc-50) 17%,transparent),color-mix(in srgb,var(--k-zinc-50) 5%,transparent) 55%,transparent 72%);pointer-events:none}\n.k-spot-in{position:relative;padding:22px;color:var(--k-zinc-400)}\n.k-spot-lit{position:absolute;inset:0;pointer-events:none;-webkit-mask-image:radial-gradient(150px circle at var(--mx) var(--my),var(--k-zinc-950) 52%,color-mix(in srgb,var(--k-zinc-950) 50%,transparent) 68%,transparent 80%);mask-image:radial-gradient(150px circle at var(--mx) var(--my),var(--k-zinc-950) 52%,color-mix(in srgb,var(--k-zinc-950) 50%,transparent) 68%,transparent 80%)}\n.k-spot-lit .k-spot-in{color:var(--k-on-color)}\n"},{"path":"components\/spotlight\/spotlight.js","type":"registry:component","content":"\/* KATA spotlight 1.1.0 \u2014 kata-ui.dev\/components\/spotlight \u2014 requires mold >= 2 *\/\n\/\/ KATA Spotlight \u2014 the beam follows the pointer; the lit layer is a clone\n\/\/ the script makes, so the author writes the words once.\ndocument.querySelectorAll('[data-spot]').forEach(function (el) {\n  var inner = el.querySelector('.k-spot-in');\n  if (inner) {\n    var lit = document.createElement('div');\n    lit.className = 'k-spot-lit';\n    lit.setAttribute('aria-hidden', 'true');\n    var clone = inner.cloneNode(true);\n    clone.querySelectorAll('[id]').forEach(function (n) { n.removeAttribute('id'); });\n    clone.querySelectorAll('a, button, input, select, textarea, [tabindex]').forEach(function (n) { n.setAttribute('tabindex', '-1'); });\n    lit.appendChild(clone);\n    el.appendChild(lit);\n  }\n  el.addEventListener('pointermove', function (e) {\n    var r = el.getBoundingClientRect();\n    el.style.setProperty('--mx', ((e.clientX - r.left) \/ r.width) * 100 + '%');\n    el.style.setProperty('--my', ((e.clientY - r.top) \/ r.height) * 100 + '%');\n  });\n});\n"},{"path":"components\/spotlight\/example.html","type":"registry:component","content":"<!-- KATA spotlight 1.1.0 \u2014 kata-ui.dev\/components\/spotlight \u2014 requires mold >= 2 -->\n<div class=\"k-spot\" data-spot style=\"max-width:520px\">\n  <div class=\"k-spot-in\">\n    <p style=\"font-size:19px;font-weight:600;letter-spacing:-.015em\">Everything is here. It is just dark.<\/p>\n    <p style=\"font-size:13.5px;line-height:1.8;margin-top:8px;letter-spacing:.012em\">Move the light across the panel. The words do not fade in \u2014 they were always written; the beam is what finds them. What the light has not reached stays a silhouette.<\/p>\n    <p style=\"font-size:12px;letter-spacing:.12em;margin-top:16px\">TOKENS&ensp;\u00b7&ensp;PARTS&ensp;\u00b7&ensp;BLOCKS&ensp;\u00b7&ensp;TEMPLATES<\/p>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For short hero panels and lists. Text remains readable outside the light; the pointer adds a visual highlight. The initial highlight rests near the top left for touch readers.","accessibility":"The base text remains in the accessibility tree. The script creates an aria-hidden highlight clone and removes IDs and tab stops from the clone's descendants."},"audit":{"id":"components\/spotlight","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/spotlight\/spotlight.css: padding: 22px [spacing] \u2014 raw spacing: 22px","components\/spotlight\/examples.html: margin-top: 10px [spacing] \u2014 raw spacing: 10px","components\/spotlight\/examples.html: margin-top: 12px [spacing] \u2014 raw spacing: 12px","components\/spotlight\/preview.html: margin-top: 8px [spacing] \u2014 raw spacing: 8px","components\/spotlight\/preview.html: margin-top: 16px [spacing] \u2014 raw spacing: 16px"],"profile":"lab","details":[{"path":"components\/spotlight\/spotlight.css","property":"padding","value":"22px","kind":"spacing","reasons":["raw spacing: 22px"]},{"path":"components\/spotlight\/examples.html","property":"margin-top","value":"10px","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/spotlight\/examples.html","property":"margin-top","value":"12px","kind":"spacing","reasons":["raw spacing: 12px"]},{"path":"components\/spotlight\/preview.html","property":"margin-top","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]},{"path":"components\/spotlight\/preview.html","property":"margin-top","value":"16px","kind":"spacing","reasons":["raw spacing: 16px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/spotlight\/examples.html: font-size: 15px [type] \u2014 raw type: 15px","components\/spotlight\/examples.html: font-size: 13px [type] \u2014 raw type: 13px","components\/spotlight\/examples.html: line-height: 1.9 [type] \u2014 raw type: 1.9","components\/spotlight\/examples.html: font-size: 13px [type] \u2014 raw type: 13px","components\/spotlight\/examples.html: line-height: 1.8 [type] \u2014 raw type: 1.8","components\/spotlight\/preview.html: font-size: 19px [type] \u2014 raw type: 19px","components\/spotlight\/preview.html: font-size: 13.5px [type] \u2014 raw type: 13.5px","components\/spotlight\/preview.html: line-height: 1.8 [type] \u2014 raw type: 1.8","components\/spotlight\/preview.html: font-size: 12px [type] \u2014 raw type: 12px"],"profile":"lab","details":[{"path":"components\/spotlight\/examples.html","property":"font-size","value":"15px","kind":"type","reasons":["raw type: 15px"]},{"path":"components\/spotlight\/examples.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/spotlight\/examples.html","property":"line-height","value":"1.9","kind":"type","reasons":["raw type: 1.9"]},{"path":"components\/spotlight\/examples.html","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/spotlight\/examples.html","property":"line-height","value":"1.8","kind":"type","reasons":["raw type: 1.8"]},{"path":"components\/spotlight\/preview.html","property":"font-size","value":"19px","kind":"type","reasons":["raw type: 19px"]},{"path":"components\/spotlight\/preview.html","property":"font-size","value":"13.5px","kind":"type","reasons":["raw type: 13.5px"]},{"path":"components\/spotlight\/preview.html","property":"line-height","value":"1.8","kind":"type","reasons":["raw type: 1.8"]},{"path":"components\/spotlight\/preview.html","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]}],"by_kind":{"type":9}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"stacking-cards","type":"registry:component","title":"Stacking Cards","description":"Cards that land on top of each other as you scroll, each sticking a little lower than the last.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/stacking-cards\/stacking-cards.css","type":"registry:component","content":"\/* KATA stacking-cards 1.1.0 \u2014 kata-ui.dev\/components\/stacking-cards \u2014 requires mold >= 2 *\/\n\/* KATA Stacking Cards \u2014 sticky deals the pile. *\/\n.k-stack{height:296px;overflow:auto;border:1px solid var(--k-line);border-radius:14px;padding:14px;background:var(--k-bg-soft);font-family:var(--k-font);color:var(--k-ink)}\n.k-stack-card{position:sticky;top:calc(6px + var(--i) * 11px);min-height:196px;border-radius:13px;padding:20px;margin-bottom:14px;border:1px solid var(--k-line)}\n.k-stack-card .n{font-size:11.5px;font-weight:700;letter-spacing:.18em;color:var(--k-ink-3)}\n.k-stack-card h3{font-size:19px;font-weight:650;letter-spacing:-.02em;margin:8px 0 6px}\n.k-stack-card p{font-size:13px;line-height:1.75;color:var(--k-ink-2);max-width:340px;letter-spacing:.01em}\n.k-stack-end{height:70px}\n"},{"path":"components\/stacking-cards\/example.html","type":"registry:component","content":"<!-- KATA stacking-cards 1.1.0 \u2014 kata-ui.dev\/components\/stacking-cards \u2014 requires mold >= 2 -->\n<div class=\"k-stack\">\n  <div class=\"k-stack-card\" style=\"--i:0;background:var(--k-accent-bg)\"><span class=\"n\">01<\/span><h3>Cast<\/h3><p>Every part starts in the same mold: tokens, spacing, one accent.<\/p><\/div><div class=\"k-stack-card\" style=\"--i:1;background:var(--k-yamabuki-bg)\"><span class=\"n\">02<\/span><h3>Check<\/h3><p>The mold inspects each casting \u2014 files, classes, colors, geometry.<\/p><\/div><div class=\"k-stack-card\" style=\"--i:2;background:var(--k-danger-bg)\"><span class=\"n\">03<\/span><h3>Compose<\/h3><p>Parts stack into blocks, blocks into pages, pages into products.<\/p><\/div><div class=\"k-stack-card\" style=\"--i:3;background:var(--k-success-bg)\"><span class=\"n\">04<\/span><h3>Ship<\/h3><p>Copy the code and own it forever. No runtime, no phone-home.<\/p><\/div>\n  <div class=\"k-stack-end\"><\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Scroll the box \u2014 the cards deal themselves into a pile.<\/p>"}],"meta":{"status":"beta","usage":"The landing-page stack, without a library: each card is position sticky with a slightly deeper top offset, so scrolling deals them onto a pile. Pure CSS \u2014 the demo lives in a boxed scroller, but the same rules run a full page section. Four cards is a story; eight is a filing cabinet.","accessibility":"Sticky positioning only changes layout: reading order is document order, and every card is fully reachable by scrolling or by keyboard. Nothing is hidden, shrunk away, or conveyed only by the stacking."},"audit":{"id":"components\/stacking-cards","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/stacking-cards\/stacking-cards.css: padding: 14px [spacing] \u2014 raw spacing: 14px","components\/stacking-cards\/stacking-cards.css: padding: 20px [spacing] \u2014 raw spacing: 20px","components\/stacking-cards\/stacking-cards.css: margin-bottom: 14px [spacing] \u2014 raw spacing: 14px","components\/stacking-cards\/stacking-cards.css: margin: 8px 0 6px [spacing] \u2014 raw spacing: 8px; raw spacing: 6px","components\/stacking-cards\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/stacking-cards\/stacking-cards.css","property":"padding","value":"14px","kind":"spacing","reasons":["raw spacing: 14px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"padding","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"margin-bottom","value":"14px","kind":"spacing","reasons":["raw spacing: 14px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"margin","value":"8px 0 6px","kind":"spacing","reasons":["raw spacing: 8px","raw spacing: 6px"]},{"path":"components\/stacking-cards\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/stacking-cards\/stacking-cards.css: font-size: 11.5px [type] \u2014 raw type: 11.5px","components\/stacking-cards\/stacking-cards.css: font-size: 19px [type] \u2014 raw type: 19px","components\/stacking-cards\/stacking-cards.css: font-size: 13px [type] \u2014 raw type: 13px","components\/stacking-cards\/stacking-cards.css: line-height: 1.75 [type] \u2014 raw type: 1.75","components\/stacking-cards\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/stacking-cards\/stacking-cards.css","property":"font-size","value":"11.5px","kind":"type","reasons":["raw type: 11.5px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"font-size","value":"19px","kind":"type","reasons":["raw type: 19px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/stacking-cards\/stacking-cards.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]},{"path":"components\/stacking-cards\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":5}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"text-reveal","type":"registry:component","title":"Text reveal","description":"A headline that arrives word by word, each word rising into place. Settles once, then stays.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/text-reveal\/text-reveal.css","type":"registry:component","content":"\/* KATA text-reveal 1.1.0 \u2014 kata-ui.dev\/components\/text-reveal \u2014 requires mold >= 2 *\/\n\/* KATA Text reveal *\/\n.k-rv-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.12em;margin-bottom:-.12em}\n.k-rv-i{display:inline-block;transform:translateY(115%);transition:transform calc(.7s * var(--k-mscale)) var(--k-ease);transition-delay:calc(var(--i,0)*calc(45ms * var(--k-mscale)))}\n[data-reveal].in .k-rv-i{transform:none}\n@media (prefers-reduced-motion: reduce){.k-rv-i{transform:none;transition:none}}\n"},{"path":"components\/text-reveal\/text-reveal.js","type":"registry:component","content":"\/* KATA text-reveal 1.1.0 \u2014 kata-ui.dev\/components\/text-reveal \u2014 requires mold >= 2 *\/\n\/\/ KATA Text reveal \u2014 split into words, rise once when visible.\ndocument.querySelectorAll('[data-reveal]').forEach(function (el) {\n  var words = el.textContent.trim().split(\/\\s+\/);\n  el.setAttribute('aria-label', el.textContent.trim());\n  el.textContent = '';\n  words.forEach(function (w, i) {\n    var outer = document.createElement('span');\n    outer.className = 'k-rv-w';\n    outer.setAttribute('aria-hidden', 'true');\n    var inner = document.createElement('span');\n    inner.className = 'k-rv-i';\n    inner.style.setProperty('--i', i);\n    inner.textContent = w;\n    outer.appendChild(inner);\n    el.appendChild(outer);\n    el.appendChild(document.createTextNode(' '));\n  });\n  if (!('IntersectionObserver' in window) || window.matchMedia('(prefers-reduced-motion: reduce)').matches) {\n    el.classList.add('in');\n    return;\n  }\n  var io = new IntersectionObserver(function (entries) {\n    if (entries[0].isIntersecting) {\n      el.classList.add('in');\n      io.disconnect();\n    }\n  }, { threshold: 0.35 });\n  io.observe(el);\n});\n"},{"path":"components\/text-reveal\/example.html","type":"registry:component","content":"<!-- KATA text-reveal 1.1.0 \u2014 kata-ui.dev\/components\/text-reveal \u2014 requires mold >= 2 -->\n<p data-reveal style=\"color:var(--k-ink);font-size:clamp(22px,4vw,30px);font-weight:600;letter-spacing:-.02em;line-height:1.35;max-width:22em\">Parts you copy. Code you own. Motion with a machined finish.<\/p>"}],"meta":{"status":"beta","usage":"For one headline per page \u2014 the hero, a section opening. The script splits the text into words; the stagger is 45ms per word and the whole thing runs once.","accessibility":"Without the script, the text is simply text. Screen readers read the original sentence; reduced-motion users get it static."},"audit":{"id":"components\/text-reveal","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/text-reveal\/text-reveal.css: padding-bottom: .12em [spacing] \u2014 raw spacing: .12em","components\/text-reveal\/text-reveal.css: margin-bottom: -.12em [spacing] \u2014 raw spacing: -.12em"],"profile":"lab","details":[{"path":"components\/text-reveal\/text-reveal.css","property":"padding-bottom","value":".12em","kind":"spacing","reasons":["raw spacing: .12em"]},{"path":"components\/text-reveal\/text-reveal.css","property":"margin-bottom","value":"-.12em","kind":"spacing","reasons":["raw spacing: -.12em"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/text-reveal\/preview.html: font-size: clamp(22px,4vw,30px) [type] \u2014 raw type: 22px; raw type: 4vw; raw type: 30px","components\/text-reveal\/preview.html: line-height: 1.35 [type] \u2014 raw type: 1.35"],"profile":"lab","details":[{"path":"components\/text-reveal\/preview.html","property":"font-size","value":"clamp(22px,4vw,30px)","kind":"type","reasons":["raw type: 22px","raw type: 4vw","raw type: 30px"]},{"path":"components\/text-reveal\/preview.html","property":"line-height","value":"1.35","kind":"type","reasons":["raw type: 1.35"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"tilt-card","type":"registry:component","title":"Tilt Card","description":"A card that tips toward the cursor in 3D, with a glare that follows and a layer that floats.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/tilt-card\/tilt-card.css","type":"registry:component","content":"\/* KATA tilt-card 1.1.0 \u2014 kata-ui.dev\/components\/tilt-card \u2014 requires mold >= 2 *\/\n\/* KATA Tilt Card \u2014 perspective, a glare, one floating layer. *\/\n.k-tilt{perspective:900px;font-family:var(--k-font);max-width:330px}\n.k-tilt-in{position:relative;background:var(--k-zinc-950);touch-action:none;color:var(--k-on-color);border-radius:16px;padding:22px;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform calc(.3s * var(--k-mscale)) ease-out;transform-style:preserve-3d;overflow:hidden}\n.k-tilt.live .k-tilt-in{transition:transform calc(.08s * var(--k-mscale)) linear}\n.k-tilt-in::after{content:\"\";position:absolute;inset:0;background:radial-gradient(340px circle at var(--gx,50%) var(--gy,50%), color-mix(in srgb,var(--k-zinc-50) 14%,transparent), transparent 65%);pointer-events:none}\n.k-tilt .pop{transform:translateZ(34px)}\n.k-tilt h3{font-size:17px;font-weight:650;letter-spacing:-.015em}\n.k-tilt p{font-size:12.5px;line-height:1.75;color:var(--k-zinc-400);letter-spacing:.01em}\n.k-tilt .row{display:flex;justify-content:space-between;font-size:12.5px;padding:8px 0;border-top:1px solid var(--k-zinc-800);color:var(--k-zinc-300)}\n"},{"path":"components\/tilt-card\/tilt-card.js","type":"registry:component","content":"\/* KATA tilt-card 1.1.0 \u2014 kata-ui.dev\/components\/tilt-card \u2014 requires mold >= 2 *\/\n\/\/ KATA Tilt Card \u2014 a few degrees, a whisper of glare, then home.\ndocument.querySelectorAll('[data-tilt]').forEach(function (wrap) {\n  var card = wrap.querySelector('.k-tilt-in');\n  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;\n  wrap.addEventListener('pointermove', function (e) {\n    var r = wrap.getBoundingClientRect();\n    var px = (e.clientX - r.left) \/ r.width;\n    var py = (e.clientY - r.top) \/ r.height;\n    wrap.classList.add('live');\n    card.style.setProperty('--ry', ((px - .5) * 13).toFixed(2) + 'deg');\n    card.style.setProperty('--rx', ((.5 - py) * 11).toFixed(2) + 'deg');\n    card.style.setProperty('--gx', (px * 100).toFixed(1) + '%');\n    card.style.setProperty('--gy', (py * 100).toFixed(1) + '%');\n  });\n  wrap.addEventListener('pointerleave', function () {\n    wrap.classList.remove('live');\n    card.style.setProperty('--rx', '0deg');\n    card.style.setProperty('--ry', '0deg');\n  });\n});\n"},{"path":"components\/tilt-card\/example.html","type":"registry:component","content":"<!-- KATA tilt-card 1.1.0 \u2014 kata-ui.dev\/components\/tilt-card \u2014 requires mold >= 2 -->\n<div style=\"display:flex;justify-content:center;padding:10px 0\">\n  <div class=\"k-tilt\" data-tilt>\n    <div class=\"k-tilt-in\">\n      <div class=\"pop\">\n        <h3>Northwind Pro<\/h3>\n        <p style=\"margin:7px 0 14px\">The whole workspace, one payment. This card is the part \u2014 tip it.<\/p>\n        <div class=\"row\"><span>Seats<\/span><b>Unlimited<\/b><\/div>\n        <div class=\"row\"><span>Updates<\/span><b>Lifetime<\/b><\/div>\n        <div class=\"row\"><span>Price<\/span><b>$129 once<\/b><\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"One card per view earns this \u2014 a featured plan, a product shot, the thing being sold. The tilt caps at a few degrees, the glare is a whisper, and an inner layer floats on translateZ so the depth is real. The moment everything on the page tilts, nothing does.","accessibility":"The tilt is pointer-only garnish on a static card: content, order and actions are identical with the script removed, and touch and keyboard never trigger it. Under prefers-reduced-motion the card stays flat, which suits it fine."},"audit":{"id":"components\/tilt-card","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/tilt-card\/tilt-card.css: padding: 22px [spacing] \u2014 raw spacing: 22px","components\/tilt-card\/tilt-card.css: padding: 8px 0 [spacing] \u2014 raw spacing: 8px","components\/tilt-card\/preview.html: padding: 10px 0 [spacing] \u2014 raw spacing: 10px","components\/tilt-card\/preview.html: margin: 7px 0 14px [spacing] \u2014 raw spacing: 7px; raw spacing: 14px"],"profile":"lab","details":[{"path":"components\/tilt-card\/tilt-card.css","property":"padding","value":"22px","kind":"spacing","reasons":["raw spacing: 22px"]},{"path":"components\/tilt-card\/tilt-card.css","property":"padding","value":"8px 0","kind":"spacing","reasons":["raw spacing: 8px"]},{"path":"components\/tilt-card\/preview.html","property":"padding","value":"10px 0","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/tilt-card\/preview.html","property":"margin","value":"7px 0 14px","kind":"spacing","reasons":["raw spacing: 7px","raw spacing: 14px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/tilt-card\/tilt-card.css: font-size: 17px [type] \u2014 raw type: 17px","components\/tilt-card\/tilt-card.css: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/tilt-card\/tilt-card.css: line-height: 1.75 [type] \u2014 raw type: 1.75","components\/tilt-card\/tilt-card.css: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/tilt-card\/tilt-card.css","property":"font-size","value":"17px","kind":"type","reasons":["raw type: 17px"]},{"path":"components\/tilt-card\/tilt-card.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/tilt-card\/tilt-card.css","property":"line-height","value":"1.75","kind":"type","reasons":["raw type: 1.75"]},{"path":"components\/tilt-card\/tilt-card.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"tracing-beam","type":"registry:component","title":"Tracing Beam","description":"A line of light that travels down the page as you read, filling the rail beside the text.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/tracing-beam\/tracing-beam.css","type":"registry:component","content":"\/* KATA tracing-beam 1.1.0 \u2014 kata-ui.dev\/components\/tracing-beam \u2014 requires mold >= 2 *\/\n\/* KATA Tracing Beam \u2014 the rail fills as the reader travels. *\/\n.k-beam{display:grid;grid-template-columns:16px 1fr;gap:16px;font-family:var(--k-font);color:var(--k-ink)}\n.k-beam-rail{position:relative}\n.k-beam-rail::before{content:\"\";position:absolute;left:7px;top:4px;bottom:4px;width:2px;background:var(--k-line);border-radius:2px}\n.k-beam-fill{position:absolute;left:7px;top:4px;width:2px;height:0;background:var(--k-accent);border-radius:2px;color:var(--k-on-accent)}\n.k-beam-dot{position:absolute;left:3px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--k-accent);box-shadow:0 0 0 4px var(--k-accent-bg);color:var(--k-on-accent)}\n.k-beam-body{height:264px;overflow:auto;padding-inline-end:6px}\n.k-beam-body section{margin-bottom:20px}\n.k-beam-body h4{font-size:14px;font-weight:600;margin-bottom:5px}\n.k-beam-body p{font-size:13px;line-height:1.8;color:var(--k-ink-2);letter-spacing:.01em}\n"},{"path":"components\/tracing-beam\/tracing-beam.js","type":"registry:component","content":"\/* KATA tracing-beam 1.1.0 \u2014 kata-ui.dev\/components\/tracing-beam \u2014 requires mold >= 2 *\/\n\/\/ KATA Tracing Beam \u2014 fill height is the scroll fraction, kept honest.\ndocument.querySelectorAll('[data-beam]').forEach(function (root) {\n  var body = root.querySelector('.k-beam-body');\n  var rail = root.querySelector('.k-beam-rail');\n  var fill = root.querySelector('.k-beam-fill');\n  var dot = root.querySelector('.k-beam-dot');\n  function update() {\n    var max = body.scrollHeight - body.clientHeight;\n    var f = max > 0 ? body.scrollTop \/ max : 0;\n    var h = (rail.clientHeight - 8) * f;\n    fill.style.height = h + 'px';\n    dot.style.top = (4 + h) + 'px';\n  }\n  body.addEventListener('scroll', update, { passive: true });\n  update();\n});\n"},{"path":"components\/tracing-beam\/example.html","type":"registry:component","content":"<!-- KATA tracing-beam 1.1.0 \u2014 kata-ui.dev\/components\/tracing-beam \u2014 requires mold >= 2 -->\n<div class=\"k-beam\" data-beam>\n  <div class=\"k-beam-rail\" aria-hidden=\"true\"><div class=\"k-beam-fill\"><\/div><div class=\"k-beam-dot\"><\/div><\/div>\n  <div class=\"k-beam-body\">\n    <section><h4>The top<\/h4><p>Every long page makes the same promise at the top: this will be worth it. The beam starts empty because the reader has not yet decided.<\/p><\/section>\n    <section><h4>The middle<\/h4><p>Halfway down, most readers are skimming for the part that matters to them. A filled rail says the end is a known distance away, which is often enough to keep them reading carefully instead.<\/p><\/section>\n    <section><h4>The turn<\/h4><p>Somewhere in the third quarter the page has to pay off its opening promise. Structure helps: short sections, honest headings, and nothing that exists only to make the page longer.<\/p><\/section>\n    <section><h4>The end<\/h4><p>When the dot reaches the bottom, the reader has the whole argument. What they do next \u2014 copy a part, open the registry, close the tab \u2014 was decided by the words, but the beam walked them there.<\/p><\/section>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"For long reads \u2014 guides, changelogs, case studies \u2014 where knowing how far in you are is kindness. The fill is the scroll fraction of the container beside it, nothing more mystical. Pair it with a Scrollspy when the reader also needs to jump; use it alone when they only need to feel progress.","accessibility":"The beam is a progress picture, aria-hidden, duplicating what the scrollbar already says. Content never depends on it, and under prefers-reduced-motion the rail stays a plain hairline."},"audit":{"id":"components\/tracing-beam","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/tracing-beam\/tracing-beam.css: gap: 16px [spacing] \u2014 raw spacing: 16px","components\/tracing-beam\/tracing-beam.css: padding-inline-end: 6px [spacing] \u2014 raw spacing: 6px","components\/tracing-beam\/tracing-beam.css: margin-bottom: 20px [spacing] \u2014 raw spacing: 20px","components\/tracing-beam\/tracing-beam.css: margin-bottom: 5px [spacing] \u2014 raw spacing: 5px"],"profile":"lab","details":[{"path":"components\/tracing-beam\/tracing-beam.css","property":"gap","value":"16px","kind":"spacing","reasons":["raw spacing: 16px"]},{"path":"components\/tracing-beam\/tracing-beam.css","property":"padding-inline-end","value":"6px","kind":"spacing","reasons":["raw spacing: 6px"]},{"path":"components\/tracing-beam\/tracing-beam.css","property":"margin-bottom","value":"20px","kind":"spacing","reasons":["raw spacing: 20px"]},{"path":"components\/tracing-beam\/tracing-beam.css","property":"margin-bottom","value":"5px","kind":"spacing","reasons":["raw spacing: 5px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/tracing-beam\/tracing-beam.css: font-size: 14px [type] \u2014 raw type: 14px","components\/tracing-beam\/tracing-beam.css: font-size: 13px [type] \u2014 raw type: 13px","components\/tracing-beam\/tracing-beam.css: line-height: 1.8 [type] \u2014 raw type: 1.8"],"profile":"lab","details":[{"path":"components\/tracing-beam\/tracing-beam.css","property":"font-size","value":"14px","kind":"type","reasons":["raw type: 14px"]},{"path":"components\/tracing-beam\/tracing-beam.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/tracing-beam\/tracing-beam.css","property":"line-height","value":"1.8","kind":"type","reasons":["raw type: 1.8"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"typewriter","type":"registry:component","title":"Typewriter","description":"A sentence that types itself, deletes itself, and types the next one \u2014 with a patient caret.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/typewriter\/typewriter.css","type":"registry:component","content":"\/* KATA typewriter 1.1.0 \u2014 kata-ui.dev\/components\/typewriter \u2014 requires mold >= 2 *\/\n\/* KATA Typewriter \u2014 types, rests, deletes, repeats. *\/\n.k-type{font-family:var(--k-font)}\n.k-type-caret{display:inline-block;width:2.5px;height:1.02em;margin-inline-start:2px;background:var(--k-ink);vertical-align:-0.14em;animation:k-type-blink calc(1.05s * var(--k-mscale)) steps(1) infinite}\n@keyframes k-type-blink{50%{opacity:0}}\n@media (prefers-reduced-motion:reduce){.k-type-caret{animation:none}}\n"},{"path":"components\/typewriter\/typewriter.js","type":"registry:component","content":"\/* KATA typewriter 1.1.0 \u2014 kata-ui.dev\/components\/typewriter \u2014 requires mold >= 2 *\/\n\/\/ KATA Typewriter \u2014 types, rests, deletes, moves on.\ndocument.querySelectorAll('[data-type]').forEach(function (el) {\n  var out = el.querySelector('[data-type-out]');\n  var phrases = [];\n  try { phrases = JSON.parse(el.getAttribute('data-phrases') || '[]'); } catch (e) { phrases = []; }\n  if (!phrases.length) return;\n  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { out.textContent = phrases[0]; return; }\n  var pi = 0, ci = 0, deleting = false;\n  function tick() {\n    var full = phrases[pi];\n    if (deleting) {\n      ci--;\n      out.textContent = full.slice(0, ci);\n      if (ci === 0) { deleting = false; pi = (pi + 1) % phrases.length; setTimeout(tick, 420); return; }\n      setTimeout(tick, 34);\n    } else {\n      ci++;\n      out.textContent = full.slice(0, ci);\n      if (ci === full.length) { deleting = true; setTimeout(tick, 1850); return; }\n      setTimeout(tick, 68 + Math.random() * 60);\n    }\n  }\n  tick();\n});\n"},{"path":"components\/typewriter\/example.html","type":"registry:component","content":"<!-- KATA typewriter 1.1.0 \u2014 kata-ui.dev\/components\/typewriter \u2014 requires mold >= 2 -->\n<p class=\"k-type\" data-type data-phrases='[\"a dashboard\", \"a settings page\", \"a pricing table\", \"an app shell\"]' aria-label=\"Blocks compose a dashboard, a settings page, a pricing table, an app shell.\" style=\"font-size:21px;font-weight:600;letter-spacing:-.02em\">\n  Blocks compose <span aria-hidden=\"true\"><span data-type-out><\/span><span class=\"k-type-caret\"><\/span><\/span>\n<\/p>"}],"meta":{"status":"beta","usage":"Phrases live in the data-phrases attribute as a JSON list. The rhythm is the design: type at reading-aloud speed, rest on the finished line, delete faster than you typed. One typewriter per page \u2014 two is a typing pool.","accessibility":"The animation is a performance of text that must also exist statically: the element carries an aria-label with the full sentence, the animated text is aria-hidden, and under prefers-reduced-motion the first phrase simply stands typed. Never put information only in a later phrase."},"audit":{"id":"components\/typewriter","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/typewriter\/typewriter.css: margin-inline-start: 2px [spacing] \u2014 raw spacing: 2px"],"profile":"lab","details":[{"path":"components\/typewriter\/typewriter.css","property":"margin-inline-start","value":"2px","kind":"spacing","reasons":["raw spacing: 2px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/typewriter\/preview.html: font-size: 21px [type] \u2014 raw type: 21px"],"profile":"lab","details":[{"path":"components\/typewriter\/preview.html","property":"font-size","value":"21px","kind":"type","reasons":["raw type: 21px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"word-rotate","type":"registry:component","title":"Word Rotate","description":"One word in the sentence keeps changing: a vertical carousel of the words that fit.","categories":["Motion"],"dependencies":[],"files":[{"path":"components\/word-rotate\/word-rotate.css","type":"registry:component","content":"\/* KATA word-rotate 1.1.0 \u2014 kata-ui.dev\/components\/word-rotate \u2014 requires mold >= 2 *\/\n\/* KATA Word Rotate \u2014 a stack of words, stepped. *\/\n.k-wrot{display:inline-block;height:1.26em;overflow:hidden;vertical-align:bottom;text-align:start}\n.k-wrot-in{display:flex;flex-direction:column;transition:transform calc(.55s * var(--k-mscale)) var(--k-ease-in-out)}\n.k-wrot-in span{height:1.26em;line-height:1.26em;white-space:nowrap;color:var(--k-accent-ink);font-weight:650}\n@media (prefers-reduced-motion:reduce){.k-wrot-in{transition:none}}\n"},{"path":"components\/word-rotate\/word-rotate.js","type":"registry:component","content":"\/* KATA word-rotate 1.1.0 \u2014 kata-ui.dev\/components\/word-rotate \u2014 requires mold >= 2 *\/\n\/\/ KATA Word Rotate \u2014 steps the stack; wraps without a visible rewind.\ndocument.querySelectorAll('[data-wrot]').forEach(function (el) {\n  var inner = el.querySelector('.k-wrot-in');\n  var words = inner.children.length;\n  if (words < 2) return;\n  inner.appendChild(inner.children[0].cloneNode(true));\n  var i = 0;\n  setInterval(function () {\n    i++;\n    inner.style.transform = 'translateY(-' + (i * 1.26) + 'em)';\n    if (i === words) {\n      setTimeout(function () {\n        inner.style.transition = 'none';\n        inner.style.transform = 'translateY(0)';\n        i = 0;\n        requestAnimationFrame(function () { requestAnimationFrame(function () { inner.style.transition = ''; }); });\n      }, 580);\n    }\n  }, 2100);\n});\n"},{"path":"components\/word-rotate\/example.html","type":"registry:component","content":"<!-- KATA word-rotate 1.1.0 \u2014 kata-ui.dev\/components\/word-rotate \u2014 requires mold >= 2 -->\n<p style=\"font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.35\">\n  <span style=\"position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)\">Built for dashboards, docs, pricing pages and settings.<\/span>\n  <span aria-hidden=\"true\">Built for <span class=\"k-wrot\" data-wrot><span class=\"k-wrot-in\"><span>dashboards<\/span><span>docs<\/span><span>pricing pages<\/span><span>settings<\/span><\/span><\/span><\/span>\n<\/p>"}],"meta":{"status":"beta","usage":"For the hero sentence with a variable in it \u2014 \"Built for dashboards \/ docs \/ pricing pages\". The words sit in the markup as a stack; the script steps the stack every two seconds and loops it cleanly. Keep the words one length family apart at most, or the sentence breathes oddly as it changes.","accessibility":"Screen readers get one sentence: the rotating stack is aria-hidden and a visually-hidden static version carries the meaning. The rotation pauses under prefers-reduced-motion, leaving the first word standing."},"audit":{"id":"components\/word-rotate","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/word-rotate\/word-rotate.css: line-height: 1.26em [type] \u2014 raw type: 1.26em","components\/word-rotate\/preview.html: font-size: 24px [type] \u2014 raw type: 24px","components\/word-rotate\/preview.html: line-height: 1.35 [type] \u2014 raw type: 1.35"],"profile":"lab","details":[{"path":"components\/word-rotate\/word-rotate.css","property":"line-height","value":"1.26em","kind":"type","reasons":["raw type: 1.26em"]},{"path":"components\/word-rotate\/preview.html","property":"font-size","value":"24px","kind":"type","reasons":["raw type: 24px"]},{"path":"components\/word-rotate\/preview.html","property":"line-height","value":"1.35","kind":"type","reasons":["raw type: 1.35"]}],"by_kind":{"type":3}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"bounce-letters","type":"registry:component","title":"Bounce Letters","description":"A headline whose letters hop when touched \u2014 and do the wave when you click.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/bounce-letters\/bounce-letters.css","type":"registry:component","content":"\/* KATA bounce-letters 1.1.0 \u2014 kata-ui.dev\/components\/bounce-letters \u2014 requires mold >= 2 *\/\n\/* KATA Bounce Letters \u2014 KATAYABURI. A headline with springs. *\/\n.k-bnc{font-family:var(--k-font);cursor:pointer}\n.k-bnc .ch{display:inline-block;transition:transform calc(.34s * var(--k-mscale)) var(--k-ease-bounce)}\n.k-bnc .ch:hover{transform:translateY(-11px)}\n.k-bnc.waving .ch{transform:translateY(-12px)}\n@media (prefers-reduced-motion:reduce){.k-bnc .ch{transition:none}.k-bnc .ch:hover,.k-bnc.waving .ch{transform:none}}\n"},{"path":"components\/bounce-letters\/bounce-letters.js","type":"registry:component","content":"\/* KATA bounce-letters 1.1.0 \u2014 kata-ui.dev\/components\/bounce-letters \u2014 requires mold >= 2 *\/\n\/\/ KATA Bounce Letters \u2014 splits the line; the click sends a wave.\ndocument.querySelectorAll('[data-bounce]').forEach(function (el) {\n  var text = el.textContent.trim();\n  el.setAttribute('aria-label', text);\n  el.textContent = '';\n  var wrap = document.createElement('span');\n  wrap.setAttribute('aria-hidden', 'true');\n  text.split('').forEach(function (ch) {\n    var s = document.createElement('span');\n    s.className = 'ch';\n    s.textContent = ch === ' ' ? '\u00a0' : ch;\n    wrap.appendChild(s);\n  });\n  el.appendChild(wrap);\n  var letters = wrap.querySelectorAll('.ch');\n  el.addEventListener('click', function () {\n    letters.forEach(function (s, i) { s.style.transitionDelay = (i * 26) + 'ms'; });\n    el.classList.add('waving');\n    setTimeout(function () {\n      el.classList.remove('waving');\n      setTimeout(function () { letters.forEach(function (s) { s.style.transitionDelay = ''; }); }, 420);\n    }, 340 + letters.length * 26);\n  });\n});\n"},{"path":"components\/bounce-letters\/example.html","type":"registry:component","content":"<!-- KATA bounce-letters 1.1.0 \u2014 kata-ui.dev\/components\/bounce-letters \u2014 requires mold >= 2 -->\n<p class=\"k-bnc\" data-bounce style=\"font-size:29px;font-weight:700;letter-spacing:-.01em\">THANK YOU!<\/p>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:8px\">Touch a letter. Click for the wave.<\/p>"}],"meta":{"status":"beta","usage":"The script splits the headline into letter spans; a hover hops one letter on a spring curve, and a click sends a staggered wave down the line. For the one headline a page is allowed to show off with \u2014 a launch name, a thank-you, a very confident 404.","accessibility":"The unsplit sentence lives in an aria-label and the letters are aria-hidden confetti \u2014 screen readers read the headline once. Under prefers-reduced-motion the letters stand still and take their bow as text."},"audit":{"id":"components\/bounce-letters","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/bounce-letters\/preview.html: margin-top: 8px [spacing] \u2014 raw spacing: 8px"],"profile":"lab","details":[{"path":"components\/bounce-letters\/preview.html","property":"margin-top","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/bounce-letters\/preview.html: font-size: 29px [type] \u2014 raw type: 29px","components\/bounce-letters\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/bounce-letters\/preview.html","property":"font-size","value":"29px","kind":"type","reasons":["raw type: 29px"]},{"path":"components\/bounce-letters\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"carousel-ring","type":"registry:component","title":"Carousel Ring","description":"A merry-go-round of cards in real 3D: eight panels riding a ring that never stops turning.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/carousel-ring\/carousel-ring.css","type":"registry:component","content":"\/* KATA carousel-ring 1.1.0 \u2014 kata-ui.dev\/components\/carousel-ring \u2014 requires mold >= 2 *\/\n\/* KATA Carousel Ring \u2014 KATAYABURI. A merry-go-round of cards. *\/\n.k-ring{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;height:252px;perspective:950px;font-family:var(--k-font)}\n.k-ring-in{position:absolute;left:50%;top:50%;width:104px;height:128px;margin:-64px 0 0 -52px;transform-style:preserve-3d;animation:k-ring-spin calc(26s * var(--k-mscale)) linear infinite}\n.k-ring:hover .k-ring-in{animation-play-state:paused}\n.k-ring-p{position:absolute;inset:0;background:var(--k-zinc-900);border:1px solid var(--k-zinc-700);border-radius:13px;color:var(--k-on-color);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:10px;backface-visibility:hidden}\n.k-ring-p b{font-size:14.5px;font-weight:650}\n.k-ring-p span{font-size:11px;color:var(--k-zinc-400);line-height:1.5}\n@keyframes k-ring-spin{from{transform:rotateY(0)}to{transform:rotateY(-360deg)}}\n@media (prefers-reduced-motion:reduce){.k-ring-in{animation:none}}\n"},{"path":"components\/carousel-ring\/example.html","type":"registry:component","content":"<!-- KATA carousel-ring 1.1.0 \u2014 kata-ui.dev\/components\/carousel-ring \u2014 requires mold >= 2 -->\n<div class=\"k-ring\" role=\"img\" aria-label=\"A rotating 3D ring of eight part cards\">\n  <div class=\"k-ring-in\" aria-hidden=\"true\">\n    <div class=\"k-ring-p\" style=\"transform:rotateY(0deg) translateZ(158px)\"><b>Meteors<\/b><span>A seeded night sky<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(45deg) translateZ(158px)\"><b>Dock<\/b><span>Tiles that swell<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(90deg) translateZ(158px)\"><b>QR Code<\/b><span>Zero-dependency<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(135deg) translateZ(158px)\"><b>Kanban<\/b><span>Cards that drag<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(180deg) translateZ(158px)\"><b>Aurora<\/b><span>Light, drifting<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(225deg) translateZ(158px)\"><b>Sidebar<\/b><span>Two widths<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(270deg) translateZ(158px)\"><b>Calendar<\/b><span>Freed at last<\/span><\/div>\n    <div class=\"k-ring-p\" style=\"transform:rotateY(315deg) translateZ(158px)\"><b>Orbit<\/b><span>Rings in rings<\/span><\/div>\n  <\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Hover to stop the ride and read a card.<\/p>"}],"meta":{"status":"beta","usage":"Eight panels on a preserve-3d ring, one spin keyframe, perspective on the stage \u2014 the whole illusion is geometry. Hover pauses the ride so a panel can actually be read, which separates a carousel from a rumor. Put the parts, the plans, or the team on the horses.","accessibility":"The ring is a rotating picture of a list: name the list in the figure\u2019s label and keep a static version reachable on the page. Rotation stops on hover and entirely under prefers-reduced-motion, leaving the front panel facing the reader."},"audit":{"id":"components\/carousel-ring","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/carousel-ring\/carousel-ring.css: margin: -64px 0 0 -52px [spacing] \u2014 raw spacing: -64px; raw spacing: -52px","components\/carousel-ring\/carousel-ring.css: gap: 6px [spacing] \u2014 raw spacing: 6px","components\/carousel-ring\/carousel-ring.css: padding: 10px [spacing] \u2014 raw spacing: 10px","components\/carousel-ring\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/carousel-ring\/carousel-ring.css","property":"margin","value":"-64px 0 0 -52px","kind":"spacing","reasons":["raw spacing: -64px","raw spacing: -52px"]},{"path":"components\/carousel-ring\/carousel-ring.css","property":"gap","value":"6px","kind":"spacing","reasons":["raw spacing: 6px"]},{"path":"components\/carousel-ring\/carousel-ring.css","property":"padding","value":"10px","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/carousel-ring\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/carousel-ring\/carousel-ring.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/carousel-ring\/carousel-ring.css: font-size: 11px [type] \u2014 raw type: 11px","components\/carousel-ring\/carousel-ring.css: line-height: 1.5 [type] \u2014 raw type: 1.5","components\/carousel-ring\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/carousel-ring\/carousel-ring.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/carousel-ring\/carousel-ring.css","property":"font-size","value":"11px","kind":"type","reasons":["raw type: 11px"]},{"path":"components\/carousel-ring\/carousel-ring.css","property":"line-height","value":"1.5","kind":"type","reasons":["raw type: 1.5"]},{"path":"components\/carousel-ring\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":4}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"confetti-cannon","type":"registry:component","title":"Confetti Cannon","description":"A button that fires confetti out of both corners of its stage. You already pressed it twice.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/confetti-cannon\/confetti-cannon.css","type":"registry:component","content":"\/* KATA confetti-cannon 1.1.0 \u2014 kata-ui.dev\/components\/confetti-cannon \u2014 requires mold >= 2 *\/\n\/* KATA Confetti Cannon \u2014 KATAYABURI. On-token confetti. *\/\n.k-conf{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;font-family:var(--k-font);min-height:210px;display:flex;align-items:center;justify-content:center}\n.k-conf canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}\n.k-conf-btn{position:relative;z-index:2;background:var(--k-on-color);color:var(--k-zinc-950);border:0;font-family:inherit;font-size:14.5px;font-weight:650;padding:12px 24px;border-radius:99px;cursor:pointer}\n.k-conf-btn:active{transform:scale(.96)}\n\/* The stage is fixed zinc-950 in both themes, so focus uses the fixed light color. *\/\n.k-conf-btn:focus-visible{outline:2px solid var(--k-on-color);outline-offset:2px}\n"},{"path":"components\/confetti-cannon\/confetti-cannon.js","type":"registry:component","content":"\/* KATA confetti-cannon 1.1.0 \u2014 kata-ui.dev\/components\/confetti-cannon \u2014 requires mold >= 2 *\/\n\/\/ KATA Confetti Cannon \u2014 canvas pieces, token colors, real gravity.\ndocument.querySelectorAll('[data-conf]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var cs = getComputedStyle(stage);\n  var COLORS = ['--k-accent', '--k-on-color', '--k-zinc-400', '--k-yamabuki-ink'].map(function (v) { return cs.getPropertyValue(v).trim(); }).filter(Boolean);\n  var pieces = [], raf = null, W = 0, H = 0;\n  function size() { W = stage.clientWidth; H = stage.clientHeight; canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0); }\n  function burst() {\n    if (reduced) return;\n    size();\n    [0, W].forEach(function (ox, side) {\n      var dir = side === 0 ? 1 : -1;\n      for (var i = 0; i < 70; i++) {\n        var a = (-58 - Math.random() * 38) * Math.PI \/ 180;\n        var sp = 9 + Math.random() * 9;\n        pieces.push({ x: ox, y: H + 4, vx: Math.cos(a) * sp * dir, vy: Math.sin(a) * sp, w: 5 + Math.random() * 5, h: 3 + Math.random() * 5, rot: Math.random() * Math.PI, vr: (Math.random() - .5) * .3, c: COLORS[i % COLORS.length], life: 1 });\n      }\n    });\n    if (!raf) tick();\n  }\n  function tick() {\n    ctx.clearRect(0, 0, W, H);\n    pieces = pieces.filter(function (p) { return p.life > 0 && p.y < H + 30; });\n    pieces.forEach(function (p) {\n      p.vy += .22; p.vx *= .99; p.vy *= .995;\n      p.x += p.vx; p.y += p.vy; p.rot += p.vr;\n      if (p.y > H - 90) p.life -= .02;\n      ctx.save();\n      ctx.globalAlpha = Math.max(0, Math.min(1, p.life));\n      ctx.translate(p.x, p.y); ctx.rotate(p.rot);\n      ctx.fillStyle = p.c;\n      ctx.fillRect(-p.w \/ 2, -p.h \/ 2, p.w, p.h * (0.4 + Math.abs(Math.sin(p.rot * 2)) * .6));\n      ctx.restore();\n    });\n    raf = pieces.length ? requestAnimationFrame(tick) : null;\n    if (!raf) ctx.clearRect(0, 0, W, H);\n  }\n  stage.querySelector('[data-conf-fire]').addEventListener('click', burst);\n  size();\n  if ('IntersectionObserver' in window && !reduced) {\n    var io = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { setTimeout(burst, 350); io.disconnect(); } }, { threshold: .5 });\n    io.observe(stage);\n  }\n});\n"},{"path":"components\/confetti-cannon\/example.html","type":"registry:component","content":"<!-- KATA confetti-cannon 1.1.0 \u2014 kata-ui.dev\/components\/confetti-cannon \u2014 requires mold >= 2 -->\n<div class=\"k-conf\" data-conf>\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <button class=\"k-conf-btn\" type=\"button\" data-conf-fire>Payment complete \u2014 fire<\/button>\n<\/div>"}],"meta":{"status":"beta","usage":"For the moments software should celebrate out loud: the deploy, the signup, the invoice marked paid. Two cannons fire from the stage corners in the token palette \u2014 even the confetti is on-token. It fires once when it scrolls into view, then waits for the button like a loaded party.","accessibility":"The celebration is visual only: the success it marks must be announced in words by the thing it celebrates (\"Payment complete\" \u2014 the Result part exists for exactly this). Under prefers-reduced-motion the cannon stays unloaded and the button simply says its line."},"audit":{"id":"components\/confetti-cannon","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/confetti-cannon\/confetti-cannon.css: padding: 12px 24px [spacing] \u2014 raw spacing: 12px; raw spacing: 24px"],"profile":"lab","details":[{"path":"components\/confetti-cannon\/confetti-cannon.css","property":"padding","value":"12px 24px","kind":"spacing","reasons":["raw spacing: 12px","raw spacing: 24px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/confetti-cannon\/confetti-cannon.css: font-size: 14.5px [type] \u2014 raw type: 14.5px"],"profile":"lab","details":[{"path":"components\/confetti-cannon\/confetti-cannon.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"fireworks","type":"registry:component","title":"Fireworks","description":"Click the night and it blooms: rockets, bursts and falling sparks on one canvas.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/fireworks\/fireworks.css","type":"registry:component","content":"\/* KATA fireworks 1.1.0 \u2014 kata-ui.dev\/components\/fireworks \u2014 requires mold >= 2 *\/\n\/* KATA Fireworks \u2014 KATAYABURI. The night, on demand. *\/\n.k-fw{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;font-family:var(--k-font)}\n.k-fw canvas{display:block;width:100%;height:250px;cursor:crosshair}\n.k-fw p{position:absolute;left:0;right:0;bottom:12px;text-align:center;font-size:12px;color:var(--k-zinc-400);pointer-events:none}\n"},{"path":"components\/fireworks\/fireworks.js","type":"registry:component","content":"\/* KATA fireworks 1.1.0 \u2014 kata-ui.dev\/components\/fireworks \u2014 requires mold >= 2 *\/\n\/\/ KATA Fireworks \u2014 rockets rise, burst, and rain sparks.\ndocument.querySelectorAll('[data-fw]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var cs = getComputedStyle(stage);\n  var COLORS = ['--k-accent', '--k-on-color', '--k-yamabuki-ink', '--k-on-color'].map(function (v) { return cs.getPropertyValue(v).trim(); }).filter(Boolean);\n  var W, H, rockets = [], sparks = [];\n  function size() { W = canvas.clientWidth; H = canvas.clientHeight; canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0); }\n  function launch(tx, ty) {\n    rockets.push({ x: tx != null ? tx : 40 + Math.random() * (W - 80), y: H, ty: ty != null ? ty : 40 + Math.random() * H * .45, vy: -(9.5 + Math.random() * 3), c: COLORS[Math.floor(Math.random() * COLORS.length)] });\n  }\n  function burst(r) {\n    for (var i = 0; i < 96; i++) {\n      var a = Math.PI * 2 * i \/ 96 + Math.random() * .1;\n      var sp = 1.4 + Math.random() * 3.6;\n      sparks.push({ x: r.x, y: r.ty, vx: Math.cos(a) * sp, vy: Math.sin(a) * sp, life: 1, c: Math.random() < .3 ? COLORS[1] : r.c });\n    }\n  }\n  function tick() {\n    ctx.fillStyle = 'rgba(9,9,11,.18)';\n    ctx.fillRect(0, 0, W, H);\n    rockets = rockets.filter(function (r) {\n      r.y += r.vy; r.vy += .12;\n      ctx.fillStyle = r.c; ctx.fillRect(r.x - 1, r.y, 2.4, 7);\n      if (r.vy >= -1 || r.y <= r.ty) { burst(r); return false; }\n      return true;\n    });\n    sparks = sparks.filter(function (s) { return s.life > 0; });\n    ctx.globalCompositeOperation = 'lighter';\n    sparks.forEach(function (s) {\n      s.vy += .045; s.vx *= .985; s.vy *= .985;\n      s.x += s.vx; s.y += s.vy; s.life -= .010;\n      ctx.globalAlpha = Math.max(0, s.life);\n      ctx.fillStyle = s.c;\n      ctx.fillRect(s.x, s.y, 3, 3);\n    });\n    ctx.globalCompositeOperation = 'source-over';\n    ctx.globalAlpha = 1;\n    requestAnimationFrame(tick);\n  }\n  canvas.addEventListener('pointerdown', function (e) {\n    var r = canvas.getBoundingClientRect();\n    launch(e.clientX - r.left, e.clientY - r.top);\n  });\n  size();\n  window.addEventListener('resize', size);\n  if (!reduced) {\n    launch(); setTimeout(launch, 500);\n    setInterval(function () { if (rockets.length < 3 && Math.random() > .35) launch(); }, 1100);\n    requestAnimationFrame(tick);\n  } else {\n    ctx.fillStyle = '#09090b'; ctx.fillRect(0, 0, W, H);\n  }\n});\n"},{"path":"components\/fireworks\/example.html","type":"registry:component","content":"<!-- KATA fireworks 1.1.0 \u2014 kata-ui.dev\/components\/fireworks \u2014 requires mold >= 2 -->\n<div class=\"k-fw\" data-fw role=\"img\" aria-label=\"A fireworks show over a black sky\">\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <p>Click anywhere in the sky.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"The sky fires on its own every second or so, and any click launches a rocket at that point. Colors come from the tokens, so the show matches the site throwing it. For launches and milestones \u2014 and for the one page a year that gets to be a festival.","accessibility":"A light show, labeled as one: the canvas is aria-hidden behind the words that carry the news. Under prefers-reduced-motion the sky stays dark and quiet, and the announcement does the celebrating."},"audit":{"id":"components\/fireworks","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/fireworks\/fireworks.css: font-size: 12px [type] \u2014 raw type: 12px"],"profile":"lab","details":[{"path":"components\/fireworks\/fireworks.css","property":"font-size","value":"12px","kind":"type","reasons":["raw type: 12px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"goo-cursor","type":"registry:component","title":"Goo Cursor","description":"A slime that follows the cursor: blobs with surface tension, courtesy of an SVG goo filter.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/goo-cursor\/goo-cursor.css","type":"registry:component","content":"\/* KATA goo-cursor 1.1.0 \u2014 kata-ui.dev\/components\/goo-cursor \u2014 requires mold >= 2 *\/\n\/* KATA Goo Cursor \u2014 KATAYABURI. Surface tension as a service. *\/\n.k-goo{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;height:250px;font-family:var(--k-font);touch-action:none}\n.k-goo-field{position:absolute;inset:0}\n.k-goo-b{position:absolute;border-radius:50%;background:var(--k-accent);transform:translate(-50%,-50%);pointer-events:none;color:var(--k-on-accent)}\n.k-goo p{position:relative;z-index:2;text-align:center;padding-top:104px;font-size:13px;color:var(--k-zinc-400);pointer-events:none}\n"},{"path":"components\/goo-cursor\/goo-cursor.js","type":"registry:component","content":"\/* KATA goo-cursor 1.1.0 \u2014 kata-ui.dev\/components\/goo-cursor \u2014 requires mold >= 2 *\/\n\/\/ KATA Goo Cursor \u2014 a chain of lazy blobs under a goo filter.\ndocument.querySelectorAll('[data-goo]').forEach(function (stage) {\n  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;\n  var svgNS = 'http:\/\/www.w3.org\/2000\/svg';\n  var svg = document.createElementNS(svgNS, 'svg');\n  svg.setAttribute('width', '0'); svg.setAttribute('height', '0');\n  svg.style.position = 'absolute';\n  var filter = document.createElementNS(svgNS, 'filter');\n  filter.setAttribute('id', 'k-goo-filter');\n  var blur = document.createElementNS(svgNS, 'feGaussianBlur');\n  blur.setAttribute('in', 'SourceGraphic'); blur.setAttribute('stdDeviation', '9');\n  var matrix = document.createElementNS(svgNS, 'feColorMatrix');\n  matrix.setAttribute('values', '1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -11');\n  filter.appendChild(blur); filter.appendChild(matrix);\n  svg.appendChild(filter);\n  stage.appendChild(svg);\n  var field = stage.querySelector('.k-goo-field');\n  field.style.filter = 'url(#k-goo-filter)';\n  var SIZES = [44, 34, 27, 21, 16, 12];\n  var blobs = SIZES.map(function (s, i) {\n    var el = document.createElement('span');\n    el.className = 'k-goo-b';\n    el.style.width = s + 'px'; el.style.height = s + 'px';\n    field.appendChild(el);\n    return { el: el, x: stage.clientWidth \/ 2, y: stage.clientHeight \/ 2, ease: .34 - i * .045 };\n  });\n  var mouse = { x: stage.clientWidth \/ 2, y: stage.clientHeight \/ 2 };\n  stage.addEventListener('pointermove', function (e) {\n    var r = stage.getBoundingClientRect();\n    mouse.x = e.clientX - r.left; mouse.y = e.clientY - r.top;\n  });\n  (function frame() {\n    var tx = mouse.x, ty = mouse.y;\n    blobs.forEach(function (b) {\n      b.x += (tx - b.x) * b.ease;\n      b.y += (ty - b.y) * b.ease;\n      b.el.style.left = b.x + 'px';\n      b.el.style.top = b.y + 'px';\n      tx = b.x; ty = b.y;\n    });\n    requestAnimationFrame(frame);\n  })();\n});\n"},{"path":"components\/goo-cursor\/example.html","type":"registry:component","content":"<!-- KATA goo-cursor 1.1.0 \u2014 kata-ui.dev\/components\/goo-cursor \u2014 requires mold >= 2 -->\n<div class=\"k-goo\" data-goo role=\"img\" aria-label=\"A gooey slime that follows the cursor\">\n  <div class=\"k-goo-field\"><\/div>\n  <p>Move through the stage. It follows like it means it.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"Six blobs chase the pointer in a chain, each lazier than the last, and a blur-and-contrast filter fuses them into one creature with surface tension. It serves no purpose a meeting could survive. It is also the first thing everyone touches \u2014 some parts exist to be played with.","accessibility":"Pointer theatre in its purest form: invisible to assistive technology, absent on touch, and fully still under prefers-reduced-motion. The stage beneath it must carry its own meaning, because the goo carries none."},"audit":{"id":"components\/goo-cursor","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/goo-cursor\/goo-cursor.css: padding-top: 104px [spacing] \u2014 raw spacing: 104px"],"profile":"lab","details":[{"path":"components\/goo-cursor\/goo-cursor.css","property":"padding-top","value":"104px","kind":"spacing","reasons":["raw spacing: 104px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/goo-cursor\/goo-cursor.css: font-size: 13px [type] \u2014 raw type: 13px"],"profile":"lab","details":[{"path":"components\/goo-cursor\/goo-cursor.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"gravity-playground","type":"registry:component","title":"Gravity Playground","description":"The catalog, dropped: chips of parts fall, bounce, pile and can be thrown across the stage.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/gravity-playground\/gravity-playground.css","type":"registry:component","content":"\/* KATA gravity-playground 1.1.0 \u2014 kata-ui.dev\/components\/gravity-playground \u2014 requires mold >= 2 *\/\n\/* KATA Gravity Playground \u2014 KATAYABURI. The catalog, dropped. *\/\n.k-grav{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;height:264px;font-family:var(--k-font);touch-action:none}\n.k-grav-chip{position:absolute;left:0;top:0;padding:8px 14px;border-radius:99px;background:var(--k-zinc-800);color:var(--k-on-color);font-size:13px;font-weight:600;white-space:nowrap;cursor:grab;border:1px solid var(--k-zinc-700);user-select:none;-webkit-user-select:none}\n.k-grav-chip.hot{background:var(--k-accent);border-color:var(--k-accent);color:var(--k-on-accent)}\n.k-grav-chip:active{cursor:grabbing}\n"},{"path":"components\/gravity-playground\/gravity-playground.js","type":"registry:component","content":"\/* KATA gravity-playground 1.1.0 \u2014 kata-ui.dev\/components\/gravity-playground \u2014 requires mold >= 2 *\/\n\/\/ KATA Gravity Playground \u2014 circles in chip clothing; grab and fling.\ndocument.querySelectorAll('[data-grav]').forEach(function (stage) {\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var bodies = [];\n  stage.querySelectorAll('.k-grav-chip').forEach(function (el, i) {\n    var r = Math.max(el.offsetWidth, el.offsetHeight) \/ 2;\n    bodies.push({ el: el, x: 30 + (i * 67) % Math.max(120, stage.clientWidth - 90), y: 16 + (i % 4) * 34, vx: 0, vy: 0, r: r, held: false });\n  });\n  var drag = null, last = null;\n  bodies.forEach(function (b) {\n    b.el.style.left = '0px'; b.el.style.top = '0px';\n    b.el.addEventListener('pointerdown', function (e) {\n      drag = b; last = { x: e.clientX, y: e.clientY, t: performance.now() };\n      b.held = true; b.vx = 0; b.vy = 0;\n      b.el.setPointerCapture(e.pointerId);\n    });\n    b.el.addEventListener('pointermove', function (e) {\n      if (drag !== b) return;\n      var now = performance.now();\n      var rect = stage.getBoundingClientRect();\n      b.x = e.clientX - rect.left; b.y = e.clientY - rect.top;\n      var dt = Math.max(1, now - last.t);\n      b.vx = (e.clientX - last.x) \/ dt * 16; b.vy = (e.clientY - last.y) \/ dt * 16;\n      last = { x: e.clientX, y: e.clientY, t: now };\n    });\n    function release() { if (drag === b) { drag = null; b.held = false; } }\n    b.el.addEventListener('pointerup', release);\n    b.el.addEventListener('pointercancel', release);\n  });\n  function tick() {\n    var W = stage.clientWidth, H = stage.clientHeight;\n    bodies.forEach(function (b) {\n      if (!b.held) {\n        b.vy += .45;\n        b.x += b.vx; b.y += b.vy;\n        b.vx *= .999; b.vy *= .999;\n        if (b.x < b.r) { b.x = b.r; b.vx = Math.abs(b.vx) * .5; }\n        if (b.x > W - b.r) { b.x = W - b.r; b.vx = -Math.abs(b.vx) * .5; }\n        if (b.y < b.el.offsetHeight \/ 2) { b.y = b.el.offsetHeight \/ 2; b.vy = Math.abs(b.vy) * .5; }\n        if (b.y > H - b.el.offsetHeight \/ 2) { b.y = H - b.el.offsetHeight \/ 2; b.vy = -Math.abs(b.vy) * .42; b.vx *= .92; if (Math.abs(b.vy) < .6) b.vy = 0; }\n      }\n      b.el.style.transform = 'translate(' + (b.x - b.el.offsetWidth \/ 2) + 'px,' + (b.y - b.el.offsetHeight \/ 2) + 'px)';\n    });\n    for (var i = 0; i < bodies.length; i++) for (var j = i + 1; j < bodies.length; j++) {\n      var a = bodies[i], c = bodies[j];\n      var dx = c.x - a.x, dy = c.y - a.y;\n      var rr = (a.el.offsetWidth + c.el.offsetWidth) \/ 4.4;\n      var d2 = dx * dx + dy * dy;\n      if (d2 > 0 && d2 < rr * rr) {\n        var d = Math.sqrt(d2), push = (rr - d) \/ 2;\n        var nx = dx \/ d, ny = dy \/ d;\n        if (!a.held) { a.x -= nx * push; a.y -= ny * push; }\n        if (!c.held) { c.x += nx * push; c.y += ny * push; }\n      }\n    }\n    requestAnimationFrame(tick);\n  }\n  if (reduced) {\n    bodies.forEach(function (b, i) { b.x = 40 + i * 62; b.y = stage.clientHeight - 24; b.el.style.transform = 'translate(' + (b.x - b.el.offsetWidth \/ 2) + 'px,' + (b.y - b.el.offsetHeight \/ 2) + 'px)'; });\n  } else { requestAnimationFrame(tick); }\n});\n"},{"path":"components\/gravity-playground\/example.html","type":"registry:component","content":"<!-- KATA gravity-playground 1.1.0 \u2014 kata-ui.dev\/components\/gravity-playground \u2014 requires mold >= 2 -->\n<div class=\"k-grav\" data-grav role=\"img\" aria-label=\"Chips named after catalog parts, falling and piling under gravity\">\n  <span class=\"k-grav-chip\">Button<\/span><span class=\"k-grav-chip\">Modal<\/span><span class=\"k-grav-chip\">Toast<\/span><span class=\"k-grav-chip hot\">QR Code<\/span><span class=\"k-grav-chip\">Sidebar<\/span><span class=\"k-grav-chip hot\">Dock<\/span><span class=\"k-grav-chip\">Calendar<\/span><span class=\"k-grav-chip\">Meteor<\/span><span class=\"k-grav-chip\">Kanban<\/span><span class=\"k-grav-chip\">Aurora<\/span>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Grab a chip and throw it. The pile is not load-bearing.<\/p>"}],"meta":{"status":"beta","usage":"Every chip is a part name with a small physics body: gravity, wall bounces, cheap collisions, and a pointer that can grab and fling. It is a toy \u2014 the kind a conference booth runs on a big screen. Put it anywhere the brand can afford to be caught playing.","accessibility":"Labeled as a toy: the chips are inert text to assistive technology (the same names exist in the Components index, in order). Under prefers-reduced-motion the chips rest in a neat pile at the floor \u2014 gravity, but polite."},"audit":{"id":"components\/gravity-playground","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/gravity-playground\/gravity-playground.css: padding: 8px 14px [spacing] \u2014 raw spacing: 8px; raw spacing: 14px","components\/gravity-playground\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/gravity-playground\/gravity-playground.css","property":"padding","value":"8px 14px","kind":"spacing","reasons":["raw spacing: 8px","raw spacing: 14px"]},{"path":"components\/gravity-playground\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/gravity-playground\/gravity-playground.css: font-size: 13px [type] \u2014 raw type: 13px","components\/gravity-playground\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/gravity-playground\/gravity-playground.css","property":"font-size","value":"13px","kind":"type","reasons":["raw type: 13px"]},{"path":"components\/gravity-playground\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"jelly-buttons","type":"registry:component","title":"Jelly Buttons","description":"Buttons made of jelly: they squash on the press, overshoot on the release, and wobble home.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/jelly-buttons\/jelly-buttons.css","type":"registry:component","content":"\/* KATA jelly-buttons 1.1.0 \u2014 kata-ui.dev\/components\/jelly-buttons \u2014 requires mold >= 2 *\/\n\/* KATA Jelly Buttons \u2014 KATAYABURI. Dessert-grade controls. *\/\n.k-jelly{display:inline-block;border:0;cursor:pointer;font-family:var(--k-font);font-weight:650;font-size:14.5px;padding:13px 26px;border-radius:14px;background:var(--k-ink);color:var(--k-bg);transition:transform calc(.28s * var(--k-mscale)) var(--k-ease-bounce)}\n.k-jelly:hover{transform:scale(1.07,.92)}\n.k-jelly:active{transform:scale(.88,1.12)}\n.k-jelly.asagi{background:var(--k-accent);color:var(--k-on-accent)}\n.k-jelly.soft{background:var(--k-bg-soft);color:var(--k-ink);border:1px solid var(--k-line)}\n.k-jelly.squish{animation:k-jelly-wob calc(.55s * var(--k-mscale)) var(--k-ease-bounce)}\n@keyframes k-jelly-wob{0%{transform:scale(1,1)}25%{transform:scale(1.18,.78)}50%{transform:scale(.92,1.1)}72%{transform:scale(1.05,.97)}100%{transform:scale(1,1)}}\n@media (prefers-reduced-motion:reduce){.k-jelly{transition:none}.k-jelly:hover,.k-jelly:active{transform:none}.k-jelly.squish{animation:none}}\n"},{"path":"components\/jelly-buttons\/jelly-buttons.js","type":"registry:component","content":"\/* KATA jelly-buttons 1.1.0 \u2014 kata-ui.dev\/components\/jelly-buttons \u2014 requires mold >= 2 *\/\n\/\/ KATA Jelly Buttons \u2014 a full wobble on every press.\n(function () {\n  'use strict';\n  document.querySelectorAll('.k-jelly').forEach(function (button) {\n    if (button.dataset.kataReady) return;\n    button.dataset.kataReady = 'true';\n    let timer;\n    function finish() { clearTimeout(timer); button.classList.remove('squish'); }\n    button.addEventListener('click', function () {\n      finish();\n      void button.offsetWidth;\n      button.classList.add('squish');\n      const style = getComputedStyle(button);\n      const ms = value => Math.max(...value.split(',').map(part => parseFloat(part) * (part.trim().endsWith('ms') ? 1 : 1000)));\n      const duration = ms(style.animationDuration);\n      if (style.animationName === 'none' || duration === 0) { finish(); return; }\n      \/\/ No end event is guaranteed after cancellation, removal, or a zero-duration override.\n      timer = setTimeout(finish, duration + Math.max(0, ms(style.animationDelay)) + 50);\n    });\n    button.addEventListener('animationend', function (event) { if (event.target === button) finish(); });\n    button.addEventListener('animationcancel', function (event) { if (event.target === button) finish(); });\n  });\n})();\n"},{"path":"components\/jelly-buttons\/example.html","type":"registry:component","content":"<!-- KATA jelly-buttons 1.1.0 \u2014 kata-ui.dev\/components\/jelly-buttons \u2014 requires mold >= 2 -->\n<div style=\"display:flex;gap:13px;flex-wrap:wrap;align-items:center;padding:8px 0\">\n  <button class=\"k-jelly\" type=\"button\">Squish me<\/button>\n  <button class=\"k-jelly asagi\" type=\"button\">Me too<\/button>\n  <button class=\"k-jelly soft\" type=\"button\">Reluctantly<\/button>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:6px\">Hover is a lean, press is a squash, release is the wobble home.<\/p>"}],"meta":{"status":"beta","usage":"An elastic timing curve and a squish keyframe turn the most serious control on the page into dessert. Use it where the brand is allowed to grin \u2014 a game, a toy, a checkout that just succeeded. Keep it away from the delete button; some actions should feel like actions.","accessibility":"The jelly is transform-only: size, name, focus and order are untouched, and the keyboard press is as dignified as any other button. Under prefers-reduced-motion the wobble is off and the buttons are, sadly, professional."},"audit":{"id":"components\/jelly-buttons","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/jelly-buttons\/jelly-buttons.css: padding: 13px 26px [spacing] \u2014 raw spacing: 13px; raw spacing: 26px","components\/jelly-buttons\/preview.html: gap: 13px [spacing] \u2014 raw spacing: 13px","components\/jelly-buttons\/preview.html: padding: 8px 0 [spacing] \u2014 raw spacing: 8px","components\/jelly-buttons\/preview.html: margin-top: 6px [spacing] \u2014 raw spacing: 6px"],"profile":"lab","details":[{"path":"components\/jelly-buttons\/jelly-buttons.css","property":"padding","value":"13px 26px","kind":"spacing","reasons":["raw spacing: 13px","raw spacing: 26px"]},{"path":"components\/jelly-buttons\/preview.html","property":"gap","value":"13px","kind":"spacing","reasons":["raw spacing: 13px"]},{"path":"components\/jelly-buttons\/preview.html","property":"padding","value":"8px 0","kind":"spacing","reasons":["raw spacing: 8px"]},{"path":"components\/jelly-buttons\/preview.html","property":"margin-top","value":"6px","kind":"spacing","reasons":["raw spacing: 6px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/jelly-buttons\/jelly-buttons.css: font-size: 14.5px [type] \u2014 raw type: 14.5px","components\/jelly-buttons\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/jelly-buttons\/jelly-buttons.css","property":"font-size","value":"14.5px","kind":"type","reasons":["raw type: 14.5px"]},{"path":"components\/jelly-buttons\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"kaleidoscope","type":"registry:component","title":"Kaleidoscope","description":"Draw once, get ten drawings: a pointer sketch mirrored into a living mandala.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/kaleidoscope\/kaleidoscope.css","type":"registry:component","content":"\/* KATA kaleidoscope 1.1.0 \u2014 kata-ui.dev\/components\/kaleidoscope \u2014 requires mold >= 2 *\/\n\/* KATA Kaleidoscope \u2014 KATAYABURI. Draw once, get ten. *\/\n.k-kal{background:var(--k-zinc-950);border-radius:14px;padding:12px;font-family:var(--k-font)}\n.k-kal canvas{display:block;width:100%;height:262px;border-radius:8px;touch-action:none;cursor:crosshair}\n.k-kal-bar{display:flex;justify-content:center;margin-top:10px}\n.k-kal-btn{border:1px solid var(--k-zinc-700);background:none;color:var(--k-zinc-300);font-family:inherit;font-size:12.5px;font-weight:550;padding:6px 14px;border-radius:99px;cursor:pointer}\n.k-kal-btn:hover{color:var(--k-on-color);border-color:var(--k-zinc-500)}\n\/* The stage is fixed zinc-950 in both themes, so focus uses the fixed light color. *\/\n.k-kal-btn:focus-visible{outline:2px solid var(--k-on-color);outline-offset:2px}\n"},{"path":"components\/kaleidoscope\/kaleidoscope.js","type":"registry:component","content":"\/* KATA kaleidoscope 1.1.0 \u2014 kata-ui.dev\/components\/kaleidoscope \u2014 requires mold >= 2 *\/\n\/\/ KATA Kaleidoscope \u2014 one stroke, ten reflections.\ndocument.querySelectorAll('[data-kal]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var SEG = 10, W, H, cx, cy, drawing = false, prev = null, auto = !reduced, t = 0;\n  var paper = getComputedStyle(stage).getPropertyValue('--k-on-color').trim() || '#ffffff';\n  var accent = getComputedStyle(stage).getPropertyValue('--k-accent').trim() || '#0e9594';\n  function size() {\n    W = canvas.clientWidth; H = canvas.clientHeight;\n    canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0);\n    cx = W \/ 2; cy = H \/ 2;\n    ctx.fillStyle = '#09090b'; ctx.fillRect(0, 0, W, H);\n  }\n  function stroke(a, b, color) {\n    ctx.strokeStyle = color; ctx.lineWidth = 2.4; ctx.lineCap = 'round';\n    for (var i = 0; i < SEG; i++) {\n      var ang = (Math.PI * 2 \/ SEG) * i;\n      var flip = i % 2 === 1;\n      [false, true].forEach(function (mirror) {\n        var s = (flip ? -1 : 1) * (mirror ? -1 : 1);\n        ctx.beginPath();\n        ctx.moveTo(cx + rot(a, ang, s).x, cy + rot(a, ang, s).y);\n        ctx.lineTo(cx + rot(b, ang, s).x, cy + rot(b, ang, s).y);\n        ctx.stroke();\n      });\n    }\n  }\n  function rot(p, ang, sx) {\n    var dx = (p.x - cx) * sx, dy = p.y - cy;\n    return { x: dx * Math.cos(ang) - dy * Math.sin(ang), y: dx * Math.sin(ang) + dy * Math.cos(ang) };\n  }\n  function autoPen() {\n    if (!auto) return;\n    t += .016;\n    var p = { x: cx + Math.sin(t * 1.9) * W * .3, y: cy + Math.sin(t * 2.7) * H * .32 };\n    if (prev) stroke(prev, p, Math.floor(t * 2) % 2 ? paper : accent);\n    prev = p;\n    requestAnimationFrame(autoPen);\n  }\n  function pos(e) { var r = canvas.getBoundingClientRect(); return { x: e.clientX - r.left, y: e.clientY - r.top }; }\n  canvas.addEventListener('pointerdown', function (e) { auto = false; drawing = true; prev = pos(e); canvas.setPointerCapture(e.pointerId); });\n  canvas.addEventListener('pointermove', function (e) { if (!drawing) return; var p = pos(e); stroke(prev, p, paper); prev = p; });\n  canvas.addEventListener('pointerup', function () { drawing = false; });\n  stage.querySelector('[data-kal-clear]').addEventListener('click', function () { ctx.fillStyle = '#09090b'; ctx.fillRect(0, 0, W, H); });\n  size();\n  window.addEventListener('resize', size);\n  if (!reduced) requestAnimationFrame(autoPen);\n});\n"},{"path":"components\/kaleidoscope\/example.html","type":"registry:component","content":"<!-- KATA kaleidoscope 1.1.0 \u2014 kata-ui.dev\/components\/kaleidoscope \u2014 requires mold >= 2 -->\n<div class=\"k-kal\" data-kal role=\"img\" aria-label=\"A kaleidoscope drawing stage\">\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <div class=\"k-kal-bar\"><button class=\"k-kal-btn\" type=\"button\" data-kal-clear>Clear<\/button><\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">It draws alone until you take the pen. Then it is your fault, ten times.<\/p>"}],"meta":{"status":"beta","usage":"The stage draws by itself until you touch it \u2014 a slow lissajous pen \u2014 then your strokes take over, mirrored across ten segments. The Clear button is the only adult in the room. Screenshots of it make excellent album covers and terrible documentation.","accessibility":"A drawing toy: the canvas carries a plain label, and nothing on any sane page may depend on what gets drawn. Under prefers-reduced-motion the pen rests and the stage waits, blank and patient, for a hand."},"audit":{"id":"components\/kaleidoscope","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/kaleidoscope\/kaleidoscope.css: padding: 12px [spacing] \u2014 raw spacing: 12px","components\/kaleidoscope\/kaleidoscope.css: margin-top: 10px [spacing] \u2014 raw spacing: 10px","components\/kaleidoscope\/kaleidoscope.css: padding: 6px 14px [spacing] \u2014 raw spacing: 6px; raw spacing: 14px","components\/kaleidoscope\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/kaleidoscope\/kaleidoscope.css","property":"padding","value":"12px","kind":"spacing","reasons":["raw spacing: 12px"]},{"path":"components\/kaleidoscope\/kaleidoscope.css","property":"margin-top","value":"10px","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/kaleidoscope\/kaleidoscope.css","property":"padding","value":"6px 14px","kind":"spacing","reasons":["raw spacing: 6px","raw spacing: 14px"]},{"path":"components\/kaleidoscope\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":4}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/kaleidoscope\/kaleidoscope.css: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/kaleidoscope\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/kaleidoscope\/kaleidoscope.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/kaleidoscope\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"kata-rain","type":"registry:component","title":"Kata Rain","description":"Katakana rain: columns of falling glyphs over a black sky, because this library would.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/kata-rain\/kata-rain.css","type":"registry:component","content":"\/* KATA kata-rain 1.1.0 \u2014 kata-ui.dev\/components\/kata-rain \u2014 requires mold >= 2 *\/\n\/* KATA Kata Rain \u2014 KATAYABURI. It rains katakana here. *\/\n.k-rain{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;font-family:var(--k-font)}\n.k-rain canvas{display:block;width:100%;height:250px}\n.k-rain-in{position:relative;z-index:2;padding:20px 22px}\n"},{"path":"components\/kata-rain\/kata-rain.js","type":"registry:component","content":"\/* KATA kata-rain 1.1.0 \u2014 kata-ui.dev\/components\/kata-rain \u2014 requires mold >= 2 *\/\n\/\/ KATA Kata Rain \u2014 columns of falling glyphs, taupe sky optional.\ndocument.querySelectorAll('[data-rain]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var GLYPHS = '\u30a2\u30ab\u30b5\u30bf\u30ca\u30cf\u30de\u30e4\u30e9\u30ef\u30a4\u30ad\u30b7\u30c1\u30cb\u30d2\u30df\u30ea\u30f20123456789';\n  var W, H, cols, drops;\n  var accent = getComputedStyle(stage).getPropertyValue('--k-accent').trim() || '#0e9594';\n  function size() {\n    W = canvas.clientWidth; H = canvas.clientHeight;\n    canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0);\n    cols = Math.floor(W \/ 17);\n    drops = [];\n    for (var i = 0; i < cols; i++) drops.push({ y: Math.random() * -40, speed: .5 + Math.random() * 1.1 });\n    ctx.fillStyle = '#09090b';\n    ctx.fillRect(0, 0, W, H);\n  }\n  function draw() {\n    ctx.fillStyle = 'rgba(9,9,11,.16)';\n    ctx.fillRect(0, 0, W, H);\n    ctx.font = '15px monospace';\n    for (var i = 0; i < cols; i++) {\n      var d = drops[i];\n      var ch = GLYPHS[Math.floor(Math.random() * GLYPHS.length)];\n      ctx.fillStyle = accent;\n      ctx.fillText(ch, i * 17 + 2, d.y * 17);\n      ctx.fillStyle = 'rgba(212,212,216,.5)';\n      ctx.fillText(GLYPHS[Math.floor(Math.random() * GLYPHS.length)], i * 17 + 2, (d.y - 1) * 17);\n      d.y += d.speed;\n      if (d.y * 17 > H && Math.random() > .978) { d.y = Math.random() * -12; d.speed = .5 + Math.random() * 1.1; }\n    }\n  }\n  size();\n  window.addEventListener('resize', size);\n  if (reduced) { for (var k = 0; k < 26; k++) draw(); }\n  else { setInterval(draw, 52); }\n});\n"},{"path":"components\/kata-rain\/example.html","type":"registry:component","content":"<!-- KATA kata-rain 1.1.0 \u2014 kata-ui.dev\/components\/kata-rain \u2014 requires mold >= 2 -->\n<div class=\"k-rain\" data-rain role=\"img\" aria-label=\"Katakana rain over a black sky\">\n  <canvas aria-hidden=\"true\"><\/canvas>\n<\/div>"}],"meta":{"status":"beta","usage":"A decorative downpour for the pages that can take it \u2014 launches, easter eggs, the 404 with a sense of humor. The glyphs are katakana and digits, the heads burn accent-bright, and the trails fade the way rain does. On any page doing actual business, this is the whole budget of mischief, spent at once.","accessibility":"Canvas only, aria-hidden, behind real content with real contrast. Under prefers-reduced-motion one frozen frame stands instead of the rain \u2014 the sky, holding its breath."},"audit":{"id":"components\/kata-rain","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/kata-rain\/kata-rain.css: padding: 20px 22px [spacing] \u2014 raw spacing: 20px; raw spacing: 22px"],"profile":"lab","details":[{"path":"components\/kata-rain\/kata-rain.css","property":"padding","value":"20px 22px","kind":"spacing","reasons":["raw spacing: 20px","raw spacing: 22px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"newtons-cradle","type":"registry:component","title":"Newton's Cradle","description":"The desk toy, in pure CSS: five steel balls, one endless argument about momentum.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/newtons-cradle\/newtons-cradle.css","type":"registry:component","content":"\/* KATA newtons-cradle 1.1.0 \u2014 kata-ui.dev\/components\/newtons-cradle \u2014 requires mold >= 2 *\/\n\/* KATA Newton's Cradle \u2014 KATAYABURI. Momentum, the desk toy. *\/\n.k-cr{width:100%;border:1px solid var(--k-line);border-radius:14px;background:var(--k-bg);padding:20px 0 16px;font-family:var(--k-font)}\n.k-cr-frame{width:236px;margin:0 auto}\n.k-cr-bar{height:7px;border-radius:4px;background:var(--k-ink)}\n.k-cr-row{display:flex;justify-content:center}\n.k-cr-p{width:36px;height:128px;transform-origin:top center;display:flex;flex-direction:column;align-items:center}\n.k-cr-p::before{content:\"\";width:1.5px;height:92px;background:var(--k-zinc-400)}\n.k-cr-b{width:36px;height:36px;border-radius:50%;background:radial-gradient(circle at 34% 30%, var(--k-zinc-100), var(--k-zinc-400) 78%);box-shadow:0 3px 7px color-mix(in srgb,var(--k-zinc-900) 25%,transparent);flex:none}\n.k-cr-p.end.l{animation:k-cr-l calc(2.4s * var(--k-mscale)) ease-in-out infinite}\n.k-cr-p.end.r{animation:k-cr-r calc(2.4s * var(--k-mscale)) ease-in-out infinite}\n@keyframes k-cr-l{0%,50%,100%{transform:rotate(0)}25%{transform:rotate(27deg)}}\n@keyframes k-cr-r{0%,50%,100%{transform:rotate(0)}75%{transform:rotate(-27deg)}}\n@media (prefers-reduced-motion:reduce){.k-cr-p.end{animation:none}}\n"},{"path":"components\/newtons-cradle\/example.html","type":"registry:component","content":"<!-- KATA newtons-cradle 1.1.0 \u2014 kata-ui.dev\/components\/newtons-cradle \u2014 requires mold >= 2 -->\n<div class=\"k-cr\" role=\"img\" aria-label=\"A Newton's cradle, swinging\">\n  <div class=\"k-cr-frame\" aria-hidden=\"true\">\n    <div class=\"k-cr-bar\"><\/div>\n    <div class=\"k-cr-row\">\n    <span class=\"k-cr-p end l\"><span class=\"k-cr-b\"><\/span><\/span>\n    <span class=\"k-cr-p\"><span class=\"k-cr-b\"><\/span><\/span>\n    <span class=\"k-cr-p\"><span class=\"k-cr-b\"><\/span><\/span>\n    <span class=\"k-cr-p\"><span class=\"k-cr-b\"><\/span><\/span>\n    <span class=\"k-cr-p end r\"><span class=\"k-cr-b\"><\/span><\/span>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"No script at all \u2014 two keyframes and a delay keep the end balls trading blows forever. It belongs wherever a page waits: loading states, \"we are thinking\" panels, the footer of a site with confidence. The middle three balls do nothing, beautifully, which is also a management style.","accessibility":"A silent, looping ornament: aria-hidden, with the page\u2019s real status carried in words beside it. Under prefers-reduced-motion the balls hang still \u2014 momentum, conserved at zero."},"audit":{"id":"components\/newtons-cradle","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/newtons-cradle\/newtons-cradle.css: padding: 20px 0 16px [spacing] \u2014 raw spacing: 20px; raw spacing: 16px"],"profile":"lab","details":[{"path":"components\/newtons-cradle\/newtons-cradle.css","property":"padding","value":"20px 0 16px","kind":"spacing","reasons":["raw spacing: 20px","raw spacing: 16px"]}],"by_kind":{"spacing":1}},{"id":"type-values","status":"pass","severity":"warning","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"particle-word","type":"registry:component","title":"Particle Word","description":"A word made of a thousand dots that scatter when you touch them \u2014 the KATAYABURI flagship.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/particle-word\/particle-word.css","type":"registry:component","content":"\/* KATA particle-word 1.1.0 \u2014 kata-ui.dev\/components\/particle-word \u2014 requires mold >= 2 *\/\n\/* KATA Particle Word \u2014 KATAYABURI. A word, weather included. *\/\n.k-pw{background:var(--k-zinc-950);border-radius:14px;padding:14px;font-family:var(--k-font)}\n.k-pw canvas{display:block;width:100%;height:230px;touch-action:none}\n.k-pw-bar{display:flex;gap:8px;justify-content:center;margin-top:10px}\n.k-pw-btn{border:1px solid var(--k-zinc-700);background:none;color:var(--k-zinc-300);font-family:inherit;font-size:12.5px;font-weight:550;padding:6px 13px;border-radius:99px;cursor:pointer}\n.k-pw-btn:hover{color:var(--k-on-color);border-color:var(--k-zinc-500)}\n.k-pw-btn.on{background:var(--k-on-color);color:var(--k-zinc-950);border-color:var(--k-on-color)}\n\/* The stage is fixed zinc-950 in both themes, so focus uses the fixed light color. *\/\n.k-pw-btn:focus-visible{outline:2px solid var(--k-on-color);outline-offset:2px}\n"},{"path":"components\/particle-word\/particle-word.js","type":"registry:component","content":"\/* KATA particle-word 1.1.0 \u2014 kata-ui.dev\/components\/particle-word \u2014 requires mold >= 2 *\/\n\/\/ KATA Particle Word \u2014 samples a word into points; each point gets\n\/\/ a spring home and a healthy fear of the cursor.\ndocument.querySelectorAll('[data-pw]').forEach(function (stage) {\n  var canvas = stage.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var W = 0, H = 0, parts = [], mouse = { x: -9999, y: -9999 };\n  var accent = getComputedStyle(stage).getPropertyValue('--k-accent').trim() || '#0e9594';\n  var paper = getComputedStyle(stage).getPropertyValue('--k-on-color').trim() || '#ffffff';\n  function targets(word) {\n    var off = document.createElement('canvas');\n    off.width = W; off.height = H;\n    var o = off.getContext('2d');\n    o.fillStyle = '#fff';\n    o.font = '700 ' + Math.min(150, W \/ Math.max(2.2, word.length * 0.62)) + 'px Inter, sans-serif';\n    o.textAlign = 'center'; o.textBaseline = 'middle';\n    o.fillText(word, W \/ 2, H \/ 2 + 4);\n    var data = o.getImageData(0, 0, W, H).data;\n    var pts = [], step = 5;\n    for (var y = 0; y < H; y += step) for (var x = 0; x < W; x += step)\n      if (data[(y * W + x) * 4 + 3] > 128) pts.push({ x: x, y: y });\n    if (pts.length > 1500) { pts = pts.filter(function (_, i) { return i % 2 === 0; }); }\n    return pts;\n  }\n  function seed(word) {\n    var pts = targets(word);\n    while (parts.length < pts.length) parts.push({ x: Math.random() * W, y: Math.random() * H, vx: 0, vy: 0, c: Math.random() < .22 ? accent : paper });\n    parts.length = pts.length;\n    parts.forEach(function (p, i) { p.hx = pts[i].x; p.hy = pts[i].y; if (reduced) { p.x = p.hx; p.y = p.hy; } });\n  }\n  function frame() {\n    ctx.clearRect(0, 0, W, H);\n    parts.forEach(function (p) {\n      var dx = mouse.x - p.x, dy = mouse.y - p.y;\n      var d2 = dx * dx + dy * dy;\n      if (d2 < 4900) { var d = Math.sqrt(d2) || 1; var f = (70 - d) \/ 70 * 2.6; p.vx -= dx \/ d * f; p.vy -= dy \/ d * f; }\n      p.vx += (p.hx - p.x) * 0.028;\n      p.vy += (p.hy - p.y) * 0.028;\n      p.vx *= 0.86; p.vy *= 0.86;\n      p.x += p.vx; p.y += p.vy;\n      ctx.fillStyle = p.c;\n      ctx.fillRect(p.x, p.y, 2.2, 2.2);\n    });\n    if (!reduced) requestAnimationFrame(frame);\n  }\n  function resize() {\n    W = canvas.clientWidth; H = canvas.clientHeight;\n    canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0);\n    seed(stage.getAttribute('data-word') || 'KATA');\n    if (reduced) frame();\n  }\n  stage.querySelectorAll('[data-pw-word]').forEach(function (b) {\n    b.addEventListener('click', function () {\n      stage.querySelectorAll('[data-pw-word]').forEach(function (x) { x.classList.remove('on'); });\n      b.classList.add('on');\n      stage.setAttribute('data-word', b.getAttribute('data-pw-word'));\n      seed(b.getAttribute('data-pw-word'));\n    });\n  });\n  canvas.addEventListener('pointermove', function (e) {\n    var r = canvas.getBoundingClientRect();\n    mouse.x = e.clientX - r.left; mouse.y = e.clientY - r.top;\n  });\n  canvas.addEventListener('pointerleave', function () { mouse.x = -9999; mouse.y = -9999; });\n  resize();\n  window.addEventListener('resize', resize);\n  if (!reduced) requestAnimationFrame(frame);\n});\n"},{"path":"components\/particle-word\/example.html","type":"registry:component","content":"<!-- KATA particle-word 1.1.0 \u2014 kata-ui.dev\/components\/particle-word \u2014 requires mold >= 2 -->\n<div class=\"k-pw\" data-pw data-word=\"KATA\" role=\"img\" aria-label=\"The word KATA, made of particles\">\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <div class=\"k-pw-bar\">\n    <button class=\"k-pw-btn on\" type=\"button\" data-pw-word=\"KATA\">KATA<\/button>\n    <button class=\"k-pw-btn\" type=\"button\" data-pw-word=\"\u578b\u7834\u308a\">\u578b\u7834\u308a<\/button>\n    <button class=\"k-pw-btn\" type=\"button\" data-pw-word=\"2026\">2026<\/button>\n  <\/div>\n<\/div>\n<p style=\"font-size:12.5px;color:var(--k-ink-3);margin-top:9px\">Run the cursor through the word. It forgives you, slowly.<\/p>"}],"meta":{"status":"beta","usage":"KATAYABURI is the shelf where the mold breaks on purpose. This one samples a word into points and gives every point a spring home and a fear of cursors. Change the word with the buttons, or the data-word attribute. It proves nothing, sells nothing, and is the part people will remember \u2014 which, occasionally, is the job.","accessibility":"The word also exists as plain text for assistive technology; the canvas is aria-hidden theatre. Under prefers-reduced-motion the dots assemble instantly and stay put \u2014 the word, without the weather."},"audit":{"id":"components\/particle-word","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/particle-word\/particle-word.css: padding: 14px [spacing] \u2014 raw spacing: 14px","components\/particle-word\/particle-word.css: gap: 8px [spacing] \u2014 raw spacing: 8px","components\/particle-word\/particle-word.css: margin-top: 10px [spacing] \u2014 raw spacing: 10px","components\/particle-word\/particle-word.css: padding: 6px 13px [spacing] \u2014 raw spacing: 6px; raw spacing: 13px","components\/particle-word\/preview.html: margin-top: 9px [spacing] \u2014 raw spacing: 9px"],"profile":"lab","details":[{"path":"components\/particle-word\/particle-word.css","property":"padding","value":"14px","kind":"spacing","reasons":["raw spacing: 14px"]},{"path":"components\/particle-word\/particle-word.css","property":"gap","value":"8px","kind":"spacing","reasons":["raw spacing: 8px"]},{"path":"components\/particle-word\/particle-word.css","property":"margin-top","value":"10px","kind":"spacing","reasons":["raw spacing: 10px"]},{"path":"components\/particle-word\/particle-word.css","property":"padding","value":"6px 13px","kind":"spacing","reasons":["raw spacing: 6px","raw spacing: 13px"]},{"path":"components\/particle-word\/preview.html","property":"margin-top","value":"9px","kind":"spacing","reasons":["raw spacing: 9px"]}],"by_kind":{"spacing":5}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/particle-word\/particle-word.css: font-size: 12.5px [type] \u2014 raw type: 12.5px","components\/particle-word\/preview.html: font-size: 12.5px [type] \u2014 raw type: 12.5px"],"profile":"lab","details":[{"path":"components\/particle-word\/particle-word.css","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]},{"path":"components\/particle-word\/preview.html","property":"font-size","value":"12.5px","kind":"type","reasons":["raw type: 12.5px"]}],"by_kind":{"type":2}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"warp-tunnel","type":"registry:component","title":"Warp Tunnel","description":"Rings rushing out of the dark: a hyperspace tunnel in pure CSS, no script at all.","categories":["KATAYABURI"],"dependencies":[],"files":[{"path":"components\/warp-tunnel\/warp-tunnel.css","type":"registry:component","content":"\/* KATA warp-tunnel 1.1.0 \u2014 kata-ui.dev\/components\/warp-tunnel \u2014 requires mold >= 2 *\/\n\/* KATA Warp Tunnel \u2014 KATAYABURI. Twelve rings, zero script. *\/\n.k-warp{position:relative;width:100%;background:var(--k-zinc-950);border-radius:14px;overflow:hidden;height:250px;perspective:340px;font-family:var(--k-font)}\n.k-warp-in{position:absolute;inset:0;transform-style:preserve-3d}\n.k-warp-r{position:absolute;left:50%;top:50%;width:300px;height:300px;margin:-150px 0 0 -150px;border:2px solid var(--k-zinc-700);border-radius:50%;opacity:0;animation:k-warp-fly calc(5s * var(--k-mscale)) linear infinite}\n.k-warp-r:nth-child(3n){border-color:var(--k-accent)}\n@keyframes k-warp-fly{0%{transform:scale(.05);opacity:0}14%{opacity:.95}70%{opacity:.8}100%{transform:scale(2.35);opacity:0}}\n.k-warp p{position:relative;z-index:2;text-align:center;padding-top:106px;font-size:14px;font-weight:600;color:var(--k-on-color);letter-spacing:.14em}\n@media (prefers-reduced-motion:reduce){.k-warp-r{animation:none;opacity:.25}.k-warp-r:nth-child(odd){display:none}}\n"},{"path":"components\/warp-tunnel\/example.html","type":"registry:component","content":"<!-- KATA warp-tunnel 1.1.0 \u2014 kata-ui.dev\/components\/warp-tunnel \u2014 requires mold >= 2 -->\n<div class=\"k-warp\" role=\"img\" aria-label=\"Rings rushing toward the viewer through a dark tunnel\">\n  <div class=\"k-warp-in\" aria-hidden=\"true\">\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(0.00s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(0.42s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(0.84s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(1.26s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(1.68s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(2.10s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(2.52s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(2.94s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(3.36s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(3.78s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(4.20s * var(--k-mscale))\"><\/span>\n    <span class=\"k-warp-r\" style=\"animation-delay:calc(4.62s * var(--k-mscale))\"><\/span>\n  <\/div>\n  <p>DEPLOY SPEED<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"Twelve rings, one keyframe, staggered delays \u2014 the cheapest speed in the catalog. Drop it behind a launch headline when the message is \"fast\" and the meeting is short. It is the only KATAYABURI part with no JavaScript, which the shelf finds hilarious.","accessibility":"Decoration with a strong motion signature: under prefers-reduced-motion the rings freeze into a target and stay still. Never put the only copy of a message inside the tunnel; text rides above it or not at all."},"audit":{"id":"components\/warp-tunnel","profile":"lab","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"lab","details":[],"by_kind":{}},{"id":"spacing-values","status":"warn","severity":"warning","findings":["components\/warp-tunnel\/warp-tunnel.css: margin: -150px 0 0 -150px [spacing] \u2014 raw spacing: -150px","components\/warp-tunnel\/warp-tunnel.css: padding-top: 106px [spacing] \u2014 raw spacing: 106px"],"profile":"lab","details":[{"path":"components\/warp-tunnel\/warp-tunnel.css","property":"margin","value":"-150px 0 0 -150px","kind":"spacing","reasons":["raw spacing: -150px"]},{"path":"components\/warp-tunnel\/warp-tunnel.css","property":"padding-top","value":"106px","kind":"spacing","reasons":["raw spacing: 106px"]}],"by_kind":{"spacing":2}},{"id":"type-values","status":"warn","severity":"warning","findings":["components\/warp-tunnel\/warp-tunnel.css: font-size: 14px [type] \u2014 raw type: 14px"],"profile":"lab","details":[{"path":"components\/warp-tunnel\/warp-tunnel.css","property":"font-size","value":"14px","kind":"type","reasons":["raw type: 14px"]}],"by_kind":{"type":1}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"hanko","type":"registry:component","title":"Hanko","description":"A vermillion seal that stamps: the shu-iro signature for approvals, authorship and things that are done.","categories":["Japan"],"dependencies":[],"files":[{"path":"components\/hanko\/hanko.css","type":"registry:component","content":"\/* KATA hanko 1.1.0 \u2014 kata-ui.dev\/components\/hanko \u2014 requires mold >= 4 *\/\n\/* KATA Hanko \u2014 the seal, in shu-iro. *\/\n.k-seal-doc{font-family:var(--k-font);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-5);background:var(--k-bg);max-width:480px}\n.k-seal-doc h3{font-size:var(--k-text-lead);font-weight:650}\n.k-seal-doc p{font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-top:var(--k-space-1);letter-spacing:.01em}\n.k-seal-row{display:flex;align-items:center;gap:var(--k-space-4);margin-top:var(--k-space-4);padding-top:var(--k-space-4);border-top:1px solid var(--k-line)}\n.k-seal-meta b{display:block;font-size:var(--k-text-base)}\n.k-seal-meta span{font-size:var(--k-text-sm);color:var(--k-ink-3);letter-spacing:.01em}\n.k-seal{position:relative;margin-inline-start:auto;width:56px;height:56px;flex:none;cursor:pointer}\n.k-seal::after{content:\"\";position:absolute;inset:0;border:2px solid var(--k-core);border-radius:var(--k-radius-lg);opacity:0}\n.k-seal-face{position:absolute;inset:0;background:var(--k-core);color:var(--k-on-color);border-radius:var(--k-radius-md) var(--k-radius-lg) var(--k-radius-lg) var(--k-radius-lg);display:flex;align-items:center;justify-content:center;font-family:\"Hiragino Mincho ProN\",\"YuMincho\",serif;font-size:var(--k-text-3xl);font-weight:600;transform:rotate(-3deg)}\n.k-seal.stamp .k-seal-face{animation:k-seal-in calc(.5s * var(--k-mscale)) var(--k-ease-spring)}\n.k-seal.stamp::after{animation:k-seal-ring calc(.55s * var(--k-mscale)) ease-out}\n@keyframes k-seal-in{0%{transform:scale(2.1) rotate(-13deg);opacity:0}55%{transform:scale(.94) rotate(-2.2deg);opacity:1}78%{transform:scale(1.03) rotate(-3.2deg)}100%{transform:scale(1) rotate(-3deg)}}\n@keyframes k-seal-ring{0%{transform:scale(.7);opacity:.55}100%{transform:scale(1.55);opacity:0}}\n@media (prefers-reduced-motion:reduce){.k-seal.stamp .k-seal-face,.k-seal.stamp::after{animation:none}}\n"},{"path":"components\/hanko\/hanko.js","type":"registry:component","content":"\/* KATA hanko 1.1.0 \u2014 kata-ui.dev\/components\/hanko \u2014 requires mold >= 4 *\/\n\/\/ KATA Hanko \u2014 stamps on arrival; click presses it again.\ndocument.querySelectorAll('[data-seal]').forEach(function (seal) {\n  function stamp() {\n    seal.classList.remove('stamp');\n    void seal.offsetWidth;\n    seal.classList.add('stamp');\n  }\n  seal.addEventListener('click', stamp);\n  if ('IntersectionObserver' in window) {\n    var io = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { setTimeout(stamp, 300); io.disconnect(); } }, { threshold: .5 });\n    io.observe(seal);\n  } else { stamp(); }\n});\n"},{"path":"components\/hanko\/example.html","type":"registry:component","content":"<!-- KATA hanko 1.1.0 \u2014 kata-ui.dev\/components\/hanko \u2014 requires mold >= 4 -->\n<div class=\"k-seal-doc\">\n  <h3>Release note \u2014 Design Tokens v1.4<\/h3>\n  <p>The token set is frozen for the spring release. Accent ramps, spacing and the vermillion core are final; parts built against v1.4 need no changes.<\/p>\n  <div class=\"k-seal-row\">\n    <div class=\"k-seal-meta\"><b>Approved \u2014 Mara Sato<\/b><span>Design lead \u00b7 Nov 2, 2026<\/span><\/div>\n    <span class=\"k-seal\" data-seal role=\"img\" aria-label=\"Seal of approval\" title=\"Press again\"><span class=\"k-seal-face\">\u578b<\/span><\/span>\n  <\/div>\n<\/div>\n<p style=\"font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2)\">It stamps when it arrives. Click the seal to press it again.<\/p>"}],"meta":{"status":"beta","usage":"The seal is cast in shu-iro \u2014 the same vermillion reserved for the mark and the live center of controls \u2014 because a hanko is exactly that: a signature with weight. It stamps in when it arrives (scale, a breath of overshoot, an ink ring that fades) and re-stamps on click. Use it where a human means it: approvals, signed releases, the end of a document that is finished.","accessibility":"The approval itself is stated in words beside the seal (\"Approved \u2014 Mara Sato, Nov 2\") \u2014 the text carries the approval for every reader. The stamp-in is a transform only and is skipped under prefers-reduced-motion, where the seal simply sits, already pressed."},"audit":{"id":"components\/hanko","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"kintsugi-card","type":"registry:component","title":"Kintsugi Card","description":"A status card repaired in gold: the cracks of an incident, drawn as kintsugi veins that mend on arrival.","categories":["Japan"],"dependencies":[],"files":[{"path":"components\/kintsugi-card\/kintsugi-card.css","type":"registry:component","content":"\/* KATA kintsugi-card 1.1.0 \u2014 kata-ui.dev\/components\/kintsugi-card \u2014 requires mold >= 4 *\/\n\/* KATA Kintsugi Card \u2014 the break, gilded. *\/\n.k-kin{position:relative;width:100%;background:var(--k-zinc-950);color:var(--k-on-color);border-radius:var(--k-radius-xl);overflow:hidden;font-family:var(--k-font);padding:var(--k-space-5)}\n.k-kin canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}\n.k-kin-in{position:relative;z-index:1;pointer-events:none}\n.k-kin .k-kin-tag{font-size:var(--k-text-xs);font-weight:650;letter-spacing:.16em;color:var(--k-yamabuki)}\n.k-kin h3{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.015em;margin:var(--k-space-2) 0 var(--k-space-2)}\n.k-kin p{font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-zinc-400);max-width:380px;letter-spacing:.01em}\n.k-kin-meta{display:flex;gap:var(--k-space-5);margin-top:var(--k-space-4);flex-wrap:wrap}\n.k-kin-meta div b{display:block;font-size:var(--k-text-lead)}\n.k-kin-meta div span{font-size:var(--k-text-xs);letter-spacing:.1em;color:var(--k-zinc-500);text-transform:uppercase}\n"},{"path":"components\/kintsugi-card\/kintsugi-card.js","type":"registry:component","content":"\/* KATA kintsugi-card 1.1.0 \u2014 kata-ui.dev\/components\/kintsugi-card \u2014 requires mold >= 4 *\/\n\/\/ KATA Kintsugi Card \u2014 the veins draw themselves, gold over glow.\ndocument.querySelectorAll('[data-kin]').forEach(function (card) {\n  var canvas = card.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n  var cs = getComputedStyle(card);\n  var GOLD = cs.getPropertyValue('--k-yamabuki').trim();\n  var GLOW = cs.getPropertyValue('--k-yamabuki').trim();\n  var CRACKS = [\n    [[.06, .1], [.2, .3], [.3, .34], [.44, .52], [.52, .6]],\n    [[.44, .52], [.5, .72], [.47, .95]],\n    [[.3, .34], [.34, .12], [.42, .02]],\n    [[.52, .6], [.68, .66], [.84, .6], [.97, .72]],\n    [[.68, .66], [.74, .86], [.72, 1.02]]\n  ];\n  var W, H;\n  function size() { W = card.clientWidth; H = card.clientHeight; canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0); }\n  function draw(t) {\n    ctx.clearRect(0, 0, W, H);\n    CRACKS.forEach(function (line) {\n      var total = line.length - 1;\n      var upto = t * total;\n      [5.5, 1.8].forEach(function (wdt, pass) {\n        ctx.beginPath();\n        ctx.strokeStyle = pass === 0 ? GLOW : GOLD;\n        ctx.globalAlpha = pass === 0 ? .5 : 1;\n        ctx.lineWidth = wdt;\n        ctx.lineJoin = 'round';\n        for (var i = 0; i < Math.floor(upto); i++) {\n          var a = line[i], b = line[i + 1];\n          if (i === 0) ctx.moveTo(a[0] * W, a[1] * H);\n          ctx.lineTo(b[0] * W, b[1] * H);\n        }\n        var f = upto - Math.floor(upto);\n        if (f > 0 && Math.floor(upto) < total) {\n          var a2 = line[Math.floor(upto)], b2 = line[Math.floor(upto) + 1];\n          if (Math.floor(upto) === 0) ctx.moveTo(a2[0] * W, a2[1] * H);\n          ctx.lineTo((a2[0] + (b2[0] - a2[0]) * f) * W, (a2[1] + (b2[1] - a2[1]) * f) * H);\n        }\n        ctx.stroke();\n      });\n    });\n    ctx.globalAlpha = 1;\n  }\n  var start = null;\n  function mend(ts) {\n    if (!start) start = ts;\n    var t = Math.min(1, (ts - start) \/ 1100);\n    draw(t);\n    if (t < 1) requestAnimationFrame(mend);\n  }\n  function run() { size(); if (reduced) { draw(1); } else { start = null; requestAnimationFrame(mend); } }\n  card.addEventListener('pointerenter', run);\n  if ('IntersectionObserver' in window) {\n    var io = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { run(); io.disconnect(); } }, { threshold: .4 });\n    io.observe(card);\n  } else { run(); }\n  size(); draw(reduced ? 1 : 0);\n});\n"},{"path":"components\/kintsugi-card\/example.html","type":"registry:component","content":"<!-- KATA kintsugi-card 1.1.0 \u2014 kata-ui.dev\/components\/kintsugi-card \u2014 requires mold >= 4 -->\n<div class=\"k-kin\" data-kin>\n  <canvas aria-hidden=\"true\"><\/canvas>\n  <div class=\"k-kin-in\">\n    <p class=\"k-kin-tag\">INCIDENT 214 \u2014 RESTORED<\/p>\n    <h3>Stronger at the seams<\/h3>\n    <p>The registry went down at 03:12 and came back at 03:54 with every part intact. We publish the cracks instead of plastering over them \u2014 the veins are where it is strongest now.<\/p>\n    <div class=\"k-kin-meta\">\n      <div><b>42 min<\/b><span>Downtime<\/span><\/div>\n      <div><b>None<\/b><span>Data loss<\/span><\/div>\n      <div><b>3<\/b><span>Veins<\/span><\/div>\n      <div><b>Full<\/b><span>Postmortem<\/span><\/div>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Kintsugi is the craft of repairing broken pottery with gold \u2014 the break becomes the most valuable part. This card reports an incident the same way: what broke, how long it took, and the veins drawn across the surface as the record, gilded instead of hidden. The mend animates on arrival; hover draws it again. For status pages and postmortems that intend to be believed.","accessibility":"The facts are text \u2014 status, downtime, data loss \u2014 in a normal card; the veins are canvas decoration above it. Under prefers-reduced-motion the veins are drawn complete and still: repaired is repaired, animated or not."},"audit":{"id":"components\/kintsugi-card","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"noren","type":"registry:component","title":"Noren","description":"A noren curtain as a section divider: three hanging panels that sway, and part when you reach for them.","categories":["Japan"],"dependencies":[],"files":[{"path":"components\/noren\/noren.css","type":"registry:component","content":"\/* KATA noren 1.1.0 \u2014 kata-ui.dev\/components\/noren \u2014 requires mold >= 4 *\/\n\/* KATA Noren \u2014 the shop curtain, as a divider. *\/\n.k-nor{font-family:var(--k-font);background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:0 var(--k-space-6) var(--k-space-5);overflow:hidden}\n.k-nor-bar{height:7px;border-radius:var(--k-radius-sm);background:var(--k-zinc-800);margin:0 calc(var(--k-space-1) * -1)}\n.k-nor-row{display:flex;gap:var(--k-space-1);justify-content:center}\n.k-nor-p{width:76px;height:148px;transform-origin:top center;display:flex;align-items:center;justify-content:center;color:var(--k-on-color);transition:transform calc(.5s * var(--k-mscale)) var(--k-ease-in-out)}\n.k-nor-p.c1{background:linear-gradient(180deg,color-mix(in srgb,var(--k-asagi-900) 82%,var(--k-on-color)),var(--k-asagi-900) 68%);animation:k-nor-sway calc(5.2s * var(--k-mscale)) ease-in-out infinite alternate}\n.k-nor-p.c2{background:linear-gradient(180deg,color-mix(in srgb,var(--k-accent-ink) 84%,var(--k-on-color)),var(--k-accent-ink) 68%);animation:k-nor-sway calc(6.4s * var(--k-mscale)) ease-in-out infinite alternate-reverse}\n.k-nor-p.c3{background:linear-gradient(180deg,color-mix(in srgb,var(--k-asagi-800) 84%,var(--k-on-color)),var(--k-asagi-800) 68%);animation:k-nor-sway calc(5.8s * var(--k-mscale)) ease-in-out infinite alternate}\n.k-nor:hover .k-nor-p.c1{transform:translateX(-11px)}\n.k-nor:hover .k-nor-p.c3{transform:translateX(11px)}\n@keyframes k-nor-sway{from{rotate:-1.1deg}to{rotate:1.1deg}}\n.k-nor-cap{text-align:center;font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-4);letter-spacing:.12em}\n@media (prefers-reduced-motion:reduce){.k-nor-p{animation:none}}\n"},{"path":"components\/noren\/example.html","type":"registry:component","content":"<!-- KATA noren 1.1.0 \u2014 kata-ui.dev\/components\/noren \u2014 requires mold >= 4 -->\n<div class=\"k-nor\" role=\"img\" aria-label=\"A three-panel noren curtain in graded indigo dyes\">\n  <div class=\"k-nor-bar\"><\/div>\n  <div class=\"k-nor-row\" aria-hidden=\"true\">\n    <div class=\"k-nor-p c1\"><\/div>\n    <div class=\"k-nor-p c2\"><svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"\/><path d=\"M12 6.6 17.4 12 12 17.4 6.6 12Z\"\/><circle cx=\"12\" cy=\"12\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"\/><\/svg><\/div>\n    <div class=\"k-nor-p c3\"><\/div>\n  <\/div>\n  <p class=\"k-nor-cap\">\u2014 THE STORY, BELOW \u2014<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"Shops hang a noren to say \"open, and someone is home\" \u2014 as a divider it marks a threshold between sections of a page: the catalog above, the story below. The panels sway on staggered clocks (transform-origin at the bar, a degree and a bit each way), and part a few pixels on hover, the way a hand brushes cloth. The crest on the middle panel is the mold glyph; swap in your own mark.","accessibility":"A divider is a picture of a doorway: it carries an aria-label if it must say anything, and the heading structure of the page does the real work of separating sections. The sway is transform-only and stops under prefers-reduced-motion."},"audit":{"id":"components\/noren","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"tategaki","type":"registry:component","title":"Tategaki","description":"Vertical Japanese text, set properly: shuhari \u2014 obey the form, break the form, leave the form \u2014 as an editorial monument.","categories":["Japan"],"dependencies":[],"files":[{"path":"components\/tategaki\/tategaki.css","type":"registry:component","content":"\/* KATA tategaki 1.1.0 \u2014 kata-ui.dev\/components\/tategaki \u2014 requires mold >= 4 *\/\n\/* KATA Tategaki \u2014 vertical text, set properly. *\/\n.k-tate{display:flex;gap:var(--k-space-8);align-items:stretch;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);font-family:var(--k-font);color:var(--k-ink)}\n.k-tate-v{writing-mode:vertical-rl;font-family:\"Hiragino Mincho ProN\",\"YuMincho\",serif;font-size:var(--k-text-display);font-weight:600;letter-spacing:.32em;line-height:var(--k-lh-tight);display:flex}\n.k-tate-ch{animation:k-tate-in calc(1s * var(--k-mscale)) var(--k-ease) both}\n.k-tate-ch.d1{animation-delay:calc(.05s * var(--k-mscale))}.k-tate-ch.d2{animation-delay:calc(.22s * var(--k-mscale))}.k-tate-ch.d3{animation-delay:calc(.39s * var(--k-mscale))}\n@keyframes k-tate-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}\n.k-tate-gloss{border-inline-start:1px solid var(--k-line);padding-inline-start:var(--k-space-6);display:flex;flex-direction:column;justify-content:center;gap:var(--k-space-3)}\n.k-tate-gloss div b{font-size:var(--k-text-md);font-weight:650}\n.k-tate-gloss div b span{font-family:\"Hiragino Mincho ProN\",\"YuMincho\",serif;margin-inline-end:var(--k-space-2)}\n.k-tate-gloss div p{font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-body);letter-spacing:.01em}\n.k-tate-gloss .en{font-size:var(--k-text-xs);font-weight:650;letter-spacing:.18em;color:var(--k-ink-3);text-transform:uppercase}\n@media (prefers-reduced-motion:reduce){.k-tate-ch{animation:none}}\n"},{"path":"components\/tategaki\/example.html","type":"registry:component","content":"<!-- KATA tategaki 1.1.0 \u2014 kata-ui.dev\/components\/tategaki \u2014 requires mold >= 4 -->\n<div class=\"k-tate\">\n  <div class=\"k-tate-v\" aria-hidden=\"true\"><span class=\"k-tate-ch d1\">\u5b88<\/span><span class=\"k-tate-ch d2\">\u7834<\/span><span class=\"k-tate-ch d3\">\u96e2<\/span><\/div>\n  <div class=\"k-tate-gloss\">\n    <p class=\"en\">Shuhari \u2014 the discipline of the form<\/p>\n    <div><b><span>\u5b88<\/span>Shu<\/b><p>Obey the form. Learn the mold exactly as it is, until the hands know it.<\/p><\/div>\n    <div><b><span>\u7834<\/span>Ha<\/b><p>Break the form. Deliberately, in the open, where the break can be judged.<\/p><\/div>\n    <div><b><span>\u96e2<\/span>Ri<\/b><p>Leave the form. The mold made the work; it does not get to keep it.<\/p><\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Tategaki is not rotated text: writing-mode vertical-rl lays the columns right-to-left with the glyphs upright, the way a book opens. The three characters are shuhari (\u5b88\u7834\u96e2), the craft discipline this whole library runs on \u2014 first obey the mold, then break it deliberately, then leave it behind. Use the part for chapter heads, manifestos, and the page that states what a studio believes.","accessibility":"Vertical text is genuinely harder for some readers, so the part always travels with its horizontal gloss: the three terms, translated, in reading order beside it. Screen readers receive the text in DOM order \u2014 characters, then gloss \u2014 regardless of the visual direction."},"audit":{"id":"components\/tategaki","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"wagara","type":"registry:component","title":"Wagara","description":"One hundred classical Japanese patterns that tile, drawn on canvas from their constructions \u2014 waves and hemp stars, tortoiseshell and fretwork, thunder spirals and linked chains, diamond lattices, stone walls and basket weaves, mist, rain and willow. Patterns only: continuous fields, no pictures and no image files. Every pattern recolors with its tone.","categories":["Japan"],"dependencies":[],"files":[{"path":"components\/wagara\/wagara.css","type":"registry:component","content":"\/* KATA wagara 1.1.0 \u2014 kata-ui.dev\/components\/wagara \u2014 requires mold >= 2 *\/\n\/* KATA Wagara \u2014 classical patterns, constructed. *\/\n.k-wag{font-family:var(--k-font)}\n.k-wag-stage{border-radius:var(--k-radius-xl);overflow:hidden;border:1px solid var(--k-line)}\n.k-wag canvas{display:block;width:100%;height:228px}\n.k-wag-bar{display:flex;gap:var(--k-space-2);flex-wrap:wrap;margin-top:var(--k-space-2);align-items:flex-start;max-height:178px;overflow-y:auto;overscroll-behavior:contain;padding:var(--k-space-1);scrollbar-width:thin}\n.k-wag-btn{border:1px solid var(--k-line);background:var(--k-bg);color:var(--k-ink-2);font-family:inherit;font-size:var(--k-text-sm);font-weight:550;padding:var(--k-space-2) var(--k-space-3);border-radius:var(--k-radius-full);cursor:pointer;letter-spacing:.01em}\n.k-wag-btn small{color:var(--k-ink-3);font-weight:500;margin-inline-start:var(--k-space-1)}\n.k-wag-btn.on{background:var(--k-ink);color:var(--k-bg);border-color:var(--k-ink)}\n.k-wag-btn.on small{color:var(--k-zinc-400)}\n.k-wag-tone{color:var(--k-accent-ink);border-color:var(--k-accent-bg);flex:none}\n.k-wag-cap{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2);letter-spacing:.01em}\n\n.k-wag-tools{display:flex;gap:var(--k-space-2);align-items:center;margin-top:var(--k-space-3)}\n.k-wag-search{flex:1;min-width:0;-webkit-appearance:none;appearance:none;border:1px solid var(--k-line);background:var(--k-bg);color:var(--k-ink);border-radius:var(--k-radius-full);padding:var(--k-space-2) var(--k-space-3);font-family:inherit;font-size:var(--k-text-base);letter-spacing:.01em}\n.k-wag-search::placeholder{color:var(--k-ink-3)}\n.k-wag-search:focus-visible{outline:2px solid var(--k-ink);outline-offset:1px}\n.k-wag-count{font-size:var(--k-text-xs);color:var(--k-ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}\n.k-wag-none{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-2);letter-spacing:.01em}\n.k-wag-btn[hidden]{display:none}\n.k-wag-bar::-webkit-scrollbar{width:5px}\n.k-wag-bar::-webkit-scrollbar-thumb{background:var(--k-zinc-300);border-radius:var(--k-radius-full)}\n@media (pointer:coarse){.k-wag-btn{padding:var(--k-space-2) var(--k-space-3)}}\n@media (max-width:640px){.k-wag-search{font-size:var(--k-text-lg)}.k-wag-bar{max-height:196px}}\n\/* The filter bar clips overflow, so buttons draw their focus ring inside. *\/\n.k-wag-btn:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n.k-wag-btn.on:focus-visible{outline-color:var(--k-bg)}\n"},{"path":"components\/wagara\/wagara.js","type":"registry:component","content":"\/* KATA wagara 1.1.0 \u2014 kata-ui.dev\/components\/wagara \u2014 requires mold >= 2 *\/\n\/\/ KATA Wagara \u2014 classical patterns that tile, drawn from their constructions.\ndocument.querySelectorAll('[data-wag]').forEach(function (root) {\n  var canvas = root.querySelector('canvas');\n  var ctx = canvas.getContext('2d');\n  var DPR = Math.min(3, window.devicePixelRatio || 1);\n  var cap = root.querySelector('.k-wag-cap');\n  function tones() {\n    var cs = getComputedStyle(root);\n    var V = function (n) { return cs.getPropertyValue(n).trim(); };\n    return [\n      { bg: V('--k-bg'), fg: V('--k-ink'), mid: V('--k-zinc-400'), soft: V('--k-zinc-200'), name: 'Paper' },\n      { bg: V('--k-zinc-950'), fg: V('--k-zinc-200'), mid: V('--k-zinc-500'), soft: V('--k-zinc-800'), name: 'Ink' },\n      { bg: V('--k-zinc-950'), fg: V('--k-accent'), mid: V('--k-zinc-500'), soft: V('--k-zinc-800'), name: 'Night' }\n    ];\n  }\n  var picked = null;\n  function ambientDark() {\n    var host = root.closest('[data-theme]');\n    if (host) return host.getAttribute('data-theme') === 'dark';\n    return !!(window.matchMedia && matchMedia('(prefers-color-scheme: dark)').matches);\n  }\n  function effTone() { return picked !== null ? picked : (ambientDark() ? 1 : 0); }\n  var CAPS = {\n    seigaiha: 'Seigaiha \u2014 blue ocean waves. Concentric arcs, each row offset by half a fan; a wish for calm seas and a long life.',\n    asanoha: 'Asanoha \u2014 the hemp leaf. Six-fold geometry from a hexagon\\u2019s triangles; hemp grows fast and straight, so the pattern guards children.',\n    shippo: 'Shippo \u2014 seven treasures. Equal circles overlapping by a quarter, each petal a treasure, the whole an unbroken wish for harmony.',\n    ichimatsu: 'Ichimatsu \u2014 the checkered pattern named for the kabuki actor Sanogawa Ichimatsu. The nested band is the one the KATA mark wears.',\n    kikko: 'Kikko \u2014 the tortoiseshell. Hexagons from the turtle\\u2019s shell; the tortoise lives ten thousand years, so the pattern is worn for a long life.',\n    uroko: 'Uroko \u2014 scales. Overlapping triangles of fish and dragon scale; what sheds its skin sheds misfortune with it.',\n    same: 'Samekomon \u2014 sharkskin. Dots riding the arcs of scales, dyed so fine it counted as plain cloth under Edo sumptuary law \u2014 luxury hiding in the dots.',\n    yagasuri: 'Yagasuri \u2014 the arrow feather. An arrow once shot never returns, so the pattern rides wedding kimono: go, and do not come back.',\n    kanoko: 'Kanoko \u2014 the fawn\\u2019s spots. Shibori dots pinched and dyed one by one, named for the dapples down a young deer\\u2019s back.',\n    hishi: 'Hishi \u2014 the diamond. The floating leaf of the water caltrop, squared into a lattice that crosses the whole cloth.',\n    sayagata: 'Sayagata \u2014 the silk fret. A manji lattice interlocked so no line ever ends; woven into silk gauze, it wishes a long life without a break.',\n    kagome: 'Kagome \u2014 the basket weave. A bamboo lattice of hexagons and triangles; the pattern of the woven basket, sung as a ward against evil.',\n    karakusa: 'Karakusa \u2014 the vine arabesque. Curls that never stop growing, carried on silk and temple cloth: prosperity, spreading.',\n    ryusui: 'Ryusui \u2014 flowing water. It never stagnates and never stops; the pattern is worn for a life that keeps moving, and stays clean.',\n    tatewaku: 'Tatewaku \u2014 the rising pattern. Paired waves stand and swell like steam off hot water: fortune, rising.',\n    yukwa: 'Yukwa \u2014 the snow ring. A snowflake rounded into a medallion; snow promises a full harvest, and melts without a trace.',\n    ajiro: 'Ajiro \u2014 wickerwork. Bamboo strips woven over and under, the pattern of trays and lattice screens: patient, and exact.',\n    sankuzushi: 'Sankuzushi \u2014 the counting rods, broken. Bars laid in alternating directions, named for the abacus counters they imitate.',\n    higaki: 'Higaki \u2014 the cypress fence. A doubled diagonal lattice, after the woven cypress fences of old gardens: quiet, and hard to climb.',\n    hanabishi: 'Hanabishi \u2014 the flower diamond. The water-caltrop diamond with a flower at its heart, a crest softened into a pattern.',\n    watsunagi: 'Watsunagi \u2014 linked rings. Ring inside ring inside ring, an unbroken chain: continuity, hand to hand.',\n    bishamon: 'Bishamon-kikko \u2014 the tortoiseshell of Bishamon-ten, guardian of warriors; his armor is drawn as hexagons worked with triangles.',\n    tatenami: 'Tatenami \u2014 standing waves. Bold arcs rearing in rows, crests flecked with foam; the sea with its back up.',\n    kanzemizu: 'Kanzemizu \u2014 the Kanze school water. Great slow swirls named for a Noh house; water that turns and remembers.',\n    genjigumo: 'Genjigumo \u2014 Genji clouds. Long cloud bands with a curled end, named for the Tale of Genji chapter screens.',\n    kasumi: 'Kasumi \u2014 mist. Flat bands drifting at offsets; the pattern for everything half-seen and better for it.',\n    kumo: 'Kumo \u2014 clouds. Single arcs in rows, the scalloped edge of a cloud bank, drawn out to the horizon.',\n    ame: 'Ame \u2014 rain. Slanted strokes in companies, the way rain actually arrives: together, and at an angle.',\n    yanagi: 'Yanagi \u2014 the willow. Strands hung from the top of the cloth, leafed and swaying; what bends in the wind, survives it.',\n    raimon: 'Raimon \u2014 the thunder pattern. One squared spiral, struck like a bolt and repeated; an old pattern with a loud name.',\n    kojitsunagi: 'Kojitsunagi \u2014 the character \u5de5\uff0c linked. Bars turned alternately so the letters hold each other up.',\n    manjitsunagi: 'Manjitsunagi \u2014 linked manji. Four bent arms to a cell, chained without a break; an auspicious sign far older than its misuse.',\n    igeta: 'Igeta \u2014 the well curb. Doubled lines crossing like the frame of a well; the mark of things drawn from deep water.',\n    mansuji: 'Mansuji \u2014 ten thousand lines. Pinstripes beyond counting, the proudest of the Edo komon; luxury you need a loupe to see.',\n    komochijima: 'Komochijima \u2014 the stripe with a child. A wide band carrying a thin stripe inside it, parent and child in one cloth.',\n    yamaji: 'Yamaji \u2014 the mountain road. A zigzag that climbs and descends in rows, woven the way a path switchbacks.',\n    arare: 'Arare \u2014 hail. Dots of no fixed size, scattered the way hail actually falls; a komon classic.',\n    hyoretsu: 'Hyoretsu \u2014 cracked ice. A jittered lattice of fractures, the pattern of a pond the morning after it freezes.',\n    jujigasuri: 'Jujigasuri \u2014 the cross kasuri. Plus signs woven into the cloth, one thread-count at a time.',\n    igasuri: 'Igasuri \u2014 the well kasuri. Small # marks in offset rows; the kasuri weaver counting in wells.',\n    fundotsunagi: 'Fundotsunagi \u2014 linked scale-weights. The fundo weight of the money-changer, chained lobe to lobe.',\n    kusari: 'Kusari \u2014 the chain. Oval links turned alternately, each holding the next; drawn double, like the real links.',\n    matsukawabishi: 'Matsukawabishi \u2014 pine-bark diamonds. Tall diamonds stacked like the plates of pine bark.',\n    takedabishi: 'Takedabishi \u2014 the Takeda diamonds. Four diamonds in a square, the crest of the Takeda house.',\n    mitsubishi: 'Mitsubishi \u2014 three diamonds. One above two, the arrangement that became a company mark the world knows.',\n    kenhanabishi: 'Kenhanabishi \u2014 the sword flower-diamond. A hanabishi with blades at its diagonals; a crest, sharpened.',\n    nijukikko: 'Nijukikko \u2014 the double tortoiseshell. Kikko drawn at three removes, shell inside shell inside shell.',\n    kikkohanabishi: 'Kikkohanabishi \u2014 the tortoiseshell flower-diamond. A hanabishi blooming inside every hexagon.',\n    hanashippo: 'Hanashippo \u2014 the flower shippo. Seven treasures with a four-petal flower struck at every crossing.',\n    amime: 'Amime \u2014 the net. A diamond mesh with a knotted ring at every crossing, cast for fish and for fences.',\n    kakutoshi: 'Kakutoshi \u2014 passing squares. Tiny squares in strict rows, the quietest of the komon family.',\n    ishigaki: 'Ishigaki \u2014 the stone wall. Rounded blocks laid in offset courses, the pattern of castle foundations.',\n    takegaki: 'Takegaki \u2014 the bamboo fence. Slats in pairs with tied crossbars, the garden fence drawn flat.',\n    senbongoshi: 'Senbongoshi \u2014 the thousand-bar lattice. Thin slats ruled by heavier frames, a window drawn as a pattern.',\n    hakarakusa: 'Hakarakusa \u2014 leaf arabesque. A waving stem putting out leaves in turn, the vine drawn as a border.',\n    noshi: 'Noshi \u2014 the gift band. Strips of the noshi wrapper laid diagonally, folds and all; ceremony as a pattern.',\n    tabanenoshi: 'Tabane noshi \u2014 bundled bands. Ribbons in threes, tied at intervals; many gifts, one bundle.',\n    maruuroko: 'Maru uroko \u2014 round scales. The uroko tiling with circles for triangles; a softer armor.',\n    dandigai: 'Dandigai ichimatsu \u2014 the staggered check. Ichimatsu with each row slipped half a stone, so the field never sits still.',\n    ishidatami: 'Ishidatami \u2014 stone paving. Big checks with a dressed edge inside each stone; the floor of a castle approach.',\n    koshi: 'Koshi \u2014 the lattice. One line each way, nothing hidden; the grid every other pattern is measured against.',\n    nanamegoshi: 'Naname goshi \u2014 the diagonal lattice. The koshi turned forty-five degrees; diamonds where the squares were.',\n    yotsumeami: 'Yotsume ami \u2014 four-eye weave. Basket squares drawn over and under in turn, the weave you can read.',\n    goma: 'Goma \u2014 sesame. The smallest dots in the komon book, sown evenly; a texture before it is a pattern.',\n    chidorigoshi: 'Chidorigoshi \u2014 the plover check, the world\u2019s houndstooth. Checks broken by teeth at every corner.',\n    sensuji: 'Sensuji \u2014 a thousand stripes. Lines in companies of six with a rest between; mansuji\u2019s quieter brother.',\n    koshijima: 'Koshijima \u2014 the check stripe. Warp bands crossing weft bands, darker where they meet, the way dyed cloth deepens.',\n    dandan: 'Dandan \u2014 step by step. Bands laid in a slow staircase of offsets; a pattern that climbs without rising.',\n    hishigasane: 'Hishigasane \u2014 layered diamonds. Outlines overlapping point to point, a chain of lozenges running off both edges.',\n    irekobishi: 'Ireko bishi \u2014 nested diamonds. Three outlines to a stone, diamond inside diamond inside diamond.',\n    suimon: 'Suimon \u2014 water crests. Wave lines in close ranks, phase shifting row by row; a river drawn in section.',\n    kikkogasuri: 'Kikko gasuri \u2014 the tortoiseshell kasuri. Bold hexagons woven as marks, one to a count of threads.',\n    takeami: 'Takeami \u2014 bamboo weave. Plain weave drawn honestly: over, under, over, under, in rounded strips.',\n    sankakugoshi: 'Sankaku goshi \u2014 the triangle lattice. Three directions of line, nothing else; the truss of the pattern world.',\n    kasaneshikaku: 'Kasane shikaku \u2014 layered squares. A square and its forty-five-degree twin on every point; eight-point stars where they marry.',\n    uzutsunagi: 'Uzu tsunagi \u2014 linked whirlpools. Spirals chained by an arc to the next; the whirlpool made sociable.',\n    mizutama: 'Mizutama \u2014 water drops. Dots in two sizes, the polka dot before it was polka; rain, counted.',\n    futojima: 'Futojima \u2014 the bold stripe. A wide band and two hairlines for company; stripes with their shoulders back.',\n    nanameichimatsu: 'Naname ichimatsu \u2014 the check on the diagonal. Ichimatsu rotated until the squares stand on their points.',\n    midareishigaki: 'Midare ishigaki \u2014 the rough stone wall. Courses of uneven blocks, laid the way field stone actually falls.',\n    kasanesankaku: 'Kasane sankaku \u2014 layered triangles. Points up and points down in one lattice; hexagrams wherever they marry.',\n    mikazuki: 'Mikazuki \u2014 crescent moons. Rows of crescents alternating their horns; the moon at three days, tiled.',\n    kakutsunagi: 'Kaku tsunagi \u2014 linked squares. Plain squares chained by diamonds at the corners; right angles, holding hands.',\n    ayaori: 'Ayaori \u2014 the twill weave. Diagonal steps at thread scale; the weave of every pair of jeans, drawn as a pattern.',\n    sorobandama: 'Soroban dama \u2014 abacus beads. Bicones on their rods in counted rows; arithmetic as ornament.',\n    kikkokuzushi: 'Kikko kuzushi \u2014 the broken tortoiseshell. Kikko with its columns slipped, the shell after an earthquake, still standing.',\n    wagasane: 'Wagasane \u2014 layered rings. Rings overlapping in ranks like mail; circles that behave like scales.',\n    yokojima: 'Yokojima \u2014 the horizontal stripe. Laid bands with a ruled double line; the stripe at rest.',\n    sakurakumiko: 'Sakura kumiko \u2014 the kumiko lattice. Joinery hexagons with a six-point star fitted inside, the woodworker\u2019s geometry.',\n    chigaitatewaku: 'Chigai tatewaku \u2014 unmatched standing waves. Wide pairs and narrow pairs alternating up the cloth.',\n    chigaibishi: 'Chigai bishi \u2014 unmatched diamonds. Big stones and small stones dealt alternately across the field.',\n    kasanegoshi: 'Kasane goshi \u2014 the doubled lattice. Two grids overlaid half a cell apart; a mesh with pinned crossings.',\n    nanameyagasuri: 'Naname yagasuri \u2014 the arrows on the diagonal. Yagasuri flying at an angle, the wind it was shot into drawn in.',\n    tsurugoshi: 'Tsuru goshi \u2014 the vine lattice. A grid that grew instead of being ruled; lines waving where they cross.',\n    kasumigasane: 'Kasumi gasane \u2014 layered mist. The mist bands doubled and slipped, weather in pairs.',\n    kumogasane: 'Kumo gasane \u2014 layered clouds. Scallop banks filled in turn, a cloud deck seen from above it.',\n    futogoshi: 'Futo goshi \u2014 the bold lattice. Koshi with its shoulders up: thick bars and a punched knot at every crossing.',\n    ichimatsujima: 'Ichimatsu jima \u2014 the check stripe. Ichimatsu confined to bands, plain cloth between; checks reporting for duty in columns.',\n    irekoasanoha: 'Ireko asanoha \u2014 the nested hemp star. Asanoha with a half-scale copy of itself fitted inside every star.',\n    irekoshippo: 'Ireko shippo \u2014 the nested seven treasures. Shippo with a ring struck at every crossing and a bead at every quarter point.',\n  };\n  var pattern = 'seigaiha', W, H;\n  function seigaiha(t) {\n    var s = 30;\n    var rows = Math.ceil(H \/ (s * .5)) + 2;\n    for (var r = rows; r >= -1; r--) {\n      var y = r * s * .5 + s * .5;\n      var off = (r % 2) * s;\n      for (var x = -s + off; x < W + s; x += s * 2) {\n        for (var k = 4; k >= 1; k--) {\n          ctx.beginPath();\n          ctx.arc(x, y, s * k \/ 4, Math.PI, 0);\n          ctx.closePath();\n          ctx.fillStyle = k % 2 ? t.bg : t.soft;\n          if (k === 4) ctx.fillStyle = t.bg;\n          ctx.fill();\n          ctx.strokeStyle = k % 2 ? t.fg : t.mid;\n          ctx.lineWidth = 1.2;\n          ctx.stroke();\n        }\n      }\n    }\n  }\n  function asanoha(t) {\n    var R = 25, dx = Math.sqrt(3) * R, dy = 1.5 * R;\n    ctx.lineWidth = 1.1;\n    var row = 0;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y;\n        var v = [];\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2; v.push([cx + R * Math.cos(a), cy + R * Math.sin(a)]); }\n        for (var k2 = 0; k2 < 6; k2++) {\n          var A = v[k2], B = v[(k2 + 1) % 6];\n          var mx = (A[0] + B[0] + cx) \/ 3, my = (A[1] + B[1] + cy) \/ 3;\n          ctx.strokeStyle = t.mid;\n          ctx.beginPath(); ctx.moveTo(cx, cy); ctx.lineTo(A[0], A[1]); ctx.stroke();\n          ctx.beginPath(); ctx.moveTo(A[0], A[1]); ctx.lineTo(B[0], B[1]); ctx.stroke();\n          ctx.strokeStyle = t.fg;\n          [[A, B], [B, [cx, cy]], [[cx, cy], A]].forEach(function (pr) {\n            ctx.beginPath(); ctx.moveTo(mx, my); ctx.lineTo(pr[0][0], pr[0][1]); ctx.stroke();\n          });\n          var mAB = [(A[0] + B[0]) \/ 2, (A[1] + B[1]) \/ 2], mBc = [(B[0] + cx) \/ 2, (B[1] + cy) \/ 2], mCa = [(cx + A[0]) \/ 2, (cy + A[1]) \/ 2];\n          ctx.beginPath(); ctx.moveTo(mAB[0], mAB[1]); ctx.lineTo(mBc[0], mBc[1]); ctx.lineTo(mCa[0], mCa[1]); ctx.closePath(); ctx.stroke();\n        }\n      }\n    }\n  }\n  function shippo(t) {\n    var R = 21;\n    ctx.lineWidth = 1.2; ctx.strokeStyle = t.mid;\n    for (var y = 0; y < H + R; y += R) for (var x = 0; x < W + R; x += R) {\n      ctx.beginPath(); ctx.arc(x, y, R, 0, 7); ctx.stroke();\n    }\n    ctx.fillStyle = t.fg;\n    for (var y2 = 0; y2 < H + R; y2 += R) for (var x2 = 0; x2 < W + R; x2 += R) {\n      ctx.beginPath(); ctx.arc(x2, y2, 1.6, 0, 7); ctx.fill();\n    }\n  }\n  function ichimatsu(t) {\n    var s = 27;\n    for (var y = 0; y < H - 40; y += s) for (var x = 0; x < W; x += s) {\n      if (((x \/ s) + (y \/ s)) % 2 === 0) { ctx.fillStyle = t.fg; ctx.globalAlpha = .85; ctx.fillRect(x, y, s, s); }\n    }\n    ctx.globalAlpha = 1;\n    var s2 = 6.75, y0 = H - 40;\n    ctx.fillStyle = t.soft; ctx.fillRect(0, y0, W, 40);\n    for (var yy = y0; yy < H; yy += s2) for (var xx = 0; xx < W; xx += s2) {\n      if (((xx \/ s2) + ((yy - y0) \/ s2)) % 2 === 0) { ctx.fillStyle = t.fg; ctx.fillRect(xx, yy, s2, s2); }\n    }\n  }\n\n  function kikko(t) {\n    var R = 22, dx = Math.sqrt(3) * R, dy = 1.5 * R;\n    ctx.lineWidth = 1.2;\n    var row = 0;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y;\n        [1, .58].forEach(function (sc, i) {\n          ctx.beginPath();\n          for (var k = 0; k < 6; k++) {\n            var a = Math.PI \/ 3 * k - Math.PI \/ 2, px = cx + R * sc * Math.cos(a), py = cy + R * sc * Math.sin(a);\n            if (k === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py);\n          }\n          ctx.closePath();\n          ctx.strokeStyle = i === 0 ? t.fg : t.mid;\n          ctx.stroke();\n        });\n      }\n    }\n  }\n  function uroko(t) {\n    var s = 30, h = s * .87;\n    ctx.lineWidth = 1.2;\n    var row = 0;\n    for (var y = h; y < H + h; y += h, row++) {\n      for (var x = -s; x < W + s; x += s) {\n        ctx.beginPath();\n        ctx.moveTo(x, y); ctx.lineTo(x + s \/ 2, y - h); ctx.lineTo(x + s, y); ctx.closePath();\n        ctx.fillStyle = row % 2 ? t.bg : t.soft;\n        ctx.fill();\n        ctx.strokeStyle = t.fg;\n        ctx.stroke();\n      }\n    }\n  }\n  function same(t) {\n    var R = 18;\n    ctx.fillStyle = t.fg;\n    var rows = Math.ceil(H \/ (R * .62)) + 2;\n    for (var r = rows; r >= -1; r--) {\n      var y = r * R * .62 + R;\n      var off = (r % 2) * R;\n      for (var x = -R + off; x < W + R; x += R * 2) {\n        [1, .6].forEach(function (sc) {\n          var Rk = R * sc, stepA = 5.6 \/ Rk;\n          for (var a = Math.PI; a <= Math.PI * 2 + .001; a += stepA) {\n            ctx.beginPath(); ctx.arc(x + Rk * Math.cos(a), y + Rk * Math.sin(a), 1.35, 0, 7); ctx.fill();\n          }\n        });\n        ctx.beginPath(); ctx.arc(x, y, 1.35, 0, 7); ctx.fill();\n      }\n    }\n  }\n  function yagasuri(t) {\n    var w = 24, h = 46;\n    var row = 0;\n    for (var y = -h; y < H + h; y += h * .8, row++) {\n      for (var x = 0; x < W + w; x += w) {\n        var cx = x + (row % 2 ? w \/ 2 : 0), cy = y;\n        ctx.beginPath();\n        ctx.moveTo(cx, cy);\n        ctx.lineTo(cx + w * .4, cy + h * .34);\n        ctx.lineTo(cx + w * .13, cy + h * .34);\n        ctx.lineTo(cx + w * .13, cy + h);\n        ctx.lineTo(cx, cy + h * .7);\n        ctx.lineTo(cx - w * .13, cy + h);\n        ctx.lineTo(cx - w * .13, cy + h * .34);\n        ctx.lineTo(cx - w * .4, cy + h * .34);\n        ctx.closePath();\n        ctx.fillStyle = row % 2 ? t.mid : t.fg;\n        ctx.globalAlpha = .88;\n        ctx.fill();\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function kanoko(t) {\n    var s = 23;\n    var row = 0;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath(); ctx.arc(x, y, 8, 0, 7); ctx.strokeStyle = t.soft; ctx.lineWidth = 3.4; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, 4.4, 0, 7); ctx.strokeStyle = t.fg; ctx.lineWidth = 1.5; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, 1.5, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n      }\n    }\n  }\n  function hishi(t) {\n    var s = 25;\n    ctx.lineWidth = 1.1; ctx.strokeStyle = t.mid;\n    ctx.beginPath();\n    for (var d = -H; d < W + H; d += s) { ctx.moveTo(d, 0); ctx.lineTo(d + H, H); }\n    for (var d2 = 0; d2 < W + 2 * H; d2 += s) { ctx.moveTo(d2, 0); ctx.lineTo(d2 - H, H); }\n    ctx.stroke();\n    ctx.fillStyle = t.fg;\n    for (var gy = 0; gy <= H + s; gy += s) for (var gx = 0; gx <= W + s; gx += s) {\n      var px = gx + ((gy \/ s) % 2 ? 0 : 0), py = gy;\n      ctx.save(); ctx.translate(px, py); ctx.rotate(Math.PI \/ 4); ctx.fillRect(-2.1, -2.1, 4.2, 4.2); ctx.restore();\n    }\n  }\n  function sayagata(t) {\n    var s = 36, u = s \/ 4;\n    ctx.lineWidth = 2; ctx.strokeStyle = t.fg; ctx.lineCap = 'square';\n    function hook(x, y) {\n      ctx.beginPath();\n      ctx.moveTo(x, y + 3 * u); ctx.lineTo(x + 3 * u, y + 3 * u); ctx.lineTo(x + 3 * u, y + u); ctx.lineTo(x + u, y + u); ctx.lineTo(x + u, y + 2 * u); ctx.lineTo(x + 2 * u, y + 2 * u);\n      ctx.stroke();\n    }\n    for (var y = -s; y < H + s; y += s) {\n      for (var x = -s; x < W + s; x += s) {\n        hook(x, y);\n        hook(x + 2 * u, y + 2 * u);\n      }\n    }\n  }\n  function kagome(t) {\n    var d = 27, st = d * 1.155;\n    ctx.lineWidth = 1.3; ctx.strokeStyle = t.mid;\n    ctx.beginPath();\n    for (var y = 0; y <= H + d; y += d) { ctx.moveTo(0, y); ctx.lineTo(W, y); }\n    for (var x = -H; x < W + H; x += st) { ctx.moveTo(x, 0); ctx.lineTo(x + H * .577, H); }\n    for (var x2 = 0; x2 < W + 2 * H; x2 += st) { ctx.moveTo(x2, 0); ctx.lineTo(x2 - H * .577, H); }\n    ctx.stroke();\n  }\n  function karakusa(t) {\n    var s = 56;\n    ctx.lineWidth = 1.7; ctx.lineCap = 'round';\n    var row = 0;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2; x < W + s; x += s) {\n        var cx = x + (row % 2 ? s \/ 2 : 0), cy = y;\n        var flip = ((Math.round(cx \/ s) + row) % 2) ? -1 : 1;\n        ctx.strokeStyle = t.fg;\n        ctx.beginPath();\n        for (var a = 0; a <= Math.PI * 4.4; a += .3) {\n          var r = 1.5 + a * 1.28, px = cx + flip * r * Math.cos(a), py = cy + r * Math.sin(a);\n          if (a === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py);\n        }\n        ctx.stroke();\n        ctx.strokeStyle = t.mid;\n        ctx.beginPath();\n        if (flip > 0) ctx.arc(cx - s \/ 2, cy - s \/ 2, s * .4, 0, Math.PI \/ 2);\n        else ctx.arc(cx + s \/ 2, cy - s \/ 2, s * .4, Math.PI \/ 2, Math.PI);\n        ctx.stroke();\n      }\n    }\n  }\n  function ryusui(t) {\n    ctx.lineWidth = 1.5; ctx.lineCap = 'round';\n    var band = 42;\n    for (var r = 0; r * band < H + band; r++) {\n      var base = r * band + 12;\n      [0, 1, 2].forEach(function (k) {\n        ctx.beginPath();\n        ctx.strokeStyle = k === 1 ? t.mid : t.fg;\n        for (var x = 0; x <= W; x += 6) {\n          var y = base + k * 7 + Math.sin(x * .028 + r * 1.7 + k * 2.1) * 4.5;\n          if (x === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);\n        }\n        ctx.stroke();\n      });\n      var sx = ((r * 173) % Math.max(60, W - 40)) + 20;\n      [9.5, 6].forEach(function (rr) { ctx.beginPath(); ctx.arc(sx, base + 7, rr, .2, 5.9); ctx.strokeStyle = t.fg; ctx.stroke(); });\n    }\n  }\n  function tatewaku(t) {\n    ctx.lineWidth = 1.6;\n    for (var cx = -12; cx < W + 30; cx += 38) {\n      [0, 1].forEach(function (k) {\n        ctx.beginPath(); ctx.strokeStyle = k ? t.mid : t.fg;\n        for (var y = 0; y <= H; y += 6) {\n          var x = cx + k * 13 + Math.sin(y * .026 + k * Math.PI) * 6.5;\n          if (y === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);\n        }\n        ctx.stroke();\n      });\n    }\n  }\n  function yukwa(t) {\n    var sx = 66, sy = 58, row = 0;\n    for (var y = sy \/ 2; y < H + sy; y += sy, row++) {\n      for (var x = sx \/ 2 + (row % 2 ? sx \/ 2 : 0); x < W + sx; x += sx) {\n        ctx.lineWidth = 1.6; ctx.strokeStyle = t.fg;\n        ctx.beginPath(); ctx.arc(x, y, 15.5, 0, 7); ctx.stroke();\n        for (var k = 0; k < 6; k++) {\n          var a = Math.PI \/ 3 * k + Math.PI \/ 6, nx = x + 15.5 * Math.cos(a), ny = y + 15.5 * Math.sin(a);\n          ctx.beginPath(); ctx.arc(nx, ny, 4.6, a + Math.PI * .55, a + Math.PI * 1.45); ctx.stroke();\n        }\n        ctx.lineWidth = 1.1; ctx.strokeStyle = t.mid;\n        ctx.beginPath(); ctx.arc(x, y, 8.6, 0, 7); ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, 1.7, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n      }\n    }\n    ctx.fillStyle = t.mid;\n    for (var y2 = sy; y2 < H; y2 += sy) for (var x2 = sx; x2 < W; x2 += sx) { ctx.beginPath(); ctx.arc(x2, y2, 1.3, 0, 7); ctx.fill(); }\n  }\n  function ajiro(t) {\n    var w = 9, b = w * 3;\n    for (var by = 0; by < H + b; by += b) for (var bx = 0; bx < W + b; bx += b) {\n      var horiz = ((bx \/ b) + (by \/ b)) % 2 === 0;\n      for (var k = 0; k < 3; k++) {\n        ctx.fillStyle = t.soft; ctx.strokeStyle = t.mid; ctx.lineWidth = 1;\n        if (horiz) { ctx.fillRect(bx + 1, by + k * w + 1, b - 2, w - 2); ctx.strokeRect(bx + 1, by + k * w + 1, b - 2, w - 2); }\n        else { ctx.fillRect(bx + k * w + 1, by + 1, w - 2, b - 2); ctx.strokeRect(bx + k * w + 1, by + 1, w - 2, b - 2); }\n      }\n    }\n  }\n  function sankuzushi(t) {\n    var b = 39, bw = 7, gap = 6;\n    ctx.fillStyle = t.fg;\n    for (var by = 0; by < H + b; by += b) for (var bx = 0; bx < W + b; bx += b) {\n      var horiz = ((bx \/ b) + (by \/ b)) % 2 === 0;\n      ctx.globalAlpha = .85;\n      for (var k = 0; k < 3; k++) {\n        if (horiz) ctx.fillRect(bx + 2, by + 3 + k * (bw + gap), b - 4, bw);\n        else ctx.fillRect(bx + 3 + k * (bw + gap), by + 2, bw, b - 4);\n      }\n      ctx.globalAlpha = 1;\n    }\n  }\n  function higaki(t) {\n    var s = 38;\n    ctx.lineWidth = 1.2; ctx.strokeStyle = t.mid;\n    [-2.2, 2.2].forEach(function (o) {\n      ctx.beginPath();\n      for (var d = -H; d < W + H; d += s) { ctx.moveTo(d + o, 0); ctx.lineTo(d + H + o, H); }\n      for (var d2 = 0; d2 < W + 2 * H; d2 += s) { ctx.moveTo(d2 + o, 0); ctx.lineTo(d2 - H + o, H); }\n      ctx.stroke();\n    });\n  }\n  function hanabishi(t) {\n    var dx = 48, dy = 42, row = 0;\n    for (var y = dy \/ 2; y < H + dy; y += dy, row++) {\n      for (var x = dx \/ 2 + (row % 2 ? dx \/ 2 : 0); x < W + dx; x += dx) {\n        ctx.beginPath();\n        ctx.moveTo(x, y - 19); ctx.lineTo(x + 22, y); ctx.lineTo(x, y + 19); ctx.lineTo(x - 22, y); ctx.closePath();\n        ctx.strokeStyle = t.fg; ctx.lineWidth = 1.4; ctx.stroke();\n        ctx.strokeStyle = t.mid; ctx.lineWidth = 1.1;\n        for (var k = 0; k < 4; k++) {\n          var a = Math.PI \/ 2 * k, ex = x + 8.5 * Math.cos(a), ey = y + 8.5 * Math.sin(a);\n          ctx.beginPath(); ctx.ellipse(ex, ey, k % 2 ? 3.4 : 4.6, k % 2 ? 4.6 : 3.4, 0, 0, 7); ctx.stroke();\n        }\n        ctx.beginPath(); ctx.arc(x, y, 1.6, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n      }\n    }\n  }\n  function watsunagi(t) {\n    var R = 16, st = 27, row = 0;\n    for (var y = 0; y < H + R; y += st, row++) {\n      for (var x = (row % 2 ? st \/ 2 : 0); x < W + R; x += st) {\n        ctx.beginPath(); ctx.arc(x, y, R, 0, 7); ctx.strokeStyle = t.mid; ctx.lineWidth = 1.3; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, R - 3.4, 0, 7); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function bishamon(t) {\n    var R = 25, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    ctx.lineWidth = 1.2;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y, v = [];\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2; v.push([cx + R * Math.cos(a), cy + R * Math.sin(a)]); }\n        ctx.beginPath();\n        v.forEach(function (p, i) { if (i === 0) ctx.moveTo(p[0], p[1]); else ctx.lineTo(p[0], p[1]); });\n        ctx.closePath(); ctx.strokeStyle = t.fg; ctx.stroke();\n        ctx.strokeStyle = t.mid;\n        [0, 2, 4].forEach(function (k2) { ctx.beginPath(); ctx.moveTo(cx, cy); ctx.lineTo(v[k2][0], v[k2][1]); ctx.stroke(); });\n        ctx.fillStyle = t.mid;\n        v.forEach(function (p, i) {\n          if (i % 2) return;\n          var a2 = Math.PI \/ 3 * i - Math.PI \/ 2, tx = cx + (R + 5) * Math.cos(a2), ty = cy + (R + 5) * Math.sin(a2);\n          ctx.beginPath();\n          ctx.moveTo(tx, ty);\n          ctx.lineTo(tx + 5 * Math.cos(a2 + 2.2), ty + 5 * Math.sin(a2 + 2.2));\n          ctx.lineTo(tx + 5 * Math.cos(a2 - 2.2), ty + 5 * Math.sin(a2 - 2.2));\n          ctx.closePath(); ctx.fill();\n        });\n      }\n    }\n  }\n  function tatenami(t) {\n    var R = 44;\n    ctx.lineWidth = 2.4;\n    var row = 0;\n    for (var y = R * .4; y < H + R; y += R * .78, row++) {\n      for (var x = -R + (row % 2 ? R : 0); x < W + R; x += R * 2) {\n        [1, .68, .38].forEach(function (sc, i) {\n          ctx.beginPath(); ctx.arc(x, y, R * sc, Math.PI * 1.08, Math.PI * 1.92);\n          ctx.strokeStyle = i ? t.mid : t.fg; ctx.stroke();\n        });\n        ctx.beginPath(); ctx.arc(x + R * .8, y - R * .52, 3.4, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n      }\n    }\n  }\n  function kanzemizu(t) {\n    var s = 96;\n    ctx.lineWidth = 2.1; ctx.lineCap = 'round';\n    var row = 0;\n    for (var y = s \/ 2; y < H + s; y += s * .82, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.strokeStyle = t.fg;\n        ctx.beginPath();\n        for (var a = 0; a <= Math.PI * 3.7; a += .25) {\n          var r = 1 + a * 2.5, px = x + r * Math.cos(a), py = y + r * Math.sin(a);\n          if (a === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py);\n        }\n        ctx.stroke();\n      }\n      ctx.strokeStyle = t.mid; ctx.lineWidth = 1.4;\n      ctx.beginPath();\n      for (var x2 = 0; x2 <= W; x2 += 6) { var y2 = y + s * .42 + Math.sin(x2 * .03 + row * 2) * 4; if (x2 === 0) ctx.moveTo(x2, y2); else ctx.lineTo(x2, y2); }\n      ctx.stroke(); ctx.lineWidth = 2.1;\n    }\n  }\n  function genjigumo(t) {\n    var bh = 46;\n    ctx.lineWidth = 1.4;\n    for (var r = 0; r * bh < H + bh; r++) {\n      var y = r * bh + 26, off = (r % 2) * 52;\n      for (var x = -60 + off; x < W + 60; x += 118) {\n        ctx.beginPath();\n        ctx.moveTo(x, y);\n        ctx.lineTo(x + 96, y);\n        ctx.arc(x + 84, y, 12, 0, Math.PI, true);\n        ctx.arc(x + 58, y, 14, 0, Math.PI, true);\n        ctx.arc(x + 30, y, 15, 0, Math.PI, true);\n        ctx.arc(x + 10, y, 10, 0, Math.PI, true);\n        ctx.closePath();\n        ctx.fillStyle = t.soft; ctx.fill();\n        ctx.strokeStyle = t.fg; ctx.stroke();\n        ctx.beginPath();\n        for (var a = 0; a <= Math.PI * 2.6; a += .3) { var rr = 1 + a * 1.5, px = x + 97 + rr * Math.cos(a), py = y - 2 + rr * Math.sin(a); if (a === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n        ctx.strokeStyle = t.mid; ctx.stroke();\n      }\n    }\n  }\n  function kasumi(t) {\n    var bh = 34;\n    ctx.fillStyle = t.mid;\n    for (var r = 0; r * bh < H + bh; r++) {\n      var y = r * bh + 10, off = (r % 2) * 64;\n      for (var x = -70 + off; x < W + 70; x += 128) {\n        ctx.globalAlpha = .5;\n        ctx.beginPath(); ctx.roundRect(x, y, 92, 9, 4.5); ctx.fill();\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function kumo(t) {\n    var R = 17;\n    ctx.lineWidth = 1.4;\n    var row = 0;\n    for (var y = R; y < H + R * 2; y += R * 1.15, row++) {\n      for (var x = -R + (row % 2 ? R : 0); x < W + R; x += R * 2) {\n        ctx.beginPath(); ctx.arc(x, y, R, Math.PI, 0); ctx.strokeStyle = t.fg; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, R * .58, Math.PI, 0); ctx.strokeStyle = t.mid; ctx.stroke();\n      }\n    }\n  }\n  function ame(t) {\n    ctx.lineWidth = 1.2; ctx.strokeStyle = t.mid; ctx.lineCap = 'round';\n    for (var gy = 8; gy < H + 40; gy += 44) {\n      for (var gx = 0; gx < W + 40; gx += 46) {\n        for (var k = 0; k < 4; k++) {\n          var x = gx + k * 7;\n          ctx.beginPath(); ctx.moveTo(x, gy); ctx.lineTo(x - 7, gy + 27); ctx.stroke();\n        }\n      }\n    }\n  }\n  function yanagi(t) {\n    ctx.lineWidth = 1.3; ctx.lineCap = 'round';\n    for (var gx = 10; gx < W + 30; gx += 42) {\n      for (var k = 0; k < 4; k++) {\n        var x0 = gx + k * 8;\n        ctx.strokeStyle = t.fg;\n        ctx.beginPath();\n        for (var y = -4; y <= H + 4; y += 6) { var xx = x0 + Math.sin(y * .045 + gx * 1.3 + k * 1.7) * 3.2; if (y === -4) ctx.moveTo(xx, y); else ctx.lineTo(xx, y); }\n        ctx.stroke();\n        ctx.strokeStyle = t.mid;\n        for (var y2 = 10 + (k % 2) * 6; y2 < H; y2 += 13) {\n          var xx2 = x0 + Math.sin(y2 * .045 + gx * 1.3 + k * 1.7) * 3.2;\n          ctx.beginPath(); ctx.moveTo(xx2, y2); ctx.lineTo(xx2 + (k % 2 ? 4.8 : -4.8), y2 + 4.6); ctx.stroke();\n        }\n      }\n    }\n  }\n  function raimon(t) {\n    var s = 36;\n    ctx.lineWidth = 2.6; ctx.strokeStyle = t.fg; ctx.lineJoin = 'miter';\n    for (var y = 0; y < H + s; y += s) for (var x = 0; x < W + s; x += s) {\n      ctx.beginPath();\n      ctx.moveTo(x + 3, y + 33); ctx.lineTo(x + 33, y + 33); ctx.lineTo(x + 33, y + 3); ctx.lineTo(x + 11, y + 3); ctx.lineTo(x + 11, y + 25); ctx.lineTo(x + 25, y + 25); ctx.lineTo(x + 25, y + 11); ctx.lineTo(x + 17, y + 11);\n      ctx.stroke();\n    }\n  }\n  function kojitsunagi(t) {\n    var s = 34;\n    ctx.lineWidth = 4.4; ctx.strokeStyle = t.fg; ctx.lineCap = 'square';\n    var row = 0;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2; x < W + s; x += s) {\n        var rot = ((Math.round(x \/ s) + row) % 2) * Math.PI \/ 2;\n        ctx.save(); ctx.translate(x, y); ctx.rotate(rot);\n        ctx.beginPath();\n        ctx.moveTo(-13, -11); ctx.lineTo(13, -11);\n        ctx.moveTo(-13, 11); ctx.lineTo(13, 11);\n        ctx.moveTo(0, -11); ctx.lineTo(0, 11);\n        ctx.stroke(); ctx.restore();\n      }\n    }\n  }\n  function manjitsunagi(t) {\n    var s = 35;\n    ctx.lineWidth = 2.4; ctx.strokeStyle = t.fg; ctx.lineCap = 'square';\n    for (var y = s \/ 2; y < H + s; y += s) for (var x = s \/ 2; x < W + s; x += s) {\n      for (var k = 0; k < 4; k++) {\n        ctx.save(); ctx.translate(x, y); ctx.rotate(Math.PI \/ 2 * k);\n        ctx.beginPath(); ctx.moveTo(0, 0); ctx.lineTo(11.5, 0); ctx.lineTo(11.5, 8.5); ctx.stroke();\n        ctx.restore();\n      }\n    }\n  }\n  function igeta(t) {\n    ctx.strokeStyle = t.fg; ctx.lineWidth = 3;\n    ctx.beginPath();\n    for (var x = 23; x < W + 46; x += 46) { ctx.moveTo(x - 5, 0); ctx.lineTo(x - 5, H); ctx.moveTo(x + 5, 0); ctx.lineTo(x + 5, H); }\n    for (var y = 23; y < H + 46; y += 46) { ctx.moveTo(0, y - 5); ctx.lineTo(W, y - 5); ctx.moveTo(0, y + 5); ctx.lineTo(W, y + 5); }\n    ctx.stroke();\n  }\n  function mansuji(t) {\n    ctx.lineWidth = 1;\n    for (var x = 0; x < W; x += 5) {\n      ctx.beginPath(); ctx.moveTo(x, 0); ctx.lineTo(x, H);\n      ctx.strokeStyle = x % 25 === 0 ? t.fg : t.mid; ctx.stroke();\n    }\n  }\n  function komochijima(t) {\n    for (var x = 0; x < W + 38; x += 38) {\n      ctx.fillStyle = t.soft; ctx.fillRect(x, 0, 17, H);\n      ctx.fillStyle = t.fg; ctx.fillRect(x + 7, 0, 3, H);\n      ctx.fillStyle = t.mid; ctx.fillRect(x + 26, 0, 1.4, H);\n    }\n  }\n  function yamaji(t) {\n    ctx.lineWidth = 2; ctx.lineJoin = 'miter';\n    var row = 0;\n    for (var y = 10; y < H + 18; y += 18, row++) {\n      ctx.beginPath(); ctx.strokeStyle = row % 2 ? t.mid : t.fg;\n      for (var x = 0; x <= W + 16; x += 16) {\n        var yy = y + (((x \/ 16) + row) % 2 ? -6.5 : 6.5);\n        if (x === 0) ctx.moveTo(x, yy); else ctx.lineTo(x, yy);\n      }\n      ctx.stroke();\n    }\n  }\n  function arare(t) {\n    function R(n) { var v = Math.sin(n * 127.1) * 43758.5453; return v - Math.floor(v); }\n    for (var i = 0; i < 215; i++) {\n      var x = R(i * 2 + 1) * W, y = R(i * 2 + 2) * H, r = .8 + R(i * 3 + 5) * 2.7;\n      ctx.beginPath(); ctx.arc(x, y, r, 0, 7);\n      ctx.fillStyle = R(i * 5) > .35 ? t.fg : t.mid;\n      ctx.globalAlpha = .55 + R(i * 7) * .45;\n      ctx.fill(); ctx.globalAlpha = 1;\n    }\n  }\n  function hyoretsu(t) {\n    function R(n) { var v = Math.sin(n * 91.7) * 24634.63; return v - Math.floor(v); }\n    ctx.lineWidth = 1.1; ctx.strokeStyle = t.mid;\n    for (var gx = 0; gx <= W + 26; gx += 26) {\n      ctx.beginPath();\n      for (var y = 0; y <= H; y += 30) { var x = gx + (R(gx * 3 + y) - .5) * 11; if (y === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); }\n      ctx.stroke();\n    }\n    for (var gy = 0; gy <= H + 26; gy += 26) {\n      ctx.beginPath();\n      for (var x2 = 0; x2 <= W; x2 += 30) { var y2 = gy + (R(gy * 5 + x2) - .5) * 11; if (x2 === 0) ctx.moveTo(x2, y2); else ctx.lineTo(x2, y2); }\n      ctx.stroke();\n    }\n  }\n  function jujigasuri(t) {\n    var s = 34, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.globalAlpha = .9;\n        ctx.fillRect(x - 2.2, y - 9.5, 4.4, 19);\n        ctx.fillRect(x - 9.5, y - 2.2, 19, 4.4);\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function igasuri(t) {\n    var s = 38, row = 0;\n    ctx.lineWidth = 1.8; ctx.strokeStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath();\n        ctx.moveTo(x - 5, y - 10); ctx.lineTo(x - 5, y + 10);\n        ctx.moveTo(x + 5, y - 10); ctx.lineTo(x + 5, y + 10);\n        ctx.moveTo(x - 10, y - 5); ctx.lineTo(x + 10, y - 5);\n        ctx.moveTo(x - 10, y + 5); ctx.lineTo(x + 10, y + 5);\n        ctx.stroke();\n      }\n    }\n  }\n  function fundotsunagi(t) {\n    var s = 27, row = 0;\n    ctx.lineWidth = 1.5; ctx.strokeStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.save(); ctx.translate(x, y); ctx.rotate(((Math.round(x \/ s) + row) % 2) * Math.PI \/ 2);\n        ctx.beginPath();\n        ctx.moveTo(0, -13);\n        ctx.bezierCurveTo(8, -13, 8, -3, 0, 0);\n        ctx.bezierCurveTo(8, 3, 8, 13, 0, 13);\n        ctx.bezierCurveTo(-8, 13, -8, 3, 0, 0);\n        ctx.bezierCurveTo(-8, -3, -8, -13, 0, -13);\n        ctx.closePath(); ctx.stroke(); ctx.restore();\n      }\n    }\n  }\n  function kusari(t) {\n    var s = 27, row = 0;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2; x < W + s; x += s) {\n        var rot = ((Math.round(x \/ s) + row) % 2) * Math.PI \/ 2;\n        ctx.beginPath(); ctx.ellipse(x, y, 12, 7.5, rot, 0, 7); ctx.strokeStyle = t.fg; ctx.lineWidth = 1.6; ctx.stroke();\n        ctx.beginPath(); ctx.ellipse(x, y, 8.4, 4.4, rot, 0, 7); ctx.strokeStyle = t.mid; ctx.lineWidth = 1.1; ctx.stroke();\n      }\n    }\n  }\n  function matsukawabishi(t) {\n    var sx = 42;\n    ctx.lineWidth = 1.3;\n    for (var x = sx \/ 2; x < W + sx; x += sx) {\n      var off = (Math.round(x \/ sx) % 2) * 8;\n      for (var y = -6 + off; y < H + 16; y += 15.5) {\n        ctx.beginPath();\n        ctx.moveTo(x, y - 13.5); ctx.lineTo(x + 8.5, y); ctx.lineTo(x, y + 13.5); ctx.lineTo(x - 8.5, y); ctx.closePath();\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function takedabishi(t) {\n    var s = 54, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        [[-9.8, -9.8], [9.8, -9.8], [-9.8, 9.8], [9.8, 9.8]].forEach(function (o) {\n          ctx.beginPath();\n          ctx.moveTo(x + o[0], y + o[1] - 9.8); ctx.lineTo(x + o[0] + 9.8, y + o[1]); ctx.lineTo(x + o[0], y + o[1] + 9.8); ctx.lineTo(x + o[0] - 9.8, y + o[1]);\n          ctx.closePath(); ctx.globalAlpha = .88; ctx.fill(); ctx.globalAlpha = 1;\n        });\n        ctx.beginPath(); ctx.arc(x, y, 1.8, 0, 7); ctx.fill();\n      }\n    }\n  }\n  function mitsubishi(t) {\n    var s = 54, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        [[0, -11.5], [-11.5, 9], [11.5, 9]].forEach(function (o) {\n          ctx.beginPath();\n          ctx.moveTo(x + o[0], y + o[1] - 10.5); ctx.lineTo(x + o[0] + 10.5, y + o[1]); ctx.lineTo(x + o[0], y + o[1] + 10.5); ctx.lineTo(x + o[0] - 10.5, y + o[1]);\n          ctx.closePath(); ctx.globalAlpha = .88; ctx.fill(); ctx.globalAlpha = 1;\n        });\n      }\n    }\n  }\n  function kenhanabishi(t) {\n    var s = 58, row = 0;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath();\n        ctx.moveTo(x, y - 20); ctx.lineTo(x + 23, y); ctx.lineTo(x, y + 20); ctx.lineTo(x - 23, y); ctx.closePath();\n        ctx.strokeStyle = t.fg; ctx.lineWidth = 1.4; ctx.stroke();\n        ctx.strokeStyle = t.mid; ctx.lineWidth = 1.1;\n        for (var k = 0; k < 4; k++) {\n          var a = Math.PI \/ 2 * k;\n          ctx.beginPath(); ctx.ellipse(x + 10 * Math.cos(a), y + 10 * Math.sin(a), k % 2 ? 3 : 7.5, k % 2 ? 7.5 : 3, 0, 0, 7); ctx.stroke();\n          ctx.beginPath(); ctx.moveTo(x, y); ctx.lineTo(x + 19 * Math.cos(a + Math.PI \/ 4), y + 19 * Math.sin(a + Math.PI \/ 4)); ctx.stroke();\n        }\n        ctx.save(); ctx.translate(x, y); ctx.rotate(Math.PI \/ 4); ctx.fillStyle = t.fg; ctx.fillRect(-2.6, -2.6, 5.2, 5.2); ctx.restore();\n      }\n    }\n  }\n  function nijukikko(t) {\n    var R = 23, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    ctx.lineWidth = 1.15;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y;\n        [1, .79, .55].forEach(function (sc, i) {\n          ctx.beginPath();\n          for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2, px = cx + R * sc * Math.cos(a), py = cy + R * sc * Math.sin(a); if (k === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n          ctx.closePath(); ctx.strokeStyle = i === 1 ? t.mid : t.fg; ctx.stroke();\n        });\n      }\n    }\n  }\n  function kikkohanabishi(t) {\n    var R = 24, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y;\n        ctx.beginPath();\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2, px = cx + R * Math.cos(a), py = cy + R * Math.sin(a); if (k === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n        ctx.closePath(); ctx.strokeStyle = t.fg; ctx.lineWidth = 1.3; ctx.stroke();\n        ctx.strokeStyle = t.mid; ctx.lineWidth = 1.05;\n        for (var k2 = 0; k2 < 4; k2++) {\n          var a2 = Math.PI \/ 2 * k2, ex = cx + 6.4 * Math.cos(a2), ey = cy + 6.4 * Math.sin(a2);\n          ctx.beginPath(); ctx.ellipse(ex, ey, k2 % 2 ? 2.8 : 4, k2 % 2 ? 4 : 2.8, 0, 0, 7); ctx.stroke();\n        }\n        ctx.beginPath(); ctx.arc(cx, cy, 1.5, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n      }\n    }\n  }\n  function hanashippo(t) {\n    var R = 20;\n    ctx.lineWidth = 1.2; ctx.strokeStyle = t.mid;\n    for (var y = 0; y < H + R; y += R) for (var x = 0; x < W + R; x += R) { ctx.beginPath(); ctx.arc(x, y, R, 0, 7); ctx.stroke(); }\n    for (var y2 = 0; y2 < H + R; y2 += R) for (var x2 = 0; x2 < W + R; x2 += R) {\n      for (var k = 0; k < 4; k++) {\n        var a = Math.PI \/ 2 * k + Math.PI \/ 4;\n        ctx.beginPath(); ctx.arc(x2 + 4.4 * Math.cos(a), y2 + 4.4 * Math.sin(a), 3.2, 0, 7); ctx.fillStyle = t.mid; ctx.fill();\n      }\n      ctx.beginPath(); ctx.arc(x2, y2, 1.4, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n    }\n  }\n  function amime(t) {\n    var st = 29.7;\n    ctx.lineWidth = 1.15; ctx.strokeStyle = t.mid;\n    ctx.beginPath();\n    for (var d = -H; d < W + H; d += st) { ctx.moveTo(d, 0); ctx.lineTo(d + H, H); }\n    for (var d2 = 0; d2 < W + 2 * H; d2 += st) { ctx.moveTo(d2, 0); ctx.lineTo(d2 - H, H); }\n    ctx.stroke();\n    ctx.strokeStyle = t.fg; ctx.lineWidth = 1.2;\n    for (var gy = 0; gy <= H + st; gy += st \/ 2) for (var gx = 0; gx <= W + st; gx += st \/ 2) {\n      var ix = Math.round(gx \/ (st \/ 2)), iy = Math.round(gy \/ (st \/ 2));\n      if ((ix + iy) % 2) continue;\n      ctx.beginPath(); ctx.arc(gx, gy, 2.7, 0, 7); ctx.stroke();\n    }\n  }\n  function kakutoshi(t) {\n    var s = 13.5, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) ctx.fillRect(x - 2.3, y - 2.3, 4.6, 4.6);\n    }\n  }\n  function ishigaki(t) {\n    var bw = 47, bh = 22, row = 0;\n    ctx.lineWidth = 1.2;\n    for (var y = 0; y < H + bh; y += bh, row++) {\n      for (var x = -bw + (row % 2 ? bw \/ 2 : 0); x < W + bw; x += bw) {\n        ctx.beginPath(); ctx.roundRect(x + 1.6, y + 1.6, bw - 3.2, bh - 3.2, 6);\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function takegaki(t) {\n    ctx.lineWidth = 1.5; ctx.strokeStyle = t.fg;\n    ctx.beginPath();\n    for (var x = 4; x < W + 13; x += 13) { ctx.moveTo(x, 0); ctx.lineTo(x, H); ctx.moveTo(x + 6, 0); ctx.lineTo(x + 6, H); }\n    ctx.stroke();\n    for (var ty = 20; ty < H; ty += 76) {\n      ctx.fillStyle = t.soft; ctx.fillRect(0, ty, W, 9);\n      ctx.strokeStyle = t.fg; ctx.lineWidth = 1.2; ctx.strokeRect(-2, ty, W + 4, 9);\n      ctx.fillStyle = t.fg;\n      for (var kx = 10; kx < W; kx += 26) { ctx.beginPath(); ctx.arc(kx, ty + 4.5, 1.7, 0, 7); ctx.fill(); }\n      ctx.lineWidth = 1.5;\n    }\n  }\n  function senbongoshi(t) {\n    ctx.lineWidth = 1; ctx.strokeStyle = t.mid;\n    ctx.beginPath();\n    for (var x = 0; x < W; x += 7) { ctx.moveTo(x, 0); ctx.lineTo(x, H); }\n    ctx.stroke();\n    ctx.fillStyle = t.fg;\n    for (var x2 = 0; x2 < W + 49; x2 += 49) ctx.fillRect(x2 - 1.3, 0, 2.6, H);\n    for (var y = 0; y < H + 49; y += 49) ctx.fillRect(0, y - 1.3, W, 2.6);\n  }\n  function hakarakusa(t) {\n    var bh = 46;\n    ctx.lineWidth = 1.5; ctx.lineCap = 'round';\n    for (var r = 0; r * bh < H + bh; r++) {\n      var base = r * bh + 24;\n      ctx.strokeStyle = t.fg;\n      ctx.beginPath();\n      for (var x = 0; x <= W; x += 6) { var y = base + Math.sin(x * .05 + r * 2.2) * 5; if (x === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); }\n      ctx.stroke();\n      for (var x2 = 16 + (r % 2) * 22; x2 < W; x2 += 44) {\n        var y2 = base + Math.sin(x2 * .05 + r * 2.2) * 5, up = ((x2 \/ 44 + r) % 2) === 0;\n        ctx.beginPath(); ctx.ellipse(x2, y2 + (up ? -8 : 8), 3.8, 8, up ? -.5 : .5 + Math.PI, 0, 7);\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function noshi(t) {\n    ctx.save();\n    ctx.translate(W \/ 2, H \/ 2); ctx.rotate(-.42); ctx.translate(-W \/ 2, -H \/ 2);\n    for (var y = -60; y < H + 120; y += 36) {\n      ctx.beginPath(); ctx.rect(-60, y, W + 120, 15);\n      ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.lineWidth = 1.2; ctx.stroke();\n      ctx.beginPath(); ctx.moveTo(-60, y + 5); ctx.lineTo(W + 60, y + 5); ctx.moveTo(-60, y + 10); ctx.lineTo(W + 60, y + 10);\n      ctx.strokeStyle = t.mid; ctx.stroke();\n      ctx.beginPath(); ctx.moveTo(-46, y); ctx.lineTo(-32, y + 15); ctx.lineTo(-46, y + 15); ctx.closePath();\n      ctx.fillStyle = t.fg; ctx.globalAlpha = .75; ctx.fill(); ctx.globalAlpha = 1;\n    }\n    ctx.restore();\n  }\n  function tabanenoshi(t) {\n    var sx = 56;\n    ctx.lineWidth = 1.4; ctx.lineCap = 'round';\n    for (var x = sx \/ 2; x < W + sx; x += sx) {\n      var col = Math.round(x \/ sx);\n      [-4.5, 0, 4.5].forEach(function (o) {\n        ctx.beginPath(); ctx.strokeStyle = t.fg;\n        for (var y = 0; y <= H; y += 6) { var xx = x + o + Math.sin(y * .05 + col * 2 + o) * 1.6; if (y === 0) ctx.moveTo(xx, y); else ctx.lineTo(xx, y); }\n        ctx.stroke();\n      });\n      var ky = 30 + (col % 2) * 52;\n      ctx.fillStyle = t.fg; ctx.fillRect(x - 8, ky, 16, 6.5);\n      ctx.fillStyle = t.mid; ctx.fillRect(x - 8, ky + 34, 16, 6.5);\n    }\n  }\n  function maruuroko(t) {\n    var R = 15;\n    ctx.lineWidth = 1.25;\n    var row = 0;\n    for (var y = 6; y < H + R; y += R * .88, row++) {\n      for (var x = -R + (row % 2 ? R : 0); x < W + R; x += R * 2) {\n        ctx.beginPath(); ctx.arc(x, y, R, 0, 7);\n        ctx.fillStyle = row % 2 ? t.bg : t.soft; ctx.fill();\n        ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function dandigai(t) {\n    var w = 37, h = 24, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = 0; y < H + h; y += h, row++) {\n      for (var x = -w + (row % 2 ? w \/ 2 : 0); x < W + w; x += w) {\n        if ((Math.round(x \/ w) + row) % 2) continue;\n        ctx.globalAlpha = .92; ctx.fillRect(x + .75, y + .75, w - 1.5, h - 1.5); ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function ishidatami(t) {\n    var s = 36, row = 0;\n    ctx.lineWidth = 1.2;\n    for (var y = 0; y < H + s; y += s, row++) {\n      for (var x = 0; x < W + s; x += s) {\n        var dark = (Math.round(x \/ s) + row) % 2;\n        ctx.fillStyle = dark ? t.fg : t.bg;\n        ctx.globalAlpha = dark ? .92 : 1;\n        ctx.fillRect(x, y, s, s); ctx.globalAlpha = 1;\n        ctx.strokeStyle = dark ? t.bg : t.fg;\n        ctx.strokeRect(x + 5, y + 5, s - 10, s - 10);\n      }\n    }\n  }\n  function koshi(t) {\n    ctx.strokeStyle = t.fg; ctx.lineWidth = 1.5;\n    ctx.beginPath();\n    for (var x = 0; x <= W; x += 24) { ctx.moveTo(x, 0); ctx.lineTo(x, H); }\n    for (var y = 0; y <= H; y += 24) { ctx.moveTo(0, y); ctx.lineTo(W, y); }\n    ctx.stroke();\n  }\n  function nanamegoshi(t) {\n    var st = 34;\n    ctx.lineWidth = 1.3; ctx.strokeStyle = t.fg;\n    ctx.beginPath();\n    for (var d = -H; d < W + H; d += st) { ctx.moveTo(d, 0); ctx.lineTo(d + H, H); }\n    for (var d2 = 0; d2 < W + 2 * H; d2 += st) { ctx.moveTo(d2, 0); ctx.lineTo(d2 - H, H); }\n    ctx.stroke();\n  }\n  function yotsumeami(t) {\n    var s = 31, row = 0;\n    ctx.lineWidth = 1.3;\n    for (var y = 0; y < H + s; y += s, row++) {\n      for (var x = 0; x < W + s; x += s) {\n        var alt = (Math.round(x \/ s) + row) % 2;\n        ctx.fillStyle = t.soft; ctx.fillRect(x + 1, y + 1, s - 2, s - 2);\n        ctx.strokeStyle = t.fg;\n        ctx.strokeRect(x + 1, y + 1, s - 2, s - 2);\n        ctx.strokeStyle = t.mid;\n        if (alt) { ctx.strokeRect(x + 7, y - 3, s - 14, s + 6); } else { ctx.strokeRect(x - 3, y + 7, s + 6, s - 14); }\n      }\n    }\n  }\n  function goma(t) {\n    ctx.fillStyle = t.fg;\n    var row = 0;\n    for (var y = 5; y < H + 8; y += 9, row++) {\n      for (var x = 5 + (row % 2 ? 4.5 : 0); x < W + 8; x += 9) {\n        ctx.beginPath(); ctx.arc(x, y, 1.35, 0, 7); ctx.globalAlpha = .8; ctx.fill(); ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function chidorigoshi(t) {\n    var s = 18, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = 0; y < H + s * 2; y += s * 2, row++) {\n      for (var x = 0; x < W + s * 2; x += s * 2) {\n        var cx = x + (row % 2 ? s : 0);\n        ctx.globalAlpha = .92;\n        ctx.fillRect(cx, y, s, s);\n        ctx.beginPath();\n        ctx.moveTo(cx + s, y + s * .45); ctx.lineTo(cx + s * 1.55, y + s); ctx.lineTo(cx + s, y + s * 1.55); ctx.lineTo(cx + s * .45, y + s);\n        ctx.closePath(); ctx.fill();\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function sensuji(t) {\n    ctx.lineWidth = 1;\n    for (var gx = 0; gx < W + 34; gx += 34) {\n      for (var k = 0; k < 6; k++) {\n        var x = gx + k * 3.4;\n        ctx.beginPath(); ctx.moveTo(x, 0); ctx.lineTo(x, H);\n        ctx.strokeStyle = k === 0 ? t.fg : t.mid; ctx.stroke();\n      }\n    }\n  }\n  function koshijima(t) {\n    ctx.globalAlpha = .55;\n    ctx.fillStyle = t.mid;\n    for (var x = 0; x < W + 32; x += 32) ctx.fillRect(x, 0, 15, H);\n    for (var y = 0; y < H + 32; y += 32) ctx.fillRect(0, y, W, 15);\n    ctx.globalAlpha = 1;\n  }\n  function dandan(t) {\n    var bh = 21;\n    for (var r = 0; r * bh < H + bh; r++) {\n      var off = (r * 23) % 69;\n      for (var x = -69 + off; x < W + 69; x += 69) {\n        ctx.fillStyle = r % 2 ? t.soft : t.mid;\n        ctx.globalAlpha = r % 2 ? 1 : .6;\n        ctx.fillRect(x, r * bh + 1.5, 66, bh - 3);\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function hishigasane(t) {\n    var row = 0;\n    ctx.lineWidth = 1.3; ctx.strokeStyle = t.fg;\n    for (var y = 14; y < H + 28; y += 27, row++) {\n      for (var x = -18 + (row % 2 ? 15 : 0); x < W + 30; x += 30) {\n        ctx.beginPath();\n        ctx.moveTo(x, y - 13); ctx.lineTo(x + 17, y); ctx.lineTo(x, y + 13); ctx.lineTo(x - 17, y); ctx.closePath();\n        ctx.stroke();\n      }\n    }\n  }\n  function irekobishi(t) {\n    var sx = 34, sy = 30, row = 0;\n    ctx.lineWidth = 1.15;\n    for (var y = sy \/ 2; y < H + sy; y += sy, row++) {\n      for (var x = sx \/ 2 + (row % 2 ? sx \/ 2 : 0); x < W + sx; x += sx) {\n        [1, .66, .36].forEach(function (sc, i) {\n          ctx.beginPath();\n          ctx.moveTo(x, y - 13 * sc); ctx.lineTo(x + 15 * sc, y); ctx.lineTo(x, y + 13 * sc); ctx.lineTo(x - 15 * sc, y); ctx.closePath();\n          ctx.strokeStyle = i === 1 ? t.mid : t.fg; ctx.stroke();\n        });\n      }\n    }\n  }\n  function suimon(t) {\n    ctx.lineCap = 'round';\n    for (var r = 0; r * 16 < H + 16; r++) {\n      var base = r * 16 + 8;\n      ctx.beginPath(); ctx.strokeStyle = r % 2 ? t.mid : t.fg; ctx.lineWidth = r % 2 ? 1.2 : 1.7;\n      for (var x = 0; x <= W; x += 6) { var y = base + Math.sin(x * .028 + r * 1.3) * 4.6; if (x === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); }\n      ctx.stroke();\n    }\n  }\n  function kikkogasuri(t) {\n    var s = 32, row = 0;\n    ctx.lineWidth = 2.6; ctx.strokeStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath();\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2, px = x + 10.5 * Math.cos(a), py = y + 10.5 * Math.sin(a); if (k === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n        ctx.closePath(); ctx.stroke();\n      }\n    }\n  }\n  function takeami(t) {\n    var s = 25, row = 0;\n    ctx.lineWidth = 1.15;\n    for (var y = 0; y < H + s; y += s, row++) {\n      for (var x = 0; x < W + s; x += s) {\n        var horiz = (Math.round(x \/ s) + row) % 2 === 0;\n        ctx.beginPath();\n        if (horiz) ctx.roundRect(x + 1, y + s \/ 2 - 6.5, s - 2, 13, 6);\n        else ctx.roundRect(x + s \/ 2 - 6.5, y + 1, 13, s - 2, 6);\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function sankakugoshi(t) {\n    var h = 22, st = h * 1.732;\n    ctx.lineWidth = 1.25; ctx.strokeStyle = t.fg;\n    ctx.beginPath();\n    for (var y = 0; y <= H; y += h) { ctx.moveTo(0, y); ctx.lineTo(W, y); }\n    for (var d = -H; d < W + H; d += st) { ctx.moveTo(d, 0); ctx.lineTo(d + H * .577, H); }\n    for (var d2 = 0; d2 < W + 2 * H; d2 += st) { ctx.moveTo(d2, 0); ctx.lineTo(d2 - H * .577, H); }\n    ctx.stroke();\n  }\n  function kasaneshikaku(t) {\n    var s = 32, row = 0;\n    ctx.lineWidth = 1.2;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.strokeStyle = t.fg;\n        ctx.strokeRect(x - 11, y - 11, 22, 22);\n        ctx.save(); ctx.translate(x, y); ctx.rotate(Math.PI \/ 4); ctx.strokeStyle = t.mid; ctx.strokeRect(-11, -11, 22, 22); ctx.restore();\n      }\n    }\n  }\n  function uzutsunagi(t) {\n    var sx = 37, sy = 40, row = 0;\n    ctx.lineWidth = 1.6; ctx.lineCap = 'round'; ctx.strokeStyle = t.fg;\n    for (var y = sy \/ 2; y < H + sy; y += sy, row++) {\n      for (var x = sx \/ 2 + (row % 2 ? sx \/ 2 : 0); x < W + sx; x += sx) {\n        ctx.beginPath();\n        for (var a = 0; a <= Math.PI * 4.4; a += .24) {\n          var r = .7 + a * 1.28, px = x + r * Math.cos(a), py = y + r * Math.sin(a);\n          if (a === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py);\n        }\n        ctx.stroke();\n        ctx.beginPath(); ctx.arc(x + sx \/ 2, y - 6, sx \/ 2 - 4, Math.PI * 1.15, Math.PI * 1.85); ctx.strokeStyle = t.mid; ctx.stroke();\n        ctx.strokeStyle = t.fg;\n      }\n    }\n  }\n  function mizutama(t) {\n    var s = 31, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath(); ctx.arc(x, y, 5.2, 0, 7); ctx.globalAlpha = .88; ctx.fill(); ctx.globalAlpha = 1;\n        ctx.beginPath(); ctx.arc(x + s \/ 2, y + (row % 2 ? 0 : s \/ 2), 2.1, 0, 7); ctx.fillStyle = t.mid; ctx.fill(); ctx.fillStyle = t.fg;\n      }\n    }\n  }\n  function futojima(t) {\n    for (var x = 0; x < W + 36; x += 36) {\n      ctx.fillStyle = t.fg; ctx.globalAlpha = .92; ctx.fillRect(x, 0, 17, H); ctx.globalAlpha = 1;\n      ctx.fillStyle = t.mid; ctx.fillRect(x + 22, 0, 1.6, H); ctx.fillRect(x + 26.5, 0, 1.6, H);\n    }\n  }\n  function nanameichimatsu(t) {\n    ctx.save();\n    ctx.translate(W \/ 2, H \/ 2); ctx.rotate(Math.PI \/ 4); ctx.translate(-W \/ 2, -H \/ 2);\n    var s = 23;\n    ctx.fillStyle = t.fg;\n    for (var y = -W; y < H + W; y += s) {\n      for (var x = -W; x < W * 2; x += s) {\n        if ((Math.round(x \/ s) + Math.round(y \/ s)) % 2) continue;\n        ctx.globalAlpha = .92; ctx.fillRect(x, y, s, s); ctx.globalAlpha = 1;\n      }\n    }\n    ctx.restore();\n  }\n  function midareishigaki(t) {\n    function R(n) { var v = Math.sin(n * 47.3) * 12345.67; return v - Math.floor(v); }\n    var bh = 22, row = 0;\n    ctx.lineWidth = 1.2;\n    for (var y = 0; y < H + bh; y += bh, row++) {\n      var x = -8 - R(row * 3) * 20;\n      var k = 0;\n      while (x < W + 10) {\n        var wdt = 30 + R(row * 31 + k * 7) * 30;\n        ctx.beginPath(); ctx.roundRect(x + 1.6, y + 1.6, wdt - 3.2, bh - 3.2, 6);\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n        x += wdt; k++;\n      }\n    }\n  }\n  function kasanesankaku(t) {\n    var s = 31, hh = s * .866;\n    ctx.lineWidth = 1.25; ctx.strokeStyle = t.fg;\n    var row = 0;\n    for (var y = 4; y < H + hh; y += hh, row++) {\n      for (var x = -s + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.beginPath();\n        ctx.moveTo(x, y + hh); ctx.lineTo(x + s \/ 2, y); ctx.lineTo(x + s, y + hh); ctx.closePath(); ctx.stroke();\n        ctx.beginPath();\n        ctx.moveTo(x + s \/ 2, y); ctx.lineTo(x + s, y + hh); ctx.lineTo(x, y + hh); ctx.closePath();\n        ctx.strokeStyle = t.mid; ctx.stroke(); ctx.strokeStyle = t.fg;\n      }\n    }\n  }\n  function mikazuki(t) {\n    var sx = 40, sy = 38, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = sy \/ 2; y < H + sy; y += sy, row++) {\n      for (var x = sx \/ 2 + (row % 2 ? sx \/ 2 : 0); x < W + sx; x += sx) {\n        var dir = row % 2 ? -1 : 1;\n        ctx.beginPath();\n        ctx.arc(x, y, 11.5, 0, 7);\n        ctx.fill();\n        ctx.beginPath();\n        ctx.arc(x + dir * 5, y - 2.5, 9.4, 0, 7);\n        ctx.fillStyle = t.bg; ctx.fill(); ctx.fillStyle = t.fg;\n      }\n    }\n  }\n  function kakutsunagi(t) {\n    var s = 30, row = 0;\n    ctx.lineWidth = 1.5; ctx.strokeStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2 + (row % 2 ? s \/ 2 : 0); x < W + s; x += s) {\n        ctx.strokeRect(x - 10, y - 10, 20, 20);\n        ctx.save(); ctx.translate(x + s \/ 2, y + s \/ 2); ctx.rotate(Math.PI \/ 4); ctx.strokeStyle = t.mid; ctx.strokeRect(-6, -6, 12, 12); ctx.restore();\n        ctx.strokeStyle = t.fg;\n      }\n    }\n  }\n  function ayaori(t) {\n    var s = 6;\n    ctx.fillStyle = t.fg;\n    for (var y = 0; y < H; y += s) {\n      for (var x = 0; x < W; x += s) {\n        var m = ((Math.round(x \/ s) - Math.round(y \/ s)) % 4 + 4) % 4;\n        if (m < 2) { ctx.globalAlpha = .75; ctx.fillRect(x, y, s, s); ctx.globalAlpha = 1; }\n      }\n    }\n  }\n  function sorobandama(t) {\n    ctx.lineWidth = 1.3;\n    for (var y = 18; y < H + 30; y += 31) {\n      ctx.beginPath(); ctx.moveTo(0, y); ctx.lineTo(W, y); ctx.strokeStyle = t.mid; ctx.stroke();\n      for (var x = 14; x < W + 26; x += 27) {\n        ctx.beginPath();\n        ctx.moveTo(x - 10.5, y); ctx.lineTo(x - 4, y - 6.5); ctx.lineTo(x + 4, y - 6.5); ctx.lineTo(x + 10.5, y); ctx.lineTo(x + 4, y + 6.5); ctx.lineTo(x - 4, y + 6.5); ctx.closePath();\n        ctx.fillStyle = t.soft; ctx.fill(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function kikkokuzushi(t) {\n    var R = 22, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    ctx.lineWidth = 1.25; ctx.strokeStyle = t.fg;\n    for (var y = -R; y < H + R * 2; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0);\n        var cy = y + ((Math.round(x \/ dx) % 2) ? R * .38 : 0);\n        ctx.beginPath();\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2, px = cx + R * Math.cos(a), py = cy + R * Math.sin(a); if (k === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n        ctx.closePath(); ctx.stroke();\n      }\n    }\n  }\n  function wagasane(t) {\n    var row = 0;\n    ctx.lineWidth = 1.3;\n    for (var y = 16; y < H + 28; y += 27, row++) {\n      for (var x = -12 + (row % 2 ? 12 : 0); x < W + 24; x += 24) {\n        ctx.beginPath(); ctx.arc(x, y, 15, 0, 7); ctx.strokeStyle = t.fg; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, 10.5, 0, 7); ctx.strokeStyle = t.mid; ctx.stroke();\n      }\n    }\n  }\n  function yokojima(t) {\n    for (var y = 0; y < H + 30; y += 30) {\n      ctx.fillStyle = t.soft; ctx.fillRect(0, y, W, 15);\n      ctx.fillStyle = t.mid; ctx.fillRect(0, y + 19, W, 1.6); ctx.fillRect(0, y + 23.5, W, 1.6);\n    }\n  }\n  function sakurakumiko(t) {\n    var R = 23, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    ctx.lineWidth = 1.15;\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) {\n        var cx = x + (row % 2 ? dx \/ 2 : 0), cy = y;\n        var v = [];\n        for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2; v.push([cx + R * Math.cos(a), cy + R * Math.sin(a)]); }\n        ctx.strokeStyle = t.fg;\n        ctx.beginPath();\n        v.forEach(function (p, i) { if (i === 0) ctx.moveTo(p[0], p[1]); else ctx.lineTo(p[0], p[1]); });\n        ctx.closePath(); ctx.stroke();\n        ctx.strokeStyle = t.mid;\n        for (var k2 = 0; k2 < 3; k2++) {\n          ctx.beginPath(); ctx.moveTo(v[k2 * 2][0], v[k2 * 2][1]); ctx.lineTo(v[k2 * 2 + 3 > 5 ? k2 * 2 - 3 : k2 * 2 + 3][0], v[k2 * 2 + 3 > 5 ? k2 * 2 - 3 : k2 * 2 + 3][1]); ctx.stroke();\n        }\n        ctx.beginPath();\n        for (var k3 = 0; k3 < 6; k3++) { var a3 = Math.PI \/ 3 * k3, px = cx + R * .42 * Math.cos(a3), py = cy + R * .42 * Math.sin(a3); if (k3 === 0) ctx.moveTo(px, py); else ctx.lineTo(px, py); }\n        ctx.closePath(); ctx.strokeStyle = t.fg; ctx.stroke();\n      }\n    }\n  }\n  function chigaitatewaku(t) {\n    ctx.lineWidth = 1.6;\n    var xs = [0];\n    var widths = [15, 27];\n    var acc = 0, wi = 0;\n    while (acc < W + 40) { acc += widths[wi % 2]; xs.push(acc); wi++; }\n    xs.forEach(function (cx, i) {\n      [0, 1].forEach(function (k) {\n        ctx.beginPath(); ctx.strokeStyle = k ? t.mid : t.fg;\n        for (var y = 0; y <= H; y += 6) {\n          var x = cx + 6 + k * (widths[i % 2] * .42) + Math.sin(y * .026 + k * Math.PI + i) * 5.4;\n          if (y === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);\n        }\n        ctx.stroke();\n      });\n    });\n  }\n  function chigaibishi(t) {\n    var s = 31, row = 0;\n    ctx.fillStyle = t.fg;\n    for (var y = s \/ 2; y < H + s; y += s, row++) {\n      for (var x = s \/ 2; x < W + s; x += s) {\n        var big = (Math.round(x \/ s) + row) % 2 === 0, r = big ? 12.5 : 6.5;\n        ctx.beginPath();\n        ctx.moveTo(x, y - r); ctx.lineTo(x + r, y); ctx.lineTo(x, y + r); ctx.lineTo(x - r, y); ctx.closePath();\n        ctx.globalAlpha = big ? .92 : .6; ctx.fill(); ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function kasanegoshi(t) {\n    ctx.lineWidth = 1;\n    [0, 9].forEach(function (off, oi) {\n      ctx.strokeStyle = oi ? t.mid : t.fg;\n      ctx.beginPath();\n      for (var x = off; x <= W + 18; x += 18) { ctx.moveTo(x, 0); ctx.lineTo(x, H); }\n      for (var y = off; y <= H + 18; y += 18) { ctx.moveTo(0, y); ctx.lineTo(W, y); }\n      ctx.stroke();\n    });\n    ctx.fillStyle = t.fg;\n    for (var gy = 0; gy <= H; gy += 18) for (var gx = 0; gx <= W; gx += 18) { ctx.beginPath(); ctx.arc(gx, gy, 1.3, 0, 7); ctx.fill(); }\n  }\n  function nanameyagasuri(t) {\n    ctx.save();\n    ctx.translate(W \/ 2, H \/ 2); ctx.rotate(-Math.PI \/ 5); ctx.translate(-W \/ 2, -H \/ 2);\n    var w = 24, h = 46, row = 0;\n    for (var y = -H; y < H * 2 + h; y += h * .8, row++) {\n      for (var x = -W * .5; x < W * 1.5 + w; x += w) {\n        var cx = x + (row % 2 ? w \/ 2 : 0), cy = y;\n        ctx.beginPath();\n        ctx.moveTo(cx, cy);\n        ctx.lineTo(cx + w * .4, cy + h * .34);\n        ctx.lineTo(cx + w * .13, cy + h * .34);\n        ctx.lineTo(cx + w * .13, cy + h);\n        ctx.lineTo(cx, cy + h * .7);\n        ctx.lineTo(cx - w * .13, cy + h);\n        ctx.lineTo(cx - w * .13, cy + h * .34);\n        ctx.lineTo(cx - w * .4, cy + h * .34);\n        ctx.closePath();\n        ctx.fillStyle = row % 2 ? t.mid : t.fg;\n        ctx.globalAlpha = .88; ctx.fill(); ctx.globalAlpha = 1;\n      }\n    }\n    ctx.restore();\n  }\n  function tsurugoshi(t) {\n    ctx.lineWidth = 1.35; ctx.strokeStyle = t.fg;\n    for (var gx = 0; gx <= W + 26; gx += 26) {\n      ctx.beginPath();\n      for (var y = 0; y <= H; y += 6) { var x = gx + Math.sin(y * .05 + gx) * 3; if (y === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); }\n      ctx.stroke();\n    }\n    ctx.strokeStyle = t.mid;\n    for (var gy = 0; gy <= H + 26; gy += 26) {\n      ctx.beginPath();\n      for (var x2 = 0; x2 <= W; x2 += 6) { var y2 = gy + Math.sin(x2 * .05 + gy * 1.7) * 3; if (x2 === 0) ctx.moveTo(x2, y2); else ctx.lineTo(x2, y2); }\n      ctx.stroke();\n    }\n  }\n  function kasumigasane(t) {\n    var bh = 46;\n    ctx.fillStyle = t.mid;\n    for (var r = 0; r * bh < H + bh; r++) {\n      var off = (r % 2) * 64;\n      for (var x = -70 + off; x < W + 70; x += 128) {\n        ctx.globalAlpha = .5;\n        ctx.beginPath(); ctx.roundRect(x, r * bh + 8, 92, 8.5, 4.25); ctx.fill();\n        ctx.beginPath(); ctx.roundRect(x + 14, r * bh + 21, 92, 8.5, 4.25); ctx.fill();\n        ctx.globalAlpha = 1;\n      }\n    }\n  }\n  function kumogasane(t) {\n    var R = 17, row = 0;\n    ctx.lineWidth = 1.35;\n    for (var y = R + 4; y < H + R * 2; y += R * 1.12, row++) {\n      for (var x = -R + (row % 2 ? R : 0); x < W + R; x += R * 2) {\n        ctx.beginPath();\n        ctx.arc(x, y, R, Math.PI, 0);\n        ctx.lineTo(x + R, y + 5); ctx.lineTo(x - R, y + 5); ctx.closePath();\n        ctx.fillStyle = row % 2 ? t.bg : t.soft; ctx.fill();\n        ctx.strokeStyle = t.fg; ctx.stroke();\n        ctx.beginPath(); ctx.arc(x, y, R * .58, Math.PI, 0); ctx.strokeStyle = t.mid; ctx.stroke();\n      }\n    }\n  }\n  function futogoshi(t) {\n    ctx.fillStyle = t.fg;\n    for (var x = 0; x < W + 36; x += 36) ctx.fillRect(x - 2.6, 0, 5.2, H);\n    for (var y = 0; y < H + 36; y += 36) ctx.fillRect(0, y - 2.6, W, 5.2);\n    ctx.fillStyle = t.bg;\n    for (var gy = 0; gy <= H; gy += 36) for (var gx = 0; gx <= W; gx += 36) ctx.fillRect(gx - 1.4, gy - 1.4, 2.8, 2.8);\n  }\n  function ichimatsujima(t) {\n    var bw = 54, s = 13.5;\n    ctx.fillStyle = t.fg;\n    for (var bx = 0; bx < W + bw; bx += bw) {\n      for (var y = 0; y < H + s; y += s) {\n        for (var x = bx; x < bx + bw; x += s) {\n          if ((Math.round(x \/ s) + Math.round(y \/ s)) % 2) continue;\n          ctx.globalAlpha = .92; ctx.fillRect(x, y, s, s); ctx.globalAlpha = 1;\n        }\n      }\n      ctx.fillStyle = t.mid; ctx.fillRect(bx + bw - 1, 0, 2, H); ctx.fillStyle = t.fg;\n    }\n  }\n  function irekoasanoha(t) {\n    var R = 25, dx = Math.sqrt(3) * R, dy = 1.5 * R, row = 0;\n    ctx.lineWidth = 1.05;\n    function leaf(cx, cy, r, inner) {\n      var v = [];\n      for (var k = 0; k < 6; k++) { var a = Math.PI \/ 3 * k - Math.PI \/ 2; v.push([cx + r * Math.cos(a), cy + r * Math.sin(a)]); }\n      for (var k2 = 0; k2 < 6; k2++) {\n        var A = v[k2], B = v[(k2 + 1) % 6];\n        var mx = (A[0] + B[0] + cx) \/ 3, my = (A[1] + B[1] + cy) \/ 3;\n        ctx.strokeStyle = t.mid;\n        ctx.beginPath(); ctx.moveTo(A[0], A[1]); ctx.lineTo(B[0], B[1]); ctx.stroke();\n        ctx.beginPath(); ctx.moveTo(cx, cy); ctx.lineTo(A[0], A[1]); ctx.stroke();\n        ctx.strokeStyle = t.fg;\n        ctx.beginPath(); ctx.moveTo(mx, my); ctx.lineTo(A[0], A[1]); ctx.stroke();\n        ctx.beginPath(); ctx.moveTo(mx, my); ctx.lineTo(B[0], B[1]); ctx.stroke();\n        ctx.beginPath(); ctx.moveTo(mx, my); ctx.lineTo(cx, cy); ctx.stroke();\n      }\n      if (inner) leaf(cx, cy, r * .52, false);\n    }\n    for (var y = -R; y < H + R; y += dy, row++) {\n      for (var x = -dx; x < W + dx; x += dx) leaf(x + (row % 2 ? dx \/ 2 : 0), y, R, true);\n    }\n  }\n  function irekoshippo(t) {\n    var R = 20;\n    ctx.lineWidth = 1.2; ctx.strokeStyle = t.mid;\n    for (var y = 0; y < H + R; y += R) for (var x = 0; x < W + R; x += R) { ctx.beginPath(); ctx.arc(x, y, R, 0, 7); ctx.stroke(); }\n    ctx.strokeStyle = t.fg; ctx.lineWidth = 1.1;\n    for (var y2 = 0; y2 < H + R; y2 += R) for (var x2 = 0; x2 < W + R; x2 += R) {\n      ctx.beginPath(); ctx.arc(x2, y2, 5.2, 0, 7); ctx.stroke();\n      ctx.beginPath(); ctx.arc(x2, y2, 1.5, 0, 7); ctx.fillStyle = t.fg; ctx.fill();\n    }\n    ctx.strokeStyle = t.mid;\n    for (var y3 = R \/ 2; y3 < H + R; y3 += R) for (var x3 = R \/ 2; x3 < W + R; x3 += R) {\n      ctx.beginPath(); ctx.arc(x3, y3, 2.8, 0, 7); ctx.stroke();\n    }\n  }\n  function draw() {\n    var TONES = tones();\n    var t = TONES[effTone()];\n    var tb = root.querySelector('[data-wag-tone]');\n    if (tb) tb.textContent = 'Tone: ' + t.name;\n    W = canvas.clientWidth; H = canvas.clientHeight;\n    canvas.width = W * DPR; canvas.height = H * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0);\n    ctx.fillStyle = t.bg; ctx.fillRect(0, 0, W, H);\n    ({ seigaiha: seigaiha, asanoha: asanoha, shippo: shippo, ichimatsu: ichimatsu, kikko: kikko, uroko: uroko, same: same, yagasuri: yagasuri, kanoko: kanoko, hishi: hishi, sayagata: sayagata, kagome: kagome, karakusa: karakusa, ryusui: ryusui, tatewaku: tatewaku, yukwa: yukwa, ajiro: ajiro, sankuzushi: sankuzushi, higaki: higaki, hanabishi: hanabishi, watsunagi: watsunagi, bishamon: bishamon, tatenami: tatenami, kanzemizu: kanzemizu, genjigumo: genjigumo, kasumi: kasumi, kumo: kumo, ame: ame, yanagi: yanagi, raimon: raimon, kojitsunagi: kojitsunagi, manjitsunagi: manjitsunagi, igeta: igeta, mansuji: mansuji, komochijima: komochijima, yamaji: yamaji, arare: arare, hyoretsu: hyoretsu, jujigasuri: jujigasuri, igasuri: igasuri, fundotsunagi: fundotsunagi, kusari: kusari, matsukawabishi: matsukawabishi, takedabishi: takedabishi, mitsubishi: mitsubishi, kenhanabishi: kenhanabishi, nijukikko: nijukikko, kikkohanabishi: kikkohanabishi, hanashippo: hanashippo, amime: amime, kakutoshi: kakutoshi, ishigaki: ishigaki, takegaki: takegaki, senbongoshi: senbongoshi, hakarakusa: hakarakusa, noshi: noshi, tabanenoshi: tabanenoshi, maruuroko: maruuroko, dandigai: dandigai, ishidatami: ishidatami, koshi: koshi, nanamegoshi: nanamegoshi, yotsumeami: yotsumeami, goma: goma, chidorigoshi: chidorigoshi, sensuji: sensuji, koshijima: koshijima, dandan: dandan, hishigasane: hishigasane, irekobishi: irekobishi, suimon: suimon, kikkogasuri: kikkogasuri, takeami: takeami, sankakugoshi: sankakugoshi, kasaneshikaku: kasaneshikaku, uzutsunagi: uzutsunagi, mizutama: mizutama, futojima: futojima, nanameichimatsu: nanameichimatsu, midareishigaki: midareishigaki, kasanesankaku: kasanesankaku, mikazuki: mikazuki, kakutsunagi: kakutsunagi, ayaori: ayaori, sorobandama: sorobandama, kikkokuzushi: kikkokuzushi, wagasane: wagasane, yokojima: yokojima, sakurakumiko: sakurakumiko, chigaitatewaku: chigaitatewaku, chigaibishi: chigaibishi, kasanegoshi: kasanegoshi, nanameyagasuri: nanameyagasuri, tsurugoshi: tsurugoshi, kasumigasane: kasumigasane, kumogasane: kumogasane, futogoshi: futogoshi, ichimatsujima: ichimatsujima, irekoasanoha: irekoasanoha, irekoshippo: irekoshippo })[pattern](t);\n    cap.textContent = CAPS[pattern];\n  }\n  root.querySelectorAll('[data-wag-p]').forEach(function (b) {\n    b.addEventListener('click', function () {\n      root.querySelectorAll('[data-wag-p]').forEach(function (x) { x.classList.remove('on'); });\n      b.classList.add('on');\n      pattern = b.getAttribute('data-wag-p');\n      draw();\n    });\n  });\n  root.querySelector('[data-wag-tone]').addEventListener('click', function () { picked = (effTone() + 1) % 3; draw(); });\n  var search = root.querySelector('.k-wag-search'), count = root.querySelector('.k-wag-count'), none = root.querySelector('.k-wag-none');\n  var pbtns = Array.prototype.slice.call(root.querySelectorAll('[data-wag-p]'));\n  function applyFilter() {\n    var q = (search.value || '').trim().toLowerCase(), shown = 0;\n    pbtns.forEach(function (b) {\n      var slug = b.getAttribute('data-wag-p');\n      var hay = (slug + ' ' + b.textContent + ' ' + (CAPS[slug] || '')).toLowerCase();\n      var hit = !q || q.split(\/\\s+\/).every(function (w) { return hay.indexOf(w) !== -1; });\n      b.hidden = !hit;\n      if (hit) shown++;\n    });\n    count.textContent = q ? shown + ' \/ ' + pbtns.length : pbtns.length + ' patterns';\n    if (none) none.hidden = shown !== 0;\n  }\n  if (search) { search.addEventListener('input', applyFilter); applyFilter(); }\n  window.addEventListener('resize', draw);\n  new MutationObserver(function () { if (picked === null) draw(); }).observe(document.body, { attributes: true, subtree: true, attributeFilter: ['data-theme'] });\n  draw();\n});\n"},{"path":"components\/wagara\/example.html","type":"registry:component","content":"<!-- KATA wagara 1.1.0 \u2014 kata-ui.dev\/components\/wagara \u2014 requires mold >= 2 -->\n<div class=\"k-wag\" data-wag>\n  <div class=\"k-wag-stage\"><canvas aria-hidden=\"true\"><\/canvas><\/div>\n  <div class=\"k-wag-tools\">\n    <input class=\"k-wag-search\" type=\"search\" placeholder=\"Search patterns \u2014 \\u6ce2, wave, hemp\\u2026\" aria-label=\"Search patterns\">\n    <span class=\"k-wag-count\" aria-live=\"polite\"><\/span>\n    <button class=\"k-wag-btn k-wag-tone\" type=\"button\" data-wag-tone>Tone: Paper<\/button>\n  <\/div>\n  <div class=\"k-wag-bar\" role=\"group\" aria-label=\"Pattern\">\n    <button class=\"k-wag-btn on\" type=\"button\" data-wag-p=\"seigaiha\">\u9752\u6d77\u6ce2<small>Seigaiha<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"asanoha\">\u9ebb\u306e\u8449<small>Asanoha<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"shippo\">\u4e03\u5b9d<small>Shippo<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ichimatsu\">\u5e02\u677e<small>Ichimatsu<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kikko\">\u4e80\u7532<small>Kikko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"uroko\">\u9c57<small>Uroko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"same\">\u9bab\u5c0f\u7d0b<small>Same<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yagasuri\">\u77e2\u7d63<small>Yagasuri<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kanoko\">\u9e7f\u306e\u5b50<small>Kanoko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hishi\">\u83f1<small>Hishi<\/small><\/button>\n        <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sayagata\">\u7d17\u7dbe\u5f62<small>Sayagata<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kagome\">\u7c60\u76ee<small>Kagome<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"karakusa\">\u5510\u8349<small>Karakusa<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ryusui\">\u6d41\u6c34<small>Ryusui<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"tatewaku\">\u7acb\u6d8c<small>Tatewaku<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yukwa\">\u96ea\u8f2a<small>Yukwa<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ajiro\">\u7db2\u4ee3<small>Ajiro<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sankuzushi\">\u4e09\u5d29\u3057<small>Sankuzushi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"higaki\">\u6a9c\u57a3<small>Higaki<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hanabishi\">\u82b1\u83f1<small>Hanabishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"watsunagi\">\u8f2a\u7e4b\u304e<small>Watsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"bishamon\">\u6bd8\u6c99\u9580\u4e80\u7532<small>Bishamon<\/small><\/button>\n        <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"tatenami\">\u7acb\u6ce2<small>Tatenami<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kanzemizu\">\u89b3\u4e16\u6c34<small>Kanzemizu<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"genjigumo\">\u6e90\u6c0f\u96f2<small>Genjigumo<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kasumi\">\u971e<small>Kasumi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kumo\">\u96f2<small>Kumo<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ame\">\u96e8<small>Ame<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yanagi\">\u67f3<small>Yanagi<\/small><\/button>\n        <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"raimon\">\u96f7\u7d0b<small>Raimon<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kojitsunagi\">\u5de5\u5b57\u7e4b\u304e<small>Kojitsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"manjitsunagi\">\u534d\u7e4b\u304e<small>Manjitsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"igeta\">\u4e95\u6841<small>Igeta<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"mansuji\">\u4e07\u7b4b<small>Mansuji<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"komochijima\">\u5b50\u6301\u3061\u7e1e<small>Komochijima<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yamaji\">\u5c71\u8def<small>Yamaji<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"arare\">\u9730<small>Arare<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hyoretsu\">\u6c37\u88c2<small>Hyoretsu<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"jujigasuri\">\u5341\u5b57\u7d63<small>Jujigasuri<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"igasuri\">\u4e95\u7d63<small>Igasuri<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"fundotsunagi\">\u5206\u9285\u7e4b\u304e<small>Fundotsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kusari\">\u9396\u7e4b\u304e<small>Kusari<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"matsukawabishi\">\u677e\u76ae\u83f1<small>Matsukawabishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"takedabishi\">\u6b66\u7530\u83f1<small>Takedabishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"mitsubishi\">\u4e09\u3064\u83f1<small>Mitsubishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kenhanabishi\">\u5263\u82b1\u83f1<small>Kenhanabishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"nijukikko\">\u4e8c\u91cd\u4e80\u7532<small>Nijukikko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kikkohanabishi\">\u4e80\u7532\u82b1\u83f1<small>Kikkohanabishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hanashippo\">\u82b1\u4e03\u5b9d<small>Hanashippo<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"amime\">\u7db2\u76ee<small>Amime<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kakutoshi\">\u89d2\u901a\u3057<small>Kakutoshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ishigaki\">\u77f3\u57a3<small>Ishigaki<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"takegaki\">\u7af9\u57a3<small>Takegaki<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"senbongoshi\">\u5343\u672c\u683c\u5b50<small>Senbongoshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hakarakusa\">\u8449\u5510\u8349<small>Hakarakusa<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"noshi\">\u71a8\u6597<small>Noshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"tabanenoshi\">\u675f\u306d\u71a8\u6597<small>Tabane Noshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"maruuroko\">\u4e38\u9c57<small>Maru Uroko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"dandigai\">\u6bb5\u9055\u3044\u5e02\u677e<small>Dandigai Ichimatsu<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ishidatami\">\u77f3\u7573<small>Ishidatami<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"koshi\">\u683c\u5b50<small>Koshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"nanamegoshi\">\u659c\u683c\u5b50<small>Naname Goshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yotsumeami\">\u56db\u3064\u76ee\u7de8\u307f<small>Yotsume Ami<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"goma\">\u80e1\u9ebb<small>Goma<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"chidorigoshi\">\u5343\u9ce5\u683c\u5b50<small>Chidorigoshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sensuji\">\u5343\u7b4b<small>Sensuji<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"koshijima\">\u683c\u5b50\u7e1e<small>Koshijima<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"dandan\">\u6bb5\u3005<small>Dandan<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"hishigasane\">\u83f1\u91cd\u306d<small>Hishigasane<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"irekobishi\">\u5165\u308c\u5b50\u83f1<small>Ireko Bishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"suimon\">\u6c34\u7d0b<small>Suimon<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kikkogasuri\">\u4e80\u7532\u7d63<small>Kikko Gasuri<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"takeami\">\u7af9\u7de8\u307f<small>Takeami<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sankakugoshi\">\u4e09\u89d2\u683c\u5b50<small>Sankaku Goshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kasaneshikaku\">\u91cd\u306d\u56db\u89d2<small>Kasane Shikaku<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"uzutsunagi\">\u6e26\u7e4b\u304e<small>Uzu Tsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"mizutama\">\u6c34\u7389<small>Mizutama<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"futojima\">\u592a\u7e1e<small>Futojima<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"nanameichimatsu\">\u659c\u3081\u5e02\u677e<small>Naname Ichimatsu<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"midareishigaki\">\u4e71\u308c\u77f3\u57a3<small>Midare Ishigaki<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kasanesankaku\">\u91cd\u306d\u4e09\u89d2<small>Kasane Sankaku<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"mikazuki\">\u4e09\u65e5\u6708<small>Mikazuki<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kakutsunagi\">\u89d2\u7e4b\u304e<small>Kaku Tsunagi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ayaori\">\u7dbe\u7e54<small>Ayaori<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sorobandama\">\u7b97\u76e4\u73e0<small>Soroban Dama<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kikkokuzushi\">\u4e80\u7532\u5d29\u3057<small>Kikko Kuzushi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"wagasane\">\u8f2a\u91cd\u306d<small>Wagasane<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"yokojima\">\u6a2a\u7e1e<small>Yokojima<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"sakurakumiko\">\u685c\u7d44\u5b50<small>Sakura Kumiko<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"chigaitatewaku\">\u9055\u3044\u7acb\u6d8c<small>Chigai Tatewaku<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"chigaibishi\">\u9055\u3044\u83f1<small>Chigai Bishi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kasanegoshi\">\u91cd\u306d\u683c\u5b50<small>Kasane Goshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"nanameyagasuri\">\u659c\u3081\u77e2\u7d63<small>Naname Yagasuri<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"tsurugoshi\">\u8513\u683c\u5b50<small>Tsuru Goshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kasumigasane\">\u971e\u91cd\u306d<small>Kasumi Gasane<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"kumogasane\">\u96f2\u91cd\u306d<small>Kumo Gasane<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"futogoshi\">\u592a\u683c\u5b50<small>Futo Goshi<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"ichimatsujima\">\u5e02\u677e\u7e1e<small>Ichimatsu Jima<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"irekoasanoha\">\u5165\u308c\u5b50\u9ebb\u306e\u8449<small>Ireko Asanoha<\/small><\/button>\n    <button class=\"k-wag-btn\" type=\"button\" data-wag-p=\"irekoshippo\">\u5165\u308c\u5b50\u4e03\u5b9d<small>Ireko Shippo<\/small><\/button>\n  <\/div>\n  <p class=\"k-wag-none\" hidden>No pattern matches \\u2014 try \\u6ce2 or \\u2018hemp\\u2019.<\/p>\n  <p class=\"k-wag-cap\">Seigaiha \u2014 blue ocean waves.<\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"Patterns are drawn in code \u2014 each has a period and a logic. Search the picker by name or motif; the caption under the canvas tells each pattern's story.","accessibility":"Pattern is texture: the canvas is aria-hidden and any text over it must pass contrast on the flat tone color alone, pattern removed. Under prefers-reduced-motion nothing changes \u2014 patterns were always still."},"audit":{"id":"components\/wagara","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"app-shell","type":"registry:block","title":"App Shell","description":"The frame most apps live in: a sidebar that stays, a topbar that orients, content that changes.","categories":["Blocks"],"dependencies":["avatar","badge","breadcrumbs","button","separator","stat"],"files":[{"path":"blocks\/app-shell\/app-shell.css","type":"registry:block","content":"\/* KATA app-shell 1.1.0 \u2014 kata-ui.dev\/blocks\/app-shell \u2014 requires mold >= 4 *\/\n.shell{display:grid;grid-template-columns:216px 1fr;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;background:var(--k-bg);font-family:var(--k-font);color:var(--k-ink);text-align:start;width:100%}\n.shell-side{border-inline-end:1px solid var(--k-line);background:var(--k-bg-soft);padding:var(--k-space-4) var(--k-space-3);display:flex;flex-direction:column}\n.shell-brand{display:flex;align-items:center;gap:var(--k-space-2);font-size:var(--k-text-md);font-weight:600;padding:var(--k-space-0-5) var(--k-space-2) var(--k-space-3)}\n.shell-nav{display:grid;gap:var(--k-space-0-5)}\n.shell-item{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);font-size:var(--k-text-base);letter-spacing:.01em;color:var(--k-ink-2);text-decoration:none;cursor:pointer}\n.shell-item:hover{background:var(--k-bg)}\n.shell-item.on{background:var(--k-bg);color:var(--k-ink);font-weight:550;border:1px solid var(--k-line)}\n.shell-item.on svg{color:var(--k-core)}\n.shell-item .badge{margin-inline-start:auto}\n.shell-user{margin-top:auto;display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-2) var(--k-space-0-5);border-top:1px solid var(--k-line)}\n.shell-uname{font-size:var(--k-text-base);font-weight:550;line-height:var(--k-lh-heading)}\n.shell-urole{font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.shell-main{padding:var(--k-space-4) var(--k-space-5);min-width:0}\n.shell-top{display:flex;align-items:center;justify-content:space-between;gap:var(--k-space-3)}\n.shell-main .k-sep{margin:var(--k-space-3) 0}\n.shell-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-4)}\n@media (max-width:720px){.shell{grid-template-columns:1fr}.shell-side{display:none}.shell-stats{grid-template-columns:1fr}}\n.shell-row{display:flex;align-items:center;gap:var(--k-space-3);padding:var(--k-space-3) 0}\n.shell-rmain{flex:1;min-width:0}\n.shell-rt{font-size:var(--k-text-base);font-weight:550}\n.shell-rs{font-size:var(--k-text-sm);color:var(--k-ink-2)}\n"},{"path":"blocks\/app-shell\/example.html","type":"registry:block","content":"<!-- KATA app-shell 1.1.0 \u2014 kata-ui.dev\/blocks\/app-shell \u2014 requires mold >= 4 -->\n<div class=\"shell\">\n  <aside class=\"shell-side\">\n    <div class=\"shell-brand\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4\"\/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\" rx=\"1.2\"\/><\/svg> Acme Studio<\/div>\n    <nav class=\"shell-nav\">\n      <a class=\"shell-item on\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"\/><path d=\"M3.5 9.5h17M9.5 9.5v10\"\/><\/svg> Overview<\/a>\n      <a class=\"shell-item\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5\"\/><\/svg> Projects<\/a>\n      <a class=\"shell-item\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><path d=\"m3 7 9 6 9-6\"\/><\/svg> Inbox<span class=\"badge dark\">3<\/span><\/a>\n      <a class=\"shell-item\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"9\" cy=\"8.5\" r=\"3.4\"\/><path d=\"M2.8 20c.7-3.4 3.2-5.2 6.2-5.2s5.5 1.8 6.2 5.2\"\/><path d=\"M16 5.4a3.4 3.4 0 0 1 0 6.4M18.5 15.4c1.5.8 2.5 2.4 2.9 4.6\"\/><\/svg> Team<\/a>\n      <a class=\"shell-item\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 6h10M17 6h4M3 12h4M11 12h10M3 18h12M19 18h2\"\/><circle cx=\"15\" cy=\"6\" r=\"2\"\/><circle cx=\"9\" cy=\"12\" r=\"2\"\/><circle cx=\"17\" cy=\"18\" r=\"2\"\/><\/svg> Settings<\/a>\n    <\/nav>\n    <div class=\"shell-user\">\n      <span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">AK<\/span>\n      <div><div class=\"shell-uname\">Aoi Kimura<\/div><div class=\"shell-urole\">Admin<\/div><\/div>\n    <\/div>\n  <\/aside>\n  <div class=\"shell-main\">\n    <div class=\"shell-top\">\n      <nav aria-label=\"Breadcrumb\"><ol class=\"k-crumbs\">\n        <li><a href=\"#\">Home<\/a><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\"\/><\/svg><\/li>\n        <li><span aria-current=\"page\">Overview<\/span><\/li>\n      <\/ol><\/nav>\n      <button type=\"button\" class=\"btn btn-pri btn-sm\">New project<\/button>\n    <\/div>\n    <hr class=\"k-sep\">\n    <div class=\"shell-stats\">\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Revenue<\/div><div class=\"k-stat-val\">$48,210<\/div><span class=\"k-stat-delta\">\u2191 12.4%<\/span><\/div>\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Projects<\/div><div class=\"k-stat-val\">26<\/div><span class=\"k-stat-delta\">\u2191 4 this month<\/span><\/div>\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Team<\/div><div class=\"k-stat-val\">8<\/div><span class=\"k-stat-delta\">2 pending invites<\/span><\/div>\n    <\/div>\n    <hr class=\"k-sep\">\n    <div class=\"shell-row\">\n      <span class=\"k-avatar\" aria-hidden=\"true\">JM<\/span>\n      <div class=\"shell-rmain\"><div class=\"shell-rt\">Website redesign<\/div><div class=\"shell-rs\">Updated the pricing page \u00b7 2h ago<\/div><\/div>\n      <span class=\"badge asagi\"><i><\/i>Live<\/span>\n    <\/div>\n    <hr class=\"k-sep\">\n    <div class=\"shell-row\">\n      <span class=\"k-avatar\" aria-hidden=\"true\">RS<\/span>\n      <div class=\"shell-rmain\"><div class=\"shell-rt\">Mobile app<\/div><div class=\"shell-rs\">New build waiting for review \u00b7 5h ago<\/div><\/div>\n      <span class=\"badge yamabuki\"><i><\/i>In review<\/span>\n    <\/div>\n    <hr class=\"k-sep\">\n    <div class=\"shell-row\">\n      <span class=\"k-avatar\" aria-hidden=\"true\">AK<\/span>\n      <div class=\"shell-rmain\"><div class=\"shell-rt\">Brand refresh<\/div><div class=\"shell-rs\">Draft shared with the team \u00b7 1d ago<\/div><\/div>\n      <span class=\"badge \"><i><\/i>Draft<\/span>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Nav items are plain links; the active one carries the core-colored icon. Below 720px the sidebar steps aside \u2014 replace that with your own drawer pattern when it matters.","accessibility":""},"audit":{"id":"blocks\/app-shell","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"cta-band","type":"registry:block","title":"CTA Band","description":"The last thing on the page: one sentence, one button, lit by the Aurora.","categories":["Blocks"],"dependencies":["aurora","button"],"files":[{"path":"blocks\/cta-band\/cta-band.css","type":"registry:block","content":"\/* KATA cta-band 1.1.0 \u2014 kata-ui.dev\/blocks\/cta-band \u2014 requires mold >= 4 *\/\n.k-ctab{position:relative;border-radius:var(--k-radius-xl);overflow:hidden;font-family:var(--k-font);text-align:center;color:var(--k-ink)}\n.k-ctab .k-aurora{position:absolute;inset:0;border-radius:var(--k-radius-xl)}\n.k-ctab-in{position:relative;padding:calc(var(--k-space-1) * 11) var(--k-space-6) var(--k-space-10)}\n.k-ctab h3{font-size:var(--k-text-2xl);font-weight:650;letter-spacing:-.02em}\n.k-ctab p{margin:var(--k-space-2) auto var(--k-space-5);font-size:var(--k-text-md);line-height:var(--k-lh-body);color:var(--k-ink-2);max-width:46ch;letter-spacing:.012em}\n"},{"path":"blocks\/cta-band\/example.html","type":"registry:block","content":"<!-- KATA cta-band 1.1.0 \u2014 kata-ui.dev\/blocks\/cta-band \u2014 requires mold >= 4 -->\n<section class=\"k-ctab\" data-theme=\"dark\" style=\"max-width:680px\">\n  <div class=\"k-aurora\" aria-hidden=\"true\"><i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i><\/div>\n  <div class=\"k-ctab-in\">\n    <h3>Close the month in days, not weekends.<\/h3>\n    <p>Start free for 30 days. Bring your last export and the ledger builds itself.<\/p>\n    <a class=\"btn btn-pri btn-lg\" href=\"#\">Start free<\/a>\n  <\/div>\n<\/section>"}],"meta":{"status":"beta","usage":"For the bottom of a landing page, after the proof. One action only; two buttons turn the band into a menu.","accessibility":""},"audit":{"id":"blocks\/cta-band","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"cookie-consent","type":"registry:block","title":"Cookie Consent","description":"The banner every site owes its visitors: what is stored, two real choices, no dark patterns.","categories":["Blocks"],"dependencies":["button"],"files":[{"path":"blocks\/cookie-consent\/cookie-consent.css","type":"registry:block","content":"\/* KATA cookie-consent 1.1.0 \u2014 kata-ui.dev\/blocks\/cookie-consent \u2014 requires mold >= 4 *\/\n\/* KATA Block: Cookie Consent *\/\n.k-cc-stage{position:relative;border:1px dashed var(--k-zinc-300);border-radius:var(--k-radius-xl);min-height:218px;background:var(--k-bg-soft);font-family:var(--k-font)}\n.k-cc{position:absolute;left:14px;bottom:14px;max-width:380px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);box-shadow:var(--k-shadow-pop);padding:var(--k-space-4)}\n.k-cc h3{font-size:var(--k-text-md);font-weight:650;color:var(--k-ink)}\n.k-cc p{font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);margin:var(--k-space-1) 0 var(--k-space-3);letter-spacing:.01em}\n.k-cc p a{color:var(--k-accent-ink);font-weight:550}\n.k-cc-btns{display:flex;gap:var(--k-space-2);flex-wrap:wrap}\n@media (max-width:480px){.k-cc{right:14px}}\n"},{"path":"blocks\/cookie-consent\/example.html","type":"registry:block","content":"<!-- KATA cookie-consent 1.1.0 \u2014 kata-ui.dev\/blocks\/cookie-consent \u2014 requires mold >= 4 -->\n<div class=\"k-cc-stage\">\n  <div class=\"k-cc\" role=\"region\" aria-label=\"Cookie consent\">\n    <h3>Cookies, briefly<\/h3>\n    <p>We store one cookie to remember your theme and anonymous counts to see which parts get used. Nothing follows you to other sites. <a href=\"\/docs\/\">Details<\/a><\/p>\n    <div class=\"k-cc-btns\">\n      <button class=\"btn btn-pri\" type=\"button\">Accept<\/button>\n      <button class=\"btn\" type=\"button\">Decline<\/button>\n      <button class=\"btn btn-ghost\" type=\"button\">Settings<\/button>\n    <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Accept and Decline are the same size and the same visual weight \u2014 anything else is a dark pattern with a stylesheet. The copy says what is actually stored, the settings link goes to a real preferences page, and the banner does not return after either choice. Shown here docked inside a stage; on a real page it fixes to the viewport corner.","accessibility":""},"audit":{"id":"blocks\/cookie-consent","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"faq","type":"registry:block","title":"FAQ","description":"Questions and answers, in the reader's order \u2014 asked often first, answered in one breath each.","categories":["Blocks"],"dependencies":["accordion"],"files":[{"path":"blocks\/faq\/faq.css","type":"registry:block","content":"\/* KATA faq 1.1.0 \u2014 kata-ui.dev\/blocks\/faq \u2014 requires mold >= 4 *\/\n.k-faqb{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-faqb h3{font-size:var(--k-text-xl);font-weight:620;letter-spacing:-.02em}\n.k-faqb .sub{margin-top:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink-2);line-height:var(--k-lh-body);letter-spacing:.012em}\n.k-faqb .acc{margin-top:var(--k-space-4)}\n.k-faqb .more{margin-top:var(--k-space-3);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.k-faqb .more a{color:var(--k-accent-ink);font-weight:550;text-decoration:none}\n"},{"path":"blocks\/faq\/example.html","type":"registry:block","content":"<!-- KATA faq 1.1.0 \u2014 kata-ui.dev\/blocks\/faq \u2014 requires mold >= 4 -->\n<section class=\"k-faqb\" style=\"max-width:600px\">\n  <h3>Frequently asked questions<\/h3>\n  <p class=\"sub\">The short answers. The long ones live in the docs, linked from each.<\/p>\n  <div class=\"acc\"><details class=\"k-acc\" open><summary>Can I change plans later?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Yes \u2014 up or down, whenever. Changes apply from the next billing cycle, and nothing about your data or settings moves.<\/div><\/details><details class=\"k-acc\"><summary>What counts as a seat?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Anyone with their own login. Shared logins are not a loophole we police; they are a security problem we will help you fix.<\/div><\/details><details class=\"k-acc\"><summary>Do you offer refunds?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Within 30 days, in full, no questions and no exit interview. After that, write to us \u2014 a human reads it.<\/div><\/details><details class=\"k-acc\"><summary>Where is my data stored?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">In the region you pick at signup, and it stays there. Exports are complete and free, including the day you leave.<\/div><\/details><\/div>\n  <p class=\"more\">Still stuck? <a href=\"#\">Talk to a human<\/a> \u2014 median first reply is under two hours.<\/p>\n<\/section>"}],"meta":{"status":"beta","usage":"For the questions support answers weekly. Write the answer first and the question second; if an answer needs a paragraph, it belongs in the docs, linked.","accessibility":""},"audit":{"id":"blocks\/faq","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"filter-toolbar","type":"registry:block","title":"Filter Toolbar","description":"The working bar above every real list: search, two filters, a sort, and a density switch.","categories":["Blocks"],"dependencies":["input","select","segmented","button"],"files":[{"path":"blocks\/filter-toolbar\/filter-toolbar.css","type":"registry:block","content":"\/* KATA filter-toolbar 1.1.0 \u2014 kata-ui.dev\/blocks\/filter-toolbar \u2014 requires mold >= 4 *\/\n\/* KATA Block: Filter Toolbar *\/\n.k-ft{display:flex;gap:var(--k-space-2);align-items:center;flex-wrap:wrap;font-family:var(--k-font);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3);background:var(--k-bg)}\n.k-ft .grow{flex:1;min-width:170px}\n.k-ft .count{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-inline-start:auto;font-variant-numeric:tabular-nums}\n.k-ft select{min-width:130px}\n"},{"path":"blocks\/filter-toolbar\/example.html","type":"registry:block","content":"<!-- KATA filter-toolbar 1.1.0 \u2014 kata-ui.dev\/blocks\/filter-toolbar \u2014 requires mold >= 4 -->\n<div class=\"k-ft\">\n  <div class=\"searchwrap grow\">\n    <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m20 20-3.8-3.8\"\/><\/svg>\n    <input class=\"input\" type=\"search\" placeholder=\"Search orders, customers, SKUs\u2026\" aria-label=\"Search\">\n  <\/div>\n  <select class=\"k-select\" aria-label=\"Status\"><option>All statuses<\/option><option>Open<\/option><option>Paid<\/option><option>Overdue<\/option><\/select>\n  <select class=\"k-select\" aria-label=\"Sort\"><option>Newest first<\/option><option>Oldest first<\/option><option>Total, high to low<\/option><\/select>\n  <div class=\"k-seg\" role=\"radiogroup\" aria-label=\"Density\">\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"ft-density\" checked><span>Comfort<\/span><\/label>\n    <label class=\"k-seg-item\"><input type=\"radio\" name=\"ft-density\"><span>Compact<\/span><\/label>\n  <\/div>\n  <button class=\"btn\" type=\"button\">Export<\/button>\n  <span class=\"count\">128 orders<\/span>\n<\/div>"}],"meta":{"status":"beta","usage":"Composes the Input search wrap, two Selects, a Segmented view switch and one quiet button \u2014 nothing custom but the frame. It sits above data tables, file lists and galleries; the result count belongs at its right end, updated in words (\"128 orders\") and visible without hovering. On narrow screens it wraps in reading order: search first, always.","accessibility":""},"audit":{"id":"blocks\/filter-toolbar","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"integrations","type":"registry:block","title":"Integrations","description":"The grid of tools a product plays well with \u2014 a mark, a name, and what it is for.","categories":["Blocks"],"dependencies":["button"],"files":[{"path":"blocks\/integrations\/integrations.css","type":"registry:block","content":"\/* KATA integrations 1.1.0 \u2014 kata-ui.dev\/blocks\/integrations \u2014 requires mold >= 4 *\/\n.k-int{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-int-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--k-space-3);margin-bottom:var(--k-space-4)}\n.k-int-h h3{font-size:var(--k-text-lg);font-weight:600;letter-spacing:-.015em}\n.k-int-h a{font-size:var(--k-text-base);font-weight:550;color:var(--k-accent-ink);text-decoration:none;white-space:nowrap}\n.k-int-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--k-space-2)}\n@media (max-width:640px){.k-int-grid{grid-template-columns:repeat(2,1fr)}}\n.k-int-tile{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);background:var(--k-bg);padding:var(--k-space-4);display:grid;gap:var(--k-space-2);transition:border-color var(--k-dur-fast)}\n.k-int-tile:hover{border-color:var(--k-border-strong)}\n.k-int-ic{width:38px;height:38px;border-radius:var(--k-radius-lg);background:var(--k-bg-soft);border:1px solid var(--k-line);display:grid;place-items:center;color:var(--k-ink)}\n.k-int-name{font-size:var(--k-text-base);font-weight:600}\n.k-int-cat{font-size:var(--k-text-xs);color:var(--k-ink-3);margin-top:var(--k-space-px)}\n"},{"path":"blocks\/integrations\/example.html","type":"registry:block","content":"<!-- KATA integrations 1.1.0 \u2014 kata-ui.dev\/blocks\/integrations \u2014 requires mold >= 4 -->\n<section class=\"k-int\" style=\"max-width:640px\">\n  <div class=\"k-int-h\"><h3>Works with the tools you already use<\/h3><a class=\"btn btn-sec btn-sm\" href=\"#\">Browse all<\/a><\/div>\n  <div class=\"k-int-grid\"><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Slack<\/span><span class=\"k-int-cat\" style=\"display:block\">Messaging<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Claude<\/span><span class=\"k-int-cat\" style=\"display:block\">AI assistant<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Twitch<\/span><span class=\"k-int-cat\" style=\"display:block\">Streaming<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\"\/><\/svg><\/span><span><span class=\"k-int-name\">Instagram<\/span><span class=\"k-int-cat\" style=\"display:block\">Social<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">OpenAI<\/span><span class=\"k-int-cat\" style=\"display:block\">AI models<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M6.9 5.3C4.8 6 3.2 6.8 2.7 7.1 2.1 10.5 1.9 14 2.2 17.5c2.2 1.7 4.4 2.6 6.6 3l.8-1.2c-1.2-.4-2.3-.9-3.4-1.6l.8-.6c2.8 1.3 5.9 1.3 8.7 0l.8.6c-1.1.7-2.2 1.2-3.4 1.6l.8 1.2c2.2-.4 4.4-1.3 6.6-3 .4-4 .2-7.5-1.4-10.4-.5-.3-1.9-1.1-3.8-1.8-.3.4-.6.9-.8 1.4 1.5.2 2.9.7 4.2 1.4-4.6-2.2-9.6-2.2-14.2 0 1.3-.7 2.7-1.2 4.2-1.4-.2-.5-.5-1-.8-1.4ZM7.2 15.1a1.6 1.6 0 1 0 3.2 0 1.6 1.6 0 1 0-3.2 0Zm6.4 0a1.6 1.6 0 1 0 3.2 0 1.6 1.6 0 1 0-3.2 0Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Discord<\/span><span class=\"k-int-cat\" style=\"display:block\">Community<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M9.2 2.8h2.8v5.6H9.2a2.8 2.8 0 0 1 0-5.6Z\"\/><path d=\"M12 2.8h2.8a2.8 2.8 0 0 1 0 5.6H12V2.8Z\"\/><path d=\"M9.2 8.4h2.8v5.6H9.2a2.8 2.8 0 0 1 0-5.6Z\"\/><path d=\"M12 8.4h.9a2.8 2.8 0 0 1 0 5.6H12V8.4Z\"\/><path d=\"M9.2 14h2.8v2.8a2.8 2.8 0 0 1-5.6 0 2.8 2.8 0 0 1 2.8-2.8Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Figma<\/span><span class=\"k-int-cat\" style=\"display:block\">Design<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.2 6.1c1.6 0 3.2.4 4.6 1.1V3.6C15.3 3.1 13.9 2.9 12.4 2.9 8.7 2.9 6 4.9 6 7.9c0 4.2 6 3.4 6 5.9 0 1-.8 1.6-2 1.6-1.7 0-3.6-.5-5.1-1.4v3.1c1.6.4 3.4.7 5.3.7 3.7 0 6.5-2 6.5-5.3 0-4.5-6.2-3.6-6.2-6 0-.9.7-1.4 1.9-1.4Z\" transform=\"translate(.3 .6)\"\/><\/svg><\/span><span><span class=\"k-int-name\">Stripe<\/span><span class=\"k-int-cat\" style=\"display:block\">Payments<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M8.3 6.9 6.6 20.4a1 1 0 0 0 1 1.1h8.8a1 1 0 0 0 1-1.1L15.7 6.9c-.6-1.9-2-3.1-3.7-3.1s-3.1 1.2-3.7 3.1ZM12 5.4c1 0 1.9.8 2.3 2H9.7c.4-1.2 1.3-2 2.3-2Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Shopify<\/span><span class=\"k-int-cat\" style=\"display:block\">Commerce<\/span><\/span><\/div><div class=\"k-int-tile\"><span class=\"k-int-ic\"><svg data-brand width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 4.2 21.2 20H2.8Z\"\/><\/svg><\/span><span><span class=\"k-int-name\">Vercel<\/span><span class=\"k-int-cat\" style=\"display:block\">Hosting<\/span><\/span><\/div><\/div>\n<\/section>"}],"meta":{"status":"beta","usage":"For the \"works with\" section of a landing page. Marks are nominative: they name the tool, they do not decorate. Keep the grid to names a visitor already knows.","accessibility":""},"audit":{"id":"blocks\/integrations","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"invoice","type":"registry:block","title":"Invoice","description":"A complete invoice document: parties, line items, tax, total, and the button that gets it paid.","categories":["Blocks"],"dependencies":["badge","button"],"files":[{"path":"blocks\/invoice\/invoice.css","type":"registry:block","content":"\/* KATA invoice 1.1.0 \u2014 kata-ui.dev\/blocks\/invoice \u2014 requires mold >= 4 *\/\n\/* KATA Block: Invoice *\/\n.k-inv{font-family:var(--k-font);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);background:var(--k-bg);max-width:640px}\n.k-inv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--k-space-3);margin-bottom:var(--k-space-4)}\n.k-inv-head h3{font-size:var(--k-text-lg);font-weight:650;letter-spacing:-.015em}\n.k-inv-head p{font-size:var(--k-text-sm);color:var(--k-ink-2);margin-top:var(--k-space-1)}\n.k-inv-parties{display:grid;grid-template-columns:1fr 1fr;gap:var(--k-space-3);margin-bottom:var(--k-space-4)}\n.k-inv-parties h4{font-size:var(--k-text-xs);font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:var(--k-ink-3);margin-bottom:var(--k-space-1)}\n.k-inv-parties p{font-size:var(--k-text-base);line-height:var(--k-lh-body);letter-spacing:.01em}\n.k-inv table{width:100%;border-collapse:collapse;font-size:var(--k-text-base)}\n.k-inv th,.k-inv td{padding:var(--k-space-2) var(--k-space-2);border-bottom:1px solid var(--k-line);text-align:left}\n.k-inv th{font-size:var(--k-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);font-weight:650}\n.k-inv td.n,.k-inv th.n{text-align:right;font-variant-numeric:tabular-nums}\n.k-inv-sums{margin-left:auto;width:220px;margin-top:var(--k-space-3)}\n.k-inv-sums .r{display:flex;justify-content:space-between;font-size:var(--k-text-base);padding:var(--k-space-1) var(--k-space-2);color:var(--k-ink-2)}\n.k-inv-sums .t{display:flex;justify-content:space-between;font-size:var(--k-text-lead);font-weight:700;padding:var(--k-space-2) var(--k-space-2) 0;margin-top:var(--k-space-1);border-top:2px solid var(--k-line);color:var(--k-ink)}\n.k-inv-foot{display:flex;justify-content:space-between;align-items:center;gap:var(--k-space-3);margin-top:var(--k-space-5);flex-wrap:wrap}\n.k-inv-foot p{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n@media (max-width:520px){.k-inv-parties{grid-template-columns:1fr}}\n"},{"path":"blocks\/invoice\/example.html","type":"registry:block","content":"<!-- KATA invoice 1.1.0 \u2014 kata-ui.dev\/blocks\/invoice \u2014 requires mold >= 4 -->\n<div class=\"k-inv\">\n  <div class=\"k-inv-head\">\n    <div><h3>Invoice INV-2026-104<\/h3><p>Issued Nov 2, 2026 \u00b7 Due Nov 30, 2026<\/p><\/div>\n    <span class=\"badge yamabuki\">Open<\/span>\n  <\/div>\n  <div class=\"k-inv-parties\">\n    <div><h4>From<\/h4><p>Acme Studio K.K.<br>2-14 Sakura-dori<br>Nagoya, Japan<\/p><\/div>\n    <div><h4>Billed to<\/h4><p>Northwind Traders<br>Attn: A. Rivera<br>accounts@northwind.example<\/p><\/div>\n  <\/div>\n  <table>\n    <thead><tr><th>Description<\/th><th class=\"n\">Qty<\/th><th class=\"n\">Price<\/th><th class=\"n\">Amount<\/th><\/tr><\/thead>\n    <tbody>\n      <tr><td>Design system audit<\/td><td class=\"n\">1<\/td><td class=\"n\">$2,400<\/td><td class=\"n\">$2,400<\/td><\/tr>\n      <tr><td>Component build-out (day)<\/td><td class=\"n\">6<\/td><td class=\"n\">$800<\/td><td class=\"n\">$4,800<\/td><\/tr>\n      <tr><td>Travel \u2014 site visits<\/td><td class=\"n\">3<\/td><td class=\"n\">$96<\/td><td class=\"n\">$288<\/td><\/tr>\n    <\/tbody>\n  <\/table>\n  <div class=\"k-inv-sums\">\n    <div class=\"r\"><span>Subtotal<\/span><span>$7,488<\/span><\/div>\n    <div class=\"r\"><span>Tax (10%)<\/span><span>$749<\/span><\/div>\n    <div class=\"t\"><span>Total due<\/span><span>$8,237<\/span><\/div>\n  <\/div>\n  <div class=\"k-inv-foot\">\n    <p>Bank transfer \u00b7 Acme Studio K.K. \u00b7 Ref INV-2026-104<\/p>\n    <button class=\"btn btn-pri\" type=\"button\">Pay $8,237<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The billing page every freelancer and SaaS already redraws badly. Amounts are tabular, the total is unambiguous, and the status badge says where things stand \u2014 Paid, Open, Overdue (the badge turns danger, the words never shout). Print styles are the obvious next step: an invoice that cannot be printed is a screenshot.","accessibility":""},"audit":{"id":"blocks\/invoice","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"kanban","type":"registry:block","title":"Kanban","description":"A three-column board whose cards actually move: drag them between columns and the counts keep up.","categories":["Blocks"],"dependencies":["badge","avatar"],"files":[{"path":"blocks\/kanban\/kanban.css","type":"registry:block","content":"\/* KATA kanban 1.1.0 \u2014 kata-ui.dev\/blocks\/kanban \u2014 requires mold >= 4 *\/\n\/* KATA Kanban (Block) \u2014 columns, cards, and honest counts. *\/\n.k-kan{display:grid;grid-template-columns:repeat(3,minmax(225px,1fr));gap:var(--k-space-3);font-family:var(--k-font);color:var(--k-ink);align-items:start}\n.k-kan-col{background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-2);min-height:180px}\n.k-kan-col.over{outline:2px dashed var(--k-accent-line);outline-offset:-6px}\n.k-kan-h{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-1) var(--k-space-1) var(--k-space-2);font-size:var(--k-text-sm);font-weight:650;letter-spacing:.02em}\n.k-kan-h .cnt{margin-inline-start:auto;font-size:var(--k-text-xs);font-weight:600;color:var(--k-ink-3);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-full);padding:var(--k-space-px) var(--k-space-2)}\n.k-kan-list{display:flex;flex-direction:column;gap:var(--k-space-2);min-height:60px}\n.k-kan-card{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3) var(--k-space-3);box-shadow:var(--k-shadow-xs);cursor:grab}\n.k-kan-card:active{cursor:grabbing}\n.k-kan-card.drag{opacity:.45}\n.k-kan-card h4{font-size:var(--k-text-base);font-weight:600;line-height:var(--k-lh-small)}\n.k-kan-card p{font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-body);margin-top:var(--k-space-1);letter-spacing:.01em}\n.k-kan-meta{display:flex;align-items:center;gap:var(--k-space-2);margin-top:var(--k-space-2)}\n.k-kan-meta .k-avatar{margin-inline-start:auto}\n@media (max-width:760px){.k-kan{grid-template-columns:1fr}}\n"},{"path":"blocks\/kanban\/kanban.js","type":"registry:block","content":"\/* KATA kanban 1.1.0 \u2014 kata-ui.dev\/blocks\/kanban \u2014 requires mold >= 4 *\/\n\/\/ KATA Kanban (Block) \u2014 HTML5 drag between columns; counts recount.\ndocument.querySelectorAll('[data-kan]').forEach(function (board) {\n  var dragged = null;\n  function recount() {\n    board.querySelectorAll('.k-kan-col').forEach(function (col) {\n      col.querySelector('[data-kan-cnt]').textContent = col.querySelectorAll('.k-kan-card').length;\n    });\n  }\n  board.querySelectorAll('.k-kan-card').forEach(function (card) {\n    card.addEventListener('dragstart', function () { dragged = card; card.classList.add('drag'); });\n    card.addEventListener('dragend', function () {\n      card.classList.remove('drag');\n      board.querySelectorAll('.k-kan-col').forEach(function (c) { c.classList.remove('over'); });\n      recount();\n    });\n  });\n  board.querySelectorAll('.k-kan-col').forEach(function (col) {\n    col.addEventListener('dragover', function (e) { e.preventDefault(); col.classList.add('over'); });\n    col.addEventListener('dragleave', function () { col.classList.remove('over'); });\n    col.addEventListener('drop', function (e) {\n      e.preventDefault();\n      if (dragged) col.querySelector('.k-kan-list').appendChild(dragged);\n      col.classList.remove('over');\n      recount();\n    });\n  });\n  recount();\n});\n"},{"path":"blocks\/kanban\/example.html","type":"registry:block","content":"<!-- KATA kanban 1.1.0 \u2014 kata-ui.dev\/blocks\/kanban \u2014 requires mold >= 4 -->\n<div class=\"k-kan\" data-kan>\n  <section class=\"k-kan-col\">\n    <div class=\"k-kan-h\">Backlog<span class=\"cnt\" data-kan-cnt>3<\/span><\/div>\n    <div class=\"k-kan-list\"><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Cut the release notes<\/h4><p>One page, in the order a new user meets things. No changelog archaeology.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Docs<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">AR<\/span><\/div>\n    <\/article><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Migrate the status page<\/h4><p>Move it to the new domain before the announcement, not after.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Ops<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">MK<\/span><\/div>\n    <\/article><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Empty-state illustrations<\/h4><p>Three spots still show the grey box. Draw the simple versions.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Design<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">TS<\/span><\/div>\n    <\/article><\/div>\n  <\/section>\n  <section class=\"k-kan-col\">\n    <div class=\"k-kan-h\">In progress<span class=\"cnt\" data-kan-cnt>2<\/span><\/div>\n    <div class=\"k-kan-list\"><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Record the 90-second demo<\/h4><p>One take per part, no voiceover \u2014 the cursor does the talking.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Release<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">AR<\/span><\/div>\n    <\/article><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Review the pricing copy<\/h4><p>Every claim on the page must be true on the day it ships.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Docs<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">MK<\/span><\/div>\n    <\/article><\/div>\n  <\/section>\n  <section class=\"k-kan-col\">\n    <div class=\"k-kan-h\">Done<span class=\"cnt\" data-kan-cnt>2<\/span><\/div>\n    <div class=\"k-kan-list\"><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Ship the changelog<\/h4><p>November entry is written and linked from the footer.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Release<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">TS<\/span><\/div>\n    <\/article><article class=\"k-kan-card\" draggable=\"true\">\n      <h4>Close the beta list<\/h4><p>Everyone in, everyone emailed, the form now says so.<\/p>\n      <div class=\"k-kan-meta\"><span class=\"badge asagi\">Ops<\/span><span class=\"k-avatar\" data-size=\"sm\" aria-hidden=\"true\">AR<\/span><\/div>\n    <\/article><\/div>\n  <\/section>\n<\/div>"}],"meta":{"status":"beta","usage":"Columns are lists; cards are articles with draggable=\"true\". The script moves the card in the DOM and recounts \u2014 persisting the order (and wiring real drag handles for touch) is the app\u2019s layer.","accessibility":""},"audit":{"id":"blocks\/kanban","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"login","type":"registry:block","title":"Login","description":"A centered sign-in card: brand mark, two fields, one decision, and the way out.","categories":["Blocks"],"dependencies":["input","button","checkbox","separator"],"files":[{"path":"blocks\/login\/login.css","type":"registry:block","content":"\/* KATA login 1.1.0 \u2014 kata-ui.dev\/blocks\/login \u2014 requires mold >= 4 *\/\n.login-card{max-width:368px;margin:0 auto;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-7) var(--k-space-7);font-family:var(--k-font);color:var(--k-ink);text-align:start}\n.login-mark{display:grid;place-items:center;color:var(--k-ink)}\n.login-h{margin-top:var(--k-space-3);text-align:center;font-size:var(--k-text-xl);font-weight:600;letter-spacing:-.015em}\n.login-sub{margin-top:var(--k-space-1);text-align:center;font-size:var(--k-text-base);color:var(--k-ink-2)}\n.login-card .field{margin-top:var(--k-space-4)}\n.login-row{display:flex;align-items:center;justify-content:space-between;margin-top:var(--k-space-3);font-size:var(--k-text-base)}\n.login-link{color:var(--k-accent-ink);text-decoration:none}\n.login-cta{width:100%;justify-content:center;margin-top:var(--k-space-4)}\n.login-card .k-sep-label{margin-top:var(--k-space-4)}\n.login-foot{margin-top:var(--k-space-4);text-align:center;font-size:var(--k-text-base);color:var(--k-ink-2)}\n.login-foot a{color:var(--k-accent-ink);text-decoration:none;font-weight:550}\n"},{"path":"blocks\/login\/example.html","type":"registry:block","content":"<!-- KATA login 1.1.0 \u2014 kata-ui.dev\/blocks\/login \u2014 requires mold >= 4 -->\n<div class=\"login-card\">\n  <div class=\"login-mark\"><svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4\"\/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\" rx=\"1.2\"\/><\/svg><\/div>\n  <h3 class=\"login-h\">Welcome back<\/h3>\n  <p class=\"login-sub\">Sign in to your workspace.<\/p>\n  <div class=\"field\"><label for=\"li-email\">Email<\/label><input class=\"input\" id=\"li-email\" type=\"email\" placeholder=\"you@example.com\"><\/div>\n  <div class=\"field\"><label for=\"li-pass\">Password<\/label><input class=\"input\" id=\"li-pass\" type=\"password\" placeholder=\"Your password\"><\/div>\n  <div class=\"login-row\">\n    <label class=\"check\"><input type=\"checkbox\" checked>Remember me<\/label>\n    <a class=\"login-link\" href=\"#\">Forgot password?<\/a>\n  <\/div>\n  <button type=\"button\" class=\"btn btn-pri btn-lg login-cta\">Sign in<\/button>\n  <div class=\"k-sep-label\">OR<\/div>\n  <button type=\"button\" class=\"btn btn-sec btn-lg login-cta\">Continue with SSO<\/button>\n  <p class=\"login-foot\">No account? <a href=\"#\">Create one<\/a><\/p>\n<\/div>"}],"meta":{"status":"beta","usage":"Drop it on a bare page with the tokens loaded. The card centers itself; the SSO button and the footer link are the first things to rewire.","accessibility":""},"audit":{"id":"blocks\/login","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"logo-cloud","type":"registry:block","title":"Logo Cloud","description":"The wall of names, moving slowly \u2014 social proof at the speed of a conveyor belt.","categories":["Blocks"],"dependencies":["marquee"],"files":[{"path":"blocks\/logo-cloud\/logo-cloud.css","type":"registry:block","content":"\/* KATA logo-cloud 1.1.0 \u2014 kata-ui.dev\/blocks\/logo-cloud \u2014 requires mold >= 4 *\/\n.k-logoc{font-family:var(--k-font);text-align:center;color:var(--k-ink)}\n.k-logoc .cap{font-size:var(--k-text-xs);letter-spacing:.09em;text-transform:uppercase;color:var(--k-ink-3);font-weight:600;margin-bottom:var(--k-space-4)}\n.k-logoc .li{display:inline-flex;align-items:center;gap:var(--k-space-2);font-size:var(--k-text-lead);font-weight:600;color:var(--k-ink-2);white-space:nowrap}\n"},{"path":"blocks\/logo-cloud\/example.html","type":"registry:block","content":"<!-- KATA logo-cloud 1.1.0 \u2014 kata-ui.dev\/blocks\/logo-cloud \u2014 requires mold >= 4 -->\n<section class=\"k-logoc\" style=\"max-width:680px\">\n  <p class=\"cap\">Powering books for teams at<\/p>\n  <div class=\"k-marquee\">\n    <div class=\"k-marquee-track\">\n      <div class=\"k-marquee-group\"><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z\"\/><\/svg> Slack<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"\/><\/svg> Twitch<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\"\/><\/svg> Instagram<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z\"\/><\/svg> Slack<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"\/><\/svg> Twitch<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\"\/><\/svg> Instagram<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M4 3l6.9 9.3L4.4 21h2.9l5-6.3 4 6.3H20l-7.2-9.7L19.4 3h-2.9l-4.4 5.6L8.4 3H4z\"\/><\/svg> X<\/span><\/div>\n    <\/div>\n  <\/div>\n<\/section>"}],"meta":{"status":"beta","usage":"Under the hero or above the footer. Motion earns attention the static grid spends; pause on hover is built into the Marquee part it rides on.","accessibility":""},"audit":{"id":"blocks\/logo-cloud","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"order-confirmation","type":"registry:block","title":"Order Confirmation","description":"The page after the payment: what was bought, what it cost, when it arrives, what to do next.","categories":["Blocks"],"dependencies":["button","badge"],"files":[{"path":"blocks\/order-confirmation\/order-confirmation.css","type":"registry:block","content":"\/* KATA order-confirmation 1.1.0 \u2014 kata-ui.dev\/blocks\/order-confirmation \u2014 requires mold >= 4 *\/\n\/* KATA Block: Order Confirmation *\/\n.k-oc{font-family:var(--k-font);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);background:var(--k-bg);max-width:560px;text-align:center}\n.k-oc .ok{width:46px;height:46px;border-radius:50%;background:var(--k-success-bg);color:var(--k-success-ink);display:inline-flex;align-items:center;justify-content:center;margin-bottom:var(--k-space-3)}\n.k-oc h3{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.015em}\n.k-oc .no{font-size:var(--k-text-base);color:var(--k-ink-2);margin-top:var(--k-space-1)}\n.k-oc .no b{color:var(--k-ink);font-variant-numeric:tabular-nums}\n.k-oc-items{text-align:left;border-top:1px solid var(--k-line);margin-top:var(--k-space-4);padding-top:var(--k-space-1)}\n.k-oc-items .r{display:flex;justify-content:space-between;gap:var(--k-space-2);font-size:var(--k-text-base);padding:var(--k-space-2) 0;border-bottom:1px solid var(--k-line)}\n.k-oc-items .r span{color:var(--k-ink-2)}\n.k-oc-items .t{display:flex;justify-content:space-between;font-size:var(--k-text-lead);font-weight:700;padding-top:var(--k-space-3)}\n.k-oc-eta{margin-top:var(--k-space-4);background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3) var(--k-space-3);font-size:var(--k-text-base);text-align:left}\n.k-oc-eta b{font-weight:650}\n.k-oc-actions{display:flex;gap:var(--k-space-2);justify-content:center;margin-top:var(--k-space-4);flex-wrap:wrap}\n"},{"path":"blocks\/order-confirmation\/example.html","type":"registry:block","content":"<!-- KATA order-confirmation 1.1.0 \u2014 kata-ui.dev\/blocks\/order-confirmation \u2014 requires mold >= 4 -->\n<div class=\"k-oc\">\n  <span class=\"ok\"><svg width=\"21\" height=\"21\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span>\n  <h3>Order confirmed<\/h3>\n  <p class=\"no\">Order <b>#AC-88412<\/b> \u00b7 A receipt was sent to ren@example.com<\/p>\n  <div class=\"k-oc-items\">\n    <div class=\"r\"><span>KATA Pro \u2014 lifetime \u00d7 1<\/span><b>$129<\/b><\/div>\n    <div class=\"r\"><span>Mold poster, A2 \u00d7 1<\/span><b>$24<\/b><\/div>\n    <div class=\"r\"><span>Shipping<\/span><b>Free<\/b><\/div>\n    <div class=\"t\"><span>Total paid<\/span><span>$153<\/span><\/div>\n  <\/div>\n  <p class=\"k-oc-eta\">Estimated delivery <b>Nov 6 \u2013 Nov 8<\/b>. The download link for Pro is in your receipt, and the poster ships separately.<\/p>\n  <div class=\"k-oc-actions\">\n    <button class=\"btn btn-pri\" type=\"button\">Track order<\/button>\n    <button class=\"btn btn-ghost\" type=\"button\">Continue shopping<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Pairs with the Checkout template, one screen later. The confirmation number is set big enough to screenshot, the delivery estimate is a range with the later date emphasized, and the primary action is tracking the order. Send the same content by email; a confirmation that only exists in a tab is a rumor.","accessibility":""},"audit":{"id":"blocks\/order-confirmation","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"plan-compare","type":"registry:block","title":"Plan Compare","description":"The feature matrix under the pricing cards: what each plan includes, one feature per row.","categories":["Blocks"],"dependencies":["badge"],"files":[{"path":"blocks\/plan-compare\/plan-compare.css","type":"registry:block","content":"\/* KATA plan-compare 1.1.0 \u2014 kata-ui.dev\/blocks\/plan-compare \u2014 requires mold >= 4 *\/\n\/* KATA Block: Plan Compare *\/\n.k-pc{font-family:var(--k-font);color:var(--k-ink);overflow-x:auto}\n.k-pc table{width:100%;border-collapse:collapse;font-size:var(--k-text-base);min-width:520px}\n.k-pc th,.k-pc td{padding:var(--k-space-3) var(--k-space-3);text-align:left;border-bottom:1px solid var(--k-line)}\n.k-pc thead th{font-size:var(--k-text-md);font-weight:650;border-bottom:2px solid var(--k-line)}\n.k-pc tbody th{font-weight:550;color:var(--k-ink-2)}\n.k-pc td.hot{background:var(--k-accent-bg)}\n.k-pc thead th.hot{background:var(--k-accent-bg);border-radius:var(--k-radius-lg) var(--k-radius-lg) 0 0}\n.k-pc .y{color:var(--k-accent-ink);font-weight:700}\n.k-pc .n{color:var(--k-zinc-400)}\n"},{"path":"blocks\/plan-compare\/example.html","type":"registry:block","content":"<!-- KATA plan-compare 1.1.0 \u2014 kata-ui.dev\/blocks\/plan-compare \u2014 requires mold >= 4 -->\n<div class=\"k-pc\">\n  <table>\n    <thead><tr><th scope=\"col\">Feature<\/th><th scope=\"col\">Free<\/th><th scope=\"col\" class=\"hot\">Pro <span class=\"badge asagi\">Most popular<\/span><\/th><th scope=\"col\">Team<\/th><\/tr><\/thead>\n    <tbody>\n      <tr><th scope=\"row\">Components<\/th><td>136 parts<\/td><td class=\"hot\">136 parts<\/td><td>136 parts<\/td><\/tr>\n      <tr><th scope=\"row\">Blocks & templates<\/th><td><span class=\"n\">\u2014<\/span><\/td><td class=\"hot\">All<\/td><td>All<\/td><\/tr>\n      <tr><th scope=\"row\">Themes<\/th><td>5 accents<\/td><td class=\"hot\">5 accents<\/td><td>Custom<\/td><\/tr>\n      <tr><th scope=\"row\">MCP server & registry<\/th><td><span class=\"y\">\u2713<\/span><\/td><td class=\"hot\"><span class=\"y\">\u2713<\/span><\/td><td><span class=\"y\">\u2713<\/span><\/td><\/tr>\n      <tr><th scope=\"row\">Updates<\/th><td>Free parts<\/td><td class=\"hot\">Lifetime<\/td><td>Lifetime<\/td><\/tr>\n      <tr><th scope=\"row\">Seats<\/th><td>1<\/td><td class=\"hot\">1<\/td><td>10<\/td><\/tr>\n      <tr><th scope=\"row\">Support<\/th><td>Community<\/td><td class=\"hot\">Email<\/td><td>Priority<\/td><\/tr>\n      <tr><th scope=\"row\">Source files<\/th><td><span class=\"n\">\u2014<\/span><\/td><td class=\"hot\">Included<\/td><td>Included<\/td><\/tr>\n    <\/tbody>\n  <\/table>\n<\/div>"}],"meta":{"status":"beta","usage":"Pairs with the Pricing block, below it, for the readers who compare before they buy. The Pro column carries the highlight and the badge; checks are accent, dashes are zinc, and no row is worded to trick anyone \u2014 a matrix is a promise in grid form.","accessibility":""},"audit":{"id":"blocks\/plan-compare","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"pricing","type":"registry:block","title":"Pricing","description":"Three plans and a billing switch. The middle plan carries the decision; the rest is context.","categories":["Blocks"],"dependencies":["button","badge","switch","separator"],"files":[{"path":"blocks\/pricing\/pricing.css","type":"registry:block","content":"\/* KATA pricing 1.1.0 \u2014 kata-ui.dev\/blocks\/pricing \u2014 requires mold >= 4 *\/\n.pricing{font-family:var(--k-font);color:var(--k-ink);text-align:start;width:100%}\n.pricing-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--k-space-4);flex-wrap:wrap}\n.pricing-h{font-size:var(--k-text-xl);font-weight:600;letter-spacing:-.02em}\n.pricing-sub{margin-top:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.pricing-grid{margin-top:var(--k-space-5);display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-3)}\n@media (max-width:760px){.pricing-grid{grid-template-columns:1fr}}\n.plan{position:relative;border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);padding:var(--k-space-5) var(--k-space-5)}\n.plan-hot{border-color:var(--k-ink)}\n.plan-badge{position:absolute;top:-11px;inset-inline-start:calc(var(--k-space-4) + var(--k-space-1))}\n.plan-name{font-size:var(--k-text-base);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-2)}\n.plan-price{margin-top:var(--k-space-2);font-size:var(--k-text-3xl);font-weight:600;letter-spacing:-.03em}\n.plan-per{font-size:var(--k-text-base);font-weight:500;color:var(--k-ink-3);letter-spacing:0}\n.plan-desc{margin-top:var(--k-space-2);font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.plan-cta{width:100%;justify-content:center;margin-top:var(--k-space-4)}\n.plan .k-sep{margin:var(--k-space-4) 0 var(--k-space-3)}\n.plan-feats{list-style:none;margin:0;padding:0;display:grid;gap:var(--k-space-2);font-size:var(--k-text-base)}\n.plan-feats li{display:flex;gap:var(--k-space-2);align-items:center}\n.plan-feats svg{color:var(--k-accent-ink);flex:none}\n.pricing-status{position:absolute;width:var(--k-space-1);height:var(--k-space-1);clip-path:inset(50%);overflow:hidden;white-space:nowrap}\n"},{"path":"blocks\/pricing\/pricing.js","type":"registry:block","content":"\/* KATA pricing 1.1.0 \u2014 kata-ui.dev\/blocks\/pricing \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n\n  document.querySelectorAll('[data-billing]').forEach(toggle => {\n    if (toggle.dataset.kataReady) return;\n    \/\/ Each switch only rewrites the prices inside its own pricing section.\n    const root = toggle.closest('.pricing') || toggle.closest('section') || toggle.parentElement;\n    toggle.dataset.kataReady = 'true';\n    identify(root, 'kata-pricing');\n    if (!toggle.hasAttribute('aria-label') && !toggle.hasAttribute('aria-labelledby')) toggle.setAttribute('aria-label', 'Yearly billing');\n    const status = document.createElement('span');\n    status.className = 'pricing-status'; status.setAttribute('role', 'status');\n    identify(status, 'kata-pricing-status'); root.append(status);\n    function apply(announce) {\n      root.querySelectorAll('[data-m]').forEach(amount => {\n        amount.textContent = toggle.checked ? amount.dataset.y : amount.dataset.m;\n      });\n      if (announce) status.textContent = toggle.checked ? 'Showing yearly prices.' : 'Showing monthly prices.';\n    }\n    toggle.addEventListener('change', () => apply(true));\n    \/\/ A restored checked state (back\/forward cache, form restore) shows matching prices.\n    if (toggle.checked) apply(false);\n  });\n})();\n"},{"path":"blocks\/pricing\/example.html","type":"registry:block","content":"<!-- KATA pricing 1.1.0 \u2014 kata-ui.dev\/blocks\/pricing \u2014 requires mold >= 4 -->\n<div class=\"pricing\">\n  <div class=\"pricing-head\">\n    <div>\n      <h3 class=\"pricing-h\">Pricing<\/h3>\n      <p class=\"pricing-sub\">Start small. Upgrade when the team does.<\/p>\n    <\/div>\n    <span class=\"switchrow\"><span>Monthly<\/span><label class=\"switch\"><input type=\"checkbox\" role=\"switch\" data-billing aria-label=\"Yearly billing\"><span class=\"tr\"><\/span><\/label><span>Yearly<\/span><span class=\"badge asagi\">\u221220%<\/span><\/span>\n  <\/div>\n  <div class=\"pricing-grid\">\n  <div class=\"plan\">\n    \n    <div class=\"plan-name\">Starter<\/div>\n    <div class=\"plan-price\"><span data-m=\"$9\" data-y=\"$7\">$9<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For one project and a quiet launch.<\/p>\n    <button type=\"button\" class=\"btn btn-sec btn-lg plan-cta\">Start free<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 3 projects<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 1 GB storage<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Community support<\/li>\n    <\/ul>\n  <\/div>\n  <div class=\"plan plan-hot\">\n    <span class=\"plan-badge\"><span class=\"badge dark\">Most popular<\/span><\/span>\n    <div class=\"plan-name\">Pro<\/div>\n    <div class=\"plan-price\"><span data-m=\"$29\" data-y=\"$23\">$29<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For teams shipping every week.<\/p>\n    <button type=\"button\" class=\"btn btn-pri btn-lg plan-cta\">Start 14-day trial<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Unlimited projects<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 100 GB storage<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Custom domain<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Priority support<\/li>\n    <\/ul>\n  <\/div>\n  <div class=\"plan\">\n    \n    <div class=\"plan-name\">Team<\/div>\n    <div class=\"plan-price\"><span data-m=\"$79\" data-y=\"$63\">$79<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For organizations with many hands.<\/p>\n    <button type=\"button\" class=\"btn btn-sec btn-lg plan-cta\">Talk to us<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Everything in Pro<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> SSO and roles<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Audit log<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> A named contact<\/li>\n    <\/ul>\n  <\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Prices live in data-m (monthly) and data-y (yearly) on each amount; the switch swaps them, only inside its own .pricing section, so several pricing sections can share a page. Rewire the amounts, keep the rhythm. The switch fires a native change event.","accessibility":"The billing switch is a labelled checkbox (Yearly billing). Changing it updates this section's prices and a status region announces monthly or yearly prices. A checked state restored by the browser shows matching prices. Screen-reader output is not yet verified by hand."},"audit":{"id":"blocks\/pricing","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"roadmap","type":"registry:block","title":"Roadmap","description":"Three columns \u2014 shipped, building, exploring \u2014 with no promised dates.","categories":["Blocks"],"dependencies":["badge"],"files":[{"path":"blocks\/roadmap\/roadmap.css","type":"registry:block","content":"\/* KATA roadmap 1.1.0 \u2014 kata-ui.dev\/blocks\/roadmap \u2014 requires mold >= 2 *\/\n\/* KATA Block: Roadmap *\/\n.k-rm{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-3);font-family:var(--k-font);color:var(--k-ink)}\n.k-rm-col{background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-4)}\n.k-rm-col h3{font-size:var(--k-text-base);font-weight:650;letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;gap:var(--k-space-2);margin-bottom:var(--k-space-3)}\n.k-rm-dot{width:8px;height:8px;border-radius:50%}\n.k-rm-i{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3) var(--k-space-3);margin-bottom:var(--k-space-2)}\n.k-rm-i:last-child{margin-bottom:0}\n.k-rm-t{display:flex;align-items:center;justify-content:space-between;gap:var(--k-space-2)}\n.k-rm-t h4{font-size:var(--k-text-base);font-weight:600}\n.k-rm-i p{font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-top:var(--k-space-1)}\n@media (max-width:720px){.k-rm{grid-template-columns:1fr}}\n"},{"path":"blocks\/roadmap\/example.html","type":"registry:block","content":"<!-- KATA roadmap 1.1.0 \u2014 kata-ui.dev\/blocks\/roadmap \u2014 requires mold >= 2 -->\n<div class=\"k-rm\">\n  <div class=\"k-rm-col\">\n    <h3><span class=\"k-rm-dot\" style=\"background:var(--k-success)\"><\/span>Shipped<\/h3>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>Registry & CLI<\/h4><span class=\"badge\">v1<\/span><\/div><p>Every part, machine-readable.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>MCP server<\/h4><span class=\"badge\">v1<\/span><\/div><p>List, search, get \u2014 read-only.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>RTL pass<\/h4><span class=\"badge\">v1<\/span><\/div><p>Logical properties throughout.<\/p><\/div>\n  <\/div>\n  <div class=\"k-rm-col\">\n    <h3><span class=\"k-rm-dot\" style=\"background:var(--k-accent-ink)\"><\/span>Building<\/h3>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>Pro downloads<\/h4><span class=\"badge\">Next<\/span><\/div><p>Key-gated blocks and templates.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>React port<\/h4><span class=\"badge\">Next<\/span><\/div><p>The mold, translated \u2014 parts first.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>More themes<\/h4><span class=\"badge\">Later<\/span><\/div><p>Community accents, same core.<\/p><\/div>\n  <\/div>\n  <div class=\"k-rm-col\">\n    <h3><span class=\"k-rm-dot\" style=\"background:var(--k-ink-3)\"><\/span>Exploring<\/h3>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>Native wrappers<\/h4><span class=\"badge\">Idea<\/span><\/div><p>Web components around the parts.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>Figma kit<\/h4><span class=\"badge\">Idea<\/span><\/div><p>The tokens, drawn.<\/p><\/div>\n      <div class=\"k-rm-i\"><div class=\"k-rm-t\"><h4>Print styles<\/h4><span class=\"badge\">Idea<\/span><\/div><p>Docs that survive paper.<\/p><\/div>\n  <\/div>\n  <\/div>"}],"meta":{"status":"beta","usage":"No dates, because roadmap dates are fiction with a deadline. Each item carries a scope badge (use Exploring for the third state; Next, Later and Someday are not used). Move items between columns as reality instructs; the block\u2019s job is to make the current truth easy to publish.","accessibility":""},"audit":{"id":"blocks\/roadmap","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":2},{"name":"settings","type":"registry:block","title":"Settings","description":"A profile settings section: identity first, preferences second, one save bar at the end.","categories":["Blocks"],"dependencies":["avatar","input","textarea","switch","button","separator"],"files":[{"path":"blocks\/settings\/settings.css","type":"registry:block","content":"\/* KATA settings 1.1.0 \u2014 kata-ui.dev\/blocks\/settings \u2014 requires mold >= 4 *\/\n.settings-card{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);font-family:var(--k-font);color:var(--k-ink);text-align:start;width:100%}\n.settings-h{font-size:var(--k-text-lead);font-weight:600}\n.settings-avatar{display:flex;align-items:center;gap:var(--k-space-3);margin-top:var(--k-space-4)}\n.settings-note{margin-top:var(--k-space-1);font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--k-space-3);margin-top:var(--k-space-4)}\n@media (max-width:640px){.settings-grid{grid-template-columns:1fr}}\n.settings-card .field{margin-top:var(--k-space-4)}\n.settings-grid .field{margin-top:0}\n.settings-card .k-sep{margin:var(--k-space-5) 0}\n.settings-row{display:flex;align-items:center;justify-content:space-between;gap:var(--k-space-4);margin-top:var(--k-space-4)}\n.settings-rl{font-size:var(--k-text-base);font-weight:550}\n.settings-rd{margin-top:var(--k-space-0-5);font-size:var(--k-text-sm);color:var(--k-ink-2)}\n.settings-foot{display:flex;gap:var(--k-space-2);justify-content:flex-end;margin-top:var(--k-space-5)}\n"},{"path":"blocks\/settings\/example.html","type":"registry:block","content":"<!-- KATA settings 1.1.0 \u2014 kata-ui.dev\/blocks\/settings \u2014 requires mold >= 4 -->\n<div class=\"settings-card\">\n  <h3 class=\"settings-h\">Profile<\/h3>\n  <div class=\"settings-avatar\">\n    <span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"lg\">AK<\/span>\n    <div>\n      <button type=\"button\" class=\"btn btn-sec btn-sm\">Change photo<\/button>\n      <p class=\"settings-note\">PNG or JPG, up to 2 MB.<\/p>\n    <\/div>\n  <\/div>\n  <div class=\"settings-grid\">\n    <div class=\"field\"><label for=\"st-name\">Full name<\/label><input class=\"input\" id=\"st-name\" value=\"Aoi Kimura\"><\/div>\n    <div class=\"field\"><label for=\"st-mail\">Email<\/label><input class=\"input\" id=\"st-mail\" value=\"aoi@example.com\"><\/div>\n  <\/div>\n  <div class=\"field\"><label for=\"st-bio\">Bio<\/label><textarea class=\"k-textarea\" id=\"st-bio\" rows=\"3\">Product designer in Kyoto. Working on tools for small teams.<\/textarea><\/div>\n  <hr class=\"k-sep\">\n  <h3 class=\"settings-h\">Preferences<\/h3>\n  <div class=\"settings-row\">\n    <div><div class=\"settings-rl\">Email notifications<\/div><div class=\"settings-rd\">Invoices, mentions and the weekly summary.<\/div><\/div>\n    <label class=\"switch\"><input role=\"switch\" aria-label=\"Email notifications\" type=\"checkbox\" checked><span class=\"tr\"><\/span><\/label>\n  <\/div>\n  <div class=\"settings-row\">\n    <div><div class=\"settings-rl\">Public profile<\/div><div class=\"settings-rd\">Anyone with the link can see your projects.<\/div><\/div>\n    <label class=\"switch\"><input role=\"switch\" aria-label=\"Public profile\" type=\"checkbox\"><span class=\"tr\"><\/span><\/label>\n  <\/div>\n  <div class=\"settings-foot\">\n    <button type=\"button\" class=\"btn btn-sec btn-md\">Cancel<\/button>\n    <button type=\"button\" class=\"btn btn-pri btn-md\">Save changes<\/button>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"One card per settings group, in the order people look for them. Switches apply immediately in spirit \u2014 if yours do not, move them above the save bar.","accessibility":""},"audit":{"id":"blocks\/settings","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"site-footer","type":"registry:block","title":"Site Footer","description":"The bottom of the page, treated as navigation: sitemap columns, a newsletter that asks once, and the legal line.","categories":["Blocks"],"dependencies":["input","button"],"files":[{"path":"blocks\/site-footer\/site-footer.css","type":"registry:block","content":"\/* KATA site-footer 1.1.0 \u2014 kata-ui.dev\/blocks\/site-footer \u2014 requires mold >= 4 *\/\n.k-ftr{font-family:var(--k-font);text-align:start;color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);padding:var(--k-space-6)}\n.k-ftr-top{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.4fr;gap:var(--k-space-6)}\n@media (max-width:720px){.k-ftr-top{grid-template-columns:1fr 1fr}}\n.k-ftr .brand{display:flex;align-items:center;gap:var(--k-space-2);font-weight:650;font-size:var(--k-text-lead)}\n.k-ftr .brand .mk{width:22px;height:22px;border:2.5px solid var(--k-ink);border-radius:var(--k-radius-md);display:grid;place-items:center}\n.k-ftr .brand .mk i{width:7px;height:7px;border-radius:var(--k-radius-xs);background:var(--k-core);display:block}\n.k-ftr .tag{margin-top:var(--k-space-2);font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);max-width:26ch;letter-spacing:.01em}\n.k-ftr h6{font-size:var(--k-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);font-weight:600;margin-bottom:var(--k-space-3)}\n.k-ftr .col a{display:block;font-size:var(--k-text-base);color:var(--k-ink-2);text-decoration:none;padding:var(--k-space-1) 0}\n.k-ftr .col a:hover{color:var(--k-ink)}\n.k-ftr .news p{font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-bottom:var(--k-space-2);letter-spacing:.01em}\n.k-ftr .news .row{display:flex;gap:var(--k-space-2)}\n.k-ftr-bot{display:flex;align-items:center;gap:var(--k-space-4);border-top:1px solid var(--k-line);margin-top:var(--k-space-6);padding-top:var(--k-space-4);font-size:var(--k-text-sm);color:var(--k-ink-3);flex-wrap:wrap}\n.k-ftr-bot .soc{display:flex;gap:var(--k-space-2);margin-inline-start:auto}\n.k-ftr-bot .soc a{width:29px;height:29px;border:1px solid var(--k-line);border-radius:var(--k-radius-md);display:grid;place-items:center;color:var(--k-ink-2)}\n"},{"path":"blocks\/site-footer\/example.html","type":"registry:block","content":"<!-- KATA site-footer 1.1.0 \u2014 kata-ui.dev\/blocks\/site-footer \u2014 requires mold >= 4 -->\n<footer class=\"k-ftr\" style=\"max-width:760px\">\n  <div class=\"k-ftr-top\">\n    <div>\n      <div class=\"brand\"><span class=\"mk\"><i><\/i><\/span>Acme Studio<\/div>\n      <p class=\"tag\">Invoicing and books for small teams, kept in one ledger.<\/p>\n    <\/div>\n    <div class=\"col\"><h6>Product<\/h6><a href=\"#\">Features<\/a><a href=\"#\">Pricing<\/a><a href=\"#\">Changelog<\/a><a href=\"#\">Roadmap<\/a><\/div>\n    <div class=\"col\"><h6>Company<\/h6><a href=\"#\">About<\/a><a href=\"#\">Careers<\/a><a href=\"#\">Press<\/a><a href=\"#\">Contact<\/a><\/div>\n    <div class=\"news\">\n      <h6>The monthly ledger<\/h6>\n      <p>One email a month: what shipped, what broke, what we learned. No growth hacks.<\/p>\n      <div class=\"row\"><input class=\"input\" type=\"email\" placeholder=\"you@company.com\" aria-label=\"Email address\" style=\"flex:1;min-width:0\"><button type=\"button\" class=\"btn btn-pri btn-md\">Subscribe<\/button><\/div>\n    <\/div>\n  <\/div>\n  <div class=\"k-ftr-bot\">\n    <span>\u00a9 2026 Acme Studio, Inc.<\/span><a href=\"#\" style=\"color:inherit;text-decoration:none\">Privacy<\/a><a href=\"#\" style=\"color:inherit;text-decoration:none\">Terms<\/a><a href=\"#\" style=\"color:inherit;text-decoration:none\">Security<\/a>\n    <span class=\"soc\"><a href=\"#\" aria-label=\"GitHub\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2.8a9.2 9.2 0 0 0-9.2 9.2c0 4.1 2.7 7.6 6.4 9 .5.1.6-.2.6-.4v-1.4c-2.6.6-3.1-1.2-3.1-1.2-.4-1.1-1-1.3-1-1.3-.9-.6.1-.6.1-.6.9.1 1.4.9 1.4.9.9 1.4 2.2 1 2.7.8.1-.6.3-1.1.6-1.3-2.1-.2-4.2-1-4.2-4.6 0-1 .4-1.8.9-2.5-.1-.2-.4-1.1.1-2.3 0 0 .8-.2 2.5.9a8.6 8.6 0 0 1 4.5 0c1.7-1.1 2.5-.9 2.5-.9.5 1.2.2 2.1.1 2.3.5.7.9 1.5.9 2.5 0 3.6-2.2 4.4-4.2 4.6.3.3.6.9.6 1.8v2.6c0 .2.2.5.6.4a9.2 9.2 0 0 0 6.4-9A9.2 9.2 0 0 0 12 2.8z\"\/><\/svg><\/a><a href=\"#\" aria-label=\"X\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M4 3l6.9 9.3L4.4 21h2.9l5-6.3 4 6.3H20l-7.2-9.7L19.4 3h-2.9l-4.4 5.6L8.4 3H4z\"\/><\/svg><\/a><a href=\"#\" aria-label=\"YouTube\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M21.6 7.1a2.8 2.8 0 0 0-2-2C17.9 4.7 12 4.7 12 4.7s-5.9 0-7.6.4a2.8 2.8 0 0 0-2 2A29 29 0 0 0 2 12a29 29 0 0 0 .4 4.9 2.8 2.8 0 0 0 2 2c1.7.4 7.6.4 7.6.4s5.9 0 7.6-.4a2.8 2.8 0 0 0 2-2A29 29 0 0 0 22 12a29 29 0 0 0-.4-4.9zM10 15.3V8.7L15.6 12 10 15.3z\"\/><\/svg><\/a><\/span>\n  <\/div>\n<\/footer>"}],"meta":{"status":"beta","usage":"For the end of every marketing page. The footer is where undecided visitors look for proof the company exists \u2014 address, legal links, a working contact.","accessibility":""},"audit":{"id":"blocks\/site-footer","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"site-header","type":"registry:block","title":"Site Header","description":"The bar at the top of every page: mark, navigation, and the one action that matters.","categories":["Blocks"],"dependencies":["button"],"files":[{"path":"blocks\/site-header\/site-header.css","type":"registry:block","content":"\/* KATA site-header 1.1.0 \u2014 kata-ui.dev\/blocks\/site-header \u2014 requires mold >= 4 *\/\n.k-hdr{font-family:var(--k-font);text-align:start;color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);overflow:hidden}\n.k-hdr-in{display:flex;align-items:center;gap:var(--k-space-6);padding:var(--k-space-3) var(--k-space-4)}\n.k-hdr .brand{display:flex;align-items:center;gap:var(--k-space-2);font-weight:650;font-size:var(--k-text-lead);letter-spacing:-.01em;color:var(--k-ink);text-decoration:none}\n.k-hdr .brand .mk{width:22px;height:22px;border:2.5px solid var(--k-ink);border-radius:var(--k-radius-md);display:grid;place-items:center}\n.k-hdr .brand .mk i{width:7px;height:7px;border-radius:var(--k-radius-xs);background:var(--k-core);display:block}\n.k-hdr nav{display:flex;gap:var(--k-space-5)}\n.k-hdr nav a{font-size:var(--k-text-base);color:var(--k-ink-2);text-decoration:none;font-weight:500}\n.k-hdr nav a:hover{color:var(--k-ink)}\n.k-hdr .acts{margin-inline-start:auto;display:flex;gap:var(--k-space-2);align-items:center}\n.k-hdr .burger{display:none;width:36px;height:36px;border:1px solid var(--k-line);background:var(--k-bg);border-radius:var(--k-radius-md);color:var(--k-ink);place-items:center;cursor:pointer;margin-inline-start:auto}\n.k-hdr .panel{display:none;border-top:1px solid var(--k-line);padding:var(--k-space-2) var(--k-space-4) var(--k-space-3)}\n.k-hdr .panel a{display:block;padding:var(--k-space-2) 0;font-size:var(--k-text-md);color:var(--k-ink-2);text-decoration:none;font-weight:500}\n@media (max-width:640px){.k-hdr nav,.k-hdr .acts{display:none}.k-hdr .burger{display:grid}.k-hdr .panel.open{display:block}}\n.k-hdr .brand:focus-visible,.k-hdr nav a:focus-visible,.k-hdr .panel a:focus-visible,.k-hdr .burger:focus-visible{outline:0;box-shadow:var(--k-ring);border-radius:var(--k-radius-sm)}\n.k-hdr .burger:focus-visible{border-radius:var(--k-radius-md)}\n"},{"path":"blocks\/site-header\/site-header.js","type":"registry:block","content":"\/* KATA site-header 1.1.0 \u2014 kata-ui.dev\/blocks\/site-header \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  const headers = [];\n\n  document.querySelectorAll('[data-hdr-btn]').forEach(button => {\n    if (button.dataset.kataReady) return;\n    const root = button.closest('.k-hdr') || button.parentElement;\n    const panel = root.querySelector('[data-hdr-panel]');\n    if (!panel) return;\n    button.dataset.kataReady = 'true';\n    identify(root, 'kata-hdr'); identify(panel, 'kata-hdr-panel');\n    button.type = 'button';\n    button.setAttribute('aria-controls', panel.id);\n    function set(open, restore) {\n      panel.classList.toggle('open', open);\n      button.setAttribute('aria-expanded', String(open));\n      if (!open && restore) button.focus();\n    }\n    set(panel.classList.contains('open'), false);\n    button.addEventListener('click', () => set(button.getAttribute('aria-expanded') !== 'true', false));\n    root.addEventListener('keydown', event => {\n      if (event.key !== 'Escape' || event.isComposing || event.keyCode === 229) return;\n      if (button.getAttribute('aria-expanded') !== 'true') return;\n      event.preventDefault(); set(false, root.contains(document.activeElement));\n    });\n    \/\/ Following a link in the menu closes it.\n    panel.addEventListener('click', event => { if (event.target.closest('a')) set(false, false); });\n    headers.push({ root, button, set });\n  });\n\n  \/\/ One outside-dismissal listener for every header on the page, registered once.\n  if (headers.length && !document.documentElement.dataset.kataHdrDismiss) {\n    document.documentElement.dataset.kataHdrDismiss = 'true';\n    document.addEventListener('pointerdown', event => {\n      document.querySelectorAll('[data-hdr-btn][aria-expanded=\"true\"]').forEach(button => {\n        const root = button.closest('.k-hdr') || button.parentElement;\n        if (root.contains(event.target)) return;\n        const panel = root.querySelector('[data-hdr-panel]');\n        if (panel) panel.classList.remove('open');\n        button.setAttribute('aria-expanded', 'false');\n      });\n    });\n  }\n})();\n"},{"path":"blocks\/site-header\/example.html","type":"registry:block","content":"<!-- KATA site-header 1.1.0 \u2014 kata-ui.dev\/blocks\/site-header \u2014 requires mold >= 4 -->\n<header class=\"k-hdr\" style=\"max-width:680px\">\n  <div class=\"k-hdr-in\">\n    <a class=\"brand\" href=\"#\"><span class=\"mk\"><i><\/i><\/span>Acme Studio<\/a>\n    <nav aria-label=\"Primary\">\n      <a href=\"#\">Product<\/a><a href=\"#\">Pricing<\/a><a href=\"#\">Docs<\/a><a href=\"#\">Changelog<\/a>\n    <\/nav>\n    <div class=\"acts\">\n      <a class=\"btn btn-ghost btn-md\" href=\"#\">Sign in<\/a>\n      <a class=\"btn btn-pri btn-md\" href=\"#\">Get started<\/a>\n    <\/div>\n    <button class=\"burger\" data-hdr-btn type=\"button\" aria-expanded=\"false\" aria-label=\"Open menu\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M4 7h16M4 12h16M4 17h16\"\/><\/svg><\/button>\n  <\/div>\n  <div class=\"panel\" data-hdr-panel>\n    <a href=\"#\">Product<\/a><a href=\"#\">Pricing<\/a><a href=\"#\">Docs<\/a><a href=\"#\">Changelog<\/a><a href=\"#\">Sign in<\/a>\n  <\/div>\n<\/header>"}],"meta":{"status":"beta","usage":"For marketing sites and app shells alike. Keep the links to five; the sixth thing you want up here is what the button is for. Below 640px the links move into a menu behind the button.","accessibility":"The menu button names itself (Open menu), reports aria-expanded and controls the panel. Escape closes an open menu and returns focus to the button; a pointer press outside the header or following a menu link also closes it. Focus leaving the header does not. Links and the button show the shared focus ring. Screen-reader output is not yet verified by hand."},"audit":{"id":"blocks\/site-header","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"stat-cards","type":"registry:block","title":"Stat Cards","description":"Four numbers a dashboard opens with \u2014 each with its delta and its verdict.","categories":["Blocks"],"dependencies":["stat","badge"],"files":[{"path":"blocks\/stat-cards\/stat-cards.css","type":"registry:block","content":"\/* KATA stat-cards 1.1.0 \u2014 kata-ui.dev\/blocks\/stat-cards \u2014 requires mold >= 4 *\/\n.statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--k-space-3);font-family:var(--k-font);width:100%}\n.statcard{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--k-space-2);background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-4);text-align:start}\n\n.statcard .badge{white-space:nowrap;flex:none}\n.statcard .k-stat{min-width:0}\n.statcard .k-stat-delta{white-space:nowrap}\n"},{"path":"blocks\/stat-cards\/example.html","type":"registry:block","content":"<!-- KATA stat-cards 1.1.0 \u2014 kata-ui.dev\/blocks\/stat-cards \u2014 requires mold >= 4 -->\n<div class=\"statgrid\">\n  <div class=\"statcard\">\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Revenue<\/div><div class=\"k-stat-val\">$48,210<\/div><span class=\"k-stat-delta\">\u2191 12.4% vs last month<\/span><\/div>\n    <span class=\"badge asagi\"><i><\/i>On track<\/span>\n  <\/div>\n  <div class=\"statcard\">\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Active users<\/div><div class=\"k-stat-val\">8,412<\/div><span class=\"k-stat-delta\">\u2191 3.8% vs last month<\/span><\/div>\n    <span class=\"badge asagi\"><i><\/i>Live<\/span>\n  <\/div>\n  <div class=\"statcard\">\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Conversion<\/div><div class=\"k-stat-val\">3.42%<\/div><span class=\"k-stat-delta\" data-dir=\"down\">\u2193 0.4 pt vs last month<\/span><\/div>\n    <span class=\"badge yamabuki\"><i><\/i>Watch<\/span>\n  <\/div>\n  <div class=\"statcard\">\n    <div class=\"k-stat\"><div class=\"k-stat-lbl\">Open tickets<\/div><div class=\"k-stat-val\">17<\/div><span class=\"k-stat-delta\">\u2193 5 vs last month<\/span><\/div>\n    <span class=\"badge red\"><i><\/i>Needs action<\/span>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The card adds what the Stat part deliberately leaves out: a frame and a verdict badge. Four across on desktop, stacking down on mobile.","accessibility":""},"audit":{"id":"blocks\/stat-cards","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"team","type":"registry:block","title":"Team Grid","description":"The people page in one block: six members with avatars, roles and a one-line bio each.","categories":["Blocks"],"dependencies":["avatar"],"files":[{"path":"blocks\/team\/team.css","type":"registry:block","content":"\/* KATA team 1.1.0 \u2014 kata-ui.dev\/blocks\/team \u2014 requires mold >= 4 *\/\n\/* KATA Block: Team Grid *\/\n.k-team{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-3);font-family:var(--k-font);color:var(--k-ink)}\n.k-team-c{border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-5);background:var(--k-bg)}\n.k-team-c h3{font-size:var(--k-text-lead);font-weight:650;margin:var(--k-space-3) 0 var(--k-space-0-5)}\n.k-team-c .r{font-size:var(--k-text-sm);font-weight:600;color:var(--k-accent-ink)}\n.k-team-c .b{font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-top:var(--k-space-2);letter-spacing:.01em}\n@media (max-width:720px){.k-team{grid-template-columns:repeat(2,1fr)}}\n@media (max-width:460px){.k-team{grid-template-columns:1fr}}\n"},{"path":"blocks\/team\/example.html","type":"registry:block","content":"<!-- KATA team 1.1.0 \u2014 kata-ui.dev\/blocks\/team \u2014 requires mold >= 4 -->\n<div class=\"k-team\">\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">AR<\/span><h3>Aoki Ren<\/h3><p class=\"r\">Founder, Systems<\/p><p class=\"b\">Built the mold. Still argues with it, wins about half.<\/p><\/div>\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">MS<\/span><h3>Mara Sato<\/h3><p class=\"r\">Design Lead<\/p><p class=\"b\">Owns the tokens and the vermillion\u2019s one allowed seat.<\/p><\/div>\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">JK<\/span><h3>Jun Kato<\/h3><p class=\"r\">Engineering<\/p><p class=\"b\">Wrote the QR encoder from the spec, for fun, correctly.<\/p><\/div>\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">TP<\/span><h3>Tomas Park<\/h3><p class=\"r\">Engineering<\/p><p class=\"b\">Keeps the check honest. Deletes more than he adds.<\/p><\/div>\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">IN<\/span><h3>Ines Novak<\/h3><p class=\"r\">Documentation<\/p><p class=\"b\">Wrote the usage notes people actually read.<\/p><\/div>\n    <div class=\"k-team-c\"><span class=\"k-avatar\" aria-hidden=\"true\">OB<\/span><h3>Omar Haddad<\/h3><p class=\"r\">Support<\/p><p class=\"b\">Answers in under a day, in full sentences.<\/p><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Avatars are the Avatar part with initials \u2014 swap in photographs by replacing the span with an img inside the same class. Six is the grid\u2019s natural size; for four or eight, the columns adapt. Keep the one-line bios specific: \"Runs the night shift\" beats \"Passionate innovator\" everywhere on Earth.","accessibility":""},"audit":{"id":"blocks\/team","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"testimonials","type":"registry:block","title":"Testimonials","description":"Three voices, named and pictured \u2014 each quote attributed to a named, pictured person.","categories":["Blocks"],"dependencies":["card","avatar"],"files":[{"path":"blocks\/testimonials\/testimonials.css","type":"registry:block","content":"\/* KATA testimonials 1.1.0 \u2014 kata-ui.dev\/blocks\/testimonials \u2014 requires mold >= 4 *\/\n.k-tst{font-family:var(--k-font);text-align:start;color:var(--k-ink)}\n.k-tst-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-3)}\n@media (max-width:720px){.k-tst-grid{grid-template-columns:1fr}}\n.k-tst q{font-size:var(--k-text-md);line-height:var(--k-lh-loose);color:var(--k-ink);quotes:\"\u201c\" \"\u201d\";letter-spacing:.012em}\n.k-tst .who{display:flex;align-items:center;gap:var(--k-space-2);margin-top:var(--k-space-3)}\n.k-tst .who b{font-size:var(--k-text-base);display:block}\n.k-tst .who span{font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-tst .stars{color:var(--k-accent-ink);display:flex;gap:var(--k-space-0-5);margin-bottom:var(--k-space-3)}\n"},{"path":"blocks\/testimonials\/example.html","type":"registry:block","content":"<!-- KATA testimonials 1.1.0 \u2014 kata-ui.dev\/blocks\/testimonials \u2014 requires mold >= 4 -->\n<section class=\"k-tst\" style=\"max-width:760px\">\n  <div class=\"k-tst-grid\">\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>We closed October in two days. The checklist alone was worth the switch \u2014 nothing hides, everything reconciles.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">AK<\/span><span><b>Aoi Kimura<\/b><span>Finance lead, Nordic Studio<\/span><\/span><\/div><\/div><\/div>\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>I send the invoice from the train home. By the time a client pays, the books already know.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">RS<\/span><span><b>Ren Sato<\/b><span>Freelance designer<\/span><\/span><\/div><\/div><\/div>\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>Support answered at 11pm with the actual fix, not a link to a help article. That has never happened before.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">MC<\/span><span><b>Mei Chen<\/b><span>Owner, Harbourlight<\/span><\/span><\/div><\/div><\/div>\n  <\/div>\n<\/section>"}],"meta":{"status":"beta","usage":"For the proof section of a landing page. Every quote is attributed to a named person at a named company; anonymous praise convinces no one.","accessibility":""},"audit":{"id":"blocks\/testimonials","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"use-cases","type":"registry:block","title":"Use Cases","description":"A numbered switcher: pick the reader you are, and the picture changes with the story.","categories":["Blocks"],"dependencies":["aurora","glass-panel","button","badge","progress"],"files":[{"path":"blocks\/use-cases\/use-cases.css","type":"registry:block","content":"\/* KATA use-cases 1.1.0 \u2014 kata-ui.dev\/blocks\/use-cases \u2014 requires mold >= 4 *\/\n.k-uc{display:grid;grid-template-columns:1fr 1fr;gap:var(--k-space-3);font-family:var(--k-font);text-align:start;color:var(--k-ink);align-items:stretch}\n@media (max-width:720px){.k-uc{grid-template-columns:1fr}}\n.k-uc-list{border:1px solid var(--k-line);border-radius:var(--k-radius-xl);background:var(--k-bg);overflow:hidden}\n.k-uc-row{width:100%;display:block;border:none;background:transparent;font:inherit;text-align:start;cursor:pointer;padding:0;color:var(--k-ink)}\n.k-uc-row+.k-uc-row{border-top:1px solid var(--k-line)}\n.k-uc-row:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px;color:var(--k-ink)}\n.k-uc-row:focus-visible .k-uc-head{background:var(--k-bg-soft)}\n.k-uc-head{display:flex;align-items:center;gap:var(--k-space-3);padding:var(--k-space-4) var(--k-space-4)}\n.k-uc-head .no{font-family:var(--k-mono);font-size:var(--k-text-xs);color:var(--k-ink-3)}\n.k-uc-head .lb{font-size:var(--k-text-md);font-weight:550;flex:1}\n.k-uc-head .pl{color:var(--k-ink-3);display:grid;place-items:center;transition:transform var(--k-dur-base) var(--k-ease)}\n.k-uc-row.open .pl{transform:rotate(45deg)}\n.k-uc-body{display:none;padding:0 var(--k-space-4) var(--k-space-4) var(--k-space-10)}\n.k-uc-row.open .k-uc-body{display:block}\n.k-uc-body h4{font-size:var(--k-text-lead);font-weight:600;letter-spacing:-.01em}\n.k-uc-body p{margin-top:var(--k-space-1);font-size:var(--k-text-base);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-uc-body ul{list-style:none;margin:var(--k-space-3) 0 0;padding:0;display:grid;gap:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.k-uc-body li{display:flex;gap:var(--k-space-2);align-items:center}\n.k-uc-body li svg{color:var(--k-accent-ink);flex:none}\n.k-uc-stage{position:relative;border-radius:var(--k-radius-xl);overflow:hidden;min-height:320px}\n.k-uc-stage .k-aurora{position:absolute;inset:0;border-radius:var(--k-radius-xl)}\n.k-uc-scene{position:absolute;inset:0;display:grid;place-items:center;padding:var(--k-space-5);animation:k-uc-in calc(.45s * var(--k-mscale)) var(--k-ease)}\n.k-uc-scene[hidden]{display:none}\n.k-uc-scene .k-glass{width:100%;max-width:300px}\n@keyframes k-uc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.k-uc-scene{animation:none}}\n"},{"path":"blocks\/use-cases\/use-cases.js","type":"registry:block","content":"\/* KATA use-cases 1.1.0 \u2014 kata-ui.dev\/blocks\/use-cases \u2014 requires mold >= 4 *\/\n(() => {\n  'use strict';\n  let serial = 0;\n  function identify(element, prefix) {\n    if (!element.id) {\n      let candidate;\n      do { candidate = prefix + '-' + (++serial); } while (document.getElementById(candidate));\n      element.id = candidate;\n    }\n    return element.id;\n  }\n  \/\/ Group rows and scenes by their section so each copy switches independently.\n  const roots = new Set([...document.querySelectorAll('[data-uc-row]')].map(row => row.closest('.k-uc') || row.parentElement.parentElement));\n\n  roots.forEach(root => {\n    if (root.dataset.kataReady) return;\n    const rows = [...root.querySelectorAll('[data-uc-row]')];\n    const scenes = [...root.querySelectorAll('[data-uc-scene]')];\n    if (!rows.length) return;\n    root.dataset.kataReady = 'true';\n    identify(root, 'kata-uc');\n    rows.forEach((row, i) => {\n      row.type = 'button';\n      identify(row, 'kata-uc-row');\n      if (scenes[i]) row.setAttribute('aria-controls', identify(scenes[i], 'kata-uc-scene'));\n    });\n    let current = Math.max(0, rows.findIndex(row => row.classList.contains('open')));\n    function show(index, notify) {\n      rows.forEach((row, j) => {\n        row.classList.toggle('open', j === index);\n        row.setAttribute('aria-expanded', String(j === index));\n      });\n      scenes.forEach((scene, j) => { scene.hidden = j !== index; });\n      if (notify && index !== current) root.dispatchEvent(new CustomEvent('kata-use-cases-change', { bubbles: true, detail: { index } }));\n      current = index;\n    }\n    show(current, false);\n    rows.forEach((row, i) => row.addEventListener('click', () => show(i, true)));\n    root.addEventListener('keydown', event => {\n      const row = event.target.closest('[data-uc-row]');\n      if (!row || !rows.includes(row) || event.isComposing || event.keyCode === 229) return;\n      const index = rows.indexOf(row), last = rows.length - 1;\n      let next = null;\n      if (event.key === 'ArrowDown') next = index === last ? 0 : index + 1;\n      else if (event.key === 'ArrowUp') next = index === 0 ? last : index - 1;\n      else if (event.key === 'Home') next = 0;\n      else if (event.key === 'End') next = last;\n      if (next === null) return;\n      \/\/ Arrows move focus only, as in an accordion; Enter or Space switches the case.\n      event.preventDefault(); rows[next].focus();\n    });\n  });\n})();\n"},{"path":"blocks\/use-cases\/example.html","type":"registry:block","content":"<!-- KATA use-cases 1.1.0 \u2014 kata-ui.dev\/blocks\/use-cases \u2014 requires mold >= 4 -->\n<section class=\"k-uc\" style=\"max-width:760px\">\n  <div class=\"k-uc-list\">\n    <button class=\"k-uc-row open\" data-uc-row type=\"button\" aria-expanded=\"true\"><span class=\"k-uc-head\"><span class=\"no\">01<\/span><span class=\"lb\">Freelancers<\/span><span class=\"pl\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><\/span><\/span><span class=\"k-uc-body\"><h4>Get paid without chasing.<\/h4><p>Send invoices in seconds, see who has paid at a glance, and let polite reminders go out on their own.<\/p><ul><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Invoices tracked from send to paid<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Automatic payment reminders<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Taxes set aside as you earn<\/li><\/ul><\/span><\/button>\n    <button class=\"k-uc-row\" data-uc-row type=\"button\" aria-expanded=\"false\"><span class=\"k-uc-head\"><span class=\"no\">02<\/span><span class=\"lb\">Small businesses<\/span><span class=\"pl\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><\/span><\/span><span class=\"k-uc-body\"><h4>Every way you earn, one ledger.<\/h4><p>Shops, invoices and payouts land in one place, so the week closes itself instead of your Sunday.<\/p><ul><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Revenue and orders in real time<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Refunds without the spreadsheet<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Progress toward monthly goals<\/li><\/ul><\/span><\/button>\n    <button class=\"k-uc-row\" data-uc-row type=\"button\" aria-expanded=\"false\"><span class=\"k-uc-head\"><span class=\"no\">03<\/span><span class=\"lb\">Finance teams<\/span><span class=\"pl\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><\/span><\/span><span class=\"k-uc-body\"><h4>Close the month in days.<\/h4><p>Reconciliation, exceptions and exports follow the same checklist every month \u2014 auditable by construction.<\/p><ul><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Reconcile with a paper trail<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Exceptions flagged, not buried<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> One-click ledger export<\/li><\/ul><\/span><\/button>\n    <button class=\"k-uc-row\" data-uc-row type=\"button\" aria-expanded=\"false\"><span class=\"k-uc-head\"><span class=\"no\">04<\/span><span class=\"lb\">Founders<\/span><span class=\"pl\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg><\/span><\/span><span class=\"k-uc-body\"><h4>Know the runway, always.<\/h4><p>Burn, cash and runway stay current without a finance hire, so the next decision is made on numbers, not vibes.<\/p><ul><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Runway computed daily<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Burn by category<\/li><li><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Cash across every account<\/li><\/ul><\/span><\/button>\n  <\/div>\n  <div class=\"k-uc-stage\">\n    <div class=\"k-aurora\" aria-hidden=\"true\"><i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i><\/div>\n    <div class=\"k-uc-scene\" data-uc-scene><div class=\"k-glass\" data-theme=\"dark\"><div class=\"k-glass-h\">Invoices <span>Current<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">1<\/span>Nordic Studio<span class=\"k-glass-val\">Paid<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">2<\/span>Kessler GmbH<span class=\"k-glass-val\">Due in 3 days<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">3<\/span>Harbourlight<span class=\"k-glass-val\">Overdue<\/span><\/div><button type=\"button\" class=\"btn btn-pri btn-md\" style=\"width:100%;margin-top:var(--k-space-3)\">Send reminder<\/button><\/div><\/div><div class=\"k-uc-scene\" data-uc-scene hidden><div class=\"k-glass\" data-theme=\"dark\"><div class=\"k-glass-h\">This week <span>Overview<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">1<\/span>Revenue<span class=\"k-glass-val\">$12,480<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">2<\/span>Orders<span class=\"k-glass-val\">312<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">3<\/span>Refunds<span class=\"k-glass-val\">4<\/span><\/div><div style=\"margin-top:var(--k-space-3)\"><div class=\"k-progress\" data-tone=\"accent\"><div class=\"k-progress-bar\" style=\"width:68%\"><\/div><\/div><\/div><\/div><\/div><div class=\"k-uc-scene\" data-uc-scene hidden><div class=\"k-glass\" data-theme=\"dark\"><div class=\"k-glass-h\">Month-end close <span>Checklist<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">\u2713<\/span>Reconcile accounts<span class=\"k-glass-val\">Done<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">\u2713<\/span>Review exceptions<span class=\"k-glass-val\">Done<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">3<\/span>Export to ledger<span class=\"k-glass-val\">Next<\/span><\/div><\/div><\/div><div class=\"k-uc-scene\" data-uc-scene hidden><div class=\"k-glass\" data-theme=\"dark\"><div class=\"k-glass-h\">Runway <span>At current burn<\/span><\/div><div style=\"padding:var(--k-space-3) 0 var(--k-space-0-5)\"><b style=\"font-size:var(--k-text-3xl);font-weight:650;letter-spacing:-.02em\">14.2<\/b> <span style=\"color:var(--k-ink-3);font-size:var(--k-text-sm)\">months<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">1<\/span>Burn \/ month<span class=\"k-glass-val\">$38,200<\/span><\/div><div class=\"k-glass-row\"><span class=\"k-glass-num\">2<\/span>Cash<span class=\"k-glass-val\">$542,000<\/span><\/div><\/div><\/div>\n  <\/div>\n<\/section>"}],"meta":{"status":"beta","usage":"For the \"who is it for\" section of a landing page. Each case pairs a promise on the left with its evidence on the right \u2014 a working screen fragment built from catalog parts. Listen for the chosen case:\n\n```js\ndocument.addEventListener('kata-use-cases-change', event => {\n  console.log(event.detail.index);\n});\n```","accessibility":"Each case is a button with aria-expanded that controls its scene. Up\/Down move focus between cases (Home\/End jump), and Enter or Space opens one; only the open case's scene is shown. Each section switches independently. The buttons still contain their headings and lists, which screen readers read as one long button name; splitting them is follow-up work. Screen-reader output is not yet verified by hand."},"audit":{"id":"blocks\/use-cases","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"blog-article","type":"registry:page","title":"Blog Article","description":"A long-form article page: standfirst, prose rhythm, a contents rail, and the author card that earns the follow.","categories":["Templates"],"dependencies":["avatar","badge","button"],"files":[{"path":"templates\/blog-article\/blog-article.css","type":"registry:page","content":"\/* KATA blog-article 1.1.0 \u2014 kata-ui.dev\/templates\/blog-article \u2014 requires mold >= 5 *\/\n\/* KATA Template: Blog Article *\/\n.k-tpl-bl{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-7) var(--k-space-6);font-family:var(--k-font);color:var(--k-ink)}\n.k-tpl-bl-grid{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:var(--k-space-8);max-width:920px;margin:0 auto}\n.k-tpl-bl h1{font-size:var(--k-text-3xl);font-weight:700;letter-spacing:-.025em;line-height:var(--k-lh-heading);margin:var(--k-space-3) 0 var(--k-space-2)}\n.k-tpl-bl .stand{font-size:var(--k-text-lg);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.012em}\n.k-tpl-bl-by{display:flex;align-items:center;gap:var(--k-space-3);margin:var(--k-space-4) 0 var(--k-space-5);padding:var(--k-space-3) 0;border-top:1px solid var(--k-line);border-bottom:1px solid var(--k-line)}\n.k-tpl-bl-by b{font-size:var(--k-text-base);display:block}\n.k-tpl-bl-by span{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-tpl-bl-by .btn{margin-inline-start:auto}\n.k-tpl-bl-hero{border-radius:var(--k-radius-lg);background:linear-gradient(150deg, var(--k-zinc-700), var(--k-zinc-950));min-height:190px;display:flex;align-items:center;justify-content:center;color:var(--k-zinc-400);font-size:var(--k-text-sm);letter-spacing:.14em;margin-bottom:var(--k-space-2)}\n.k-tpl-bl-cap{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-bottom:var(--k-space-5);text-align:center}\n.k-tpl-bl-prose{font-size:var(--k-text-lead);line-height:var(--k-lh-loose);color:var(--k-ink);letter-spacing:.012em}\n.k-tpl-bl-prose p{margin-bottom:var(--k-space-4)}\n.k-tpl-bl-prose h2{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.018em;margin:var(--k-space-6) 0 var(--k-space-2)}\n.k-tpl-bl-prose blockquote{border-inline-start:3px solid var(--k-accent);padding:var(--k-space-0-5) 0 var(--k-space-0-5) var(--k-space-4);margin:var(--k-space-5) 0;font-size:var(--k-text-lg);line-height:var(--k-lh-body);color:var(--k-ink);letter-spacing:.012em}\n.k-tpl-bl-prose code{font-family:var(--k-mono,monospace);font-size:var(--k-text-code);background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-sm);padding:var(--k-space-px) var(--k-space-1)}\n.k-tpl-bl-prose pre{background:var(--k-zinc-950);color:var(--k-zinc-100);border-radius:var(--k-radius-lg);padding:var(--k-space-4) var(--k-space-4);overflow-x:auto;margin:var(--k-space-4) 0}\n.k-tpl-bl-prose pre code{background:none;border:0;padding:0;color:inherit}\n.k-tpl-bl-prose ul{margin:0 0 var(--k-space-4);padding-inline-start:var(--k-space-5)}\n.k-tpl-bl-prose li{margin-bottom:var(--k-space-1)}\n.k-tpl-bl-toc{position:sticky;top:14px;font-size:var(--k-text-sm)}\n.k-tpl-bl-toc h4{font-size:var(--k-text-xs);font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:var(--k-ink-3);margin-bottom:var(--k-space-2)}\n.k-tpl-bl-toc a{display:block;padding:var(--k-space-1) 0 var(--k-space-1) var(--k-space-3);color:var(--k-ink-2);text-decoration:none;border-inline-start:2px solid var(--k-line)}\n.k-tpl-bl-toc a.on{color:var(--k-ink);font-weight:600;border-inline-start-color:var(--k-accent)}\n.k-tpl-bl-author{display:flex;gap:var(--k-space-3);border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-4);margin-top:var(--k-space-6);align-items:flex-start}\n.k-tpl-bl-author b{font-size:var(--k-text-md)}\n.k-tpl-bl-author p{font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);margin-top:var(--k-space-1);letter-spacing:.01em}\n.k-tpl-bl-nav{display:grid;grid-template-columns:1fr 1fr;gap:var(--k-space-3);margin-top:var(--k-space-4)}\n.k-tpl-bl-nav a{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3);text-decoration:none;color:var(--k-ink)}\n.k-tpl-bl-nav span{font-size:var(--k-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);display:block;margin-bottom:var(--k-space-1)}\n.k-tpl-bl-nav b{font-size:var(--k-text-base);font-weight:600;line-height:var(--k-lh-small);display:block}\n@media (max-width:820px){.k-tpl-bl-grid{grid-template-columns:1fr}.k-tpl-bl-toc{display:none}.k-tpl-bl-nav{grid-template-columns:1fr}}\n"},{"path":"templates\/blog-article\/example.html","type":"registry:page","content":"<!-- KATA blog-article 1.1.0 \u2014 kata-ui.dev\/templates\/blog-article \u2014 requires mold >= 5 -->\n<div class=\"k-tpl-bl\">\n  <div class=\"k-tpl-bl-grid\">\n    <article>\n      <span class=\"badge asagi\">Process<\/span>\n      <h1>One mold, every casting: how we stopped redesigning the button<\/h1>\n      <p class=\"stand\">For a year, every page we shipped redesigned the same twelve parts. The fix was not a bigger design system \u2014 it was a smaller one, with a checklist and the nerve to say no.<\/p>\n      <div class=\"k-tpl-bl-by\">\n        <span class=\"k-avatar\" aria-hidden=\"true\">MS<\/span>\n        <div><b>Mara Sato<\/b><span>Nov 2, 2026 \u00b7 6 min read<\/span><\/div>\n        <button class=\"btn btn-sm\" type=\"button\">Follow<\/button>\n      <\/div>\n      <div class=\"k-tpl-bl-hero\">FIGURE \u2014 THE MOLD, PHOTOGRAPHED FROM ABOVE<\/div>\n      <p class=\"k-tpl-bl-cap\">The master mold for the current catalog. Every part on the site began as a casting from it.<\/p>\n      <div class=\"k-tpl-bl-prose\">\n        <p>Every team has the drawer: forty-one buttons, each built for one page, each slightly proud of its radius. Ours lived in production. Auditing it took a week and produced the least surprising finding in software \u2014 the differences were not decisions. They were weather.<\/p>\n        <h2 id=\"bl-s1\">The audit nobody wanted<\/h2>\n        <p>We listed every part on every page and marked the differences worth keeping. Of 214 variations, 11 were deliberate. The rest were the same idea re-typed by different people on different Tuesdays, and each one cost maintenance forever.<\/p>\n        <blockquote>A design system is not a library of answers. It is a short list of questions you have agreed to stop re-asking.<\/blockquote>\n        <p>The mold came out of that list: one token file, a page template, and an automated check that fails a part the way a foreman rejects a bad casting \u2014 specifically, and before it ships.<\/p>\n        <h2 id=\"bl-s2\">What the check actually checks<\/h2>\n        <p>Files first, then tokens, then class coverage: every class used in a preview must be defined by the part itself or a declared dependency. The rule sounds clerical until the first time it catches a part quietly depending on another part\u2019s stylesheet \u2014 which was week one.<\/p>\n        <pre><code>python3 check.py\n136\/136 components pass the mold<\/code><\/pre>\n        <p>Three rules did most of the work:<\/p>\n        <ul>\n          <li>Colors come from tokens, never from hex \u2014 themes stay possible.<\/li>\n          <li>Every class a part shows is a class the part defines.<\/li>\n          <li>A release needs three clean passes in a row, not one lucky one.<\/li>\n        <\/ul>\n        <h2 id=\"bl-s3\">What we would not do again<\/h2>\n        <p>We would not start with the logo, the marketing page, or 2,000 icons. We would start with the button, the input, and the argument about tokens \u2014 in that order, because the argument is the system and the rest is inventory.<\/p>\n      <\/div>\n      <div class=\"k-tpl-bl-author\">\n        <span class=\"k-avatar\" aria-hidden=\"true\">MS<\/span>\n        <div><b>Written by Mara Sato<\/b><p>Design lead at Acme Studio. Owns the tokens, the mold, and strong opinions about border radii. Previously: three design systems that did not survive contact with a roadmap.<\/p><\/div>\n      <\/div>\n      <div class=\"k-tpl-bl-nav\">\n        <a href=\"\/templates\/blog-article\/\"><span>Newer<\/span><b>RTL is a direction, not a stylesheet<\/b><\/a>\n        <a href=\"\/templates\/blog-article\/\"><span>Older<\/span><b>The QR encoder we wrote from the spec, and the two bugs it caught<\/b><\/a>\n      <\/div>\n    <\/article>\n    <aside>\n      <nav class=\"k-tpl-bl-toc\" aria-label=\"Contents\">\n        <h4>Contents<\/h4>\n        <a href=\"#bl-s1\" class=\"on\">The audit nobody wanted<\/a>\n        <a href=\"#bl-s2\">What the check actually checks<\/a>\n        <a href=\"#bl-s3\">What we would not do again<\/a>\n      <\/nav>\n    <\/aside>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The prose column is set for reading: a 17px body on a 1.85 line height inside a measure near 65 characters, headings that arrive like chapter breaks, and a contents rail that sticks on wide screens. Swap the article, keep the rhythm \u2014 the typography is the template. Figures are gradient stand-ins for your images, captions included because images without captions are decorations.","accessibility":"One h1, headings in order, and the contents rail is a nav with real anchor links. The byline gives the date in text, the read time is plain text, and code blocks scroll horizontally instead of breaking the measure."},"audit":{"id":"templates\/blog-article","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":5},{"name":"checkout","type":"registry:page","title":"Checkout","description":"A complete checkout page: steps, shipping and payment forms, and a sticky order summary with the running total.","categories":["Templates"],"dependencies":["steps","input","select","checkbox","button"],"files":[{"path":"templates\/checkout\/checkout.css","type":"registry:page","content":"\/* KATA checkout 1.1.0 \u2014 kata-ui.dev\/templates\/checkout \u2014 requires mold >= 4 *\/\n\/* KATA Template: Checkout *\/\n.k-tpl-co{background:var(--k-bg-soft);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);font-family:var(--k-font);color:var(--k-ink)}\n.k-tpl-co-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--k-space-3);margin-bottom:var(--k-space-4)}\n.k-tpl-co-head h2{font-size:var(--k-text-xl);font-weight:650;letter-spacing:-.02em}\n.k-tpl-co-head span{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-tpl-co-grid{display:grid;grid-template-columns:1fr 320px;gap:var(--k-space-5);align-items:start}\n.k-tpl-co-card{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-5);margin-bottom:var(--k-space-4)}\n.k-tpl-co-card h3{font-size:var(--k-text-lead);font-weight:650;margin-bottom:var(--k-space-3)}\n.k-tpl-co-form{display:grid;grid-template-columns:1fr 1fr;gap:var(--k-space-3)}\n.k-tpl-co-form .full{grid-column:1\/-1}\n.k-tpl-co-sum{position:sticky;top:16px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-5)}\n.k-tpl-co-sum h3{font-size:var(--k-text-lead);font-weight:650;margin-bottom:var(--k-space-3)}\n.k-tpl-co-item{display:flex;justify-content:space-between;gap:var(--k-space-2);font-size:var(--k-text-base);padding:var(--k-space-2) 0;border-bottom:1px solid var(--k-line)}\n.k-tpl-co-item span{color:var(--k-ink-2)}\n.k-tpl-co-row{display:flex;justify-content:space-between;font-size:var(--k-text-base);padding:var(--k-space-1) 0;color:var(--k-ink-2)}\n.k-tpl-co-total{display:flex;justify-content:space-between;font-size:var(--k-text-lead);font-weight:700;padding-top:var(--k-space-3);margin-top:var(--k-space-2);border-top:2px solid var(--k-line)}\n.k-tpl-co-note{font-size:var(--k-text-xs);line-height:var(--k-lh-body);color:var(--k-ink-3);margin-top:var(--k-space-3);text-align:center}\n@media (max-width:820px){.k-tpl-co-grid{grid-template-columns:1fr}.k-tpl-co-sum{position:static;order:-1}}\n"},{"path":"templates\/checkout\/example.html","type":"registry:page","content":"<!-- KATA checkout 1.1.0 \u2014 kata-ui.dev\/templates\/checkout \u2014 requires mold >= 4 -->\n<div class=\"k-tpl-co\">\n  <div class=\"k-tpl-co-head\"><h2>Acme Studio \u2014 Checkout<\/h2><span>Secure \u00b7 TLS everywhere<\/span><\/div>\n  <ol class=\"k-steps\" style=\"margin-bottom:var(--k-space-5)\">\n    <li data-state=\"done\"><span class=\"n\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg><\/span><span class=\"t\">Cart<\/span><\/li>\n    <li data-state=\"current\" aria-current=\"step\"><span class=\"n\"><\/span><span class=\"t\">Shipping &amp; payment<\/span><\/li>\n    <li><span class=\"n\">3<\/span><span class=\"t\">Done<\/span><\/li>\n  <\/ol>\n  <div class=\"k-tpl-co-grid\">\n    <div>\n      <div class=\"k-tpl-co-card\">\n        <h3>Shipping<\/h3>\n        <div class=\"k-tpl-co-form\">\n          <div class=\"field\"><label for=\"co-name\">Full name<\/label><input class=\"input\" id=\"co-name\" value=\"Ren Aoki\" autocomplete=\"name\"><\/div>\n          <div class=\"field\"><label for=\"co-mail\">Email<\/label><input class=\"input\" id=\"co-mail\" value=\"ren@example.com\" autocomplete=\"email\"><\/div>\n          <div class=\"field full\"><label for=\"co-addr\">Address<\/label><input class=\"input\" id=\"co-addr\" value=\"2-14 Sakura-dori\" autocomplete=\"street-address\"><\/div>\n          <div class=\"field\"><label for=\"co-city\">City<\/label><input class=\"input\" id=\"co-city\" value=\"Nagoya\"><\/div>\n          <div class=\"field\"><label for=\"co-ship\">Delivery<\/label><select class=\"k-select\" id=\"co-ship\"><option>Standard \u2014 free, 3\u20135 days<\/option><option>Express \u2014 $12, tomorrow<\/option><\/select><\/div>\n        <\/div>\n      <\/div>\n      <div class=\"k-tpl-co-card\">\n        <h3>Payment<\/h3>\n        <div class=\"k-tpl-co-form\">\n          <div class=\"field full\"><label for=\"co-card\">Card number<\/label><input class=\"input\" id=\"co-card\" value=\"4242 4242 4242 4242\" inputmode=\"numeric\"><\/div>\n          <div class=\"field\"><label for=\"co-exp\">Expiry<\/label><input class=\"input\" id=\"co-exp\" value=\"12 \/ 28\"><\/div>\n          <div class=\"field\"><label for=\"co-cvc\">CVC<\/label><input class=\"input\" id=\"co-cvc\" value=\"424\"><\/div>\n          <label class=\"check full\"><input type=\"checkbox\" checked>Billing address is the shipping address<\/label>\n        <\/div>\n      <\/div>\n    <\/div>\n    <aside class=\"k-tpl-co-sum\">\n      <h3>Order summary<\/h3>\n      <div class=\"k-tpl-co-item\"><span>KATA Pro \u2014 lifetime<\/span><b>$129<\/b><\/div>\n      <div class=\"k-tpl-co-item\"><span>Mold poster, A2<\/span><b>$24<\/b><\/div>\n      <div class=\"k-tpl-co-item\"><span>Sticker pack \u00d72<\/span><b>$10<\/b><\/div>\n      <div class=\"k-tpl-co-row\"><span>Subtotal<\/span><span>$163<\/span><\/div>\n      <div class=\"k-tpl-co-row\"><span>Shipping<\/span><span>Free<\/span><\/div>\n      <div class=\"k-tpl-co-total\"><span>Total<\/span><span>$163<\/span><\/div>\n      <button class=\"btn btn-pri btn-lg\" type=\"button\" style=\"width:100%;margin-top:var(--k-space-4)\">Place order \u2014 $163<\/button>\n      <p class=\"k-tpl-co-note\">Demo storefront: no card is charged, no order ships, the poster remains hypothetical.<\/p>\n    <\/aside>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Copy the page and rewire the forms; every field is an ordinary KATA part with its own page. The summary column is sticky on desktop and stacks above the form on mobile (totals first, no surprises). Nothing here processes a payment \u2014 connect your provider at the Place order button, where the page ends and liability begins.","accessibility":"Labels are real labels tied to inputs, the steps carry aria-current, and the total appears before the button in reading order. Errors belong under their fields in words, not just in red."},"audit":{"id":"templates\/checkout","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"dashboard","type":"registry:page","title":"Dashboard","description":"A product dashboard page: app sidebar with grouped navigation, a four-stat row, a revenue line chart and a sortable orders table \u2014 a whole screen composed from KATA parts.","categories":["Templates"],"dependencies":["stat","line-chart","data-table","badge","button","input","avatar"],"files":[{"path":"templates\/dashboard\/dashboard.css","type":"registry:page","content":"\/* KATA dashboard 1.1.0 \u2014 kata-ui.dev\/templates\/dashboard \u2014 requires mold >= 4 *\/\n.k-tpl-dash{display:grid;grid-template-columns:228px 1fr;background:var(--k-bg);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;min-height:660px;font-family:var(--k-font);text-align:start}\n.k-tpl-side{background:var(--k-bg-soft);border-inline-end:1px solid var(--k-line);padding:var(--k-space-4) var(--k-space-3);display:flex;flex-direction:column;gap:var(--k-space-1)}\n.k-tpl-brand{display:flex;align-items:center;gap:var(--k-space-2);font-weight:600;font-size:var(--k-text-lead);padding:var(--k-space-0-5) var(--k-space-1) var(--k-space-3)}\n.k-tpl-logo{width:24px;height:24px;border-radius:var(--k-radius-md);border:2px solid var(--k-ink);display:grid;place-items:center;flex:none}\n.k-tpl-logo i{width:8px;height:8px;border-radius:var(--k-radius-xs);background:var(--k-core);display:block}\n.k-tpl-navlbl{font-size:var(--k-text-xs);letter-spacing:.1em;color:var(--k-ink-2);margin:var(--k-space-3) var(--k-space-2) var(--k-space-1);font-weight:650;line-height:var(--k-lh-heading)}\n.k-tpl-nav{display:grid;gap:var(--k-space-0-5)}\n.k-tpl-nav a{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);color:var(--k-ink-2);text-decoration:none;font-size:var(--k-text-base);letter-spacing:.01em}\n.k-tpl-nav a:hover{background:color-mix(in srgb,var(--k-ink) 5%,transparent);color:var(--k-ink)}\n.k-tpl-nav a.on{background:color-mix(in srgb,var(--k-ink) 7%,transparent);color:var(--k-ink);font-weight:550}\n.k-tpl-nav a.on svg{color:var(--k-core)}\n.k-tpl-user{margin-top:auto;display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-1) var(--k-space-0-5);border-top:1px solid var(--k-line)}\n.k-tpl-uname{font-size:var(--k-text-base);font-weight:550;line-height:var(--k-lh-heading);display:grid}\n.k-tpl-uname small{font-size:var(--k-text-xs);color:var(--k-ink-3);font-weight:400}\n.k-tpl-main{padding:var(--k-space-5) var(--k-space-6) var(--k-space-6);display:flex;flex-direction:column;gap:var(--k-space-4);min-width:0}\n.k-tpl-top{display:flex;align-items:flex-start;gap:var(--k-space-4);flex-wrap:wrap}\n.k-tpl-title h2{font-size:var(--k-text-xl);font-weight:600;letter-spacing:-.02em}\n.k-tpl-title p{margin-top:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.k-tpl-actions{margin-inline-start:auto;display:flex;align-items:center;gap:var(--k-space-2)}\n.k-tpl-search{display:flex;align-items:center;gap:var(--k-space-2);color:var(--k-ink-3)}\n.k-tpl-search .input{width:210px}\n.k-tpl-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--k-space-3)}\n.k-tpl-card{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-4) var(--k-space-5);background:var(--k-bg)}\n@media (max-width:760px){.k-tpl-stats{grid-template-columns:1fr 1fr}}\n@media (max-width:560px){.k-tpl-dash{grid-template-columns:1fr}.k-tpl-side{display:none}.k-tpl-search .input{width:140px}}\n\n.k-tpl-dash .k-line-chart svg{overflow:visible}\n"},{"path":"templates\/dashboard\/example.html","type":"registry:page","content":"<!-- KATA dashboard 1.1.0 \u2014 kata-ui.dev\/templates\/dashboard \u2014 requires mold >= 4 -->\n<div class=\"k-tpl-dash\">\n  <aside class=\"k-tpl-side\">\n    <div class=\"k-tpl-brand\"><span class=\"k-tpl-logo\"><i><\/i><\/span>Acme Studio<\/div>\n    <p class=\"k-tpl-navlbl\">General<\/p>\n    <nav class=\"k-tpl-nav\">\n      <a href=\"#\" class=\"on\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m3 11 9-8 9 8\"\/><path d=\"M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5\"\/><\/svg><span>Overview<\/span><\/a>\n      <a href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3.5 3.5v17h17\"\/><path d=\"m7 14.5 4-4 3.5 3L19 8.5\"\/><\/svg><span>Analytics<\/span><\/a>\n      <a href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"9\" cy=\"8.5\" r=\"3.4\"\/><path d=\"M2.8 20c.7-3.4 3.2-5.2 6.2-5.2s5.5 1.8 6.2 5.2\"\/><path d=\"M16 5.4a3.4 3.4 0 0 1 0 6.4M18.5 15.4c1.5.8 2.5 2.4 2.9 4.6\"\/><\/svg><span>Customers<\/span><\/a>\n      <a href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\"\/><\/svg><span>Products<\/span><\/a>\n    <\/nav>\n    <p class=\"k-tpl-navlbl\">Workspace<\/p>\n    <nav class=\"k-tpl-nav\">\n      <a href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"2.5\" y=\"5.5\" width=\"19\" height=\"13\" rx=\"2\"\/><path d=\"M2.5 10h19\"\/><\/svg><span>Billing<\/span><\/a>\n      <a href=\"#\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M3 6h10M17 6h4M3 12h4M11 12h10M3 18h12M19 18h2\"\/><circle cx=\"15\" cy=\"6\" r=\"2\"\/><circle cx=\"9\" cy=\"12\" r=\"2\"\/><circle cx=\"17\" cy=\"18\" r=\"2\"\/><\/svg><span>Settings<\/span><\/a>\n    <\/nav>\n    <div class=\"k-tpl-user\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">AK<\/span><span class=\"k-tpl-uname\">Aoi Kimura<small>Admin<\/small><\/span><\/div>\n  <\/aside>\n  <div class=\"k-tpl-main\">\n    <header class=\"k-tpl-top\">\n      <div class=\"k-tpl-title\"><h2>Overview<\/h2><p>Welcome back \u2014 here is what's happening across your studio.<\/p><\/div>\n      <div class=\"k-tpl-actions\">\n        <span class=\"k-tpl-search\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><input class=\"input\" type=\"search\" placeholder=\"Search orders, customers\u2026\" aria-label=\"Search\"><\/span>\n        <button class=\"btn btn-sec\" type=\"button\" aria-label=\"Notifications\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M18 16H6c.6-1.2 1-2.6 1-4.5V10a5 5 0 0 1 10 0v1.5c0 1.9.4 3.3 1 4.5Z\"\/><path d=\"M10 20a2 2 0 0 0 4 0\"\/><\/svg><\/button>\n        <span class=\"k-avatar\" data-size=\"sm\" data-status role=\"img\" aria-label=\"Aoi Kimura, online\">AK<\/span>\n      <\/div>\n    <\/header>\n    <section class=\"k-tpl-stats\">\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Revenue<\/div><div class=\"k-stat-val\">$48,250<\/div><span class=\"k-stat-delta\">\u2191 12.5% vs last month<\/span><\/div>\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Active users<\/div><div class=\"k-stat-val\">3,842<\/div><span class=\"k-stat-delta\">\u2191 8.1% vs last month<\/span><\/div>\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Orders<\/div><div class=\"k-stat-val\">1,204<\/div><span class=\"k-stat-delta\">\u2191 3.4% vs last month<\/span><\/div>\n      <div class=\"k-stat\"><div class=\"k-stat-lbl\">Conversion<\/div><div class=\"k-stat-val\">3.2%<\/div><span class=\"k-stat-delta\" data-dir=\"down\">\u2193 0.4 pt vs last month<\/span><\/div>\n    <\/section>\n    <section class=\"k-tpl-card\">\n      <figure class=\"k-line-chart\" role=\"img\" aria-label=\"Revenue grew steadily across the last twelve months\" style=\"width:100%\">\n        <figcaption>Revenue <span>Last 12 months, USD<\/span><\/figcaption>\n        <svg viewBox=\"0 0 560 190\" aria-hidden=\"true\">\n          <line x1=\"0\" y1=\"30\" x2=\"560\" y2=\"30\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"79\" x2=\"560\" y2=\"79\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"128\" x2=\"560\" y2=\"128\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/><line x1=\"0\" y1=\"178\" x2=\"560\" y2=\"178\" style=\"stroke:var(--k-line)\" stroke-width=\"1\"\/>\n          <path d=\"M0.0,143.2 L50.9,130.6 L101.8,136.9 L152.7,118.0 L203.6,124.3 L254.5,103.7 L305.5,111.6 L356.4,91.1 L407.3,99.0 L458.2,78.5 L509.1,86.4 L560.0,65.8 L560,186 L0,186 Z\" style=\"fill:color-mix(in srgb,var(--k-accent) 13%,transparent)\"\/>\n          <path class=\"line\" pathLength=\"1\" d=\"M0.0,143.2 L50.9,130.6 L101.8,136.9 L152.7,118.0 L203.6,124.3 L254.5,103.7 L305.5,111.6 L356.4,91.1 L407.3,99.0 L458.2,78.5 L509.1,86.4 L560.0,65.8\"\/>\n          <circle cx=\"560.0\" cy=\"65.8\" r=\"5.5\" style=\"fill:var(--k-core);stroke:var(--k-bg)\" stroke-width=\"2\"\/>\n        <\/svg>\n        <div class=\"x\"><span>Jan<\/span><span>Mar<\/span><span>May<\/span><span>Jul<\/span><span>Sep<\/span><span>Nov<\/span><\/div>\n      <\/figure>\n    <\/section>\n    <section class=\"k-tpl-card\">\n      <div class=\"k-dt\" data-dt>\n        <div class=\"k-dt-scroll\" role=\"region\" aria-label=\"Recent orders\" tabindex=\"0\">\n          <table class=\"k-dt-t\" aria-label=\"Recent orders\">\n            <thead><tr>\n              <th>Order<\/th>\n              <th>Customer<\/th>\n              <th>Status<\/th>\n              <th class=\"num\"><button class=\"k-dt-sort\" data-sort=\"num\" data-dir=\"\" type=\"button\">Total <span class=\"arr\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span><\/button><\/th>\n            <\/tr><\/thead>\n            <tbody><tr><td style=\"font-weight:550\">ORD-1042<\/td><td>Aoi Kimura<\/td><td><span class=\"badge asagi\">Paid<\/span><\/td><td class=\"num\" data-v=\"4820\">$4,820<\/td><\/tr><tr><td style=\"font-weight:550\">ORD-1041<\/td><td>Ren Sato<\/td><td><span class=\"badge asagi\">Paid<\/span><\/td><td class=\"num\" data-v=\"3950\">$3,950<\/td><\/tr><tr><td style=\"font-weight:550\">ORD-1040<\/td><td>Mei Chen<\/td><td><span class=\"badge yamabuki\">Pending<\/span><\/td><td class=\"num\" data-v=\"1280\">$1,280<\/td><\/tr><tr><td style=\"font-weight:550\">ORD-1039<\/td><td>Jonas Berg<\/td><td><span class=\"badge asagi\">Paid<\/span><\/td><td class=\"num\" data-v=\"2715\">$2,715<\/td><\/tr><tr><td style=\"font-weight:550\">ORD-1038<\/td><td>Priya Nair<\/td><td><span class=\"badge red\">Failed<\/span><\/td><td class=\"num\" data-v=\"980\">$980<\/td><\/tr><\/tbody>\n          <\/table>\n        <\/div>\n        <div class=\"k-dt-f\">5 orders<span class=\"pg\"><button type=\"button\" class=\"btn btn-sec btn-sm\" disabled>Previous<\/button><button type=\"button\" class=\"btn btn-sec btn-sm\">Next<\/button><\/span><\/div>\n      <\/div>\n    <\/section>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"Copy the page as a starting shell, then swap the parts: the sidebar navigation, the stat row, the chart and the table are ordinary KATA parts with their own pages in the catalog. The table's sorting behavior comes from the Data Table part's script \u2014 include it alongside. Replace the fixture numbers and rows with your own data; nothing in the page phones home.","accessibility":""},"audit":{"id":"templates\/dashboard","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"inbox","type":"registry:page","title":"Inbox","description":"A mail client page in three panes: folders and labels, a message list with unread states, and a reading pane with a reply box \u2014 composed from KATA parts.","categories":["Templates"],"dependencies":["avatar","badge","button","input","textarea","separator"],"files":[{"path":"templates\/inbox\/inbox.css","type":"registry:page","content":"\/* KATA inbox 1.1.0 \u2014 kata-ui.dev\/templates\/inbox \u2014 requires mold >= 4 *\/\n.k-tpl3{display:grid;grid-template-columns:206px 322px 1fr;background:var(--k-bg);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;min-height:660px;font-family:var(--k-font);text-align:start}\n.k-tpl3-rail{padding:var(--k-space-4) var(--k-space-3);border-inline-end:1px solid var(--k-line);background:var(--k-bg-soft);display:flex;flex-direction:column;gap:var(--k-space-1)}\n.k-tpl3-compose{width:100%;justify-content:center;margin-bottom:var(--k-space-3)}\n.k-tpl3-folders{display:grid;gap:var(--k-space-0-5)}\n.k-tpl3-folders a{display:flex;align-items:center;gap:var(--k-space-2);padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);color:var(--k-ink-2);text-decoration:none;font-size:var(--k-text-base);letter-spacing:.01em}\n.k-tpl3-folders a>span:nth-child(2){flex:1}\n.k-tpl3-folders a:hover{background:color-mix(in srgb,var(--k-ink) 5%,transparent);color:var(--k-ink)}\n.k-tpl3-folders a.on{background:color-mix(in srgb,var(--k-ink) 7%,transparent);color:var(--k-ink);font-weight:550}\n.k-tpl3-lbl{font-size:var(--k-text-xs);letter-spacing:.1em;color:var(--k-ink-2);margin:var(--k-space-4) var(--k-space-2) var(--k-space-1);font-weight:650;line-height:var(--k-lh-heading)}\n.k-tpl3-labels{display:grid;gap:var(--k-space-2);padding:0 var(--k-space-2);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.k-tpl3-labels span{display:flex;align-items:center;gap:var(--k-space-2)}\n.k-tpl3-labels i{width:8px;height:8px;border-radius:50%;display:block}\n.k-tpl3-list{border-inline-end:1px solid var(--k-line);display:flex;flex-direction:column;min-width:0}\n.k-tpl3-lhead{padding:var(--k-space-3);border-bottom:1px solid var(--k-line)}\n.k-tpl3-search{display:flex;align-items:center;gap:var(--k-space-2);color:var(--k-ink-3)}\n.k-tpl3-search .input{flex:1;min-width:0}\n.k-tpl3-msgs{display:flex;flex-direction:column}\n.k-tpl3-msg{display:flex;gap:var(--k-space-2);padding:var(--k-space-3) var(--k-space-3);border-bottom:1px solid var(--k-line);cursor:pointer;position:relative}\n.k-tpl3-msg:hover{background:color-mix(in srgb,var(--k-ink) 3%,transparent)}\n.k-tpl3-msg.sel{background:color-mix(in srgb,var(--k-accent) 7%,transparent)}\n.k-tpl3-mb{min-width:0;flex:1}\n.k-tpl3-mt{display:flex;align-items:baseline;gap:var(--k-space-2)}\n.k-tpl3-mt b{font-size:var(--k-text-base);font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-tpl3-mt span{margin-inline-start:auto;font-size:var(--k-text-xs);color:var(--k-ink-3);flex:none}\n.k-tpl3-ms{font-size:var(--k-text-base);margin-top:var(--k-space-0-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-tpl3-msg.unread .k-tpl3-ms{font-weight:600}\n.k-tpl3-mp{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-top:var(--k-space-px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.k-tpl3-dot{position:absolute;right:12px;bottom:14px;width:7px;height:7px;border-radius:50%;background:var(--k-accent);color:var(--k-on-accent)}\n.k-tpl3-read{padding:var(--k-space-5) var(--k-space-6);display:flex;flex-direction:column;gap:var(--k-space-3);min-width:0}\n.k-tpl3-rt{display:flex;align-items:center;gap:var(--k-space-2)}\n.k-tpl3-rt h3{font-size:var(--k-text-xl);font-weight:600;letter-spacing:-.015em}\n.k-tpl3-sender{display:flex;align-items:center;gap:var(--k-space-3)}\n.k-tpl3-swho{display:grid;line-height:var(--k-lh-card)}\n.k-tpl3-swho b{font-size:var(--k-text-base);font-weight:550}\n.k-tpl3-swho span{font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-tpl3-time{margin-inline-start:auto;font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-tpl3-body{display:grid;gap:var(--k-space-3);font-size:var(--k-text-md);line-height:var(--k-lh-body);color:var(--k-ink);letter-spacing:.012em}\n.k-tpl3-reply{margin-top:auto;display:grid;gap:var(--k-space-2)}\n.k-tpl3-ractions{display:flex;gap:var(--k-space-2)}\n@media (max-width:900px){.k-tpl3{grid-template-columns:206px 1fr}.k-tpl3-read{display:none}}\n@media (max-width:560px){.k-tpl3{grid-template-columns:1fr}.k-tpl3-rail{display:none}}\n\/* The template frame clips overflow; the reply field draws its ring inside. *\/\n.k-tpl3 .k-textarea:focus{box-shadow:none;outline:2px solid var(--k-ink);outline-offset:-2px}\n"},{"path":"templates\/inbox\/example.html","type":"registry:page","content":"<!-- KATA inbox 1.1.0 \u2014 kata-ui.dev\/templates\/inbox \u2014 requires mold >= 4 -->\n<div class=\"k-tpl3\">\n  <aside class=\"k-tpl3-rail\">\n    <button class=\"btn btn-pri k-tpl3-compose\" type=\"button\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"\/><\/svg> Compose<\/button>\n    <nav class=\"k-tpl3-folders\">\n      <a href=\"#\" class=\"on\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"\/><path d=\"m3 7 9 6 9-6\"\/><\/svg><span>Inbox<\/span><span class=\"badge asagi\">4<\/span><\/a>\n      <a href=\"#\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><span>Starred<\/span><\/a>\n      <a href=\"#\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\"\/><path d=\"M14 3v5h5M9 13h6M9 17h6\"\/><\/svg><span>Drafts<\/span><span class=\"badge\">2<\/span><\/a>\n      <a href=\"#\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"M4 7h16M9 7V4h6v3M6.5 7l1 12a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2l1-12\"\/><path d=\"M10 11.5v5.5M14 11.5v5.5\"\/><\/svg><span>Trash<\/span><\/a>\n    <\/nav>\n    <p class=\"k-tpl3-lbl\">Labels<\/p>\n    <div class=\"k-tpl3-labels\">\n      <span><i style=\"background:var(--k-accent)\"><\/i>Clients<\/span>\n      <span><i style=\"background:var(--k-zinc-400)\"><\/i>Receipts<\/span>\n      <span><i style=\"background:color-mix(in srgb,var(--k-accent) 40%,var(--k-ink))\"><\/i>Travel<\/span>\n    <\/div>\n  <\/aside>\n  <section class=\"k-tpl3-list\">\n    <div class=\"k-tpl3-lhead\"><span class=\"k-tpl3-search\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"m21 21-4.5-4.5\"\/><\/svg><input class=\"input\" type=\"search\" placeholder=\"Search mail\" aria-label=\"Search mail\"><\/span><\/div>\n    <div class=\"k-tpl3-msgs\">\n      <div class=\"k-tpl3-msg sel unread\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">RS<\/span><div class=\"k-tpl3-mb\"><div class=\"k-tpl3-mt\"><b>Ren Sato<\/b><span>09:24<\/span><\/div><div class=\"k-tpl3-ms\">Q4 roadmap draft<\/div><div class=\"k-tpl3-mp\">I folded in the notes from Tuesday \u2014 the launch window moved\u2026<\/div><\/div><span class=\"k-tpl3-dot\"><\/span><\/div>\n      <div class=\"k-tpl3-msg unread\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">MC<\/span><div class=\"k-tpl3-mb\"><div class=\"k-tpl3-mt\"><b>Mei Chen<\/b><span>08:41<\/span><\/div><div class=\"k-tpl3-ms\">Invoice ORD-1040 is pending<\/div><div class=\"k-tpl3-mp\">The client asked to split the payment across two months\u2026<\/div><\/div><span class=\"k-tpl3-dot\"><\/span><\/div>\n      <div class=\"k-tpl3-msg unread\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">AR<\/span><div class=\"k-tpl3-mb\"><div class=\"k-tpl3-mt\"><b>Acme Reports<\/b><span>07:15<\/span><\/div><div class=\"k-tpl3-ms\">Your weekly report is ready<\/div><div class=\"k-tpl3-mp\">Revenue is up 12.5% \u2014 the full breakdown is inside\u2026<\/div><\/div><span class=\"k-tpl3-dot\"><\/span><\/div>\n      <div class=\"k-tpl3-msg\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">JB<\/span><div class=\"k-tpl3-mb\"><div class=\"k-tpl3-mt\"><b>Jonas Berg<\/b><span>Yesterday<\/span><\/div><div class=\"k-tpl3-ms\">Re: Landing page copy<\/div><div class=\"k-tpl3-mp\">Shorter headline works. One more pass on the sub-copy\u2026<\/div><\/div><\/div>\n      <div class=\"k-tpl3-msg\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"sm\">PN<\/span><div class=\"k-tpl3-mb\"><div class=\"k-tpl3-mt\"><b>Priya Nair<\/b><span>Yesterday<\/span><\/div><div class=\"k-tpl3-ms\">Design review moved to Friday<\/div><div class=\"k-tpl3-mp\">The client moved it \u2014 same agenda, new slot\u2026<\/div><\/div><\/div>\n    <\/div>\n  <\/section>\n  <section class=\"k-tpl3-read\">\n    <div class=\"k-tpl3-rt\"><h3>Q4 roadmap draft<\/h3><span class=\"badge\">Inbox<\/span><\/div>\n    <div class=\"k-tpl3-sender\"><span class=\"k-avatar\" aria-hidden=\"true\">RS<\/span><div class=\"k-tpl3-swho\"><b>Ren Sato<\/b><span>ren@acme.studio<\/span><\/div><span class=\"k-tpl3-time\">Today, 09:24<\/span><\/div>\n    <hr class=\"k-sep\">\n    <div class=\"k-tpl3-body\">\n      <p>Hi Aoi \u2014 the Q4 roadmap draft is ready for your pass. I folded in the notes from Tuesday: the launch window moved to late November, and the pricing page work now sits ahead of the mobile pass.<\/p>\n      <p>Two things I need your eyes on: the empty-state illustrations (are they still honest at small sizes?) and the onboarding flow, which grew a fourth step while nobody was watching.<\/p>\n      <p>Comments are open in the doc. If the shape holds, I'll send it to the team on Friday.<\/p>\n      <p>\u2014 Ren<\/p>\n    <\/div>\n    <div class=\"k-tpl3-reply\">\n      <textarea class=\"k-textarea\" rows=\"3\" placeholder=\"Reply to Ren\u2026\" aria-label=\"Reply\"><\/textarea>\n      <div class=\"k-tpl3-ractions\"><button class=\"btn btn-pri btn-sm\" type=\"button\">Send reply<\/button><button class=\"btn btn-ghost btn-sm\" type=\"button\">Discard<\/button><\/div>\n    <\/div>\n  <\/section>\n<\/div>"}],"meta":{"status":"beta","usage":"Three panes, one page. The folder rail and the message rows are page glue; the avatars, badges, buttons, search input and reply textarea are catalog parts. Rows carry two states worth keeping when you wire real data: .sel for the open message and .unread for the bold subject and dot. Below 900px the reading pane steps aside, the way mail apps do.","accessibility":""},"audit":{"id":"templates\/inbox","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"landing","type":"registry:page","title":"Landing Page","description":"A product landing page assembled entirely from blocks: site header, an aurora hero, logo cloud, testimonials, pricing with its billing toggle, FAQ, a call-to-action band and the site footer.","categories":["Templates"],"dependencies":["site-header","logo-cloud","testimonials","pricing","faq","cta-band","site-footer","aurora","button","badge"],"files":[{"path":"templates\/landing\/landing.css","type":"registry:page","content":"\/* KATA landing 1.1.0 \u2014 kata-ui.dev\/templates\/landing \u2014 requires mold >= 4 *\/\n.k-tpl4{background:var(--k-bg);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;font-family:var(--k-font);text-align:start}\n.k-tpl4-sec{max-width:920px;margin:0 auto;padding:calc(var(--k-space-1) * 9) var(--k-space-7)}\n.k-tpl4-top{padding:var(--k-space-4) var(--k-space-7) var(--k-space-1)}\n.k-tpl4-top .k-hdr{margin-inline:auto}\n.k-tpl4-foot{padding-bottom:var(--k-space-6)}\n.k-tpl4-hero{max-width:1080px;margin:0 auto;padding:var(--k-space-5) var(--k-space-7) var(--k-space-1)}\n.k-tpl4-heroin{display:grid;gap:var(--k-space-4);justify-items:start;padding:var(--k-space-3) var(--k-space-1)}\n.k-tpl4-heroin h1{font-size:var(--k-text-display);font-weight:650;letter-spacing:-.03em;line-height:var(--k-lh-display);max-width:15ch}\n.k-tpl4-heroin p{font-size:var(--k-text-lead);line-height:var(--k-lh-body);max-width:52ch;letter-spacing:.012em}\n.k-tpl4-cta{display:flex;gap:var(--k-space-2);flex-wrap:wrap;margin-top:var(--k-space-1)}\n@media (max-width:560px){.k-tpl4-heroin h1{font-size:var(--k-text-3xl)}.k-tpl4-sec{padding:var(--k-space-6) var(--k-space-4)}}\n"},{"path":"templates\/landing\/example.html","type":"registry:page","content":"<!-- KATA landing 1.1.0 \u2014 kata-ui.dev\/templates\/landing \u2014 requires mold >= 4 -->\n<div class=\"k-tpl4\">\n  <div class=\"k-tpl4-sec k-tpl4-top\"><header class=\"k-hdr\">\n  <div class=\"k-hdr-in\">\n    <a class=\"brand\" href=\"#\"><span class=\"mk\"><i><\/i><\/span>Acme Studio<\/a>\n    <nav aria-label=\"Primary\">\n      <a href=\"#\">Product<\/a><a href=\"#\">Pricing<\/a><a href=\"#\">Docs<\/a><a href=\"#\">Changelog<\/a>\n    <\/nav>\n    <div class=\"acts\">\n      <a class=\"btn btn-ghost btn-md\" href=\"#\">Sign in<\/a>\n      <a class=\"btn btn-pri btn-md\" href=\"#\">Get started<\/a>\n    <\/div>\n    <button class=\"burger\" data-hdr-btn type=\"button\" aria-expanded=\"false\" aria-label=\"Open menu\"><svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z\"\/><\/svg> Slack<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"\/><\/svg> Twitch<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\"\/><\/svg> Instagram<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z\"\/><\/svg> Slack<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"\/><\/svg> Twitch<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\"\/><\/svg> Instagram<\/span><span class=\"li\"><svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M4 3l6.9 9.3L4.4 21h2.9l5-6.3 4 6.3H20l-7.2-9.7L19.4 3h-2.9l-4.4 5.6L8.4 3H4z\"\/><\/svg> X<\/span><\/div>\n    <\/div>\n  <\/div>\n<\/section><\/div>\n  <div class=\"k-tpl4-sec\"><section class=\"k-tst\">\n  <div class=\"k-tst-grid\">\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>We closed October in two days. The checklist alone was worth the switch \u2014 nothing hides, everything reconciles.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">AK<\/span><span><b>Aoi Kimura<\/b><span>Finance lead, Nordic Studio<\/span><\/span><\/div><\/div><\/div>\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>I send the invoice from the train home. By the time a client pays, the books already know.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">RS<\/span><span><b>Ren Sato<\/b><span>Freelance designer<\/span><\/span><\/div><\/div><\/div>\n    <div class=\"k-card\"><div class=\"k-card-b\"><div class=\"stars\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><\/div><q>Support answered at 11pm with the actual fix, not a link to a help article. That has never happened before.<\/q><div class=\"who\"><span class=\"k-avatar\" aria-hidden=\"true\">MC<\/span><span><b>Mei Chen<\/b><span>Owner, Harbourlight<\/span><\/span><\/div><\/div><\/div>\n  <\/div>\n<\/section><\/div>\n  <div class=\"k-tpl4-sec\"><div class=\"pricing\">\n  <div class=\"pricing-head\">\n    <div>\n      <h3 class=\"pricing-h\">Pricing<\/h3>\n      <p class=\"pricing-sub\">Start small. Upgrade when the team does.<\/p>\n    <\/div>\n    <span class=\"switchrow\"><span>Monthly<\/span><label class=\"switch\"><input type=\"checkbox\" role=\"switch\" data-billing aria-label=\"Yearly billing\"><span class=\"tr\"><\/span><\/label><span>Yearly<\/span><span class=\"badge asagi\">\u221220%<\/span><\/span>\n  <\/div>\n  <div class=\"pricing-grid\">\n  <div class=\"plan\">\n    \n    <div class=\"plan-name\">Starter<\/div>\n    <div class=\"plan-price\"><span data-m=\"$9\" data-y=\"$7\">$9<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For one project and a quiet launch.<\/p>\n    <button type=\"button\" class=\"btn btn-sec btn-lg plan-cta\">Start free<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 3 projects<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 1 GB storage<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Community support<\/li>\n    <\/ul>\n  <\/div>\n  <div class=\"plan plan-hot\">\n    <span class=\"plan-badge\"><span class=\"badge dark\">Most popular<\/span><\/span>\n    <div class=\"plan-name\">Pro<\/div>\n    <div class=\"plan-price\"><span data-m=\"$29\" data-y=\"$23\">$29<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For teams shipping every week.<\/p>\n    <button type=\"button\" class=\"btn btn-pri btn-lg plan-cta\">Start 14-day trial<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Unlimited projects<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> 100 GB storage<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Custom domain<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Priority support<\/li>\n    <\/ul>\n  <\/div>\n  <div class=\"plan\">\n    \n    <div class=\"plan-name\">Team<\/div>\n    <div class=\"plan-price\"><span data-m=\"$79\" data-y=\"$63\">$79<\/span> <span class=\"plan-per\">\/ month<\/span><\/div>\n    <p class=\"plan-desc\">For organizations with many hands.<\/p>\n    <button type=\"button\" class=\"btn btn-sec btn-lg plan-cta\">Talk to us<\/button>\n    <hr class=\"k-sep\">\n    <ul class=\"plan-feats\">\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Everything in Pro<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> SSO and roles<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> Audit log<\/li>\n      <li><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m4.5 12.5 5 5L19.5 6.5\"\/><\/svg> A named contact<\/li>\n    <\/ul>\n  <\/div>\n  <\/div>\n<\/div><\/div>\n  <div class=\"k-tpl4-sec\"><section class=\"k-faqb\">\n  <h3>Frequently asked questions<\/h3>\n  <p class=\"sub\">The short answers. The long ones live in the docs, linked from each.<\/p>\n  <div class=\"acc\"><details class=\"k-acc\" open><summary>Can I change plans later?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Yes \u2014 up or down, whenever. Changes apply from the next billing cycle, and nothing about your data or settings moves.<\/div><\/details><details class=\"k-acc\"><summary>What counts as a seat?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Anyone with their own login. Shared logins are not a loophole we police; they are a security problem we will help you fix.<\/div><\/details><details class=\"k-acc\"><summary>Do you offer refunds?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Within 30 days, in full, no questions and no exit interview. After that, write to us \u2014 a human reads it.<\/div><\/details><details class=\"k-acc\"><summary>Where is my data stored?<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">In the region you pick at signup, and it stays there. Exports are complete and free, including the day you leave.<\/div><\/details><\/div>\n  <p class=\"more\">Still stuck? <a href=\"#\">Talk to a human<\/a> \u2014 median first reply is under two hours.<\/p>\n<\/section><\/div>\n  <div class=\"k-tpl4-sec\"><section class=\"k-ctab\" data-theme=\"dark\">\n  <div class=\"k-aurora\" aria-hidden=\"true\"><i class=\"b1\"><\/i><i class=\"b2\"><\/i><i class=\"b3\"><\/i><\/div>\n  <div class=\"k-ctab-in\">\n    <h3>Close the month in days, not weekends.<\/h3>\n    <p>Start free for 30 days. Bring your last export and the ledger builds itself.<\/p>\n    <a class=\"btn btn-pri btn-lg\" href=\"#\">Start free<\/a>\n  <\/div>\n<\/section><\/div>\n  <div class=\"k-tpl4-sec k-tpl4-foot\"><footer class=\"k-ftr\">\n  <div class=\"k-ftr-top\">\n    <div>\n      <div class=\"brand\"><span class=\"mk\"><i><\/i><\/span>Acme Studio<\/div>\n      <p class=\"tag\">Invoicing and books for small teams, kept in one ledger.<\/p>\n    <\/div>\n    <div class=\"col\"><h6>Product<\/h6><a href=\"#\">Features<\/a><a href=\"#\">Pricing<\/a><a href=\"#\">Changelog<\/a><a href=\"#\">Roadmap<\/a><\/div>\n    <div class=\"col\"><h6>Company<\/h6><a href=\"#\">About<\/a><a href=\"#\">Careers<\/a><a href=\"#\">Press<\/a><a href=\"#\">Contact<\/a><\/div>\n    <div class=\"news\">\n      <h6>The monthly ledger<\/h6>\n      <p>One email a month: what shipped, what broke, what we learned. No growth hacks.<\/p>\n      <div class=\"row\"><input class=\"input\" type=\"email\" placeholder=\"you@company.com\" aria-label=\"Email address\" style=\"flex:1;min-width:0\"><button type=\"button\" class=\"btn btn-pri btn-md\">Subscribe<\/button><\/div>\n    <\/div>\n  <\/div>\n  <div class=\"k-ftr-bot\">\n    <span>\u00a9 2026 Acme Studio, Inc.<\/span><a href=\"#\" style=\"color:inherit;text-decoration:none\">Privacy<\/a><a href=\"#\" style=\"color:inherit;text-decoration:none\">Terms<\/a><a href=\"#\" style=\"color:inherit;text-decoration:none\">Security<\/a>\n    <span class=\"soc\"><a href=\"#\" aria-label=\"GitHub\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2.8a9.2 9.2 0 0 0-9.2 9.2c0 4.1 2.7 7.6 6.4 9 .5.1.6-.2.6-.4v-1.4c-2.6.6-3.1-1.2-3.1-1.2-.4-1.1-1-1.3-1-1.3-.9-.6.1-.6.1-.6.9.1 1.4.9 1.4.9.9 1.4 2.2 1 2.7.8.1-.6.3-1.1.6-1.3-2.1-.2-4.2-1-4.2-4.6 0-1 .4-1.8.9-2.5-.1-.2-.4-1.1.1-2.3 0 0 .8-.2 2.5.9a8.6 8.6 0 0 1 4.5 0c1.7-1.1 2.5-.9 2.5-.9.5 1.2.2 2.1.1 2.3.5.7.9 1.5.9 2.5 0 3.6-2.2 4.4-4.2 4.6.3.3.6.9.6 1.8v2.6c0 .2.2.5.6.4a9.2 9.2 0 0 0 6.4-9A9.2 9.2 0 0 0 12 2.8z\"\/><\/svg><\/a><a href=\"#\" aria-label=\"X\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M4 3l6.9 9.3L4.4 21h2.9l5-6.3 4 6.3H20l-7.2-9.7L19.4 3h-2.9l-4.4 5.6L8.4 3H4z\"\/><\/svg><\/a><a href=\"#\" aria-label=\"YouTube\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M21.6 7.1a2.8 2.8 0 0 0-2-2C17.9 4.7 12 4.7 12 4.7s-5.9 0-7.6.4a2.8 2.8 0 0 0-2 2A29 29 0 0 0 2 12a29 29 0 0 0 .4 4.9 2.8 2.8 0 0 0 2 2c1.7.4 7.6.4 7.6.4s5.9 0 7.6-.4a2.8 2.8 0 0 0 2-2A29 29 0 0 0 22 12a29 29 0 0 0-.4-4.9zM10 15.3V8.7L15.6 12 10 15.3z\"\/><\/svg><\/a><\/span>\n  <\/div>\n<\/footer><\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"This template is the blocks, verbatim \u2014 open any block's own page to copy just that section. Only the hero and the page rhythm (section width and spacing) are template glue. The pricing toggle and the header's mobile menu keep their block scripts; include them alongside. Swap the fictional copy and the Acme name, and the page is yours.","accessibility":""},"audit":{"id":"templates\/landing","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"product-page","type":"registry:page","title":"Product Page","description":"A storefront product page: gallery, options, quantity, purchase actions and the accordions that answer the last questions.","categories":["Templates"],"dependencies":["badge","button","accordion","segmented"],"files":[{"path":"templates\/product-page\/product-page.css","type":"registry:page","content":"\/* KATA product-page 1.1.0 \u2014 kata-ui.dev\/templates\/product-page \u2014 requires mold >= 4 *\/\n\/* KATA Template: Product Page *\/\n.k-tpl-pd{background:var(--k-bg);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);padding:var(--k-space-6);font-family:var(--k-font);color:var(--k-ink)}\n.k-tpl-pd-crumbs{font-size:var(--k-text-sm);color:var(--k-ink-3);margin-bottom:var(--k-space-4)}\n.k-tpl-pd-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:var(--k-space-7);align-items:start}\n.k-tpl-pd-main{border-radius:var(--k-radius-xl);background:linear-gradient(160deg, var(--k-zinc-700), var(--k-zinc-950));min-height:300px;display:flex;align-items:center;justify-content:center;color:var(--k-on-color)}\n.k-tpl-pd-main b{font-size:var(--k-text-xl);font-weight:650;letter-spacing:.02em;text-align:center;padding:var(--k-space-5)}\n.k-tpl-pd-thumbs{display:flex;gap:var(--k-space-2);margin-top:var(--k-space-2)}\n.k-tpl-pd-thumbs span{flex:1;height:56px;border-radius:var(--k-radius-lg);border:1px solid var(--k-line)}\n.k-tpl-pd-thumbs .on{outline:2px solid var(--k-accent);outline-offset:1px}\n.k-tpl-pd-info h2{font-size:var(--k-text-2xl);font-weight:650;letter-spacing:-.02em;margin:var(--k-space-2) 0 var(--k-space-2)}\n.k-tpl-pd-stars{display:flex;align-items:center;gap:var(--k-space-2);color:var(--k-yamabuki-ink);font-size:var(--k-text-sm)}\n.k-tpl-pd-stars span{color:var(--k-ink-2)}\n.k-tpl-pd-price{display:flex;align-items:baseline;gap:var(--k-space-2);margin:var(--k-space-4) 0 var(--k-space-1)}\n.k-tpl-pd-price b{font-size:var(--k-text-2xl);font-weight:700}\n.k-tpl-pd-price s{color:var(--k-ink-3);font-size:var(--k-text-lead)}\n.k-tpl-pd-price .save{color:var(--k-success-ink);font-size:var(--k-text-sm);font-weight:650}\n.k-tpl-pd-note{font-size:var(--k-text-sm);color:var(--k-ink-2);margin-bottom:var(--k-space-4)}\n.k-tpl-pd-lbl{font-size:var(--k-text-sm);font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--k-ink-3);margin:var(--k-space-4) 0 var(--k-space-2)}\n.k-tpl-pd-sw{display:flex;gap:var(--k-space-2)}\n.k-tpl-pd-sw label{cursor:pointer}\n.k-tpl-pd-sw input{position:absolute;opacity:0}\n.k-tpl-pd-sw i{display:block;width:26px;height:26px;border-radius:50%;border:2px solid var(--k-bg);box-shadow:var(--k-ring-line)}\n.k-tpl-pd-sw input:checked + i{box-shadow:var(--k-ring-selected)}\n.k-tpl-pd-sw input:focus-visible + i{box-shadow:var(--k-ring-offset)}\n.k-tpl-pd-buy{display:flex;gap:var(--k-space-2);margin-top:var(--k-space-5)}\n.k-tpl-pd-qty{display:inline-flex;align-items:center;border:1px solid var(--k-line);border-radius:var(--k-radius-md);overflow:hidden}\n.k-tpl-pd-qty button{width:36px;height:100%;min-height:40px;border:0;background:var(--k-bg);font-size:var(--k-text-lg);cursor:pointer;color:var(--k-ink)}\n.k-tpl-pd-qty b{min-width:34px;text-align:center;font-size:var(--k-text-md)}\n.k-tpl-pd-ship{font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-loose);margin-top:var(--k-space-3);letter-spacing:.01em}\n.k-tpl-pd-acc{margin-top:var(--k-space-5)}\n.k-tpl-pd-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--k-space-3);margin-top:var(--k-space-6)}\n.k-tpl-pd-feats div{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-3);font-size:var(--k-text-sm);line-height:var(--k-lh-body);color:var(--k-ink-2);letter-spacing:.01em}\n.k-tpl-pd-feats b{display:block;color:var(--k-ink);font-size:var(--k-text-base);margin-bottom:var(--k-space-1)}\n@media (max-width:820px){.k-tpl-pd-grid{grid-template-columns:1fr}.k-tpl-pd-feats{grid-template-columns:1fr}}\n\/* The quantity pill clips overflow, so its buttons draw the ring inside. *\/\n.k-tpl-pd-qty button:focus-visible{outline:2px solid var(--k-ink);outline-offset:-2px}\n"},{"path":"templates\/product-page\/example.html","type":"registry:page","content":"<!-- KATA product-page 1.1.0 \u2014 kata-ui.dev\/templates\/product-page \u2014 requires mold >= 4 -->\n<div class=\"k-tpl-pd\">\n  <p class=\"k-tpl-pd-crumbs\">Shop \/ Packs \/ Trail Pack 20L<\/p>\n  <div class=\"k-tpl-pd-grid\">\n    <div>\n      <div class=\"k-tpl-pd-main\"><b>TRAIL PACK 20L<br><span style=\"font-size:var(--k-text-sm);font-weight:500;color:var(--k-zinc-400)\">Charcoal \u2014 main view<\/span><\/b><\/div>\n      <div class=\"k-tpl-pd-thumbs\"><span class=\"on\" style=\"background:linear-gradient(160deg, var(--k-zinc-700), var(--k-zinc-950))\"><\/span><span class=\"\" style=\"background:linear-gradient(160deg, var(--k-accent), var(--k-zinc-950))\"><\/span><span class=\"\" style=\"background:linear-gradient(160deg, var(--k-zinc-400), var(--k-zinc-800))\"><\/span><span class=\"\" style=\"background:linear-gradient(160deg, var(--k-zinc-900), var(--k-zinc-950))\"><\/span><\/div>\n    <\/div>\n    <div class=\"k-tpl-pd-info\">\n      <span class=\"badge asagi\">New<\/span>\n      <h2>Trail Pack 20L<\/h2>\n      <div class=\"k-tpl-pd-stars\"><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" aria-hidden=\"true\"><path d=\"m12 3.6 2.5 5.3 5.8.7-4.3 4 1.1 5.7L12 16.5l-5.1 2.8L8 13.6 3.7 9.6l5.8-.7L12 3.6Z\"\/><\/svg><span><b style=\"color:var(--k-ink)\">4.8<\/b> \u00b7 212 reviews<\/span><\/div>\n      <div class=\"k-tpl-pd-price\"><b>$148<\/b><s>$185<\/s><span class=\"save\">Save 20%<\/span><\/div>\n      <p class=\"k-tpl-pd-note\">In stock \u2014 ships within 24 hours from Tokyo.<\/p>\n      <p class=\"k-tpl-pd-lbl\">Color \u2014 Charcoal<\/p>\n      <div class=\"k-tpl-pd-sw\" role=\"radiogroup\" aria-label=\"Color\">\n        <label><input type=\"radio\" name=\"pd-color\" aria-label=\"Charcoal\" checked><i style=\"background:var(--k-zinc-800)\"><\/i><\/label>\n        <label><input type=\"radio\" name=\"pd-color\" aria-label=\"Asagi\"><i style=\"background:var(--k-accent)\"><\/i><\/label>\n        <label><input type=\"radio\" name=\"pd-color\" aria-label=\"Stone\"><i style=\"background:var(--k-zinc-300)\"><\/i><\/label>\n      <\/div>\n      <p class=\"k-tpl-pd-lbl\">Size<\/p>\n      <div class=\"k-seg\" role=\"radiogroup\" aria-label=\"Size\">\n        <label class=\"k-seg-item\"><input type=\"radio\" name=\"pd-size\"><span>S \u2014 14L<\/span><\/label>\n        <label class=\"k-seg-item\"><input type=\"radio\" name=\"pd-size\" checked><span>M \u2014 20L<\/span><\/label>\n        <label class=\"k-seg-item\"><input type=\"radio\" name=\"pd-size\"><span>L \u2014 28L<\/span><\/label>\n      <\/div>\n      <div class=\"k-tpl-pd-buy\">\n        <span class=\"k-tpl-pd-qty\"><button type=\"button\" aria-label=\"Decrease quantity\">\u2212<\/button><b>1<\/b><button type=\"button\" aria-label=\"Increase quantity\">+<\/button><\/span>\n        <button class=\"btn btn-pri btn-lg\" type=\"button\" style=\"flex:1\">Add to cart \u2014 $148<\/button>\n      <\/div>\n      <p class=\"k-tpl-pd-ship\">Free shipping over $100 \u00b7 30-day returns \u00b7 2-year warranty<br>Pickup available at the Nagoya studio, weekdays.<\/p>\n      <div class=\"k-tpl-pd-acc\">\n        <details class=\"k-acc\" open><summary>Details<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Padded 15-inch laptop sleeve, two bottle pockets, a weatherproof roll top and a repair kit in the lid. 840 g in size M.<\/div><\/details>\n        <details class=\"k-acc\"><summary>Materials<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Recycled 900D nylon shell, YKK zips, aluminum hardware. PFAS-free coating.<\/div><\/details>\n        <details class=\"k-acc\"><summary>Shipping &amp; returns<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/summary><div class=\"k-acc-body\">Orders placed before 15:00 ship the same day. Returns are free within 30 days, used or not \u2014 tell us what failed and we fix the next run.<\/div><\/details>\n      <\/div>\n    <\/div>\n  <\/div>\n  <div class=\"k-tpl-pd-feats\">\n    <div><b>Ships in 24 hours<\/b>From the Tokyo studio, tracked, with the delivery estimate stated before you pay.<\/div>\n    <div><b>2-year warranty<\/b>Zips, seams and buckles. If it breaks on a trail, the repair is on us.<\/div>\n    <div><b>30-day returns<\/b>Walk it around the block for a month. Not right is a full refund.<\/div>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The gallery panels are gradient stand-ins \u2014 drop photographs into the same frames. Options are real form controls (swatches are radios, sizes the Segmented part), the quantity stepper is three buttons and a number, and the accordions are native details: the page needs no script until the cart does. Price, stock and shipping claims sit above the fold because that is where buying decisions happen.","accessibility":"Every option is a labeled native control; the rating is text as well as stars (\"4.8, 212 reviews\"); and the purchase button names the action it performs. Stock states must be announced in words, never by color alone."},"audit":{"id":"templates\/product-page","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"settings-page","type":"registry:page","title":"Settings","description":"An account settings page: a section rail, a profile form with photo, notification switches, a language select and a danger zone \u2014 composed from form parts.","categories":["Templates"],"dependencies":["field","input","textarea","select","switch","button","avatar","alert"],"files":[{"path":"templates\/settings-page\/settings-page.css","type":"registry:page","content":"\/* KATA settings-page 1.1.0 \u2014 kata-ui.dev\/templates\/settings-page \u2014 requires mold >= 4 *\/\n.k-tpl2{display:grid;grid-template-columns:216px 1fr;background:var(--k-bg);color:var(--k-ink);border:1px solid var(--k-line);border-radius:var(--k-radius-xl);overflow:hidden;min-height:660px;font-family:var(--k-font);text-align:start}\n.k-tpl2-side{padding:var(--k-space-6) var(--k-space-4);border-inline-end:1px solid var(--k-line);background:var(--k-bg-soft)}\n.k-tpl2-side h2{font-size:var(--k-text-xl);font-weight:600;letter-spacing:-.02em}\n.k-tpl2-sub{margin-top:var(--k-space-1);font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-small);letter-spacing:.01em}\n.k-tpl2-nav{display:grid;gap:var(--k-space-0-5);margin-top:var(--k-space-4)}\n.k-tpl2-nav a{padding:var(--k-space-2) var(--k-space-2);border-radius:var(--k-radius-md);color:var(--k-ink-2);text-decoration:none;font-size:var(--k-text-base)}\n.k-tpl2-nav a:hover{background:color-mix(in srgb,var(--k-ink) 5%,transparent);color:var(--k-ink)}\n.k-tpl2-nav a.on{background:color-mix(in srgb,var(--k-ink) 7%,transparent);color:var(--k-ink);font-weight:550}\n.k-tpl2-main{padding:var(--k-space-6);display:flex;flex-direction:column;gap:var(--k-space-4);min-width:0;background:var(--k-bg)}\n.k-tpl2-card{border:1px solid var(--k-line);border-radius:var(--k-radius-lg);padding:var(--k-space-5) var(--k-space-5)}\n.k-tpl2-card h3{font-size:var(--k-text-lead);font-weight:600}\n.k-tpl2-csub{margin-top:var(--k-space-1);font-size:var(--k-text-base);color:var(--k-ink-2)}\n.k-tpl2-avarow{display:flex;align-items:center;gap:var(--k-space-3);margin-top:var(--k-space-4)}\n.k-tpl2-note{margin-top:var(--k-space-1);font-size:var(--k-text-sm);color:var(--k-ink-3)}\n.k-tpl2-form{display:grid;gap:var(--k-space-4);margin-top:var(--k-space-4);max-width:520px}\n.k-tpl2-actions{display:flex;gap:var(--k-space-2);margin-top:var(--k-space-4)}\n.k-tpl2-row{display:flex;align-items:center;gap:var(--k-space-4);padding:var(--k-space-3) 0;border-top:1px solid var(--k-line)}\n.k-tpl2-row:first-of-type{margin-top:var(--k-space-2)}\n.k-tpl2-row b{font-size:var(--k-text-base);font-weight:550}\n.k-tpl2-row p{margin-top:var(--k-space-0-5);font-size:var(--k-text-sm);color:var(--k-ink-2);line-height:var(--k-lh-small);letter-spacing:.01em}\n.k-tpl2-row>:last-child{margin-inline-start:auto;flex:none}\n.k-tpl2-card .k-alert{margin-top:var(--k-space-3)}\n@media (max-width:560px){.k-tpl2{grid-template-columns:1fr}.k-tpl2-side{display:none}}\n"},{"path":"templates\/settings-page\/example.html","type":"registry:page","content":"<!-- KATA settings-page 1.1.0 \u2014 kata-ui.dev\/templates\/settings-page \u2014 requires mold >= 4 -->\n<div class=\"k-tpl2\">\n  <aside class=\"k-tpl2-side\">\n    <h2>Settings<\/h2>\n    <p class=\"k-tpl2-sub\">Workspace preferences for Acme Studio.<\/p>\n    <nav class=\"k-tpl2-nav\">\n      <a href=\"#\" class=\"on\">Profile<\/a>\n      <a href=\"#\">Account<\/a>\n      <a href=\"#\">Notifications<\/a>\n      <a href=\"#\">Billing<\/a>\n      <a href=\"#\">API keys<\/a>\n    <\/nav>\n  <\/aside>\n  <div class=\"k-tpl2-main\">\n    <section class=\"k-tpl2-card\">\n      <h3>Profile<\/h3>\n      <p class=\"k-tpl2-csub\">How you appear across the workspace.<\/p>\n      <div class=\"k-tpl2-avarow\"><span class=\"k-avatar\" aria-hidden=\"true\" data-size=\"lg\">AK<\/span><div><button class=\"btn btn-sec btn-sm\" type=\"button\">Change photo<\/button><p class=\"k-tpl2-note\">PNG or JPG, at least 256 \u00d7 256.<\/p><\/div><\/div>\n      <div class=\"k-tpl2-form\">\n        <div class=\"k-field\">\n          <label class=\"lab\" for=\"sp-name\">Display name<\/label>\n          <input class=\"input\" id=\"sp-name\" type=\"text\" value=\"Aoi Kimura\">\n        <\/div>\n        <div class=\"k-field\">\n          <label class=\"lab\" for=\"sp-mail\">Email<\/label>\n          <input class=\"input\" id=\"sp-mail\" type=\"email\" value=\"aoi@acme.studio\">\n          <p class=\"hint\">Used for sign-in and receipts.<\/p>\n        <\/div>\n        <div class=\"k-field\">\n          <label class=\"lab\" for=\"sp-bio\">Bio <span class=\"opt\">Optional<\/span><\/label>\n          <textarea class=\"k-textarea\" id=\"sp-bio\" rows=\"3\">Product designer. I keep the design system honest.<\/textarea>\n        <\/div>\n      <\/div>\n      <div class=\"k-tpl2-actions\"><button class=\"btn btn-pri\" type=\"button\">Save changes<\/button><button class=\"btn btn-ghost\" type=\"button\">Cancel<\/button><\/div>\n    <\/section>\n    <section class=\"k-tpl2-card\">\n      <h3>Notifications &amp; language<\/h3>\n      <p class=\"k-tpl2-csub\">What reaches your inbox, and in which language.<\/p>\n      <div class=\"k-tpl2-row\"><div><b>Mentions<\/b><p>Email me when someone mentions me in a comment or a doc.<\/p><\/div><label class=\"switch\"><input role=\"switch\" aria-label=\"Mentions\" type=\"checkbox\" checked><span class=\"tr\"><\/span><\/label><\/div><div class=\"k-tpl2-row\"><div><b>Product updates<\/b><p>A short email when new features ship. About once a month.<\/p><\/div><label class=\"switch\"><input role=\"switch\" aria-label=\"Product updates\" type=\"checkbox\"><span class=\"tr\"><\/span><\/label><\/div><div class=\"k-tpl2-row\"><div><b>Weekly summary<\/b><p>Every Monday: what shipped, what is blocked, what is next.<\/p><\/div><label class=\"switch\"><input role=\"switch\" aria-label=\"Weekly summary\" type=\"checkbox\" checked><span class=\"tr\"><\/span><\/label><\/div><div class=\"k-tpl2-row\"><div><b>Language<\/b><p>The interface language for this workspace.<\/p><\/div><span class=\"k-select\"><select aria-label=\"Language\"><option selected>English<\/option><option>Japanese<\/option><option>German<\/option><\/select><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"\/><\/svg><\/span><\/div>\n    <\/section>\n    <section class=\"k-tpl2-card\">\n      <h3>Danger zone<\/h3>\n      <p class=\"k-tpl2-csub\">Irreversible actions live here.<\/p>\n      <div class=\"k-alert\" data-tone=\"warning\"><svg aria-hidden=\"true\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\"><path d=\"M12 4 2.8 20h18.4L12 4Z\"\/><path d=\"M12 10v4.4M12 17.2h.01\"\/><\/svg><div><b>Deleting the workspace removes everything.<\/b><p>Projects, invoices and files are gone for every member. There is no undo and no grace period.<\/p><\/div><\/div>\n      <div class=\"k-tpl2-actions\"><button class=\"btn btn-danger\" type=\"button\">Delete workspace<\/button><\/div>\n    <\/section>\n  <\/div>\n<\/div>"}],"meta":{"status":"beta","usage":"The rail switches the section; each card is an independent form. Every control is a catalog part \u2014 Field wraps Input and Textarea with labels and hints, the switches are the Switch part, the danger zone is an Alert plus a danger Button. Wire the save buttons to your backend; the page itself holds no state.","accessibility":""},"audit":{"id":"templates\/settings-page","profile":"ui","passed":true,"checks":[{"id":"legacy-contract","status":"pass","severity":"error","findings":[]},{"id":"shared-token-scope","status":"pass","severity":"error","findings":[]},{"id":"token-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"spacing-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"type-values","status":"pass","severity":"error","findings":[],"profile":"ui","details":[],"by_kind":{}},{"id":"button-type","status":"pass","severity":"error","findings":[]},{"id":"accessible-label","status":"pass","severity":"error","findings":[]},{"id":"focus-visible","status":"pass","severity":"error","findings":[],"details":[]},{"id":"variant-hover","status":"pass","severity":"error","findings":[]},{"id":"reduced-motion","status":"pass","severity":"error","findings":[]},{"id":"js-single-instance","status":"pass","severity":"error","findings":[]},{"id":"js-global-bindings","status":"pass","severity":"error","findings":[]}]},"requiresMold":4},{"name":"theme-asagi","type":"registry:theme","title":"Theme: Asagi \u6d45\u8471","description":"The default. Pale indigo of happi coats and summer cloth.","categories":["Themes"],"files":[{"path":"themes\/asagi.css","type":"registry:theme","content":"\/* KATA theme: static WCAG color roles. Load after tokens.css. *\/\n:root,[data-theme=\"light\"]{\n  --k-accent:#33a6b8;\n  --k-on-accent:#18181b;\n  --k-accent-ink:#267a88;\n  --k-accent-contrast-surface:#ffffff;\n  --k-accent-hover:#47afbf;\n  --k-accent-bg:rgba(51,166,184,.08);\n  --k-accent-bg-strong:rgba(51,166,184,.1);\n  --k-accent-line:rgba(51,166,184,.18);\n}\n[data-theme=\"dark\"]{\n  --k-accent:#33a6b8;\n  --k-on-accent:#18181b;\n  --k-accent-ink:#33a6b8;\n  --k-accent-contrast-surface:#ffffff;\n  --k-accent-hover:#47afbf;\n  --k-accent-bg:rgba(51,166,184,.08);\n  --k-accent-bg-strong:rgba(51,166,184,.1);\n  --k-accent-line:rgba(51,166,184,.18);\n}\n"}]},{"name":"theme-ruri","type":"registry:theme","title":"Theme: Ruri \u7460\u7483","description":"Lapis blue, deep and exact \u2014 for tools that live next to code.","categories":["Themes"],"files":[{"path":"themes\/ruri.css","type":"registry:theme","content":"\/* KATA theme: static WCAG color roles. Load after tokens.css. *\/\n:root,[data-theme=\"light\"]{\n  --k-accent:#1e50a2;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#1e50a2;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#1b4892;\n  --k-accent-bg:rgba(30,80,162,.08);\n  --k-accent-bg-strong:rgba(30,80,162,.1);\n  --k-accent-line:rgba(30,80,162,.18);\n}\n[data-theme=\"dark\"]{\n  --k-accent:#1e50a2;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#7190c4;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#1b4892;\n  --k-accent-bg:rgba(30,80,162,.08);\n  --k-accent-bg-strong:rgba(30,80,162,.1);\n  --k-accent-line:rgba(30,80,162,.18);\n}\n"}]},{"name":"theme-edomurasaki","type":"registry:theme","title":"Theme: Edomurasaki \u6c5f\u6238\u7d2b","description":"The purple of Edo \u2014 creative tools, media, play.","categories":["Themes"],"files":[{"path":"themes\/edomurasaki.css","type":"registry:theme","content":"\/* KATA theme: static WCAG color roles. Load after tokens.css. *\/\n:root,[data-theme=\"light\"]{\n  --k-accent:#745399;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#745399;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#684b8a;\n  --k-accent-bg:rgba(116,83,153,.08);\n  --k-accent-bg-strong:rgba(116,83,153,.1);\n  --k-accent-line:rgba(116,83,153,.18);\n}\n[data-theme=\"dark\"]{\n  --k-accent:#745399;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#9d86b7;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#684b8a;\n  --k-accent-bg:rgba(116,83,153,.08);\n  --k-accent-bg-strong:rgba(116,83,153,.1);\n  --k-accent-line:rgba(116,83,153,.18);\n}\n"}]},{"name":"theme-suo","type":"registry:theme","title":"Theme: Suo \u8607\u82b3","description":"Sappanwood rose \u2014 commerce and anything with a pulse.","categories":["Themes"],"files":[{"path":"themes\/suo.css","type":"registry:theme","content":"\/* KATA theme: static WCAG color roles. Load after tokens.css. *\/\n:root,[data-theme=\"light\"]{\n  --k-accent:#8e354a;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#8e354a;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#803043;\n  --k-accent-bg:rgba(142,53,74,.08);\n  --k-accent-bg-strong:rgba(142,53,74,.1);\n  --k-accent-line:rgba(142,53,74,.18);\n}\n[data-theme=\"dark\"]{\n  --k-accent:#8e354a;\n  --k-on-accent:#ffffff;\n  --k-accent-ink:#b8808d;\n  --k-accent-contrast-surface:#000000;\n  --k-accent-hover:#803043;\n  --k-accent-bg:rgba(142,53,74,.08);\n  --k-accent-bg-strong:rgba(142,53,74,.1);\n  --k-accent-line:rgba(142,53,74,.18);\n}\n"}]},{"name":"theme-kaki","type":"registry:theme","title":"Theme: Kaki \u67ff","description":"Persimmon, warm and editorial, unhurried.","categories":["Themes"],"files":[{"path":"themes\/kaki.css","type":"registry:theme","content":"\/* KATA theme: static WCAG color roles. Load after tokens.css. *\/\n:root,[data-theme=\"light\"]{\n  --k-accent:#ed6d3d;\n  --k-on-accent:#18181b;\n  --k-accent-ink:#b5532f;\n  --k-accent-contrast-surface:#ffffff;\n  --k-accent-hover:#ef7c50;\n  --k-accent-bg:rgba(237,109,61,.08);\n  --k-accent-bg-strong:rgba(237,109,61,.1);\n  --k-accent-line:rgba(237,109,61,.18);\n}\n[data-theme=\"dark\"]{\n  --k-accent:#ed6d3d;\n  --k-on-accent:#18181b;\n  --k-accent-ink:#ed6d3d;\n  --k-accent-contrast-surface:#ffffff;\n  --k-accent-hover:#ef7c50;\n  --k-accent-bg:rgba(237,109,61,.08);\n  --k-accent-bg-strong:rgba(237,109,61,.1);\n  --k-accent-line:rgba(237,109,61,.18);\n}\n"}]}]}