blessingmwiti's picture
Polish Space card and split-brain UI
9f9873b
:root {
--bg: #090d12;
--surface: #151922;
--surface-2: #101721;
--surface-3: #1b2430;
--border: #323b48;
--accent: #62a8ff;
--accent-2: #48d597;
--accent-warn: #e8a04f;
--text: #e6edf3;
--text-muted: #9aa6b2;
--green: #48d597;
--red: #ff6565;
--shadow: rgba(0, 0, 0, 0.34);
}
body,
.gradio-container {
background: var(--bg) !important;
color: var(--text) !important;
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
footer {
display: none !important;
}
.bridge-hidden {
display: none !important;
}
.app-header {
margin: 0 auto 22px;
max-width: 1060px;
padding: 8px 12px 0;
text-align: center;
}
.app-header h1 {
margin: 4px 0 8px;
color: var(--text);
font-size: clamp(32px, 6vw, 56px);
letter-spacing: 0;
line-height: 1.02;
}
.app-header p {
margin: 0 auto;
max-width: 820px;
color: var(--text-muted);
line-height: 1.55;
}
.app-header .eyebrow {
color: var(--accent-2);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
}
.badge-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
margin-top: 16px;
}
.badge-row span {
border: 1px solid var(--border);
border-radius: 999px;
background: rgba(255, 255, 255, 0.035);
color: var(--text);
font-size: 12px;
padding: 7px 10px;
}
.space-init {
margin: 0 auto 12px;
max-width: 980px;
color: var(--text-muted);
text-align: center;
}
#split-brain-root {
color: var(--text);
}
.brain-rail,
.status-bar {
display: flex;
gap: 12px;
justify-content: space-between;
}
.brain-rail {
align-items: stretch;
margin-bottom: 14px;
}
.brain-node {
flex: 1 1 0;
min-width: 0;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
box-shadow: 0 14px 34px var(--shadow);
padding: 12px;
}
.brain-node strong,
.brain-node small,
.brain-label {
display: block;
}
.brain-node strong {
margin: 4px 0;
color: var(--text);
font-size: 15px;
}
.brain-node small,
.brain-label {
color: var(--text-muted);
font-size: 11px;
}
.brain-label {
font-weight: 700;
text-transform: uppercase;
}
.local-node {
border-left: 3px solid var(--accent);
}
.cloud-node {
border-left: 3px solid var(--accent-2);
}
.brain-pulse {
display: grid;
flex: 0 0 72px;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
place-items: center;
}
.brain-pulse span {
width: 9px;
height: 9px;
border-radius: 999px;
background: var(--accent-warn);
box-shadow: 0 0 18px rgba(232, 160, 79, 0.48);
opacity: 0.82;
}
.brain-pulse span:nth-child(2) {
background: var(--accent);
box-shadow: 0 0 18px rgba(98, 168, 255, 0.5);
}
.brain-pulse span:nth-child(3) {
background: var(--accent-2);
box-shadow: 0 0 18px rgba(72, 213, 151, 0.5);
}
.webgpu-notice {
margin-bottom: 12px;
border: 1px solid var(--red);
border-radius: 6px;
padding: 10px 12px;
color: var(--red);
}
.load-section {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px 12px;
align-items: center;
margin-bottom: 14px;
}
.load-section.loaded {
opacity: 0.72;
}
.local-button {
border: 1px solid var(--accent);
border-radius: 6px;
background: var(--accent);
color: #07111f;
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 10px 14px;
}
.local-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.loading-bar {
height: 8px;
overflow: hidden;
border-radius: 999px;
background: var(--border);
}
.loading-bar-fill {
width: 0%;
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--accent-2));
transition: width 0.3s ease;
}
.load-status {
grid-column: 1 / -1;
color: var(--text-muted);
font-size: 12px;
}
.stream-shell {
overflow: hidden;
border: 1px solid var(--border);
border-radius: 8px 8px 0 0;
background: var(--surface);
box-shadow: 0 16px 38px var(--shadow);
}
.stream-toolbar {
display: flex;
gap: 12px;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
background: var(--surface-3);
color: var(--text-muted);
font-size: 12px;
padding: 9px 12px;
}
.code-stream {
box-sizing: border-box;
min-height: 390px;
max-height: 58vh;
margin: 0;
overflow: auto;
border: 0;
border-radius: 0;
background: var(--surface);
color: var(--text);
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 13px;
line-height: 1.6;
padding: 16px;
white-space: pre-wrap;
}
.rollback-flash {
border-color: var(--red) !important;
animation: flash 0.45s ease;
}
@keyframes flash {
0% {
background: rgba(248, 81, 73, 0.24);
}
100% {
background: var(--surface);
}
}
.status-bar {
align-items: center;
border: 1px solid var(--border);
border-top: 0;
border-radius: 0 0 8px 8px;
background: var(--surface-2);
color: var(--text-muted);
font-size: 12px;
padding: 10px 12px;
box-shadow: 0 16px 38px var(--shadow);
}
.status-warning,
.verdict-fix,
.verdict-rewrite,
.verdict-error {
color: var(--accent-warn);
}
.status-success,
.verdict-pass {
color: var(--green);
}
.status-neutral,
.verdict-idle {
color: var(--text-muted);
}
textarea,
select,
button {
font-family: inherit !important;
}
@media (max-width: 720px) {
.load-section {
grid-template-columns: 1fr;
}
.brain-rail,
.status-bar {
align-items: flex-start;
flex-direction: column;
}
.brain-pulse {
display: none;
}
.code-stream {
min-height: 320px;
}
}