/* ── Favorites Panel ── */

.fav-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    padding: 8px;
}

.fav-card {
    display: flex;
    flex-direction: column;
    background: #0d0d0f;
    border: 1px solid #1f1f23;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fav-card:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.fav-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #0a0a0c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-card-img > i {
    position: absolute;
    inset: 0;
    margin: auto;
}

.fav-card-info {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.fav-card-prompt {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin: 0;
}

.fav-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.fav-card-tag {
    font-size: 9px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}
