/* Explain: Styles for the kept photos panel on the upload page. */
/* Kept-photos holding area on the Add Photos page */
.pending-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}

.pending-list:empty {
    display: none;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: var(--surface-color);
    padding: 0.6rem;
}

.pending-thumb {
    flex: 0 0 auto;
    height: 3.5rem;
    width: 3.5rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: var(--field-bg);
}

.pending-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.pending-meta {
    min-width: 0;
    flex: 1;
}

.pending-title {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-sub {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-remove {
    display: inline-flex;
    flex: 0 0 auto;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text-muted);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.pending-remove:hover,
.pending-remove:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    outline: none;
}

.pending-status {
    min-height: 1.25rem;
    color: var(--text-muted);
}

.pending-status.ok {
    color: #10B981;
}