*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{background:#0b0b0c;color:#e8e6e3;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}

.screen{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:20px}
.screen.top{justify-content:flex-start}
h1{font-weight:300;letter-spacing:.18em;text-transform:lowercase;font-size:clamp(22px,4vw,34px)}
h1 span{color:#8a8782}

form{display:flex;gap:8px;width:min(360px,100%)}
input,button{font:inherit;color:inherit;background:#18181a;border:1px solid #2c2c30;border-radius:6px}
input{flex:1;padding:10px 12px}
input:focus,button:focus-visible{outline:2px solid #c9a96e;outline-offset:1px}
button{padding:10px 16px;cursor:pointer}
button:hover{background:#222226}
button:disabled{opacity:.5;cursor:wait}
button.link{background:none;border:0;color:#8a8782;padding:4px}
button.link:hover{color:#e8e6e3}

header{width:min(1280px,100%);display:flex;justify-content:space-between;align-items:center}
.stage{width:min(1280px,100%);aspect-ratio:16/9;max-height:80vh;background:#000;border-radius:8px;overflow:hidden;position:relative;user-select:none}

.msg{min-height:1.5em;color:#e07a6a;text-align:center;max-width:720px}
.msg.ok{color:#8fbf8f}
.diag{width:min(720px,100%);background:#141416;border:1px solid #2c2c30;border-radius:6px;padding:12px 16px;font-size:13px}
.diag p{margin-top:4px}.diag .ok{color:#8fbf8f}.diag .ko{color:#e07a6a}.diag .small{color:#8a8782;font-size:11px;word-break:break-all}
.keys{font-size:12px;color:#5f5d59;text-align:center}
