Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

14.3 KB
Raw Blame
/* Styles of the strand "remote" (R1 to R5) and of the notices of strand 6.
   Only tokens, text in rem, spacing in px. They live here until the scaffold
   takes them into styles/ (wish in mobile-docs/geruest-wuensche/remote.md). */

/* ---------- R1: home ---------- */
.m-app .m-remote-home {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--m-s4);
}
.m-app .m-remote-intro {
  display: flex;
  flex-direction: column;
  gap: var(--m-s3);
  padding: var(--m-s2) var(--m-gutter) var(--m-s4);
}
.m-app .m-remote-intro h2 {
  font-family: var(--m-font-display);
  font-size: var(--m-text-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--m-t1);
  overflow-wrap: anywhere;
}
.m-app .m-remote-intro p {
  color: var(--m-t2);
  line-height: 1.45;
}
.m-app .m-remote-steps {
  display: flex;
  flex-direction: column;
  gap: var(--m-s2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: remote-step;
}
.m-app .m-remote-steps > li {
  display: flex;
  align-items: flex-start;
  gap: var(--m-s3);
  color: var(--m-t2);
  line-height: 1.4;
  counter-increment: remote-step;
}
.m-app .m-remote-steps > li::before {
  content: counter(remote-step);
  flex: none;
  width: calc(1.5 * var(--m-u));
  height: calc(1.5 * var(--m-u));
  border-radius: var(--m-r-pill);
  background: var(--m-fill-2);
  color: var(--m-t1);
  font-family: var(--m-font-mono);
  font-size: var(--m-text-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-app .m-remote-actions {
  display: flex;
  flex-direction: column;
  gap: var(--m-s2);
  padding: 0 var(--m-gutter) var(--m-s4);
}
.m-app .m-remote-checks {
  display: flex;
  flex-direction: column;
  gap: var(--m-s1);
  margin: var(--m-s2) 0 0;
  padding: 0 0 0 calc(1.1 * var(--m-u));
  color: var(--m-t2);
  list-style: disc outside;
}
.m-app .m-remote-checks > li {
  display: list-item;
  line-height: 1.4;
}
.m-app .m-remote-checks-title {
  display: block;
  margin-top: var(--m-s2);
  font-weight: 600;
  color: var(--m-t1);
}
.m-app .m-remote-connected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--m-s2) var(--m-s3);
  margin: 0 var(--m-gutter) var(--m-s3);
  padding: var(--m-s2) var(--m-s3);
  background: var(--m-surface);
  border: 1px solid var(--m-card-edge);
  border-radius: var(--m-r-lg);
}
.m-app .m-remote-connected-text {
  flex: 1 1 calc(10 * var(--m-u));
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-app .m-remote-connected-name {
  display: flex;
  align-items: center;
  gap: var(--m-s2);
  font-size: var(--m-text-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--m-t1);
  overflow-wrap: anywhere;
}
.m-app .m-remote-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--m-r-pill);
  background: var(--m-ok);
}
.m-app .m-remote-row-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.m-app .m-remote-note {
  padding: 0 var(--m-gutter) var(--m-s3);
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  line-height: 1.4;
}

/* ---------- R2: connect ---------- */
.m-app .m-remote-form {
  display: flex;
  flex-direction: column;
  gap: var(--m-s4);
  padding: var(--m-s3) var(--m-gutter) var(--m-s4);
}
.m-app .m-remote-form .m-note {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.m-app .m-remote-status {
  display: flex;
  align-items: center;
  gap: var(--m-s2);
  min-height: calc(1.5 * var(--m-u));
  color: var(--m-t2);
  font-size: var(--m-text-caption);
  overflow-wrap: anywhere;
}

/* ---------- R3: scan ---------- */
.m-app .m-remote-scan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.m-app .m-remote-scan-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(14 * var(--m-u));
  margin: var(--m-s3) var(--m-gutter);
  border-radius: var(--m-r-xl);
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-app .m-remote-scan-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-app .m-remote-scan-frame {
  position: absolute;
  inset: 18% 14%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--m-r-xl);
  pointer-events: none;
}
.m-app .m-remote-scan-hint {
  padding: 0 var(--m-gutter) var(--m-s3);
  text-align: center;
  color: var(--m-t2);
  line-height: 1.4;
}

