
        * { font-family: 'Inter', sans-serif; }

        .header-brand-subtitle {
            color: #64748b;
            display: inline-block;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 5.21px;
            line-height: 1.25;
            text-align: center;
            text-transform: uppercase;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* Map Container */
        #map { height: calc(100vh - 80px); width: 100%; z-index: 1; }

        /* Glassmorphism */
        .glass {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Custom Marker Animations */
        .marker-bpr-wm {
            background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
            animation: pulse-bpr 2s infinite;
        }

        .marker-competitor {
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
        }

        .marker-gunung-rizki {
            background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
            border: 2px solid white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
        }

        .marker-arto-moro {
            background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
            border: 2px solid white;
            box-shadow: 0 4px 12px rgba(20, 184, 166, 0.5);
        }

        .marker-nusamba-cepiring {
            background: linear-gradient(135deg, #2563eb 0%, #f59e0b 100%);
            border: 2px solid white;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
        }

        .marker-potential {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
        }

        .marker-star-base {
            border: 2px solid #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
        }

        .marker-star-bpr {
            background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
        }

        .marker-star-competitor-default {
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
        }

        .marker-star-gunung-rizki {
            background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
        }

        .marker-star-arto-moro {
            background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
        }

        .marker-star-nusamba-cepiring {
            background: linear-gradient(135deg, #2563eb 0%, #f59e0b 100%);
        }

        .marker-star-symbol {
            line-height: 1;
            display: block;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
        }

        .marker-star-symbol.star-bpr {
            font-size: 14px;
        }

        .marker-star-symbol.star-competitor {
            font-size: 12px;
        }

        .map-theme-dark .marker-bpr-wm,
        .map-theme-dark .marker-competitor,
        .map-theme-dark .marker-gunung-rizki,
        .map-theme-dark .marker-arto-moro,
        .map-theme-dark .marker-nusamba-cepiring,
        .map-theme-dark .marker-potential {
            border: none !important;
        }

        .map-theme-dark .marker-star-base.marker-star-bpr {
            transform: scale(1.7);
        }

        .map-theme-dark .marker-star-base.marker-star-competitor {
            transform: scale(1.45);
        }

        .map-theme-dark .marker-star-symbol.star-bpr {
            font-size: 19px !important;
        }

        .map-theme-dark .marker-star-symbol.star-competitor {
            font-size: 16px !important;
        }

        @keyframes pulse-bpr {
            0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
            50% { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6); }
        }

        /* Custom Popup */
        .custom-popup .leaflet-popup-content-wrapper {
            border-radius: 12px;
            padding: 0;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .custom-popup .leaflet-popup-content {
            margin: 0;
            width: 280px !important;
        }

        .point-tooltip {
            background: rgba(15, 23, 42, 0.95);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            padding: 6px 10px;
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
        }

        .point-tooltip::before {
            border-top-color: rgba(15, 23, 42, 0.95) !important;
        }

        .kecamatan-hover-label {
            background: rgba(15, 23, 42, 0.95);
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
            left: 0;
            line-height: 1.2;
            max-width: 240px;
            padding: 6px 10px;
            pointer-events: none;
            position: absolute;
            top: 0;
            transform: translate(12px, -100%);
            white-space: nowrap;
            z-index: 1700;
        }

        .leaflet-interactive:focus {
            outline: none;
        }

        .prospect-stack-marker {
            border: 2px solid #ffffff;
            border-radius: 999px;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
        }

        .prospect-stack-marker span {
            text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
        }

        .prospect-popup .leaflet-popup-content {
            width: 340px !important;
        }

        .prospect-stack-list {
            max-height: 320px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .prospect-ao-group + .prospect-ao-group {
            border-top: 1px solid #e2e8f0;
            margin-top: 12px;
            padding-top: 12px;
        }

        .prospect-ao-heading {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 7px;
        }

        .prospect-ao-dot {
            width: 9px;
            height: 9px;
            border-radius: 999px;
            flex: 0 0 auto;
        }

        .prospect-ao-name {
            color: #0f172a;
            flex: 1;
            font-size: 13px;
            font-weight: 800;
            min-width: 0;
        }

        .prospect-ao-name-button,
        .prospect-popup-ao-button {
            appearance: none;
            border: 0;
            color: #ffffff;
            cursor: pointer;
            flex: 1;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            min-width: 0;
            overflow-wrap: anywhere;
            padding: 6px 9px;
            border-radius: 8px;
            text-align: left;
        }

        .prospect-ao-name-button {
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
        }

        .prospect-popup-ao-button {
            display: block;
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 4px;
            width: 100%;
        }

        .prospect-ao-name-button:hover,
        .prospect-popup-ao-button:hover {
            color: #ffffff;
            filter: brightness(0.94);
            text-underline-offset: 3px;
        }

        .prospect-popup-branch {
            color: #64748b;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 7px;
        }

        .prospect-ao-average {
            margin: 0 0 8px 0;
        }

        .prospect-popup-ao-button + .prospect-ao-average {
            margin-left: 0;
        }

        .prospect-ao-average-card {
            background: #faf5ff;
            border: 1px solid #f0abfc;
            border-radius: 8px;
            color: #581c87;
            padding: 8px 10px;
        }

        .prospect-ao-average-card strong {
            color: #86198f;
            display: block;
            font-size: 18px;
            line-height: 1.1;
            margin-top: 2px;
        }

        .prospect-ao-average-label,
        .prospect-ao-average-meta,
        .prospect-ao-average-range {
            display: block;
            font-size: 11px;
            line-height: 1.25;
        }

        .prospect-ao-average-label {
            font-weight: 800;
            text-transform: uppercase;
        }

        .prospect-ao-average-meta {
            color: #701a75;
            font-weight: 700;
            margin-top: 5px;
        }

        .prospect-ao-average-range {
            color: #7e22ce;
            margin-top: 2px;
        }

        .prospect-ao-count {
            background: #f1f5f9;
            border-radius: 8px;
            color: #475569;
            font-size: 11px;
            font-weight: 800;
            padding: 6px 8px;
            white-space: nowrap;
        }

        .prospect-ao-items {
            display: grid;
            gap: 5px;
        }

        .prospect-ao-item {
            align-items: start;
            display: grid;
            gap: 10px;
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .prospect-ao-prospect {
            color: #334155;
            font-size: 12px;
            line-height: 1.25;
            min-width: 0;
        }

        .prospect-name-button,
        .prospect-popup-name-button {
            appearance: none;
            background: transparent;
            border: 0;
            color: #334155;
            cursor: pointer;
            font: inherit;
            padding: 0;
            text-align: left;
        }

        .prospect-popup-name-button {
            display: block;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 8px;
            width: 100%;
        }

        .prospect-name-button:hover,
        .prospect-popup-name-button:hover {
            color: #c026d3;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .prospect-visit-note {
            grid-column: 1 / -1;
        }

        .prospect-visit-note-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            color: #334155;
            margin-top: 2px;
            padding: 8px 10px;
        }

        .prospect-visit-note-card span {
            color: #64748b;
            display: block;
            font-size: 10px;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 3px;
            text-transform: uppercase;
        }

        .prospect-visit-note-card p + span {
            margin-top: 8px;
        }

        .prospect-visit-note-card p {
            font-size: 12px;
            line-height: 1.35;
            margin: 0;
            white-space: pre-wrap;
        }

        .prospect-ao-date {
            color: #64748b;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.25;
            white-space: nowrap;
        }

        .prospect-filter-list {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            max-height: clamp(230px, 34vh, 340px);
            overflow-y: auto;
            padding: 6px;
        }

        .prospect-report-content {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            max-height: min(62vh, 560px);
            overflow: auto;
        }

        .prospect-report-table {
            border-collapse: separate;
            border-spacing: 0;
            color: #334155;
            font-size: 12px;
            min-width: 640px;
            width: 100%;
        }

        .prospect-report-table thead th {
            background: #111827;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 10px 12px;
            position: sticky;
            text-align: left;
            top: 0;
            z-index: 5;
        }

        .prospect-report-table thead th:nth-child(n + 2) {
            text-align: center;
        }

        .prospect-report-sort-button {
            color: inherit;
            display: block;
            font: inherit;
            text-align: inherit;
            width: 100%;
        }

        .prospect-report-sort-active {
            color: #f9fafb;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .prospect-report-table tbody td {
            border-top: 1px solid #e2e8f0;
            padding: 9px 12px;
            vertical-align: middle;
        }

        .prospect-report-branch-row td {
            background: #fdf2f8;
            border-top: 0;
            box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
            color: #831843;
            padding: 8px 10px;
            position: sticky;
            top: 35px;
            z-index: 4;
        }

        .prospect-report-branch-row span {
            font-size: 11px;
            font-weight: 800;
        }

        .prospect-report-branch-row strong {
            color: #9d174d;
            float: right;
            font-size: 11px;
            font-weight: 800;
            text-align: right;
        }

        .prospect-report-table tbody tr:hover {
            background: #f8fafc;
        }

        .prospect-report-branch-row:hover {
            background: transparent !important;
        }

        .prospect-report-number {
            font-variant-numeric: tabular-nums;
            font-weight: 800;
            text-align: center;
            white-space: nowrap;
        }

        .prospect-report-ao-button {
            color: #334155;
            display: inline-block;
            font: inherit;
            font-weight: 800;
            text-align: left;
        }

        .prospect-report-ao-button:hover {
            color: #c026d3;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .prospect-ao-detail-content {
            max-height: min(70vh, 640px);
            overflow: auto;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin: 20px;
        }

        .prospect-ao-detail-table {
            border-collapse: separate;
            border-spacing: 0;
            color: #334155;
            font-size: 12px;
            min-width: 980px;
            width: 100%;
        }

        .prospect-ao-detail-table thead th {
            background: #111827;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 10px 12px;
            position: sticky;
            text-align: left;
            top: 0;
            z-index: 5;
        }

        .prospect-ao-detail-table tbody td {
            border-top: 1px solid #e2e8f0;
            padding: 9px 12px;
            vertical-align: top;
        }

        .prospect-ao-detail-table tbody td span {
            color: #334155;
            font-size: 12px;
            line-height: 1.35;
            overflow-wrap: anywhere;
            white-space: pre-wrap;
        }

        .prospect-ao-detail-date-row td {
            background: #fdf2f8;
            border-top: 0;
            box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
            color: #831843;
            padding: 8px 10px;
            position: sticky;
            top: 35px;
            z-index: 4;
        }

        .prospect-ao-detail-date-row span,
        .prospect-ao-detail-date-row strong {
            color: #831843;
            font-size: 11px;
            font-weight: 800;
        }

        .prospect-ao-detail-date-row strong {
            float: right;
        }

        .prospect-report-row-muted {
            color: #94a3b8;
        }

        .prospect-report-empty {
            color: #64748b;
            font-size: 12px;
            font-weight: 600;
            padding: 18px !important;
            text-align: center;
        }

        .prospect-control-section {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #ffffff;
            overflow: hidden;
        }

        .prospect-section-toggle {
            align-items: center;
            background: #f8fafc;
            color: #334155;
            display: flex;
            font-size: 12px;
            font-weight: 800;
            justify-content: space-between;
            padding: 10px 11px;
            width: 100%;
        }

        .prospect-section-toggle-filter {
            background: #111827;
            color: #ffffff;
        }

        .prospect-section-toggle-date {
            background: #111827;
            color: #ffffff;
        }

        .prospect-section-toggle-display {
            background: #111827;
            color: #ffffff;
        }

        .prospect-section-toggle-color {
            background: #111827;
            color: #ffffff;
        }

        .prospect-section-filter {
            border-color: #111827;
        }

        .prospect-section-date {
            border-color: #111827;
        }

        .prospect-section-display {
            border-color: #111827;
        }

        .prospect-section-color {
            border-color: #111827;
        }

        .prospect-section-body {
            padding: 10px;
        }

        .prospect-filter-option {
            align-items: center;
            border-radius: 7px;
            cursor: pointer;
            display: flex;
            gap: 8px;
            padding: 6px;
        }

        .prospect-filter-option:hover {
            background: #f8fafc;
        }

        .prospect-filter-branch {
            align-items: center;
            background: #fdf2f8;
            border: 1px solid #fbcfe8;
            border-radius: 0;
            box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
            color: #831843;
            display: flex;
            gap: 8px;
            font-size: 11px;
            font-weight: 800;
            margin: 0 -6px 5px;
            padding: 7px 8px;
            position: sticky;
            top: -6px;
            z-index: 3;
        }

        .prospect-filter-branch span {
            flex: 1;
        }

        .prospect-filter-name {
            color: #334155;
            flex: 1;
            font-size: 12px;
            font-weight: 600;
            min-width: 0;
            overflow: hidden;
            text-align: left;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .prospect-filter-count {
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
        }

        .prospect-color-option {
            align-items: center;
            border-radius: 7px;
            cursor: pointer;
            display: flex;
            gap: 8px;
            padding: 6px;
            text-align: left;
            width: 100%;
        }

        .prospect-color-option:hover {
            background: #f8fafc;
        }

        .prospect-color-option-active {
            background: #fdf2f8;
        }

        .prospect-color-swatch {
            border: 2px solid #ffffff;
            border-radius: 999px;
            box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
            flex: 0 0 auto;
            height: 13px;
            width: 13px;
        }

        .zoom-level-control {
            align-items: stretch;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            box-shadow: 0 1px 5px rgba(15, 23, 42, 0.18);
            display: flex;
            flex-direction: column;
            font-family: 'Inter', sans-serif;
            overflow: hidden;
            width: 34px;
        }

        .zoom-level-value,
        .zoom-level-button {
            align-items: center;
            background: #ffffff;
            display: flex;
            justify-content: center;
            width: 34px;
        }

        .zoom-level-button {
            color: #111827;
            font-size: 18px;
            font-weight: 900;
            height: 30px;
        }

        .zoom-level-value {
            border-bottom: 1px solid #e2e8f0;
            border-top: 1px solid #e2e8f0;
            color: #334155;
            font-size: 12px;
            font-weight: 900;
            height: 26px;
        }

        .zoom-level-button:hover {
            background: #f8fafc;
        }

        /* Stats Card Hover */
        .stat-card {
            transition: all 0.3s ease;
        }
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        /* Sidebar Transition */
        .sidebar {
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-right-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-collapsed {
            width: 0 !important;
            min-width: 0 !important;
            border-right-width: 0 !important;
            overflow: visible !important;
        }

        .sidebar-collapsed > :not(#sidebarToggleButton) {
            display: none !important;
        }

        .prospect-sidebar {
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-left-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .prospect-sidebar-collapsed {
            width: 0 !important;
            min-width: 0 !important;
            border-left-width: 0 !important;
            overflow: visible !important;
        }

        .prospect-sidebar-collapsed > :not(#prospectSidebarToggleButton) {
            display: none !important;
        }

        /* Loading Animation */
        .loading-spinner {
            border: 3px solid #f3f4f6;
            border-top: 3px solid #dc2626;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Heatmap Legend */
        .legend-gradient {
            background: linear-gradient(to right, 
                rgba(37, 99, 235, 0.2), 
                rgba(37, 99, 235, 0.5), 
                rgba(220, 38, 38, 0.7), 
                rgba(220, 38, 38, 1));
            height: 12px;
            border-radius: 6px;
        }

        .kecamatan-name-label-anchor {
            background: transparent !important;
            border: none !important;
        }

        .kecamatan-name-label {
            display: inline-block;
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(99, 102, 241, 0.25);
            border-radius: 6px;
            color: #312e81;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.01em;
            line-height: 1.1;
            padding: 2px 5px;
            text-align: center;
            white-space: nowrap;
            transform: translate(-50%, -50%);
            box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
        }

        .map-theme-dark .kecamatan-name-label {
            background: rgba(15, 23, 42, 0.75);
            border-color: rgba(129, 140, 248, 0.5);
            color: #e0e7ff;
        }

        .kabupaten-name-label-anchor {
            background: transparent !important;
            border: none !important;
        }

        .kabupaten-name-label {
            display: inline-block;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid rgba(29, 78, 216, 0.28);
            border-radius: 7px;
            color: #1e3a8a;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1.1;
            padding: 3px 7px;
            text-align: center;
            white-space: nowrap;
            transform: translate(-50%, -50%);
            box-shadow: 0 1px 8px rgba(15, 23, 42, 0.14);
        }

        .map-theme-dark .kabupaten-name-label {
            background: rgba(15, 23, 42, 0.8);
            border-color: rgba(96, 165, 250, 0.55);
            color: #dbeafe;
        }
    
