
        /* ════════════════════════════════════════════════════
           Tool-specific overrides — Sensor Data Analyzer
           ════════════════════════════════════════════════════ */

        /* ── Sensor type pill group ── */
        .sensor-pill-group {
            display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.25rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 9999px; width: fit-content;
        }
        .sensor-pill {
            padding: 0.5rem 1rem; border-radius: 9999px;
            font-size: 0.8125rem; font-weight: 500; cursor: pointer;
            transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
            border: 1px solid transparent; background: transparent;
            color: rgba(255,255,255,0.45);
        }
        .sensor-pill:hover {
            color: rgba(255,255,255,0.8);
            background: rgba(255,255,255,0.05);
        }

        /* ── Sensor type active/inactive states ── */
        .sensor-type-active,
        .sensor-pill.active {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.2);
            color: white;
        }
        .sensor-type-inactive {
            color: rgba(255,255,255,0.45);
        }
        .sensor-type-inactive:hover {
            color: rgba(255,255,255,0.8);
            background: rgba(255,255,255,0.05);
        }
        /* Color overrides for active sensor type pills */
        .sensor-pill[data-type="vibration"].sensor-type-active,
        .sensor-pill[data-type="vibration"].active {
            background: rgba(0,190,76,0.15);
            border-color: rgba(0,190,76,0.35); color: #00BE4C;
            box-shadow: 0 0 20px rgba(0,190,76,0.10);
        }
        .sensor-pill[data-type="temperature"].sensor-type-active,
        .sensor-pill[data-type="temperature"].active {
            background: rgba(244,63,94,0.15);
            border-color: rgba(244,63,94,0.35); color: #f43f5e;
            box-shadow: 0 0 20px rgba(244,63,94,0.10);
        }
        .sensor-pill[data-type="pressure"].sensor-type-active,
        .sensor-pill[data-type="pressure"].active {
            background: rgba(0,147,222,0.15);
            border-color: rgba(0,147,222,0.35); color: #0093DE;
            box-shadow: 0 0 20px rgba(0,147,222,0.10);
        }
        .sensor-pill[data-type="flow"].sensor-type-active,
        .sensor-pill[data-type="flow"].active {
            background: rgba(251,191,36,0.15);
            border-color: rgba(251,191,36,0.35); color: #fbbf24;
            box-shadow: 0 0 20px rgba(251,191,36,0.10);
        }

        /* ── Filter mode active/inactive states ── */
        .filter-mode-active {
            background: rgba(255,255,255,0.15);
            color: white;
            border: 1px solid rgba(255,255,255,0.25);
        }
        .filter-mode-inactive {
            color: rgba(255,255,255,0.40);
            border: 1px solid transparent;
        }
        .filter-mode-inactive:hover {
            color: rgba(255,255,255,0.70);
            background: rgba(255,255,255,0.06);
        }

        /* ── Stats card fixed height ── */
        .stat-card { min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
        .stat-card-sm { min-height: 76px; display: flex; flex-direction: column; justify-content: center; }

        /* ── Filter mode toggle ── */
        .filter-mode-group {
            display: flex; gap: 0.25rem; padding: 0.1875rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 0.75rem;
        }
        .filter-mode-btn {
            flex: 1; padding: 0.5rem 0.75rem; border-radius: 0.625rem;
            font-size: 0.75rem; font-weight: 600; cursor: pointer;
            transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
            border: 1px solid transparent;
        }

        /* ── ASCII chart container ── */
        .ascii-chart-frame {
            background: rgba(0,0,0,0.25);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 0.75rem;
            padding: 1rem;
            overflow-x: auto;
            font-family: var(--font-mono);
            font-size: 0.8125rem;
            line-height: 1.6;
            white-space: pre;
            min-width: 0;
            position: relative;
            tab-size: 4;
        }
        .chart-scroll-hint {
            display: none; font-size: 0.625rem;
            color: rgba(255,255,255,0.25); letter-spacing: 0.05em;
            margin-top: 0.375rem;
            animation: hint-pulse 2s ease-in-out infinite;
        }
        .chart-scroll-hint.visible {
            display: flex; align-items: center; gap: 0.25rem;
        }
        @keyframes hint-pulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 0.8; }
        }

        /* ── Data table rows (zebra striping) ── */
        .data-row { transition: background 0.15s ease; }
        .data-row:nth-child(even) { background: rgba(255,255,255,0.015); }
        .data-row:hover { background: rgba(255,255,255,0.04); }

        /* ── Number tag for recent values ── */
        .value-tag {
            padding: 0.25rem 0.625rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 0.5rem;
            font-size: 0.75rem;
            font-family: var(--font-mono);
            transition: all 0.2s ease;
        }
        .value-tag:hover {
            background: rgba(255,255,255,0.09);
            border-color: rgba(255,255,255,0.15);
        }
        .value-tag.outlier {
            border-color: rgba(244,63,94,0.3);
            background: rgba(244,63,94,0.1);
            color: #f43f5e;
        }

        /* ── Empty state with subtle dot grid ── */
        .empty-dot-grid {
            background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
            background-size: 16px 16px;
        }

        /* ── Sensor header icon glow ── */
        .sensor-icon-glow {
            filter: drop-shadow(0 0 12px rgba(0,190,76,0.25));
        }

        /* ── Gradient accent bars for stat cards ── */
        .stat-accent-vibration { border-left: 2px solid rgba(0,190,76,0.4); }
        .stat-accent-temperature { border-left: 2px solid rgba(244,63,94,0.4); }
        .stat-accent-pressure { border-left: 2px solid rgba(0,147,222,0.4); }
        .stat-accent-flow { border-left: 2px solid rgba(251,191,36,0.4); }
        .stat-accent-standard { border-left: 2px solid rgba(0,147,222,0.4); }

        /* ── Breadcrumb pill ── */
        .breadcrumb-pill {
            display: inline-flex; align-items: center; gap: 0.375rem;
            padding: 0.375rem 0.875rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 9999px; font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            transition: all 0.2s ease;
            backdrop-filter: blur(12px);
        }
        .breadcrumb-pill:hover {
            color: rgba(255,255,255,0.85);
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.18);
        }

        /* ── Data count row colors ── */
        .count-removed { color: #fbbf24; }
        .count-removed .count-label { color: rgba(251,191,36,0.6); }
        .count-retention { color: #00BE4C; }
        .count-retention .count-label { color: rgba(0,190,76,0.6); }

        /* ── Table header stick + glass ── */
        .table-header-glass th {
            background: rgba(255,255,255,0.04);
            border-bottom: 1px solid rgba(255,255,255,0.10);
            padding: 12px 16px;
            font-size: 0.7rem; text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.50);
            font-weight: 500; text-align: left;
            position: sticky; top: 0; z-index: 10;
        }

