/* ===== БОЛЬШИЕ ЭКРАНЫ ===== */
@media (max-width: 1200px) {
    .editor-container-flex { height: 600px !important; }
    .templates-panel { width: 220px !important; min-width: 220px !important; max-width: 220px !important; }
}

@media (max-width: 992px) {
    .editor-container-flex { height: 550px !important; }
    .templates-panel { width: 200px !important; min-width: 200px !important; max-width: 200px !important; }
    .templates-panel .template-item { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 768px) {
    body { padding: 0; }
    .container { padding: 8px 10px; }
    .editor-container-flex {
        flex-direction: row !important;
        height: 450px !important;
        min-height: 450px !important;
        border-radius: 8px;
    }
    .editor-wrapper { height: 100% !important; }
    .line-numbers { width: 38px; font-size: 13px; padding: 12px 0; }
    .editor-input-wrap { left: 38px; }
    textarea { font-size: 14px; padding: 12px; }
    .highlight-layer { font-size: 14px; padding: 12px; }
    .templates-panel {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        padding: 8px 10px;
    }
    .templates-panel .templates-title { font-size: 10px; margin-bottom: 6px; }
    .templates-panel .template-item { font-size: 11px; padding: 4px 8px; }
    .color-scheme { grid-template-columns: repeat(2, 1fr); gap: 2px 6px; padding: 6px 10px; }
    .color-scheme-item .code-desc { display: none; }
    .header h1 { font-size: 16px; }
    .header .stats { font-size: 11px; gap: 4px; }
    .menu-btn { font-size: 12px; padding: 3px 10px; }
    .color-modal { padding: 16px 18px 20px 18px; max-width: 96%; }
    .color-modal-grid { grid-template-columns: 1fr; gap: 6px; }
    .color-modal-item label { width: 100px; min-width: 100px; font-size: 12px; }
}

@media (max-width: 600px) {
    .editor-container-flex {
        flex-direction: column !important;
        height: auto !important;
        min-height: 450px !important;
    }
    .editor-wrapper { height: 350px !important; width: 100% !important; }
    .line-numbers { width: 34px; font-size: 12px; padding: 10px 0; padding-right: 6px; }
    .editor-input-wrap { left: 34px; }
    textarea { font-size: 13px; padding: 10px; }
    .highlight-layer { font-size: 13px; padding: 10px; }
    .templates-panel {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        border-left: none !important;
        border-top: 1px solid #3a3a3a !important;
        padding: 8px 12px !important;
    }
    .templates-panel .templates-title { font-size: 10px; }
    .templates-panel .template-item { font-size: 12px; padding: 3px 8px; }
    .color-scheme { grid-template-columns: repeat(2, 1fr); gap: 2px 6px; padding: 6px 10px; }
    .color-scheme-item .code-desc { display: none; }
    .header h1 { font-size: 16px; }
    .header .stats { font-size: 11px; gap: 4px; }
    .menu-btn { font-size: 12px; padding: 3px 10px; }
}

@media (max-width: 480px) {
    body { padding: 0; }
    .container { padding: 4px 6px; }
    .editor-wrapper { height: 250px !important; min-height: 200px !important; }
    .line-numbers { width: 30px; font-size: 11px; padding: 8px 0; padding-right: 4px; }
    .editor-input-wrap { left: 30px; }
    textarea { font-size: 12px; padding: 8px; }
    .highlight-layer { font-size: 12px; padding: 8px; }
    .templates-panel { max-height: 150px; padding: 6px 8px; }
    .templates-panel .template-item { font-size: 11px; padding: 2px 6px; }
    .color-scheme { grid-template-columns: 1fr 1fr; gap: 2px 4px; padding: 4px 8px; }
    .color-scheme-item .code-group { font-size: 10px; }
    .color-scheme-item .code-desc { display: none; }
    .color-modal { padding: 12px; max-width: 98%; }
    .color-modal-item label { width: 70px; min-width: 70px; font-size: 10px; }
    .color-modal-item input[type="color"] { width: 28px; height: 22px; }
    .color-modal-item .color-hex { font-size: 9px; width: 42px; min-width: 42px; }
    .header h1 { font-size: 14px; }
    .header .stats { font-size: 10px; gap: 2px; }
    .menu-btn { font-size: 11px; padding: 2px 8px; }
    .status-bar { font-size: 10px; flex-direction: column; align-items: center; gap: 2px; }
    .stats-right { font-size: 10px; gap: 3px; }
}
