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

.ai-text-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ai-field {
    margin-bottom: 16px;
}
.ai-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.ai-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}
.ai-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}
.ai-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.ai-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;

    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.ai-button:hover:not(:disabled) { background: #005a87; }
.ai-button:active:not(:disabled) { transform: scale(0.98); }
.ai-button:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-btn-gray { background: #6c757d; }
.ai-btn-gray:hover { background: #5a6268; }

/* Вывод */
.ai-output {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 15px;
    min-height: 60px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* SEO-блок */
.ai-seo-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-seo-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}
.ai-seo-label {
    font-weight: 700;
    font-size: 13px;
    color: #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    padding-top: 2px;
}
.ai-seo-value {
    font-size: 14px;
    color: #333;
    flex: 1;
}
.ai-seo-value small {
    color: #999;
    font-size: 12px;
}

/* Список заголовков / идей */
.ai-items-list {
    margin: 0;
    padding-left: 24px;
}
.ai-items-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 15px;
}

/* Текстовый вывод */
.ai-text-output {
    line-height: 1.7;
}

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

/* Адаптив */
@media (max-width: 600px) {
    .ai-seo-row { flex-direction: column; gap: 4px; }
    .ai-seo-label { min-width: auto; }
}
