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.

5.2 KB
Raw Blame
.workspace,
.panel,
.reader {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.tabRow {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--b1);
  min-width: 0;
  padding: 6px 8px;
  gap: 4px;
}
.tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
}
.tab {
  display: flex;
  flex: none;
  max-width: 180px;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text2);
}
.tab[data-selected] {
  background: var(--hover);
  border-color: var(--b1);
  color: var(--text);
}
.tab > button[role="tab"] {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 7px 3px 7px 10px;
  cursor: pointer;
}
.tab > button[role="tab"] > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab svg {
  flex: none;
}
.closeTab.closeTab {
  padding: 5px;
  min-width: 24px;
  min-height: 24px;
  margin-right: 3px;
}
.fileMenu {
  width: 34px;
  flex: none;
  overflow: hidden;
}
.fileMenu > div {
  width: 34px;
}
.fileMenu button {
  max-width: 34px;
}
.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--b1);
}
.controls {
  display: flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.controls button {
  min-width: 28px;
  padding: 5px;
}
.body {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  background: var(--bg2);
  overscroll-behavior: contain;
}
.surface {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
}
.canvasHost {
  height: 100%;
  min-height: 0;
  overflow: auto;
  position: relative;
}
.canvasHost canvas {
  display: block;
}
.status {
  padding: 24px;
  color: var(--text2);
  overflow-wrap: anywhere;
}
.error {
  color: var(--danger);
}
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 7px 10px;
  border-top: 1px solid var(--b1);
  font-variant-numeric: tabular-nums;
}
.footer button {
  padding: 5px 9px;
}
.notice {
  color: var(--text2);
  font-size: 11px;
  padding: 6px 12px;
  border-top: 1px solid var(--b1);
}
.markdown {
  padding: 24px;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-height: 100%;
  box-sizing: border-box;
}
.markdown table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
}
.markdown td,
.markdown th {
  border: 1px solid var(--b1);
  padding: 6px 10px;
}
.markdown pre {
  overflow: auto;
  background: var(--bg2);
  padding: 12px;
  border-radius: var(--radius);
}
.markdown img {
  max-width: 100%;
}
.image {
  display: block;
  max-width: none;
  object-fit: contain;
  margin: 20px auto;
}
.pdfCanvas {
  display: block;
  box-shadow: var(--shadow);
  margin: 20px auto;
  max-width: none;
}
.codeHost {
  height: 100%;
  min-height: 120px;
}
.workspace button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-height: 500px) {
  .notice {
    display: none;
  }
  .toolbar {
    padding: 4px 8px;
  }
  .tabRow {
    padding: 3px 6px;
  }
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  background: var(--bg);
}

/* Lively preview: violet. Tabs are pills tinted when selected, each file mark coloured by
   kind; error states are a soft card; page controls float as a pill at the bottom. */
.workspace {
  --accent-fill: var(--avatar-violet);
  --accent-knob: var(--on-tone);
}
.tabRow {
  border-bottom: 0;
  padding: 8px 10px 6px;
}
.tab {
  transition: background-color 150ms ease;
}
.tab:hover {
  background: var(--hover);
}
.tab[data-selected] {
  border-color: transparent;
  color: var(--ink-violet);
  font-weight: 600;
  background: color-mix(in srgb, var(--avatar-violet) 13%, transparent);
}
.tab svg[data-tone="red"] {
  color: var(--danger);
}
.tab svg[data-tone="orange"] {
  color: var(--ink-orange);
}
.tab svg[data-tone="green"] {
  color: var(--ink-green);
}
.tab svg[data-tone="pink"] {
  color: var(--ink-pink);
}
.tab svg[data-tone="blue"] {
  color: var(--ink-blue);
}
.tab svg[data-tone="violet"] {
  color: var(--ink-violet);
}
.toolbar {
  border-bottom: 0;
}
.body {
  margin: 0 10px;
  border-radius: 14px;
  background: var(--tert);
  box-shadow: var(--shadow-soft);
}
.status[role="alert"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--avatar-violet);
  border-radius: 14px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.status[role="alert"] > p {
  margin: 0;
  font-weight: 600;
}
.footer {
  align-self: center;
  margin: 8px auto 10px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.notice {
  margin: 0 10px 8px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--avatar-violet) 8%, transparent);
}