        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .analyzer-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .analyzer-container h1 {
            color: #333;
            text-align: center;
            margin-bottom: 30px;
        }

        .upload-section {
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            margin-bottom: 30px;
            transition: border-color 0.3s;
        }

        .upload-section:hover {
            border-color: #007bff;
        }

        .settings-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
            gap: 20px; 
            margin-bottom: 20px;
        }

        .settings-grid div {
            display: flex;
            flex-direction: column;
        }

        .settings-grid label {
            display: block; 
            margin-bottom: 5px; 
            font-weight: 600;
        }

        .settings-grid input {
            width: 100%; 
            padding: 8px; 
            border: 1px solid #ddd; 
            border-radius: 4px;
            box-sizing: border-box;
        }

        .file-input {
            margin: 20px 0;
        }

        .analyze-btn {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            margin-left: 10px;
        }

        .analyze-btn:hover {
            background-color: #0056b3;
        }

        .analyze-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .results {
            margin-top: 30px;
        }

        .summary {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 6px;
            margin-bottom: 30px;
        }

        .summary h3 {
            margin-top: 0;
            color: #495057;
        }

        .summary-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            background: white;
            padding: 15px;
            border-radius: 6px;
            text-align: center;
            border: 1px solid #dee2e6;
        }

        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
        }

        .stat-label {
            font-size: 14px;
            color: #6c757d;
            margin-top: 5px;
        }

        /* Ultra Pacing Summary Tiles */
        .ultra-pacing-summary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            color: white;
        }

        .ultra-pacing-summary h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 18px;
            font-weight: 600;
        }

        .ultra-tiles {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }

        .ultra-tile {
            background: rgba(255, 255, 255, 0.15);
            padding: 12px;
            border-radius: 6px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .ultra-tile-value {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 4px;
        }

        .ultra-tile-label {
            font-size: 11px;
            opacity: 0.9;
        }

        .ultra-tile-sublabel {
            font-size: 10px;
            opacity: 0.7;
            font-style: italic;
        }

        /* Section Strategy Badge */
        .strategy-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: bold;
            margin-left: 8px;
        }

        .strategy-run {
            background-color: #28a745;
            color: white;
        }

        .strategy-run-hard {
            background-color: #ffc107;
            color: black;
        }

        .strategy-hike {
            background-color: #fd7e14;
            color: white;
        }

        .strategy-critical {
            background-color: #dc3545;
            color: white;
        }

        /* Pacing alert */
        .pacing-alert {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 4px;
            padding: 8px 12px;
            margin-top: 8px;
            font-size: 12px;
            color: #856404;
        }

        .pacing-alert strong {
            color: #856404;
        }

        /* Export button */
        .export-btn {
            margin-top: 10px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.3);
            border: 1px solid rgba(255,255,255,0.5);
            color: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
        }

        .export-btn:hover {
            background: rgba(255,255,255,0.4);
        }

        /* Tab styles */
        .tab-container {
            margin-top: 30px;
        }

        .tab-headers {
            display: flex;
            border-bottom: 2px solid #dee2e6;
            margin-bottom: 20px;
        }

        .tab-header {
            padding: 12px 24px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-bottom: none;
            cursor: pointer;
            margin-right: 4px;
            border-radius: 6px 6px 0 0;
            transition: background-color 0.2s;
        }

        .tab-header:hover {
            background: #e9ecef;
        }

        .tab-header.active {
            background: white;
            border-bottom: 2px solid white;
            position: relative;
            z-index: 1;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .analyzer-container table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            background: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .analyzer-container th, 
        .analyzer-container td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }

        .analyzer-container th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: #495057;
        }

        .analyzer-container tr:last-child td {
            border-bottom: none;
        }

        .numeric {
            text-align: right;
        }

        .table-container {
            margin-bottom: 30px;
        }

        .table-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
        }

        .copy-note {
            font-size: 14px;
            color: #6c757d;
            font-style: italic;
            margin-bottom: 10px;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #6c757d;
        }

        .error {
            background-color: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 6px;
            margin: 20px 0;
        }

        .section-type {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            color: white;
        }

        .section-very-steep-uphill { background-color: #8b0000; }
        .section-steep-uphill { background-color: #dc3545; }
        .section-moderate-uphill { background-color: #fd7e14; }
        .section-gentle-uphill { background-color: #ffc107; color: black; }
        .section-flat { background-color: #28a745; }
        .section-gentle-downhill { background-color: #20c997; }
        .section-moderate-downhill { background-color: #17a2b8; }
        .section-steep-downhill { background-color: #6f42c1; }
        .section-very-steep-downhill { background-color: #4b0082; }

        .gradient-legend {
            margin: 20px 0;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .gradient-legend h4 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #495057;
            text-align: center;
        }

        .legend-bar {
            display: flex;
            height: 30px;
            border-radius: 15px;
            overflow: hidden;
            margin-bottom: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .legend-segment {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        .legend-labels {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #6c757d;
            margin-top: 8px;
        }

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

        .section-stat {
            background: white;
            padding: 10px;
            border-radius: 6px;
            text-align: center;
            border: 1px solid #dee2e6;
        }

        .section-stat-value {
            font-size: 16px;
            font-weight: bold;
            color: #007bff;
        }

        .section-stat-label {
            font-size: 11px;
            color: #6c757d;
            margin-top: 3px;
        }
