/* Platview — Design System */

/* ── Tokens ── */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-ring: rgba(79, 70, 229, 0.25);
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --success: #16a34a;
    --success-light: #dcfce7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

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

/* ── Navigation ── */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.nav-brand a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.nav-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container-wide {
    max-width: 100%;
    padding: 1rem 2rem;
}

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-header-text h1 {
    margin-bottom: 0.125rem;
}

.page-header-text p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.825rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--gray-300);
}

.breadcrumb-current {
    color: var(--gray-700);
    font-weight: 500;
}

/* ── Cards ── */
.card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    line-height: 1.4;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 0.4rem 0.625rem;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.3rem 0.625rem;
    font-size: 0.775rem;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-hint {
    font-size: 0.825rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* ── Map ── */
#map {
    width: 100%;
    height: 650px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

#map-large {
    width: 100%;
    height: 70vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

/* ── Tables ── */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
}

.table tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-link {
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
}

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

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: capitalize;
}

.badge-planned { background: var(--gray-200); color: var(--gray-700); }
.badge-assigned { background: #dbeafe; color: #1e40af; }
.badge-uploaded { background: var(--warning-light); color: #92400e; }
.badge-processing { background: var(--warning-light); color: #92400e; }
.badge-complete { background: var(--success-light); color: #166534; }
.badge-failed { background: var(--danger-light); color: #991b1b; }
.badge-pending_qa { background: var(--warning-light); color: #92400e; }

/* Community status badges */
.badge-pending_review { background: var(--warning-light); color: #92400e; }
.badge-active { background: var(--success-light); color: #166534; }
.badge-suspended { background: var(--danger-light); color: #991b1b; }

/* Severity badges */
.severity-low { background: var(--warning-light); color: #92400e; }
.severity-medium { background: #fed7aa; color: #9a3412; }
.severity-high { background: var(--danger-light); color: #991b1b; }

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.375rem;
    background: var(--gray-100);
    color: var(--gray-500);
}

/* ── Upload Area ── */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area p {
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* ── Grid Helpers ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Violation Cards ── */
.violation-card {
    border-left: 4px solid var(--gray-300);
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.violation-card.high { border-left-color: var(--danger); }
.violation-card.medium { border-left-color: var(--warning); }
.violation-card.low { border-left-color: #fbbf24; }

.violation-card img {
    max-width: 200px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* ── Progress Bar ── */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

/* ── Alerts ── */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.alert-success { background: var(--success-light); color: #166534; border-color: #a7f3d0; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-danger { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.875rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.filter-select {
    padding: 0.35rem 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.consensus-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.35rem 0.625rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.consensus-toggle input[type="checkbox"] {
    accent-color: var(--primary);
}

.filter-count {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-left: auto;
}

/* ── Violations Grid (Report) ── */
.violations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.vcard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    border-left: 4px solid var(--gray-300);
    transition: opacity var(--transition-base), box-shadow var(--transition-base);
}

.vcard:hover {
    box-shadow: var(--shadow-sm);
}

.vcard-high { border-left-color: var(--danger); }
.vcard-medium { border-left-color: var(--warning); }
.vcard-low { border-left-color: #fbbf24; }
.vcard-dismissed { opacity: 0.5; }
.vcard-single-provider {
    opacity: 0.65;
    border-style: dashed;
    border-left-style: dashed;
}

.vcard-evidence {
    width: 100%;
    overflow: hidden;
    background: var(--gray-100);
}

.violation-evidence {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.violation-evidence-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.825rem;
    gap: 0.375rem;
}

.vcard-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vcard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.vcard-type {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--gray-900);
}

.vcard-desc {
    font-size: 0.825rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.vcard-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.775rem;
    color: var(--gray-500);
}

.vcard-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Category badges */
.badge-category-violation { background: var(--danger-light); color: #991b1b; }
.badge-category-maintenance_concern { background: #dbeafe; color: #1e40af; }
.badge-provider { background: var(--gray-100); color: var(--gray-700); }
.badge-consensus { background: var(--success-light); color: #166534; }
.badge-single-provider { background: var(--gray-100); color: var(--gray-500); font-style: italic; }
.badge-reviewed { background: var(--success-light); color: #166534; }
.badge-dismissed { background: var(--gray-200); color: var(--gray-700); }
.badge-recurring { background: #fef3c7; color: #92400e; font-weight: 600; }
.badge-new-finding { background: #dbeafe; color: #1e40af; }

@media (max-width: 768px) {
    .violations-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-count {
        margin-left: 0;
    }
}

/* ── Review Panel (Report) ── */
.review-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.review-evidence-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

/* Evidence container with highlight overlay */
.evidence-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    max-height: 500px;
}

.evidence-container.evidence-zoomed {
    max-height: 500px;
    cursor: grab;
}

.review-evidence {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transform-origin: 0 0;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}


.review-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.review-type {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: capitalize;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .review-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

/* ── Status Banner (flight_plan) ── */
.status-banner {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-banner.processing {
    background: var(--primary-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-banner.complete {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-banner.failed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-banner.uploaded {
    background: var(--primary-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Upload Page (from upload.html inline styles) ── */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-header {
    margin-bottom: 1.5rem;
}

.upload-header h1 {
    margin-bottom: 0.25rem;
}

.upload-header .meta {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base);
    background: white;
    margin-bottom: 1.5rem;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-zone-icon {
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.drop-zone-text {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.drop-zone-hint {
    font-size: 0.825rem;
    color: var(--gray-400);
}

.drop-zone input[type="file"] {
    display: none;
}

.file-list {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.file-list:empty {
    display: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--gray-500);
    margin-left: 1rem;
    white-space: nowrap;
}

.file-remove {
    margin-left: 0.75rem;
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.progress-wrapper {
    display: none;
    margin-bottom: 1.5rem;
}

.progress-wrapper.active {
    display: block;
}

.progress-bar-outer {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.825rem;
    color: var(--gray-600);
    text-align: center;
}

.upload-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.file-count {
    color: var(--gray-500);
    font-size: 0.825rem;
}

.status-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
    font-size: 0.875rem;
}

.status-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Footer ── */
.app-footer {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.775rem;
    padding: 2rem 2rem 1.5rem;
    letter-spacing: 0.01em;
}

/* ── Animation ── */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    .container {
        padding: 1.25rem;
    }
    .page-header {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   Pilot Upload Modal (slide-out)
   ══════════════════════════════════════════ */

.pilot-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.pilot-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.2s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.pilot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.pilot-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.pilot-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

/* ══════════════════════════════════════════
   Stats Strip (Dashboard compact)
   ══════════════════════════════════════════ */

.stats-strip {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stats-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.stats-strip-value {
    font-weight: 700;
    color: var(--gray-900);
}

.stats-strip-label {
    color: var(--gray-500);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   Action Queue (Dashboard)
   ══════════════════════════════════════════ */

.action-queue-section {
    margin-bottom: 0.5rem;
}

.action-queue-section:last-child {
    margin-bottom: 0;
}

.action-queue-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.action-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.action-queue-item:last-child {
    border-bottom: none;
}

.action-queue-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.action-queue-community {
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    text-decoration: none;
}

.action-queue-community:hover {
    color: var(--primary);
}

.action-queue-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-queue-right {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge-needs_action { background: var(--warning-light); color: #92400e; }
.badge-in_progress { background: var(--primary-light); color: var(--primary); }
.badge-recently_completed { background: var(--success-light); color: #166534; }

/* ══════════════════════════════════════════
   Community Detail — Current State & Accordion
   ══════════════════════════════════════════ */

.current-state-card {
    padding: 1.75rem;
    border-left: 4px solid var(--primary);
}

.current-state-flight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.current-state-detail {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Flight Accordion */
.flight-accordion-item {
    border-bottom: 1px solid var(--gray-100);
}

.flight-accordion-item:last-child {
    border-bottom: none;
}

.flight-accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    transition: background var(--transition-fast);
    user-select: none;
}

.flight-accordion-header:hover {
    background: var(--gray-50);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: var(--radius-sm);
}

.flight-accordion-date {
    font-weight: 500;
    color: var(--gray-700);
    min-width: 110px;
}

.flight-accordion-meta {
    color: var(--gray-500);
    font-size: 0.8125rem;
    flex: 1;
}

.flight-accordion-chevron {
    color: var(--gray-400);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.flight-accordion-item.collapsed .flight-accordion-chevron {
    transform: rotate(-90deg);
}

.flight-accordion-item.collapsed .flight-accordion-body {
    display: none;
}

.flight-accordion-body {
    padding: 0 0 0.75rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Settings Section */
.settings-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
}

.settings-toggle-header:hover {
    color: var(--primary);
}

.settings-toggle-chevron {
    transition: transform var(--transition-fast);
    color: var(--gray-400);
}

.settings-section.collapsed .settings-toggle-chevron {
    transform: rotate(-90deg);
}

.settings-section.collapsed .settings-body {
    display: none;
}

/* ══════════════════════════════════════════
   QA Grid Triage
   ══════════════════════════════════════════ */

.qa-summary-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    flex-wrap: wrap;
}

.qa-summary-bar .qa-summary-count {
    font-weight: 700;
}

.view-mode-toggle {
    display: inline-flex;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-left: auto;
}

.view-mode-btn {
    padding: 0.3rem 0.625rem;
    font-size: 0.775rem;
    font-weight: 500;
    background: white;
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition-fast);
}

.view-mode-btn + .view-mode-btn {
    border-left: 1px solid var(--gray-300);
}

.view-mode-btn.active {
    background: var(--primary);
    color: white;
}

.view-mode-btn:hover:not(.active) {
    background: var(--gray-50);
}

.triage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.triage-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: white;
}

.triage-card:hover {
    border-color: var(--primary);
}

.triage-card.triage-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.triage-card.triage-dismissed {
    opacity: 0.4;
}

.triage-card.triage-confirmed {
    border-color: var(--success);
    opacity: 0.7;
}

.triage-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: var(--gray-100);
}

.triage-card-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.775rem;
}

.triage-severity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.triage-card-type {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: var(--gray-700);
}

.triage-card-status {
    flex-shrink: 0;
}

.grid-batch-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-batch-toolbar .batch-count {
    font-weight: 600;
    color: var(--primary);
}

.triage-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .triage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .triage-card-img {
        height: 120px;
    }
}

/* ══════════════════════════════════════════
   Customer Report View
   ══════════════════════════════════════════ */

/* ── Report Header ── */
.report-header {
    margin-bottom: 0.5rem;
}

.report-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.report-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ── Report Summary (stats row) ── */
.report-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Filter Chips ── */
.customer-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: white;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-chip-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ── Findings Grid (single column) ── */
.customer-findings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Finding Card ── */
.customer-finding-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-300);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    overflow: hidden;
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.customer-finding-card:hover {
    box-shadow: var(--shadow-sm);
}

.customer-finding-card.finding-card-highlight {
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
    transition: background 0.3s, box-shadow 0.3s;
}

.customer-finding-card.finding-dismissed {
    opacity: 0.5;
}

.customer-finding-card.finding-dismissed:hover {
    opacity: 0.7;
}

/* Evidence image (left side) */
.finding-evidence-wrap {
    width: 200px;
    min-height: 155px;
    overflow: hidden;
    background: var(--gray-100);
}

.finding-evidence-img {
    width: 100%;
    height: 100%;
    min-height: 155px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: filter var(--transition-base);
    background-repeat: no-repeat;
    background-color: var(--gray-100);
}

.finding-evidence-img:hover {
    filter: brightness(1.05);
}

.finding-evidence-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.8rem;
    gap: 0.375rem;
}

/* Card right side */
.finding-card-right {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.finding-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.finding-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.finding-address {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.finding-description {
    font-size: 0.825rem;
    color: var(--gray-500);
    line-height: 1.45;
    margin: 0;
}

/* ── Leaflet Compare Control ── */
.leaflet-compare-control {
    background: none;
    border: none;
}

.compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.875rem;
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.compare-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.compare-btn.compare-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
}

/* ── Resolved Section ── */
.resolved-section {
    margin-top: 1.5rem;
}

.resolved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.resolved-header h3 {
    margin: 0;
    font-size: 1rem;
}

.resolved-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.resolved-item:last-child {
    border-bottom: none;
}

.resolved-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Customer Report Mobile ── */
@media (max-width: 768px) {
    .report-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-finding-card {
        grid-template-columns: 1fr;
    }

    .finding-evidence-wrap {
        width: 100%;
        max-height: 220px;
    }

    .finding-evidence-img {
        max-height: 220px;
    }

    #map {
        height: 300px !important;
    }
}

/* ══════════════════════════════════════════
   Community Map View (Customer)
   ══════════════════════════════════════════ */

/* ── Full-bleed layout ── */
.community-map-layout {
    max-width: 100%;
    padding: 0;
}

/* ── Community Header ── */
.community-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.375rem 0;
}

.community-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.community-header-inner h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.825rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

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

.community-stats {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.community-stat {
    color: var(--gray-600);
}

.community-stat.recurring {
    color: var(--warning);
}

.community-stat.resolved {
    color: var(--success);
}

/* ── Inspection Pills ── */
.inspection-pills-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.inspection-pills-bar::-webkit-scrollbar {
    display: none;
}

.inspection-pills-inner {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem 0;
    min-width: max-content;
}

.inspection-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: white;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.inspection-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.inspection-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.inspection-pill.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pill-date {
    font-weight: 600;
}

.pill-year {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.75rem;
}

.pill-count {
    background: rgba(0,0,0,0.1);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.inspection-pill.active .pill-count {
    background: rgba(255,255,255,0.25);
}

/* ── Map + Panel Container ── */
.community-map-container {
    display: flex;
    height: calc(100vh - 56px - 54px - 49px);
    overflow: hidden;
}

.community-map-area {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* ── Panel Toggle Button (visible when panel collapsed) ── */
.panel-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.panel-toggle-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.panel-toggle-badge {
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ── Findings Panel ── */
.findings-panel {
    width: 440px;
    max-width: 480px;
    border-left: 1px solid var(--gray-200);
    background: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.community-map-container.panel-collapsed .findings-panel {
    width: 0;
    min-width: 0;
    opacity: 0;
    border-left: none;
    padding: 0;
}

.findings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.findings-panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.panel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.findings-list {
    flex: 1;
    overflow-y: auto;
}

/* ── Address Groups ── */
.address-group {
    border-bottom: 1px solid var(--gray-100);
}

.address-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    user-select: none;
}

.address-group-header:hover {
    background: var(--gray-50);
}

.address-group-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 0;
    overflow: hidden;
}

.address-group-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-group-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.address-group-count {
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.address-group-chevron {
    transition: transform var(--transition-fast);
    color: var(--gray-400);
}

.address-group.collapsed .address-group-chevron {
    transform: rotate(-90deg);
}

.address-group.collapsed .address-group-items {
    display: none;
}

.address-group.tier-approximate .address-group-header {
    border-left: 3px dashed var(--gray-300);
}

.address-group.tier-unlocated {
    background: var(--gray-50);
}

.address-group-items {
    padding: 0 0 0.25rem 0;
}

/* ── Finding List Items ── */
.finding-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.8125rem;
}

.finding-list-item:hover {
    background: var(--gray-50);
}

.finding-list-item.active {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.5rem - 3px);
}

.finding-list-item.resolved {
    opacity: 0.6;
    cursor: default;
}

.finding-list-item.resolved .finding-item-type {
    text-decoration: line-through;
}

.finding-list-item.dismissed-item {
    opacity: 0.5;
}

.finding-list-item.dismissed-item:hover {
    opacity: 0.7;
}

.finding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.finding-item-type {
    flex: 1;
    font-weight: 500;
    color: var(--gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Finding Detail (panel takeover) ── */
.finding-detail {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.finding-detail-back {
    margin-bottom: 0.75rem;
}

/* Detail thumbnail — small zoomed crop */
.finding-detail-thumb {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    max-height: 220px;
}

.finding-detail-thumb img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    cursor: grab;
    transition: transform var(--transition-base);
}

.finding-detail-thumb:hover img {
    filter: brightness(1.03);
}


.finding-detail-header {
    margin-bottom: 0.75rem;
}

.finding-detail-type {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.finding-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.finding-detail-address {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

/* AI description — prominent */
.finding-detail-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gray-300);
}

.finding-detail-crossflight {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.finding-detail-crossflight.new {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ── Resolved group within address group ── */
.resolved-group-section {
    padding: 0 0 0.25rem 0;
}

.resolved-group-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem 0.375rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.resolved-group-header:hover {
    background: var(--gray-50);
}

.resolved-group-chevron {
    margin-left: auto;
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.resolved-addr-hint {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Resolved-only group ── */
.address-group.tier-resolved {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.address-group.tier-resolved .address-group-count {
    background: var(--success-light);
    color: #166534;
}

/* ── Show resolved toggle ── */
.resolved-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.775rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.3rem 0.625rem;
    margin-left: auto;
    white-space: nowrap;
}

.resolved-toggle input[type="checkbox"] {
    accent-color: var(--success);
}

/* ── Bounding box overlay on map ── */
.finding-bbox-overlay {
    animation: bboxPulse 2s ease-in-out infinite;
}

@keyframes bboxPulse {
    0% { stroke-opacity: 0.9; }
    50% { stroke-opacity: 0.4; }
    100% { stroke-opacity: 0.9; }
}

/* ── Empty State Overlay ── */
.community-empty-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.community-empty-overlay .card {
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
}

/* ── Community Map Mobile ── */
@media (max-width: 768px) {
    .community-map-container {
        flex-direction: column;
        height: auto;
    }

    .community-map-area {
        height: 300px;
        flex: none;
    }

    .findings-panel {
        width: 100%;
        max-width: 100%;
        max-height: 60vh;
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

    .community-map-container.panel-collapsed .findings-panel {
        width: 100%;
        height: 0;
        max-height: 0;
    }

    .community-header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .community-stats {
        margin-left: 0;
        width: 100%;
    }

    .inspection-pills-inner {
        padding: 0.5rem 0;
    }

    .inspection-pill {
        padding: 0.3rem 0.625rem;
        font-size: 0.775rem;
    }

    .map-toolbar {
        flex-direction: column;
        left: 8px;
        right: 8px;
        gap: 0.375rem;
    }

    .map-toolbar__pills {
        overflow-x: auto;
    }

    .map-toolbar__stats {
        justify-content: center;
    }
}

/* ══════════════════════════════════════════
   Phase 1: Customer Dashboard Cards
   ══════════════════════════════════════════ */

.community-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.community-card {
    display: block;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-300);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.community-card:hover {
    box-shadow: var(--shadow-md);
    color: inherit;
}

.community-card.urgency-high {
    border-left-color: var(--danger);
}

.community-card.urgency-medium {
    border-left-color: var(--warning);
}

.community-card.urgency-low {
    border-left-color: var(--success);
}

.community-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.community-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
}

.community-card-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
}

.community-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cc-metric {
    text-align: center;
}

.cc-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    display: block;
}

.cc-metric-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.community-card-trend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.sparkline {
    flex-shrink: 0;
}

.trend-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.775rem;
    font-weight: 500;
}

.trend-worsening {
    color: var(--danger);
}

.trend-improving {
    color: var(--success);
}

.trend-stable {
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .community-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   Phase 2: Map Toolbar (floating on map)
   ══════════════════════════════════════════ */

.map-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.map-toolbar > * {
    pointer-events: auto;
}

.map-toolbar__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: var(--shadow-md);
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.map-toolbar-stat {
    font-size: 0.775rem;
    font-weight: 500;
    color: var(--gray-600);
}

.map-toolbar-stat.recurring {
    color: var(--warning);
}

.map-toolbar-stat.new {
    color: #2563eb;
}

.map-toolbar-stat.resolved {
    color: var(--success);
}

.panel-toggle-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.775rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.panel-toggle-btn-inline:hover {
    background: var(--gray-100);
}

/* Adjust map container height (navbar + header + pills bar) */
.community-map-container {
    height: calc(100vh - 56px - 54px - 49px);
}

/* ══════════════════════════════════════════
   Phase 3a: Detection History Timeline
   ══════════════════════════════════════════ */

.detection-timeline {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.timeline-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.timeline-loading {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.775rem;
    color: var(--gray-500);
}

.timeline-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    position: relative;
    margin-left: 0.375rem;
}

/* Vertical connecting line */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: 4px;
    top: -0.25rem;
    bottom: -0.25rem;
    width: 2px;
    background: var(--gray-200);
}

.timeline-entry:first-of-type::before {
    top: 50%;
}

.timeline-entry:last-of-type::before {
    bottom: 50%;
}

.timeline-entry:only-of-type::before {
    display: none;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid white;
}

.timeline-dot.current {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-dot.detected {
    background: var(--warning);
}

.timeline-dot.not-detected {
    background: var(--gray-300);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    min-width: 40px;
}

.timeline-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ══════════════════════════════════════════
   Phase 3b: Related Findings
   ══════════════════════════════════════════ */

.related-findings {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.related-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.related-finding-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    cursor: pointer;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.related-finding-item:hover {
    background: var(--gray-100);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    margin-left: -0.375rem;
    margin-right: -0.375rem;
}

/* ══════════════════════════════════════════
   Phase 4: Export Dropdown
   ══════════════════════════════════════════ */

.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    width: 240px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 600;
    padding: 0.25rem;
}

.export-menu-item {
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.export-menu-item:hover:not(.disabled) {
    background: var(--gray-50);
}

.export-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.export-item-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-900);
}

.export-item-desc {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
    padding-left: calc(14px + 0.375rem);
}


/* ══════════════════════════════════════════
   Add Finding — Placement Mode Banner
   ══════════════════════════════════════════ */

.add-finding-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    pointer-events: none;
}

.add-finding-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(79, 70, 229, 0.92);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: auto;
}

/* ── Ortho Toggle Button ── */

.ortho-toggle-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.75rem;
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.ortho-toggle-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.ortho-toggle-btn.ortho-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ══════════════════════════════════════════
   Land Use: Category Filters + Parcel Overlay
   ══════════════════════════════════════════ */

.panel-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.category-dot.residential { background: #3b82f6; }
.category-dot.common_area { background: #10b981; }

.badge-common-area {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.65rem;
    font-weight: 600;
}

.parcel-tooltip {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.3;
}

/* ══════════════════════════════════════════
   Export Preview Modal
   ══════════════════════════════════════════ */

.export-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-modal {
    width: 90vw;
    max-width: 860px;
    max-height: 85vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.export-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.export-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* Card selection grid */
.export-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.export-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.export-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
}

.export-card i[data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.export-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.export-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.export-card-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.export-card-count:empty {
    display: none;
}

/* Preview view — must be a flex column so body scrolls and footer stays pinned */
#export-preview-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Preview body */
.export-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    min-height: 0;
}

/* Preview footer */
.export-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}

#export-selection-count {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Address group in export preview */
.export-address-group {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.export-address-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--gray-50);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.export-address-header:hover {
    background: var(--gray-100);
}

.export-address-header input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.export-address-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.export-address-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.escalation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.export-address-items {
    border-top: 1px solid var(--gray-100);
}

.export-address-items.collapsed {
    display: none;
}

/* Finding row in export preview */
.export-finding-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 1.75rem;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.8125rem;
    transition: background var(--transition-fast);
}

.export-finding-row:last-child {
    border-bottom: none;
}

.export-finding-row:hover {
    background: var(--gray-50);
}

.export-finding-row input[type="checkbox"] {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.export-finding-thumb {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}

.export-finding-info {
    flex: 1;
    min-width: 0;
}

.export-finding-type {
    font-weight: 500;
    color: var(--gray-800);
}

.export-finding-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-finding-badges {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Type group in work orders preview */
.export-type-group {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.export-type-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--gray-50);
    cursor: pointer;
    user-select: none;
}

.export-type-header:hover {
    background: var(--gray-100);
}

.export-type-header input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.export-type-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.export-type-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Board summary preview */
.export-summary-preview {
    max-width: 600px;
    margin: 0 auto;
}

.export-summary-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.export-summary-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.export-summary-header p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.export-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.export-summary-stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.export-summary-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.export-summary-stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.export-summary-types {
    margin-bottom: 1.5rem;
}

.export-summary-types h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.export-summary-type-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.85rem;
}

.export-summary-type-bar {
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.export-summary-note {
    margin-top: 1rem;
}

.export-summary-note textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.export-summary-note textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Responsive */
@media (max-width: 768px) {
    .export-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .export-cards-grid {
        grid-template-columns: 1fr;
    }

    .export-summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════
   Help Tooltips (persistent ? icons)
   ══════════════════════════════════════════ */

.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 0.25rem;
    flex-shrink: 0;
    line-height: 1;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.help-tip:hover {
    background: var(--primary);
    color: #fff;
}

.help-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: normal;
    width: max-content;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.help-tip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Flip tooltip below when near top of viewport */
.help-tip--below::after {
    bottom: auto;
    top: calc(100% + 8px);
}

/* Mobile: tap to show */
@media (hover: none) {
    .help-tip:focus::after {
        opacity: 1;
        visibility: visible;
    }
    .help-tip {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ══════════════════════════════════════════
   Driver.js Tour Overrides
   ══════════════════════════════════════════ */

.driver-popover {
    max-width: 340px;
}

.driver-popover-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.driver-popover-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: var(--gray-600) !important;
}

/* Nav help button */
.nav-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.nav-help-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
