:root {color-scheme:dark;font:14px system-ui,sans-serif;background:#0a0e14;color:#d4dce6;}
* {box-sizing:border-box;}
body {margin:0;height:100vh;height:100dvh;overflow:hidden;}
button,input,textarea,select {font:inherit;}
button {min-height:42px;border:1px solid #385068;border-radius:7px;background:#172435;color:#e6f1ff;padding:8px 13px;touch-action:manipulation;cursor:pointer;}
button:disabled {opacity:.4;cursor:not-allowed;}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {outline:2px solid #6de3ca;outline-offset:2px;}
input,textarea,select {color:inherit;background:#0e1825;border:1px solid #385068;border-radius:6px;padding:8px;}
[hidden] {display:none!important;}
#login {height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;}
#login p {margin:0;color:#9baec4;} #token {width:min(360px,100%);}
#main {height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
header {display:flex;gap:10px;align-items:center;padding:6px 10px;background:#111b29;flex-shrink:0;}
header strong {color:#6de3ca;} #connection {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9baec4;font-size:12px;}
header button {min-height:34px;font-size:12px;padding:5px 8px;}
#panes {display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:7px;background:#0e1723;}
#panes button {white-space:nowrap;min-height:36px;font-size:12px;}
#panes button.selected {border-color:#6de3ca;background:#163b3b;}
#target {display:flex;align-items:center;gap:8px;padding:5px 9px;flex-shrink:0;flex-wrap:wrap;background:#111b29;font-size:12px;}
#pane-label {font-weight:600;} #ownership {flex:1;color:#b3c4d8;} #target button {min-height:32px;font-size:12px;padding:5px 9px;}
#output {flex:1;min-height:0;min-width:0;overflow:auto;margin:0;padding:10px;font:12px/1.45 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;}
#notice {flex-shrink:0;padding:6px 10px;color:#b5d6f2;background:#142333;font-size:12px;min-height:28px;}
#notice.error {background:#3b2026;color:#ffd7df;}
#controls {flex-shrink:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:#101b29;border-top:1px solid #385068;max-height:52%;overflow:auto;}
.keys {display:flex;gap:5px;overflow-x:auto;padding-bottom:5px;}
.keys button {flex-shrink:0;min-width:43px;} .danger {border-color:#a26777;}
.numbers {display:flex;align-items:center;gap:7px;overflow-x:auto;padding:3px 0 6px;white-space:nowrap;}
#digits {display:flex;gap:4px;} #digits button {min-width:35px;min-height:37px;padding:4px 9px;}
.compose {display:flex;align-items:center;gap:7px;font-size:12px;padding:2px 0 5px;flex-wrap:wrap;} .follow {margin-left:auto;}
#bar {display:flex;gap:6px;} #input {flex:1;min-width:0;resize:none;font-size:16px;line-height:1.3;} #send {max-width:105px;}
footer {flex-shrink:0;font-size:10px;color:#8fa5bb;padding:3px 8px;background:#0c1420;}
@media(max-height:520px) {footer{display:none;} #controls{max-height:60%;} .keys button{min-height:35px;} #input{max-height:42px;} }
