:root{--bg:#0b0b0b;--bg-soft:#141414;--fg:#e6e6e6;--fg-dim:#9a9a9a;--rule:#2a2a2a;--inv-bg:#e6e6e6;--inv-fg:#0b0b0b;--err:#e5534b;--ok:#6ee787;--font:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"DejaVu Sans Mono","Liberation Mono",monospace}
@media(prefers-color-scheme:light){:root{--bg:#f4f4f4;--bg-soft:#e9e9e9;--fg:#141414;--fg-dim:#4a4a4a;--rule:#d4d4d4;--inv-bg:#141414;--inv-fg:#f4f4f4;--ok:#1a7f37}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:1rem/1.6 var(--font)}
.wrap{max-width:92ch;margin:0 auto;padding:0 1.5rem}
header{border-bottom:1px solid var(--rule);padding:1rem 0;margin-bottom:1.5rem}
.prompt{font-size:.875rem;color:var(--fg-dim)}.prompt .cmd{color:var(--fg)}
h1{font-size:1.25rem;font-weight:400;margin:0 0 1rem}
label{display:block;font-size:.85rem;color:var(--fg-dim);margin:.5rem 0 .15rem}
/* select sits in the same .row as the number input, so it has to take the same
   padding: a shorter one made the two controls visibly different heights. */
textarea,input[type=number],select{width:100%;background:var(--bg-soft);color:var(--fg);border:1px solid var(--rule);border-radius:4px;padding:.5rem;font:inherit;font-size:.9rem}
textarea{resize:vertical;min-height:12rem;white-space:pre;overflow-wrap:normal;overflow-x:auto}
textarea:focus,input:focus{outline:1px solid var(--fg);border-color:var(--fg)}
.row{display:flex;gap:.75rem;flex-wrap:wrap}.row>*{flex:1;min-width:12rem}
button{margin-top:.75rem;background:var(--bg-soft);color:var(--fg);border:1px solid var(--rule);border-radius:4px;padding:.4rem .7rem;font:inherit;font-size:.85rem;cursor:pointer}
button:hover{background:var(--inv-bg);color:var(--inv-fg)}
table{width:100%;border-collapse:collapse;margin-top:.5rem;font-size:.85rem}
th,td{text-align:left;padding:.35rem .4rem;border-bottom:1px solid var(--rule);vertical-align:top}
th{color:var(--fg-dim);font-weight:400}
td button{margin:0}
a{color:var(--fg)}
.err{color:var(--err);font-size:.85rem}.ok{color:var(--ok);font-size:.85rem}
.note{color:var(--fg-dim);font-size:.8rem}
pre.paste{background:var(--bg-soft);border:1px solid var(--rule);border-radius:6px;padding:1rem;overflow-x:auto;white-space:pre;font-size:.85rem;line-height:1.5}
footer{border-top:1px solid var(--rule);margin-top:2rem;padding:1rem 0;color:var(--fg-dim);font-size:.8rem}
.hl{border:1px solid var(--rule);border-radius:6px;overflow-x:auto;font-size:.85rem;line-height:1.5}
.hl pre{margin:0;padding:.75rem 0}
.hl .lntable{border:0;margin:0;width:auto}
.hl .lntable td{border:0;padding:0 .75rem;vertical-align:top}
.hl .lnt{color:var(--fg-dim);user-select:none}
