.pace-calculator {
            font-family: var(--font-body);
            max-width: 28rem;
            margin: 0 auto;
            width: 100%;
            padding: 1rem;
            box-sizing: border-box;
        }

        .pace-calculator * {
            box-sizing: border-box;
        }

        .navigation {
            margin-bottom: 1.25rem;
        }

        .nav-steps {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
        }

        .nav-step {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            background: var(--line-1);
            color: var(--text-secondary-6);
        }

        .nav-step.active {
            background: var(--navy);
            color: white;
            transform: scale(1.05);
        }

        .nav-step:hover {
            background: var(--line-3);
        }

        .nav-step.active:hover {
            background: var(--navy);
        }

        .nav-line {
            width: 2rem;
            height: 0.125rem;
            margin: 0 0.25rem;
            background: var(--line-1);
            transition: all 0.2s;
        }

        .nav-line.active {
            background: var(--navy);
        }

        .nav-labels {
            display: flex;
            justify-content: center;
            gap: 1rem;
            font-size: 0.75rem;
        }

        .nav-label {
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            cursor: pointer;
            transition: all 0.2s;
            background: none;
            border: none;
            color: var(--text-secondary-6);
        }

        .nav-label.active {
            color: var(--navy);
            font-weight: 500;
        }

        .nav-label:hover {
            color: var(--navy);
            background: var(--bg);
        }

        .page-title {
            text-align: center;
            margin-bottom: 2rem;
            font-size: 2rem;
            font-weight: bold;
            color: var(--navy);
            line-height: 1.2;
        }

        .section {
            background: white;
            border-radius: var(--radius-xxl);
            box-shadow: var(--shadow-card);
            border: 1px solid var(--line-1);
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--navy);
        }

        .section-number {
            width: 1.25rem;
            height: 1.25rem;
            background: var(--red);
            color: white;
            font-family: var(--font-mono);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

        .input-field {
            padding: 0.75rem;
            border: 1px solid var(--line-3);
            border-radius: var(--radius-m);
            background: var(--field-bg);
            text-align: center;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s;
            width: 100%;
            box-sizing: border-box;
            padding-right: 2.5rem;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--red);
            box-shadow: 0 0 0 1px var(--red);
        }

        .input-field:hover {
            background: var(--field-bg);
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            margin-bottom: 0.75rem;
        }

        .input-label {
            font-size: 0.75rem;
            color: var(--text-secondary-6);
            font-weight: 500;
        }

        .unit-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .unit-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--line-3);
            border-radius: var(--radius-pill);
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--field-bg);
            color: var(--text-secondary-8);
            flex: 1;
        }

        .unit-btn.active {
            background: var(--navy);
            color: white;
            border-color: var(--navy);
        }

        .unit-btn:hover {
            background: var(--line-1);
        }

        .unit-btn.active:hover {
            background: var(--navy);
        }

        .input-wrapper {
            position: relative;
        }

        .input-suffix {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: var(--text-secondary-6);
            pointer-events: none;
        }

        .time-inputs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }

        .time-input {
            position: relative;
        }

        .time-separator {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            color: var(--text-secondary-6);
        }

        .slider-group {
            margin-bottom: 0.75rem;
        }

        .slider {
            width: 100%;
            height: 0.25rem;
            background: var(--switch-track);
            border-radius: 9999px;
            outline: none;
            border: none;
            cursor: pointer;
            accent-color: var(--red);
            -webkit-appearance: none;
            margin-bottom: 0.5rem;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 50%;
            background: var(--red);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: all 0.2s ease;
        }

        .slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        .slider-value {
            font-family: var(--font-mono);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--navy);
            text-align: center;
        }

        .result-main {
            background: var(--navy);
            border-radius: var(--radius-l);
            padding: 1rem;
            color: white;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        /* White styling for event distances section */
        #widget-distances-section {
            background: white !important;
            color: var(--navy) !important;
            border: 1px solid var(--line-1);
        }
        
        #widget-distances-section .result-title {
            color: var(--navy) !important;
        }

        .result-header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
        }

        .result-title {
            font-size: 0.75rem;
            font-weight: 600;
            opacity: 0.9;
        }

        .result-value {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .result-subtitle {
            color: var(--line-3);
            font-size: 0.75rem;
        }

        #main-popular-results {
            display: grid;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        #main-popular-results .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            font-size: 0.875rem;
            color: white;
        }

        #main-popular-results .result-item-name {
            flex: 1;
            font-weight: 500;
            text-align: left;
        }

        #main-popular-results .result-item-time {
            font-weight: 600;
            color: var(--line-3);
        }

        /* Widget distances section styling */
        #widget-distances-results {
            display: grid;
            gap: 0.25rem;
            margin-top: 0.75rem;
        }

        #widget-distances-results .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: var(--field-bg);
            border-radius: 0.5rem;
            font-size: 0.875rem;
            color: var(--text-secondary-8);
        }

        #widget-distances-results .result-item-name {
            flex: 1;
            font-weight: 500;
            text-align: left;
            color: var(--navy);
        }

        #widget-distances-results .result-item-time {
            font-weight: 600;
            color: var(--text-secondary-8);
        }

        .results-section {
            margin-top: 1rem;
        }

        .results-category {
            margin-bottom: 1.5rem;
        }

        .results-category h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 0.5rem;
            padding-bottom: 0.25rem;
            border-bottom: 2px solid var(--navy);
        }

        .results-list {
            display: grid;
            gap: 0.25rem;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: var(--field-bg);
            border-radius: 0.5rem;
            font-size: 0.875rem;
        }

        .result-item.highlight {
            background: var(--navy);
            color: white;
            font-weight: 600;
        }

        .result-item-name {
            text-align: left;
        }

        .result-item-time {
            font-weight: 500;
            color: var(--text-secondary-6);
            text-align: right;
        }

        .result-item.highlight .result-item-time {
            color: var(--line-3);
        }


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

        .results-header .page-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .distance-time-display {
            background: var(--field-bg);
            border: 1px solid var(--line-2);
            border-radius: var(--radius-l);
            padding: 1rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        .distance-time-display .label {
            font-size: 0.75rem;
            color: var(--text-secondary-6);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .distance-time-display .value {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--navy);
            margin: 0.25rem 0;
        }

        .distance-time-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }


        /* Mobile First Responsive Design */
        @media (max-width: 480px) {
            .page-title {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .pace-calculator {
                padding: 0.5rem;
            }
            
            .section {
                padding: 0.75rem;
            }
            
            .time-inputs {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .input-field {
                padding: 0.5rem;
            }
        }

        @media (min-width: 640px) {
            .pace-calculator {
                max-width: 85vw;
                width: 85%;
            }
        }

        @media (min-width: 768px) {
            .pace-calculator {
                max-width: 75vw;
                width: 75%;
            }
        }

        @media (min-width: 1024px) {
            .pace-calculator {
                max-width: 65vw;
                width: 65%;
            }
        }

        @media (min-width: 1280px) {
            .pace-calculator {
                max-width: 55vw;
                width: 55%;
            }
        }
