Skip to content

armgit / muxin

Public Imported from GitHub
0

All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.

8.1 KB
Raw Blame
:root {
  --ground: #12152e;
  --sidebar: #151834;
  --canvas: #1a1e3c;
  --surface: #20254a;
  --elevated: #272d56;
  --border: #363d6e;
  --border-soft: #2b3160;
  --text: #eeecfb;
  --muted: #aeb0d8;
  --accent: #a66bf2;
  --accent-soft: #2f2a63;
  --accent-text: #c9a6ff;
  --orange: #e8734a;
  --green: #52d6ad;
  --red: #ff6e86;
  --yellow: #f2c94c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange); }
a:hover { color: #f0956f; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--sidebar);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--orange)); }
.session { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--border); }
.session-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-sub { font-size: 12px; color: var(--muted); }
.session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.pill { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; }

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 64px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { width: 100%; max-width: 520px; text-align: center; align-items: center; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; }
h2 { margin: 0; font-size: 20px; font-weight: 600; }
.lead { margin: 0; font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 0; }
.note { border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px 14px; color: var(--muted); }
.error { color: var(--red); }

.choices { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; text-align: left; }
.choice {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--elevated); color: var(--text);
  text-decoration: none; font: inherit; cursor: pointer; text-align: left;
}
.choice:hover { border-color: var(--accent); color: var(--text); }
.primary-choice { border: 0; background: linear-gradient(135deg, #8f55df, #c95f39); color: #fff; }
.primary-choice:hover { color: #fff; filter: brightness(1.08); }
.choice-title { font-size: 16px; font-weight: 600; }
.choice-sub { font-size: 13px; opacity: 0.92; }

.card {
  width: 100%; max-width: 500px; background: var(--elevated); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
label { font-size: 13px; color: var(--muted); }
input {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--canvas); color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.end { justify-content: flex-end; }
button {
  font: inherit; color: inherit; cursor: pointer; border-radius: 9px; padding: 9px 18px; min-height: 40px;
}
button.primary { border: 0; background: linear-gradient(90deg, #8f55df, #c95f39); color: #fff; font-weight: 500; }
button.wide { width: 100%; min-height: 44px; font-size: 16px; }
.center-text { text-align: center; }
.card h1 { font-size: 24px; }
button.secondary { border: 1px solid var(--border); background: var(--surface); }
button:disabled { opacity: 0.6; cursor: default; }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.code-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px;
  border-radius: 12px; background: var(--canvas); border: 1px solid var(--border); text-align: center;
}
.code { font: 500 36px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 4px; }
.status { flex: 1; font-size: 14px; color: var(--accent-text); }

.watch { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; min-height: 0; }
.term {
  width: 100%; max-width: 1200px; flex: 1; min-height: 320px; overflow: auto;
  border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; background: var(--canvas);
}
.term-bar {
  width: 100%; max-width: 1200px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: var(--surface); font-size: 13px;
}
.term-bar > :first-child { flex: 1 1 220px; }

.tabs {
  width: 100%; max-width: 1200px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.tab {
  min-height: 34px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-soft);
  background: var(--surface); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; max-width: 260px;
}
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tab.exited { color: var(--muted); }
.tab .busy { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.tabs .gap { flex: 1; }
.tabs .hint { font-size: 12px; color: var(--muted); }

.screen {
  width: 100%; max-width: 1600px; flex: 1; min-height: 320px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); border-radius: 10px; background: #000; overflow: hidden; position: relative;
}
.screen canvas { max-width: 100%; max-height: 100%; display: block; outline: none; cursor: default; }
.screen canvas.control { cursor: crosshair; }
.screen canvas:focus-visible { outline: 2px solid var(--accent); }
.screen p { position: absolute; margin: 0; }
.empty { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; }
.quality { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.quality select {
  font: inherit; color: var(--text); background: var(--canvas); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 8px;
}

/* The shared screen: touch drives it while you're let control it. */
.screen canvas.control { touch-action: none; }
.small-btn { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.kbd-input { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; }

/* Phones: one compact header row, the rest of the screen for what's shared. */
@media (max-width: 640px) {
  .bar { padding: 10px 14px; gap: 8px 10px; flex-wrap: nowrap; }
  .brand { gap: 0; font-size: 0; }
  .logo { width: 22px; height: 22px; }
  .session { flex: 1 1 0; padding-left: 10px; }
  .session-title { font-size: 15px; }
  .session-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .session-actions { gap: 8px; flex-wrap: nowrap; }
  #time-left { display: none; }
  .pill { padding: 3px 10px; font-size: 13px; }
  #leave { min-height: 34px; padding: 5px 12px; font-size: 13px; }
  .watch { padding: 10px 8px; gap: 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; }
  .tabs .gap, .tabs .hint { display: none; }
  .term { padding: 8px; min-height: 260px; }
  .screen { min-height: 200px; }
  .term-bar { padding: 8px 12px; font-size: 12.5px; }
  .card { padding: 20px; }
  h1 { font-size: 26px; }
  .code { font-size: 30px; }
}

/* Portrait phones and tablets: the box is the screen's own shape, not a tall black frame around it. */
@media (orientation: portrait) and (max-width: 1024px) {
  .screen { flex: none; min-height: 0; }
  .screen canvas { width: 100%; height: auto; max-height: none; }
}