* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

.motorex-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    font-family: Arial, sans-serif;
}

.calculator-header {
    text-align: center;
    margin-bottom: 15px;
}

.calculator-header h2 {
    color: #009989;
    font-size: 22px;
    margin-bottom: 5px;
}

.calculator-header p {
    color: #666;
    font-size: 13px;
}










.performance-guide {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.performance-guide h3 {
    color: #009989;
    margin-bottom: 5px;
    text-align: center;
    font-size: 17px;
}

.note-top {
    text-align: center;
    color: #666;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 15px;
}

.oil-scale {
    margin: 15px 0;
}

.slider-container {
    padding: 0 12px;
}

.ratio-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #009989;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ratio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #009989;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    border: 3px solid white;
}

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

.ratio-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #009989;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.ratio-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #009989;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 12px;
    font-size: 9px;
    color: #999;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    font-weight: bold;
    padding: 0 8px;
}

.scale-label-left, .scale-label-right {
    color: #009989;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}

.motorex-calculator .performance-guide .results-table th {
    background: #009989 !important;
    color: white !important;
    padding: 12px 20px !important;
    text-align: left !important;
    font-size: 14px !important;
    border: none !important;
}

.motorex-calculator .performance-guide .results-table th:first-child,
.motorex-calculator .performance-guide .results-table th:last-child {
    padding: 12px 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.motorex-calculator .performance-guide .results-table td {
    padding: 12px 20px !important;
    border-bottom: 1px solid #eee !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    font-size: 14px !important;
}

.motorex-calculator .performance-guide .results-table td:first-child,
.motorex-calculator .performance-guide .results-table td:last-child {
    padding: 12px 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.motorex-calculator .performance-guide .results-table tbody tr td:first-child {
    padding-left: 20px !important;
}

.motorex-calculator .performance-guide .results-table tbody tr td:last-child {
    padding-right: 20px !important;
}

.results-table tr:last-child td {
    border-bottom: none !important;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.performance-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.performance-card h4 {
    margin-bottom: 6px;
    font-size: 13px;
    color: #009989;
}

.performance-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.performance-card li {
    padding: 3px 0;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.performance-card li:before {
    content: "• ";
    color: #009989;
    font-weight: bold;
}

@media (max-width: 768px) {
    .motorex-calculator {
        padding: 10px;
    }
    
    .calculator-header h2 {
        font-size: 20px;
    }
    
    .calculator-header p {
        font-size: 12px;
    }
    
    
    
    .performance-guide {
        padding: 12px;
    }
    
    .performance-guide h3 {
        font-size: 16px;
    }
    
    .note-top {
        font-size: 10px;
    }
    
    .slider-container {
        padding: 0 10px;
    }
    
    .ratio-slider {
        height: 12px;
    }
    
    .ratio-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .ratio-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .slider-value {
        font-size: 18px;
        margin-top: 8px;
    }
    
    .slider-ticks {
        font-size: 8px;
        padding: 0 10px;
    }
    
    .scale-labels {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .motorex-calculator .performance-guide .results-table th,
    .motorex-calculator .performance-guide .results-table td {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .motorex-calculator .performance-guide .results-table th:first-child,
    .motorex-calculator .performance-guide .results-table th:last-child,
    .motorex-calculator .performance-guide .results-table td:first-child,
    .motorex-calculator .performance-guide .results-table td:last-child {
        padding: 10px 15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .performance-card {
        padding: 10px;
    }
    
    .performance-card h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .performance-card li {
        font-size: 11px;
        padding: 3px 0;
    }
}

@media (max-width: 480px) {
    .motorex-calculator {
        padding: 8px;
    }
    
    .calculator-header {
        margin-bottom: 10px;
    }
    
    .calculator-header h2 {
        font-size: 18px;
    }
    
    
    
    
    
    
    .performance-guide {
        padding: 10px;
    }
    
    .performance-guide h3 {
        font-size: 15px;
    }
    
    .oil-scale {
        margin: 10px 0;
    }
    
    .slider-value {
        font-size: 16px;
    }
    
    .scale-labels {
        flex-direction: column;
        gap: 2px;
    }
    
    .results-table {
        font-size: 12px;
    }
    
    .motorex-calculator .performance-guide .results-table th,
    .motorex-calculator .performance-guide .results-table td {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .motorex-calculator .performance-guide .results-table th:first-child,
    .motorex-calculator .performance-guide .results-table th:last-child,
    .motorex-calculator .performance-guide .results-table td:first-child,
    .motorex-calculator .performance-guide .results-table td:last-child {
        padding: 8px 12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .performance-card {
        padding: 8px;
    }
    
    .performance-card h4 {
        font-size: 12px;
    }
    
    .performance-card li {
        font-size: 10px;
    }
}
