/* The AI connector strip, shared by the portal start page and the login page.
 *
 * Its markup is /components/ai-promo.html — one file, so the two pages cannot drift apart. A page
 * that mounts the strip has to link this stylesheet; test_18 checks that pairing.
 *
 * Accent border on one side rather than an accent fill: it has to read as "new" without becoming
 * the loudest thing on a page whose job is something else. Colours are the source tokens from
 * styles.css only — this file is copied into the backoffice image with the rest of css/, where a
 * literal would survive the theme's redefinition and mean something nobody chose.
 */

.ai-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--card-background);
}

.ai-promo-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 2rem;
}

.ai-promo-text {
    flex: 1 1 22rem;
}

.ai-promo-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.ai-promo-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .ai-promo {
        padding: 1rem 1.15rem;
    }

    .ai-promo-actions {
        width: 100%;
    }

    .ai-promo-actions .btn {
        flex: 1 1 auto;
    }
}
