        :root {
            --bg-color: #f4f4f9;
            --sidebar-bg: #1a1a1a;
            --text-color: #333;
            --sidebar-text: #f0f0f0;
            --accent-color: #3b82f6;
            --border-color: #ddd;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--text-color);
            background: var(--bg-color);
            margin: 0;
            padding: 0;
            display: flex;
            min-height: 100vh;
        }
        
        /* Layout */
        .layout-container {
            display: flex;
            width: 100%;
        }
        
        /* Sidebar */
        .sidebar {
            width: 260px;
            background: var(--sidebar-bg);
            color: var(--sidebar-text);
            padding: 20px;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }
        
        .brand-logo-container { margin-bottom: 30px; text-align: center; }
        .brand-logo-img { max-width: 180px; height: auto; }
        
        .meta-info { 
            font-size: 0.85rem; 
            color: #888; 
            margin-bottom: 30px; 
            border-bottom: 1px solid #333; 
            padding-bottom: 15px; 
        }
        .meta-info div { margin-bottom: 4px; }
        
        .nav-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
        .nav-item { margin-bottom: 10px; }
        .nav-link { 
            color: var(--sidebar-text); 
            text-decoration: none; 
            display: block; 
            padding: 8px 10px; 
            border-radius: 4px; 
            transition: background 0.2s; 
        }
        .nav-link:hover { background: #333; }
        
        .sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; }
        .glass-link { display: block; color: #888; text-decoration: none; margin-bottom: 8px; }
        .glass-link:hover { color: #fff; }
        
        /* Version Tag in Footer */
        .version-tag {
            display: inline-block;
            font-family: monospace;
            font-size: 0.75rem;
            color: #666;
            margin-left: 8px;
            vertical-align: middle;
        }
        
        /* Main Content */
        .main-content {
            flex-grow: 1;
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .section-block { margin-bottom: 60px; }
        .section-title { 
            font-size: 2em; 
            border-bottom: 2px solid var(--border-color); 
            padding-bottom: 10px; 
            margin-bottom: 25px; 
        }
        
        .grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
            gap: 25px; 
        }
        
        .card { 
            background: #fff; 
            border: 1px solid var(--border-color); 
            padding: 20px; 
            border-radius: 6px; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
            transition: transform 0.2s; 
        }
        .card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .card-meta { font-size: 0.8rem; color: #888; text-transform: uppercase; margin-bottom: 10px; display: block; }
        .card h3 { margin: 0 0 10px 0; font-size: 1.25rem; line-height: 1.4; }
        .card h3 a { color: var(--text-color); text-decoration: none; }
        .card h3 a:hover { color: var(--accent-color); }
        
        /* Debug Overlay */
        .debug-card {
            display: none;
            margin-top: 15px;
            padding: 10px;
            background: #f8f8f8;
            border: 1px solid #ddd;
            font-family: monospace;
            font-size: 0.75rem;
            color: #555;
        }
        body.debug-active .debug-card { display: block; }
        
        /* Modal - Updated for Clean Basic Theme */
        .modal-overlay {
            display: none;
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); /* Lighter backdrop */
            z-index: 1000;
            justify-content: center; align-items: center;
        }
        .modal-content {
            background-color: #ffffff !important; /* Force White modal */
            color: #333333 !important; /* Force Dark text */
            width: 90%; max-width: 900px; height: 85vh;
            overflow-y: auto;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        }
        .modal-close {
            position: absolute; top: 20px; right: 20px;
            font-size: 2rem; border: none; background: none; color: #333; cursor: pointer;
        }
        .modal-close:hover { color: var(--accent-color); }
        
        /* Transparency Report Styles (Clean) */
        .transparency-report { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        
        .report-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
        .report-header h2 { margin: 0 0 10px 0; font-size: 1.8em; color: #333; }
        .report-meta { color: #666; font-size: 0.9em; display: flex; gap: 20px; }
        
        /* Tabs */
        .tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 30px; }
        .tab-link {
            background: none; border: none; padding: 10px 20px;
            font-size: 1rem; color: #666; cursor: pointer;
            border-bottom: 2px solid transparent; margin-bottom: -2px;
            font-weight: 500;
        }
        .tab-link:hover { color: var(--accent-color); }
        .tab-link.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
        
        .tab-pane { display: none; animation: fadeIn 0.3s; }
        .tab-pane.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Stats Grid */
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
        .stat-card { background: #f8f9fa; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #eee; }
        .stat-card.highlight { background: #eff6ff; border-color: #bfdbfe; }
        .stat-value { display: block; font-size: 2rem; font-weight: 700; color: #333; margin-bottom: 5px; }
        .stat-label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }
        .stat-sub { font-size: 0.75rem; color: #888; display: block; margin-top: 5px; }
        
        /* Tables */
        .table-responsive { overflow-x: auto; }
        .data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
        .data-table th { text-align: left; padding: 12px; border-bottom: 2px solid #eee; color: #666; font-weight: 600; }
        .data-table td { padding: 12px; border-bottom: 1px solid #eee; color: #333; }
        .source-name { font-weight: 500; color: #333; }
        .count-pill { display: inline-block; background: #eee; padding: 2px 6px; border-radius: 10px; font-size: 0.75rem; margin-left: 5px; color: #666; }
        
        /* Deltas */
        .delta-pos { color: #16a34a; font-weight: 600; }
        .delta-neg { color: #dc2626; font-weight: 600; }
        .delta-neutral { color: #9ca3af; }
        
        /* Bubble */
        .bubble-group { margin-bottom: 40px; }
        .bubble-section-title { font-size: 1.2rem; color: #333; border-left: 4px solid var(--accent-color); padding-left: 10px; margin-bottom: 15px; }
        .bubble-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
        .bubble-col h4 { font-size: 0.9rem; text-transform: uppercase; color: #666; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
        .bubble-col ul { list-style: none; padding: 0; margin: 0; }
        .bubble-col li { margin-bottom: 8px; font-size: 0.9rem; display: flex; align-items: baseline; }
        /* Fixed width badge */
        .score-badge { 
            background: #eee; color: #555; font-family: monospace; font-size: 0.75rem; 
            padding: 2px 5px; border-radius: 4px; margin-right: 10px; 
            width: 60px; text-align: center; display: inline-block; /* FIXED */
        }
        .bubble-col.in .score-badge { background: #dcfce7; color: #166534; }
        .bubble-col.out .score-badge { background: #fee2e2; color: #991b1b; }
        .empty { color: #ccc; }
        
        /* Mobile */
        @media (max-width: 768px) {
            body { flex-direction: column; }
            .sidebar { width: 100%; height: auto; position: relative; }
            .layout-container { flex-direction: column; }
            .bubble-columns { grid-template-columns: 1fr; gap: 15px; }
        }

:root {
    /* Dark Theme Palette */
    --bg-color: #121212;
    --sidebar-bg: #1a1a1a;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --muted-color: #a0a0a0;
    --border-color: #333333;
    --accent-color: #ff9f43; /* Professional Orange/Amber accent */
    --link-color: #54a0ff;
    --success-color: #1dd1a1;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    
    /* Terminal / Glass Box Colors */
    --term-bg: #0d0d0d; /* Slightly darker than main bg */
    --term-text: #e0e0e0; /* Readable Off-White */
    --term-accent: #0f0; /* Matrix Green for Data */
    --term-border: #005500;
    --term-dim: #333;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: #82ccdd; text-decoration: none; }

.layout-container {
    display: flex;
    width: 100%;
    margin: 0;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 30px 20px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    
    /* Sticky Behavior */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10;
}

.brand-logo-container {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.brand-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.demo-label {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: bold;
}

.meta-info {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-bottom: 30px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 6px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; 
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--accent-color);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid var(--border-color);
}

/* Glass Box Menu Group */
.glass-box-menu {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.glass-box-header {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted-color);
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.glass-link {
    display: block;
    padding: 10px 12px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}
.glass-link:last-child { border-bottom: none; }
.glass-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent-color);
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.github-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.github-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px 60px;
    overflow-x: hidden;
}

.section-block {
    margin-bottom: 80px;
    scroll-margin-top: 20px;
}

.section-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--muted-color);
    font-size: 1rem;
    font-weight: 400;
}

/* Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
}

.card {
    border: 1px solid var(--border-color);
    padding: 24px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
    z-index: 2;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.card h3 {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sizes & Visual Hierarchy */
.card.feature {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #252525, #1e1e1e);
}
.card.feature h3 { font-size: 1.8rem; font-weight: 700; }
.card.feature p { font-size: 1.1rem; -webkit-line-clamp: 6; }

.card.standard {
    grid-column: span 1;
    grid-row: span 2;
}
.card.standard h3 { font-size: 1.3rem; }

.card.compact {
    grid-column: span 1;
    grid-row: span 1;
    padding: 20px;
}
.card.compact h3 { font-size: 1.1rem; }
.card.compact p { -webkit-line-clamp: 3; }


/* Debug Overlay (Scoring Transparency) */
.debug-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    padding: 20px;
    font-size: 0.85rem;
    color: var(--term-text);
    font-family: 'Courier New', monospace;
    border: 1px solid var(--term-border);
    overflow-y: auto;
    z-index: 100;
    border-radius: 8px;
}

body.debug-active .debug-overlay { display: block; }

.debug-section { margin-bottom: 15px; border-bottom: 1px dashed var(--term-dim); padding-bottom: 10px; }
.debug-header { font-weight: bold; color: #fff; margin-bottom: 5px; text-transform: uppercase; }
.debug-row { display: flex; justify-content: space-between; margin-bottom: 3px; }
.debug-row span:first-child { color: var(--muted-color); }


/* --- Glass Box Modal (Source Transparency) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content {
    background: var(--term-bg);
    color: var(--term-text);
    font-family: 'Courier New', monospace;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--term-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    padding: 60px; /* Increased padding */
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--term-text);
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #fff;
}

/* Glass Box Styles */
.glass-box-container h1 { border-bottom: 2px solid var(--term-border); padding-bottom: 1.5rem; margin-bottom: 3rem; color: #fff; font-family: var(--font-family); letter-spacing: -1px; }
.glass-box-container h2 { color: #fff; margin-top: 3rem; border-bottom: 1px dashed var(--term-dim); font-family: var(--font-family); font-weight: 300; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.glass-box-container p { color: var(--muted-color); line-height: 1.6; margin-bottom: 2rem; }

.funnel-container {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--term-dim);
    padding: 2.5rem; /* Increased padding */
    margin-bottom: 3rem; /* Increased margin */
    align-items: flex-start;
    gap: 2rem; /* Add gap between items */
}
.funnel-step { flex: 1; text-align: center; }
.funnel-num { font-size: 2.5rem; /* Larger font */ font-weight: bold; color: var(--term-accent); display: block; margin-bottom: 0.5rem; font-family: var(--font-family); }
.funnel-step small { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
.funnel-sub { font-size: 0.85rem; color: var(--muted-color); display: block; margin-top: 4px; }

table.audit-table { width: 100%; border-collapse: collapse; margin-bottom: 4rem; font-size: 1rem; }
th { text-align: left; border-bottom: 1px solid var(--term-border); padding: 1rem; color: #fff; text-transform: uppercase; font-size: 0.8rem; }
td { border-bottom: 1px solid var(--term-dim); padding: 1rem; color: var(--term-text); }

/* Bias Colors adapted for Dark Mode */
.bias-pos { color: #00ff00; font-weight: bold; } /* Bright Green */
.bias-neg { color: #ff4444; font-weight: bold; } /* Bright Red */

/* Bubble Grid */
.bubble-section { margin-bottom: 4rem; }
.bubble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; /* Increased gap */ }
.bubble-col { padding: 1.5rem; border: 1px solid var(--term-dim); background: rgba(255,255,255,0.02); }
.bubble-in { border-left: 4px solid #00ff00; }
.bubble-out { border-left: 4px solid #ff4444; }
.bubble-header { color: #fff; margin-bottom: 1.5rem; font-weight: bold; font-family: var(--font-family); text-transform: uppercase; font-size: 0.9rem; }
.bubble-item { margin-bottom: 0.75rem; display: flex; align-items: baseline; line-height: 1.4; }
.score-badge { color: var(--term-accent); width: 60px; text-align: right; margin-right: 15px; font-weight: bold; }

/* Responsive */
@media (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .card.feature { grid-column: span 2; }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .main-content { padding: 30px; }
}

@media (max-width: 768px) {
    .layout-container { flex-direction: column; }
    .sidebar { width: auto; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
    .nav-list { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; }
    .nav-link { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .nav-link:hover { border-left-color: transparent; border-bottom-color: var(--accent-color); }
    
    .bento-grid { grid-template-columns: 1fr; }
    .card.feature, .card.standard, .card.compact { grid-column: auto; grid-row: auto; }
    
    /* Mobile Modal */
    .modal-content { height: 100%; width: 100%; border-radius: 0; padding: 20px; }
    .bubble-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .funnel-container { flex-direction: column; gap: 1rem; align-items: center; }
}