        :root {
            --colab-green: #d4edda;
            --green: #28a745;
            --light-green: #c3e6cb;
            --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
        }
        
        body {
            background: var(--bg-gradient);
            min-height: 100vh;
            font-family: 'SF Pro Display', -apple-system, sans-serif;
        }
        
        .hero-section {
            background: linear-gradient(135deg, rgba(40,167,69,0.1) 0%, rgba(216,237,218,0.5) 100%);
            border-radius: 24px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .computer-illustration {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 200px;
            height: 200px;
            opacity: 0.1;
            z-index: 0;
        }
        
        .computer-illustration svg {
            width: 100%;
            height: 100%;
        }
        
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        .trainer-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(40,167,69,0.2);
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(40,167,69,0.15);
            overflow: hidden;
        }
        
        .ace-editor-container {
            height: 550px;
            border-radius: 16px;
            border: 2px solid var(--light-green);
            background: #fdfdfd;
            position: relative;
            overflow: hidden;
        }
        
        .output-panel {
            background: linear-gradient(145deg, #f8f9fa, #ffffff);
            border-radius: 16px;
            border: 2px solid var(--light-green);
            height: 100%;
        }
        
        .btn-run {
            background: linear-gradient(135deg, var(--green) 0%, #20c997 100%);
            border: none;
            border-radius: 50px;
            padding: 1rem 2.5rem;
            font-weight: 700;
            font-size: 1.1rem;
            box-shadow: 0 8px 25px rgba(40,167,69,0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-run:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(40,167,69,0.4);
            color: white !important;
        }
        
        #output {
            background: #1e1e1e;
            color: #d4d4d4;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 14px;
            line-height: 1.6;
            border-radius: 12px;
            padding: 1.5rem;
            min-height: 450px;
            white-space: pre-wrap;
            overflow-y: auto;
        }
        
        @media (max-width: 768px) {
            .computer-illustration {
                width: 120px;
                height: 120px;
                right: -20px;
            }
        }
        .ace-editor-container {
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: auto !important;
    line-height: 1.4 !important;
}

.ace_editor,
.ace_text-input,
.ace_editor div,
.ace_content {
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    font: 14px/1.4 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace !important;
    text-rendering: auto !important;
    overflow-y: auto;
}

/* Фикс для Webkit браузеров */
@supports (-webkit-appearance: none) {
    .ace_text-input {
        -webkit-appearance: none !important;
        -webkit-font-smoothing: auto !important;
    }
}

.zoomable-img {
    transition: transform 0.2s ease;
    cursor: zoom-in;
}
.zoomable-img:hover {
    transform: scale(1.2);  /* Лёгкий зум при наведении */
}

.ace-editor-container .ace-editor-textarea {
    width: 100% !important;
    min-height: 400px !important;
    max-height: 500px !important;
    overflow-y: auto !important;  /* ← ВЕРТИКАЛЬНЫЙ СКРОЛЛ */
    overflow-x: auto !important;
    resize: vertical;  /* ← Пользователь может растянуть */
    padding: 1.5rem !important;
    font-family: 'Monaco', 'Consolas', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: #4CAF50 #E8F5E8;
}

.ace-editor-container .ace-editor-textarea::-webkit-scrollbar {
    width: 8px;
}

.ace-editor-container .ace-editor-textarea::-webkit-scrollbar-track {
    background: #E8F5E8;
    border-radius: 10px;
}

.ace-editor-container .ace-editor-textarea::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
    transition: background 0.3s;
}

.ace-editor-container .ace-editor-textarea::-webkit-scrollbar-thumb:hover {
    background: #388E3C;
}