        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

        :root {
            --primary-red: #dc2626;
            --primary-red-light: #ef4444;
            --primary-red-dark: #b91c1c;
            --accent-blue: #3b82f6;
            --accent-green: #059669;
            --accent-purple: #7c3aed;
            --accent-orange: #ea580c;
            --dark-bg: #000000;
            --dark-secondary: #111827;
            --dark-tertiary: #1f2937;
            --dark-panel: #374151;
            --light-gray: #f9fafb;
            --medium-gray: #6b7280;
            --text-gray: #9ca3af;
            --white: #ffffff;
            --border-color: #374151;
            --shadow-light: rgba(220, 38, 38, 0.1);
            --shadow-medium: rgba(220, 38, 38, 0.2);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--dark-bg);
            color: var(--white);
            line-height: 1.6;
            font-size: 16px;
            font-weight: 400;
            min-height: 100vh;
        }

        .header {
            background: linear-gradient(to right, var(--dark-secondary) 0%, var(--dark-bg) 50%, var(--dark-secondary) 100%);
            border-bottom: 1px solid var(--border-color);
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
            position: relative;
        }

        .header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to right, rgba(220, 38, 38, 0.03) 0%, transparent 50%, rgba(220, 38, 38, 0.03) 100%);
            pointer-events: none;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
            z-index: 10;
        }

        .logo {
            width: 48px;
            height: 48px;
            background-image: url('/WD_reworked.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
        }

        .brand-text {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .brand-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--white);
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .brand-title .accent {
            color: var(--primary-red);
        }

        .brand-subtitle {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-gray);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .back-btn {
            background: var(--dark-tertiary);
            color: var(--white);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            z-index: 10;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .back-btn:hover {
            background: var(--primary-red);
            border-color: var(--primary-red);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        .header-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        .share-btn {
            background: var(--dark-tertiary);
            color: var(--accent-blue);
            border: 1px solid var(--accent-blue);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            display: none;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .share-btn:hover {
            background: var(--accent-blue);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .export-btn,
        .privacy-btn,
        .delete-btn {
            background: var(--dark-tertiary);
            color: var(--white);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .export-btn:hover {
            background: var(--accent-green);
            border-color: var(--accent-green);
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
        }

        .privacy-btn:hover {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .delete-btn:hover {
            background: var(--primary-red);
            border-color: var(--primary-red);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        .rename-btn {
            background: var(--dark-tertiary);
            color: var(--white);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .rename-btn:hover {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .rename-btn-compact {
            background: transparent;
            color: var(--text-gray);
            border: 1px solid transparent;
            padding: 0;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1.6;
            height: 2.4rem;
            width: 2.4rem;
            margin-top: -0.4rem;
        }

        .rename-btn-compact:hover {
            background: var(--dark-tertiary);
            color: var(--accent-blue);
            border: 1px solid var(--border-color);
        }

        .privacy-btn.public {
            background: var(--accent-green);
            border-color: var(--accent-green);
        }

        .privacy-btn.public:hover {
            background: var(--dark-tertiary);
            border-color: var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .btn-icon {
            font-size: 1rem;
        }

        .btn-text {
            font-size: 0.875rem;
        }

        /* Tablet breakpoint (≤768px) */
        @media (max-width: 768px) {
            .header {
                padding: 0.5rem 0.75rem;
                gap: 0.5rem;
            }

            .logo {
                width: 40px;
                height: 40px;
            }

            .brand-title {
                font-size: 1.2rem;
            }

            .brand-subtitle {
                font-size: 0.65rem;
            }

            .back-btn,
            .share-btn,
            .export-btn,
            .privacy-btn,
            .delete-btn {
                padding: 0.5rem 0.9rem;
                font-size: 0.8rem;
                gap: 0.35rem;
            }

            .btn-icon {
                font-size: 0.85rem;
            }

            .btn-text {
                font-size: 0.8rem;
            }
        }

        /* Mobile breakpoint (≤480px) - Portrait & Landscape */
        @media (max-width: 480px) {
            .header {
                padding: 0.4rem 0.5rem;
                gap: 0.4rem;
            }

            .header-left {
                gap: 0.5rem;
            }

            .logo {
                width: 36px;
                height: 36px;
            }

            .brand-title {
                font-size: 1.1rem;
            }

            .brand-subtitle {
                display: none;
            }

            .back-btn,
            .share-btn,
            .export-btn,
            .privacy-btn,
            .delete-btn {
                padding: 0.45rem 0.75rem;
                font-size: 0.75rem;
                gap: 0.3rem;
                min-height: 36px;
                align-items: center;
            }

            .btn-icon {
                font-size: 0.75rem;
            }

            .btn-text {
                font-size: 0.7rem;
            }

            .header-controls {
                gap: 0.3rem;
            }
        }

        /* Landscape mode optimizations */
        @media (orientation: landscape) and (max-height: 500px) {
            .header {
                padding: 0.4rem 0.75rem;
                gap: 0.4rem;
            }

            .brand-subtitle {
                display: none !important;
            }

            .logo {
                width: 36px;
                height: 36px;
            }

            .brand-title {
                font-size: 1.1rem;
            }

            .back-btn,
            .export-btn,
            .privacy-btn,
            .delete-btn {
                padding: 0.4rem 0.7rem;
                font-size: 0.7rem;
                gap: 0.25rem;
                min-height: 34px;
            }

            .btn-icon {
                font-size: 0.7rem;
            }

            .btn-text {
                font-size: 0.65rem;
            }

            .header-controls {
                gap: 0.3rem;
            }
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }

        .modal {
            background: var(--dark-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-header {
            padding: 2rem 2rem 1rem 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .modal-header h3 {
            color: var(--white);
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
        }

        .modal-body {
            padding: 2rem;
            color: var(--text-gray);
            line-height: 1.6;
        }

        .modal-textarea {
            width: 100%;
            min-height: 100px;
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            color: var(--white);
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
            margin-top: 1rem;
            resize: vertical;
        }

        .modal-textarea:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .modal-textarea::placeholder {
            color: var(--medium-gray);
        }

        .modal-input {
            width: 100%;
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.85rem 1rem;
            color: var(--white);
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
        }

        .modal-input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .modal-error {
            min-height: 1.25em;
            margin-top: 0.75rem;
            color: #fca5a5;
            font-size: 0.82rem;
        }

        .modal-actions {
            padding: 1rem 2rem 2rem 2rem;
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }

        .modal-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            font-weight: 600;
            font-size: 0.875rem;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-btn.secondary {
            background: var(--dark-tertiary);
            color: var(--text-gray);
        }

        .modal-btn.secondary:hover {
            background: var(--border-color);
            color: var(--white);
        }

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

        .modal-btn.primary:hover {
            background: var(--primary-red-dark);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        /* Styled Notification System */
        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 2000;
            pointer-events: none;
        }

        .notification {
            background: var(--dark-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1rem 1.5rem;
            margin-bottom: 0.5rem;
            max-width: 400px;
            pointer-events: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            animation: notificationSlideIn 0.3s ease-out;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .notification.success {
            border-left: 4px solid #10b981;
        }

        .notification.error {
            border-left: 4px solid var(--primary-red);
        }

        .notification.warning {
            border-left: 4px solid #f59e0b;
        }

        .notification.info {
            border-left: 4px solid var(--accent-blue);
        }

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

        .notification.success .notification-icon {
            color: #10b981;
        }

        .notification.error .notification-icon {
            color: var(--primary-red);
        }

        .notification.warning .notification-icon {
            color: #f59e0b;
        }

        .notification.info .notification-icon {
            color: var(--accent-blue);
        }

        .notification-content {
            color: var(--white);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .notification-close {
            background: none;
            border: none;
            color: var(--medium-gray);
            cursor: pointer;
            font-size: 1.25rem;
            margin-left: auto;
            padding: 0;
        }

        .notification-close:hover {
            color: var(--white);
        }

        @keyframes notificationSlideIn {
            from {
                opacity: 0;
                transform: translateX(100%);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .notification.fade-out {
            animation: notificationSlideOut 0.3s ease-in forwards;
        }

        @keyframes notificationSlideOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }

            to {
                opacity: 0;
                transform: translateX(100%);
            }
        }

        /* Privacy Zone Creation UI */
        .map-zone-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
            display: flex;
            gap: 0.5rem;
            pointer-events: auto;
        }

        .zone-create-btn {
            background: var(--accent-blue);
            color: var(--white);
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            font-size: 0.875rem;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.2s ease;
            min-height: 44px;
            /* Apple's recommended minimum touch target */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .zone-create-btn:hover {
            background: var(--accent-blue-dark);
            transform: translateY(-1px);
        }

        .zone-create-btn.active {
            background: var(--primary-red);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        /* Mobile optimizations for privacy zone controls */
        @media (max-width: 768px) {
            .map-zone-controls {
                top: 15px;
                right: 15px;
                left: auto;
                width: auto;
            }

            .zone-create-btn {
                padding: 0.875rem 1.25rem;
                font-size: 0.9rem;
                min-height: 48px;
                white-space: nowrap;
            }

            .zone-creation-panel {
                top: 10px;
                left: 10px;
                right: 10px;
                width: auto;
                max-width: none;
            }

            .zone-creation-panel .modal-header {
                padding: 0.75rem 1rem;
            }

            .zone-creation-panel .modal-header h3 {
                font-size: 1rem;
            }

            .zone-creation-panel .modal-body {
                padding: 0.75rem 1rem;
                gap: 0.75rem;
            }

            .zone-creation-panel .modal-body p {
                font-size: 0.875rem;
                margin: 0 0 0.5rem 0;
            }

            .zone-creation-panel .modal-actions {
                padding: 0.75rem 1rem;
                gap: 0.5rem;
            }

            .zone-form-group {
                gap: 0.375rem;
            }

            .zone-form-label {
                font-size: 0.8rem;
            }

            .zone-form-input {
                padding: 0.625rem;
                font-size: 0.875rem;
            }

            .zone-coords-display {
                padding: 0.5rem;
                font-size: 0.8rem;
            }

            .zone-instructions {
                display: none;
                /* Hide instructions on mobile to save space */
            }

            .modal-btn {
                padding: 0.625rem 1rem;
                font-size: 0.875rem;
            }
        }

        /* Non-blocking floating panel for zone creation */
        .zone-creation-panel {
            position: fixed;
            top: 20px;
            left: 20px;
            width: 320px;
            z-index: 1001;
            pointer-events: auto;
        }

        .zone-panel-content {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            overflow: hidden;
        }

        .zone-creation-panel .modal-header {
            background: #111827;
            border-bottom: 1px solid #374151;
            padding: 1rem;
        }

        .zone-creation-panel .modal-body {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 1rem;
            background: #1f2937;
        }

        .zone-creation-panel .modal-header h3 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.1rem;
        }

        .zone-creation-panel .modal-actions {
            border-top: 1px solid #374151;
            padding: 1rem;
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
            background: #111827;
        }

        .zone-form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .zone-form-label {
            color: var(--text-gray);
            font-weight: 600;
            font-size: 0.875rem;
        }

        .zone-form-input {
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem;
            color: var(--white);
            font-size: 0.875rem;
        }

        .zone-form-input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .zone-form-row {
            display: flex;
            gap: 1rem;
        }

        .zone-form-row .zone-form-group {
            flex: 1;
        }

        .zone-coords-display {
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem;
            color: var(--medium-gray);
            font-size: 0.875rem;
            font-family: monospace;
        }

        .session-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--white);
        }

        .container {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        .session-info {
            background: var(--dark-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        }

        .metrics-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .metric-card {
            background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
            border: 1px solid var(--border-color);
            padding: 2rem;
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        }

        .metric-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            blur: 20px;
            opacity: 0.1;
        }

        .metric-card:hover {
            transform: translateY(-4px);
            border-color: var(--border-color);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        }

        .metric-card.distance::before {
            background: var(--primary-red);
        }

        .metric-card.distance:hover {
            border-color: rgba(220, 38, 38, 0.5);
        }

        .metric-card.time::before {
            background: var(--accent-green);
        }

        .metric-card.time:hover {
            border-color: rgba(5, 150, 105, 0.5);
        }

        .metric-card.speed::before {
            background: var(--accent-blue);
        }

        .metric-card.speed:hover {
            border-color: rgba(59, 130, 246, 0.5);
        }

        .metric-card.altitude::before {
            background: var(--accent-purple);
        }

        .metric-card.altitude:hover {
            border-color: rgba(124, 58, 237, 0.5);
        }

        .metric-card-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 10;
        }

        .metric-card-info {
            text-align: left;
        }

        .metric-card-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .metric-card.distance .metric-card-icon {
            background: rgba(220, 38, 38, 0.1);
            color: var(--primary-red);
        }

        .metric-card.distance:hover .metric-card-icon {
            background: rgba(220, 38, 38, 0.2);
        }

        .metric-card.time .metric-card-icon {
            background: rgba(5, 150, 105, 0.1);
            color: var(--accent-green);
        }

        .metric-card.time:hover .metric-card-icon {
            background: rgba(5, 150, 105, 0.2);
        }

        .metric-card.speed .metric-card-icon {
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-blue);
        }

        .metric-card.speed:hover .metric-card-icon {
            background: rgba(59, 130, 246, 0.2);
        }

        .metric-card.altitude .metric-card-icon {
            background: rgba(124, 58, 237, 0.1);
            color: var(--accent-purple);
        }

        .metric-card.altitude:hover .metric-card-icon {
            background: rgba(124, 58, 237, 0.2);
        }

        .metric-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--white);
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .metric-label {
            color: var(--text-gray);
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.25rem;
        }

        .metric-subtitle {
            color: var(--primary-red);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

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

        .info-item {
            text-align: center;
        }

        .info-label {
            color: var(--text-gray);
            font-size: 0.9rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
        }

        .info-value {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--white);
        }

        .validation-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            padding: 0.35rem 0.7rem;
            font-size: 0.85rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .validation-pill.verified {
            color: #34d399;
            background: rgba(52, 211, 153, 0.12);
            border: 1px solid rgba(52, 211, 153, 0.25);
        }

        .validation-pill.review {
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.12);
            border: 1px solid rgba(251, 191, 36, 0.25);
        }

        .validation-pill.unverified {
            color: var(--text-gray);
            background: rgba(156, 163, 175, 0.1);
            border: 1px solid rgba(156, 163, 175, 0.2);
        }

        .validation-detail {
            color: var(--medium-gray);
            font-size: 0.8rem;
            margin-top: 0.35rem;
        }

        .data-quality-panel {
            background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        }

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

        .data-quality-title {
            color: var(--white);
            font-size: 0.85rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .data-quality-score {
            color: var(--accent-green);
            font-size: 0.8rem;
            font-weight: 700;
            text-align: right;
        }

        .data-quality-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 0.75rem;
        }

        .quality-item {
            background: rgba(31, 41, 55, 0.55);
            border: 1px solid rgba(55, 65, 81, 0.75);
            border-radius: 8px;
            padding: 0.9rem;
            min-height: 92px;
        }

        .quality-label {
            color: var(--text-gray);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 0.45rem;
        }

        .quality-value {
            color: var(--white);
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.25;
        }

        .quality-detail {
            color: var(--medium-gray);
            font-size: 0.78rem;
            line-height: 1.35;
            margin-top: 0.35rem;
        }

        .quality-status {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
        }

        .quality-dot {
            width: 0.55rem;
            height: 0.55rem;
            border-radius: 999px;
            background: var(--medium-gray);
            flex-shrink: 0;
        }

        .quality-dot.verified,
        .quality-dot.ready {
            background: #34d399;
            box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
        }

        .quality-dot.review,
        .quality-dot.pending {
            background: #fbbf24;
            box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
        }

        .quality-dot.unverified,
        .quality-dot.unavailable {
            background: var(--medium-gray);
        }

        .loading {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--medium-gray);
            font-size: 1.1rem;
        }

        .spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid var(--border-color);
            border-top: 4px solid var(--primary-red);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        .charts-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;

        }

        .chart-card {
            background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            user-select: none;
            /* Prevent text selection on touch */
        }

        /* Prevent default browser focus/active states from showing red border */
        .chart-card:focus,
        .chart-card:active,
        .chart-card:focus-visible {
            outline: none;
            border-color: var(--border-color);
            /* Keep original border, no red */
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
            /* Keep original shadow */
        }


        .chart-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, transparent 50%, rgba(220, 38, 38, 0.02) 100%);
            pointer-events: none;
        }


        .chart-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 1.5rem;
            text-align: left;
            position: relative;
            z-index: 10;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .expand-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.5rem;
            cursor: pointer;
            font-size: 1.1rem;
            color: var(--medium-gray);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
        }

        .expand-btn:hover {
            background: var(--primary-red);
            color: var(--white);
            border-color: var(--primary-red);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        .mode-btn {
            padding: 0.4rem 0.8rem;
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--medium-gray);
            cursor: pointer;
            font-size: 0.875rem;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .mode-btn:hover {
            background: var(--dark-secondary);
            border-color: var(--primary-blue);
            color: var(--primary-blue);
        }

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

        .mode-btn-active:hover {
            background: #3b82f6;
            border-color: #60a5fa;
        }

        .fullscreen-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.98);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .fullscreen-content {
            background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem;
            width: 95vw;
            height: 90vh;
            max-width: 1400px;
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
        }

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

        .fullscreen-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .close-btn {
            background: var(--dark-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            color: var(--white);
            transition: all 0.3s ease;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .close-btn:hover {
            background: var(--primary-red);
            border-color: var(--primary-red);
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        .fullscreen-chart {
            flex: 1;
            width: 100%;
            min-height: 0;
        }

        /* Mobile optimization for fullscreen view */
        @media (max-width: 768px) {
            .fullscreen-modal {
                padding: 0;
                align-items: stretch;
                justify-content: flex-start;
            }

            .fullscreen-content {
                width: 100%;
                height: 100%;
                max-width: 100%;
                border-radius: 0;
                padding: 0.5rem;
                gap: 0.5rem;
            }

            .fullscreen-header {
                margin-bottom: 0.5rem;
                padding-bottom: 0.5rem;
                gap: 0.5rem;
                flex-shrink: 0;
            }

            .fullscreen-title {
                font-size: 1rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                flex: 1;
            }

            .close-btn {
                padding: 0.5rem 1rem;
                font-size: 0.75rem;
                flex-shrink: 0;
            }

            .fullscreen-chart {
                flex: 1;
                width: 100%;
                min-height: 0;
                overflow: hidden;
            }
        }

        /* Landscape orientation optimization */
        @media (max-height: 500px) and (orientation: landscape) {
            .fullscreen-content {
                padding: 0.25rem;
                gap: 0.25rem;
            }

            .fullscreen-header {
                margin-bottom: 0.25rem;
                padding-bottom: 0.25rem;
                gap: 0.25rem;
                min-height: auto;
            }

            .fullscreen-title {
                font-size: 0.9rem;
            }

            .close-btn {
                padding: 0.3rem 0.6rem;
                font-size: 0.65rem;
                min-width: auto;
            }

            .fullscreen-chart {
                flex: 1;
                min-height: 0;
            }
        }

        @media (max-width: 480px) {
            .fullscreen-content {
                padding: 0.25rem;
                gap: 0.25rem;
            }

            .fullscreen-header {
                margin-bottom: 0.25rem;
                padding-bottom: 0.25rem;
            }

            .fullscreen-title {
                font-size: 0.9rem;
            }

            .close-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.7rem;
            }
        }

        /* Ensure map and chart containers don't overflow */
        #fullscreenRouteMap {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            box-sizing: border-box;
            overflow: hidden;
            border-radius: 0;
        }

        #fullscreenChart {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #fullscreenChart>div,
        /* Leaflet container overrides for fullscreen only */
        .fullscreen-chart .leaflet-container {
            width: 100% !important;
            height: 100% !important;
            max-width: 100%;
            max-height: 100%;
        }

        .leaflet-container {
            outline: none !important;
        }

        .leaflet-container:focus {
            outline: none !important;
        }

        .chart {
            height: 500px;
            width: 100%;
            box-sizing: border-box;
            display: block;
        }

        .error-message {
            color: #e74c3c;
            background: #fdf2f2;
            border: 1px solid #fecaca;
            border-radius: 5px;
            padding: 1rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .stat-card {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #666;
        }

        .debug-section {
            margin-top: 2rem;
        }

        .debug-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            font-size: 0.85rem;
            background: var(--dark-tertiary);
        }

        .debug-table th,
        .debug-table td {
            border: 1px solid var(--border-color);
            padding: 8px;
            text-align: left;
            color: var(--white);
        }

        .debug-table th {
            background-color: var(--dark-panel);
            color: var(--white);
            font-weight: 600;
            position: sticky;
            top: 0;
        }

        .debug-table td {
            background-color: var(--dark-tertiary);
        }

        .debug-table tr:nth-child(even) td {
            background-color: rgba(55, 65, 81, 0.3);
        }

        /* Fix index column visibility */
        .debug-table td:first-child,
        .debug-table th:first-child {
            background-color: var(--dark-panel) !important;
            color: var(--white) !important;
            font-weight: bold;
        }

        .debug-table tr:nth-child(even) td:first-child {
            background-color: rgba(55, 65, 81, 0.6) !important;
        }

        .debug-table tbody {
            max-height: 400px;
            overflow-y: auto;
        }

        .debug-toggle {
            background: #6c757d;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            margin-top: 1rem;
        }

        .debug-toggle:hover {
            background: #5a6268;
        }

        .debug-content {
            display: none;
            max-height: 500px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-top: 1rem;
        }

        .overlay-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .overlay-controls label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-gray);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .overlay-controls label:hover {
            color: var(--white);
        }

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

        .enhanced-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .enhanced-stat-card {
            background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
            border: 1px solid var(--border-color);
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .enhanced-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            opacity: 0.1;
            blur: 20px;
        }

        .enhanced-stat-card:hover {
            transform: translateY(-2px);
            border-color: var(--primary-red);
            box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
        }

        .enhanced-stat-card.speed::before {
            background: var(--accent-blue);
        }

        .enhanced-stat-card.battery::before {
            background: var(--accent-green);
        }

        .enhanced-stat-card.efficiency::before {
            background: var(--accent-purple);
        }

        .enhanced-stat-card.temperature::before {
            background: var(--accent-orange);
        }

        .enhanced-stat-value {
            font-size: 2rem;
            font-weight: 800;
            color: var(--white);
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .enhanced-stat-label {
            color: var(--text-gray);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.25rem;
        }

        .enhanced-stat-subtitle {
            color: var(--medium-gray);
            font-size: 0.625rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .map-container {
            background: var(--dark-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            position: relative;
            transition: all 0.3s ease;
        }

        .map-container.map-container-focused {
            border-color: rgba(220, 38, 38, 0.3);
            box-shadow: 0 8px 32px rgba(220, 38, 38, 0.1);
        }

        .map-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 1.5rem;
            text-align: left;
        }

        #routeMap {
            height: 400px;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            touch-action: manipulation;
            outline: none !important;
        }

        #routeMap.map-focused {
            outline: none !important;
        }

        #routeMap:focus {
            outline: none !important;
        }

        .map-focus-indicator {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(59, 130, 246, 0.9);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            pointer-events: none;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s ease;
            letter-spacing: 0.05em;
        }

        .map-focus-indicator.visible {
            opacity: 1;
        }

        /* Chart focus styles (same as map) */
        .chart-container-focused {
            border-color: rgba(220, 38, 38, 0.3);
            box-shadow: 0 8px 32px rgba(220, 38, 38, 0.1);
        }

        .chart-focused {
            outline: none !important;
        }

        .chart-focus-indicator {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(59, 130, 246, 0.9);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            pointer-events: none;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s ease;
            letter-spacing: 0.05em;
        }

        .chart-focus-indicator.visible {
            opacity: 1;
        }

        /* Overlay chart tooltip */
        .overlay-tooltip {
            position: absolute;
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.5);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            color: #e2e8f0;
            pointer-events: none;
            z-index: 10000;
            max-width: 250px;
            width: fit-content;
            height: fit-content;
            max-height: auto;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        .overlay-tooltip.visible {
            opacity: 1;
        }

        .overlay-tooltip-row {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.25rem 0;
            align-items: center;
        }

        .overlay-tooltip-label {
            font-weight: 500;
            min-width: 80px;
        }

        .overlay-tooltip-value {
            font-weight: 600;
            text-align: right;
        }


        .map-stats {
            display: flex;
            justify-content: space-around;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }

        .map-stat {
            text-align: center;
        }

        .map-stat-value {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
        }

        .map-stat-label {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.25rem;
        }

        .start-marker,
        .end-marker {
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            font-size: 16px;
        }

        .start-marker {
            border: 3px solid #27ae60;
        }

        .end-marker {
            border: 3px solid #e74c3c;
        }

        /* Map color channel selector */
        .map-color-controls {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .map-color-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 500;
            white-space: nowrap;
        }

        .map-color-select {
            background: var(--dark-primary);
            color: var(--white);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.3rem 0.6rem;
            font-size: 0.8rem;
            cursor: pointer;
            outline: none;
        }

        .map-color-select:focus {
            border-color: rgba(59, 130, 246, 0.6);
        }

        /* Heat LUT legend bar */
        .map-legend {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .map-legend-bar {
            flex: 1;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(to right, #2563eb, #06b6d4, #22c55e, #eab308, #ef4444);
        }

        .map-legend-min,
        .map-legend-max {
            font-size: 0.7rem;
            color: var(--text-secondary);
            white-space: nowrap;
            min-width: 40px;
        }

        .map-legend-max {
            text-align: right;
        }

        /* Position markers for chart/map sync */
        .map-position-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #ffffff;
            border: 3px solid #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
            animation: pulse-dot 1.5s infinite;
        }

        .map-position-dot.pinned {
            width: 18px;
            height: 18px;
            background: #111827;
            border-color: #f59e0b;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.32);
            animation: none;
        }

        .route-probe-panel {
            display: none;
            margin: 0.85rem 0 0;
            padding: 0.85rem;
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.56);
        }

        .route-probe-panel.visible {
            display: block;
        }

        .route-probe-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.7rem;
            color: var(--text-primary);
            font-size: 0.84rem;
            font-weight: 700;
        }

        .route-probe-clear {
            appearance: none;
            border: 1px solid rgba(148, 163, 184, 0.32);
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.76);
            color: var(--text-secondary);
            cursor: pointer;
            font: inherit;
            font-size: 0.74rem;
            font-weight: 700;
            padding: 0.25rem 0.5rem;
        }

        .route-probe-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.65rem;
        }

        .route-probe-item {
            min-width: 0;
        }

        .route-probe-label {
            color: var(--text-secondary);
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .route-probe-value {
            margin-top: 0.18rem;
            color: var(--text-primary);
            font-size: 0.9rem;
            font-weight: 800;
            overflow-wrap: anywhere;
        }

        @keyframes pulse-dot {
            0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4); }
            50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15); }
        }

        @media (max-width: 768px) {
            .route-probe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        /* Mobile responsive styles */
        @media (max-width: 768px) {
            .header {
                padding: 1rem;
                flex-wrap: wrap;
                gap: 1rem;
            }

            .header-left {
                flex: 1;
                min-width: 0;
                /* Allow shrinking */
            }

            .brand-text {
                display: none;
                /* Hide brand text on small screens */
            }

            .header-controls {
                flex-direction: column;
                gap: 0.5rem;
                align-items: stretch;
                width: 100%;
            }

            .export-btn,
            .privacy-btn,
            .delete-btn {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
                width: 100%;
                text-align: center;
            }

            /* Chart containers */
            .chart-container {
                height: 250px;
                /* Smaller charts on mobile */
            }

            .metric-card {
                padding: 1rem;
            }

            .metric-value {
                font-size: 1.5rem;
            }

            .data-quality-header {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.35rem;
            }

            .data-quality-score {
                text-align: left;
            }
        }

        @media (max-width: 480px) {
            .chart-container {
                height: 200px;
                /* Even smaller charts on very small screens */
            }

            .metric-value {
                font-size: 1.25rem;
            }
        }

        .ride-toolbar {
            justify-content: flex-end;
            gap: .6rem;
            padding: .75rem var(--wd-page-gutter);
            background: rgba(7, 9, 13, .92);
            border-bottom-color: var(--wd-border);
        }

        .ride-toolbar::before {
            display: none;
        }

        .ride-toolbar .header-controls {
            gap: .6rem;
        }

        .ride-toolbar :is(.back-btn, .share-btn, .export-btn, .privacy-btn, .delete-btn) {
            min-height: 40px;
            padding: .6rem .85rem;
            border: 1px solid var(--wd-border);
            border-radius: 9px;
            background: var(--wd-surface-raised);
            color: var(--wd-text);
            font-size: .8rem;
            font-weight: 750;
            letter-spacing: .02em;
            line-height: 1;
            text-transform: none;
            box-shadow: none;
            transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
        }

        .ride-toolbar :is(.back-btn, .share-btn, .export-btn, .privacy-btn):hover {
            border-color: var(--wd-blue);
            background: var(--wd-surface-raised);
            color: var(--wd-text);
            box-shadow: none;
            transform: translateY(-1px);
        }

        .ride-toolbar .delete-btn {
            color: #fca5a5;
        }

        .ride-toolbar .delete-btn:hover {
            border-color: var(--wd-red);
            background: rgba(239, 68, 68, .1);
            color: #fecaca;
            box-shadow: none;
            transform: translateY(-1px);
        }

        .ride-toolbar .privacy-btn.public {
            border-color: rgba(52, 211, 153, .35);
            background: rgba(52, 211, 153, .08);
            color: var(--wd-green);
        }

        .ride-toolbar .privacy-btn.public:hover {
            border-color: var(--wd-green);
            background: rgba(52, 211, 153, .12);
            color: #bbf7d0;
            box-shadow: none;
        }

        .ride-toolbar .share-btn {
            color: #bfdbfe;
        }

        .ride-toolbar .btn-icon,
        .ride-toolbar .btn-text {
            font-size: inherit;
            line-height: 1;
        }

        @media (max-width: 768px) {
            .ride-toolbar {
                padding: .6rem .75rem;
            }

            .ride-toolbar .header-controls {
                gap: .45rem;
            }

            .ride-toolbar :is(.back-btn, .share-btn, .export-btn, .privacy-btn, .delete-btn) {
                min-height: 38px;
                padding: .55rem .7rem;
                font-size: .76rem;
            }
        }
