gent-link 0.2.2

Connect Codex and Claude Code chats across machines with the Gent CLI and desktop companion.
:root {
  color-scheme: light dark;
  --bg: #f6f6f6; --surface: #fff; --quiet: #eee; --text: #242424;
  --muted: #595959; --border: #d1d1d1; --accent: #265d41; --tint: #e0eddf;
  --on-accent: #fff; --error: #983b2c; --focus: #2869a1;
  font: 14px/1.48 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
}
@media (prefers-color-scheme:dark) {
  :root { --bg: #191919; --surface: #242424; --quiet: #303030; --text: #efefef;
    --muted: #bbb; --border: #494949; --accent: #a9d8ad; --tint: #304735;
    --on-accent: #18261b; --error: #ffb5a6; --focus: #86bbef; }
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; height: 100vh; display: flex; flex-direction: column }
button, input, select, textarea { font: inherit; color: inherit }
button, select, input[type=search], .field input, textarea { border: 1px solid var(--border); border-radius: 7px; background: var(--surface) }
button, select { min-height: 34px; padding: 5px 11px }
button { cursor: pointer; font-weight: 560 }
button:enabled:hover, select:enabled:hover { background: var(--quiet) }
button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent) }
button.primary:enabled:hover { filter: brightness(.92); background: var(--accent) }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .55 }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
a { color: var(--accent); text-underline-offset: 3px }
.toolbar { flex: none; display: flex; align-items: center; gap: 15px; padding: 8px clamp(10px,2.6vw,28px); min-height: 54px; background: var(--surface); border-bottom: 1px solid var(--border) }
.brand { display: flex; align-items: center; font-size: 20px; font-weight: 720; letter-spacing: -.06em; gap: 6px }
.toolbar nav { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: thin }
#tabs { display: flex; gap: 2px; padding: 3px; width: max-content }
#tabs button { border: 0; background: transparent; min-height: 34px; padding: 6px 9px; font-size: 13px; color: var(--muted); white-space: nowrap }
#tabs button:hover { background: var(--quiet) }
#tabs button[aria-selected=true] { background: var(--tint); color: var(--accent) }
#refresh { display: grid; place-items: center; padding: 6px; min-width: 34px; flex: none }
main { min-height: 0; flex: 1; display: flex; flex-direction: column }
.page { overflow: auto; flex: 1; padding: 23px max(20px,calc((100vw - 1080px) / 2)); scrollbar-gutter: stable; min-width: 0 }
.page > :last-child { margin-bottom: 16px }
.dashboard-page { padding: 0; scrollbar-gutter: auto }
.dashboard-page > :last-child { margin: 0 }
.page-head, .card-line, .directory-tools, .preference { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.page-head { margin: 0 0 17px }
h1, h2, p, dl, dd { margin: 0 }
h1 { font-size: clamp(24px,3.5vw,31px); letter-spacing: -.045em; line-height: 1.18; font-weight: 665 }
h2, .card > summary { font-size: 17px; font-weight: 650; letter-spacing: -.025em; line-height: 1.35 }
.card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 18px; margin: 0 0 14px }
.card > summary { cursor: pointer }
.card p:not(:empty), .card .actions:not(:empty) { margin-top: 8px }
.card .card-line .actions { margin: 0 }
.muted, .notice, .daemon-state, .directory-count { color: var(--muted) }
.lines, .notice, .error { white-space: pre-wrap; overflow-wrap: anywhere }
.notice, .error { margin: 9px 0 }
.error, .notice.error { color: var(--error) }
#bridge-error { padding: 0 16px; color: var(--error) }
.actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center }
.health { border-top: 3px solid var(--accent) }
.daemon-state { display: flex; align-items: center; gap: 6px }
.daemon-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted) }
.daemon-state[data-running=true]::before { background: var(--accent) }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 14px; border-top: 1px solid var(--border); padding-top: 11px }
.metrics dt { color: var(--muted); font-size: 12px }
.metrics dd { font-size: 19px; font-weight: 610; overflow-wrap: anywhere }
#node-directory h2 { margin: 18px 0 8px }
.directory-tools { margin: 0 0 9px }
input[type=search], .field input, textarea { padding: 7px 9px; min-width: 0 }
input[type=search] { width: min(270px,100%) }
.directory-count { font-size: 12px }
.table-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; margin-bottom: 10px }
table { width: 100%; border-spacing: 0; font-size: 13px }
th, td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle }
th { white-space: nowrap; color: var(--muted); background: var(--quiet); font-size: 12px; font-weight: 620 }
th button { background: transparent; border: 0; font: inherit; padding: 0; min-height: 24px }
tr:last-child td { border-bottom: 0 }
tr[data-selected=true] td { background: var(--tint) }
td:first-child { font-weight: 560 }
td label { display: inline-flex; align-items: center; gap: 6px }
td input, .segmented input, .preference input { accent-color: var(--accent) }
td.identifier { font: 12px/1.4 ui-monospace,monospace; overflow-wrap: anywhere; min-width: 9em }
.empty { color: var(--muted); padding: 14px }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px }
#stats .segmented { display: inline-flex; max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--quiet); gap: 2px; padding: 2px; margin: 0 0 10px }
#stats .segmented label { position: relative; display: flex; min-width: 0 }
#stats .segmented input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer }
#stats .segmented span { padding: 5px 10px; border-radius: 5px; font-size: 13px; text-align: center; color: var(--muted) }
#stats .segmented input:checked + span { background: var(--accent); color: var(--on-accent); font-weight: 600 }
#stats .segmented input:focus + span { outline: 2px solid var(--focus); outline-offset: 2px }
@media (forced-colors: active) {
  #stats .segmented input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText }
  #stats .segmented input:focus + span { outline-color: CanvasText }
}
body:has(#permissions:not([hidden])) #dialog .field { grid-template-columns: minmax(0,1fr) }
.preference { padding: 9px 0; border-bottom: 1px solid var(--border) }
.preference:last-child { border: 0; padding-bottom: 0 }
.preference label { flex: 1 }
.preference input { width: 19px; height: 19px }
.preference .muted { display: block; font-size: 12px }
#config-text { width: 100%; min-height: 240px; resize: vertical; margin-top: 10px; font: 13px/1.5 ui-monospace,monospace; white-space: pre }
.about-identity { display: flex; align-items: center; gap: 20px }
.about-identity img { display: block }
.about-identity h2 { font-size: 24px }
#about-actions:not(:empty) { margin-bottom: 14px }
#release-notes { margin-top: 12px; line-height: 1.6 }
dialog { border: 1px solid var(--border); border-radius: 12px; padding: 20px; color: var(--text); background: var(--surface); width: min(440px, calc(100% - 28px)); max-height: 88vh; overflow: auto; box-shadow: 0 12px 50px #0003 }
dialog::backdrop { background: #16161680 }
dialog .actions { justify-content: flex-end; margin-top: 18px }
#dialog-body p, .field { margin-top: 12px }
.field { display: grid; gap: 4px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media(max-width:740px) {
  .toolbar { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 5px 12px }
  .toolbar nav { grid-column: 1/-1; grid-row: 2 }
  #refresh { grid-column: 2; grid-row: 1 }
  .page { padding: 17px 13px }
  .page.dashboard-page { padding: 0 }
}
@media(max-width:510px) {
  .split { display: block }
  .card { padding: 13px }
  .about-identity { gap: 12px }
  .about-identity img { width: 56px; height: 56px }
}