This repository has been archived on 2026-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
orchestrator/agent-team/web/src/theme.css

179 lines
8.7 KiB
CSS
Raw Normal View History

:root {
--bg: #0c0e13;
--bg-1: #12151c;
--bg-2: #1a1e26;
--border: #232a36;
--border-2: #2f3645;
--text: #e6e8ee;
--text-dim: #8a93a6;
--accent: #7a5cff;
--accent-2: #3f7fd8;
--ok: #2f8f5e;
--ok-bg: #163a2b;
--ok-fg: #6ee7a8;
--warn-bg: #3a3216;
--warn-fg: #f5d76e;
--park-bg: #3a1f16;
--park-fg: #f3a36e;
--done-bg: #1c2b3a;
--done-fg: #7fb3f5;
--fail-bg: #3a1620;
--fail-fg: #f57f9c;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.45;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.app { display: flex; flex-direction: column; height: 100%; }
.body { display: grid; grid-template-columns: 320px 1fr 360px; flex: 1; min-height: 0; }
/* --- Top bar -------------------------------------------------------------- */
.topbar {
display: flex; align-items: center; gap: 1.5rem;
padding: .6rem 1rem; background: var(--bg-1);
border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand-dot {
width: 10px; height: 10px; border-radius: 50%;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
align-self: center;
}
.brand-name { font-weight: 700; letter-spacing: .01em; }
.brand-sub { color: var(--text-dim); font-size: .85rem; }
.chips { display: flex; gap: .6rem; flex: 1; }
.chip {
display: flex; flex-direction: column; align-items: center;
background: var(--bg-2); border: 1px solid var(--border);
border-radius: 8px; padding: .3rem .7rem; min-width: 4.5rem;
}
.chip-num { font-size: 1.25rem; font-weight: 700; }
.chip-lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
color: var(--text-dim); }
.chip-active .chip-num { color: var(--ok-fg); }
.chip-waiting .chip-num { color: var(--warn-fg); }
.chip-parked .chip-num { color: var(--park-fg); }
.health { display: flex; align-items: center; gap: .5rem; color: var(--text-dim);
font-size: .8rem; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; }
.health-dot.ok { background: var(--ok-fg); box-shadow: 0 0 6px var(--ok); }
.health-dot.down { background: var(--fail-fg); }
/* --- Task list ------------------------------------------------------------ */
.tasklist { background: var(--bg-1); border-right: 1px solid var(--border);
display: flex; flex-direction: column; min-height: 0; }
.tasklist-controls { padding: .75rem; border-bottom: 1px solid var(--border);
display: flex; flex-direction: column; gap: .5rem; }
.search, select {
background: var(--bg-2); color: var(--text); border: 1px solid var(--border-2);
border-radius: 6px; padding: .4rem .55rem; font-size: .85rem; width: 100%;
}
.filters { display: flex; gap: .5rem; }
.filter-chip { background: var(--bg-2); color: var(--accent); cursor: pointer;
border: 1px solid var(--accent); border-radius: 999px; padding: .2rem .6rem;
font-size: .75rem; align-self: flex-start; }
.tasks { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; flex: 1; }
.task-row { background: var(--bg-2); border: 1px solid var(--border);
border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; cursor: pointer;
transition: border-color .15s, transform .05s; }
.task-row:hover { border-color: var(--border-2); }
.task-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.task-row.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.task-row-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.task-phase { color: var(--text-dim); font-size: .75rem; }
.task-wait { margin-left: auto; }
.task-desc { font-size: .85rem; overflow: hidden; text-overflow: ellipsis;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-id { color: var(--text-dim); font-size: .72rem; margin-top: .25rem; }
.empty { color: var(--text-dim); font-style: italic; padding: .5rem; }
/* --- Badges -------------------------------------------------------------- */
.badge { display: inline-block; padding: .08rem .45rem; border-radius: 999px;
font-size: .72rem; font-weight: 600; }
.badge.active { background: var(--ok-bg); color: var(--ok-fg); }
.badge.waiting_human, .badge.waiting { background: var(--warn-bg); color: var(--warn-fg); }
.badge.parked { background: var(--park-bg); color: var(--park-fg); }
.badge.done { background: var(--done-bg); color: var(--done-fg); }
.badge.failed { background: var(--fail-bg); color: var(--fail-fg); }
.badge.unknown { background: var(--bg-2); color: var(--text-dim); }
/* --- Map ----------------------------------------------------------------- */
.center { min-height: 0; min-width: 0; position: relative; }
.map-pane { width: 100%; height: 100%; }
.loading { padding: 2rem; color: var(--text-dim); }
.react-flow__attribution { display: none; }
.node {
width: 184px; height: 72px; background: var(--bg-2);
border: 1.5px solid var(--border-2); border-radius: 10px;
padding: .5rem .6rem; display: flex; flex-direction: column; justify-content: center;
position: relative; transition: border-color .25s, background .25s, opacity .2s;
}
.node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.node-label { font-weight: 700; font-size: .92rem; display: flex; gap: .3rem;
align-items: center; }
.gate-pip { color: var(--warn-fg); font-size: .8rem; }
.node-agent { color: var(--text-dim); font-size: .72rem; margin-top: .15rem; }
.node-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
border-radius: 999px; background: var(--accent); color: #0c0e13; font-weight: 800;
font-size: .72rem; display: flex; align-items: center; justify-content: center;
padding: 0 5px; }
.node-gated-tag { position: absolute; bottom: 4px; right: 8px; font-size: .58rem;
letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.node.state-active { border-color: var(--ok); background: var(--ok-bg); }
.node.state-awaiting_human { border-color: var(--warn-fg); background: var(--warn-bg); }
.node.state-parked { border-color: var(--park-fg); background: var(--park-bg); }
.node.gated { opacity: .62; }
.node.dimmed { opacity: .28; }
.node.on-path { box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(122, 92, 255, .4); }
/* --- Drawer -------------------------------------------------------------- */
.drawer { background: var(--bg-1); border-left: 1px solid var(--border);
display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between;
padding: .75rem 1rem; border-bottom: 1px solid var(--border); position: sticky;
top: 0; background: var(--bg-1); }
.drawer-head h2 { font-size: 1rem; margin: 0; color: #9fb4d6; }
.drawer-close { background: none; border: none; color: var(--text-dim);
font-size: 1rem; cursor: pointer; }
.drawer-close:focus-visible { outline: 2px solid var(--accent); }
.drawer-loading, .drawer-error, .drawer-section { padding: 1rem; }
.drawer-error { color: var(--fail-fg); }
.drawer-summary { padding: 1rem; border-bottom: 1px solid var(--border); }
.drawer-task { font-size: .95rem; margin-bottom: .5rem; }
.drawer-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
font-size: .8rem; color: var(--text-dim); }
.spend { margin-left: auto; color: var(--text); }
.partial-banner { margin-top: .6rem; background: var(--warn-bg); color: var(--warn-fg);
border-radius: 6px; padding: .5rem .6rem; font-size: .76rem; }
.timeline { list-style: none; margin: 0; padding: 1rem 1rem 0; }
.tl-step { display: flex; gap: .7rem; padding-bottom: 1rem; position: relative; }
.tl-step:not(:last-child)::before { content: ""; position: absolute; left: 5px;
top: 14px; bottom: 0; width: 2px; background: var(--border-2); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
margin-top: 2px; flex-shrink: 0; z-index: 1; }
.tl-step.open .tl-dot { background: var(--warn-fg); box-shadow: 0 0 6px var(--warn-fg); }
.tl-body { flex: 1; }
.tl-node { font-weight: 700; font-size: .88rem; }
.tl-times { display: flex; justify-content: space-between; color: var(--text-dim);
font-size: .72rem; margin: .15rem 0; }
.tl-dur { color: var(--text); }
.tl-foot { display: flex; gap: .5rem; align-items: center; font-size: .72rem; }
.tl-cost { color: var(--ok-fg); }
.tl-note { color: var(--text-dim); font-style: italic; }
.drawer-section summary { cursor: pointer; color: #9fb4d6; font-weight: 600;
font-size: .85rem; }
.json { background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
padding: .6rem; font-size: .72rem; overflow-x: auto; max-height: 16rem;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }