        body { margin:0; padding:0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; }
        #map { position:absolute; top:0; bottom:0; width:100%; }

        .gear-button {
            position: absolute;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            font-size: 28px;
            color: #444;
            transition: all 0.2s ease;
        }
        .gear-button:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 24px rgba(0,0,0,0.2);
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 10000;
            animation: fadeIn 0.3s ease-out;
        }
        .modal-overlay.active {
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }
        @media (min-width: 768px) {
            .modal-overlay.active { align-items: center; }
        }

        
        @media (min-width: 768px) {
            .modal-container {
                width: 680px;
                height: auto;
                max-height: 90vh;
                border-radius: 0;
                box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            }
        }

        .modal-header {
            padding: 0px 0px;
            background: #0066cc;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            flex-shrink: 0;
            min-height: 20px;
        }
        .modal-close {
            background: none;
            border: none;
            font-size: 36px;
            color: white;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            opacity: 0.9;
            transition: opacity 0.2s;
        }
        .modal-close:hover { opacity: 1; }

        .modal-content {
            padding: 0;
            overflow-y: auto;
            flex: 1;
            background: #f8fbff;
        }

        .alert-count {
            background: #e3f2fd;
            color: #0066cc;
            padding: 16px;
            text-align: center;
            font-weight: 600;
            font-size: 16px;
            border-bottom: 1px solid #ddd;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .alert-item {
            background: white;
            border-bottom: 1px solid #e0e0e0;
            padding: 20px 24px;
        }
        .alert-headline {
            font-size: 17px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .alert-event {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        .alert-item:not(.lsr) .alert-event {
            display: none;
        }
        .alert-item.lsr {
            border-left: 5px solid #FF8C00 !important;
        }
        .alert-item.lsr .alert-event {
            color: #FF8C00 !important;
        }

        .alert-description {
            font-size: 15px;
            line-height: 1.7;
            color: #333;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
            white-space: pre-wrap;
        }
        .no-alerts {
            text-align: center;
            padding: 80px 20px;
            color: #888;
            font-size: 17px;
        }

        .lsr-marker-div > div {
            width: 100%;
            height: 100%;
            border: 3px solid #000;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.4);
        }
        .lsr-marker-div:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        .filter-section {
            margin-bottom: 32px;
            background: #f9f9fb;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .section-header {
            padding: 16px 20px;
            background: #ffffff;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }
        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        .section-controls {
            display: flex;
            gap: 12px;
            align-items: center;
            font-size: 14px;
        }
        .section-controls button {
            background: none;
            border: none;
            color: #0066cc;
            cursor: pointer;
            font-weight: 500;
        }
        .section-controls button:hover {
            text-decoration: underline;
        }
        .reset-colors-btn {
            background: #ff3b30;
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            margin: 20px;
        }
        .reset-colors-btn:hover {
            background: #ff1900;
        }

        .section-content {
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 14px;
        }
        .filter-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: white;
            border-radius: 12px;
            transition: background 0.2s;
            box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        }
        .filter-item:hover {
            background: #f0f8ff;
        }
        .filter-item input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: #0066cc;
            flex-shrink: 0;
        }
        .filter-color-picker {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }
        .filter-current-color {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: 2px solid #ddd;
            flex-shrink: 0;
        }
        .filter-label {
            flex: 1;
            font-size: 15px;
            color: #333;
            font-weight: 500;
        }

        .url-override-notice {
            background: #fff3cd;
            padding: 16px;
            border-radius: 12px;
            margin: 20px;
            color: #856404;
            font-weight: 500;
            border: 1px solid #ffeaa7;
        }

        .layer-section {
            margin: 0 20px 32px 20px;
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .layer-section-header {
            padding: 16px 20px;
            background: #f0f8ff;
            border-bottom: 1px solid #ddd;
            font-size: 18px;
            font-weight: 600;
            color: #0066cc;
        }
        .layer-list {
            padding: 12px 0;
        }
        .layer-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            border-bottom: 1px solid #eee;
        }
        .layer-item:last-child {
            border-bottom: none;
        }
        .layer-label {
            font-size: 16px;
            color: #333;
        }
        .layer-toggle {
            width: 52px;
            height: 32px;
            position: relative;
            display: inline-block;
        }
        .layer-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider {
            background-color: #0066cc;
        }
        input:checked + .slider:before {
            transform: translateX(20px);
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes slideUp {
            from { transform: translateY(100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
