.screen{--cw:15px;--ch:18px;--s1:5px;--s2:8px;--s3:5px;--sx:1.3889;width:calc(var(--cw) * 40);height:calc(var(--ch) * 25);-webkit-user-select:none;user-select:none;touch-action:manipulation;grid-template-rows:repeat(25, var(--ch));background:#000;outline:none;font-family:Bedstead,Courier New,monospace;line-height:1;display:grid;position:relative;overflow:hidden}.screen.mix{background:0 0}.screen .row{grid-template-columns:repeat(40, var(--cw));height:var(--ch);display:grid}.screen .c{white-space:pre;font-size:var(--ch);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.screen .c .g{transform:scaleX(var(--sx));transform-origin:50%;line-height:1;display:block}.screen .c.dh .g{transform:scaleX(var(--sx)) scaleY(2);transform-origin:50% 0}.screen .c.dh.lower .g{transform:scaleX(var(--sx)) scaleY(2);transform-origin:50% 100%}.screen .c.m .g{grid-template-columns:1fr 1fr;grid-template-rows:var(--s1) var(--s2) var(--s3);width:100%;height:100%;display:grid}.screen .c.m .g i{display:block}.screen .c.m .g i.on{background:currentColor}.screen .c.m.sep .g i.on{width:66.7%;height:70%}.screen .c.m .g,.screen .c.m.dh .g,.screen .c.m.dh.lower .g{transform:none}.screen .c.m.dh .g{height:200%}.screen .c.m.dh.lower .g{transform:translateY(-50%)}.screen .c.hid .g{visibility:hidden}.screen .c.flash .g{animation:1s step-end infinite tb-flash}@keyframes tb-flash{50%{visibility:hidden}}@media (prefers-reduced-motion:reduce){.screen .c.flash .g{animation:none}}.screen .c.link{cursor:pointer}.screen .c.hot{color:#000!important;background:#fff!important}.screen .c.hot .g{visibility:visible}@font-face{font-family:Bedstead;src:url(/fonts/bedstead.otf)format("opentype");font-display:block}:root{--bg:#000;--shell:#2a2a2e;--ink:#e9e9e6;--muted:#a4a4a8;--line:#3d3d42;--key:#1d1d20;--key-ink:#f2f2ee;--focus:#ffd400;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--ink);margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}.screen-wrap{width:100vw;height:100vh;justify-content:center;align-items:center;height:100dvh;display:flex}.tooltip{z-index:5;pointer-events:none;color:#fff;white-space:nowrap;background:#111;border-radius:6px;padding:4px 8px;font:13px system-ui,sans-serif;position:absolute;transform:translate(-50%,-120%)}body.with-chrome .screen-wrap{width:calc(100vw - 250px);height:calc(100vh - 44px);height:calc(100dvh - 44px)}.chrome .caption{color:var(--muted);gap:16px;font-size:13px;display:flex;position:fixed;bottom:12px;left:16px}.chrome .caption b{color:var(--ink);font-weight:600}.remote{background:var(--shell);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:10px;width:220px;padding:12px;display:flex;position:fixed;top:12px;bottom:12px;right:12px;overflow:auto}.pad{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.key{background:var(--key);color:var(--key-ink);border:1px solid var(--line);font:inherit;cursor:pointer;border-radius:8px;padding:10px 0;font-size:16px}.key:active{transform:translateY(1px)}.key:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.key[aria-pressed=true]{background:var(--ink);color:var(--shell)}.ft{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.ft .key{color:#000;border:none;padding:12px 0;font-size:13px;font-weight:600}.ft .r{background:red}.ft .g{background:#0f0}.ft .y{background:#ff0}.ft .b{color:#fff;background:#3b7bff}.pair{grid-template-columns:1fr 1fr;gap:8px;display:grid}.state{color:#0f0;background:#000;border-radius:8px;min-height:56px;padding:8px 10px;font-family:Bedstead,monospace;font-size:16px;line-height:1.2}.state small{color:#ff0;margin-top:4px;font-size:14px;display:block}.hint{color:var(--muted);margin:0;font-size:12px;line-height:1.5}kbd{background:var(--key);border:1px solid var(--line);border-radius:4px;padding:0 5px;font:12px system-ui}dialog.keypad{border:1px solid var(--line);background:var(--shell);color:var(--ink);border-radius:14px;width:min(320px,90vw);padding:16px}dialog.keypad::backdrop{background:#0009}dialog.keypad .pad{margin-top:12px}dialog.keypad .entry{color:#0f0;text-align:center;background:#000;border-radius:8px;padding:8px 12px;font-family:Bedstead,monospace;font-size:28px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}
