.native-terminal { padding:18px; border-top:1px solid var(--line); background:#101319; color:#dce2ee; }
.native-terminal-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.native-terminal-toolbar>strong { flex:1; font-size:13px; color:#bdcbdc; }
.native-terminal .button { color:#dce2ee; border-color:#475365; background:#202733; }
.native-terminal .button:hover { background:#2b3545; }
.native-terminal .help { color:#aab6c6; }
.native-terminal-canvas { min-width:0; height:520px; padding:8px; border:1px solid #303949; border-radius:8px; background:#101319; overflow:hidden; }
.native-terminal-canvas .xterm { height:100%; }
.native-terminal-expanded { position:fixed; inset:12px; z-index:100; display:flex; flex-direction:column; border:1px solid #475365; border-radius:12px; box-shadow:0 0 0 100vw #000b; }
.native-terminal-expanded .native-terminal-canvas { height:auto; min-height:0; flex:1; }
@media(max-width:600px) { .native-terminal { padding:10px; } .native-terminal-canvas { height:440px; } .native-terminal-toolbar>strong { flex-basis:100%; } }
/* Keys a phone keyboard lacks; touch screens only. */
.native-terminal-keys { display:flex; gap:6px; margin-top:8px; overflow-x:auto; scrollbar-width:none; }
.native-terminal-keys[hidden] { display:none; }
.native-terminal-keys .button { flex:0 0 auto; min-width:44px; min-height:44px; padding:0 10px; font-family:"IBM Plex Mono", monospace; }
@media (hover:hover) and (pointer:fine) { .native-terminal-keys { display:none; } }
