        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        .main-content {
            display: flex;
            min-height: 700px;
        }
        
        .controls {
            flex: 1;
            padding: 30px;
            background: #f8f9fa;
            border-right: 1px solid #e9ecef;
            overflow-y: auto;
            max-height: 900px;
        }
        
        .preview {
            flex: 2;
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }
        
        select, input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        select:focus, input:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
        }
        
        button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 10px;
        }
        
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .missing-input-container {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }
        
        .instructions {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            font-size: 14px;
            color: #1976d2;
        }
        
        .scale-container {
            width: 100%;
            max-width: 500px;
            height: 450px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        /* Термометр стили */
        .thermometer {
            position: relative;
            width: 120px;
            height: 400px;
        }
        
        .thermometer-bulb {
            width: 70px;
            height: 70px;
            background: #e91e63;
            border: 3px solid #c2185b;
            border-radius: 50%;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
        }
        
        .thermometer-tube {
            width: 30px;
            height: 390px;
            background: white;
            border: 3px solid #6c757d;
            border-radius: 15px;
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1;
            overflow: hidden;
        }
        
        .thermometer-liquid {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: linear-gradient(to top, #e91e63, #f48fb1);
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            border-bottom-right-radius: 0px;
            border-bottom-left-radius: 0px;
            transition: height 0.5s ease;
            z-index: 1;
            bottom:30px;
        }
        
        .thermometer-scale {
            position: absolute;
            left: 60px;
            height: 300px;
            bottom: 90px;
            width: 50px;
            z-index: 4;
        }
        
        .thermometer-mark {
            position: absolute;
            height: 2px;
            background: #495057;
            left: 0;
            transform: translateY(-50%);
        }
        
        .thermometer-major-mark {
            width: 16px;
            background: #2c3e50;
        }
        
        .thermometer-minor-mark {
            width: 8px;
        }
        
        .thermometer-label {
            position: absolute;
            font-size: 12px;
            color: #495057;
            left: 20px;
            transform: translateY(-50%);
            white-space: nowrap;
            z-index: 4;
            font-weight: bold;
        }
        
/* Спидометр стили */
.speedometer {
    position: relative;
    width: 350px;
    height: 350px;
}

.speedometer-arc {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 3px solid #6c757d;
    background: white;
    z-index: 1;
}

.speedometer-scale {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 290px;
    height: 290px;
    z-index: 2;
}

.speedometer-mark {
    position: absolute;
    width: 2px;
    background: #495057;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    margin-left: -1px;
}

.speedometer-major-mark {
    height: 14px;
    width: 3px;
    background: #2c3e50;
}

.speedometer-minor-mark {
    height: 8px;
}

.speedometer-label {
    position: absolute;
    font-size: 12px;
    color: #495057;
    transform-origin: center;
    z-index: 3;
    font-weight: bold;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.speedometer-needle {
    position: absolute;
    width: 4px;
    height: 130px;
    background: #e91e63;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    z-index: 4;
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.speedometer-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e91e63;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
        
        /* Горизонтальная шкала стили */
        .horizontal-scale {
            width: 480px;
            height: 150px;
            position: relative;
        }
        
        .horizontal-line {
            width: 100%;
            height: 6px;
            background: #495057;
            position: absolute;
            top: 75px;
            z-index: 1;
        }
        
        .horizontal-mark {
            position: absolute;
            width: 2px;
            background: #495057;
            top: 75px;
            z-index: 2;
        }
        
        .horizontal-major-mark {
            height: 24px;
            background: #2c3e50;
        }
        
        .horizontal-minor-mark {
            height: 12px;
        }
        
        .horizontal-label {
            position: absolute;
            font-size: 14px;
            color: #495057;
            top: 105px;
            transform: translateX(-50%);
            white-space: nowrap;
            z-index: 3;
            font-weight: bold;
        }
        
        .missing-number {
            color: #e91e63;
            font-weight: bold;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            border: 1px solid #e91e63;
        }
        
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
                min-height: auto;
            }
            
            .controls {
                border-right: none;
                border-bottom: 1px solid #e9ecef;
                max-height: none;
            }
            
            .preview {
                padding: 20px;
                min-height: 400px;
            }
        }