On macOS, Agent Office now finds the terminal tab, multiplexer pane or desktop
window where a live session runs (Terminal.app, iTerm2, tmux, Herdr, Otty,
Claude Desktop, Cursor, VS Code). The panel has a jump button, or you can
double-click a worker, name tag or row. The page sends only
{key, session, preferredHostId, at} through options.set. The hooks host
resolves the target from its own ps/herdr/otty/tmux snapshot, and runs fixed
binaries with args it derived itself. TTYs are checked against
^/dev/ttys?\d+$ and quoted before they go into AppleScript. Nothing resolves
on Linux or Windows. When magpie restarts the host after options.set, a fresh
request (15s or newer) runs once. The last handled time is kept in
$XDG_CACHE_HOME/agent-office/last-jump.json, and plugins.json is never
written. The standalone server never reads plugins.json. Version 0.2.3.
By jixing475 (#552).
Run at b4654a2:
- mote (macOS 27.2, Bun 1.4.2), sandbox HOME: packages/agent-office bun test
177 pass 0 fail; stamp-page --check 0; root scripts/check.mjs 0.
- WSL magpie-desktop: 177 pass 0 fail. Windows 11 xiaomi-gpu: 177 pass 0 fail.
- Broken by hand, each red: lastJumpAt seeded from the request (restart
test), no last-jump.json write (replay check), all plugins.json options
merged (--private test), req.target trusted (crafted-target test).
- Real magpie at main 4179cf2d8 on mote, sandbox HOME, plugin added from a
folder, magpie web, fake herdr. The page's options.set sent by curl gave
workspace/tab/agent focus after the host restart. plugins.json stayed 0600
with another plugin's apiKey. A second restart with the same request did
not replay it. A click within 1s of a save got 429, and the next click
jumped.
- Not tried: a real iTerm2, Terminal, Herdr.app, Otty or Claude Desktop
window, or the page clicked in a browser.
Follow-up: #583 (a future jumpRequest.at blocks later jumps).
280 lines
22 KiB
CSS
280 lines
22 KiB
CSS
:root {
|
|
--bg: var(--magpie-bg, #fff);
|
|
--card: var(--magpie-card, #f6f6f7);
|
|
--fg: var(--magpie-fg, #1d1d1f);
|
|
--muted: var(--magpie-muted, #6e6e73);
|
|
--line: var(--magpie-line, #e5e5ea);
|
|
--accent: var(--magpie-accent, #4f46e5);
|
|
--font: var(--magpie-font, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif);
|
|
--mono: var(--magpie-code, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
--sheet: var(--card);
|
|
--think: #8b6cf6; --exec: #3b82f6; --reply: #10b981; --wait: #f59e0b; --done: #22a35a; --err: #ef4444;
|
|
}
|
|
[data-theme="dark"] { --sheet: #1c1c1f; }
|
|
* { box-sizing: border-box; }
|
|
[hidden] { display: none !important; }
|
|
/* the page paints no background of its own: magpie's shows through, so
|
|
there is never a ring of a different colour at the frame's edge */
|
|
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; color: var(--fg); }
|
|
/* no card around the page: it meets magpie's own background, so the
|
|
window's inset shows no ring of a different colour */
|
|
body { padding: 18px 24px 12px; font: 13px/1.45 var(--font); }
|
|
button { font: inherit; color: inherit; }
|
|
|
|
.card { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
body.panel, .card { background: none; }
|
|
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
|
|
h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
|
|
.eyes { display: inline-flex; gap: 2px; }
|
|
.eyes i { width: 11px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid #1f2937; position: relative; }
|
|
.eyes i::after { content: ""; position: absolute; width: 5px; height: 6px; border-radius: 50%; background: #1f2937; left: 1px; top: 3px; animation: look 6s infinite; }
|
|
@keyframes look { 0%, 40% { left: 1px; } 50%, 90% { left: 4px; } 100% { left: 1px; } }
|
|
.counts { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
|
|
.count { display: inline-flex; align-items: center; gap: 6px; }
|
|
.count i { width: 9px; height: 9px; border-radius: 50%; }
|
|
.count b { color: var(--fg); font-variant-numeric: tabular-nums; margin-left: 2px; }
|
|
.need i { background: var(--wait); } .work i { background: var(--exec); } .done i { background: var(--done); }
|
|
.counts.alert .need { color: var(--wait); }
|
|
.counts.alert .need i { animation: pulse 1.2s infinite; }
|
|
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, .25); } }
|
|
|
|
.bar { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content; align-items: center; gap: 8px 14px; padding: 12px 0; }
|
|
.bar > .grow { display: none; }
|
|
.grow { flex: 1; min-width: 0; }
|
|
.tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; margin-left: auto; }
|
|
.note { color: var(--muted); font-size: 12px; min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; }
|
|
.seg button { border: 0; background: none; padding: 6px 15px; border-radius: 8px; color: var(--muted); font-size: 14px; cursor: pointer; }
|
|
.seg.dark { background: var(--bg); border: 1px solid var(--line); }
|
|
.seg.dark button[aria-selected="true"] { background: #1f1f22; color: #fff; }
|
|
[data-theme="dark"] .seg.dark button[aria-selected="true"] { background: #f4f4f5; color: #111; }
|
|
.seg.plain button[aria-selected="true"] { background: rgba(0, 0, 0, .07); color: var(--fg); }
|
|
[data-theme="dark"] .seg.plain button[aria-selected="true"] { background: rgba(255, 255, 255, .1); }
|
|
.seg.off { opacity: .45; }
|
|
.seg.small { background: var(--card); border: 1px solid var(--line); }
|
|
.seg.small button { padding: 3px 9px; font-size: 12px; }
|
|
.seg.small button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
|
|
.btn { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 15px; font-size: 14px; cursor: pointer; }
|
|
.btn:hover { border-color: var(--muted); }
|
|
.btn.on { background: #1f1f22; color: #fff; }
|
|
.chev { font-size: 11px; opacity: .6; margin-left: 2px; }
|
|
.menu-wrap { position: relative; }
|
|
.menu { position: fixed; right: auto; top: 0; z-index: 50; width: 260px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }
|
|
.menu .row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
|
|
.menu .row:hover { background: var(--card); }
|
|
.menu .row.col { flex-direction: column; align-items: flex-start; cursor: default; }
|
|
.menu .row.col:hover { background: none; }
|
|
|
|
.stage { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: #05070f; }
|
|
.stage[hidden], .listview[hidden] { display: none; }
|
|
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
|
|
canvas[hidden] { display: none; }
|
|
.tags { position: absolute; inset: 0; pointer-events: none; }
|
|
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; max-width: 190px; padding: 2px 8px 2px 4px; border: 0; border-radius: 999px; background: rgba(236, 238, 243, .92); color: #1f2937; font: 600 11.5px/1.3 var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer; white-space: nowrap; will-change: transform; transition: background .12s, box-shadow .12s; }
|
|
.tag[hidden] { display: none; } /* the rule above would otherwise show it */
|
|
.tag .mark { flex: none; }
|
|
.tag .tn { overflow: hidden; text-overflow: ellipsis; }
|
|
.tag .td { flex: none; width: 6px; height: 6px; border-radius: 50%; }
|
|
.tag.hot { background: #fff; }
|
|
.tag.on { background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent), 0 2px 8px rgba(0, 0, 0, .35); z-index: 3; }
|
|
.tag[data-status="waiting"]:not(.on) { box-shadow: 0 0 0 2px var(--wait), 0 2px 8px rgba(0, 0, 0, .35); }
|
|
.tag[data-status="error"]:not(.on) { box-shadow: 0 0 0 2px var(--err), 0 2px 8px rgba(0, 0, 0, .35); }
|
|
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; vertical-align: middle; border-radius: 4px; }
|
|
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
|
|
.mark.letter { color: #fff; font-weight: 800; border-radius: 5px; line-height: 1; }
|
|
|
|
/* the panel: one agent, opened by a click, fixed at the stage's corner */
|
|
.card { position: relative; }
|
|
.pop { position: absolute; z-index: 20; right: 36px; top: 214px; width: min(400px, calc(100% - 72px)); max-height: calc(100% - 300px); overflow: auto; padding: 14px 18px 12px; background: #fff; color: #1f2937; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); font-size: 13.5px; animation: pop-in .14s ease-out; }
|
|
.pop[hidden] { display: none; }
|
|
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
|
|
.ph { display: flex; align-items: center; gap: 8px; }
|
|
.pmk { display: inline-flex; }
|
|
.pa { color: #4b5563; font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.pw { color: #9ca3af; font-size: 12.5px; white-space: nowrap; }
|
|
.px { border: 0; background: none; color: #9ca3af; font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
|
|
.px:hover { color: #111827; background: #f3f4f6; }
|
|
.pt { margin: 6px 0 2px; font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
|
|
.ps { display: flex; align-items: center; gap: 7px; margin: 8px 0; font-weight: 700; }
|
|
.ps .pi { width: 16px; text-align: center; }
|
|
.ps .pn { margin-left: auto; color: #9ca3af; font-weight: 500; font-size: 12px; }
|
|
.ps.done { color: var(--done); } .ps.error { color: var(--err); } .ps.waiting { color: var(--wait); }
|
|
.ps.thinking { color: var(--think); } .ps.executing { color: var(--exec); } .ps.replying { color: var(--reply); }
|
|
.pq { margin: 6px 0; color: #374151; overflow-wrap: anywhere; }
|
|
.pstep { margin: 6px 0; padding: 6px 9px; border-radius: 8px; background: #f3f4f6; color: #374151; font: 12px/1.45 var(--mono); overflow-wrap: anywhere; }
|
|
.perr { margin: 6px 0; padding: 6px 9px; border-radius: 8px; background: rgba(239, 68, 68, .09); color: #b91c1c; font-size: 12.5px; overflow-wrap: anywhere; }
|
|
.pr { color: #374151; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.pf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #9ca3af; font-size: 12.5px; }
|
|
.pm { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.pc { border: 0; background: none; color: #6b7280; cursor: pointer; padding: 0; white-space: nowrap; }
|
|
.pc:hover { color: #1f2937; text-decoration: underline; }
|
|
.pjump-wrap { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
|
|
.pjump { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 7px; padding: 4px 10px; background: var(--accent, #4f46e5); color: #fff; font: 600 12px/1.3 var(--font); cursor: pointer; white-space: nowrap; transition: opacity .12s; }
|
|
.pjump:hover { opacity: .9; }
|
|
.pjump.alt { background: rgba(79, 70, 229, .12); color: var(--accent, #4f46e5); font-weight: 600; padding: 4px 8px; }
|
|
.pjump.alt:hover { background: rgba(79, 70, 229, .2); }
|
|
.pjump.err { background: var(--err, #ef4444); color: #fff; }
|
|
.pcopy { width: 100%; margin-top: 6px; font: 12px var(--mono); padding: 4px 6px; border: 1px solid #e5e7eb; border-radius: 6px; }
|
|
.psrc { margin-top: 6px; color: #b0b5bd; font-size: 11.5px; }
|
|
|
|
.empty { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: 560px; padding: 10px 16px; border-radius: 12px; background: rgba(15, 23, 42, .78); color: #e2e8f0; text-align: center; font-size: 13px; backdrop-filter: blur(4px); }
|
|
|
|
/* the live dot by the title: green while the host writes, grey once it stops */
|
|
.live { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(34, 163, 90, .1); color: var(--done); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
|
|
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live 2s infinite; }
|
|
.live.stale { background: rgba(156, 163, 175, .15); color: var(--muted); }
|
|
.live.stale i { animation: none; }
|
|
@keyframes live { 50% { opacity: .35; } }
|
|
tbody tr.on td { background: var(--accent-soft, rgba(79, 70, 229, .08)); }
|
|
|
|
.listview { flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th { position: sticky; top: 0; background: var(--bg); text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
|
|
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
tr:last-child td { border-bottom: 0; }
|
|
tbody tr { cursor: pointer; }
|
|
tbody tr:hover { background: var(--card); }
|
|
td.ag { white-space: nowrap; font-weight: 600; }
|
|
td.ag .mark { margin-right: 6px; }
|
|
td.task { max-width: 420px; }
|
|
.lt { font-weight: 600; }
|
|
.ls { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
|
|
td.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
th:last-child, td.muted { white-space: nowrap; }
|
|
td.muted { color: var(--muted); white-space: nowrap; }
|
|
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--c); }
|
|
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
|
|
.empty-list { color: var(--muted); padding: 24px; text-align: center; }
|
|
|
|
footer { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
|
|
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
|
|
.legend.brands { font-size: 14px; color: var(--fg); opacity: .8; }
|
|
.lg { display: inline-flex; align-items: center; gap: 6px; }
|
|
.lg > i { width: 8px; height: 8px; border-radius: 50%; }
|
|
|
|
/* the office in a window of its own inside the page: what the frame lets
|
|
a page do when the browser won't float its canvas */
|
|
.float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 460px; height: 330px; min-width: 260px; min-height: 200px; display: flex; flex-direction: column; overflow: hidden; resize: both; border-radius: 14px; background: #05070f; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
|
|
.float[hidden] { display: none; }
|
|
.floatbar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: #15161c; color: #e5e7eb; font-size: 12px; cursor: move; user-select: none; flex: none; }
|
|
.fdots { display: inline-flex; gap: 3px; }
|
|
.fdots i { width: 7px; height: 7px; border-radius: 50%; background: #4b5563; }
|
|
.floatbar span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.fclose { border: 0; background: none; color: #9ca3af; font-size: 13px; line-height: 1; padding: 4px 2px; cursor: pointer; }
|
|
.fclose:hover { color: #fff; }
|
|
.float .tag { font-size: 10.5px; padding: 2px 7px 2px 3px; max-width: 130px; }
|
|
.float .tag .tn { max-width: 84px; }
|
|
.floatslot { position: relative; flex: 1; min-height: 0; }
|
|
.floatslot > .stage { position: absolute; inset: 0; min-height: 0; border-radius: 0; }
|
|
.stage-slot { flex: 1; min-height: 340px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 13px; }
|
|
|
|
/* ---- workbench additions: grouped list, side rail, Today, transcript ---- */
|
|
.menu.wide { width: 300px; max-height: min(72vh, 520px); overflow: auto; }
|
|
.today-tokens { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
|
|
.today-panel { width: min(340px, calc(100vw - 36px)); max-height: min(70vh, 480px); overflow: auto; }
|
|
.today-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
|
|
.today-big div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
|
|
.today-big b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
|
|
.today-big span, .today-note, .today-head { font-size: 12px; color: var(--muted); }
|
|
.today-head { margin: 12px 0 4px; font-weight: 600; }
|
|
.today-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; min-width: 0; }
|
|
.today-row .trn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.today-row .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
|
|
.today-note { margin-top: 12px; line-height: 1.5; }
|
|
.ctx { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); padding: 3px 0; min-width: 0; }
|
|
.ctx .cn { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ctx .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
|
|
.ctx .bar i { display: block; height: 100%; border-radius: 2px; background: var(--done); }
|
|
.ctx .cp { flex: none; font-variant-numeric: tabular-nums; }
|
|
.ctx.warn .bar i { background: var(--wait); }
|
|
.ctx.full .bar i { background: var(--err); }
|
|
.ctx.warn .cp { color: var(--wait); }
|
|
.ctx.full .cp { color: var(--err); }
|
|
|
|
.agent-filter { display: flex; flex-direction: column; gap: 1px; max-height: 176px; overflow: auto; width: 100%; margin-top: 4px; }
|
|
.agent-filter .af { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
|
|
.agent-filter .af:hover { background: var(--card); }
|
|
.agent-filter .af input { margin: 0; accent-color: var(--accent); }
|
|
.agent-filter .afn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.agent-filter .afc { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
|
|
.lang-select { width: 100%; margin-top: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
|
|
|
|
/* the list's three groups, as sticky-ish heading rows */
|
|
tr.group td { background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px 5px; border-bottom: 1px solid var(--line); }
|
|
tr.group:hover { background: none; }
|
|
tr.group .gcount { margin-left: 7px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
tr.group .gcount::before { content: "· "; }
|
|
tr.group:hover td { background: var(--bg); }
|
|
|
|
/* the office's side rail: the same three groups, click to open the panel */
|
|
.rail { position: absolute; z-index: 12; right: 26px; top: 152px; width: min(256px, 44%); max-height: calc(100% - 300px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 12px 34px rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
|
|
.rail[hidden] { display: none; }
|
|
.rail-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
|
|
.rail-head b { color: var(--fg); font-variant-numeric: tabular-nums; }
|
|
.rail-head .px { margin-left: 2px; }
|
|
.rail-groups { overflow: auto; padding: 4px 6px 8px; }
|
|
.rail-group { margin: 8px 6px 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
|
|
.rail-row { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 27px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
|
|
.rail-row:hover { background: var(--card); }
|
|
.rail-row .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.rail-row .rs { flex: none; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
|
|
.rail-row.on { background: var(--accent-soft, rgba(79, 70, 229, .1)); }
|
|
|
|
/* context bar and the recent conversation inside the agent panel */
|
|
.pctx { margin: 8px 0 2px; }
|
|
.pconvo-h { margin: 10px 0 4px; color: #9ca3af; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
|
|
.pconvo-h[hidden], .pmsgs[hidden] { display: none; }
|
|
.pmsgs { max-height: 150px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 0 4px; }
|
|
.msg { font-size: 12.5px; line-height: 1.45; padding: 5px 8px; border-radius: 8px; background: #f3f4f6; color: #374151; overflow-wrap: anywhere; }
|
|
.msg .mn { display: block; font-size: 10px; color: #9ca3af; font-weight: 700; letter-spacing: .03em; margin-bottom: 1px; text-transform: uppercase; }
|
|
.msg .mt { float: right; color: #b0b5bd; font-size: 10px; margin-left: 6px; }
|
|
.msg.user { background: rgba(79, 70, 229, .08); }
|
|
.msg.assistant { background: rgba(16, 185, 129, .09); }
|
|
.msg.tool { font-family: var(--mono); font-size: 11.5px; background: #f9fafb; color: #6b7280; }
|
|
|
|
/* in-page toast: magpie's frame has no Notification permission */
|
|
.toasts { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; max-width: min(350px, calc(100vw - 36px)); }
|
|
.toasts:empty { display: none; }
|
|
.toast { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: 0 14px 38px rgba(0, 0, 0, .22); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; animation: toast-in .18s ease-out; }
|
|
.toast::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--wait); }
|
|
.toast.error::before { background: var(--err); }
|
|
.toast .t-ico { flex: none; display: inline-flex; }
|
|
.toast .tn { flex: 1; min-width: 0; }
|
|
.toast .tn b { display: block; font-size: 12.5px; }
|
|
.toast .tn span { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
|
|
|
|
@media (max-width: 1100px) {
|
|
.bar { grid-template-columns: max-content 1fr; }
|
|
.tools { grid-column: 1 / -1; width: 100%; margin-left: 0; justify-content: flex-end; }
|
|
.note { display: none; }
|
|
.seg button { padding: 6px 11px; font-size: 13px; }
|
|
.btn { padding: 6px 11px; font-size: 13px; }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
body { padding: 8px; }
|
|
.card { padding: 0; }
|
|
h1 { font-size: 18px; gap: 6px; flex-wrap: wrap; }
|
|
.top { gap: 8px; padding-bottom: 8px; }
|
|
.counts { flex-wrap: wrap; }
|
|
.tools .btn { white-space: nowrap; }
|
|
.counts { gap: 12px; font-size: 13px; }
|
|
.bar { flex-wrap: wrap; }
|
|
td.mono, th:nth-child(4), th:nth-child(5) { display: none; }
|
|
|
|
.menu.wide { width: min(300px, calc(100vw - 28px)); }
|
|
}
|
|
|
|
@media (max-width: 440px) { .seg button { padding: 6px 8px; } .tools { justify-content: space-between; gap: 4px; } .btn { padding: 6px 8px; } .live { margin-left: 2px; } .counts { gap: 10px; } }
|
|
|
|
/* Detail panels use the same host theme as the page, including dark mode. */
|
|
.pop { background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
|
|
.pop .pa, .pop .pq, .pop .pr { color: var(--fg); }
|
|
.pop .pstep, .pop .msg, .pop .msg.tool { background: var(--card); color: var(--fg); }
|
|
.pop .pw, .pop .pm, .pop .pc, .pop .psrc, .pop .pconvo-h, .pop .msg .mn, .pop .msg .mt { color: var(--muted); }
|
|
.pop .msg.user { background: rgba(99, 102, 241, .12); }
|
|
.pop .msg.assistant { background: rgba(16, 185, 129, .10); }
|
|
.pop .pf { flex-wrap: wrap; }
|
|
.pop .pm { flex: 1 1 120px; }
|