:root{color-scheme:light;--paper:#f3f2ea;--ink:#202621;--muted:#4b594f;--dark:#232c2a;--key:#404c48;--accent:#c7e78b;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:.22em}button,label.upload,summary{-webkit-tap-highlight-color:transparent}button,label.upload{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,label:focus-visible{outline:3px solid #54762c;outline-offset:3px}.device button:focus-visible{outline-color:#caf18b}::selection{background:#c7e78b;color:#202621}header,footer,main{width:min(100% - 48px,1040px);margin:auto}header{height:68px;border-bottom:1px solid #cbd0c3;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:.65rem;font-weight:750;text-decoration:none}.chip{background:var(--ink);color:var(--accent);padding:.28rem .44rem;border-radius:.27rem;font-family:ui-monospace,monospace}.local{font-size:.86rem;color:var(--muted)}main{display:grid;grid-template-columns:minmax(330px,432px) minmax(260px,365px);justify-content:center;align-items:start;gap:clamp(34px,7vw,94px);padding:38px 0 38px}.device{background:var(--dark);color:#eef4e9;padding:20px;border-radius:23px 23px 28px 28px;box-shadow:0 13px 28px #27352032,inset 0 0 0 1px #55645f}.device-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:11px;font:700 .75rem ui-monospace,monospace;letter-spacing:.075em}.device-title span{color:#bfcebd;letter-spacing:0}.bezel{position:relative;background:#171e1b;border:7px solid #151c18;border-radius:11px;overflow:hidden;aspect-ratio:4/3}.bezel canvas{display:block;width:100%;height:100%;image-rendering:pixelated;background:#101612}#cover{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:9px;background:#bed29e;color:#293823;text-align:center;padding:12px}#cover span{font-size:.84rem}#cover strong{font-size:1.12rem}.display-mark{width:28px;height:18px;border:2px solid #536d43;border-radius:3px;position:relative}.display-mark:after{content:"";position:absolute;width:12px;height:2px;background:#536d43;left:6px;bottom:4px}.matrix{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:15px}.key{height:40px;min-width:0;border:1px solid #66776d;border-bottom:3px solid #151e19;border-radius:7px 7px 9px 9px;background:var(--key);color:#f7faf3;font:700 .82rem ui-monospace,monospace;touch-action:none;user-select:none;padding:0;display:grid;place-items:center}.key:disabled{cursor:default}.key:not(:disabled):hover{filter:brightness(1.17)}.key.held{transform:translateY(2px);filter:brightness(1.3);border-bottom-width:1px}.key.num{background:#e9eddf;color:#172319;border-color:#c9d3be;border-bottom-color:#8f9c82;font-size:1.05rem}.key.shift{background:#bade75;color:#263917;border-color:#bade75;border-bottom-color:#75934c}.key.alpha{background:#92d4c2;color:#163f33;border-color:#92d4c2;border-bottom-color:#549986}.key.enter{background:#cedfba;color:#20331e;border-color:#cedfba;border-bottom-color:#7f9a6e}.key.arrow svg{width:15px;height:15px}.setup{padding-top:13px}h1{font-size:clamp(2.1rem,5vw,3.75rem);line-height:1.12;letter-spacing:-.035em;margin:0 0 18px;font-weight:820}h2{margin:0 0 7px;font-size:1.10rem}.intro,.loader p,.notes p{color:var(--muted);line-height:1.65;margin:0}.loader{margin-top:25px;padding:17px;border:1px dashed #809071;border-radius:12px;background:#f9f8f0}.loader.drag{outline:2px solid #54762c;background:#e8f1da}.loader p{margin-bottom:13px}#file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}#file:focus-visible+.upload{outline:3px solid #54762c;outline-offset:3px}.upload{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem 1rem;background:#28442d;color:#fff;border-radius:7px;font-weight:700}.upload:hover{background:#355d3e}.notice{font-size:.9rem;color:#3d523d;min-height:1.45em;overflow-wrap:anywhere;margin:12px 0}.notice.error{color:#982c2a}.notes{margin-top:24px;border-top:1px solid #cbd0c3;padding-top:16px}.notes details{margin-top:10px}.notes details p{margin-top:8px}summary{cursor:pointer;font-weight:650}code,kbd{font-family:ui-monospace,monospace;font-size:.9em;background:#e5e9db;border-radius:3px;padding:.08em .25em}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button{min-height:40px;background:transparent;border:1px solid #9fae97;border-radius:6px;padding:.35rem .6rem;color:var(--ink);font-size:.9rem}.actions button:hover{background:#e5eadc}[hidden]{display:none!important}footer{border-top:1px solid #cbd0c3;padding:16px 0;color:var(--muted);font-size:.84rem;line-height:1.6}footer span{margin-left:1em}@media(max-width:690px){header,footer,main{width:min(100% - 24px,432px)}header{height:52px;font-size:.9rem}.local{font-size:.77rem}main{display:flex;flex-direction:column;gap:20px;padding:15px 0 25px}.device,.setup{width:100%}.setup{padding:0;order:-1}.setup h1{font-size:1.65rem;margin:0 0 8px}.setup h1 br{display:none}.intro{font-size:.91rem}.loader{margin-top:12px;padding:12px}.loader p{font-size:.86rem;margin-bottom:8px}.notes{margin-top:10px;padding-top:8px}.notes>h2,.notes>p{display:none}.notes details{font-size:.85rem;margin:0}.device{padding:13px}.key{height:40px}.matrix{gap:6px}}
