Sonapse-LAB / synapse /web /style.css
Kai9987kai's picture
Add Tandem Max orchestrator (Sections 01-05), Dendritic LTC sub-graft, Oscillatory Coherence engine, new complex worlds, and restored 2D/3D visualizations
2bdc968
Raw History Blame Contribute Delete
19.3 kB
:root {
color-scheme: dark;
--bg: #0a111c;
--panel: #101d2b;
--panel-hover: #152536;
--line: #213449;
--muted: #8b9daf;
--text: #e6edf4;
--teal: #5de0c1;
--amber: #edbc75;
--rose: #ec7c8d;
--purple: #c084fc;
--blue: #80aaff;
}
.contract-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.contract-item { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; }
.contract-item small { color: var(--muted); }
.contract-item.ready { border-color: #31735f; }
.contract-item.ready span { color: var(--teal); }
#plan-preview { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.plan-actions { max-width: 720px; }
.plan-action { display: grid; grid-template-columns: 60px 1fr 145px; align-items: center; gap: 16px; margin: 10px 0; }
.plan-action b { font-variant-numeric: tabular-nums; font-size: 12px; text-align: right; }
.plan-meter { position: relative; height: 7px; background: linear-gradient(90deg, #384958 49.7%, var(--muted) 50%, #384958 50.3%); border-radius: 4px; }
.plan-meter i { position: absolute; top: -3px; width: 4px; height: 13px; background: var(--teal); transform: translateX(-50%); border-radius: 2px; }
.toolbar-select { display: inline; width: auto; padding: 4px 8px; margin: 0 4px; }
.legend-reset { color: var(--text); }
.teleop-label { font-size: 11px; color: var(--muted); }
.spaced-grid { margin-top: 16px; }
.thrust-tag { background: rgba(255,200,0,.15); color: #fc0; }
.cognition-tag { background: rgba(0,255,180,.15); color: #00ffb4; }
.vitals-container { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cognition-values { padding: 14px; }
.plan-candidates { overflow-x: auto; margin: 18px 0; }
.plan-candidates table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan-candidates th, .plan-candidates td { text-align: right; border-bottom: 1px solid var(--line); padding: 7px 12px; white-space: nowrap; }
.plan-candidates th:first-child, .plan-candidates td:first-child { text-align: left; }
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
overflow-x: hidden;
}
aside {
position: fixed;
inset: 0 auto 0 0;
width: 238px;
background: #0c1723;
border-right: 1px solid var(--line);
padding: 34px 24px;
z-index: 100;
}
.brand {
font-size: 28px;
font-weight: 700;
letter-spacing: 3px;
text-decoration: none;
color: var(--text);
display: block;
}
.brand span {
color: var(--teal);
}
.caption, .eyebrow {
font-size: 10px;
letter-spacing: 2px;
color: var(--muted);
text-transform: uppercase;
}
nav {
margin-top: 45px;
}
button, input, select, textarea {
font: inherit;
}
button {
background: #182a3c;
border: 1px solid #2c4259;
border-radius: 6px;
color: var(--text);
padding: 8px 14px;
cursor: pointer;
transition: all 0.15s ease-in-out;
}
button:hover {
border-color: var(--teal);
background: #1b3544;
}
button:active {
transform: translateY(1px);
}
button:disabled {
opacity: 0.5;
cursor: wait;
}
nav button {
width: 100%;
text-align: left;
border: 0;
background: none;
color: #71869b;
padding: 13px 8px;
margin: 4px 0;
font-size: 11px;
border-radius: 6px;
}
nav button span {
margin-left: 10px;
font-size: 13px;
}
nav button:hover {
background: rgba(93, 224, 193, 0.05);
color: var(--text);
}
nav button.active {
color: var(--teal);
background: rgba(93, 224, 193, 0.1);
font-weight: 600;
}
.sidebar-note {
position: absolute;
bottom: 30px;
font: 11px/1.8 Consolas, monospace;
color: var(--teal);
}
.sidebar-note small {
color: var(--muted);
font: 11px/1.7 "Segoe UI", sans-serif;
display: block;
margin-top: 4px;
}
.sidebar-note i {
display: inline-block;
width: 6px;
height: 6px;
background: var(--teal);
border-radius: 50%;
margin-right: 6px;
box-shadow: 0 0 8px var(--teal);
}
main {
margin-left: 238px;
padding: 34px 40px;
max-width: 1800px;
min-height: 100vh;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 28px;
}
h1 {
font-size: 28px;
font-weight: 500;
letter-spacing: -0.8px;
margin: 6px 0;
}
h2 {
font-size: 14px;
font-weight: 600;
margin: 0 0 14px;
color: var(--text);
}
h3 {
font-size: 14px;
}
#connection {
color: var(--teal);
font: 11px Consolas, monospace;
}
.toolbar {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.primary {
background: var(--teal);
border-color: var(--teal);
color: #09251f;
font-weight: 600;
}
.primary:hover {
background: #a0f5df;
border-color: #a0f5df;
}
.muted {
color: var(--muted);
font-size: 12px;
}
.tab {
display: none;
}
.tab.active {
display: block;
}
.metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.metric {
padding: 16px 20px;
border: 1px solid var(--line);
border-radius: 8px;
background: linear-gradient(125deg, #142435, #101a27);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.metric small {
color: var(--muted);
font-size: 10px;
letter-spacing: 1.5px;
text-transform: uppercase;
}
.metric strong {
display: block;
font: 26px/1.4 "Segoe UI", sans-serif;
color: #ffffff;
margin-top: 4px;
}
.visual-grid {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 20px;
}
article {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 9px;
padding: 20px;
margin-bottom: 20px;
min-width: 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.panel-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
margin-bottom: 12px;
}
.panel-head h2 {
margin: 0;
}
.tag {
color: var(--teal);
font: 10px Consolas, monospace;
letter-spacing: 1px;
}
.legend {
display: flex;
gap: 20px;
justify-content: center;
align-items: center;
color: var(--muted);
font: 11px Consolas, monospace;
margin-top: 10px;
flex-wrap: wrap;
}
.legend span {
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
transition: opacity 0.15s, background 0.15s;
}
.legend span:hover {
background: rgba(255,255,255,0.05);
}
.legend span:nth-child(1) { color: var(--teal); }
.legend span:nth-child(2) { color: var(--amber); }
.legend span:nth-child(3) { color: var(--purple); }
/* Pixel-perfect, zero-warping canvas specifications */
.canvas-wrap {
position: relative;
width: 100%;
display: block;
border-radius: 6px;
overflow: hidden;
}
canvas {
width: 100% !important;
display: block;
background: #08111a;
border-radius: 6px;
border: 1px solid #1c2c3d;
box-sizing: border-box;
image-rendering: -webkit-optimize-contrast;
touch-action: none;
cursor: default;
}
#graph, #world {
height: 350px !important;
}
#signals, #gauges, #predictive {
height: 185px !important;
}
/* View toggle pills */
.view-toggle {
display: inline-flex;
gap: 3px;
background: #0b1723;
padding: 3px;
border-radius: 6px;
border: 1px solid var(--line);
}
.view-toggle button {
background: transparent;
border: none;
color: var(--muted);
font-size: 10px;
padding: 4px 10px;
border-radius: 4px;
cursor: pointer;
line-height: 1.2;
}
.view-toggle button:hover {
color: var(--text);
background: rgba(255,255,255,0.04);
}
.view-toggle button.active {
background: var(--teal);
color: #09251f;
font-weight: 700;
}
/* Canvas tooltip */
.canvas-tooltip {
position: absolute;
pointer-events: none;
background: rgba(10, 20, 32, 0.96);
border: 1px solid var(--teal);
box-shadow: 0 4px 16px rgba(0,0,0,0.6);
color: var(--text);
padding: 6px 10px;
font: 11px/1.4 Consolas, monospace;
border-radius: 5px;
display: none;
z-index: 100;
white-space: nowrap;
}
/* Teleoperation control bar */
.teleop-bar {
display: flex;
gap: 8px;
align-items: center;
background: #0c1724;
padding: 8px 14px;
border-radius: 6px;
border: 1px solid #1b2c3e;
margin-top: 10px;
flex-wrap: wrap;
}
.teleop-bar button {
padding: 5px 12px;
font-size: 11px;
}
.teleop-kbd {
font-size: 11px;
color: var(--muted);
font-family: Consolas, monospace;
margin-left: auto;
}
.keyvalues {
max-height: 185px;
overflow-y: auto;
padding-right: 6px;
}
.kv {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px solid var(--line);
font: 11px Consolas, monospace;
}
.kv span {
color: var(--muted);
}
.kv b {
color: #c9d8e7;
}
form {
display: flex;
gap: 12px;
align-items: flex-end;
flex-wrap: wrap;
}
label {
display: block;
font-size: 11px;
color: var(--muted);
}
input, select, textarea {
display: block;
background: #0b1622;
color: var(--text);
border: 1px solid #2c4259;
border-radius: 5px;
padding: 8px 10px;
margin: 6px 0 10px;
max-width: 100%;
}
input[type=checkbox] {
display: inline;
margin: 0 6px 0 0;
vertical-align: middle;
}
form input {
width: 110px;
}
form button {
margin-bottom: 10px;
}
textarea {
width: 100%;
min-height: 140px;
font: 11px/1.6 Consolas, monospace;
resize: vertical;
}
textarea.tall {
min-height: 320px;
}
pre {
background: #0a1520;
padding: 14px;
white-space: pre-wrap;
overflow-wrap: anywhere;
max-height: 420px;
overflow: auto;
font: 11px/1.6 Consolas, monospace;
color: #a9c4d9;
border-radius: 5px;
border: 1px solid #162637;
}
details {
margin: 16px 0;
color: var(--muted);
font-size: 12px;
}
details summary {
cursor: pointer;
color: var(--teal);
padding: 6px 0;
}
.explorer {
display: grid;
grid-template-columns: 320px minmax(0, 1fr);
gap: 25px;
}
#search {
width: 100%;
}
.cap-item {
display: block;
width: 100%;
text-align: left;
margin: 6px 0;
font-size: 12px;
background: #0f1d2c;
border-color: #1f3448;
}
.cap-item:hover {
background: #14283b;
border-color: var(--teal);
}
.cap-item small {
display: block;
color: var(--muted);
font-size: 10px;
}
#catalog {
max-height: 680px;
overflow-y: auto;
padding-right: 6px;
}
.job {
border-bottom: 1px solid var(--line);
padding: 12px 0;
}
.job b {
color: var(--teal);
}
.job button {
float: right;
font-size: 10px;
padding: 4px 8px;
}
.lineage {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.lineage-node {
border: 1px solid #375c62;
padding: 12px;
border-radius: 6px;
font: 11px Consolas, monospace;
background: #0e1e28;
}
.lineage-node span {
display: block;
color: var(--amber);
margin-top: 4px;
}
#error {
padding: 14px 18px;
margin-bottom: 18px;
border: 1px solid #8d483f;
background: #351e24;
color: #ffc2ab;
border-radius: 6px;
font-size: 13px;
}
footer {
border-top: 1px solid var(--line);
padding-top: 20px;
margin-top: 40px;
color: var(--teal);
font: 11px Consolas, monospace;
display: flex;
justify-content: space-between;
}
footer span {
color: var(--muted);
}
#checkpointlist button {
margin: 4px;
}
@media (max-width: 1100px) {
aside {
width: 185px;
padding: 25px 16px;
}
.brand {
font-size: 22px;
}
main {
margin-left: 185px;
padding: 25px;
}
.visual-grid {
grid-template-columns: 1fr;
}
.metrics {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 700px) {
aside {
position: static;
width: auto;
padding: 15px;
}
nav {
margin: 10px 0;
display: flex;
overflow-x: auto;
}
nav button {
white-space: nowrap;
padding: 8px 12px;
}
.sidebar-note, .caption {
display: none;
}
main {
margin: 0;
padding: 15px;
}
.explorer {
grid-template-columns: 1fr;
}
header {
align-items: flex-start;
flex-direction: column;
gap: 10px;
}
footer {
flex-direction: column;
gap: 8px;
}
}
/* Homeostatic Vitals HUD */
.vital-row {
display: flex;
flex-direction: column;
gap: 4px;
}
.vital-label {
display: flex;
justify-content: space-between;
font-size: 11px;
font-family: Consolas, monospace;
color: var(--muted);
}
.vital-label span:last-child {
font-weight: 600;
color: var(--text);
}
.vital-track {
width: 100%;
height: 8px;
background: #0d1822;
border-radius: 4px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.06);
}
.vital-fill {
height: 100%;
border-radius: 4px;
transition: width 0.15s ease-out;
}
/* Executing training state and its evidence receipt. */
.training-panel { border-color: #325b60; background: linear-gradient(115deg, #122933, #101d2b 58%); }
.training-panel p { margin: 8px 0 14px; }
.training-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 24px; }
.training-controls { gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.training-controls select { margin-bottom: 0; }
.training-controls button { align-self: flex-end; }
.toggle-label { align-self: center; white-space: nowrap; }
.status-pill { border: 1px solid #3b5666; border-radius: 18px; padding: 5px 10px; font: 10px Consolas, monospace; white-space: nowrap; }
.training-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px 20px; }
.training-metrics .kv { flex-direction: column; gap: 4px; padding-bottom: 9px; }
.training-metrics .kv b { color: #d8eee9; font-size: 13px; }
.training-evidence { border-left: 1px solid #2d454f; padding-left: 24px; }
.training-evidence h3 { margin: 0; font-size: 12px; }
.training-evidence button { padding: 4px 8px; font-size: 10px; }
.training-evidence pre { max-height: 220px; }
.training-evidence progress { width: 100%; height: 7px; }
progress { accent-color: var(--teal); }
.source-evidence { margin-bottom: 0; }
.source-inventory { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.source-record { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #0c1925; }
.source-record b { color: #c4e4dc; font-size: 12px; }
.source-record span, .source-record small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.omnibus-button { background: #2d1b4e; border-color: #9d4edd; color: #e0aaff; font-weight: 600; }
.omnibus-tag { background: #2d1b4e; color: #c77dff; }
.screen-button { border-color: #ad8550; color: #f1ca92; }
.tone-good { color: #5de0c1; }
.tone-warn { color: #edbc75; }
.tone-bad { color: #ec7c8d; }
.tone-muted { color: #8b9daf; }
.tone-ponder { color: #ff91dc; background: #472443; }
.tone-purple { color: #c77dff; }
/* Controls stay outside canvas geometry; all positions use the CSS content box. */
.graph-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 14px; }
.graph-controls label { font-size: 10px; }
.graph-controls select { font-size: 11px; padding: 5px 7px; margin: 3px 0 0; }
.graph-controls button { font-size: 10px; padding: 5px 8px; }
.graph-controls .toggle-label { padding-top: 12px; }
.source-legend { justify-content: flex-start; gap: 6px 12px; }
.source-legend button { background: transparent; border: 0; padding: 2px 0; font: 10px Consolas, monospace; }
.source-color-0 { color: #5de0c1; }
.source-color-1 { color: #edbc75; }
.source-color-2 { color: #c084fc; }
.source-color-3 { color: #80aaff; }
.source-color-4 { color: #ec7c8d; }
.source-color-5 { color: #85d38e; }
.source-color-6 { color: #f2a6cf; }
.source-color-7 { color: #62cee3; }
.canvas-caption { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 10px 0 0; }
.node-inspector { min-height: 40px; padding: 9px 10px; background: #0c1824; border-radius: 5px; color: #a9c4d9; font: 10px/1.6 Consolas, monospace; margin-bottom: 0; }
.canvas-tooltip { top: 34px; left: 10px; max-width: calc(100% - 20px); white-space: normal; }
.canvas-tooltip.visible { display: block; }
.world-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.world-controls button { font-size: 10px; padding: 4px 8px; margin-left: auto; }
.world-legend { display: flex; gap: 7px 14px; flex-wrap: wrap; margin-top: 12px; }
.world-key { font: 10px Consolas, monospace; color: #aabacc; }
.world-key::before { content: '●'; margin-right: 5px; }
.key-agent::before, .key-trail::before { color: #5de0c1; }
.key-target::before, .key-goal::before { color: #80aaff; }
.key-food::before { color: #edbc75; }
.key-hazard::before { color: #ec7c8d; }
.key-button::before, .key-sentinel::before { color: #ffaa00; }
.key-tripwire::before { color: #ff00aa; }
.key-gate::before { color: #c084fc; }
.key-terrain::before, .key-object::before { color: #a6bfd3; }
.plan-meter { height: 10px; background: transparent; }
.plan-meter meter { width: 100%; height: 14px; }
.vital-track { appearance: none; width: 100%; height: 8px; }
.vital-track::-webkit-progress-bar { background: #0d1822; border-radius: 4px; }
.vital-track::-webkit-progress-value { background: #5de0c1; border-radius: 4px; transition: width .15s ease-out; }
.vital-stamina::-webkit-progress-value { background: #edbc75; }
.vital-health::-webkit-progress-value { background: #4ae582; }
.vital-threat::-webkit-progress-value { background: #ec7c8d; }
.vital-hunger::-webkit-progress-value { background: #bc85e6; }
.vital-track::-moz-progress-bar { background: #5de0c1; border-radius: 4px; }
.vital-stamina::-moz-progress-bar { background: #edbc75; }
.vital-health::-moz-progress-bar { background: #4ae582; }
.vital-threat::-moz-progress-bar { background: #ec7c8d; }
.vital-hunger::-moz-progress-bar { background: #bc85e6; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 1250px) { .training-layout { grid-template-columns: 1fr; gap: 18px; } .training-evidence { border-left: 0; border-top: 1px solid #2d454f; padding: 16px 0 0; } }
@media (max-width: 700px) { .panel-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; } .training-controls { align-items: center; } .training-controls .toggle-label { white-space: normal; } .graph-controls { gap: 8px; } .graph-controls .toggle-label { padding: 0; } .status-pill { font-size: 9px; } }
/* Tandem Max Mode (Sections 01–05) & Restored Controls */
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tandem-max-button {
background: linear-gradient(135deg, #0d3b38 0%, #2d1b4e 100%);
border: 1px solid #5de0c1;
color: #5de0c1;
font-weight: 700;
padding: 8px 14px;
border-radius: 6px;
box-shadow: 0 0 14px rgba(93, 224, 193, 0.22);
cursor: pointer;
}
.tandem-max-button:hover {
background: linear-gradient(135deg, #13534e 0%, #3d2469 100%);
border-color: #e0aaff;
color: #ffffff;
}
.tandem-banner {
border-color: #5de0c1;
background: linear-gradient(120deg, rgba(18, 41, 51, 0.96), rgba(35, 22, 58, 0.92));
margin-bottom: 18px;
}
.tandem-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 10px 0;
}
#filter-reset {
background: rgba(93, 224, 193, 0.12);
border: 1px solid rgba(93, 224, 193, 0.38);
border-radius: 4px;
padding: 2px 7px;
color: #5de0c1;
cursor: pointer;
}