.cs-gzip-container {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}
.cs-gzip-container h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 8px;
}
.cs-gzip-container > p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Переключатель режимов */
.cs-gzip-mode {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.cs-gzip-mode-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.cs-gzip-mode-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}
.cs-gzip-mode-btn:hover:not(.active) {
    background: #eaeaea;
}

/* Dropzone */
.cs-gzip-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.cs-gzip-dropzone-active {
    border-color: #0073aa;
    background: #e7f4ff;
}
.cs-gzip-dropzone-text {
    font-size: 15px;
    color: #666;
}
.cs-gzip-dropzone-hint {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Поля */
.cs-gzip-field { margin-bottom: 16px; }
.cs-gzip-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.cs-gzip-field textarea,
#cs-gzip-output {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
    resize: vertical;
    background: #fff;
}
#cs-gzip-output {
    background: #f5f5f5;
}

/* Кнопки */
.cs-gzip-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cs-gzip-button:hover { background: #005a87; }
.cs-gzip-btn-green { background: #28a745; }
.cs-gzip-btn-green:hover { background: #218838; }
.cs-gzip-btn-blue { background: #0073aa; }
.cs-gzip-btn-gray { background: #6c757d; }
.cs-gzip-btn-gray:hover { background: #5a6268; }
.cs-gzip-btn-purple { background: #6f42c1; }
.cs-gzip-btn-purple:hover { background: #59359a; }

/* Строка результата round-trip self-test */
.cs-gzip-check-line {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.cs-gzip-check-ok {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}
.cs-gzip-check-fail {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cs-gzip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Статистика */
.cs-gzip-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cs-gzip-stat {
    flex: 1;
    min-width: 140px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
}
.cs-gzip-stat-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.cs-gzip-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
.cs-gzip-stat-ratio {
    font-size: 22px;
}

/* Ошибка */
.cs-gzip-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    margin-top: 16px;
}

/* Результат */
.cs-gzip-result-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 600px) {
    .cs-gzip-mode { flex-direction: column; }
    .cs-gzip-mode-btn { width: 100%; text-align: center; }
    .cs-gzip-stats { flex-direction: column; }
    .cs-gzip-stat { min-width: 100%; }
    .cs-gzip-actions { flex-direction: column; }
    .cs-gzip-button { width: 100%; }
}
