        :root {
            --color-bg: #f8f6f2;
            --color-surface: #ffffff;
            --color-border: #e0ddd5;
            --color-text: #2a2622;
            --color-text-soft: #6b6660;
            --color-accent: #d97706;
            --color-success: #059669;
            --color-warning: #dc2626;
            --color-info: #2563eb;
            
            --status-clear: #10b981;
            --status-snow: #60a5fa;
            --status-ice: #a78bfa;
            --status-blocked-tree: #dc2626;
            --status-blocked-power: #f59e0b;
            --status-unknown: #9ca3af;
        }
        
        [v-cloak] {
            display: none;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--color-bg);
            color: var(--color-text);
            overflow: hidden;
        }

        html {
            overflow: hidden;
        }

        #app {
            height: 100vh;
            height: var(--app-height, 100vh);
            display: flex;
            flex-direction: column;
        }

        /* Header */
        /* Legacy header styles - now using .modern-header */
        header:not(.modern-header) {
            background: var(--color-surface);
            border-bottom: 2px solid var(--color-border);
            padding: 1rem 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            z-index: 1000;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-content {
            flex: 1;
        }

        h1:not(.header-title) {
            font-family: 'Crimson Pro', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-text);
            margin-bottom: 0.25rem;
            letter-spacing: -0.02em;
        }

        .subtitle {
            font-size: 0.875rem;
            color: var(--color-text-soft);
            font-weight: 400;
        }
        
        .mail-link {
            padding-top: 20px;
            color: var(--color-text);
            font-weight: 400;
        }

        /* Hamburger Menu Button */
        .hamburger-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            margin-left: 1rem;
            flex-shrink: 0;
        }
        
        .hamburger-btn span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--color-text);
            margin: 5px 0;
            transition: all 0.3s;
        }
        
        /* Main Container */
        .main-container {
            display: flex;
            flex: 1;
            overflow: hidden;
            position: relative;
        }
        
        /* Map Wrapper */
        .map-wrapper {
            flex: 1;
            position: relative;
        }

        #map {
            width: 100%;
            height: 100%;
            background: #e5e3df;
            /* Remove touch-action override - let browser handle touch normally */
        }
        
        /* Loading Indicator */
        .loading-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--color-surface);
            padding: 1.5rem 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            font-size: 1rem;
            font-weight: 600;
            z-index: 1000;
            display: none;
            text-align: center;
        }
        
        .loading-indicator.active {
            display: block;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--color-border);
            border-top-color: var(--color-accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Zoom Level Indicator */
        .zoom-indicator {
            display: none;
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 0.375rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--color-text);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            z-index: 10;
            pointer-events: none;
            font-family: 'DM Sans', monospace;
        }

        @media (max-width: 768px) {
            .zoom-indicator {
                top: 10px;
                left: 10px;
                font-size: 0.75rem;
                padding: 0.25rem 0.5rem;
            }
        }

        /* Sidebar */
        .sidebar {
            width: 380px;
            background: var(--color-surface);
            border-left: 2px solid var(--color-border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        
        .sidebar-header {
            padding: 1rem 1.5rem 0.75rem 1.5rem;
            border-bottom: 1px solid var(--color-border);
            position: relative;
        }

        .sidebar-header h2 {
            font-family: 'Crimson Pro', serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0;
        }

        .sidebar-collapse-btn {
            display: none; /* Hidden on desktop */
            position: absolute;
            top: 1.25rem;
            right: 1rem;
            background: transparent;
            border: none;
            color: var(--color-text);
            cursor: pointer;
            padding: 0.375rem;
            border-radius: 4px;
            transition: background 0.2s;
        }

        .sidebar-collapse-btn:hover {
            background: var(--color-bg-hover);
        }

        .sidebar-collapse-btn svg {
            display: block;
        }
        
        /* Legacy tab styles - tabs removed in favor of header navigation */
        /* .sidebar-tabs {
            display: flex;
            gap: 0.5rem;
        }

        .tab-btn {
            padding: 0.5rem 1rem;
            background: transparent;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s;
            font-family: 'DM Sans', sans-serif;
        }

        .tab-btn:hover {
            background: var(--color-bg);
        }

        .tab-btn.active {
            background: var(--color-text);
            color: var(--color-surface);
            border-color: var(--color-text);
        } */


        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
        }
        
        /* Legend */
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            background: var(--color-bg);
            border-radius: 8px;
            border: 1px solid var(--color-border);
        }
        
        .legend-color {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            border: 2px solid rgba(0,0,0,0.1);
            flex-shrink: 0;
        }
        
        .legend-text {
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        /* Recent Reports */
        .report-group {
            margin-bottom: 1.25rem;
        }

        .report-group-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            padding-bottom: 0.375rem;
            border-bottom: 2px solid var(--color-border);
        }

        .report-card {
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: 0.625rem 0.875rem;
            margin-bottom: 0.5rem;
            margin-left: 0.5rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .report-card:hover {
            background: var(--color-bg-hover);
            border-color: var(--color-text-soft);
        }

        .report-card.expanded {
            border-color: var(--color-text);
            box-shadow: 0 1px 6px rgba(0,0,0,0.06);
        }

        .report-segment-line {
            display: flex;
            align-items: center;
            gap: 0.625rem;
        }

        .report-status-badge {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            flex-shrink: 0;
            position: relative;
            cursor: help;
        }

        /* Tooltip */
        .tooltip {
            position: relative;
        }

        .tooltip:hover::before {
            content: attr(data-tooltip);
            position: absolute;
            left: 50%;
            bottom: calc(100% + 8px);
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 0.375rem 0.625rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            white-space: nowrap;
            z-index: 1000;
            pointer-events: none;
        }

        .tooltip:hover::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: calc(100% + 2px);
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            pointer-events: none;
        }

        .report-location {
            font-weight: 600;
            font-size: 0.9375rem;
            flex: 1;
        }

        .report-time {
            font-size: 0.75rem;
            color: var(--color-text-soft);
            font-weight: 500;
        }

        .report-segment {
            font-size: 0.8125rem;
            color: var(--color-text);
            font-weight: 500;
            flex: 1;
        }

        .report-notes {
            font-size: 0.8125rem;
            color: var(--color-text-soft);
            line-height: 1.5;
            white-space: pre-wrap;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: all 0.25s ease;
        }

        .report-card.expanded .report-notes {
            max-height: 500px;
            opacity: 1;
            margin-top: 0.625rem;
            padding-top: 0.625rem;
            border-top: 1px solid var(--color-border);
        }

        .report-card-actions {
            margin-top: 0.5rem;
            display: flex;
            gap: 0.375rem;
        }

        .report-edit-btn {
            padding: 0.25rem 0.625rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--color-primary);
            background: transparent;
            border: 1px solid var(--color-primary);
            border-radius: 5px;
            cursor: pointer;
            line-height: 1;
        }

        .report-edit-btn:hover {
            background: var(--color-primary);
            color: #fff;
        }
        
        /* Search Box */
        .search-box {
            position: relative;
            margin-bottom: 1rem;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            font-size: 0.875rem;
            font-family: 'DM Sans', sans-serif;
            background: var(--color-bg);
            transition: all 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--color-text-soft);
            background: var(--color-surface);
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            margin-top: 0.5rem;
            max-height: 300px;
            overflow-y: auto;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            z-index: 100;
        }
        
        .search-result-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid var(--color-border);
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .search-result-item:hover {
            background: var(--color-bg);
        }
        
        .search-result-name {
            font-weight: 600;
            font-size: 0.875rem;
        }
        
        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 1rem;
        }
        
        .modal {
            background: var(--color-surface);
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--color-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
        }
        
        .modal-header h3 {
            font-family: 'Crimson Pro', serif;
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--color-text-soft);
            padding: 0.25rem;
            line-height: 1;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: all 0.2s;
        }
        
        .modal-close:hover {
            background: var(--color-bg);
        }
        
        .modal-content {
            padding: 1.5rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }
        
        .form-select,
        .form-textarea,
        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            font-size: 0.875rem;
            font-family: 'DM Sans', sans-serif;
            background: var(--color-bg);
            transition: all 0.2s;
        }

        .form-select:focus,
        .form-textarea:focus,
        .form-input:focus {
            outline: none;
            border-color: var(--color-text-soft);
            background: var(--color-surface);
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* Login modal specific */
        .login-error {
            background: #fee2e2;
            color: #dc2626;
            border-radius: 8px;
            padding: 0.625rem 0.875rem;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }

        .login-divider {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.8125rem;
            color: var(--color-text-soft);
            margin: 0.75rem 0;
        }
        .login-divider::before,
        .login-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--color-border);
        }

        .btn-passkey {
            width: 100%;
            padding: 0.75rem;
            background: #2a2622;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 0.9375rem;
            font-weight: 600;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: background 0.2s;
            margin-bottom: 0.75rem;
        }
        .btn-passkey:hover:not(:disabled) { background: #3d3834; }
        .btn-passkey:disabled { opacity: 0.6; cursor: not-allowed; }

        .btn-text {
            background: none;
            border: none;
            color: var(--color-text-soft);
            font-size: 0.875rem;
            cursor: pointer;
            padding: 0;
            margin-bottom: 0.75rem;
            text-decoration: underline;
            font-family: 'DM Sans', sans-serif;
        }

        .nav-link-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
        }
        
        /* Status Button Selection */
        .status-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 0.5rem;
        }

        .status-btn {
            padding: 0.625rem 0.75rem;
            border: 2px solid var(--color-border);
            border-radius: 8px;
            background: var(--color-bg);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.375rem;
            font-family: 'DM Sans', sans-serif;
        }

        .status-btn:hover {
            border-color: var(--color-text-soft);
            background: var(--color-surface);
        }

        .status-btn.selected {
            border-color: #8b8682;
            background: #c3bfbb;
            color: var(--color-text);
        }

        .status-btn-color {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            border: 2px solid rgba(0,0,0,0.1);
        }

        .status-btn.selected .status-btn-color {
            border-color: rgba(0,0,0,0.2);
        }

        .status-btn-label {
            font-weight: 600;
            font-size: 0.8125rem;
            text-align: center;
        }
        
        .segment-info {
            background: var(--color-bg);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border: 1px solid var(--color-border);
        }
        
        .segment-label {
            font-weight: 600;
            font-size: 0.875rem;
            color: var(--color-text-soft);
            margin-bottom: 0.25rem;
        }
        
        .segment-text {
            font-size: 0.9375rem;
        }
        
        .modal-actions {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--color-border);
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
        }
        
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'DM Sans', sans-serif;
        }
        
        .btn-primary {
            background: var(--color-text);
            color: var(--color-surface);
        }
        
        .btn-primary:hover {
            background: var(--color-text-soft);
        }
        
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .btn-secondary {
            background: transparent;
            color: var(--color-text);
            border: 1px solid var(--color-border);
        }
        
        .btn-secondary:hover {
            background: var(--color-bg);
        }
        
        /* Road Selection UI */
        .selection-banner {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-surface);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            z-index: 1000;
            max-width: 90%;
            width: auto;
        }
        
        .selection-header {
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }
        
        .selection-subtitle {
            font-size: 0.875rem;
            color: var(--color-text-soft);
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .selection-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.8125rem;
        }
        
        .empty-state {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--color-text-soft);
        }
        
        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

        /* Mobile Bottom Sheet for Report */
        .mobile-report-sheet {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--color-surface);
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            z-index: 1600;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 50vh;
            overflow: hidden;
        }
        
        .mobile-report-sheet.active {
            transform: translateY(0);
            display: block;
        }
        
        .mobile-sheet-handle {
            width: 40px;
            height: 4px;
            background: var(--color-border);
            border-radius: 2px;
            margin: 0.75rem auto 0.5rem;
        }
        
        .mobile-sheet-content {
            padding: 0 1rem 1.5rem;
            max-height: calc(40vh - 40px);
            overflow-y: auto;
        }

        .mobile-sheet-content .report-card {
            margin-bottom: 0;
            cursor: default;
        }

        .mobile-sheet-content .report-header {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            margin-bottom: 0.625rem;
        }

        .mobile-sheet-content .report-header .report-location {
            flex: 1;
            font-weight: 600;
            font-size: 0.9375rem;
        }

        .mobile-sheet-content .report-header .report-time {
            font-size: 0.75rem;
            color: var(--color-text-soft);
            font-weight: 500;
            white-space: nowrap;
        }

        .mobile-sheet-content .report-header .report-status-badge {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }
        
        .mobile-sheet-content .report-notes {
            max-height: 4.5em; /* ~3 lines */
            overflow-y: auto;
            opacity: 1;
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            border-top: 1px solid var(--color-border);
        }
        
        .mobile-sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1550;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .mobile-sheet-overlay.active {
            opacity: 1;
            pointer-events: none; /* Keep this none - let clicks pass through to map */
        }
        
        /* Mobile Segment Selection Modal */
        .mobile-segment-modal {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--color-surface);
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            z-index: 1600;
            padding: 1.5rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 50vh;
        }
        
        @media (min-width: 769px) {
            .mobile-segment-modal {
                bottom: 50%;
                left: 50%;
                right: auto;
                transform: translate(-50%, 50%) translateY(100%);
                border-radius: 12px;
                max-width: 500px;
                max-height: 60vh;
            }
            
            .mobile-segment-modal.active {
                transform: translate(-50%, 50%);
            }
        }
        
        .mobile-segment-modal.active {
            transform: translateY(0);
        }
        
        .mobile-segment-header {
            font-family: 'Crimson Pro', serif;
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .mobile-segment-subtitle {
            font-size: 0.875rem;
            color: var(--color-text-soft);
            margin-bottom: 1rem;
        }
        
        .mobile-segment-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1rem;
            max-height: 30vh;
            overflow-y: auto;
        }
        
        .mobile-segment-button {
            padding: 0.75rem 1rem;
            background: var(--color-bg);
            border: 2px solid var(--color-border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875rem;
            text-align: left;
        }
        
        .mobile-segment-button.selected {
            border-color: #8b8682;
            background: #c3bfbb;
        }
        
        .mobile-segment-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .mobile-segment-actions .btn {
            flex: 1;
        }
        
        /* Mobile Styles */
        @media (max-width: 768px) {
            .mobile-report-sheet {
                display: block;
            }

            /* Center loading indicator on mobile viewport */
            /* Account for mobile browser chrome (address bar, etc.) */
            .loading-indicator {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                z-index: 2000;
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
            }

            /* Fix tooltip positioning in mobile sheet - show below badge instead of above */
            .mobile-sheet-content .tooltip:hover::before {
                bottom: auto;
                top: calc(100% + 8px);
            }

            .mobile-sheet-content .tooltip:hover::after {
                bottom: auto;
                top: calc(100% + 2px);
                border-top-color: transparent;
                border-bottom-color: rgba(0, 0, 0, 0.9);
            }

            h1 {
                font-size: 1.25rem;
            }
            
            .subtitle {
                font-size: 0.75rem;
            }
            
            header {
                padding: 0.75rem 1rem;
            }
            
            .hamburger-btn {
                display: block;
            }
            
            .sidebar {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                width: 85%;
                max-width: 350px;
                z-index: 1500;
                transform: translateX(100%);
                border-left: 2px solid var(--color-border);
                box-shadow: -4px 0 12px rgba(0,0,0,0.1);
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            /* Sidebar overlay for mobile */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1400;
            }
            
            .sidebar-overlay.active {
                display: block;
            }
            
            .sidebar-header {
                padding: 1rem;
            }

            .sidebar-header h2 {
                font-size: 1.25rem;
            }

            .sidebar-collapse-btn {
                display: block; /* Show on mobile */
            }
            
            .sidebar-content {
                padding: 1rem;
            }
            
            /* Mobile-specific report card styling */
            .report-card.expanded .report-notes {
                max-height: 3em; /* ~2 lines */
                overflow-y: auto;
                padding-right: 0.5rem;
            }
            
            .modal {
                max-width: 100%;
                margin: 0;
                border-radius: 12px 12px 0 0;
                max-height: 85vh;
            }
            
            .modal-header,
            .modal-content,
            .modal-actions {
                padding: 1rem;
            }
            
            /* Compact status buttons for mobile */
            .status-btn {
                padding: 0.5rem;
                gap: 0.25rem;
            }
            
            .status-btn-color {
                width: 28px;
                height: 28px;
            }
            
            .status-btn-label {
                font-size: 0.75rem;
            }
            
            .status-buttons {
                gap: 0.5rem;
            }
            
            .selection-banner {
                top: 10px;
                padding: 0.75rem 1rem;
                max-width: 95%;
            }
            
            .selection-header {
                font-size: 0.9375rem;
            }
            
            .selection-subtitle {
                font-size: 0.8125rem;
            }
        }
        
        @media (max-width: 480px) {
            .modal-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
            
            .selection-actions {
                flex-direction: column;
                width: 100%;
            }
            
            .btn-small {
                width: 100%;
            }
            
            .status-buttons {
                grid-template-columns: repeat(2, 1fr);
            }
        }

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.btn-help {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-help:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-help svg {
    flex-shrink: 0;
}

/* Large Modal */
.modal-large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Clickable coordinate link in report notes */
.location-coords-link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    color: var(--color-info);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.location-coords-link:hover {
    color: var(--color-accent);
}


.location-pick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-location {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    cursor: pointer;
    color: var(--color-text);
}

.btn-location:hover {
    background: var(--color-bg);
}

.location-pick-banner {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.btn-location-cancel {
    font-size: 0.8125rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
}

/* Foreground toast notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1500;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    max-width: 340px;
    width: calc(100% - 3rem);
    pointer-events: none;
}
.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 0.75rem 1rem;
    pointer-events: auto;
    animation: toast-slide-in 0.25s ease;
}
@keyframes toast-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.toast-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toast-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.toast-road {
    flex: 1;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}
.toast-status {
    font-size: 0.8rem;
    color: var(--color-text-soft);
}
.toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-soft);
    padding: 0 0 0 0.25rem;
}
.toast-close:hover { color: var(--color-text); }
.toast-notes {
    margin-top: 0.35rem;
    font-size: 0.825rem;
    color: var(--color-text);
    white-space: pre-wrap;
}

.modal-large h4 {
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-large ol,
.modal-large ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.modal-large li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-large p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.modal-large section {
    margin-bottom: 2rem;
}

.modal-large a {
    color: var(--color-primary);
    text-decoration: none;
}

.modal-large a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for large modal */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* ===== Modern Header Navigation ===== */
.modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.header-logo {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-header .subtitle {
    font-size: 0.8rem;
    color: var(--color-text-soft);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    border: none;
    background: none;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-8px);
    z-index: 100;
    min-width: 280px;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-content {
    padding: 1.5rem;
}

.dropdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
}

/* Legend Dropdown */
.legend-dropdown {
    max-width: 320px;
}

.legend-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-dropdown .legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.legend-dropdown .legend-item:hover {
    background: var(--color-bg);
}

.legend-dropdown .legend-color {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-dropdown .legend-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Notification Bell */
.nav-notification-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-soft);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-notification-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.nav-notification-btn.active {
    color: var(--color-accent);
}

/* Notification Settings Dropdown */
.notification-dropdown {
    min-width: 240px;
}

.notification-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-status-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.notification-status-option:hover {
    background: var(--color-bg);
}

.notification-status-option input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.notification-status-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Notification Toggle Row */
.notification-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.notification-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Slide Toggle */
.slide-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.slide-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.slide-toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    transition: background 0.2s;
    position: relative;
}

.slide-toggle input:checked + .slide-toggle-track {
    background: var(--color-accent);
}

.slide-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slide-toggle input:checked + .slide-toggle-track .slide-toggle-thumb {
    transform: translateX(20px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modern-header {
        padding-top: max(0.875rem, env(safe-area-inset-top, 0.875rem));
        padding-right: max(1rem, env(safe-area-inset-right, 1rem));
        padding-bottom: 0.5rem;
        padding-left: max(1rem, env(safe-area-inset-left, 1rem));
        min-height: 70px;
        height: auto;
        flex-shrink: 0;
        overflow: visible;
    }

    .header-left {
        gap: 0.125rem;
        max-width: calc(100% - 60px);
    }

    .header-logo {
        height: 32px;
    }

    .header-title {
        font-size: 0.9375rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .modern-header .subtitle {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .header-nav {
        display: none;
    }

    .nav-dropdown {
        left: auto;
        right: 0;
        transform: none;
        min-width: 260px;
    }

    .nav-dropdown.active {
        transform: translateY(0);
    }

    .nav-dropdown::before {
        right: 1rem;
        left: auto;
        transform: none;
    }
}

/* Info Dropdown */
.info-dropdown {
    min-width: 400px;
    max-width: 480px;
    left: auto;
    right: 0;
    transform: translateY(-8px);
}

.info-dropdown.active {
    transform: translateY(0);
}

.info-dropdown::before {
    left: auto;
    right: 1rem;
    transform: none;
}

.dropdown-section {
    margin-bottom: 0;
}

.dropdown-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}

.dropdown-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}

.dropdown-text:last-child {
    margin-bottom: 0;
}

.dropdown-text strong {
    font-weight: 600;
    color: var(--color-text);
}

.dropdown-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.dropdown-text a:hover {
    text-decoration: underline;
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.dropdown-action-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.dropdown-action-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.dropdown-action-btn > span:last-child {
    flex: 1;
}

/* Rebuild stats block inside admin dropdown */
.dropdown-rebuild-stats {
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.rebuild-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    padding: 0.2rem 0;
    color: var(--color-text-secondary);
}
.rebuild-stat-label {
    font-weight: 500;
}
.rebuild-stat-value {
    font-variant-numeric: tabular-nums;
}
.mobile-rebuild-stats {
    margin: 0.5rem 1rem 0.75rem;
}

/* Mobile adjustments for info dropdown */
@media (max-width: 768px) {
    .info-dropdown {
        min-width: 320px;
        max-width: 90vw;
    }
}

/* Admin Dropdown — right-aligned because it is the rightmost nav item */
.admin-dropdown {
    left: auto;
    right: 0;
    transform: translateY(-8px);
}

.admin-dropdown.active {
    transform: translateY(0);
}

.admin-dropdown::before {
    left: auto;
    right: 1rem;
    transform: none;
}

/* ===== Mobile Menu ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: var(--app-height, 100vh);
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
}

.mobile-menu-header h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-soft);
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-menu-item {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    text-align: left;
}

.mobile-menu-item:hover {
    background: var(--color-bg);
}

.mobile-menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mobile-menu-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.mobile-menu-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.mobile-submenu .legend-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-submenu .legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.mobile-submenu .legend-color {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
}

.mobile-submenu .legend-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
}

.mobile-info-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-info-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s;
    text-decoration: none;
}

.mobile-info-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.mobile-info-btn span {
    font-size: 1.125rem;
}

.mobile-info-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0;
}

.mobile-info-section {
    padding: 0;
}

.mobile-info-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.mobile-info-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0.5rem 0;
}

.mobile-info-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.mobile-info-section a:hover {
    text-decoration: underline;
}

.mobile-menu-static-section {
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.mobile-menu-static-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
}

.mobile-menu-static-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0.5rem 0;
}

.mobile-menu-static-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.mobile-menu-static-section a:hover {
    text-decoration: underline;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ── Confirmed badge ────────────────────────────────────────────────── */
.badge-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #059669;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Mobile sheet edit action ───────────────────────────────────────── */
.mobile-sheet-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

/* ── btn-sm ─────────────────────────────────────────────────────────── */
.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
}

/* ── btn-danger ─────────────────────────────────────────────────────── */
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
}
.btn-danger:hover { background: #b91c1c; }

/* ── User Settings modal overrides ─────────────────────────────────── */
.modal-settings {
    max-width: 480px;
    width: 100%;
}

.settings-section {
    margin-bottom: 0.25rem;
}

.settings-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-soft);
    margin-bottom: 0.875rem;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.25rem 0;
}

.settings-error {
    font-size: 0.8125rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.625rem;
}

.settings-success {
    font-size: 0.8125rem;
    color: #065f46;
    background: #d1fae5;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.625rem;
}

.settings-action-row {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.settings-action-btn {
    flex: 1 1 auto;
    text-align: center;
    text-decoration: none;
}

/* ── First Responder status badges (settings modal) ────────────────── */
.fr-status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.fr-badge-confirmed { background: #d1fae5; color: #065f46; }
.fr-badge-idme      { background: #dbeafe; color: #1e40af; }
.fr-badge-pending   { background: #fef3c7; color: #92400e; }
.settings-hint {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin: 0 0 0.5rem;
}

/* ── form-input (used in settings modal) ───────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--color-primary); }

/* ── FR Report floating button ──────────────────────────────────────── */
.btn-fr-report {
    position: absolute;
    bottom: 3rem;
    right: 0.75rem;
    z-index: 900;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.15s;
}
.btn-fr-report:hover { background: #b91c1c; }

/* ── FR Quick-Report panel ──────────────────────────────────────────── */
.fr-report-panel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    width: min(420px, 92vw);
    overflow: hidden;
}

.fr-report-header {
    background: #1e1b18;
    color: #f8f6f2;
    padding: 0.875rem 1.25rem;
}

.fr-report-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.fr-report-road {
    font-size: 1rem;
    font-weight: 700;
}

.fr-coverage-info {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-report-body {
    padding: 1rem 1.25rem 0.5rem;
}

.fr-notes-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.fr-notes-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    resize: none;
    margin-bottom: 0.875rem;
}

.fr-notes-input:focus {
    outline: none;
    border-color: #dc2626;
}

.fr-incident-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-soft);
    margin-bottom: 0.5rem;
}

.fr-incident-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.fr-incident-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.625rem 0.5rem;
    background: color-mix(in srgb, var(--fr-color, #dc2626) 12%, transparent);
    border: 2px solid color-mix(in srgb, var(--fr-color, #dc2626) 40%, transparent);
    border-radius: 8px;
    color: var(--fr-color, #dc2626);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-family: inherit;
}

.fr-incident-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--fr-color, #dc2626) 22%, transparent);
    border-color: var(--fr-color, #dc2626);
}

.fr-incident-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fr-report-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
}
