*{box-sizing:border-box}body{margin:0;background:#0e1721;color:#edf4fa;font:16px system-ui}header,nav,footer{display:flex;align-items:center;gap:8px;padding:12px;flex-wrap:wrap;background:#152536}header strong{margin-inline-end:auto}button,select,input,textarea{font:inherit}button,select{background:#25435b;color:white;border:1px solid #47647b;border-radius:8px;padding:10px;min-height:44px}button:disabled{opacity:.5}#status{margin:8px 16px;color:#acc7da}#messages{padding:12px;overflow:auto;height:calc(100dvh - 310px);min-height:180px}.message{white-space:pre-wrap;overflow-wrap:anywhere;background:#1b2c3d;margin:10px 0;padding:12px;border-radius:10px}.user{background:#25435b}form{display:flex;gap:8px;padding:12px;align-items:end}textarea{flex:1;min-width:0;border-radius:8px;padding:10px;background:#182735;color:white;border:1px solid #47647b}.request{margin:12px;padding:12px;border:1px solid #d7b76d;white-space:pre-wrap}.request button{margin:5px}#screenScroll{height:calc(100dvh - 190px);overflow:auto;direction:ltr;touch-action:pan-x pan-y}#screen{width:100%;height:100%;transform-origin:top left}#typing{width:100%;background:#152536;color:white;border:1px solid #47647b;padding:8px}#login{padding:20px}[hidden]{display:none!important}footer{direction:ltr}#zoom{width:100px}
html,body,main{max-width:100%;overflow-x:hidden}nav select{flex:1;min-width:0;width:0;max-width:100%}nav button{flex-shrink:0}header{position:sticky;top:0;z-index:10}header strong{flex-basis:100%}

#desktopPane{display:flex;flex-direction:column;height:calc(var(--app-height,100dvh) - 132px);min-height:160px}#screenScroll{height:auto;flex:1;min-height:80px}#desktopPane footer,#typing{flex:none}#typing{min-height:44px;font-size:16px}
