Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

2.9 KB
Raw Blame
.approval {
  border: 1px solid var(--b3);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 8px 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.approval header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.approval header > span {
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--hover);
  font-family: var(--font-mono);
}

.approval footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--b1);
}

.risk {
  color: var(--danger);
}

.approval > .risk {
  padding: 0 16px;
}

.approval footer small,
.note {
  color: var(--text2);
  font-size: 12px;
}

.facts {
  margin: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facts > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.facts dt {
  flex: 0 0 76px;
  color: var(--text2);
}

.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.inbox {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.inbox .command {
  margin: 0 16px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.inbox .facts {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 10px 16px 0;
  font-size: 12.5px;
}

.inbox .facts > div {
  gap: 6px;
}

.inbox .facts dt {
  flex: none;
}

.inbox footer {
  border-top: 0;
  padding: 12px 16px 16px;
}

.inbox .actions {
  justify-content: flex-end;
}

.inbox .actions button {
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 17px;
}

/*
 * Lively layer for the chat card: the edge, washed header,
 * key tile and allow buttons take the chat's Bot colour (`--chat-c`; orange, the 权限 colour
 * that holds saved accounts, if a chat ever does not set it).
 */
.lively.lively {
  border: 0;
  border-left: 4px solid var(--chat-c, var(--avatar-orange));
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  animation: rise 350ms var(--ease-out) both;
}
.lively.lively header {
  padding: 10px 14px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--chat-c, var(--avatar-orange)) 12%, transparent);
  font-weight: 600;
}
.lively.lively header > span {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 8px;
  background: var(--chat-c, var(--avatar-orange));
  color: var(--on-tone);
}
.lively.lively header > span > svg {
  width: 14px;
  height: 14px;
}
.lively .facts {
  margin: 0 14px 10px;
}
.lively footer {
  padding: 10px 14px;
}
.allow:enabled {
  color: var(--on-tone);
  background: var(--chat-c, var(--avatar-orange));
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lively.lively {
    animation: none;
  }
}