/**
 * Settings (0.3): a header, then tabs that group the jobs; each section in its colour (`--sc`), its
 * items as cards (one layout for all: the icon, the name and line, the action; the facts as chips), servers and add-ons as cards, the heroes on This PC and This
 * server. The sync board opens in place of the tabs, with Back; its changes wait in a bar that
 * floats at the bottom of the screen. Everything that moves keeps its own layer, so nothing snaps
 * when a move ends.
 */

.settings.st-page { display: block; max-width: 1140px; margin: 0 auto; }

/* Each section's colour, which its head and its tiles take */
#set-pc, #set-this-server, #set-server-hero { --sc: #a78bfa; }
#set-pc-agents { --sc: #fb923c; }
#set-profile, #set-people { --sc: #4ac578; }
#set-server, #set-clients { --sc: #60a5fa; }
#set-sync, #set-downloads { --sc: #5fd4c4; }
#set-agents, #set-roles { --sc: #e9c46a; }
#set-tools { --sc: #fb923c; }
#set-addons { --sc: #f472b6; }
#set-about { --sc: #8fa3bf; }
.st-head { margin-bottom: 22px; }
.st-head .set-system { margin-bottom: 0; }
.st-head h1 { margin-top: 10px; font-size: 34px; letter-spacing: -.025em; line-height: 1.2; }
.st-head .sub { margin-top: 6px; color: var(--muted); }

/* The tabs: a segmented control whose marker slides */
.st-tabs { margin-bottom: 26px; max-width: 100%; overflow-x: auto; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { white-space: nowrap; will-change: transform; transform: translateZ(0); }
.st-tabs button .ico { width: 16px; height: 16px; }
.st-tabs .seg-marker { will-change: transform; transition: transform .45s var(--ease), width .45s var(--ease); }
.st-body { will-change: transform, opacity; transform: translateZ(0); }
.st-body > .sec[hidden] { display: none; }

/* A section: its icon in a tile of its colour, the title and its line, actions on the right */
.settings .sec { padding-bottom: 34px; }
.settings .sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; border: 0; }
.settings .sec-head h2 { display: grid; gap: 2px; flex: 1; min-width: 0; margin: 0; font: 600 15px "Noto Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.settings .sec-head h2 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.st-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--sc, var(--accent)) 18%, transparent); color: var(--sc, var(--accent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc, var(--accent)) 30%, transparent); }
.st-ico .ico { width: 17px; height: 17px; }
.settings .sec-head > .sh-btns, .settings .sec-head > .btn, .settings .sec-head > .seg { flex: none; }
.settings .sec-line { margin: -4px 0 14px 44px; font-size: 13.5px; }
.settings .sub-head { margin-left: 44px; }

/* Cards: every item of a section, one layout: the head (icon or avatar, name and line, the action), then the facts as chips */
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.st-card { --c: var(--sc, var(--accent)); display: grid; gap: 14px; align-content: start; padding: 16px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, var(--panel)) 0%, var(--panel) 60%); transition: border-color .45s var(--ease), opacity .45s var(--ease); will-change: transform; }
.st-card:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.st-card.is-main { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.st-card.is-paused, .st-card.is-muted { opacity: .62; }
.st-card.is-ph { min-height: 128px; }
.st-card-h { display: flex; align-items: center; gap: 13px; min-width: 0; }
.st-card-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.st-card-ico .ico { width: 22px; height: 22px; }
.st-card-h > .avatar { width: 44px; height: 44px; flex: none; border-radius: 13px; font-size: 17px; }
.st-card .st-card-t b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.st-card .st-card-t small { font-size: 13px; }
.st-card-end { display: flex; align-items: center; gap: 6px; flex: none; }
.st-card-f { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--hover); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-chip .ico { width: 14px; height: 14px; color: var(--c, var(--muted)); }
.st-chip.is-ok { background: var(--ok-soft); color: var(--ok); }
.st-chip.is-ok .ico { color: inherit; }
.st-card.cur-row { grid-template-columns: minmax(0, 1fr); }
.st-card .main-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 0; padding: 0 10px; border-radius: 13px; font: 700 12.5px "Noto Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 80%, white); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-card .main-chip .ico { width: 14px; height: 14px; }
.st-cards > .row-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--line-3); border-radius: var(--r-card); color: var(--muted); }
.settings .st-note { display: flex; align-items: center; gap: 8px; }
.settings .st-note .ico { width: 16px; height: 16px; flex: none; }
.settings .role-cards .role-card { background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 9%, var(--panel)) 0%, var(--panel) 60%); }

