mobux 0.12.1

A touch-friendly tmux web UI for unhinged people who run terminal sessions from their phone while walking the dog
/* SPA shell chrome. Copies the old Rust-rendered home header: the .app-header /
   .app-header h1 / .header-icon rules come from web/static/style.css (loaded in
   index.html via the proxy), so the header already matches the old UI's colors,
   spacing, and typography. This file only adds what's SPA-specific: making the
   wordmark behave as a home link, placing the native host <select>, and giving
   the gear a <button> the same look as the old <a class="header-icon">. */
.spa-shell {
  min-height: 100dvh;
}

/* ── Terminal route layout ───────────────────────────────────────────
   The terminal route is a full-bleed island with no SPA chrome. The old
   Rust page keyed its full-screen terminal layout off `body.term-body`
   (web/static/style.css: position:fixed; 100dvh; flex column). In the SPA
   the engine's children live one level deeper — inside `#app` →
   `.term-body-spa` — so we have to extend that full-height flex column the
   whole way down, or `#terminal` (flex:1; min-height:0) collapses to ~0
   and the backend computes far too few rows on mount (the stranded
   status-bar / dead-black-bottom bug). These rules only apply on the
   terminal route, gated by `body.term-body`. */
body.term-body #app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.term-body-spa {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Control-key ribbon ──────────────────────────────────────────────
   The ribbon (^C, arrows, Tab, Esc, …) is a horizontal strip that must
   scroll sideways by touch and never wrap. The base rules already come
   from web/static/style.css `.input-ribbon`; these reassert them in the
   SPA context so a stray parent `touch-action`/flex rule can't clip or
   wrap the strip (the "ribbon won't scroll by touch" regression). Mirrors
   the old `.input-ribbon`: overflow-x:auto + touch momentum + nowrap, with
   touch-action:pan-x so the browser hands horizontal pans to the strip. */
.term-body-spa .input-ribbon {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.term-body-spa .input-ribbon button {
  flex: 0 0 auto;
}

/* Wordmark = home link. `.app-header h1` already has `flex: 1` (style.css),
   which shoves the lone gear to the far edge — just add the pointer cursor. */
.app-header .app-wordmark {
  cursor: pointer;
}

.spa-main {
  padding: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Gear — a <button> that wears the old `.header-icon` look (color/font-size/
   padding/radius come from style.css). These rules only reset the native button
   chrome and keep it from ever being squeezed off-screen. */
.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  font-family: inherit;
}