/* ---------- R4: transcript ---------- */
.m-app .m-remote-thread {
  display: flex;
  flex-direction: column;
  gap: var(--m-s4);
  width: 100%;
  max-width: var(--m-measure);
  margin: 0 auto;
  padding: var(--m-s3) var(--m-gutter) var(--m-s4);
}
.m-app .m-remote-thread-note {
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  line-height: 1.4;
  text-align: center;
}
.m-app .m-remote-msg {
  display: flex;
  flex-direction: column;
  gap: var(--m-s1);
  min-width: 0;
}
.m-app .m-remote-msg--user {
  align-items: flex-end;
}
.m-app .m-remote-bubble {
  max-width: 88%;
  padding: var(--m-s3) var(--m-s4);
  border-radius: var(--m-r-xl);
  background: var(--m-fill-2);
  color: var(--m-t1);
  font-size: var(--m-text-body);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.m-app .m-remote-think {
  padding: var(--m-s2) var(--m-s3);
  border-radius: var(--m-r-md);
  background: var(--m-fill);
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.m-app .m-remote-think > summary {
  min-height: var(--m-touch);
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--m-t2);
  cursor: default;
}
.m-app .m-remote-msg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--m-s1) var(--m-s2);
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  line-height: 1.4;
}
.m-app .m-remote-msg-foot--warn {
  color: var(--m-warn);
}
.m-app .m-remote-msg .m-note {
  margin: 0;
}
.m-app .m-remote-msg-tools {
  display: flex;
  align-items: center;
  gap: var(--m-s1);
  margin-left: -10px;
}
.m-app .m-remote-msg-tools--user {
  margin-left: 0;
  margin-right: -10px;
}
.m-app .m-remote-working {
  display: flex;
  align-items: flex-start;
  gap: var(--m-s3);
  padding: var(--m-s3) var(--m-s4);
  border-radius: var(--m-r-lg);
  background: var(--m-fill);
  color: var(--m-t2);
  line-height: 1.4;
}
.m-app .m-remote-working strong {
  display: block;
  color: var(--m-t1);
  font-weight: 600;
}

/* ---------- R5: help ---------- */
.m-app .m-remote-help {
  display: flex;
  flex-direction: column;
  gap: var(--m-s5);
  width: 100%;
  max-width: var(--m-measure);
  margin: 0 auto;
  padding: var(--m-s3) var(--m-gutter) var(--m-s5);
}
.m-app .m-remote-help section {
  display: flex;
  flex-direction: column;
  gap: var(--m-s2);
}
.m-app .m-remote-help h2 {
  font-size: var(--m-text-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--m-t1);
}
.m-app .m-remote-help p {
  color: var(--m-t2);
  line-height: 1.5;
}

/* ---------- sheets ---------- */
.m-app .m-remote-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: var(--m-s2);
  padding: 0 var(--m-gutter) var(--m-s3);
}
.m-app .m-remote-sheet-text {
  padding: 0 var(--m-s5) var(--m-s3);
  color: var(--m-t2);
  font-size: var(--m-text-caption);
  line-height: 1.4;
}