/* Servers, in their colour */
.settings .sv-card.is-server { background: linear-gradient(110deg, color-mix(in srgb, var(--sv) 9%, var(--panel)) 0%, var(--panel) 45%); }
.settings .sv-card.is-server .sv-ico.is-mark { width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--sv) 20%, transparent); color: var(--sv); }

/* Add-ons: one card, a row each in fixed columns (icon, name and one line, where it runs, the server's action, chevron, switch); the rest folds under its chevron. No class here starts with "ad": ad blockers hide those */
.ext-list { --t: .45s var(--ease); display: grid; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 7%, var(--panel)) 0%, var(--panel) 40%); }
.ext-list > .row-empty { margin: 12px; }
.ext-item + .ext-item { border-top: 1px solid var(--line); }
.ext-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 190px 150px 30px 36px; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; }
.ext-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, var(--hover)); color: color-mix(in srgb, var(--c) 85%, var(--text)); transition: opacity var(--t), filter var(--t); }
.ext-ico .ico { width: 18px; height: 18px; }
.ext-t { display: grid; gap: 3px; min-width: 0; }
.ext-t > b { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; white-space: nowrap; }
.ext-ver { color: var(--muted); font: 500 11px var(--mono); }
.ext-ver.is-absent { font-family: inherit; font-size: 12px; }
.ext-new { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.ext-desc { overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; cursor: default; }
.ext-why { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--warn); font-size: 12.5px; font-weight: 600; }
.ext-why .ico { width: 14px; height: 14px; flex: none; }
.ext-why span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ext-where { display: flex; align-items: center; justify-content: flex-end; gap: 8px; transition: opacity var(--t); }
.ext-sys { display: inline-flex; gap: 3px; color: var(--muted); cursor: default; }
.ext-sys .ico { width: 14px; height: 14px; }
.ext-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hover); color: var(--text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ext-tag .ico { width: 12px; height: 12px; color: var(--muted); }
.ext-slot { display: flex; justify-content: flex-end; min-width: 0; }
.ext-slot .btn { white-space: nowrap; }
.ext-row > .switch { justify-self: end; }
.ext-fold { position: relative; }
.ext-fold .ico { transition: transform var(--t); }
.ext-fold.is-open .ico { transform: rotate(180deg); }
.ext-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.ext-dot.is-warn { background: var(--warn); }
.ext-dot.is-accent { background: var(--accent); }
.ext-item.is-muted .ext-ico { opacity: .45; filter: grayscale(1); }
.ext-item.is-muted .ext-where { opacity: .55; }
.ext-under { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.ext-under.is-open { grid-template-rows: 1fr; }
.ext-under-in { display: grid; gap: 8px; min-height: 0; overflow: hidden; padding: 0 14px 0 62px; }
.ext-under.is-open .ext-under-in { padding-bottom: 12px; }
.ext-note { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.ext-note > .ico { width: 14px; height: 14px; flex: none; }
.ext-note > span { flex: 1; min-width: 0; }
.ext-note .text-link { flex: none; font-size: 12px; }
.ext-note.is-ok { background: color-mix(in srgb, var(--ok) 8%, transparent); color: var(--ok); }
.ext-note.is-warn { background: color-mix(in srgb, var(--warn) 9%, transparent); color: var(--warn); }
.ext-note.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.ext-opt { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.ext-opt > span { display: grid; gap: 2px; min-width: 0; }
.ext-opt b { font-size: 13px; }
.ext-opt small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.ext-opt .switch { justify-self: end; }
@media (max-width: 760px) {
	.ext-row { grid-template-columns: 34px minmax(0, 1fr) 30px 36px; }
	.ext-row .ext-where { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; }
	.ext-row .ext-slot { grid-column: 2 / -1; grid-row: 3; justify-content: flex-start; }
	.ext-row .ext-slot:empty { display: none; }
	.ext-row > .ext-fold, .ext-row > span:empty { grid-row: 1; grid-column: 3; }
	.ext-row > .switch { grid-row: 1; grid-column: 4; }
	.ext-under-in { padding-left: 14px; }
}

/* The profile, in its colour; its colour picked under it */
.settings .pf-card { padding: 18px 20px; margin-bottom: 12px; background: linear-gradient(110deg, color-mix(in srgb, var(--sc) 14%, var(--panel)) 0%, var(--panel) 55%); }
.settings .pf-card .pf-main { flex: 1; }
.st-swatches { display: flex; gap: 8px; }
.st-sw { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel), 0 0 0 2px transparent; transition: box-shadow .45s var(--ease); }
.st-sw.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
.st-path { font-size: 12.5px; }

/* About: who made it, the version once */
.st-about { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 12px; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 12%, var(--panel)) 0%, var(--panel) 55%); }
.st-about-logo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 15px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); }
.st-about-logo .ico { width: 26px; height: 26px; }
.st-about .st-card-t b { font-size: 17px; }

