Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

5.4 KB
Raw Blame
/* The box and its attachments. */
.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  flex: none;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 14px 14px;
  max-width: var(--column);
  margin: 0 auto;
  width: 100%;
}
/* The message being replied to, above the field. */
.composer-reply {
  padding: 8px 8px 0 14px;
}
.composer-reply-quote {
  flex: 1;
  min-width: 0;
}
.file-chips {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  overflow-x: auto;
}
.file-chips:has(.attachment-tile) {
  align-items: flex-start;
}
.attachment-tile {
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}
.attachment-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
}
.file-chip-name {
  max-width: 160px;
}
/* The remove glyph is small; its target is 24 pt. */
.file-chip-remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -6px -8px -6px -4px;
}

.composer-add {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 9%, var(--composer-fill));
  box-shadow: var(--shadow-s);
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: var(--first-line-inset);
}
.composer-surface {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--composer-fill);
  border-radius: var(--radius-xl);
  /* Inset, so the outline sits on the fill like the sheets' and menus' border, not on the page. */
  box-shadow: inset 0 0 0 1px var(--outline), var(--shadow-s);
  display: flex;
  flex-direction: column;
}
.composer-box {
  /* Centers a 25 px control on the field's first line. */
  --first-line-inset: calc(max(0px, (round(up, calc(var(--conversation) * 1.25), 1px) + 10px - 25px) / 2));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px 8px;
}
.composer-field {
  flex: 1;
  min-width: 0;
  position: relative;
}
.composer-box textarea,
.composer-measure {
  flex: 1;
  min-width: 0;
  font-size: var(--conversation);
  line-height: calc(round(up, calc(var(--conversation) * 1.25), 1px));
  padding: 5px 0;
  color: var(--text);
  user-select: text;
  cursor: text;
}
.composer-box textarea {
  display: block;
  width: 100%;
  height: calc(round(up, calc(var(--conversation) * 1.25), 1px) + 10px);
  transition: height var(--layout);
}
.composer-measure {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.composer-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--layout), opacity var(--morph);
}
.composer-reveal.shown { grid-template-rows: 1fr; opacity: 1; }
.composer-reveal > div { min-height: 0; overflow: hidden; }
.composer-symbol {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.55) rotate(-35deg);
  transition: opacity var(--morph), transform var(--morph);
}
.composer-symbol.active { opacity: 1; transform: scale(1) rotate(0); }
/* Dictation, beside send / call (Grok Bot's): a light circle; a recording pill while it listens. */
/* The mic and its engine menu share one light capsule. */
.composer-mic-group {
  flex: none;
  height: 25px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--text) 7%, var(--composer-fill));
  margin-bottom: var(--first-line-inset);
}
.composer-mic {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--secondary);
  transition: color var(--morph), transform var(--press);
}
.composer-mic:hover {
  color: var(--text);
}
.composer-engine {
  width: 18px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: none;
  padding-right: 4px;
  color: var(--secondary);
  transition: color var(--hover);
}
.composer-engine:hover {
  color: var(--text);
}
/* Centered on the first line, like the mic it replaces. */
.composer-recording {
  height: 25px;
  margin-bottom: var(--first-line-inset);
}
.composer-send {
  width: 25px;
  height: 25px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: var(--first-line-inset);
  background: var(--accent-fill);
  color: var(--on-accent);
  transition: background-color var(--morph), color var(--morph), transform var(--press);
}
.composer-send.interrupt {
  background: var(--danger-fill);
  color: var(--on-danger);
}
/* Disabled only as Send with nothing sendable. */
.composer-send:disabled {
  background: var(--accent-dim);
  color: var(--tertiary);
}

/* The `/` and `@` lists, floating over the transcript above the box. */
.composer-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  background: var(--bubble-agent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--fade), transform var(--layout);
}
.composer-menu.shown {
  opacity: 1;
  transform: none;
}
.composer-menu .menu-panel {
  max-height: 300px;
}