
        /* Base Variables (Dark Mode) */
        :root {
           --bg-color: #f8fafc;
            --glass-bg: rgba(255, 255, 255, 0.8);
            --glass-border: rgba(15, 23, 42, 0.08);
            --text: #0f172a;
            --text-muted: #475569;
            --green: #008d57;
            --red: #cf222e;
            --yellow: #856404;
            --border: rgba(226, 232, 240, 0.8);
            --header-accent: rgba(241, 245, 249, 0.9);
            --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
            --tooltip-bg: rgba(255, 255, 255, 0.95);
            --indicator-color: #0f172a;
            --chart-grid: rgba(15, 23, 42, 0.05);
        }

        /* Light Mode Overrides */
        body.dark-mode {
             --bg-color: #0b0e11;
            --glass-bg: rgba(15, 23, 42, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
            --text: #eaecef;
            --text-muted: #64748b;
            --green: #02c076;
            --red: #f84960;
            --yellow: #facc15;
            --border: rgba(30, 41, 59, 0.7);
            --header-accent: rgba(30, 41, 59, 0.5);
            --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            --tooltip-bg: rgba(15, 23, 42, 0.95);
            --indicator-color: #ffffff;
            --chart-grid: rgba(255, 255, 255, 0.05);
        }

        body { 
            font-family: 'Inter', sans-serif; 
            background: var(--bg-color); 
            color: var(--text); 
            /* padding: 1rem;  */
            transition: background 0.3s ease, color 0.3s ease;
        }
        @media (min-width: 768px) {
             body { padding: 2rem; }
        }

        .glass-card { 
            background: var(--glass-bg); 
            backdrop-filter: blur(16px); 
            border: 1px solid var(--glass-border); 
            border-radius: 20px; 
            padding: 20px; 
            box-shadow: var(--card-shadow); 
        }
        
        .top-section { margin-bottom: 25px; }
        
        .speedometer-wrap { 
            width: 100%; max-width: 350px; height: 180px; 
            background: rgba(125,125,125,0.03); 
            border-radius: 15px; border: 1px solid var(--glass-border); 
            padding: 15px; display: flex; flex-direction: column; 
            align-items: center; justify-content: center; position: relative; margin: 0 auto;
        }
        
        #gas-status-label {
            font-family: 'JetBrains Mono'; font-weight: 800; font-size: 1.1rem;
            margin-bottom: 2px; text-transform: uppercase;
        }
        
        .gas-stat-card { background: rgba(125,125,125,0.05); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; text-align: center; height: 100%; }
        .gas-stat-card h6 { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
        .gas-stat-card .val { font-size: 1.3rem; font-weight: 800; font-family: 'JetBrains Mono'; }
        .gas-stat-card.low .val { color: var(--green); }
        .gas-stat-card.avg .val { color: var(--yellow); }
        .gas-stat-card.high .val { color: var(--red); }
        
        .timer-wrap { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono'; text-align: right; margin-bottom: 10px; }

        .chart-container { display: flex; gap: 10px; align-items: stretch; }
        .table-wrap { flex-grow: 1; overflow-x: auto; }
        
        .line-chart-wrap { width: 100%; height: 280px; margin-bottom: 30px; padding: 15px; background: rgba(125,125,125,0.03); border-radius: 15px; border: 1px solid var(--glass-border); }
        .gas-bar-container { width: 50px; display: flex; flex-direction: column; align-items: center; position: relative; padding: 10px 0; border-left: 1px solid var(--glass-border); }
        .gas-bar { width: 10px; height: 100%; border-radius: 5px; background: linear-gradient(to top, var(--green), var(--yellow), var(--red)); position: relative; }
        
        #indicator {
            position: absolute; width: 35px; height: 2px; background: var(--indicator-color); left: -12px;
            box-shadow: 0 0 10px var(--indicator-color); transition: bottom 0.2s ease-out; bottom: 0%;
        }
        #indicator-val {
            position: absolute; right: 40px; top: -8px; font-size: 0.65rem;
            color: var(--text); font-family: 'JetBrains Mono'; white-space: nowrap; opacity: 0; transition: opacity 0.2s;
        }
        .bar-label { font-size: 0.55rem; color: var(--text-muted); font-family: 'JetBrains Mono'; margin-bottom: 2px; text-align: center; }
        .max-num { color: var(--red); font-weight: bold; margin-bottom: 5px; }

        table { border-collapse: separate; border-spacing: 2px; width: 100%; position: relative; z-index: 2; }
        @media (min-width: 768px) { table { min-width: 800px; } }

        th, td { padding: 4px 2px; text-align: center; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; transition: transform 0.2s; cursor: crosshair; color: var(--text); }
        @media (min-width: 768px) { th, td { padding: 8px 4px; text-align: center; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; transition: transform 0.2s; cursor: crosshair; color: var(--text); } }
        td:hover { transform: scale(1.1); z-index: 10; box-shadow: 0 0 10px rgba(125,125,125,0.2); }

        .row-label, .hdr-day { background: var(--header-accent) !important; font-weight: 800; border: 1px solid var(--border); }
        
        .dot { width: 10px; height: 10px; background-color: var(--green); border-radius: 50%; display: inline-block; position: relative; }
        .dot::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
        
        .live-cell {
            position: relative; animation: live-glow 2s infinite alternate;
            border: 1.5px solid var(--text) !important; font-weight: bold;
        }
        @keyframes live-glow {
            0% { box-shadow: inset 0 0 5px rgba(125,125,125,0.1); }
            100% { box-shadow: inset 0 0 15px rgba(125,125,125,0.3); }
        }
        @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
        
        #custom-tooltip {
            position: fixed; display: none; padding: 8px 12px; background: var(--tooltip-bg);
            border: 1px solid var(--glass-border); color: var(--text); border-radius: 8px; font-size: 0.75rem;
            font-family: 'JetBrains Mono'; pointer-events: none; z-index: 1000;
            box-shadow: var(--card-shadow); backdrop-filter: blur(4px);
        }

        .theme-toggle {
            cursor: pointer; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--glass-border);
            background: var(--header-accent); color: var(--text); font-size: 0.75rem; font-weight: bold;
        }
 