/* The heroes: This PC's version and updates, this server */
.st-hero { --c: var(--sc, var(--accent)); position: relative; display: flex; align-items: center; gap: 24px; padding: 22px 22px 22px 26px; margin-bottom: 12px; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, var(--panel)) 0%, var(--panel) 55%); }
.st-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.st-hero-v { display: grid; gap: 2px; flex: 1; min-width: 0; }
.st-hero-v[style] { --c: inherit; }
.st-hero-v small { color: color-mix(in srgb, var(--c) 70%, var(--text)); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.st-hero-v b { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.st-hero-v > span { color: var(--muted); font-size: 13px; }
.st-hero-s { display: grid; justify-items: end; gap: 6px; text-align: right; }
.st-hero-s > span { font-weight: 600; font-size: 13.5px; }
.st-hero-s small { color: var(--muted); font-size: 12.5px; max-width: 320px; }
.st-hero-s .up-acts { display: flex; gap: 6px; }
.st-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.st-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-state.is-ok { color: var(--ok); }
.st-state.is-new { color: var(--accent-text); }
.st-state.is-bad { color: var(--bad); }
.st-state.is-mute { color: var(--muted); }

/* The sync board's card, in Servers and sync: plain, its colour only in the servers' squares and this PC's (dashed) */
.st-boardcard { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; margin-bottom: 12px; text-align: left; background: var(--panel); transition: border-color .45s var(--ease); }
.st-boardcard:hover { border-color: var(--line-3); }
.st-boardcard-art { display: flex; align-items: center; height: 44px; flex: none; padding-right: 4px; }
.st-boardcard-art i { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, var(--panel)); }
.st-boardcard-art i + i { margin-left: -12px; }
.st-boardcard-art i:nth-child(even) { transform: translateY(8px); }
.st-boardcard-art i:nth-child(odd):not(:first-child) { transform: translateY(-4px); }
.st-boardcard-art i.is-pc { border-style: dashed; }
.st-card-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.st-card-t b { font-size: 15.5px; }
.st-card-t small { color: var(--muted); font-size: 13px; }
.st-go { display: grid; place-items: center; align-self: center; color: var(--muted); transition: transform .45s var(--ease), color .45s var(--ease); }
.st-go .ico { width: 18px; height: 18px; }
.st-boardcard:hover .st-go { color: var(--text); transform: translateX(3px); }

/* The rows a section shares: title and line, the control on the right */
.st-rows { padding: 0; overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 14px 20px; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-row-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.st-row-t b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st-row-t small { color: var(--muted); font-size: 13px; }
.st-row-c { display: flex; align-items: center; gap: 10px; flex: none; }

/* The board, in place of the tabs */
.st-board-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.st-board-h h2 { flex: 1; font-size: 20px; }
.st-back { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: var(--r-btn); color: var(--muted); font-weight: 600; transition: color .45s var(--ease), background-color .45s var(--ease); }
.st-back:hover { color: var(--text); background: var(--hover); }
.st-back .ico { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.st-back:hover .ico { transform: translateX(-3px); }
.st-board .sy-clock { margin-bottom: 14px; }
.st-board .sec-line { margin-left: 0; }
.st-board .wr-board { overflow: visible; }
/* Changes waiting float at the bottom of the screen, whatever the scroll */
.st-board .wr-bar { position: sticky; bottom: 18px; z-index: 6; width: max-content; max-width: calc(100% - 32px); margin: 14px auto 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--menu); box-shadow: var(--shadow-lg); will-change: transform, opacity; }

/* Agent access, the tools: a tab per caller with its count, a search, how many are on */
.st-tbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.st-callers { flex: none; }
.st-callers button { gap: 8px; }
.st-callers button .ico { width: 16px; height: 16px; color: var(--c); }
.st-callers:has(button.is-on[data-tool-caller="agents"]) .seg-marker { background: color-mix(in srgb, #fb923c 16%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fb923c 40%, transparent); }
.st-callers:has(button.is-on[data-tool-caller="curator"]) .seg-marker { background: color-mix(in srgb, #a78bfa 16%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #a78bfa 40%, transparent); }
.st-n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hover-strong); color: var(--text-2); font: 600 11.5px/20px var(--mono); text-align: center; }
.st-search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 340px; height: 40px; margin-left: auto; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); transition: border-color .45s var(--ease); }
.st-search:focus-within { border-color: var(--accent); }
.st-search .ico { width: 16px; height: 16px; flex: none; }
.st-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.st-tsum { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.st-tsum b { color: var(--text); }

/* Reading and Writing, each with its count and All on, All off */
.st-tgroup + .st-tgroup { margin-top: 22px; }
.st-tgroup-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; will-change: transform; }
.st-tgroup-h > .ico { width: 16px; height: 16px; color: var(--c); }
.st-tgroup-h b { color: var(--c); font-size: 14px; }
.st-tgroup-h small { color: var(--muted); font-size: 12.5px; }
.st-tgroup-btns { display: flex; gap: 4px; margin-left: auto; }
.st-tgroup-btns .btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.st-tools { padding: 0; overflow: hidden; }
.st-tempty { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--muted); }
.st-tempty .ico { width: 18px; height: 18px; }

/* A tool: its label and line, its chips, the switch; it opens to say more */
.st-tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; transition: background-color .45s var(--ease); will-change: transform; }
.st-tool + .st-tool { border-top: 1px solid var(--line); }
.st-tool:hover { background: var(--hover); }
.st-tool.is-ph { min-height: 60px; }
.st-tool-h { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; min-width: 0; padding: 13px 4px 13px 20px; text-align: left; }
.st-tool-t { display: grid; gap: 2px; min-width: 0; transition: opacity .45s var(--ease); }
.st-tool-t b { font-size: 14px; }
.st-tool-t small { color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-tool-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; transition: opacity .45s var(--ease); }
.st-tool-chips .st-chip { height: 24px; font-size: 12px; }
.st-tool-h > .ico { width: 16px; height: 16px; color: var(--muted); transition: transform .45s var(--ease); }
.st-tool.is-open .st-tool-h > .ico { transform: rotate(180deg); }
.st-tool-c { display: flex; justify-content: flex-end; width: 132px; padding: 0 20px 0 12px; }
.st-lock { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--hover); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-lock .ico { width: 14px; height: 14px; }
.st-tool.is-off .st-tool-t, .st-tool.is-off .st-tool-chips { opacity: .5; }
.st-tool-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.st-tool-more > div { overflow: hidden; }
.st-tool.is-open .st-tool-more { grid-template-rows: 1fr; }
.st-tool-more-in { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 20px 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.st-tool-more-in span { display: grid; gap: 3px; }
.st-tool-more-in small { color: var(--muted); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.st-tool-more-in b { font-size: 13.5px; }
.st-tool-more-in b.is-ok { color: var(--ok); }
.st-tool-more-in b.is-mute { color: var(--muted); }
.st-tool-more-in code { justify-self: start; font-size: 12.5px; }

@media (max-width: 700px) {
	.st-head h1 { font-size: 28px; }
	.settings .sec-head { flex-wrap: wrap; }
	.settings .sec-head h2 { flex: 1 1 200px; }
	.settings .sec-head > .sh-btns, .settings .sec-head > .btn, .settings .sec-head > .seg { flex: none; max-width: calc(100% - 44px); margin-left: 44px; }
	.settings .sec-head > .sh-btns { flex-wrap: wrap; }
	.settings .sec-line, .settings .sub-head { margin-left: 0; }
	.st-cards { grid-template-columns: minmax(0, 1fr); }
	.st-card .st-card-t b { white-space: normal; }
	.st-hero { flex-wrap: wrap; gap: 12px; }
	.st-hero-v { flex-basis: 100%; }
	.st-hero-s { justify-items: start; text-align: left; }
	.st-row { flex-wrap: wrap; gap: 10px; }
	.st-row-c { width: 100%; justify-content: flex-end; }
	.st-search { max-width: none; margin-left: 0; flex-basis: 100%; }
	.st-tool-h { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; padding-left: 16px; }
	.st-tool-chips { grid-column: 1; grid-row: 2; justify-content: flex-start; }
	.st-tool-h > .ico { grid-column: 2; grid-row: 1; }
	.st-tool-c { width: auto; padding: 0 16px 0 8px; }
	.st-tool-t small { white-space: normal; }
	.st-tgroup-h { flex-wrap: wrap; }
	.st-swatches { flex-wrap: wrap; }
}

/* Curation rules: this PC only, or a server's, each server with its dot */
.st-follow .dd-btn { min-width: 190px; transition: border-color .45s var(--ease); }
.st-follow-on { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.st-follow-on > span, .st-follow .dd-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-follow .dd-item > .ico:first-child { width: 16px; height: 16px; }
.st-follow .dd-menu { left: auto; right: 0; min-width: 220px; }
.st-follow .st-sv-dot { margin: 0 4px; }
.st-sv-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sv); }


/* Agents on this PC: one card per maker in the colour of its mark, its agents as rows in fixed columns (icon, name and state, what it gets, switch), so a longer name or a notice never moves the controls beside it */
.pa-grid { display: grid; gap: 14px; }
.pa-grid > .row-empty { padding: 18px; border: 1px dashed var(--line-3); border-radius: var(--r-card); color: var(--muted); }
.pa-card { --t: .45s var(--ease); display: grid; align-content: start; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--panel)) 0%, var(--panel) 42%); transition: border-color var(--t); will-change: transform; transform: translateZ(0); }
.pa-card:hover { border-color: color-mix(in srgb, var(--c) 32%, var(--line)); }
.pa-head { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px 18px 12px; }
.pa-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); }
.pa-mark .ico { width: 21px; height: 21px; }
.pa-head-t { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pa-head-t b { font-size: 15.5px; letter-spacing: -.005em; }
.pa-head-t small { overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.pa-rows { display: grid; margin: 0 10px 10px; border-radius: calc(var(--r-card) - 3px); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.pa-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 36px; align-items: center; gap: 16px; min-height: 60px; padding: 10px 14px; }
.pa-row + .pa-row, .pa-notice + .pa-row { border-top: 1px solid var(--line); }
.pa-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, var(--hover)); color: color-mix(in srgb, var(--c) 75%, var(--text)); transition: opacity var(--t), filter var(--t); }
.pa-ico .ico { width: 16px; height: 16px; }
.pa-t { display: grid; gap: 3px; min-width: 0; }
.pa-t > b { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; white-space: nowrap; }
.pa-ver { color: var(--muted); font: 500 11px var(--mono); }
.pa-kept { display: grid; place-items: center; width: 18px; height: 18px; margin-left: -4px; color: var(--muted); cursor: default; }
.pa-kept .ico { width: 14px; height: 14px; }
.pa-state { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 12.5px; }
.pa-state span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pa-state i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.pa-state.is-ok { color: var(--ok); }
.pa-state.is-ok i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.pa-state.is-wait { color: var(--warn); }
.pa-state.is-off i, .pa-state.is-idle i { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.pa-gets { display: flex; gap: 5px; transition: opacity var(--t); }
.pa-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hover); color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: default; }
.pa-tag .ico { width: 12px; height: 12px; color: color-mix(in srgb, var(--c) 70%, var(--muted)); }
.pa-tag.is-none { opacity: .4; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.pa-row.is-muted .pa-ico { opacity: .45; filter: grayscale(1); }
.pa-row.is-muted .pa-gets { opacity: .4; }
.pa-row > .switch { justify-self: end; }
.pa-notice { display: flex; align-items: center; gap: 7px; margin: -4px 12px 10px 60px; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 9%, transparent); color: var(--warn); font-size: 12px; font-weight: 600; }
.pa-notice .ico { width: 14px; height: 14px; flex: none; }
@media (max-width: 700px) {
	.pa-row { grid-template-columns: 30px minmax(0, 1fr) 36px; }
	.pa-row .pa-gets { grid-column: 2; grid-row: 2; }
	.pa-row > .switch { grid-column: 3; grid-row: 1 / span 2; }
	.pa-notice { margin-left: 12px; }
}
