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.

9.8 KB
Raw Blame
.thread-view {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
}
.conversation {
  /* Chat text follows the selected size without an extra platform offset. */
  --conversation: var(--chat);
  --md-scale: var(--chat-scale);
  /* Messages and the composer share one readable column that grows with the text size. */
  --column: calc(820px * var(--scale));
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

/* Grok's desktop chat: no title bar. The chat blurs and fades as it scrolls up, with the bot in
   a floating solid pill and the actions as frosted buttons on the right. */
.top-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 10px 16px 14px;
  display: grid;
  place-items: center;
  pointer-events: none;
  -webkit-app-region: drag;
}
.top-chrome > * {
  grid-area: 1 / 1;
}
.top-chrome-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}
.top-chrome-row > *,
.title-pill {
  pointer-events: auto;
  -webkit-app-region: no-drag;
}
.top-fade {
  /* Placed in grid area 1/1 its box would start inside the chrome's padding and leave hard
     edges; auto placement makes it cover the whole chrome. It fades out 24px below the
     chrome. */
  grid-area: auto !important;
  position: absolute;
  inset: 0 0 -24px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--background) 0%, color-mix(in srgb, var(--background) 60%, transparent) 35%, transparent 100%);
}
.top-fade::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 50%);
  mask-image: linear-gradient(to bottom, #000, transparent 50%);
}
@media (prefers-reduced-transparency: reduce) {
  .top-fade::before {
    backdrop-filter: none;
  }
}
.title-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 13px 7px 9px;
  background: var(--chrome-fill);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-m);
  max-width: 60%;
  transition: opacity var(--layout), transform var(--layout);
}
.title-pill-chevron {
  display: flex;
  width: 0;
  margin-left: -7px;
  overflow: hidden;
  opacity: 0;
  transition: width var(--hover), margin var(--hover), opacity var(--hover);
}
.title-pill:hover .title-pill-chevron {
  width: calc(10px * var(--scale));
  margin-left: 0;
  opacity: 1;
}
.title-pill.hidden-by-call {
  opacity: 0;
  transform: translateY(-8px);
}
.title-pill-subtitle {
  color: var(--secondary);
}

.transcript-frame {
  position: absolute;
  inset: 0;
}
.transcript {
  height: 100%;
  overflow-y: auto;
  overflow-anchor: none;
}
/* The scrolling body of the trace sheet, under its header. */
.thread-scroll {
  flex: 1;
  overflow-y: auto;
}
/* Half a point at every resolution (the shared hairline is 1 px at 1x). */
.thread-hairline {
  height: 0.5px;
  background: var(--border);
  flex: none;
}
.transcript-content {
  container-type: inline-size;
  max-width: var(--column);
  margin: 0 auto;
  /* The floating title pill and composer sit over the list; messages pass underneath. */
  padding: 64px 14px var(--composer-height, 70px);
}
.load-earlier {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size: var(--text-caption);
  color: var(--secondary);
}
.transcript-intro {
  padding-top: 40px;
}
.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.intro-card-path {
  overflow-wrap: anywhere;
}
.intro-card-hint {
  padding-top: 4px;
  line-height: 1.5;
}
.intro-card-hint.balanced {
  max-width: 360px;
  text-wrap: balance;
}
/* Room under the last row. */
.chat-end {
  height: 8px;
}

.composer-dock {
  flex: none;
}
.composer-update-needed {
  padding: 0 16px 8px;
}

