/* Les apports à Lumi (#3052) : les liens sous les cartes de l'accueil de Lumi, les lignes d'apport (« Mes apports »,
   « Apports à relire »), le dépôt des fichiers et la galerie d'un apport. Couleurs par les jetons seulement. */

/* L'accueil de Lumi : « ✨ Enrichir Lumi », « Mes apports », « Apports à relire » — sous les quatre cartes. */
.lumi-chat-enrich {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
}

.lumi-chat-enrich-link {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    border: 1px solid var(--brand-line-soft);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-text);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.lumi-chat-enrich-link:hover,
.lumi-chat-enrich-link:focus-visible {
    border-color: var(--brand-accent);
    color: var(--brand-text);
}

.lumi-chat-enrich-link.is-main {
    border-color: transparent;
    background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-bg));
}

/* Une ligne d'apport : le sujet, le titre et ses repères, l'état. */
.lumi-knowledge-rows {
    display: flex;
    flex-direction: column;
}

.lumi-knowledge-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--brand-line-soft);
    color: var(--brand-text);
    text-decoration: none;
}

.lumi-knowledge-row:last-child {
    border-bottom: 0;
}

.lumi-knowledge-row-kind {
    flex: 0 0 auto;
    font-size: 1.3rem;
}

.lumi-knowledge-row-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.lumi-knowledge-row-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.lumi-knowledge-row-meta {
    color: var(--brand-muted);
    font-size: .85rem;
}

.lumi-knowledge-row-status {
    flex: 0 0 auto;
    white-space: normal;
    text-align: right;
}

/* AJUST-193 (#3224) : sur téléphone, le titre prend toute la largeur et le badge d'état passe dessous — la ligne ne se
   serre plus dans une colonne étroite à côté d'un badge long (« VALIDÉ : LUMI S'EN SERT »). */
@media (max-width: 480px) {
    .lumi-knowledge-row {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: .35rem;
    }

    /* Une colonne d'icône de largeur fixe : l'emoji (plus large sous Windows) ne fait plus passer le titre à la ligne. */
    .lumi-knowledge-row-kind {
        flex: 0 0 1.75rem;
        min-width: 0;
        text-align: center;
    }

    .lumi-knowledge-row-text {
        flex: 1 1 calc(100% - 2.5rem);
    }

    .lumi-knowledge-row-status {
        margin-left: 2.5rem;
        text-align: left;
    }
}

/* Le dépôt : les deux champs fichier, la zone qui reçoit un glisser, la liste de ce qui est joint. */
.lumi-knowledge-drop {
    padding: .75rem;
    border: 1px dashed var(--brand-line);
    border-radius: 12px;
}

.lumi-knowledge-drop.is-over {
    border-color: var(--brand-accent);
    background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-bg));
}

.lumi-knowledge-files {
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}

.lumi-knowledge-files li {
    padding: .15rem 0;
    overflow-wrap: anywhere;
}

/* Un apport : le texte, les photos en vignettes, les PDF en liens. */
.lumi-knowledge-body {
    white-space: normal;
    overflow-wrap: anywhere;
}

.lumi-knowledge-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.lumi-knowledge-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--brand-line-soft);
}

.lumi-knowledge-doc {
    flex: 1 1 100%;
    overflow-wrap: anywhere;
}
