Spaces:
Sleeping
Sleeping
Mridul Jain commited on
Commit ·
acfa14b
1
Parent(s): 52f6875
The Vault: Vanguard Edition (v4.2) — Production HUD overhaul with global error interception and kinetic UI textures
Browse files- server/static/app.js +33 -7
- server/static/index.html +3 -2
- server/static/style.css +157 -266
server/static/app.js
CHANGED
|
@@ -203,6 +203,9 @@ const app = {
|
|
| 203 |
|
| 204 |
const config = JSON.parse(sessionStorage.getItem('env_config') || '{}');
|
| 205 |
this.ws.send(JSON.stringify({ action: "run_agent", config: config }));
|
|
|
|
|
|
|
|
|
|
| 206 |
},
|
| 207 |
|
| 208 |
handleStreamChunk: function(content) {
|
|
@@ -231,16 +234,39 @@ const app = {
|
|
| 231 |
this.terminalActiveLine = null;
|
| 232 |
}
|
| 233 |
|
| 234 |
-
|
|
|
|
|
|
|
| 235 |
const scoreDisplay = document.getElementById('reward-display');
|
| 236 |
-
|
|
|
|
|
|
|
| 237 |
|
| 238 |
-
//
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
|
| 243 |
-
document.getElementById('feedback-display').textContent =
|
| 244 |
document.getElementById('reward-overlay').style.display = 'flex';
|
| 245 |
|
| 246 |
document.getElementById('btn-run-agent').disabled = false;
|
|
|
|
| 203 |
|
| 204 |
const config = JSON.parse(sessionStorage.getItem('env_config') || '{}');
|
| 205 |
this.ws.send(JSON.stringify({ action: "run_agent", config: config }));
|
| 206 |
+
|
| 207 |
+
// Kinetic Active State
|
| 208 |
+
document.querySelectorAll('.card').forEach(c => c.style.borderColor = 'var(--indigo-500)');
|
| 209 |
},
|
| 210 |
|
| 211 |
handleStreamChunk: function(content) {
|
|
|
|
| 234 |
this.terminalActiveLine = null;
|
| 235 |
}
|
| 236 |
|
| 237 |
+
// Reset Kinetic States
|
| 238 |
+
document.querySelectorAll('.card').forEach(c => c.style.borderColor = '');
|
| 239 |
+
|
| 240 |
const scoreDisplay = document.getElementById('reward-display');
|
| 241 |
+
const title = document.getElementById('diagnostic-title');
|
| 242 |
+
const rw = result.reward;
|
| 243 |
+
const feedback = result.info.feedback || "";
|
| 244 |
|
| 245 |
+
// --- Credential Interceptor (Vanguard Logic) ---
|
| 246 |
+
const isAuthError = feedback.includes("401") || feedback.includes("Invalid API key") || feedback.includes("Incorrect API key");
|
| 247 |
+
|
| 248 |
+
if (isAuthError) {
|
| 249 |
+
this.terminalPrint("ALERT: Security Handshake Failed. Halting operations.");
|
| 250 |
+
this.isAutoTraining = false; // Kill loop
|
| 251 |
+
title.textContent = "SECURITY_HANDSHAKE_FAILED";
|
| 252 |
+
title.style.color = "var(--rose-500)";
|
| 253 |
+
scoreDisplay.textContent = "FAULT";
|
| 254 |
+
scoreDisplay.style.color = "var(--rose-500)";
|
| 255 |
+
document.getElementById('btn-auto-loop').innerHTML = '<i class="fa-solid fa-bolt"></i> Training Loop';
|
| 256 |
+
document.getElementById('btn-auto-loop').style.background = '';
|
| 257 |
+
document.getElementById('btn-auto-loop').style.color = '';
|
| 258 |
+
} else {
|
| 259 |
+
title.textContent = "Judicial Alignment Captured";
|
| 260 |
+
title.style.color = "var(--indigo-500)";
|
| 261 |
+
scoreDisplay.textContent = rw.toFixed(4);
|
| 262 |
+
|
| 263 |
+
// Dynamic Grading Color
|
| 264 |
+
if (rw >= 0.8) scoreDisplay.style.color = 'var(--emerald-500)';
|
| 265 |
+
else if (rw >= 0.4) scoreDisplay.style.color = 'var(--amber-500)';
|
| 266 |
+
else scoreDisplay.style.color = 'var(--rose-500)';
|
| 267 |
+
}
|
| 268 |
|
| 269 |
+
document.getElementById('feedback-display').textContent = feedback;
|
| 270 |
document.getElementById('reward-overlay').style.display = 'flex';
|
| 271 |
|
| 272 |
document.getElementById('btn-run-agent').disabled = false;
|
server/static/index.html
CHANGED
|
@@ -12,6 +12,7 @@
|
|
| 12 |
|
| 13 |
<!-- Dynamic Environment Layer -->
|
| 14 |
<canvas id="fluid-canvas"></canvas>
|
|
|
|
| 15 |
|
| 16 |
<div class="app-shell">
|
| 17 |
|
|
@@ -180,10 +181,10 @@
|
|
| 180 |
<!-- Live Streams -->
|
| 181 |
</div>
|
| 182 |
|
| 183 |
-
<!--
|
| 184 |
<div class="reward-overlay" id="reward-overlay" style="display:none;">
|
| 185 |
<span id="reward-display" class="reward-score">0.00</span>
|
| 186 |
-
<h3 class="text-primary">Judicial Alignment Captured</h3>
|
| 187 |
<div id="feedback-display" class="feedback-bubble">...</div>
|
| 188 |
<button class="btn btn-secondary" style="width: auto; padding: 12px 24px;" onclick="app.closeReward()">Dismiss Signal</button>
|
| 189 |
</div>
|
|
|
|
| 12 |
|
| 13 |
<!-- Dynamic Environment Layer -->
|
| 14 |
<canvas id="fluid-canvas"></canvas>
|
| 15 |
+
<div class="scanline"></div>
|
| 16 |
|
| 17 |
<div class="app-shell">
|
| 18 |
|
|
|
|
| 181 |
<!-- Live Streams -->
|
| 182 |
</div>
|
| 183 |
|
| 184 |
+
<!-- Diagnostic Port (Refactored Outcome Overlay) -->
|
| 185 |
<div class="reward-overlay" id="reward-overlay" style="display:none;">
|
| 186 |
<span id="reward-display" class="reward-score">0.00</span>
|
| 187 |
+
<h3 id="diagnostic-title" class="text-primary">Judicial Alignment Captured</h3>
|
| 188 |
<div id="feedback-display" class="feedback-bubble">...</div>
|
| 189 |
<button class="btn btn-secondary" style="width: auto; padding: 12px 24px;" onclick="app.closeReward()">Dismiss Signal</button>
|
| 190 |
</div>
|
server/static/style.css
CHANGED
|
@@ -1,28 +1,29 @@
|
|
| 1 |
/*
|
| 2 |
-
* THE VAULT (v4.
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
*/
|
| 6 |
|
| 7 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
|
| 8 |
|
| 9 |
:root {
|
| 10 |
-
/* --- COLOR TOKENS (
|
| 11 |
--zinc-50: #fafafa; --zinc-100: #f4f4f5; --zinc-200: #e4e4e7;
|
| 12 |
--zinc-300: #d4d4d8; --zinc-400: #a1a1aa; --zinc-500: #71717a;
|
| 13 |
--zinc-600: #52525b; --zinc-700: #3f3f46; --zinc-800: #27272a;
|
| 14 |
-
--zinc-900: #18181b; --zinc-950: #
|
| 15 |
|
| 16 |
--indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca;
|
|
|
|
| 17 |
|
| 18 |
/* --- SEMANTIC THEME --- */
|
| 19 |
--bg-app: var(--zinc-950);
|
| 20 |
-
--surface-base:
|
| 21 |
-
--surface-overlay: #
|
| 22 |
--surface-accent: rgba(99, 102, 241, 0.08);
|
| 23 |
|
| 24 |
--border-subtle: rgba(255, 255, 255, 0.04);
|
| 25 |
-
--border-medium: rgba(255, 255, 255, 0.
|
| 26 |
--border-accent: rgba(99, 102, 241, 0.3);
|
| 27 |
|
| 28 |
--text-primary: var(--zinc-50);
|
|
@@ -31,25 +32,21 @@
|
|
| 31 |
--text-accent: var(--indigo-500);
|
| 32 |
|
| 33 |
/* --- UTILITY TOKENS --- */
|
| 34 |
-
--radius-sm:
|
| 35 |
-
--radius-md:
|
| 36 |
-
--radius-lg:
|
| 37 |
-
|
| 38 |
-
|
| 39 |
/* --- PHYSICS-BASED MOTION --- */
|
| 40 |
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
| 41 |
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
| 42 |
--spring-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 43 |
|
| 44 |
-
/* --- SPACING (
|
| 45 |
-
--
|
| 46 |
-
--
|
| 47 |
-
|
| 48 |
-
/* --- SIDEBAR CONFIG --- */
|
| 49 |
-
--sidebar-w: 260px;
|
| 50 |
}
|
| 51 |
|
| 52 |
-
/* --- RESET & GLOBAL
|
| 53 |
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
|
| 54 |
|
| 55 |
body {
|
|
@@ -57,363 +54,257 @@ body {
|
|
| 57 |
padding: 0;
|
| 58 |
background-color: var(--bg-app);
|
| 59 |
color: var(--text-primary);
|
| 60 |
-
font-family: 'Inter',
|
| 61 |
height: 100vh;
|
| 62 |
overflow: hidden;
|
| 63 |
letter-spacing: -0.01em;
|
| 64 |
}
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
button { font-family: inherit; }
|
| 69 |
-
|
| 70 |
-
/* --- BACKGROUND NOISE (THE TEXTURE) --- */
|
| 71 |
-
body::before {
|
| 72 |
content: '';
|
| 73 |
position: fixed;
|
| 74 |
inset: 0;
|
| 75 |
-
background
|
| 76 |
-
opacity: 0.03;
|
| 77 |
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
z-index: 1000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
#fluid-canvas {
|
| 82 |
position: fixed;
|
| 83 |
inset: 0;
|
| 84 |
z-index: -1;
|
| 85 |
-
background: radial-gradient(circle at 50% -20%, #
|
| 86 |
-
opacity: 0.
|
| 87 |
}
|
| 88 |
|
| 89 |
-
/* --- APP SHELL
|
| 90 |
.app-shell {
|
| 91 |
display: grid;
|
| 92 |
grid-template-columns: var(--sidebar-w) 1fr;
|
| 93 |
height: 100vh;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
-
/* --- SIDEBAR (
|
| 97 |
.sidebar {
|
| 98 |
background: var(--surface-base);
|
| 99 |
border-right: 1px solid var(--border-subtle);
|
| 100 |
display: flex;
|
| 101 |
flex-direction: column;
|
| 102 |
-
padding: var(--
|
|
|
|
| 103 |
z-index: 50;
|
| 104 |
-
animation: slideInLeft 0.8s var(--ease-out) backwards;
|
| 105 |
}
|
| 106 |
|
| 107 |
.sidebar-header {
|
| 108 |
-
|
| 109 |
-
align-items: center;
|
| 110 |
-
gap: var(--s-3);
|
| 111 |
-
margin-bottom: var(--s-12);
|
| 112 |
}
|
| 113 |
|
| 114 |
.logo-icon {
|
| 115 |
-
width:
|
| 116 |
-
|
| 117 |
-
border-radius:
|
| 118 |
-
|
|
|
|
| 119 |
box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
|
| 120 |
-
display: flex;
|
| 121 |
-
align-items: center;
|
| 122 |
-
justify-content: center;
|
| 123 |
-
color: white;
|
| 124 |
}
|
| 125 |
|
| 126 |
-
.brand-text { font-size: 1.
|
| 127 |
|
| 128 |
-
.nav-section { margin-bottom:
|
| 129 |
.nav-label {
|
| 130 |
-
font-size: 0.
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
letter-spacing: 0.1em;
|
| 134 |
-
margin-bottom: var(--s-3);
|
| 135 |
}
|
| 136 |
|
| 137 |
.nav-item {
|
| 138 |
-
width: 100%;
|
| 139 |
-
padding: var(--s-2) var(--s-4);
|
| 140 |
border-radius: var(--radius-md);
|
| 141 |
-
background: transparent;
|
| 142 |
-
border: 1px solid transparent;
|
| 143 |
color: var(--text-secondary);
|
| 144 |
-
display: flex;
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
cursor: pointer;
|
| 148 |
-
transition: all var(--transition-normal);
|
| 149 |
-
margin-bottom: 4px;
|
| 150 |
-
font-size: 0.9rem;
|
| 151 |
-
text-align: left;
|
| 152 |
-
}
|
| 153 |
-
|
| 154 |
-
.nav-item:hover {
|
| 155 |
-
background: rgba(255, 255, 255, 0.03);
|
| 156 |
-
color: var(--text-primary);
|
| 157 |
}
|
| 158 |
|
| 159 |
-
.nav-item
|
| 160 |
-
|
| 161 |
-
color: var(--indigo-500);
|
| 162 |
-
border-color: rgba(99, 102, 241, 0.2);
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
.nav-badge {
|
| 166 |
-
margin-left: auto;
|
| 167 |
-
font-size: 0.7rem;
|
| 168 |
-
padding: 2px 8px;
|
| 169 |
-
background: rgba(255, 255, 255, 0.05);
|
| 170 |
-
border-radius: 20px;
|
| 171 |
-
color: var(--text-tertiary);
|
| 172 |
-
}
|
| 173 |
|
| 174 |
-
/* --- MAIN
|
| 175 |
.main-content {
|
| 176 |
-
display: flex;
|
| 177 |
-
flex-direction: column;
|
| 178 |
-
overflow: hidden;
|
| 179 |
position: relative;
|
| 180 |
}
|
| 181 |
|
| 182 |
.topbar {
|
| 183 |
-
height:
|
| 184 |
border-bottom: 1px solid var(--border-subtle);
|
| 185 |
-
display: flex;
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
padding: 0 var(--s-8);
|
| 189 |
-
background: rgba(9, 9, 11, 0.5);
|
| 190 |
-
backdrop-filter: blur(8px);
|
| 191 |
-
z-index: 40;
|
| 192 |
}
|
| 193 |
|
| 194 |
-
.hud-
|
| 195 |
-
.hud-label { font-size: 0.
|
| 196 |
-
.hud-value {
|
| 197 |
-
font-family: 'JetBrains Mono', monospace;
|
| 198 |
-
font-size: 1rem;
|
| 199 |
-
font-weight: 600;
|
| 200 |
-
color: var(--indigo-500);
|
| 201 |
-
}
|
| 202 |
|
| 203 |
-
/* --- WORKSPACE
|
| 204 |
.workspace {
|
| 205 |
-
flex: 1;
|
| 206 |
-
|
| 207 |
-
grid-template-columns: 1fr 400px;
|
| 208 |
-
gap: 1px;
|
| 209 |
-
background: var(--border-subtle);
|
| 210 |
-
overflow: hidden;
|
| 211 |
}
|
| 212 |
|
| 213 |
.view-col {
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
padding: var(--s-8);
|
| 217 |
-
display: flex;
|
| 218 |
-
flex-direction: column;
|
| 219 |
}
|
| 220 |
|
| 221 |
-
/* ---
|
| 222 |
.card {
|
| 223 |
background: var(--surface-base);
|
| 224 |
border: 1px solid var(--border-medium);
|
| 225 |
border-radius: var(--radius-lg);
|
| 226 |
-
padding:
|
| 227 |
-
margin-bottom: var(--s-6);
|
| 228 |
-
position: relative;
|
| 229 |
overflow: hidden;
|
| 230 |
-
transition: transform 0.
|
| 231 |
-
animation: fadeIn 0.8s var(--ease-out) backwards;
|
| 232 |
}
|
| 233 |
|
| 234 |
.card:hover {
|
| 235 |
border-color: var(--border-accent);
|
|
|
|
| 236 |
}
|
| 237 |
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
margin-bottom: var(--s-6);
|
| 243 |
}
|
|
|
|
|
|
|
| 244 |
|
| 245 |
-
|
|
|
|
|
|
|
|
|
|
| 246 |
.content-box {
|
| 247 |
-
background:
|
| 248 |
-
padding: var(--s-6);
|
| 249 |
border-radius: var(--radius-md);
|
| 250 |
-
border-left:
|
| 251 |
-
font-size: 1.
|
| 252 |
-
|
| 253 |
-
color: var(--zinc-100);
|
| 254 |
-
font-weight: 300;
|
| 255 |
-
margin-bottom: var(--s-6);
|
| 256 |
-
}
|
| 257 |
-
|
| 258 |
-
.stat-grid {
|
| 259 |
-
display: grid;
|
| 260 |
-
grid-template-columns: repeat(2, 1fr);
|
| 261 |
-
gap: var(--s-3);
|
| 262 |
}
|
| 263 |
|
|
|
|
| 264 |
.stat-item {
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
border-radius: var(--radius-sm);
|
| 268 |
-
border: 1px solid var(--border-subtle);
|
| 269 |
}
|
| 270 |
-
.stat-item .label { font-size: 0.
|
| 271 |
-
.stat-item .value { font-size:
|
| 272 |
|
| 273 |
-
/* --- TERMINAL (
|
| 274 |
.terminal-card {
|
| 275 |
-
flex: 1;
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
padding: 0;
|
| 279 |
-
overflow: hidden;
|
| 280 |
-
background: #050505;
|
| 281 |
}
|
| 282 |
|
| 283 |
.terminal-header {
|
| 284 |
-
background: #
|
| 285 |
-
|
| 286 |
-
display: flex;
|
| 287 |
-
align-items: center;
|
| 288 |
-
gap: var(--s-2);
|
| 289 |
border-bottom: 1px solid var(--border-subtle);
|
| 290 |
}
|
| 291 |
|
| 292 |
-
.dot { width:
|
| 293 |
-
.dot.red { background:
|
| 294 |
-
.dot.yellow { background:
|
| 295 |
-
.dot.green { background:
|
| 296 |
|
| 297 |
-
.terminal-title {
|
|
|
|
|
|
|
|
|
|
| 298 |
|
| 299 |
.terminal-body {
|
| 300 |
-
flex: 1;
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
font-family: 'JetBrains Mono', monospace;
|
| 304 |
-
font-size: 0.85rem;
|
| 305 |
-
color: var(--zinc-400);
|
| 306 |
-
line-height: 1.7;
|
| 307 |
}
|
| 308 |
|
| 309 |
-
.log-line { margin-bottom:
|
| 310 |
.log-line.active::after {
|
| 311 |
-
content: '_';
|
| 312 |
-
animation: blink 1s step-end infinite;
|
| 313 |
-
color: var(--indigo-500);
|
| 314 |
-
}
|
| 315 |
-
|
| 316 |
-
/* --- FORMS & ACTION BUTTONS --- */
|
| 317 |
-
.form-group { margin-bottom: var(--s-6); }
|
| 318 |
-
label { display: block; font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.05em; }
|
| 319 |
-
|
| 320 |
-
select, input {
|
| 321 |
-
width: 100%;
|
| 322 |
-
background: var(--zinc-950);
|
| 323 |
-
border: 1px solid var(--border-medium);
|
| 324 |
-
padding: var(--s-3) var(--s-4);
|
| 325 |
-
border-radius: var(--radius-md);
|
| 326 |
-
color: var(--zinc-100);
|
| 327 |
-
font-size: 0.9rem;
|
| 328 |
-
transition: border-color 0.2s;
|
| 329 |
-
}
|
| 330 |
-
|
| 331 |
-
select:focus, input:focus { outline: none; border-color: var(--indigo-500); }
|
| 332 |
-
|
| 333 |
-
.btn {
|
| 334 |
-
width: 100%;
|
| 335 |
-
padding: var(--s-4);
|
| 336 |
-
border-radius: var(--radius-md);
|
| 337 |
-
display: flex;
|
| 338 |
-
align-items: center;
|
| 339 |
-
justify-content: center;
|
| 340 |
-
gap: var(--s-2);
|
| 341 |
-
cursor: pointer;
|
| 342 |
-
font-weight: 600;
|
| 343 |
-
transition: all 0.2s var(--ease-out);
|
| 344 |
-
border: none;
|
| 345 |
-
font-size: 0.9rem;
|
| 346 |
-
}
|
| 347 |
-
|
| 348 |
-
.btn-primary {
|
| 349 |
-
background: var(--indigo-600);
|
| 350 |
-
color: white;
|
| 351 |
-
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
|
| 352 |
-
}
|
| 353 |
-
.btn-primary:hover {
|
| 354 |
-
background: var(--indigo-500);
|
| 355 |
-
transform: translateY(-1px);
|
| 356 |
-
box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
.btn-secondary {
|
| 360 |
-
background: rgba(255, 255, 255, 0.05);
|
| 361 |
-
color: var(--text-primary);
|
| 362 |
-
border: 1px solid var(--border-medium);
|
| 363 |
}
|
| 364 |
-
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-accent); }
|
| 365 |
|
| 366 |
-
/* ---
|
| 367 |
.reward-overlay {
|
| 368 |
-
position: absolute;
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
flex-direction: column;
|
| 375 |
-
align-items: center;
|
| 376 |
-
justify-content: center;
|
| 377 |
-
animation: fadeIn 0.4s var(--ease-out);
|
| 378 |
}
|
| 379 |
|
|
|
|
|
|
|
| 380 |
.reward-score {
|
| 381 |
-
font-family: 'JetBrains Mono', monospace;
|
| 382 |
-
|
| 383 |
-
font-weight: 700;
|
| 384 |
-
color: var(--indigo-500);
|
| 385 |
-
margin-bottom: var(--s-4);
|
| 386 |
}
|
| 387 |
|
| 388 |
.feedback-bubble {
|
| 389 |
-
max-width:
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
|
|
|
|
|
|
| 393 |
}
|
| 394 |
|
| 395 |
-
/*
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
|
|
|
|
|
|
|
|
|
| 399 |
}
|
| 400 |
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
}
|
|
|
|
| 405 |
|
|
|
|
| 406 |
@keyframes blink { 50% { opacity: 0; } }
|
| 407 |
|
| 408 |
-
/* --- SCROLLBARS
|
| 409 |
-
::-webkit-scrollbar { width:
|
| 410 |
::-webkit-scrollbar-track { background: transparent; }
|
| 411 |
-
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius:
|
| 412 |
-
::-webkit-scrollbar-thumb:hover { background:
|
| 413 |
-
|
| 414 |
-
/* --- STAGGERED LOAD DELAYS --- */
|
| 415 |
-
.sidebar { animation-delay: 0.1s; }
|
| 416 |
-
.topbar { animation: fadeIn 0.8s var(--ease-out) 0.3s backwards; }
|
| 417 |
-
.card:nth-child(1) { animation-delay: 0.5s; }
|
| 418 |
-
.card:nth-child(2) { animation-delay: 0.6s; }
|
| 419 |
-
.terminal-card { animation-delay: 0.7s; }
|
|
|
|
| 1 |
/*
|
| 2 |
+
* THE VAULT: VANGUARD EDITION (v4.2)
|
| 3 |
+
* High-Fidelity Infrastructure — Meta × PyTorch HQ
|
| 4 |
+
* Production-grade surfaces with kinetic texture and diagnostic resilience.
|
| 5 |
*/
|
| 6 |
|
| 7 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
|
| 8 |
|
| 9 |
:root {
|
| 10 |
+
/* --- COLOR TOKENS (VANGUARD PRECISION) --- */
|
| 11 |
--zinc-50: #fafafa; --zinc-100: #f4f4f5; --zinc-200: #e4e4e7;
|
| 12 |
--zinc-300: #d4d4d8; --zinc-400: #a1a1aa; --zinc-500: #71717a;
|
| 13 |
--zinc-600: #52525b; --zinc-700: #3f3f46; --zinc-800: #27272a;
|
| 14 |
+
--zinc-900: #18181b; --zinc-950: #060608;
|
| 15 |
|
| 16 |
--indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca;
|
| 17 |
+
--emerald-500: #10b981; --rose-500: #f43f5e; --amber-500: #f59e0b;
|
| 18 |
|
| 19 |
/* --- SEMANTIC THEME --- */
|
| 20 |
--bg-app: var(--zinc-950);
|
| 21 |
+
--surface-base: #0c0c0e;
|
| 22 |
+
--surface-overlay: #141417;
|
| 23 |
--surface-accent: rgba(99, 102, 241, 0.08);
|
| 24 |
|
| 25 |
--border-subtle: rgba(255, 255, 255, 0.04);
|
| 26 |
+
--border-medium: rgba(255, 255, 255, 0.07);
|
| 27 |
--border-accent: rgba(99, 102, 241, 0.3);
|
| 28 |
|
| 29 |
--text-primary: var(--zinc-50);
|
|
|
|
| 32 |
--text-accent: var(--indigo-500);
|
| 33 |
|
| 34 |
/* --- UTILITY TOKENS --- */
|
| 35 |
+
--radius-sm: 4px;
|
| 36 |
+
--radius-md: 8px;
|
| 37 |
+
--radius-lg: 12px;
|
| 38 |
+
|
|
|
|
| 39 |
/* --- PHYSICS-BASED MOTION --- */
|
| 40 |
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
| 41 |
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
| 42 |
--spring-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 43 |
|
| 44 |
+
/* --- SPACING (SENIOR SCALE) --- */
|
| 45 |
+
--sidebar-w: 280px;
|
| 46 |
+
--hud-gap: 24px;
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
+
/* --- RESET & GLOBAL --- */
|
| 50 |
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
|
| 51 |
|
| 52 |
body {
|
|
|
|
| 54 |
padding: 0;
|
| 55 |
background-color: var(--bg-app);
|
| 56 |
color: var(--text-primary);
|
| 57 |
+
font-family: 'Inter', sans-serif;
|
| 58 |
height: 100vh;
|
| 59 |
overflow: hidden;
|
| 60 |
letter-spacing: -0.01em;
|
| 61 |
}
|
| 62 |
|
| 63 |
+
/* --- KINETIC TEXTURE (THE VANGUARD LOOK) --- */
|
| 64 |
+
body::after {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
content: '';
|
| 66 |
position: fixed;
|
| 67 |
inset: 0;
|
| 68 |
+
background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
|
|
|
|
| 69 |
pointer-events: none;
|
| 70 |
+
z-index: 9999;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.scanline {
|
| 74 |
+
position: fixed;
|
| 75 |
+
top: 0; left: 0;
|
| 76 |
+
width: 100%; height: 100px;
|
| 77 |
+
background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.03), transparent);
|
| 78 |
z-index: 1000;
|
| 79 |
+
pointer-events: none;
|
| 80 |
+
animation: scan 8s linear infinite;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
@keyframes scan {
|
| 84 |
+
from { transform: translateY(-100px); }
|
| 85 |
+
to { transform: translateY(110vh); }
|
| 86 |
}
|
| 87 |
|
| 88 |
#fluid-canvas {
|
| 89 |
position: fixed;
|
| 90 |
inset: 0;
|
| 91 |
z-index: -1;
|
| 92 |
+
background: radial-gradient(circle at 50% -20%, #0f172a 0%, var(--bg-app) 100%);
|
| 93 |
+
opacity: 0.8;
|
| 94 |
}
|
| 95 |
|
| 96 |
+
/* --- APP SHELL --- */
|
| 97 |
.app-shell {
|
| 98 |
display: grid;
|
| 99 |
grid-template-columns: var(--sidebar-w) 1fr;
|
| 100 |
height: 100vh;
|
| 101 |
+
animation: appBreathe 1.2s var(--ease-out);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
@keyframes appBreathe {
|
| 105 |
+
from { opacity: 0; transform: scale(0.99); }
|
| 106 |
+
to { opacity: 1; transform: scale(1); }
|
| 107 |
}
|
| 108 |
|
| 109 |
+
/* --- SIDEBAR (MODERN CONTROL) --- */
|
| 110 |
.sidebar {
|
| 111 |
background: var(--surface-base);
|
| 112 |
border-right: 1px solid var(--border-subtle);
|
| 113 |
display: flex;
|
| 114 |
flex-direction: column;
|
| 115 |
+
padding: var(--hud-gap);
|
| 116 |
+
position: relative;
|
| 117 |
z-index: 50;
|
|
|
|
| 118 |
}
|
| 119 |
|
| 120 |
.sidebar-header {
|
| 121 |
+
margin-bottom: 48px;
|
| 122 |
+
display: flex; align-items: center; gap: 16px;
|
|
|
|
|
|
|
| 123 |
}
|
| 124 |
|
| 125 |
.logo-icon {
|
| 126 |
+
width: 36px; height: 36px;
|
| 127 |
+
background: var(--indigo-600);
|
| 128 |
+
border-radius: var(--radius-sm);
|
| 129 |
+
display: flex; align-items: center; justify-content: center;
|
| 130 |
+
color: white; font-size: 1.2rem;
|
| 131 |
box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
|
| 134 |
+
.brand-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; }
|
| 135 |
|
| 136 |
+
.nav-section { margin-bottom: 32px; }
|
| 137 |
.nav-label {
|
| 138 |
+
font-size: 0.65rem; color: var(--text-tertiary);
|
| 139 |
+
text-transform: uppercase; letter-spacing: 0.15em;
|
| 140 |
+
margin-bottom: 12px; font-weight: 600;
|
|
|
|
|
|
|
| 141 |
}
|
| 142 |
|
| 143 |
.nav-item {
|
| 144 |
+
width: 100%; padding: 10px 14px;
|
|
|
|
| 145 |
border-radius: var(--radius-md);
|
| 146 |
+
background: transparent; border: 1px solid transparent;
|
|
|
|
| 147 |
color: var(--text-secondary);
|
| 148 |
+
display: flex; align-items: center; gap: 12px;
|
| 149 |
+
cursor: pointer; transition: all 0.2s var(--ease-out);
|
| 150 |
+
margin-bottom: 4px; font-size: 0.9rem; text-align: left;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
}
|
| 152 |
|
| 153 |
+
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
|
| 154 |
+
.nav-item.active { background: var(--surface-accent); color: var(--indigo-500); border-color: rgba(99,102,241,0.2); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
+
/* --- MAIN HUD --- */
|
| 157 |
.main-content {
|
| 158 |
+
display: flex; flex-direction: column; overflow: hidden;
|
|
|
|
|
|
|
| 159 |
position: relative;
|
| 160 |
}
|
| 161 |
|
| 162 |
.topbar {
|
| 163 |
+
height: 72px; padding: 0 var(--hud-gap);
|
| 164 |
border-bottom: 1px solid var(--border-subtle);
|
| 165 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 166 |
+
background: rgba(6, 6, 8, 0.7);
|
| 167 |
+
backdrop-filter: blur(12px); z-index: 100;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
}
|
| 169 |
|
| 170 |
+
.hud-group { display: flex; flex-direction: column; align-items: flex-end; }
|
| 171 |
+
.hud-label { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; }
|
| 172 |
+
.hud-value { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; font-weight: 600; color: var(--indigo-500); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
+
/* --- WORKSPACE GRID --- */
|
| 175 |
.workspace {
|
| 176 |
+
flex: 1; display: grid; grid-template-columns: 1fr 440px;
|
| 177 |
+
background: var(--bg-app); overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
}
|
| 179 |
|
| 180 |
.view-col {
|
| 181 |
+
overflow-y: auto; padding: var(--hud-gap);
|
| 182 |
+
display: flex; flex-direction: column; gap: var(--hud-gap);
|
|
|
|
|
|
|
|
|
|
| 183 |
}
|
| 184 |
|
| 185 |
+
/* --- VANGUARD CARDS (HUD SURFACE) --- */
|
| 186 |
.card {
|
| 187 |
background: var(--surface-base);
|
| 188 |
border: 1px solid var(--border-medium);
|
| 189 |
border-radius: var(--radius-lg);
|
| 190 |
+
padding: 24px; position: relative;
|
|
|
|
|
|
|
| 191 |
overflow: hidden;
|
| 192 |
+
transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
.card:hover {
|
| 196 |
border-color: var(--border-accent);
|
| 197 |
+
box-shadow: 0 12px 40px rgba(0,0,0,0.4);
|
| 198 |
}
|
| 199 |
|
| 200 |
+
/* HUD Corners */
|
| 201 |
+
.card::before, .card::after {
|
| 202 |
+
content: ''; position: absolute; width: 8px; height: 8px;
|
| 203 |
+
border-color: var(--text-tertiary); border-style: solid; opacity: 0.3;
|
|
|
|
| 204 |
}
|
| 205 |
+
.card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
|
| 206 |
+
.card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
|
| 207 |
|
| 208 |
+
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
|
| 209 |
+
.card-header h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
|
| 210 |
+
|
| 211 |
+
/* --- CONTENT PORTAL --- */
|
| 212 |
.content-box {
|
| 213 |
+
background: #000; padding: 20px;
|
|
|
|
| 214 |
border-radius: var(--radius-md);
|
| 215 |
+
border-left: 3px solid var(--indigo-600);
|
| 216 |
+
font-size: 1.1rem; line-height: 1.6;
|
| 217 |
+
color: var(--zinc-100); font-weight: 300;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
}
|
| 219 |
|
| 220 |
+
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
| 221 |
.stat-item {
|
| 222 |
+
background: rgba(255,255,255,0.02); padding: 12px 16px;
|
| 223 |
+
border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);
|
|
|
|
|
|
|
| 224 |
}
|
| 225 |
+
.stat-item .label { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 2px; }
|
| 226 |
+
.stat-item .value { font-size: 1rem; font-weight: 500; }
|
| 227 |
|
| 228 |
+
/* --- TERMINAL (DIAGNOSTIC CORE) --- */
|
| 229 |
.terminal-card {
|
| 230 |
+
flex: 1; display: flex; flex-direction: column;
|
| 231 |
+
background: #000; border: none; border-radius: 0;
|
| 232 |
+
margin: 0; padding: 0;
|
|
|
|
|
|
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
.terminal-header {
|
| 236 |
+
background: #09090b; padding: 12px 16px;
|
| 237 |
+
display: flex; align-items: center; gap: 10px;
|
|
|
|
|
|
|
|
|
|
| 238 |
border-bottom: 1px solid var(--border-subtle);
|
| 239 |
}
|
| 240 |
|
| 241 |
+
.dot { width: 8px; height: 8px; border-radius: 50%; }
|
| 242 |
+
.dot.red { background: var(--rose-500); }
|
| 243 |
+
.dot.yellow { background: var(--amber-500); }
|
| 244 |
+
.dot.green { background: var(--emerald-500); }
|
| 245 |
|
| 246 |
+
.terminal-title {
|
| 247 |
+
font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
|
| 248 |
+
color: var(--text-tertiary); font-weight: 600;
|
| 249 |
+
}
|
| 250 |
|
| 251 |
.terminal-body {
|
| 252 |
+
flex: 1; overflow-y: auto; padding: 24px;
|
| 253 |
+
font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
|
| 254 |
+
color: var(--text-secondary); line-height: 1.8;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
}
|
| 256 |
|
| 257 |
+
.log-line { margin-bottom: 8px; }
|
| 258 |
.log-line.active::after {
|
| 259 |
+
content: '_'; animation: blink 1s step-end infinite; color: var(--indigo-500);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
}
|
|
|
|
| 261 |
|
| 262 |
+
/* --- DIAGNOSTIC OVERLAY (THE RESILIENT FIX) --- */
|
| 263 |
.reward-overlay {
|
| 264 |
+
position: absolute; inset: 0;
|
| 265 |
+
background: rgba(6, 6, 8, 0.95);
|
| 266 |
+
backdrop-filter: blur(16px); z-index: 500;
|
| 267 |
+
display: flex; flex-direction: column;
|
| 268 |
+
padding: 48px; align-items: center; justify-content: center;
|
| 269 |
+
text-align: center; animation: overlayIn 0.4s var(--ease-out);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
}
|
| 271 |
|
| 272 |
+
@keyframes overlayIn { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; backdrop-filter: blur(16px); } }
|
| 273 |
+
|
| 274 |
.reward-score {
|
| 275 |
+
font-family: 'JetBrains Mono', monospace; font-size: 4rem; font-weight: 800;
|
| 276 |
+
margin-bottom: 12px; letter-spacing: -0.05em;
|
|
|
|
|
|
|
|
|
|
| 277 |
}
|
| 278 |
|
| 279 |
.feedback-bubble {
|
| 280 |
+
width: 100%; max-width: 600px; max-height: 250px;
|
| 281 |
+
overflow-y: auto; background: rgba(255,255,255,0.03);
|
| 282 |
+
padding: 24px; border-radius: var(--radius-md);
|
| 283 |
+
border: 1px solid var(--border-medium);
|
| 284 |
+
font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary);
|
| 285 |
+
font-family: 'JetBrains Mono', monospace; text-align: left;
|
| 286 |
}
|
| 287 |
|
| 288 |
+
/* Modal Actions */
|
| 289 |
+
.btn {
|
| 290 |
+
border: none; padding: 14px 24px; border-radius: var(--radius-sm);
|
| 291 |
+
font-family: inherit; font-size: 0.85rem; font-weight: 700;
|
| 292 |
+
cursor: pointer; transition: all 0.2s var(--ease-out);
|
| 293 |
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
| 294 |
+
text-transform: uppercase; letter-spacing: 0.05em;
|
| 295 |
}
|
| 296 |
|
| 297 |
+
.btn-primary { background: var(--indigo-600); color: white; }
|
| 298 |
+
.btn-primary:active { transform: scale(0.98); }
|
| 299 |
+
|
| 300 |
+
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text-primary); border: 1px solid var(--border-medium); }
|
| 301 |
+
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
|
| 302 |
|
| 303 |
+
/* --- ANIMATIONS --- */
|
| 304 |
@keyframes blink { 50% { opacity: 0; } }
|
| 305 |
|
| 306 |
+
/* --- SCROLLBARS --- */
|
| 307 |
+
::-webkit-scrollbar { width: 4px; }
|
| 308 |
::-webkit-scrollbar-track { background: transparent; }
|
| 309 |
+
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
|
| 310 |
+
::-webkit-scrollbar-thumb:hover { background: var(--indigo-500); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|