/* Messages */
/* Space above a row: more where a new speaker's run (or a card) starts. */
.chat-row {
  padding-top: 4px;
}
.chat-row.group-start {
  padding-top: 12px;
}
.chat-row.notice {
  padding-top: 10px;
}
/* A group message's reactions and thread line up past its author's avatar. */
.chat-row-indent {
  padding-left: 34px;
}
.time-separator {
  text-align: center;
  padding: 18px 0 6px;
}
.chat-notice {
  text-align: center;
}
.chat-notice-error {
  padding: 12px;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.chat-routine-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  margin: 0 auto;
  font-size: var(--text-caption);
  color: var(--secondary);
}
.message {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.message.user {
  align-items: flex-end;
  padding-left: 56px;
}
.message.agent {
  align-items: flex-start;
}
.message-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
/* The reserved 88 pt beside a bubble holds its actions. */
.message.user .message-body {
  align-items: flex-end;
  margin-left: 88px;
  max-width: calc(100% - 88px);
}
/* The widest an agent bubble or card gets: most of the column, with room for a bubble's actions
   (resolved against the conversation's container where it's used). */
:root {
  --agent-bubble-max: max(80px, min((100cqw + 32px) * 0.8 - 32px, 100cqw - 88px));
}
.message.agent .message-body {
  align-items: flex-start;
  max-width: var(--agent-bubble-max);
  margin-right: 88px;
}
.bubble {
  padding: 8px 10px;
  border-radius: var(--radius-l);
  max-width: 100%;
  min-width: 0;
}
.bubble.user {
  background: var(--chat-user);
  color: var(--text);
  font-size: var(--conversation);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.agent {
  background: var(--chat-agent);
}
.file-message-cards {
  display: grid;
  gap: 6px;
}
.user-status-error {
  margin-right: 4px;
}
.user-status-time {
  opacity: 0;
  transition: opacity var(--hover);
}
.user-status-time.shown {
  opacity: 1;
}
.message-actions {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hover);
}
.message-actions.shown {
  opacity: 1;
  pointer-events: auto;
}
.message-actions.leading {
  right: calc(100% + 6px);
}
.message-actions.trailing {
  left: calc(100% + 6px);
}
.message-action {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--secondary);
}
.message-action:hover {
  color: var(--text);
}
.reaction-chip {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.reaction-chip-bots > * + * {
  margin-left: -5px;
}
/* The message a reply quotes, at the top of its bubble: one line, no wider than a short message. */
.bubble-quote {
  max-width: 320px;
  margin-bottom: 4px;
  user-select: none;
}
/* Agent-side cards (working, approvals) stop short of the far edge. */
.agent-inset {
  padding-right: 40px;
}
.chat-working {
  --working-duration: 0.42s;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--working-duration) var(--spring), opacity var(--working-duration) var(--ease-out);
}
.chat-working.shown {
  grid-template-rows: 1fr;
  opacity: 1;
}
.chat-working-clip {
  min-height: 0;
  overflow: hidden;
}
.chat-working-content {
  padding-top: 6px;
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  transition: transform var(--working-duration) var(--spring);
}
.chat-working.shown .chat-working-content {
  transform: none;
}
.working {
  display: flex;
  /* A column stretches the row to the pill's width, so a long activity truncates. */
  flex-direction: column;
  width: fit-content;
  max-width: var(--agent-bubble-max);
  padding: 12px;
  border-radius: var(--radius-xl);
  background: var(--bubble-agent);
  text-align: left;
  min-width: 0;
  /* Unfolding widens the pill to a bubble's width in the same motion that grows it. */
  interpolate-size: allow-keywords;
  transition: width var(--layout);
}
.working.expanded {
  width: 100%;
}
/* The steps never widen the pill themselves, so folding narrows it while they fold away. */
.working .reveal {
  contain: inline-size;
}
.working-toggle {
  display: flex;
  min-width: 0;
  text-align: left;
}
/* The unfolded steps scroll inside the pill, so a long turn never runs down the chat. */
.working-steps {
  max-height: 280px;
  overflow-y: auto;
  padding-top: 12px;
  font-size: var(--text-callout);
}

.call-overlay {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  animation: call-in var(--layout) both;
}
@keyframes call-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* The conversation's room for the panel changes in one step; the panel itself slides over it, out
   of the flow, so a long chat is laid out once per open or close, not on every frame. */
.side-panel-slot {
  flex: none;
}
.side-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 7;
  display: flex;
  background: var(--background);
  transition: right var(--layout);
  /* The margin lets the edge's drag area reach into the conversation. */
  overflow: clip;
  overflow-clip-margin: 4px;
}
.side-panel-content {
  height: 100%;
  flex: none;
}

/* A message arriving while the list follows the newest pops in from its bubble's side (Grok Bot's). */
.row-in {
  animation: row-in 0.24s var(--ease-out) both;
  transform-origin: bottom left;
}
.row-in.mine {
  transform-origin: bottom right;
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-working, .chat-working-content {
    transition: none;
    transform: none;
  }
  .row-in {
    animation: fade-in 0.12s both;
  }
}