:root,:root[data-theme=dark]{--bg: #15171c;--surface-1: #1b1e25;--surface-2: #21252d;--surface-3: #272c35;--ink: #e7e9ef;--muted: #949cb0;--layer: rgb(255 255 255 / 5%);--layer-strong: rgb(255 255 255 / 9%);--layer-hover: rgb(255 255 255 / 13%);--shadow-sm: 0 1px 2px rgb(0 0 0 / 28%);--shadow-md: 0 2px 10px -2px rgb(0 0 0 / 45%);--shadow-lg: 0 14px 40px -10px rgb(0 0 0 / 70%);--accent: #74b7ff;--ring: rgb(116 183 255 / 55%);--kw: #cb9bee;--type: #86d6b4;--str: #a9d9ab;--num: #f8ca86;--lit: #ffa4a4;--comment: #767e91;--bad: #ff7272;--bad-wash: rgb(255 114 114 / 15%);--hot: rgb(116 183 255 / 20%);--gutter: rgb(231 233 239 / 35%);--select: rgb(116 183 255 / 28%);--code: "Noto Sans Ethiopic", "Noto Serif Ethiopic", "Abyssinica SIL", "Kefa", "Nyala", ui-monospace, "SF Mono", Menlo, monospace;--ui: system-ui, -apple-system, "Segoe UI", sans-serif}@media(prefers-color-scheme:light){:root:not([data-theme=dark]){--bg: #fdfdfc;--surface-1: #f3f4f1;--surface-2: #eaebe7;--surface-3: #e1e3de;--ink: #1b1f27;--muted: #636b7b;--layer: rgb(18 22 31 / 4%);--layer-strong: rgb(18 22 31 / 7%);--layer-hover: rgb(18 22 31 / 10%);--shadow-sm: 0 1px 2px rgb(18 22 31 / 8%);--shadow-md: 0 2px 10px -2px rgb(18 22 31 / 14%);--shadow-lg: 0 14px 40px -10px rgb(18 22 31 / 26%);--accent: #0a5fc0;--ring: rgb(10 95 192 / 45%);--kw: #7f24b0;--type: #0a6a51;--str: #1c6b29;--num: #a04d08;--lit: #ab1f4c;--comment: #747b8a;--bad: #c0252b;--bad-wash: rgb(192 37 43 / 11%);--hot: rgb(10 95 192 / 14%);--gutter: rgb(27 31 39 / 38%);--select: rgb(10 95 192 / 20%)}}:root[data-theme=light]{--bg: #fdfdfc;--surface-1: #f3f4f1;--surface-2: #eaebe7;--surface-3: #e1e3de;--ink: #1b1f27;--muted: #636b7b;--layer: rgb(18 22 31 / 4%);--layer-strong: rgb(18 22 31 / 7%);--layer-hover: rgb(18 22 31 / 10%);--shadow-sm: 0 1px 2px rgb(18 22 31 / 8%);--shadow-md: 0 2px 10px -2px rgb(18 22 31 / 14%);--shadow-lg: 0 14px 40px -10px rgb(18 22 31 / 26%);--accent: #0a5fc0;--ring: rgb(10 95 192 / 45%);--kw: #7f24b0;--type: #0a6a51;--str: #1c6b29;--num: #a04d08;--lit: #ab1f4c;--comment: #747b8a;--bad: #c0252b;--bad-wash: rgb(192 37 43 / 11%);--hot: rgb(10 95 192 / 14%);--gutter: rgb(27 31 39 / 38%);--select: rgb(10 95 192 / 20%)}.sitebar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1.2rem;padding:.65rem 1.4rem;background:var(--surface-2);font-family:var(--ui)}.sitebar .brand{display:flex;align-items:baseline;gap:.35rem;color:var(--ink);text-decoration:none;font-family:var(--code)}.sitebar .brand strong{font-size:1.15rem}.sitebar .version{color:var(--muted);font-size:.78rem}.sitebar .nav{display:flex;gap:.2rem;flex-wrap:wrap}.sitebar .nav a{padding:.3rem .7rem;border-radius:6px;color:var(--muted);text-decoration:none;font-size:.92rem}.sitebar .nav a:hover{background:var(--layer);color:var(--ink)}.sitebar .nav a[aria-current=page]{background:var(--layer-strong);color:var(--ink)}.sitebar .spacer{flex:1}.sitebar .chip{padding:.28rem .65rem;border:0;border-radius:6px;background:var(--layer-strong);color:var(--ink);font:inherit;font-size:.85rem;text-decoration:none;cursor:pointer}.sitebar .chip:hover{background:var(--layer-hover)}.sitebar .chip:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)}@media(max-width:760px){.sitebar{flex-wrap:wrap;gap:.6rem}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font-family:var(--ui)}.bar{display:flex;align-items:center;gap:1rem;padding:.45rem 1rem;background:var(--surface-1)}.spacer{flex:1}.examples{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--muted)}.examples select{max-width:14rem}select,button{font:inherit;color:var(--ink);background:var(--layer-strong);border:0;border-radius:6px;padding:.33rem .62rem;box-shadow:var(--shadow-sm);transition:background .12s ease,box-shadow .12s ease}button{cursor:pointer}select:hover,button:hover{background:var(--layer-hover);box-shadow:var(--shadow-md)}select:focus-visible,button:focus-visible{outline:none;box-shadow:var(--shadow-sm),0 0 0 3px var(--ring)}.run,.stop{color:var(--bg);font-weight:600}.run{background:var(--accent)}.stop{background:var(--bad)}.run:hover,.stop:hover{filter:brightness(1.08)}.run:hover{background:var(--accent)}.stop:hover{background:var(--bad)}.status{font-size:.82rem;color:var(--muted);min-width:10ch;text-align:right}.status[data-state=bad]{color:var(--bad)}.status[data-state=good]{color:var(--type)}.layout{flex:1;display:grid;grid-template-rows:minmax(0,3fr) minmax(0,2fr);min-height:0}.top,.bottom{display:flex;flex-direction:column;min-height:0;min-width:0}.bottom{background:var(--surface-1)}.editor-wrap{position:relative;flex:1;min-height:0;overflow:hidden}.gutter,.backdrop,.editor{margin:0;border:0;font-family:var(--code);font-size:.95rem;line-height:1.6;tab-size:4;white-space:pre}.gutter{position:absolute;inset:0 auto 0 0;width:3.4rem;padding:.9rem .6rem .9rem 0;overflow:hidden;text-align:right;color:var(--gutter);background:var(--surface-1);user-select:none;pointer-events:none}.backdrop{position:absolute;inset:0 0 0 3.4rem;padding:.9rem;overflow:auto;color:var(--ink);pointer-events:none}.editor{position:absolute;inset:0 0 0 3.4rem;padding:.9rem;resize:none;background:transparent;color:transparent;caret-color:var(--ink);outline:none;overflow:auto}.editor::selection{background:var(--select)}.tk-kw{color:var(--kw);font-weight:600}.tk-type{color:var(--type)}.tk-lit{color:var(--lit)}.tk-reserved{color:var(--lit);text-decoration:underline dotted}.tk-str{color:var(--str)}.tk-num{color:var(--num)}.tk-id{color:var(--ink)}.tk-op{color:var(--accent)}.tk-then{color:var(--kw);font-weight:600}.tk-punct{color:var(--muted)}.tk-comment{color:var(--comment);font-style:italic}.tk-bad{background:var(--bad-wash);border-radius:2px;text-decoration:underline wavy var(--bad);text-underline-offset:3px;text-decoration-thickness:1px}.tk-hot{background:var(--hot);border-radius:2px}.editor-status{display:flex;justify-content:flex-end;gap:1rem;padding:.25rem .9rem;background:var(--bg);color:var(--muted);font-family:var(--code);font-size:.78rem}.tabs{display:flex;gap:.25rem;padding:.45rem .6rem;background:var(--surface-2)}.tab{background:transparent;box-shadow:none;color:var(--muted);padding:.33rem .75rem;font-size:.85rem}.tab:hover{background:var(--layer-strong);box-shadow:none}.tab[aria-selected=true]{background:var(--surface-1);color:var(--ink)}.count:not(:empty){display:inline-block;margin-left:.3rem;padding:0 .35rem;border-radius:999px;background:var(--bad);color:var(--bg);font-size:.72rem;font-weight:700}.panels{flex:1;min-height:0;position:relative}.panel{position:absolute;inset:0;margin:0;padding:.9rem;overflow:auto;font-family:var(--code);font-size:.88rem;line-height:1.55;white-space:pre-wrap}.panel[hidden]{display:none}.row{display:block;padding:0 .25rem;border-radius:3px;cursor:default;white-space:pre}.row:hover{background:var(--layer-strong)}.row .span{color:var(--muted);opacity:.85}.row .kind{color:var(--accent)}.row .val{color:var(--str)}.diag{padding:.3rem .1rem 1.15rem;white-space:normal}.diag:last-child{padding-bottom:.3rem}.diag-head{display:flex;align-items:baseline;gap:.5rem}.diag .code{flex:none;color:var(--bad);font-weight:700;font-size:.82rem;letter-spacing:.02em}.diag-message{color:var(--ink)}.diag-where{margin-top:.2rem;color:var(--muted);font-size:.8rem}.snippet{display:flex;margin-top:.45rem;border-radius:5px;background:var(--layer);overflow-x:auto;line-height:1.6}.snippet-gutter{flex:none;min-width:2.6rem;padding:.3rem .5rem;background:var(--layer);color:var(--gutter);font-size:.8rem;text-align:right;user-select:none}.snippet-code{padding:.3rem .7rem;white-space:pre;font-family:var(--code)}.diag .frames{margin-top:.5rem;color:var(--muted);font-size:.82rem;opacity:.9}.frame{display:block}.tip{position:fixed;z-index:10;max-width:32rem;padding:.45rem .65rem;border-radius:6px;background:var(--bg);box-shadow:var(--shadow-lg),0 0 0 1px var(--layer-strong);font-family:var(--ui);font-size:.84rem;line-height:1.45;pointer-events:none}.tip[hidden]{display:none}.tip .code{color:var(--bad);font-family:var(--code);font-weight:700;margin-right:.35rem}.tip .where{color:var(--muted);font-size:.78rem}.empty{color:var(--muted);font-style:italic;opacity:.85}.value{display:block;margin-top:.8rem;color:var(--muted)}@media(max-height:640px){.layout{grid-template-rows:minmax(0,2fr) minmax(0,1fr)}}.ask{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:#00000073}.ask[hidden]{display:none}.ask-box{width:min(32rem,100%);padding:1.1rem 1.2rem 1rem;border-radius:10px;background:var(--surface-1);box-shadow:var(--shadow-lg)}.ask-box h2{margin:0;font-size:1rem;font-weight:600}.ask-why{margin:.3rem 0 .7rem;color:var(--muted);font-size:.84rem}#ask-input{width:100%;min-height:7rem;margin:0;padding:.55rem .7rem;border:0;border-radius:6px;resize:vertical;background:var(--bg);color:var(--ink);font-family:var(--code);font-size:.92rem;line-height:1.6;outline:none}#ask-input:focus-visible{box-shadow:0 0 0 2px var(--ring)}#ask-input::selection{background:var(--select)}.ask-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.8rem}
