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.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
/* Every settings page is page title → section title → card of rows (name + one-line note on
the left, control on the right). Pages share these classes so the hierarchy reads the same. */
.page {
display: flex;
flex-direction: column;
gap: 20px;
min-width: 0;
}
.page p {
margin: 0;
}
.lead {
color: var(--text2);
font-size: 13px;
}
.section {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.title {
display: flex;
align-items: center;
gap: 8px;
min-height: 20px;
}
.title h2 {
flex: 1;
margin: 0;
color: var(--text2);
font-size: 13px;
font-weight: 600;
line-height: 20px;
}
.card {
min-width: 0;
border: 1px solid var(--b2);
border-radius: var(--radius-card);
background: var(--card);
}
.row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 16px;
min-height: 56px;
box-sizing: border-box;
padding: 11px 16px;
}
.card > * + * {
border-top: 1px solid var(--b1);
}
.row[data-stacked] {
flex-direction: column;
align-items: stretch;
}
.text {
display: flex;
flex: 1 1 240px;
flex-direction: column;
gap: 1px;
min-width: 0;
overflow-wrap: anywhere;
}
.text strong {
font-weight: 600;
}
.text small,
.line {
color: var(--text2);
font-size: 12.5px;
line-height: 1.5;
}
.control {
display: flex;
flex: none;
align-items: center;
gap: 8px;
max-width: 100%;
min-width: 0;
}
.control fieldset {
min-width: 0;
max-width: 100%;
}
/* A fixed width (maintainers 2026-11-15): the box used to grow and shrink with the chosen name. Long
names end in an ellipsis inside the trigger. */
.select {
flex: 0 0 260px;
width: 260px;
max-width: 100%;
min-width: 0;
}
.select > div,
.select > div > button {
width: 100%;
max-width: none;
}
/* Status and hint lines inside a card: shorter than a row, same insets. */
.line {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px 10px;
}
.line[data-tone="danger"] {
color: var(--danger);
}
.line[data-tone="ok"] {
color: var(--ok);
}
.line > span {
flex: 1;
min-width: 0;
}
.dot {
flex: none;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text2);
}
.dot[data-tone="ok"] {
background: var(--ok);
}
.dot[data-tone="danger"] {
background: var(--danger);
}
.dot[data-tone="warn"] {
background: var(--warn);
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 22px 16px;
color: var(--text2);
font-size: 13px;
text-align: center;
}
.empty strong {
color: var(--text);
font-size: 14px;
}
.emptyIcon {
display: grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--hover);
color: var(--text2);
}
.alert {
color: var(--danger);
font-size: 13px;
}
.inset {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px 16px;
}
.textarea {
box-sizing: border-box;
width: 100%;
padding: 8px 10px;
border: 1px solid var(--b2);
border-radius: 12px;
background: var(--card);
color: var(--text);
font-family: var(--font-mono);
font-size: 12.5px;
resize: vertical;
}
.labelled {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
}
.input {
flex: 1 1 200px;
min-width: 0;
min-height: 36px;
box-sizing: border-box;
padding: 6px 14px;
border: 1px solid var(--b2);
border-radius: var(--radius-pill);
background: var(--card);
color: var(--text);
font: inherit;
}
.input::placeholder {
color: var(--text2);
}
.selectSmall {
flex: 0 1 130px;
min-width: 0;
}
.section:focus {
outline: none;
}
button.small {
min-height: 28px;
padding: 3px 11px;
font-size: 12.5px;
}
.row[data-stacked] > .control {
flex-direction: column;
align-items: stretch;
}
.grow {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.warn {
color: var(--warn);
}
.line[data-tone="warn"] {
color: var(--warn);
}
.row[data-stacked] > .text {
flex: none;
}
/* An action that belongs to the label line rather than the row: the row control is centred against
the whole text block, so with a two-line note it reads as part of the note instead of the heading. */
.titleAction {
display: flex;
align-items: center;
gap: 8px;
}
.titleAction > :first-child {
flex: 1;
min-width: 0;
}
.empty > span {
max-width: 46ch;
}
/* Lively settings: the page colour (--page-c, set by the settings dialog) marks section titles
and tints switches; cards float on a soft shadow; rows may lead with a coloured icon tile. */
.title h2 {
display: flex;
align-items: center;
gap: 7px;
font-size: 12px;
letter-spacing: 0.03em;
font-weight: 700;
}
.title h2::before {
content: "";
flex: none;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--page-c, var(--text2));
}
.card {
border: 1px solid var(--b1);
box-shadow: var(--shadow-soft);
}
.row {
transition: background-color 150ms ease;
}
.row:hover {
background: color-mix(in srgb, var(--page-c, var(--text2)) 4%, transparent);
}
.rowIcon {
align-self: center;
}
.row[data-stacked]:has(> .rowIcon) {
padding-left: 58px;
position: relative;
}
.rowIcon {
align-self: center;
}
.row[data-stacked] > .rowIcon {
position: absolute;
left: 16px;
top: 12px;
}
.emptyIcon {
color: var(--page-c, var(--text2));
}
/* ⓘ: the long explanation folds open under the one-line note. */
.text strong {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.info {
display: inline-grid;
place-items: center;
flex: none;
width: 16px;
height: 16px;
padding: 0;
border: 0;
border-radius: 50%;
background: var(--tert);
color: var(--text2);
font: inherit;
font-size: 10px;
font-weight: 700;
line-height: 1;
cursor: pointer;
transition:
background-color 150ms ease,
color 150ms ease;
}
.info:hover,
.info[aria-expanded="true"] {
background: color-mix(in srgb, var(--page-c, var(--text2)) 18%, transparent);
color: var(--accent-ink, var(--text));
}
.info:focus-visible,
.linkRow:focus-visible,
.back:focus-visible,
.fold:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.infoBox {
margin-top: 6px;
padding: 8px 10px;
border-radius: 10px;
background: color-mix(in srgb, var(--page-c, var(--text2)) 8%, transparent);
color: var(--text2);
font-size: 12.5px;
line-height: 1.55;
animation: settingsReveal 220ms var(--ease-out);
}
.infoBox[hidden] {
display: none;
}
.infoBox p {
margin: 0;
}
.infoBox p + p {
margin-top: 6px;
}
/* Second-level navigation: a whole row is the button; a back link above the sub-page. */
.linkRow {
width: 100%;
border: 0;
background: transparent;
color: var(--text);
font: inherit;
text-align: left;
cursor: pointer;
}
.card > .linkRow + *,
.card > * + .linkRow {
border-top: 1px solid var(--b1);
}
.linkRow:disabled {
cursor: default;
opacity: 0.55;
}
.chevron {
flex: none;
color: var(--text2);
transition: transform 200ms var(--ease-out);
}
.linkRow:hover:not(:disabled) .chevron {
transform: translateX(2px);
}
.back {
display: inline-flex;
align-items: center;
gap: 4px;
align-self: flex-start;
margin: 0 0 -8px -6px;
padding: 4px 10px 4px 6px;
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--text2);
font: inherit;
font-size: 13px;
cursor: pointer;
transition:
background-color 150ms ease,
color 150ms ease;
}
.back:hover {
background: var(--hover);
color: var(--text);
}
.subTitle {
margin: 0;
font-size: 18px;
font-weight: 700;
}
/* Hero card: the page colour as a gradient mark. */
.hero {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px 14px;
padding: 16px;
}
.heroMark {
display: grid;
place-items: center;
flex: none;
width: 48px;
height: 48px;
border-radius: 14px;
background: linear-gradient(
135deg,
var(--page-c, var(--text2)),
color-mix(in srgb, var(--page-c, var(--text2)) 60%, var(--card))
);
color: var(--on-tone);
}
.heroText {
display: flex;
flex: 1 1 200px;
flex-direction: column;
gap: 2px;
min-width: 0;
overflow-wrap: anywhere;
}
.heroText strong {
font-size: 17px;
font-weight: 700;
}
.heroText small {
color: var(--text2);
font-size: 12.5px;
}
/* Fold («高级»): one card; the head row opens it and the chevron turns. */
.foldCard {
gap: 0;
border: 1px solid var(--b1);
border-radius: var(--radius-card);
background: var(--card);
box-shadow: var(--shadow-soft);
overflow: hidden;
}
.foldCard > .card {
border: 0;
border-top: 1px solid var(--b1);
border-radius: 0;
box-shadow: none;
animation: settingsReveal 240ms var(--ease-out);
}
.foldCard > .card[hidden] {
display: none;
}
.fold {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 12px;
width: 100%;
min-height: 56px;
box-sizing: border-box;
padding: 11px 16px;
border: 0;
background: transparent;
color: var(--text);
font: inherit;
text-align: left;
cursor: pointer;
}
.fold:hover {
background: color-mix(in srgb, var(--page-c, var(--text2)) 4%, transparent);
}
.foldTitle {
font-weight: 600;
}
.fold small {
flex: 1 1 160px;
min-width: 0;
color: var(--text2);
font-size: 12.5px;
}
.foldChevron {
flex: none;
margin-left: auto;
color: var(--text2);
transition: transform 250ms var(--ease-out);
}
.fold[aria-expanded="true"] .foldChevron {
transform: rotate(90deg);
}
/* Inline editors that open under a row (PATH list, outside-sandbox commands). */
.editor {
display: flex;
flex-direction: column;
gap: 10px;
padding: 4px 16px 14px 64px;
animation: settingsReveal 220ms var(--ease-out);
}
.card > .editor {
border-top: 0;
}
.editor ul {
margin: 0;
padding: 8px 10px 8px 26px;
border-radius: 10px;
background: var(--tert);
font-family: var(--font-mono);
font-size: 12px;
}
.note {
color: var(--text2);
font-size: 12.5px;
line-height: 1.5;
}
.banner {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
padding: 9px 12px;
border-radius: 12px;
background: var(--warnBg);
color: var(--warn);
font-size: 12.5px;
}
.banner > span {
flex: 1 1 200px;
min-width: 0;
}
.card > .banner {
margin: 0 16px 12px 64px;
border-top: 0;
}
@keyframes settingsReveal {
from {
opacity: 0;
transform: translateY(-4px);
}
}
@media (prefers-reduced-motion: reduce) {
.infoBox,
.foldCard > .card,
.editor,
.chevron,
.foldChevron,
.row {
animation: none;
transition: none;
}
}
@media (max-width: 640px) {
.editor,
.card > .banner {
padding-left: 16px;
margin-left: 16px;
}
.editor {
margin-left: 0;
}
}
.pathList {
overflow-wrap: anywhere;
}
.editor .inset {
padding: 10px 12px;
border: 1px solid var(--b1);
border-radius: 12px;
background: var(--card);
}
.banner[data-tone="danger"] {
background: var(--dangerBg);
color: var(--danger);
}
.mono {
font-family: var(--font-mono);
font-size: 12.5px;
}
.back:disabled {
opacity: 0.5;
cursor: default;
}
/* A service that is up breathes (例行任务 · 后台服务, devices). */
.row > .dot[data-tone="ok"] {
animation: settingsPulse 2.2s ease-out infinite;
}
@keyframes settingsPulse {
0% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
}
70%,
100% {
box-shadow: 0 0 0 7px transparent;
}
}
@media (prefers-reduced-motion: reduce) {
.row > .dot[data-tone="ok"] {
animation: none;
}
}