842 lines
14 KiB
CSS
842 lines
14 KiB
CSS
:root {
|
|
--paper: #f3efe7;
|
|
--paper-strong: #e8dfd1;
|
|
--panel: #fffdf8;
|
|
--panel-muted: #f8f4ec;
|
|
--ink: #27312d;
|
|
--muted: #6f746c;
|
|
--line: #ded6ca;
|
|
--green: #2f5d50;
|
|
--green-soft: #e4eee9;
|
|
--terracotta: #bd6b42;
|
|
--terracotta-soft: #f5e1d4;
|
|
--amber: #c49a3a;
|
|
--blue: #5e718f;
|
|
--shadow: 0 18px 45px rgba(62, 52, 39, 0.08);
|
|
color: var(--ink);
|
|
background: var(--paper);
|
|
font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
|
|
font-size: 16px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
background:
|
|
linear-gradient(90deg, rgba(47, 93, 80, 0.04) 1px, transparent 1px),
|
|
linear-gradient(rgba(47, 93, 80, 0.04) 1px, transparent 1px),
|
|
var(--paper);
|
|
background-size: 28px 28px;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea {
|
|
font: inherit;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app-shell {
|
|
width: min(1440px, 100%);
|
|
margin: 0 auto;
|
|
padding: 28px;
|
|
}
|
|
|
|
.workspace-header {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 340px;
|
|
gap: 24px;
|
|
align-items: end;
|
|
min-height: 160px;
|
|
}
|
|
|
|
.workspace-header h1 {
|
|
margin: 6px 0 10px;
|
|
font-size: clamp(2.2rem, 4vw, 4.8rem);
|
|
line-height: 0.96;
|
|
font-weight: 700;
|
|
color: var(--green);
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0;
|
|
color: var(--terracotta);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.lede {
|
|
max-width: 720px;
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 1.08rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.connection-card,
|
|
.panel {
|
|
background: color-mix(in srgb, var(--panel) 92%, white);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.connection-card {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 18px;
|
|
}
|
|
|
|
.connection-card span:last-child {
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.tab-bar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 3;
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 24px 0;
|
|
padding: 10px;
|
|
overflow-x: auto;
|
|
background: rgba(243, 239, 231, 0.88);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.tab-button {
|
|
flex: 0 0 auto;
|
|
padding: 10px 16px;
|
|
color: var(--green);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: var(--panel);
|
|
background: var(--green);
|
|
border-color: var(--green);
|
|
}
|
|
|
|
.workspace-main {
|
|
min-height: 620px;
|
|
}
|
|
|
|
.panel {
|
|
padding: 20px;
|
|
}
|
|
|
|
.panel-heading {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.panel-heading.horizontal {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: start;
|
|
gap: 16px;
|
|
}
|
|
|
|
.panel h2,
|
|
.panel h3 {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.panel h2 {
|
|
font-size: 1.28rem;
|
|
}
|
|
|
|
.panel h3 {
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
.project-layout {
|
|
display: grid;
|
|
grid-template-columns: 280px minmax(0, 1fr) 310px;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.project-list,
|
|
.detail-panel {
|
|
position: sticky;
|
|
top: 92px;
|
|
}
|
|
|
|
.project-item,
|
|
.draft-card,
|
|
.setting-row,
|
|
.graph-edge,
|
|
.agent-list-item {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.project-item {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.project-item.selected {
|
|
border-color: color-mix(in srgb, var(--green) 52%, var(--line));
|
|
box-shadow: inset 4px 0 0 var(--green);
|
|
}
|
|
|
|
.project-item strong,
|
|
.agent-list-item strong,
|
|
.draft-card strong,
|
|
.setting-row strong {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.project-item span,
|
|
.agent-list-item span,
|
|
.agent-list-item small,
|
|
.draft-card p,
|
|
.setting-row p,
|
|
.detail-block p,
|
|
.empty-state p,
|
|
.phase-list p,
|
|
.handoff-timeline p,
|
|
.graph-edge p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.58;
|
|
}
|
|
|
|
.project-item span,
|
|
.agent-list-item small {
|
|
word-break: break-all;
|
|
}
|
|
|
|
.project-item dl,
|
|
.detail-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.project-item dt,
|
|
.detail-grid span {
|
|
color: var(--muted);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.project-item dd,
|
|
.detail-grid strong {
|
|
margin: 0;
|
|
}
|
|
|
|
.matrix-panel {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.matrix-table {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.matrix-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr);
|
|
min-width: 920px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.matrix-row:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.matrix-row.head {
|
|
color: var(--muted);
|
|
background: var(--paper-strong);
|
|
font-size: 0.86rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.matrix-row > span {
|
|
min-width: 0;
|
|
padding: 14px;
|
|
border-left: 1px solid var(--line);
|
|
}
|
|
|
|
.matrix-row > span:first-child {
|
|
border-left: 0;
|
|
}
|
|
|
|
.matrix-row small {
|
|
display: block;
|
|
color: var(--muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
padding: 6px 8px;
|
|
color: var(--green);
|
|
background: var(--green-soft);
|
|
border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
|
|
border-radius: 999px;
|
|
font-size: 0.82rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.status-badge small {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
flex: 0 0 auto;
|
|
border-radius: 50%;
|
|
background: var(--green);
|
|
}
|
|
|
|
.status-badge[data-status="unknown"],
|
|
.status-badge[data-status="pending"] {
|
|
color: var(--blue);
|
|
background: #edf1f5;
|
|
border-color: #cbd6df;
|
|
}
|
|
|
|
.status-badge[data-status="unknown"] .status-dot,
|
|
.status-badge[data-status="pending"] .status-dot {
|
|
background: var(--blue);
|
|
}
|
|
|
|
.status-badge[data-status="idle"] {
|
|
color: var(--muted);
|
|
background: #efebe2;
|
|
}
|
|
|
|
.status-badge[data-status="complete"] {
|
|
color: var(--green);
|
|
background: var(--green-soft);
|
|
}
|
|
|
|
.status-badge[data-status="recent"],
|
|
.status-badge[data-status="running"] {
|
|
color: var(--terracotta);
|
|
background: var(--terracotta-soft);
|
|
border-color: #e0b69f;
|
|
}
|
|
|
|
.status-badge[data-status="recent"] .status-dot,
|
|
.status-badge[data-status="running"] .status-dot {
|
|
background: var(--terracotta);
|
|
}
|
|
|
|
.read-only-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 32px;
|
|
padding: 6px 10px;
|
|
color: var(--terracotta);
|
|
background: var(--terracotta-soft);
|
|
border: 1px solid #e7c2ad;
|
|
border-radius: 999px;
|
|
font-size: 0.84rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.detail-block {
|
|
padding: 14px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.detail-grid {
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
align-items: center;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.empty-state {
|
|
margin-top: 18px;
|
|
padding: 18px;
|
|
background: #f7f0e6;
|
|
border: 1px dashed #cdbfae;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.empty-state.compact {
|
|
padding: 14px;
|
|
}
|
|
|
|
.load-state {
|
|
display: grid;
|
|
min-height: 76px;
|
|
place-items: center;
|
|
color: var(--muted);
|
|
background: var(--panel-muted);
|
|
border: 1px dashed var(--line);
|
|
border-radius: 8px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.error-state {
|
|
border-color: #d8a08a;
|
|
background: #f8e7dd;
|
|
}
|
|
|
|
.sample-fallback {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.project-item[role="button"]:focus-visible,
|
|
.agent-list-item:focus-visible,
|
|
.tab-button:focus-visible {
|
|
outline: 3px solid color-mix(in srgb, var(--terracotta) 48%, transparent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.workflow-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.phase-panel,
|
|
.graph-panel {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.supervision-panel {
|
|
grid-column: 2;
|
|
grid-row: 1 / span 2;
|
|
position: sticky;
|
|
top: 92px;
|
|
}
|
|
|
|
.phase-list,
|
|
.handoff-timeline,
|
|
.writeback-steps,
|
|
.safety-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.phase-list li {
|
|
display: grid;
|
|
grid-template-columns: 18px minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: start;
|
|
padding: 14px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.phase-list li:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.phase-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-top: 5px;
|
|
border-radius: 50%;
|
|
background: var(--blue);
|
|
}
|
|
|
|
.phase-list li[data-status="complete"] .phase-dot {
|
|
background: var(--green);
|
|
}
|
|
|
|
.phase-list li[data-status="running"] .phase-dot {
|
|
background: var(--terracotta);
|
|
}
|
|
|
|
.phase-list span,
|
|
.handoff-timeline span,
|
|
.graph-edge small {
|
|
color: var(--muted);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.handoff-timeline li {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 22px minmax(0, 1fr);
|
|
gap: 12px;
|
|
padding-bottom: 18px;
|
|
}
|
|
|
|
.handoff-timeline li:not(:last-child)::before {
|
|
position: absolute;
|
|
left: 6px;
|
|
top: 16px;
|
|
bottom: 0;
|
|
width: 1px;
|
|
content: "";
|
|
background: var(--line);
|
|
}
|
|
|
|
.timeline-marker {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 13px;
|
|
height: 13px;
|
|
margin-top: 5px;
|
|
border-radius: 50%;
|
|
background: var(--panel);
|
|
border: 3px solid var(--terracotta);
|
|
}
|
|
|
|
.timeline-title {
|
|
color: var(--ink) !important;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.graph-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.graph-edge {
|
|
display: grid;
|
|
grid-template-columns: minmax(120px, 1fr) 52px minmax(120px, 1fr);
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 14px;
|
|
}
|
|
|
|
.graph-edge p,
|
|
.graph-edge small {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.graph-node {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 42px;
|
|
padding: 8px;
|
|
text-align: center;
|
|
color: var(--green);
|
|
background: var(--green-soft);
|
|
border: 1px solid #c8dbd2;
|
|
border-radius: 8px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.graph-node.child {
|
|
color: var(--terracotta);
|
|
background: var(--terracotta-soft);
|
|
border-color: #e5bda6;
|
|
}
|
|
|
|
.graph-link {
|
|
height: 2px;
|
|
background: linear-gradient(90deg, var(--green), var(--terracotta));
|
|
}
|
|
|
|
.agent-layout {
|
|
display: grid;
|
|
grid-template-columns: 330px minmax(0, 1fr);
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.agent-list {
|
|
position: sticky;
|
|
top: 92px;
|
|
}
|
|
|
|
.search-box {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.search-box span,
|
|
.form-grid span {
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.search-box input,
|
|
.form-grid input,
|
|
.form-grid textarea {
|
|
width: 100%;
|
|
padding: 11px 12px;
|
|
color: var(--ink);
|
|
background: var(--panel-muted);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.agent-list-item {
|
|
display: grid;
|
|
width: 100%;
|
|
gap: 4px;
|
|
margin-bottom: 10px;
|
|
padding: 14px;
|
|
text-align: left;
|
|
}
|
|
|
|
.agent-list-item.selected {
|
|
border-color: var(--green);
|
|
background: var(--green-soft);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.form-grid label {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.form-grid .wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-grid textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
.subtabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 18px 0 12px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.subtabs span {
|
|
flex: 0 0 auto;
|
|
padding: 8px 12px;
|
|
color: var(--muted);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.subtabs .active {
|
|
color: var(--panel);
|
|
background: var(--green);
|
|
border-color: var(--green);
|
|
}
|
|
|
|
.readonly-code {
|
|
overflow: auto;
|
|
padding: 16px;
|
|
color: #25322d;
|
|
background: #ebe4d8;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.readonly-code pre {
|
|
margin: 0;
|
|
font-family: "SFMono-Regular", Consolas, monospace;
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.drafts-layout,
|
|
.settings-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 340px;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.draft-list,
|
|
.settings-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.draft-card {
|
|
display: grid;
|
|
gap: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.draft-header {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.writeback-steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.writeback-steps li {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
color: var(--muted);
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.writeback-steps span {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: var(--line);
|
|
}
|
|
|
|
.writeback-steps li.active {
|
|
color: var(--terracotta);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.writeback-steps li.active span {
|
|
background: var(--terracotta);
|
|
}
|
|
|
|
.setting-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(150px, auto) 44px;
|
|
gap: 14px;
|
|
align-items: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.setting-row > span {
|
|
color: var(--green);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.setting-row i {
|
|
width: 42px;
|
|
height: 24px;
|
|
background: var(--green-soft);
|
|
border: 1px solid #c4d8d0;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.setting-row i::after {
|
|
display: block;
|
|
width: 18px;
|
|
height: 18px;
|
|
margin: 2px 0 0 19px;
|
|
content: "";
|
|
background: var(--green);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.setting-row i.off {
|
|
background: #ece7de;
|
|
border-color: var(--line);
|
|
}
|
|
|
|
.setting-row i.off::after {
|
|
margin-left: 2px;
|
|
background: var(--muted);
|
|
}
|
|
|
|
.safety-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.safety-list li {
|
|
padding-left: 14px;
|
|
border-left: 3px solid var(--terracotta);
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
@media (max-width: 1120px) {
|
|
.workspace-header,
|
|
.project-layout,
|
|
.workflow-layout,
|
|
.agent-layout,
|
|
.drafts-layout,
|
|
.settings-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.project-list,
|
|
.detail-panel,
|
|
.supervision-panel,
|
|
.agent-list {
|
|
position: static;
|
|
}
|
|
|
|
.phase-panel,
|
|
.graph-panel,
|
|
.supervision-panel {
|
|
grid-column: auto;
|
|
grid-row: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.app-shell {
|
|
padding: 16px;
|
|
}
|
|
|
|
.workspace-header {
|
|
min-height: 0;
|
|
}
|
|
|
|
.panel {
|
|
padding: 16px;
|
|
}
|
|
|
|
.panel-heading.horizontal,
|
|
.draft-header,
|
|
.setting-row,
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.graph-edge {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.graph-link {
|
|
width: 2px;
|
|
height: 28px;
|
|
justify-self: center;
|
|
}
|
|
|
|
.writeback-steps {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.status-badge {
|
|
border-radius: 8px;
|
|
}
|
|
}
|