/* ---------- R4 round 2: photos, steps ---------- */
.m-app .m-remote-photos,
.m-app .m-remote-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--m-s2);
}
.m-app .m-remote-msg--user .m-remote-photos {
  justify-content: flex-end;
}
.m-app .m-remote-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--m-r-md);
  object-fit: cover;
  background: var(--m-fill-2);
}
.m-app .m-remote-photo-count {
  padding: var(--m-s2) var(--m-s3);
  border-radius: var(--m-r-pill);
  background: var(--m-fill-2);
  color: var(--m-t2);
  font-size: var(--m-text-caption);
}
.m-app .m-remote-tray-item {
  display: inline-flex;
  align-items: center;
  gap: var(--m-s1);
}
.m-app .m-remote-steps-box {
  display: flex;
  flex-direction: column;
  gap: var(--m-s1);
  min-width: 0;
}
.m-app .m-remote-steps-title {
  margin: 0;
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  line-height: 1.4;
}
.m-app .m-remote-step {
  border-radius: var(--m-r-md);
  background: var(--m-fill);
  min-width: 0;
}
.m-app .m-remote-step > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-s1) var(--m-s3);
  min-height: var(--m-touch);
  padding: var(--m-s2) var(--m-s3);
  color: var(--m-t1);
  font-size: var(--m-text-body);
  cursor: pointer;
  list-style: none;
}
.m-app .m-remote-step > summary::-webkit-details-marker {
  display: none;
}
.m-app .m-remote-step-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.m-app .m-remote-step-state {
  display: inline-flex;
  align-items: center;
  gap: var(--m-s1);
  color: var(--m-t3);
  font-size: var(--m-text-caption);
}
.m-app .m-remote-step-state--done {
  color: var(--m-ok);
}
.m-app .m-remote-step-state--failed {
  color: var(--m-warn);
}
.m-app .m-remote-step-body {
  display: flex;
  flex-direction: column;
  gap: var(--m-s1);
  padding: 0 var(--m-s3) var(--m-s3);
  min-width: 0;
}
.m-app .m-remote-tool-lines {
  display: flex;
  flex-direction: column;
  gap: var(--m-s1);
  min-width: 0;
}
/* A17: a finished tool of a shared chat, closed to one line. */
.m-app .m-remote-tool-line > summary {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: var(--m-s2);
  color: var(--m-t2);
  font-size: var(--m-text-caption);
}
.m-app .m-remote-tool-line-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.m-app .m-remote-tool-line[open] .m-remote-tool-line-summary {
  display: none;
}
.m-app .m-remote-tool-line code {
  font-family: var(--m-font-mono);
  font-size: var(--m-text-mono);
  overflow-wrap: anywhere;
}
.m-app .m-remote-step-label {
  color: var(--m-t3);
  font-size: var(--m-text-caption);
}
.m-app .m-remote-step-hint {
  margin: 0;
  color: var(--m-warn);
  font-size: var(--m-text-caption);
  line-height: 1.4;
}
.m-app .m-remote-step-body pre {
  margin: 0;
  max-height: 40vh;
  overflow: auto;
  padding: var(--m-s2);
  border-radius: var(--m-r-sm);
  background: var(--m-fill-2);
  color: var(--m-t2);
  font-family: var(--m-font-mono);
  font-size: var(--m-text-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Waiting photos stay small: the tray shares the screen with the keyboard. */
.m-app .m-remote-tray .m-remote-photo {
  width: 56px;
  height: 56px;
}
.m-app .m-remote-sheet-form {
  padding: 0 var(--m-gutter) var(--m-s3);
}

/* The address of a known desktop and the line under it are two lines, not one run of text ("...:11435Wi-Fi"). */
.m-app .m-remote-home .m-row-sub > span:not(.m-remote-row-sub) {
  display: block;
}

/* A17: an image or a video that a step made on the computer. */
.m-app .m-remote-step-media {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding-bottom: 8px;
}
.m-app .m-remote-step-media > .m-btn {
  justify-self: start;
  margin-left: 8px;
}

/* A17: the line that says how the phone reaches the computer. */
.m-app .m-remote-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px;
  font-size: var(--m-text-caption);
  color: var(--m-t2);
}
.m-app .m-remote-dot[data-state='unreachable'] {
  background: var(--m-err);
}
.m-app .m-remote-dot[data-state='internet'] {
  background: var(--m-accent);
}

/* A17: shared chats of the computer. */
.m-app .m-remote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--m-accent);
  color: var(--m-on-accent);
  font-size: var(--m-text-caption);
  font-weight: 600;
}
.m-app .m-remote-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--m-line);
  margin: 8px 0;
}
.m-app .m-remote-card-title {
  font-weight: 600;
}
.m-app .m-remote-card pre {
  margin: 0;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--m-text-caption);
}
.m-app .m-remote-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-app .m-remote-out {
  font-size: var(--m-text-caption);
  text-align: end;
  color: var(--m-t2);
}
.m-app .m-remote-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-app .m-remote-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--m-line);
  font-size: var(--m-text-caption);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A17: under "Connected over the internet" when the Wi-Fi of the computer is blocked. */
.m-app .m-remote-line-hint {
  display: block;
  color: var(--m-t3);
}

/* ---------- Voice over remote (GitHub #212): the line in place of the text field ---------- */
.m-app .m-rvoice {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: var(--m-s3);
  padding: 12px 14px 4px;
  color: var(--m-t1);
  font-size: var(--m-text-control);
}
.m-app .m-rvoice .m-chat-meter-bars {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.m-app .m-rvoice .m-chat-meter-bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--m-err);
  transform-origin: center;
  transition: transform 90ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .m-app .m-rvoice .m-chat-meter-bars i {
    transition: none;
  }
}
.m-app .m-rvoice .m-chat-meter-quiet {
  color: var(--m-t3);
  font-size: var(--m-text-caption);
}
.m-app .m-rvoice-clock {
  font-family: var(--m-font-mono);
  font-size: var(--m-text-mono);
  color: var(--m-t2);
}
.m-app .m-rvoice-hint {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--m-t2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-app .m-rvoice-tap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--m-s2);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.m-app .m-rvoice-sub {
  color: var(--m-t3);
  font-size: var(--m-text-caption);
  white-space: nowrap;
}
.m-app .m-rvoice-end {
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--m-s2);
  border: 0;
  background: none;
  color: var(--m-t1);
  font: inherit;
  font-weight: 600;
}