        :root {
            --sidebar-width: 485px;
            --primary-dark: #0f172a;
            --card-bg: #1e293b;
            --accent-fire: #ef4444;
        }
        body,
        html {
            height: 100%;
            margin: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #090d16;
            color: #f8fafc;
            overflow: hidden;
        }
        .wrapper {
            display: flex;
            height: 100vh;
            width: 100vw;
        }
        .sidebar {
            width: var(--sidebar-width);
            max-width: 90vw;
            background-color: var(--primary-dark);
            border-right: 1px solid #334155;
            display: flex;
            flex-direction: column;
            z-index: 99999 !important;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
            overflow-x: hidden;
            position: fixed !important;
            left: 0;
            top: 0;
            height: 100vh !important;
            height: 100dvh !important;
            -webkit-transform: translate3d(-100%, 0, 0) !important;
            transform: translate3d(-100%, 0, 0) !important;
            -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
        }
        .sidebar.mobile-open {
            -webkit-transform: translate3d(0, 0, 0) !important;
            transform: translate3d(0, 0, 0) !important;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6) !important;
        }
        .sidebar-header {
            padding: 1.1rem 1.25rem;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-bottom: 1px solid #334155;
        }
        .sidebar-body {
            padding: 1.1rem;
            overflow-y: auto;
            overflow-x: hidden;
            flex: 1;
        }
        .map-container {
            width: 100vw !important;
            flex: none !important;
            height: 100vh !important;
            height: 100dvh !important;
            position: relative;
        }
        #map {
            width: 100%;
            height: 100%;
            background-color: #e2e8f0;
        }
        .mode-tab-group {
            display: flex;
            background-color: #020617;
            padding: 4px;
            border-radius: 8px;
            border: 1px solid #334155;
            margin-bottom: 1rem;
        }
        .mode-tab {
            flex: 1;
            text-align: center;
            padding: 6px 4px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #94a3b8;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            background: transparent;
        }
        .mode-tab.active {
            background-color: #ef4444;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        }
        .gis-card {
            background-color: var(--card-bg);
            border: 1px solid #334155;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        .gis-card-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: #cbd5e1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .layer-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.6rem 0.85rem;
            margin-bottom: 0.45rem;
            background-color: #0f172a;
            border: 1px solid #334155;
            color: #e2e8f0;
            border-radius: 8px;
            font-size: 0.82rem;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .layer-btn:hover,
        .layer-btn.active {
            background-color: #2563eb;
            border-color: #3b82f6;
            color: #ffffff;
        }
        .layer-btn.active-risk {
            background-color: #dc2626 !important;
            border-color: #ef4444 !important;
        }
        .layer-btn.active-heatmap {
            background-color: #ea580c !important;
            border-color: #f97316 !important;
            box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
        }
        .layer-btn.active-burnscar {
            background-color: #7c3aed !important;
            border-color: #8b5cf6 !important;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
        }
        .layer-btn.active-ndwi {
            background-color: #0284c7 !important;
            border-color: #38bdf8 !important;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
        }
        .layer-btn.active-ndvi {
            background-color: #16a34a !important;
            border-color: #4ade80 !important;
            box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
        }
        .layer-btn.active-fc {
            background-color: #d97706 !important;
            border-color: #fbbf24 !important;
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
        }
        .floating-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 999;
            background: rgba(255, 255, 255, 0.94);
            color: #0f172a;
            backdrop-filter: blur(8px);
            border: 1px solid #cbd5e1;
            padding: 0.75rem 1.25rem;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        }
        .bottom-right-controls {
            position: absolute;
            bottom: 25px;
            right: 20px;
            z-index: 999;
            display: flex;
            align-items: flex-end;
            gap: 12px;
            max-width: calc(100vw - 40px);
            pointer-events: none;
        }
        .visitor-stats-panel,
        .map-legend {
            pointer-events: auto;
            background: rgba(15, 23, 42, 0.92);
            color: #f8fafc;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 0.75rem 0.9rem;
            border-radius: 12px;
            font-size: 0.76rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
        }
        .map-legend {
            max-width: 280px;
        }
        .visitor-stats-panel {
            width: 235px;
        }
        .stats-header,
        .legend-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
            gap: 8px;
        }
        .stats-header h6,
        .legend-header h6 {
            margin: 0;
            font-size: 0.8rem;
            font-weight: 700;
        }
        .stats-toggle-icon,
        .legend-toggle-icon {
            font-size: 0.75rem;
            color: #94a3b8;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }
        .visitor-stats-panel.collapsed #statsItems,
        .map-legend.collapsed #legendItems {
            display: none !important;
        }
        .visitor-stats-panel.collapsed .stats-toggle-icon,
        .map-legend.collapsed .legend-toggle-icon {
            transform: rotate(-180deg);
        }
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }
        .stat-box {
            background: rgba(2, 6, 23, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 6px 8px;
            text-align: center;
        }
        .stat-label {
            font-size: 0.65rem;
            color: #94a3b8;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }
        .stat-value {
            font-size: 0.85rem;
            font-weight: 700;
            font-family: monospace;
            line-height: 1.1;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
            word-break: break-word;
        }
        .legend-item:last-child {
            margin-bottom: 0;
        }
        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 3px;
            flex-shrink: 0;
        }
        .evalscript-editor {
            background-color: #090d16;
            color: #38bdf8;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.85rem;
            border-radius: 6px;
            border: 1px solid #334155;
            padding: 1rem;
            resize: vertical;
        }
        .progress-thin {
            height: 8px;
            border-radius: 4px;
            background-color: #334155;
        }
        .neon-district-border {
            filter: drop-shadow(0 0 8px #38bdf8) drop-shadow(0 0 16px #0284c7);
            stroke-linejoin: round;
            stroke-linecap: round;
        }
        .neon-district-badge {
            background-color: rgba(15, 23, 42, 0.92) !important;
            border: 1px solid #38bdf8 !important;
            color: #38bdf8 !important;
            font-weight: bold !important;
            font-family: monospace !important;
            border-radius: 6px !important;
            padding: 4px 8px !important;
            box-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
        }
        .sidebar-nav-tabs {
            display: flex !important;
            align-items: center !important;
            background: #090d16 !important;
            border-bottom: 1px solid #1e293b !important;
            overflow-x: auto !important;
            white-space: nowrap !important;
            flex-wrap: nowrap !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
            width: 100% !important;
        }
        .sidebar-nav-tabs::-webkit-scrollbar {
            display: none !important;
        }
        .sidebar-nav-tabs .tab-btn {
            background: transparent !important;
            border: none !important;
            border-bottom: 2px solid transparent !important;
            color: #94a3b8 !important;
            font-size: 0.68rem !important;
            font-weight: 700 !important;
            padding: 10px 6px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 1 !important;
            gap: 4px !important;
            letter-spacing: 0.3px !important;
            flex-shrink: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }
        .sidebar-nav-tabs .tab-btn:hover {
            color: #f8fafc !important;
            background: rgba(255, 255, 255, 0.04) !important;
        }
        .sidebar-nav-tabs .tab-btn.active {
            color: #38bdf8 !important;
            border-bottom: 2px solid #38bdf8 !important;
            background: rgba(56, 189, 248, 0.12) !important;
        }
        .top-right-header-bar {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: flex-end !important;
            position: absolute !important;
            top: 16px !important;
            right: 16px !important;
            z-index: 99980 !important;
            gap: 8px !important;
            pointer-events: auto;
        }
        .top-right-zoom-box {
            position: absolute !important;
            top: 76px !important;
            right: 16px !important;
            z-index: 99980 !important;
            pointer-events: auto;
        }
        .mobile-sidebar-toggle {
            display: flex !important;
            background-color: #ef4444;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.88rem;
            box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
            cursor: pointer !important;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
            pointer-events: auto !important;
            transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
        }
        .mobile-sidebar-toggle:hover {
            background-color: #dc2626;
            transform: scale(1.03);
        }
        .glossary-legend-toggle {
            display: flex !important;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #f8fafc;
            border: 1px solid rgba(56, 189, 248, 0.4);
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.88rem;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
            cursor: pointer !important;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
            pointer-events: auto !important;
            transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
        }
        .glossary-legend-toggle:hover {
            background-color: #1e293b;
            border-color: #38bdf8;
            color: #ffffff;
            transform: scale(1.03);
        }
        .doc-sikarhutla-toggle {
            display: flex !important;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #f8fafc;
            border: 1px solid rgba(239, 68, 68, 0.5);
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.88rem;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
            cursor: pointer !important;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
            pointer-events: auto !important;
            text-decoration: none !important;
            transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
        }
        .doc-sikarhutla-toggle:hover {
            background-color: #1e293b;
            border-color: #ef4444;
            color: #ffffff;
            transform: scale(1.03);
        }
        .top-right-branding {
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 5px 12px;
            border-radius: 20px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            text-decoration: none !important;
        }
        .top-right-branding:hover {
            transform: scale(1.04);
            border-color: rgba(56, 189, 248, 0.6);
        }
        .jitara-logo-box {
            background-color: #ffffff;
            padding: 3px 8px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        }
        .jitara-logo-img {
            height: 24px !important;
            max-height: 24px !important;
            width: auto !important;
            object-fit: contain;
            display: block;
        }
        .leaflet-top.leaflet-right {
            top: 76px !important;
            right: 16px !important;
        }
        .leaflet-top.leaflet-right .leaflet-control-zoom,
        #topRightZoomBox .leaflet-control-zoom {
            border: 1px solid rgba(56, 189, 248, 0.4) !important;
            background: rgba(15, 23, 42, 0.90) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            border-radius: 10px !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
            overflow: hidden !important;
            margin: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            width: fit-content !important;
        }
        .leaflet-top.leaflet-right .leaflet-control-zoom a,
        #topRightZoomBox .leaflet-control-zoom a {
            background-color: transparent !important;
            color: #38bdf8 !important;
            border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
            width: 36px !important;
            height: 34px !important;
            line-height: 32px !important;
            font-size: 1.15rem !important;
            font-weight: 700 !important;
            text-align: center !important;
            text-decoration: none !important;
            transition: background-color 0.2s ease, color 0.2s ease !important;
        }
        .leaflet-top.leaflet-right .leaflet-control-zoom a:last-child,
        #topRightZoomBox .leaflet-control-zoom a:last-child {
            border-bottom: none !important;
        }
        .leaflet-top.leaflet-right .leaflet-control-zoom a:hover,
        #topRightZoomBox .leaflet-control-zoom a:hover {
            background-color: #1e293b !important;
            color: #ffffff !important;
        }
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: transparent;
            z-index: 99990 !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            pointer-events: none !important;
        }
        .mobile-overlay.show {
            display: none !important;
            pointer-events: none !important;
        }
        .mobile-sidebar-close {
            display: flex;
            align-items: center;
            gap: 5px;
            background-color: #dc2626;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer !important;
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
            transition: all 0.2s ease;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
            user-select: none;
            -webkit-user-select: none;
            pointer-events: auto !important;
        }
        .mobile-sidebar-close:active {
            transform: scale(0.95);
            background-color: #b91c1c;
        }
        @media (max-width: 768px) {
            .sidebar {
                position: fixed !important;
                left: 0;
                top: 0;
                height: 100vh !important;
                height: 100dvh !important;
                width: 88vw !important;
                max-width: 400px !important;
                -webkit-transform: translate3d(-100%, 0, 0) !important;
                transform: translate3d(-100%, 0, 0) !important;
                -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 99999 !important;
                will-change: transform;
            }
            .sidebar-header {
                padding-top: max(1.1rem, env(safe-area-inset-top, 1.1rem));
                padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
            }
            .sidebar.mobile-open {
                -webkit-transform: translate3d(0, 0, 0) !important;
                transform: translate3d(0, 0, 0) !important;
                box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6) !important;
            }
            .map-container {
                width: 100vw !important;
                flex: none !important;
                height: 100vh !important;
                height: 100dvh !important;
            }
            .mobile-sidebar-toggle {
                display: flex !important;
                transition: opacity 0.2s ease;
            }
            .sidebar.mobile-open~.map-container .mobile-sidebar-toggle,
            .sidebar.mobile-open~#mobileSidebarToggle,
            .sidebar.mobile-open~.top-right-controls,
            .sidebar.mobile-open~#topRightControls {
                opacity: 0 !important;
                pointer-events: none !important;
                transition: opacity 0.25s ease;
            }
            .sidebar-nav-tabs {
                display: flex;
                align-items: center;
                background: #0b1120;
                border-bottom: 1px solid #1e293b;
                overflow-x: auto;
                white-space: nowrap;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .sidebar-nav-tabs::-webkit-scrollbar {
                display: none;
            }
            .sidebar-nav-tabs .tab-btn {
                background: transparent;
                border: none;
                border-bottom: 2px solid transparent;
                color: #94a3b8;
                font-size: 0.68rem;
                font-weight: 700;
                padding: 9px 12px;
                cursor: pointer;
                transition: all 0.2s ease;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                letter-spacing: 0.3px;
            }
            .sidebar-nav-tabs .tab-btn:hover {
                color: #f8fafc;
                background: rgba(255, 255, 255, 0.04);
            }
            .sidebar-nav-tabs .tab-btn.active {
                color: #38bdf8 !important;
                border-bottom-color: #38bdf8 !important;
                background: rgba(56, 189, 248, 0.12) !important;
            }
            .bottom-right-controls {
                bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
                right: max(8px, env(safe-area-inset-right, 8px)) !important;
                left: auto !important;
                flex-direction: column !important;
                align-items: flex-end !important;
                gap: 8px !important;
                max-width: calc(100vw - 16px) !important;
            }
            .visitor-stats-panel,
            .map-legend {
                width: auto !important;
                max-width: calc(100vw - 16px) !important;
                font-size: 0.68rem !important;
                padding: 6px 10px !important;
                border-radius: 10px !important;
            }
            .stats-header h6,
            .legend-header h6 {
                font-size: 0.72rem !important;
                line-height: 1.25 !important;
            }
            .stats-grid {
                gap: 5px !important;
            }
            .stat-box {
                padding: 4px 6px !important;
            }
            .stat-value {
                font-size: 0.78rem !important;
            }
            .legend-item {
                gap: 6px !important;
                margin-bottom: 3px !important;
                font-size: 0.66rem !important;
                line-height: 1.25 !important;
            }
            .legend-color {
                width: 12px !important;
                height: 12px !important;
                border-radius: 3px !important;
                flex-shrink: 0 !important;
            }
            .top-right-header-bar {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100vw !important;
                height: 52px !important;
                max-width: 100vw !important;
                background: #0f172a !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
                padding: 0 12px !important;
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-between !important;
                align-items: center !important;
                z-index: 99985 !important;
                pointer-events: auto !important;
            }
            .mobile-hamburger-btn {
                background: #ef4444 !important;
                color: #ffffff !important;
                padding: 6px 14px !important;
                font-size: 0.85rem !important;
                border-radius: 8px !important;
                border: 1px solid rgba(255, 255, 255, 0.2) !important;
                box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
            }
            .top-right-branding {
                display: flex !important;
                align-items: center !important;
                gap: 5px !important;
                padding: 4px 8px !important;
                border-radius: 8px !important;
                background: rgba(30, 41, 59, 0.8) !important;
                border: 1px solid rgba(255, 255, 255, 0.15) !important;
                flex-shrink: 0 !important;
                height: 34px !important;
            }
            .jitara-logo-box {
                background: #ffffff !important;
                padding: 2px 6px !important;
                border-radius: 6px !important;
                display: flex !important;
                align-items: center !important;
            }
            .jitara-logo-img {
                height: 22px !important;
                width: auto !important;
            }
            .map-container {
                padding-top: 52px !important;
            }
            .top-right-zoom-box,
            .leaflet-top.leaflet-right {
                top: auto !important;
                bottom: 24px !important;
                left: 12px !important;
                right: auto !important;
                z-index: 99980 !important;
            }
        }
        @media (max-width: 480px) {
            .visitor-stats-panel,
            .map-legend {
                max-width: 240px !important;
            }
        }

        .modal-backdrop {
            z-index: 105000 !important;
        }
        .modal {
            z-index: 105005 !important;
        }