/* ==========================================================================
   SystemOne Agents & Jev Model Presentation - Design System & Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0a0d14;
    --bg-surface: #121824;
    --bg-card: rgba(20, 28, 45, 0.65);
    --bg-card-hover: rgba(28, 38, 60, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 229, 255, 0.3);
    
    --text-main: #f0f4fd;
    --text-muted: #8e9bb4;
    --text-dim: #5c6880;

    --accent-cyan: #00e5ff;
    --accent-purple: #9d4edd;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-warning: #f59e0b;
    --accent-red: #ef4444;

    --gradient-hero: linear-gradient(135deg, #00e5ff 0%, #7000ff 50%, #ff007a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.15);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(157, 78, 225, 0.07) 0%, transparent 40%);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.lab-logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    border: 1px solid var(--border-glow);
}

.slide-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lab-logo-hero {
    height: 64px;
    width: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.highlight {
    color: var(--accent-cyan);
}

.nav-controls {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
    background: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.nav-btn.accent-glow.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.deck-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.slide-indicator {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-panel.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* ==========================================================================
   Slides View
   ========================================================================== */
#slides-view {
    justify-content: space-between;
    padding: 24px 36px;
}

.slide-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.slide {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    animation: fadeInSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide.active {
    display: flex;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 850px;
    margin-bottom: 32px;
}

.section-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.header-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-icon.cyan { background: rgba(0, 229, 255, 0.15); color: var(--accent-cyan); }
.card-icon.purple { background: rgba(157, 78, 225, 0.15); color: var(--accent-purple); }
.card-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }

.presenter-note {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Comparison Slide */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.comp-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sys1-highlight {
    border-top: 3px solid var(--accent-cyan);
}

.sys2-highlight {
    border-top: 3px solid var(--accent-purple);
}

.comp-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comp-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.comp-badge.sys1 { background: rgba(0, 229, 255, 0.15); color: var(--accent-cyan); }
.comp-badge.sys2 { background: rgba(157, 78, 225, 0.15); color: var(--accent-purple); }

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
}

.comp-list strong {
    color: var(--text-main);
}

.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-warning { color: var(--accent-warning); }

.vs-divider {
    font-weight: 900;
    color: var(--text-dim);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

/* Problem Timeline */
.problem-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.timeline-step {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    position: relative;
}

.warning-step {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.step-num {
    font-weight: 800;
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.timeline-arrow {
    color: var(--text-dim);
    font-size: 18px;
}

.quote-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--accent-cyan);
    background: rgba(0, 229, 255, 0.03);
}

.quote-icon {
    font-size: 28px;
    color: var(--accent-cyan);
}

/* Primitives Grid */
.primitives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.primitive-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prim-badge {
    align-self: flex-start;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.noul-badge { background: rgba(0, 229, 255, 0.15); color: var(--accent-cyan); }
.choice-badge { background: rgba(157, 78, 225, 0.15); color: var(--accent-purple); }
.score-badge { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }

.code-preview {
    background: #07090e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-code);
    font-size: 12px;
    color: #a6accd;
    overflow-x: auto;
}

/* Architecture Diagram */
.arch-diagram-wrapper {
    padding: 30px;
}

.arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.arch-node {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arch-connector {
    color: var(--accent-cyan);
    font-size: 16px;
}

.arch-layer {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sys1-layer {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.sys2-layer {
    background: rgba(157, 78, 225, 0.05);
    border: 1px solid rgba(157, 78, 225, 0.3);
    text-align: center;
}

.layer-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-nodes {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.sub-node {
    background: rgba(10, 13, 20, 0.7);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.arch-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.branch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.branch-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.fast-node {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    width: 100%;
    justify-content: center;
}

/* Benchmark Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.bar-track {
    background: rgba(255, 255, 255, 0.05);
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sys2-bar { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.sys1-bar { background: linear-gradient(90deg, #00e5ff, #10b981); min-width: 70px; }

.summary-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.stat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-val {
    font-weight: 800;
    font-size: 18px;
}

/* Code Editor Tabs */
.code-editor-tabs {
    padding: 0;
    overflow: hidden;
    background: #080b11;
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.04);
}

.copy-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.tab-body {
    padding: 20px;
}

.code-block {
    display: none;
    font-family: var(--font-code);
    font-size: 13px;
    color: #b0c4de;
    line-height: 1.6;
    overflow-x: auto;
}

.code-block.active {
    display: block;
}

/* CTA Box */
.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(157, 78, 225, 0.08) 100%);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.cta-icon {
    font-size: 40px;
    color: var(--accent-cyan);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

/* Slide Nav Bar */
.slide-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
}

.slide-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s;
}

.dot.active {
    background: var(--accent-cyan);
    width: 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* ==========================================================================
   Interactive Demo View
   ========================================================================== */
#demo-view {
    padding: 24px 36px;
    overflow-y: auto;
}

.demo-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    height: 100%;
}

.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.custom-select, .custom-input, .custom-textarea {
    background: #080b11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.custom-textarea {
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.custom-select:focus, .custom-input:focus, .custom-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.primitive-selector {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.prim-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.prim-tab.active {
    background: var(--accent-cyan);
    color: #000;
}

.action-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

.demo-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.badge.live-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.execution-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.eval-box {
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jev-eval-box {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.llm-eval-box {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.eval-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eval-title {
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.fast-tag { background: rgba(0, 229, 255, 0.2); color: var(--accent-cyan); }
.slow-tag { background: rgba(245, 158, 11, 0.2); color: var(--accent-warning); }

.eval-metric {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.metric-sub {
    font-size: 11px;
    color: var(--text-dim);
}

.eval-details {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
}

/* Results Display */
.result-display {
    min-height: 180px;
    background: #07090e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.placeholder-msg {
    color: var(--text-dim);
    text-align: center;
    font-size: 14px;
}

.result-payload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.result-type-tag {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 700;
}

.prob-bars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.prob-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prob-label {
    width: 140px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prob-track {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.prob-value {
    width: 60px;
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: right;
}

/* Agent Action Pipeline Status */
.pipeline-status {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
}

.status-node {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.status-node.triggered {
    color: var(--accent-cyan);
}

/* ==========================================================================
   Architecture Deep Dive Panel
   ========================================================================== */
#arch-view {
    padding: 36px;
}

.arch-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-icon {
    font-size: 24px;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    background: rgba(10, 13, 20, 0.9);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-dim);
}

.footer-right {
    display: flex;
    gap: 14px;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
}
