:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f3e8d5;--surface:#fcf5e8;--ink:#30271f;--muted:#70604f;--line:#cbbb9f;--accent:#a33e25;--accent-ink:#fff8ec;--soft:#e9dcc4;--shadow:#53412a12;--grain:#80633f0c;--mono:"SFMono-Regular", Consolas, "Liberation Mono", monospace;--body:"Segoe UI", system-ui, sans-serif;--heading:"Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--paper:#191c19;--surface:#232720;--ink:#ece5d7;--muted:#b7b5a3;--line:#505748;--accent:#f4a381;--accent-ink:#241b14;--soft:#2d3329;--shadow:#0003;--grain:#e8d6ac06}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=dark]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--paper:#191c19;--surface:#232720;--ink:#ece5d7;--muted:#b7b5a3;--line:#505748;--accent:#f4a381;--accent-ink:#241b14;--soft:#2d3329;--shadow:#0003;--grain:#e8d6ac06}}.site-header{z-index:20;border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0}.site-header-inner{align-items:center;gap:1.5rem;width:100%;max-width:88rem;min-height:5rem;margin:auto;padding:.75rem clamp(1rem,4vw,3.5rem);display:flex;position:relative}body>main{flex:1 0 auto;width:100%}.brand{font:800 clamp(1.4rem, 5vw, 1.8rem) var(--mono);letter-spacing:-.09em;align-items:center;text-decoration:none;display:inline-flex}kalm-site-nav{margin-left:auto}kalm-theme-toggle{flex:0 0 44px;width:44px;height:44px;display:block;position:relative}.site-footer{border-top:1px solid var(--line);width:100%;max-width:88rem;color:var(--muted);font:.8rem/1.6 var(--mono);flex-wrap:wrap;justify-content:space-between;gap:2.5rem;margin:5rem auto 0;padding:1.5rem 4vw 2rem;display:flex}.site-footer a{color:var(--ink);text-decoration:none}@media (width<=700px){.site-header-inner{flex-wrap:wrap;gap:.5rem;min-height:4.5rem}.brand{margin-right:auto}kalm-site-nav{order:3;margin-left:0}kalm-theme-toggle{order:1}.site-footer{margin-top:3rem;padding-inline:1rem;font-size:.72rem}}.nav-links{gap:.4rem;display:flex}.nav-links a{min-height:44px;font:.8rem/1.6 var(--mono);border-radius:6px;align-items:center;gap:.55rem;padding:.5rem .9rem;text-decoration:none;display:flex}.nav-links a .icon{width:1rem;height:1rem;color:var(--muted)}.nav-links a:hover,.nav-links a[aria-current=page]{color:var(--accent);background:var(--soft)}.menu-button{border:1px solid var(--line);background:var(--surface);min-width:44px;min-height:44px;font:.75rem/1.5 var(--mono);border-radius:7px;justify-content:center;align-items:center;gap:.5rem;padding:.5rem .75rem;display:none}.menu-button .icon{transition:transform .18s cubic-bezier(.22,.75,.25,1)}.menu-button[aria-expanded=true] .icon{transform:rotate(90deg)}.theme-trigger{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;place-items:center;padding:0;transition:background-color .15s,color .15s;display:inline-grid}.theme-trigger:hover,.theme-trigger[aria-expanded=true]{color:var(--accent);background:var(--soft)}.topic-trigger{width:44px;height:44px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:7px;flex:0 0 44px;place-items:center;padding:0;display:none}.topic-trigger:hover,.topic-trigger[aria-expanded=true]{color:var(--accent);background:var(--soft)}@media (width<=960px){html[data-js-enhanced] .topic-trigger{display:inline-grid}}.theme-trigger .icon{width:1.2rem;height:1.2rem}.theme-popover{z-index:30;border:1px solid var(--line);background:var(--surface);width:min(14rem,100vw - 2rem);max-height:calc(100dvh - 6rem);box-shadow:0 12px 30px var(--shadow);border-radius:10px;gap:.2rem;padding:.35rem;display:grid;position:absolute;top:calc(100% + .5rem);right:0;overflow-y:auto}.theme-option{width:100%;min-height:40px;color:var(--ink);text-align:left;font:.8rem/1.5 var(--mono);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:.65rem;padding:.4rem .6rem;display:flex}.theme-option:hover,.theme-option[aria-pressed=true]{color:var(--accent);background:var(--soft)}.theme-option .icon{width:1rem;height:1rem;color:var(--muted)}.theme-option:focus-visible,.theme-scrollbar:focus-visible{outline-offset:-2px}.theme-divider{background:var(--line);height:1px;margin:.35rem .4rem}.theme-scrollbar{width:100%;min-height:44px;color:var(--ink);font:.75rem/1.5 var(--mono);text-align:left;background:0 0;border:0;border-radius:6px;justify-content:space-between;align-items:center;gap:.75rem;padding:.4rem .6rem;display:flex}.theme-scrollbar:hover{background:var(--soft)}.switch-track{border:1px solid var(--line);background:var(--soft);border-radius:1rem;flex:0 0 2rem;height:1.15rem;padding:2px}.switch-track:after{content:"";background:var(--muted);border-radius:50%;width:.75rem;height:.75rem;transition:transform .15s;display:block}.theme-scrollbar[aria-checked=true] .switch-track{border-color:var(--accent);background:var(--accent)}.theme-scrollbar[aria-checked=true] .switch-track:after{background:var(--accent-ink);transform:translate(.85rem)}kalm-code-tabs{border:1px solid var(--line);border-radius:10px;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr);min-width:0;margin:2rem 0;display:grid;overflow:hidden}.source-tab-bar{background:var(--surface);grid-row:1;gap:.25rem;padding:.35rem .45rem 0;display:flex;overflow-x:auto}.source-tab-bar button{min-height:44px;font:.75rem/1.6 var(--mono);white-space:nowrap;background:0 0;border:0;border-radius:7px;padding:.5rem .85rem}.source-tab-bar button[aria-selected=true]{background:var(--soft);color:var(--accent)}.source-tab-bar button:focus-visible{outline-offset:-4px}kalm-code-tabs>section{grid-area:2/1;min-width:0;min-height:0;margin:0}kalm-code-tabs section kalm-code-block{border:0;border-radius:0;min-height:0;margin:0;display:block}@keyframes panel-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.panel-entering{animation:.16s cubic-bezier(.22,.75,.25,1) both panel-enter}@media (width<=700px){.topic-trigger{order:2}html[data-js-enhanced] kalm-site-nav .menu-button{display:inline-flex}html[data-js-enhanced] kalm-site-nav .nav-links{border:1px solid var(--line);background:var(--surface);box-shadow:0 12px 30px var(--shadow);opacity:0;visibility:hidden;pointer-events:none;transform-origin:top;border-radius:10px;flex-direction:column;padding:.5rem;transition:opacity .16s,transform .19s cubic-bezier(.22,.75,.25,1),visibility 0s linear .19s;display:flex;position:absolute;top:calc(100% + .5rem);left:1rem;right:1rem;transform:translateY(-.35rem)scale(.99)}html[data-js-enhanced] kalm-theme-toggle .theme-popover{opacity:0;visibility:hidden;pointer-events:none;transform-origin:top;transition:opacity .16s,transform .19s cubic-bezier(.22,.75,.25,1),visibility 0s linear .19s;transform:translateY(-.35rem)scale(.99)}html[data-js-enhanced] kalm-theme-toggle .theme-popover.open,html[data-js-enhanced] kalm-site-nav .nav-links.open{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:translateY(0)scale(1)}html[data-js-enhanced] kalm-site-nav .nav-links a{min-height:48px}html:not([data-js-enhanced]) kalm-site-nav{flex-basis:100%}html:not([data-js-enhanced]) kalm-site-nav .nav-links{flex-wrap:wrap;justify-content:space-between}}@media (width<=480px){html[data-js-enhanced] .menu-button{padding:.5rem}html[data-js-enhanced] .menu-button span{display:none}}@media (width<=700px){.theme-divider,.theme-scrollbar{display:none}}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);font:15px/1.6 var(--body);background-image:radial-gradient(var(--grain) .7px, transparent .7px);background-size:5px 5px;margin:0}kalm-playground{flex-direction:column;min-height:100dvh;display:flex}a{color:inherit;text-underline-offset:.25em}a:hover{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}button,summary{cursor:pointer}button:disabled{cursor:default;opacity:.45}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}.icon{width:1.2rem;height:1.2rem}.eyebrow{font:11px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip-link{background:var(--surface);z-index:100;padding:.75rem 1rem;position:fixed;top:-5rem;left:1rem}.skip-link:focus{top:1rem}.site-header-inner{gap:1rem;max-width:94rem;min-height:76px;padding-inline:clamp(1rem,3.5vw,3.5rem)}.header-divider{background:var(--line);width:1px;height:22px;margin-inline:.3rem}.header-label{font:14px var(--mono);color:var(--muted)}.header-nav{align-items:center;gap:1.5rem;margin-left:auto;display:flex}.header-nav a{font:12px var(--mono);text-decoration:none}main{flex:1;width:100%;max-width:94rem;margin:0 auto;padding:48px clamp(1rem,3.5vw,3.5rem) 0}.intro{justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:30px;display:flex}.intro .eyebrow{margin:0 0 10px}h1{font:400 clamp(2rem, 3.5vw, 3.35rem)/1.12 var(--heading);letter-spacing:-.035em;margin:0}.intro p:last-child{color:var(--muted);margin:13px 0 0;font-size:15px}.browser-badge{border:1px solid var(--line);font:11px var(--mono);color:var(--muted);white-space:nowrap;border-radius:30px;align-items:center;gap:8px;margin-bottom:3px;padding:7px 12px;display:flex}.local-dot,.status-dot{background:#728054;border-radius:50%;flex:0 0 6px;width:6px;height:6px;display:inline-block}.below-workbench{font:11px var(--mono);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;display:flex}.below-workbench>span{align-items:center;gap:8px;display:flex}.notification{min-height:44px;color:var(--accent);align-items:center;gap:1rem;margin-top:.5rem;font-size:13px;display:flex}.fiddle-footer{border-top:1px solid var(--line);width:calc(100% - clamp(2rem,7vw,7rem));max-width:87rem;color:var(--muted);font:11px var(--mono);justify-content:space-between;gap:20px;margin:24px auto 0;padding-block:20px;display:flex}.fiddle-footer a{text-decoration:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.workbench{border:1px solid var(--line);background:var(--surface);box-shadow:0 5px 0 var(--soft);border-radius:10px;overflow:hidden}.workbench-toolbar{border-bottom:1px solid var(--line);background:color-mix(in srgb, var(--paper) 50%, var(--surface));flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-height:55px;padding:10px 16px;display:flex}.workspace-label{color:var(--muted);font:12px var(--mono);align-items:center;gap:9px;display:flex}.workspace-label>span{color:var(--accent);font-size:18px}.transfer-actions{align-items:center;gap:5px;display:flex}.workbench-body{grid-template-columns:185px minmax(260px,1fr) minmax(240px,.55fr);display:grid}.script-sidebar{border-right:1px solid var(--line);background:color-mix(in srgb, var(--paper) 35%, var(--surface));min-width:0}kalm-file-list{flex-direction:column;height:100%;padding:17px 12px 14px;display:flex}.panel-heading{justify-content:space-between;align-items:center;gap:8px;min-height:28px;display:flex}.files{flex-direction:column;gap:4px;max-height:275px;margin:13px -5px 9px;display:flex;overflow-y:auto}.file{text-align:left;min-height:38px;font:12px var(--mono);color:var(--muted);background:0 0;border:1px solid #0000;border-radius:5px;align-items:center;gap:9px;padding:8px;display:flex}.file>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-symbol{color:var(--muted);font-size:16px}.file.active{background:var(--soft);color:var(--ink);border-color:color-mix(in srgb, var(--line) 45%, transparent)}.file.active .file-symbol{color:var(--accent)}.file-actions{gap:15px;margin-left:4px;display:flex}.sidebar-rule{background:var(--line);opacity:.65;height:1px;margin:26px 0 22px}kalm-file-list select{width:100%;font:11px var(--mono);margin-top:10px;padding:9px 5px}.sidebar-note{color:var(--muted);margin:16px 2px;font-size:12px;line-height:1.65}.sidebar-bottom{color:var(--muted);font:9px var(--mono);align-items:center;gap:6px;margin-top:auto;padding-top:30px;display:flex}.editor-panel{flex-direction:column;min-width:0;display:flex}.editor-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;height:58px;padding:10px 15px;display:flex}.open-file{font:12px var(--mono);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.run-controls{align-items:center;gap:13px;display:flex}.run-shortcut{color:var(--muted);font:10px var(--mono);white-space:nowrap}kalm-editor{min-width:0;height:clamp(350px,49vh,610px);display:block;position:relative}.monaco-host{width:100%;height:100%}.editor-fallback{background:var(--surface);resize:none;width:100%;height:100%;font:14px/25px var(--mono);tab-size:4;border:0;padding:22px}.editor-status{border-top:1px solid var(--line);min-height:31px;color:var(--muted);font:9px var(--mono);justify-content:space-between;align-items:center;gap:8px;padding:7px 13px;display:flex}.arguments{border-top:1px solid var(--line)}.arguments summary{font:11px var(--mono);color:var(--muted);padding:12px 15px}.arguments summary>span{float:right;opacity:.8;font-size:9px}.arguments textarea{resize:vertical;width:calc(100% - 30px);font:12px/1.7 var(--mono);margin:0 15px 15px;display:block}kalm-output-panel{border-left:1px solid var(--line);flex-direction:column;min-width:0;display:flex}.output-heading{border-bottom:1px solid var(--line);min-height:58px;padding:12px 17px}.output-body{flex:1;min-height:250px;max-height:630px;padding:21px 17px;overflow:auto}.console-output{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 var(--mono);margin:0}.output-empty{text-align:center;color:var(--muted);margin:60px 0}.empty-symbol{font:36px var(--heading);color:var(--line)}.output-empty p{font:23px var(--heading);color:var(--ink);margin:16px 0 9px}.output-empty>span:last-child{font-size:12px}.output-status{border-top:1px solid var(--line);min-height:40px;color:var(--muted);font:10px var(--mono);align-items:center;gap:7px;margin:auto 17px 0;display:flex}.duration{margin-left:auto;font-size:9px}.status-dot.error{background:var(--accent)}.diagnostic{border:1px solid var(--accent);text-align:left;background:color-mix(in srgb, var(--accent) 5%, var(--surface));width:100%;font:12px/1.7 var(--mono);overflow-wrap:anywhere;border-radius:5px;gap:10px;margin-top:20px;padding:14px;display:grid}.diagnostic-code{color:var(--accent);font-size:10px}.diagnostic small{color:var(--muted)}.stale-note{font:10px/1.6 var(--mono);color:var(--muted);padding:0 17px}.quiet-output,.exit-code{font:12px/1.7 var(--mono);color:var(--muted)}.transfer-actions button,.dialog-actions button{border:1px solid var(--line);background:var(--surface);font:11px var(--mono);border-radius:5px;justify-content:center;align-items:center;gap:7px;min-height:34px;padding:7px 10px;display:inline-flex}button:hover:not(:disabled){border-color:var(--accent)}button.primary{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);min-height:35px;font:12px var(--mono);border-radius:5px;justify-content:center;align-items:center;gap:8px;padding:9px 15px;display:inline-flex}button.primary:hover{filter:brightness(1.08)}.stop-button{border:1px solid var(--accent);color:var(--accent);font:12px var(--mono);background:0 0;border-radius:5px;padding:9px 15px}.icon-button{border:1px solid var(--line);width:28px;height:28px;color:var(--muted);font:18px var(--mono);background:0 0;border-radius:4px;place-items:center;padding:0;display:inline-grid}.text-button,.file-actions button{color:var(--muted);font:11px var(--mono);background:0 0;border:0;padding:4px 0}.text-button:hover:not(:disabled),.file-actions button:hover:not(:disabled){color:var(--accent)}input,textarea,select{border:1px solid var(--line);background:var(--surface);border-radius:4px;padding:9px 12px}dialog{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;width:min(620px,100% - 32px);max-height:calc(100dvh - 48px);padding:28px;box-shadow:0 20px 70px #0003}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1a1c1966}dialog h2{font:32px/1.1 var(--heading);letter-spacing:-.025em;margin:12px 0 20px}dialog h3{font:21px var(--heading);margin-top:26px}dialog p{color:var(--muted);font-size:14px;line-height:1.7}dialog code,kbd{font:11px var(--mono);background:var(--soft);color:var(--ink);border-radius:3px;padding:2px 4px}.dialog-heading{justify-content:space-between;align-items:center;display:flex}.help-dialog form{margin-top:24px}.file-dialog{width:min(430px,100% - 32px)}.file-dialog label{font:12px var(--mono);margin-bottom:7px;display:block}.file-dialog input{width:100%;font:13px var(--mono)}.file-dialog .field-hint{margin-top:7px;font-size:11px}.dialog-actions{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.file-dialog .form-error{color:var(--accent);font-size:12px}@media (width<=1150px){.workbench-body{grid-template-columns:165px minmax(250px,1fr) 260px}.run-shortcut{display:none}.intro{align-items:flex-start}.browser-badge{margin-top:5px}}@media (width<=900px){.workbench-body{grid-template-columns:155px minmax(0,1fr)}kalm-output-panel{border-left:0;border-top:1px solid var(--line);grid-column:1/-1}.output-body{min-height:180px;max-height:300px}.output-empty{margin:15px 0}.output-heading{min-height:45px}.intro{flex-direction:column;gap:16px}.browser-badge{display:none}}@media (width<=600px){main{padding-top:28px}.intro{margin-bottom:22px}.intro p:last-child{max-width:28rem;font-size:13px}.header-nav{gap:1rem}.header-nav a{display:none}.header-divider{margin:0}.site-header-inner{min-height:64px}.workbench-toolbar{padding:8px 10px}.workspace-label{display:none}.transfer-actions{justify-content:space-between;gap:5px;width:100%}.transfer-actions button{padding-inline:7px;font-size:10px}.workbench-body{flex-direction:column;display:flex}.script-sidebar{border-right:0;border-bottom:1px solid var(--line)}kalm-file-list{grid-template-columns:1fr auto;gap:5px 12px;padding:10px;display:grid}.panel-heading{grid-column:1/-1}.files{flex-direction:row;grid-column:1/-1;max-width:100%;max-height:none;margin:5px 0;overflow-x:auto}.file{flex:none;max-width:230px}.file-actions{grid-area:3/2;align-self:center}kalm-file-list select{grid-area:3/1;width:150px;margin-top:0}kalm-file-list>label,.sidebar-rule,.sidebar-note,.sidebar-bottom{display:none}.editor-heading{height:52px;padding:8px 10px}.open-file{font-size:11px}kalm-editor{height:365px}.editor-status{font-size:8px}.below-workbench{padding-top:18px;font-size:9px}.below-workbench .text-button{font-size:10px}.fiddle-footer{margin-top:12px;font-size:10px}dialog{padding:22px}.icon-button{min-width:32px;min-height:32px}}
