:root{color-scheme:light dark;font-family:Inter,system-ui,sans-serif;background:var(--tg-theme-bg-color,Canvas);color:var(--tg-theme-text-color,CanvasText)}
*{box-sizing:border-box}body{margin:0}main{max-width:850px;margin:auto;padding:18px 14px calc(22px + env(safe-area-inset-bottom))}h1{font-size:1.4rem;margin:0}p,label{font-size:1rem;line-height:1.45}header{margin-bottom:14px}.viewport{background:#151923;border-radius:8px;overflow:auto}img{display:block;width:100%;min-width:640px;height:auto;touch-action:pan-x pan-y pinch-zoom}section,footer{margin-top:14px}.entry,.keys,footer{display:flex;flex-wrap:wrap;gap:8px}.entry{margin:6px 0}.entry input{flex:1;min-width:110px}button,input{font:inherit;min-height:42px;padding:8px 12px;border-radius:8px;border:1px solid #80808080}button{cursor:pointer;background:var(--tg-theme-secondary-bg-color,ButtonFace);color:inherit}.primary{background:var(--tg-theme-button-color,#176bba);color:var(--tg-theme-button-text-color,white);border:0}.error{color:var(--tg-theme-destructive-text-color,#c83a36)}[hidden]{display:none!important}
