/* ── Small Buttons (shared across modals) ── */
        .btn-sm {
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 600;
            font-family: var(--font-primary);
            border-radius: var(--r-sm);
            cursor: pointer;
            border: 1px solid var(--map-border);
            background: transparent;
            color: var(--grey-300);
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        .btn-sm:hover { background: rgba(255,255,255,0.06); color: var(--white); }
        .btn-sm.success {
            color: var(--blue-muted);
            border-color: rgba(128,191,255,0.3);
        }
        .btn-sm.success:hover {
            background: rgba(128,191,255,0.10);
            border-color: var(--blue-muted);
            color: var(--white);
        }
        .btn-sm.danger { color: var(--error); border-color: rgba(229,73,58,0.3); }
        .btn-sm.danger:hover { background: rgba(229,73,58,0.1); }

        /* ── Status Bar ────────────────────────────── */
        .status-bar {
            position: absolute;
            bottom: var(--sp-4);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(16,26,33,0.92);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: var(--r-md);
            padding: var(--sp-2) var(--sp-4);
            font-size: 11px;
            color: var(--map-label);
            z-index: 10;
            display: flex;
            align-items: center;
            gap: var(--sp-3);
            white-space: nowrap;
        }

        .status-bar .sep {
            width: 1px;
            height: 12px;
            background: var(--map-border);
        }

        .status-bar .coord {
            color: var(--grey-300);
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 400;
        }

        .status-bar .count {
            color: var(--blue-muted);
            font-weight: 600;
        }

        .status-bar .draw-status {
            font-weight: 600;
        }
        .status-bar .draw-status.active {
            color: var(--coral);
        }

        /* ── MapLibre Overrides ────────────────────── */
        .maplibregl-map {
            font-family: var(--font-primary) !important;
        }
        .maplibregl-ctrl,
        .maplibregl-ctrl-attrib,
        .maplibregl-marker {
            font-family: var(--font-primary) !important;
        }
        .maplibregl-ctrl-group {
            background: rgba(16,26,33,0.92) !important;
            border: 1px solid rgba(255,255,255,0.06) !important;
            border-radius: var(--r-md) !important;
            backdrop-filter: blur(12px);
            box-shadow: none !important;
        }

        .maplibregl-ctrl-group button {
            border-color: var(--map-border) !important;
        }

        .maplibregl-ctrl-group button:hover {
            background: rgba(255,255,255,0.06) !important;
        }

        .maplibregl-ctrl-group button + button {
            border-top: 1px solid var(--map-border) !important;
        }

        .maplibregl-ctrl button .maplibregl-ctrl-icon {
            filter: invert(0.7);
        }

        .maplibregl-popup-content {
            background: var(--slate-800) !important;
            color: var(--grey-100) !important;
            font-family: var(--font-primary) !important;
            font-size: 13px !important;
            border: 1px solid var(--map-border) !important;
            border-radius: var(--r-md) !important;
            padding: var(--sp-3) var(--sp-4) !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
        }

        .maplibregl-popup-tip {
            border-top-color: var(--slate-800) !important;
        }

        /* ── Drawing hint animation ────────────────── */
        @keyframes pulse-coral {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .draw-hint {
            animation: pulse-coral 1.5s ease-in-out infinite;
            color: var(--coral);
        }
        .draw-hint kbd {
            display: inline-block;
            padding: 1px 5px;
            font-size: 10px;
            font-family: inherit;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 3px;
            color: var(--coral);
            line-height: 1.4;
        }
    
        /* ── Inline SVG Icon System ─────────────────── */
        .i {
            display: inline-block;
            width: 1em; height: 1em;
            vertical-align: -0.125em;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.75;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
            pointer-events: none;
        }
        .i-lg { width: 1.25em; height: 1.25em; }
        .i-xl { width: 1.5em; height: 1.5em; }
        .i-2x { width: 2em; height: 2em; }

        /* Asset type icons in filter bar */
        .filter-toggle .i {
            width: 19px; height: 19px;
            vertical-align: middle;
        }
        /* Toolbar button icons */
        .map-toolbar .mt-btn .i {
            width: 15px; height: 15px;
            display: block;
        }
        /* Empty state icons */
        .empty-state .i {
            width: 36px; height: 36px;
            stroke-width: 1.25;
        }
        /* Detail card inline icons */
        .detail-geometry .i {
            width: 14px; height: 14px;
            vertical-align: -0.15em;
        }
