
        /* ═══════════════════════════════════════════════════════════════════════════
           SENSOR DATA GENERATOR — Tool-Specific Styles
           ═══════════════════════════════════════════════════════════════════════════ */

        /* ── Tool-specific button: Download CSV (primary emerald) ── */
        .sensor-btn-primary {
            background: rgba(0, 190, 76, 0.14);
            border: 1px solid rgba(0, 190, 76, 0.30);
            color: #00BE4C;
            padding: 10px 28px;
            border-radius: var(--radius-lg);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.23, 1.0, 0.32, 1);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-body);
            box-shadow: 0 0 12px rgba(0, 190, 76, 0.06);
        }
        .sensor-btn-primary:hover {
            background: rgba(0, 190, 76, 0.22);
            border-color: rgba(0, 190, 76, 0.50);
            transform: translateY(-1px);
            box-shadow: 0 0 20px rgba(0, 190, 76, 0.12);
        }
        .sensor-btn-primary:active {
            transform: translateY(0);
        }
        .sensor-btn-primary:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ── Secondary / ghost button ── */
        .sensor-btn-secondary {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.85);
            padding: 9px 22px;
            border-radius: var(--radius-lg);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-body);
        }
        .sensor-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.10);
            border-color: rgba(255, 255, 255, 0.20);
        }

        /* ── Ghost / link-style button ── */
        .sensor-btn-ghost {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.55);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.8125rem;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-family: var(--font-body);
        }
        .sensor-btn-ghost:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.06);
        }
        .sensor-btn-ghost.danger:hover {
            color: #B43A3A;
            background: rgba(180, 58, 58, 0.10);
        }

        /* ── Sensor card ── */
        .sensor-card {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: var(--radius-xl);
            padding: 1.25rem 1.5rem;
            position: relative;
            transition: border-color 0.2s ease;
        }
        .sensor-card:hover {
            border-color: rgba(255, 255, 255, 0.16);
        }

        /* ── Sensor card remove button ── */
        .sensor-remove-btn {
            position: absolute;
            top: 10px;
            right: 12px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.25);
            font-size: 1.1rem;
            line-height: 1;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: all 0.15s ease;
        }
        .sensor-remove-btn:hover {
            color: #B43A3A;
            background: rgba(180, 58, 58, 0.10);
        }

        /* ── Sensor card badge / label ── */
        .sensor-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(255, 255, 255, 0.45);
            margin-bottom: 0.875rem;
        }
        .sensor-badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--emerald);
            box-shadow: 0 0 6px rgba(0, 190, 76, 0.4);
        }

        /* ── Input label override for inline fields ── */
        .field-label {
            display: block;
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: rgba(255, 255, 255, 0.40);
            margin-bottom: 0.375rem;
        }

        /* ── Styled text/num inputs matching site glass style ── */
        .sensor-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.07) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 10px !important;
            padding: 8px 14px !important;
            font-family: var(--font-body);
            font-size: 0.8125rem !important;
            color: #fff;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .sensor-input:focus {
            border-color: rgba(0, 147, 222, 0.60) !important;
            box-shadow: 0 0 0 3px rgba(0, 147, 222, 0.12) !important;
        }
        .sensor-input:hover:not(:focus) {
            border-color: rgba(255, 255, 255, 0.28) !important;
        }
        .sensor-input::placeholder {
            color: rgba(255, 255, 255, 0.25);
        }
        .sensor-input-mono {
            font-family: var(--font-mono) !important;
        }

        /* ── Select matching glass style ── */
        .sensor-select {
            width: 100%;
            background: rgba(255, 255, 255, 0.07) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 10px !important;
            padding: 8px 30px 8px 14px !important;
            font-family: var(--font-body);
            font-size: 0.8125rem !important;
            color: #fff;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 10px center !important;
        }
        .sensor-select:focus {
            border-color: rgba(0, 147, 222, 0.60) !important;
            box-shadow: 0 0 0 3px rgba(0, 147, 222, 0.12) !important;
        }
        .sensor-select:hover:not(:focus) {
            border-color: rgba(255, 255, 255, 0.28) !important;
        }
        .sensor-select option {
            background: #1a1f2e;
            color: #fff;
        }

        /* ── Range / noise slider ── */
        .sensor-range {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.10);
            outline: none;
            transition: background 0.2s;
        }
        .sensor-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #00BE4C;
            cursor: pointer;
            box-shadow: 0 0 6px rgba(0, 190, 76, 0.40);
            transition: box-shadow 0.15s;
        }
        .sensor-range::-webkit-slider-thumb:hover {
            box-shadow: 0 0 12px rgba(0, 190, 76, 0.60);
        }
        .sensor-range::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #00BE4C;
            cursor: pointer;
            border: none;
            box-shadow: 0 0 6px rgba(0, 190, 76, 0.40);
        }

        /* ── Global settings input ── */
        .global-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.07) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 10px !important;
            padding: 9px 14px !important;
            font-family: var(--font-body);
            font-size: 0.8125rem !important;
            color: #fff;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .global-input:focus {
            border-color: rgba(0, 147, 222, 0.60) !important;
            box-shadow: 0 0 0 3px rgba(0, 147, 222, 0.12) !important;
        }
        .global-input:hover:not(:focus) {
            border-color: rgba(255, 255, 255, 0.28) !important;
        }
        .global-select {
            width: 100%;
            background: rgba(255, 255, 255, 0.07) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 10px !important;
            padding: 9px 32px 9px 14px !important;
            font-family: var(--font-body);
            font-size: 0.8125rem !important;
            color: #fff;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
        }
        .global-select:focus {
            border-color: rgba(0, 147, 222, 0.60) !important;
            box-shadow: 0 0 0 3px rgba(0, 147, 222, 0.12) !important;
        }
        .global-select option {
            background: #1a1f2e;
            color: #fff;
        }

        /* ── Preview table ── */
        #previewTable thead th {
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: rgba(255, 255, 255, 0.45);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.625rem 1rem;
        }
        #previewTable tbody td {
            padding: 0.5rem 1rem;
            font-size: 0.8125rem;
            font-family: var(--font-mono);
            color: rgba(255, 255, 255, 0.80);
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }
        #previewTable tbody tr:last-child td {
            border-bottom: none;
        }
        #previewTable tbody tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.015);
        }

        /* ── Preset select ── */
        .preset-select {
            width: 100%;
            background: rgba(255, 255, 255, 0.07) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 10px !important;
            padding: 10px 32px 10px 14px !important;
            font-family: var(--font-body);
            font-size: 0.875rem !important;
            color: #fff;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff88' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
        }
        .preset-select:focus {
            border-color: rgba(0, 147, 222, 0.60) !important;
            box-shadow: 0 0 0 3px rgba(0, 147, 222, 0.12) !important;
        }
        .preset-select option {
            background: #1a1f2e;
            color: #fff;
        }

        /* ── Toast ── */
        .sdg-toast {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(200%);
            -webkit-backdrop-filter: blur(20px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
            border-radius: 16px;
            padding: 12px 20px;
            font-size: 0.875rem;
            color: #fff;
            animation: toast-in 0.3s cubic-bezier(0.23, 1.0, 0.32, 1) forwards;
            font-family: var(--font-body);
        }

        /* ── Preview empty state ── */
        .preview-empty {
            text-align: center;
            padding: 2.5rem 1rem;
            color: rgba(255, 255, 255, 0.30);
            font-size: 0.875rem;
        }
        .preview-empty .empty-state-icon,
        .empty-state-icon {
            width: 32px; height: 32px; margin: 0 auto 10px;
            color: rgba(255,255,255,0.15);
        }

        /* ── Info callout ── */
        .info-callout {
            background: rgba(56, 189, 248, 0.06);
            border: 1px solid rgba(56, 189, 248, 0.14);
            border-radius: var(--radius-lg);
            padding: 1rem 1.25rem;
            font-size: 0.8125rem;
            color: rgba(255, 255, 255, 0.60);
            line-height: 1.6;
        }
        .info-callout strong {
            color: #0093DE;
            font-weight: 500;
        }

        /* ── Preview scroll wrapper ── */
        .preview-scroll {
            overflow-x: auto;
        }

        /* ── Range row value label ── */
        .range-value {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.50);
            min-width: 2.25rem;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        /* ── Sensor count badge in header ── */
        .sensor-count-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.375rem;
            height: 1.375rem;
            padding: 0 0.375rem;
            border-radius: 999px;
            background: rgba(0, 190, 76, 0.14);
            border: 1px solid rgba(0, 190, 76, 0.25);
            font-size: 0.6875rem;
            font-weight: 600;
            color: #00BE4C;
            font-variant-numeric: tabular-nums;
        }

        /* ── Sample limit warning ── */
        .sample-limit-warn {
            color: #fbbf24;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }

        /* ── Responsive ── */
        @media (max-width: 640px) {
            .sensor-grid {
                grid-template-columns: 1fr !important;
            }
            .global-grid {
                grid-template-columns: 1fr 1fr !important;
            }
            .sensor-input, .sensor-select, .global-input, .global-select, .preset-select {
                min-height: 44px;
            }
            .sensor-btn-primary, .sensor-btn-secondary {
                min-height: 44px;
                padding: 10px 20px;
            }
        }

        /* ── Toast animation ── */
        @keyframes toast-in {
            from { opacity: 0; transform: translateY(8px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)   scale(1); }
        }

