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.6 KB
Raw Blame
/* Folder picker: the chat header line, the new-topic line and the routine editor. */
.anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  -webkit-app-region: no-drag;
}
.trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 1px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.trigger:hover:not(:disabled),
.trigger[aria-expanded="true"] {
  background: var(--hover);
  color: var(--text);
}
.trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.trigger:disabled {
  cursor: default;
}
.trigger svg {
  flex: none;
}
.triggerText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft .trigger,
.field .trigger {
  margin: 0;
  padding: 3px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
.field .trigger {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 11px;
  background: var(--tert);
  box-shadow: none;
}
.panel {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  max-height: min(520px, 70vh);
  overflow-y: auto;
  padding: 6px;
  /* The floating soft card shared by every menu. */
  border: 1px solid var(--b1);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
  box-shadow: var(--shadow-soft);
  animation: panelIn 180ms var(--ease-out);
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }
}
.heading {
  margin: 8px 10px 4px;
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 600;
}
.notice {
  margin: 4px 4px 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--avatar-blue) 11%, transparent);
  color: var(--ink-blue);
  font-size: 12px;
}
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 3px 6px 3px 8px;
  border-radius: 12px;
  transition: background-color 140ms ease;
}
.row:hover {
  background: var(--hover);
}
.rowName {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.name,
.path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.path {
  color: var(--text2);
  font-size: 11px;
}
.tag,
.tagPrimary {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--tert);
  color: var(--text2);
  font-size: 11px;
  white-space: nowrap;
}
.tagPrimary {
  background: color-mix(in srgb, var(--avatar-amber) 15%, transparent);
  color: var(--ink-amber);
}
.row[data-folder-role="writable"] .tagPrimary {
  background: color-mix(in srgb, var(--avatar-orange) 13%, transparent);
  color: var(--ink-orange);
}
.rowActions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.mini,
.miniIcon {
  flex: none;
  padding: 3px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.miniIcon {
  display: flex;
  padding: 4px;
}
.mini:hover:not(:disabled),
.miniIcon:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.mini:focus-visible,
.miniIcon:focus-visible,
.recent:focus-visible,
.item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.mini:disabled,
.miniIcon:disabled,
.recent:disabled,
.item:disabled {
  cursor: default;
  opacity: 0.5;
}
.recent {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--b1);
}
.draft .group {
  margin: 0;
  padding: 0;
  border: 0;
}
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.item:hover:not(:disabled) {
  background: var(--hover);
}
/* An item without a tile keeps the tile's width so labels line up. */
.itemIcon {
  display: flex;
  flex: none;
  width: 18px;
  color: var(--text2);
}
.itemText {
  flex: 1;
  min-width: 0;
}
.check {
  flex: none;
  color: var(--accent-ink, var(--ink-blue));
}
.item[aria-pressed="true"] {
  font-weight: 600;
}
.foot {
  margin: 6px 10px 4px;
  color: var(--text2);
  font-size: 11px;
}
.error {
  overflow: hidden;
  color: var(--danger);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Browsing a runner's folders inside the picker. */
.browser {
  display: flex;
  flex-direction: column;
}
.runnerTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 8px 6px;
}
.runnerTabs .mini {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--tert);
}
.runnerTabs [aria-pressed="true"] {
  background: var(--avatar-violet);
  color: var(--on-tone);
  font-weight: 600;
}
.crumb {
  overflow: hidden;
  margin: 2px 10px 6px;
  color: var(--text2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upIcon svg {
  transform: rotate(-90deg);
}
.use {
  color: var(--ink-green);
  font-weight: 600;
}
.use .itemText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}