:root{color-scheme:dark;background:#151719;color:#f6f7f8;font:16px/1.5 system-ui,sans-serif}*{box-sizing:border-box}
body{margin:0}main{max-width:66rem;padding:1.4rem;margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:1rem}header span{letter-spacing:.12em;color:#ffad70;font-weight:700;font-size:.85rem}
h1{font-size:clamp(2rem,7vw,3.6rem);line-height:1.12;margin-bottom:0}h2{margin-top:0}p{max-width:60ch}
.layout{display:grid;gap:1rem;margin-top:2rem;grid-template-columns:1fr 1fr}
section{min-width:0;padding:1.35rem;background:#212428;border:1px solid #42474c;border-radius:1rem}
button{font:inherit;font-weight:700;border:1px solid #ffad70;color:#171717;background:#ffad70;border-radius:.65rem;min-height:44px;padding:.4rem .9rem;cursor:pointer}
button:disabled{opacity:.7;cursor:default}button:focus-visible{outline:3px solid #fff;outline-offset:2px}
#qr{max-width:100%;height:auto;border-radius:.5rem;margin-top:1rem}#qr:not([hidden]){display:block}
#status{font-weight:700}#buttons{display:grid;gap:.45rem;grid-template-columns:repeat(4,1fr);margin:1.1rem 0}
.key{text-align:center;padding:.32rem .1rem;background:#2d3237;border:1px solid #535a61;border-radius:.45rem;font-size:.85rem;min-width:0}
.key.on{color:#151719;background:#ffad70;font-weight:800;border-color:#ffad70}
#events{padding-left:1.3rem;max-height:12rem;overflow:auto}.note,#empty{color:#c7ccd0;font-size:.9rem}
.note a{color:#ffad70;text-underline-offset:.2em}.note a:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:42rem){.layout{grid-template-columns:1fr}main{padding:1rem}section{padding:1rem}}
