﻿.chatart-gallery-loading {
    margin-top: 1rem;
    color: rgba(255,255,255,.72);
}

.chatart-card {
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease;
}

    .chatart-card:hover {
        transform: translateY(-1px);
    }

    .chatart-card.copied {
        outline: 2px solid rgba(25,135,84,.55);
        outline-offset: 2px;
    }

.chatart-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: 8px;
}

.chatart-card__rows {
    font-size: .75rem;
    color: rgba(203,213,245,.72);
    white-space: nowrap;
}

.chatart-card__caption {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(203,213,245,.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 16px;
}

.chatart-thumb-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    max-height: 260px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(10, 14, 25, 0.45);
    border: 1px solid rgba(120, 140, 200, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    overflow: hidden;
    flex: 0 0 auto;
}

.chatart-thumb-grid {
    --thumb-cols: 16;
    display: grid;
    grid-template-columns: repeat(var(--thumb-cols), 1fr);
    gap: 1px;
    justify-content: center;
    align-content: center;
    width: min(100%, 180px);
}

.chatart-thumb-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(7px, .65vw, 10px);
    line-height: 1;
    border-radius: 3px;
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.03);
    overflow: hidden;
}

    .chatart-thumb-cell.is-empty {
        color: transparent;
        background: rgba(255,255,255,.02);
    }

.chatart-card__bubble {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 6px 8px 10px;
    border-radius: 12px;
    background: rgba(10, 14, 25, 0.45);
    border: 1px solid rgba(120, 140, 200, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    min-height: 0;
}

.chatart-card,
#caRow .vault-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#caRow .mv-col {
    display: flex;
}

    #caRow .mv-col > .chatart-card,
    #caRow .mv-col > .vault-card {
        width: 100%;
    }


@media (min-width: 992px) {
    #caRow.mv-d-6 .chatart-thumb-shell,
    #caRow.mv-d-7 .chatart-thumb-shell {
        min-height: 130px;
    }

    #caRow.mv-d-6 .chatart-thumb-grid,
    #caRow.mv-d-7 .chatart-thumb-grid {
        width: min(100%, 150px);
    }
}

@media (max-width: 991.98px) {
    #caRow.mv-m-2 .chatart-thumb-grid,
    #caRow.mv-m-3 .chatart-thumb-grid {
        width: min(100%, 150px);
    }
}

/* Ultra dense layouts */
@media (min-width: 992px) {

    #caRow.mv-d-8 .chatart-thumb-grid,
    #caRow.mv-d-9 .chatart-thumb-grid,
    #caRow.mv-d-10 .chatart-thumb-grid,
    #caRow.mv-d-11 .chatart-thumb-grid,
    #caRow.mv-d-12 .chatart-thumb-grid,
    #caRow.mv-d-13 .chatart-thumb-grid,
    #caRow.mv-d-14 .chatart-thumb-grid,
    #caRow.mv-d-15 .chatart-thumb-grid,
    #caRow.mv-d-16 .chatart-thumb-grid {
        width: min(100%, 120px);
    }

    #caRow.mv-d-10 .chatart-thumb-cell,
    #caRow.mv-d-11 .chatart-thumb-cell,
    #caRow.mv-d-12 .chatart-thumb-cell,
    #caRow.mv-d-13 .chatart-thumb-cell,
    #caRow.mv-d-14 .chatart-thumb-cell,
    #caRow.mv-d-15 .chatart-thumb-cell,
    #caRow.mv-d-16 .chatart-thumb-cell {
        font-size: 6px;
    }
}

#caRow .chatart-thumb-shell {
    min-height: 170px;
}

#caRow.mv-d-8 .chatart-thumb-shell,
#caRow.mv-d-9 .chatart-thumb-shell,
#caRow.mv-d-10 .chatart-thumb-shell,
#caRow.mv-d-11 .chatart-thumb-shell,
#caRow.mv-d-12 .chatart-thumb-shell,
#caRow.mv-d-13 .chatart-thumb-shell,
#caRow.mv-d-14 .chatart-thumb-shell,
#caRow.mv-d-15 .chatart-thumb-shell,
#caRow.mv-d-16 .chatart-thumb-shell {
    min-height: 130px;
}
.chatart-card__meta {
    margin-top: auto;
    justify-content: center;
}