* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, sans-serif; background: #0a0a0a; color: #e0e0e0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; } /* Top bar */ #top-bar { display: flex; align-items: center; gap: 1rem; padding: 0.4rem 1rem; background: #111; border-bottom: 1px solid #222; flex-shrink: 0; } #top-bar h1 { font-size: 0.85rem; font-weight: 600; color: #888; } #status { font-size: 0.75rem; color: #666; } #test-status { font-size: 0.7rem; font-family: monospace; display: flex; gap: 1rem; align-items: center; } #test-status .ts-running { color: #f59e0b; animation: pulse-text 1s infinite; } #test-status .ts-pass { color: #22c55e; } #test-status .ts-fail { color: #ef4444; } @keyframes pulse-text { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } } .btn-top { padding: 0.2rem 0.6rem; font-size: 0.7rem; background: #333; } .btn-top:hover { background: #ef4444; } #graph-switcher { display: flex; gap: 3px; } .btn-graph { padding: 0.2rem 0.5rem; font-size: 0.65rem; font-family: monospace; background: #1a1a1a; color: #888; border: 1px solid #333; border-radius: 3px; cursor: pointer; } .btn-graph:hover { color: #fff; border-color: #2563eb; } .btn-graph.active { color: #22c55e; border-color: #22c55e; background: #0a1e14; } /* === Two-row layout === */ /* Middle row: workspace | node detail | graph */ #middle-row { display: grid; grid-template-columns: 1fr 300px 2fr; gap: 1px; background: #222; flex: 1; min-height: 0; } /* Bottom row: chat | awareness | trace */ #bottom-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1px; background: #222; flex: 1; min-height: 0; } /* Panels */ .panel { background: #0a0a0a; display: flex; flex-direction: column; overflow: hidden; } .panel-header { padding: 0.4rem 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #222; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; } .panel-header.chat-h { color: #60a5fa; background: #0a1628; } .panel-header.trace-h { color: #a78bfa; background: #120a1e; } .panel-header.aware-h { color: #34d399; background: #0a1e14; } .panel-header.work-h { color: #f59e0b; background: #1a1408; } .panel-header.detail-h { color: #fb923c; background: #1a1008; } .panel-header.graph-h { color: #888; background: #111; } .graph-btns { display: flex; gap: 3px; } .graph-btns button { padding: 1px 5px; font-size: 0.55rem; font-family: monospace; background: #1a1a1a; color: #666; border: 1px solid #333; border-radius: 3px; cursor: pointer; } .graph-btns button:hover { color: #ccc; border-color: #555; } /* Workspace panel */ .workspace-panel { display: flex; flex-direction: column; } #workspace-body { flex: 1; overflow-y: auto; padding: 0.5rem; } /* Node detail / metrics */ .detail-panel { display: flex; flex-direction: column; } #node-metrics { flex: 1; overflow-y: auto; padding: 0.3rem; display: flex; flex-direction: column; gap: 2px; } .node-card { background: #111; border-radius: 3px; padding: 0.25rem 0.4rem; border-left: 2px solid #333; } .node-card.nm-active { border-left-color: #f59e0b; background: #1a1408; } .node-card.nm-streaming { border-left-color: #22c55e; background: #0a1e14; } .nc-header { display: flex; align-items: center; gap: 0.3rem; } .nc-name { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #e0e0e0; min-width: 3rem; } .nc-model { font-size: 0.55rem; color: #666; font-family: monospace; } .nc-tokens { font-size: 0.55rem; color: #555; font-family: monospace; margin-left: auto; } .nc-bar { height: 3px; background: #1a1a1a; border-radius: 2px; overflow: hidden; margin: 2px 0; } .nc-fill { height: 100%; border-radius: 2px; background: #333; transition: width 0.3s; } .nc-status { display: flex; gap: 0.3rem; align-items: baseline; } .nc-event { font-size: 0.55rem; color: #888; font-family: monospace; } .nc-detail { font-size: 0.55rem; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Graph panel */ .graph-panel { display: flex; flex-direction: column; } #pipeline-graph { flex: 1; background: #0d0d0d; min-height: 100px; } /* Overlay scrollbars */ #messages, #awareness, #trace, #workspace-body, #node-metrics { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; } #messages::-webkit-scrollbar, #trace::-webkit-scrollbar, #workspace-body::-webkit-scrollbar { width: 5px; } #messages::-webkit-scrollbar-track, #trace::-webkit-scrollbar-track { background: transparent; } #messages::-webkit-scrollbar-thumb, #trace::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; } /* Chat panel */ .chat-panel { display: flex; flex-direction: column; } #messages { flex: 1; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; } .msg { max-width: 90%; padding: 0.5rem 0.75rem; border-radius: 0.6rem; line-height: 1.4; white-space: pre-wrap; font-size: 0.85rem; } .msg.user { align-self: flex-end; background: #2563eb; color: white; } .msg.assistant { align-self: flex-start; background: #1e1e1e; border: 1px solid #333; } .msg.assistant.streaming { border-color: #2563eb; } .msg.assistant strong { color: #fff; } .msg.assistant code { background: #2a2a3a; padding: 0.1rem 0.3rem; border-radius: 0.2rem; font-size: 0.85em; } .msg.assistant pre { background: #1a1a2a; padding: 0.5rem; border-radius: 0.3rem; margin: 0.3rem 0; overflow-x: auto; } .msg.assistant pre code { background: none; padding: 0; } .msg.assistant ul { margin: 0.2rem 0; padding-left: 1.2rem; } /* Input bar */ #input-bar { display: flex; gap: 0.5rem; padding: 0.5rem; background: #111; border-top: 1px solid #222; } #input { flex: 1; padding: 0.4rem 0.6rem; background: #1a1a1a; color: #e0e0e0; border: 1px solid #333; border-radius: 0.4rem; font-size: 0.85rem; outline: none; } #input:focus { border-color: #2563eb; } button { padding: 0.4rem 0.8rem; background: #2563eb; color: white; border: none; border-radius: 0.4rem; cursor: pointer; font-size: 0.8rem; } button:hover { background: #1d4ed8; } .btn-clear { background: #333; padding: 0.4rem 0.5rem; font-size: 0.75rem; } .btn-clear:hover { background: #ef4444; } /* Trace panel */ .trace-panel { display: flex; flex-direction: column; } #trace { flex: 1; overflow-y: auto; padding: 0.4rem; font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-size: 0.68rem; line-height: 1.5; } .trace-line { padding: 0.12rem 0.3rem; border-bottom: 1px solid #111; display: flex; gap: 0.4rem; align-items: baseline; } .trace-line:hover { background: #1a1a2e; } .trace-ts { color: #555; flex-shrink: 0; min-width: 4.5rem; } .trace-node { font-weight: 700; flex-shrink: 0; min-width: 5.5rem; } .trace-node.input { color: #f59e0b; } .trace-node.output { color: #34d399; } .trace-node.memorizer { color: #c084fc; } .trace-node.thinker, .trace-node.thinker_v2 { color: #fb923c; } .trace-node.director_v2, .trace-node.pa_v1, .trace-node.pa { color: #a855f7; } .trace-node.eras_expert, .trace-node.expert_eras { color: #f97316; } .trace-node.runtime, .trace-node.frame_engine { color: #60a5fa; } .trace-node.ui { color: #34d399; } .trace-node.sensor { color: #60a5fa; } .trace-event { color: #888; flex-shrink: 0; min-width: 5.5rem; } .trace-data { color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .trace-data.instruction { color: #22c55e; } .trace-data.error { color: #ef4444; } .trace-data.state { color: #c084fc; } .trace-data.context { color: #666; } .trace-line.expandable { cursor: pointer; } .trace-detail { display: none; padding: 0.2rem 0.3rem 0.2rem 10rem; font-size: 0.6rem; color: #777; white-space: pre-wrap; word-break: break-all; max-height: 8rem; overflow-y: auto; background: #0d0d14; border-bottom: 1px solid #1a1a2e; } .trace-detail.open { display: block; } /* Awareness panel */ .awareness-panel { display: flex; flex-direction: column; } #awareness { flex: 1; overflow-y: auto; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.4rem; } .aw-section { background: #111; border: 1px solid #1a1a1a; border-radius: 0.3rem; overflow: hidden; } .aw-title { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 0.25rem 0.4rem; background: #0d0d14; color: #666; border-bottom: 1px solid #1a1a1a; } .aw-body { padding: 0.3rem 0.4rem; font-size: 0.72rem; line-height: 1.5; } .aw-empty { color: #444; font-style: italic; font-size: 0.68rem; } .aw-row { display: flex; justify-content: space-between; padding: 0.08rem 0; } .aw-key { color: #888; font-size: 0.65rem; } .aw-val { color: #e0e0e0; font-size: 0.7rem; font-weight: 500; } /* UI Controls (workspace) */ .controls-container { padding: 0.3rem 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: flex-start; } .control-btn { padding: 0.3rem 0.6rem; background: #1e3a5f; color: #60a5fa; border: 1px solid #2563eb; border-radius: 0.3rem; cursor: pointer; font-size: 0.75rem; } .control-btn:hover { background: #2563eb; color: white; } .control-label { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0.4rem; background: #1a1a2e; border-radius: 0.3rem; font-size: 0.75rem; width: 100%; } .cl-text { color: #888; } .cl-value { color: #e0e0e0; font-weight: 600; font-family: monospace; } .control-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; background: #111; border-radius: 0.3rem; overflow: hidden; } .control-table th { background: #1a1a2e; color: #a78bfa; padding: 0.25rem 0.4rem; text-align: left; font-weight: 600; border-bottom: 1px solid #333; } .control-table td { padding: 0.2rem 0.4rem; border-bottom: 1px solid #1a1a1a; color: #ccc; } .control-table tr:hover td { background: #1a1a2e; } .control-display { padding: 0.25rem 0.4rem; font-size: 0.75rem; } .cd-label { color: #888; } .cd-value { color: #e0e0e0; margin-left: 0.5rem; } /* Login overlay */ #login-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; } .login-card { background: #1a1a1a; padding: 2rem; border-radius: 0.6rem; text-align: center; } .login-card h2 { color: #60a5fa; margin-bottom: 1rem; } .login-card p { color: #888; margin-bottom: 1.5rem; }