.cs-seo-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cs-seo-container h2 {
    margin-top: 0;
}

/* Поля ввода и кнопка */
.cs-seo-field {
    margin: 15px 0;
}
.cs-seo-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.cs-seo-field input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.cs-seo-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.cs-seo-button:hover {
    background: #005a87;
}

/* Карточки секций */
.cs-seo-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Метрики внутри секций */
.cs-seo-metric {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.cs-seo-metric:last-child {
    border-bottom: none;
}
.cs-seo-metric .label {
    font-weight: 600;
    color: #333;
}
.cs-seo-metric .value {
    color: #555;
    max-width: 65%;
    text-align: right;
    word-break: break-all;
}

/* Статусы (синхронизировано с JS) */
.cs-seo-status-good {
    color: #28a745;
    font-weight: 600;
}
.cs-seo-status-warning {
    color: #ffc107;
    font-weight: 600;
}
.cs-seo-status-error {
    color: #dc3545;
    font-weight: 600;
}
/* Для обратной совместимости */
.cs-seo-status-ok {
    color: #28a745;
    font-weight: 600;
}

/* Блок рекомендаций */
.cs-seo-advice {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}
.cs-seo-advice ul {
    margin: 5px 0 0 20px;
}
.cs-seo-advice li {
    margin-bottom: 4px;
}

/* Общий рейтинг */
.cs-seo-score {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}
.cs-seo-score.good {
    background: #d4edda;
    color: #155724;
}
.cs-seo-score.average {
    background: #fff3cd;
    color: #856404;
}
.cs-seo-score.poor {
    background: #f8d7da;
    color: #721c24;
}

/* Скорость */
.cs-seo-speed-block {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}
.cs-seo-speed-item {
    flex: 1;
    min-width: 100px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: center;
}
.cs-seo-speed-item .label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
}
.cs-seo-speed-item .value {
    font-size: 18px;
    font-weight: 600;
}

/* Ошибки */
.cs-seo-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

/* Капча */
.cs-captcha-field {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    max-width: 400px;
}
.cs-captcha-field label {
    font-weight: 600;
    font-size: 16px;
}
.cs-captcha-field .cs-captcha-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px 0;
}
.cs-captcha-field .cs-captcha-hint {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

/* Встроенные советы (inline) */
.cs-seo-advice-inline {
    font-size: 13px;
    margin-top: 6px;
    padding-left: 10px;
    border-left: 3px solid;
}
.cs-seo-advice-inline.cs-seo-status-good {
    border-color: #28a745;
    color: #155724;
}
.cs-seo-advice-inline.cs-seo-status-warning {
    border-color: #ffc107;
    color: #856404;
}
.cs-seo-advice-inline.cs-seo-status-error {
    border-color: #dc3545;
    color: #721c24;
}

/* Таблица ключевых слов */
.cs-seo-keyword-table th,
.cs-seo-keyword-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.cs-seo-keyword-table th {
    background-color: #0073aa;
    color: #fff;
}