* { 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; } /* Top bar */ #top-bar { display: flex; align-items: center; gap: 1rem; padding: 0.4rem 1rem; background: #111; border-bottom: 1px solid #222; } #top-bar h1 { font-size: 0.85rem; font-weight: 600; color: #888; } #status { font-size: 0.75rem; color: #666; } /* Node metrics bar */ #node-metrics { display: flex; gap: 1px; padding: 0; background: #111; border-bottom: 1px solid #222; } .node-meter { flex: 1; display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; background: #0a0a0a; } .nm-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; min-width: 4.5rem; } #meter-input .nm-label { color: #f59e0b; } #meter-output .nm-label { color: #34d399; } #meter-memorizer .nm-label { color: #c084fc; } #meter-thinker .nm-label { color: #fb923c; } #meter-ui .nm-label { color: #34d399; } #meter-sensor .nm-label { color: #60a5fa; } .nm-bar { flex: 1; height: 6px; background: #1a1a1a; border-radius: 3px; overflow: hidden; } .nm-fill { height: 100%; width: 0%; border-radius: 3px; transition: width 0.3s, background-color 0.3s; background: #333; } .nm-text { font-size: 0.6rem; color: #555; min-width: 5rem; text-align: right; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Three-column layout: chat | awareness | trace */ #main { flex: 1; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1px; background: #222; overflow: hidden; min-height: 0; } .panel { background: #0a0a0a; display: flex; flex-direction: column; overflow: hidden; } .panel-header { padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #222; flex-shrink: 0; } .panel-header.chat-h { color: #60a5fa; background: #0a1628; } .panel-header.trace-h { color: #a78bfa; background: #120a1e; } /* 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.9rem; } .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 h2, .msg.assistant h3, .msg.assistant h4 { margin: 0.3rem 0 0.2rem; color: #e0e0e0; } .msg.assistant h2 { font-size: 1rem; } .msg.assistant h3 { font-size: 0.95rem; } .msg.assistant h4 { font-size: 0.9rem; } .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; } .msg.assistant li { margin: 0.1rem 0; } /* Input bar */ #input-bar { display: flex; gap: 0.5rem; padding: 0.75rem; background: #111; border-top: 1px solid #222; } #input { flex: 1; padding: 0.5rem 0.75rem; background: #1a1a1a; color: #e0e0e0; border: 1px solid #333; border-radius: 0.4rem; font-size: 0.9rem; outline: none; } #input:focus { border-color: #2563eb; } button { padding: 0.5rem 1rem; background: #2563eb; color: white; border: none; border-radius: 0.4rem; cursor: pointer; font-size: 0.9rem; } button:hover { background: #1d4ed8; } /* Trace panel */ #trace { flex: 1; overflow-y: auto; padding: 0.5rem; font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace; font-size: 0.72rem; line-height: 1.5; } .trace-line { padding: 0.15rem 0.4rem; border-bottom: 1px solid #111; display: flex; gap: 0.5rem; align-items: baseline; } .trace-line:hover { background: #1a1a2e; } .trace-ts { color: #555; flex-shrink: 0; min-width: 5rem; } .trace-node { font-weight: 700; flex-shrink: 0; min-width: 6rem; } .trace-node.input { color: #f59e0b; } .trace-node.output { color: #34d399; } .trace-node.memorizer { color: #c084fc; } .trace-node.thinker { color: #fb923c; } .trace-node.runtime { color: #60a5fa; } .trace-node.process { color: #f97316; } .trace-node.ui { color: #34d399; } .trace-node.sensor { color: #60a5fa; } .trace-event { color: #888; flex-shrink: 0; min-width: 6rem; } .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; } /* UI Controls */ .controls-container { padding: 0.4rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; } .control-btn { padding: 0.35rem 0.75rem; background: #1e3a5f; color: #60a5fa; border: 1px solid #2563eb; border-radius: 0.3rem; cursor: pointer; font-size: 0.8rem; } .control-btn:hover { background: #2563eb; color: white; } .control-label { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0.5rem; background: #1a1a2e; border-radius: 0.3rem; font-size: 0.8rem; } .cl-text { color: #888; } .cl-value { color: #e0e0e0; font-weight: 600; font-family: monospace; } .control-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; background: #111; border-radius: 0.3rem; overflow: hidden; } .control-table th { background: #1a1a2e; color: #a78bfa; padding: 0.3rem 0.5rem; text-align: left; font-weight: 600; border-bottom: 1px solid #333; } .control-table td { padding: 0.25rem 0.5rem; border-bottom: 1px solid #1a1a1a; color: #ccc; } .control-table tr:hover td { background: #1a1a2e; } .process-card { background: #111; border: 1px solid #333; border-radius: 0.3rem; padding: 0.4rem 0.6rem; font-size: 0.75rem; width: 100%; } .process-card.running { border-color: #f59e0b; } .process-card.done { border-color: #22c55e; } .process-card.failed { border-color: #ef4444; } .pc-tool { font-weight: 700; color: #fb923c; margin-right: 0.5rem; } .pc-status { color: #888; margin-right: 0.5rem; } .pc-stop { padding: 0.15rem 0.4rem; background: #ef4444; color: white; border: none; border-radius: 0.2rem; cursor: pointer; font-size: 0.7rem; } .pc-code { margin-top: 0.3rem; color: #666; white-space: pre-wrap; max-height: 4rem; overflow-y: auto; font-size: 0.7rem; } .pc-output { margin-top: 0.3rem; color: #888; white-space: pre-wrap; max-height: 8rem; overflow-y: auto; } /* Awareness panel */ .panel-header.aware-h { color: #34d399; background: #0a1e14; } .awareness-panel { display: flex; flex-direction: column; } #awareness { flex: 1; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; } .aw-section { background: #111; border: 1px solid #1a1a1a; border-radius: 0.4rem; overflow: hidden; } .aw-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3rem 0.5rem; background: #0d0d14; color: #666; border-bottom: 1px solid #1a1a1a; } .aw-body { padding: 0.4rem 0.5rem; font-size: 0.78rem; line-height: 1.5; } .aw-empty { color: #444; font-style: italic; font-size: 0.72rem; } /* State card */ .aw-row { display: flex; justify-content: space-between; padding: 0.1rem 0; } .aw-key { color: #888; font-size: 0.7rem; } .aw-val { color: #e0e0e0; font-size: 0.75rem; font-weight: 500; } .aw-val.mood-happy { color: #22c55e; } .aw-val.mood-frustrated { color: #ef4444; } .aw-val.mood-playful { color: #f59e0b; } .aw-val.mood-neutral { color: #888; } /* Facts list */ .aw-facts { list-style: none; padding: 0; margin: 0.2rem 0 0 0; } .aw-facts li { font-size: 0.7rem; color: #999; padding: 0.1rem 0; border-top: 1px solid #1a1a1a; } .aw-facts li::before { content: "- "; color: #555; } /* Sensor readings */ .aw-sensor { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; } .aw-sensor-name { color: #60a5fa; font-size: 0.7rem; font-weight: 600; min-width: 4rem; } .aw-sensor-val { color: #e0e0e0; font-size: 0.75rem; } .aw-sensor-age { color: #444; font-size: 0.65rem; } /* Awareness processes */ .aw-proc { background: #0d0d14; border: 1px solid #333; border-radius: 0.3rem; padding: 0.3rem 0.5rem; margin-bottom: 0.3rem; } .aw-proc.running { border-color: #f59e0b; } .aw-proc.done { border-color: #22c55e; } .aw-proc.failed { border-color: #ef4444; } .aw-proc-header { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; } .aw-proc-tool { font-weight: 700; color: #fb923c; } .aw-proc-status { color: #888; } .aw-proc-stop { padding: 0.1rem 0.3rem; background: #ef4444; color: white; border: none; border-radius: 0.2rem; cursor: pointer; font-size: 0.65rem; } .aw-proc-code { font-size: 0.65rem; color: #555; margin-top: 0.2rem; white-space: pre-wrap; max-height: 3rem; overflow: hidden; } .aw-proc-output { font-size: 0.7rem; color: #999; margin-top: 0.2rem; white-space: pre-wrap; max-height: 5rem; overflow-y: auto; } /* Awareness controls (workspace) */ #aw-ctrl-body .controls-container { padding: 0; } #aw-ctrl-body .control-table { font-size: 0.72rem; } /* Expandable trace detail */ .trace-line.expandable { cursor: pointer; } .trace-detail { display: none; padding: 0.3rem 0.4rem 0.3rem 12rem; font-size: 0.65rem; color: #777; white-space: pre-wrap; word-break: break-all; max-height: 10rem; overflow-y: auto; background: #0d0d14; border-bottom: 1px solid #1a1a2e; } .trace-detail.open { display: block; }