Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

15.8 KB
Raw Blame
:root {
  font-family:
    "Geist Variable",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Noto Sans SC",
    system-ui,
    sans-serif;
  color: #1a1a16;
  background: #fff;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  color-scheme: light;
  --border: #ecece9;
  --muted: #737266;
  --surface: #fff;
  --focus: #262626;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
h1:focus {
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: 20px;
  line-height: 32px;
  font-weight: 580;
  letter-spacing: 0.0025em;
}
h2 {
  font-size: 16px;
  font-weight: 580;
  line-height: 1.5;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
p {
  text-wrap: pretty;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.installer-shell {
  min-height: 100dvh;
}
.welcome-scene {
  height: 41.667dvh;
  min-height: 220px;
  background: #f4f4f0 url("/onboarding/welcome-scene.png") center / cover
    no-repeat;
}
main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  position: absolute;
  top: 20px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: #52524b;
}
.installer-wordmark {
  font-size: 15px;
  font-weight: 580;
  color: #262626;
}
.topbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar select {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 4px;
  color: inherit;
  font-size: 12px;
}
.main-content {
  width: min(100%, 568px);
  margin: 0 auto;
  padding: 42px 24px 0;
  text-align: center;
}
.page-heading {
  margin-bottom: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 15px;
  border: 1px solid #dbdcd5;
  border-radius: 8px;
  background: #fff;
  color: #262626;
  text-decoration: none;
  font-size: 13px;
  font-weight: 470;
  transition:
    background-color 140ms ease,
    transform 100ms ease;
}
.button:hover:not(:disabled) {
  background: #f4f4f5;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  background: #262626;
  border-color: #262626;
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #41413b;
}
.button.compact {
  min-height: 28px;
  padding: 3px 10px;
  font-size: 12px;
}
.text-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #414038;
  font-size: 12px;
  padding: 6px;
  min-height: 30px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  background: #f4f4f5;
}
.inline-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hint,
.connection-note {
  font-size: 12px;
  color: #737266;
  margin-top: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.recommended-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.recommended-plan strong {
  font-weight: 470;
}
.recommendation-tag {
  background: #f4f4f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #52524b;
}
.setup-budget {
  color: #737266;
  margin: 14px auto 0;
  font-size: 12px;
  max-width: 440px;
}
.setup-budget p + p {
  margin-top: 4px;
}
.deploy-action {
  margin-top: 24px;
  min-width: 112px;
}

.setup-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.setup-option input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin-top: 3px;
  accent-color: #262626;
}
.setup-option > span {
  flex: 1;
  min-width: 0;
}
.setup-option strong {
  font-size: 13px;
  font-weight: 550;
}
.setup-option small {
  display: block;
  margin-top: 4px;
  color: #737266;
  font-size: 12px;
}
.setup-option:has(input:disabled) {
  cursor: default;
}

.installation-progress {
  width: min(100%, 400px);
  margin: 18px auto 0;
}
.installation-progress h2 {
  font-size: 14px;
  font-weight: 470;
  overflow-wrap: anywhere;
  line-height: 22px;
}
.installation-track {
  position: relative;
  width: min(100%, 280px);
  height: 4px;
  background: #f0f0ee;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px auto 0;
  isolation: isolate;
}
.installation-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: #262626;
  border-radius: inherit;
  transition: width 240ms ease;
}
.installation-activity {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  border-radius: inherit;
  background: #262626;
  opacity: 0.4;
  animation: installation-activity 1.8s ease-in-out infinite;
}
.progress-counter {
  color: #737266;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
}
.connection-loading {
  padding-top: 8px;
}
@keyframes installation-activity {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(520%);
  }
}
.notice {
  padding: 20px 0;
  margin: 24px 0;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.notice p {
  font-size: 13px;
  color: #52524b;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.notice code {
  display: inline-block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.notice .button {
  margin-top: 16px;
}
.notice.error {
  color: #b5320a;
}

.credentials {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.credential-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.credential-row + .credential-row {
  border-top: 1px solid var(--border);
}
.credential-row > span {
  width: 64px;
  flex-shrink: 0;
  color: #737266;
  font-size: 12px;
}
.credential-row > code,
.credential-row > a {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.setup-blocker {
  color: #805400;
  font-size: 12px;
  margin: 16px auto 0;
  max-width: 420px;
  overflow-wrap: anywhere;
}

.harness-choices {
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin: 24px auto;
  text-align: left;
}
.harness-choices .setup-option {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.harness-choices .setup-option.selected {
  border-color: #262626;
  background: #fafaf9;
}

/* BYOK: base URL with optional path and endpoint, key, model, and a one-shot test. */
.byok-panel {
  --box-h: 30px;
  --box-border: #e2e2dc;
  --box-bg: #fafaf8;
  --filled: #9b9a90;
  --faint: #a3a39b;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.byok-panel .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}
.byok-runtime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 500;
}
.byok-segments {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: #f1f1ee;
}
.byok-segments label {
  position: relative;
  cursor: pointer;
}
.byok-segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.byok-segments span {
  display: block;
  padding: 4px 10px;
  border-radius: 7px;
  color: #6b6a60;
  font-weight: 500;
}
.byok-segments input:checked + span {
  background: #fff;
  color: #262626;
  box-shadow:
    0 1px 2px rgba(20, 20, 16, 0.12),
    0 0 0 0.5px rgba(20, 20, 16, 0.08);
}
.byok-segments input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
/* Path and endpoint menus open under the whole row, so they stay inside it at any width. */
.byok-address {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}
.byok-base,
.byok-combo,
.byok-key {
  height: var(--box-h);
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: var(--box-bg);
  color: #262626;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.byok-base,
.byok-combo {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 4px 0 10px;
}
.byok-key {
  width: 100%;
  padding: 0 10px;
}
.byok-base:focus-within,
.byok-combo:focus-within,
.byok-key:focus {
  border-color: #262626;
  background: #fff;
}
.byok-base input,
.byok-combo input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-overflow: ellipsis;
}
.byok-base input:focus-visible,
.byok-combo input:focus-visible,
.byok-key:focus-visible {
  outline: none;
}
.byok-panel input::placeholder {
  color: var(--faint);
}
.byok-combo input::placeholder {
  font-style: italic;
}
/* The path and endpoint boxes size to their value, so the base URL keeps the room. */
.byok-combo.fit {
  max-width: 170px;
}
.byok-combo.fit input {
  field-sizing: content;
  min-width: 2ch;
}
.byok-combo[data-default="true"] input {
  color: var(--filled);
}
.byok-combo[data-default="true"] input:focus {
  color: #77766c;
}
.byok-caret {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--faint);
}
.byok-caret:hover,
.byok-combo[data-open="true"] .byok-caret {
  background: rgba(20, 20, 16, 0.06);
  color: var(--muted);
}
.byok-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 1px;
  min-width: min(220px, 100%);
  width: max-content;
  max-width: min(320px, 100%);
  max-height: 252px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(20, 20, 16, 0.08);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 36px -14px rgba(20, 20, 16, 0.35);
  line-height: 1.4;
  cursor: default;
  animation: byok-pop-in 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.byok-model-row .byok-menu {
  right: auto;
  left: -1px;
  min-width: calc(100% + 2px);
  max-width: min(320px, 86vw);
}
.byok-menu [role="option"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 1px 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #262626;
  text-align: left;
}
.byok-menu [role="option"]:hover,
.byok-menu [role="option"]:focus-visible {
  outline: none;
  background: #f4f4f0;
}
.byok-option-value {
  font:
    500 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.byok-option-label {
  grid-column: 1;
  color: var(--muted);
  font-size: 11.5px;
}
.byok-option-label em {
  margin-left: 6px;
  color: #d9822b;
  font-style: normal;
  font-weight: 500;
}
.byok-option-check {
  grid-column: 2;
  grid-row: 1 / span 2;
  visibility: hidden;
}
[aria-selected="true"] > .byok-option-check {
  visibility: visible;
}
.byok-menu-head {
  padding: 5px 8px 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}
.byok-menu-note {
  max-width: 300px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11.5px;
}
.byok-menu-note[data-tone="err"] {
  color: #b5320a;
}
/* The model box, then the refresh and Test buttons; the test result floats under Test. */
.byok-model-row {
  position: relative;
  display: flex;
  gap: 6px;
}
.byok-model-row > .byok-combo {
  position: relative;
  flex: 1;
}
.byok-icon-button,
.byok-test {
  flex: none;
  height: var(--box-h);
  border: 1px solid #e6e6e1;
  border-radius: 8px;
  background: #fff;
  color: #262626;
  font-size: 12px;
  font-weight: 500;
}
.byok-icon-button {
  display: grid;
  place-items: center;
  width: var(--box-h);
  padding: 0;
  color: var(--muted);
}
.byok-test {
  padding: 0 12px;
}
.byok-icon-button:hover:not(:disabled),
.byok-test:hover:not(:disabled) {
  border-color: #c4c4bc;
  background: #fafaf8;
  color: #262626;
}
.byok-icon-button[data-busy="true"] svg {
  animation: byok-spin 0.9s linear infinite;
}
.byok-toast-region {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 40;
  width: min(330px, 100%);
}
.byok-toast {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 8px;
  padding: 10px 8px 10px 12px;
  border-radius: 10px;
  background: #1f1f1d;
  color: #c9c8bf;
  box-shadow: 0 14px 32px -10px rgba(20, 20, 16, 0.5);
  line-height: 1.45;
  text-align: left;
  animation: byok-pop-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.byok-toast::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 22px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}
.byok-toast[data-leaving="true"] {
  animation: byok-pop-out 200ms ease forwards;
}
.byok-toast strong {
  display: block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 550;
}
.byok-toast p {
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.byok-toast .url {
  color: #ecebe3;
}
.byok-toast-icon {
  display: grid;
  margin-top: 1px;
}
.byok-toast[data-tone="ok"] .byok-toast-icon {
  color: #74d08b;
}
.byok-toast[data-tone="err"] .byok-toast-icon {
  color: #ff9466;
}
.byok-toast-close {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #8f8e85;
}
.byok-toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.byok-status {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.4;
}
.byok-status .url {
  color: var(--muted);
}
.byok-status[data-tone="err"],
.byok-status[data-tone="err"] .url {
  color: #b5320a;
}
@keyframes byok-pop-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}
@keyframes byok-pop-out {
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}
@keyframes byok-spin {
  to {
    transform: rotate(360deg);
  }
}
.runtime-sign-in {
  max-width: 400px;
  margin: 20px auto;
  display: grid;
  gap: 16px;
}
.runtime-sign-in form {
  display: grid;
  gap: 14px;
  text-align: left;
}
.runtime-sign-in label {
  display: grid;
  gap: 6px;
}
.runtime-sign-in input,
.runtime-sign-in select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
}
.skip-sign-in {
  margin-top: 8px;
}
.completion-description {
  color: var(--muted);
  font-size: 12px;
  margin: 16px auto 24px;
}
.screen-3 .credentials {
  margin-bottom: 28px;
}

.main-content {
  padding-bottom: 48px;
}
.screen-2 .page-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 600px) {
  .welcome-scene {
    height: 30dvh;
    min-height: 180px;
  }
  .main-content {
    padding-top: 30px;
  }
  .topbar {
    top: 14px;
    left: 18px;
    right: 18px;
  }
  .credential-row {
    flex-wrap: wrap;
  }
  .credential-row > code {
    flex-basis: calc(100% - 80px);
  }
  .credential-row > .inline-actions {
    margin-left: auto;
  }
}
/* On a phone the base URL takes its own row above path and endpoint. */
@media (max-width: 400px) {
  .byok-address {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .byok-base {
    grid-column: 1 / -1;
  }
  .byok-combo.fit {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}