/* My uploads: printed spots on the felt, one per image */

.uploads-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 4px 0 28px;
}

.uploads {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.upload {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink-soft);
    border-radius: 20px;
    padding: 18px;
    gap: 16px;
    min-width: 0;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.upload:hover { border-color: var(--ink); background-color: rgba(255, 255, 255, .03); }

.upload-img {
    height: 230px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(10, 24, 48, .35);
}
.upload-img img { max-width: 100%; max-height: 210px; width: auto; height: auto; }
.upload-img.is-missing img { display: none; }
.upload-img.is-missing::after { content: "Image unavailable"; color: var(--text-on-felt-2); font-size: 13px; }

.upload-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.upload-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.upload-code { font: 600 16px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-dims { font: 500 12px var(--mono); color: var(--ink); white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.facts { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.facts dt { color: var(--text-on-felt-2); }
.facts dd { margin: 0; }

.upload-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.edit-closed { font-size: 13px; color: var(--text-on-felt-2); padding: 0 4px; }

.is-skeleton { border-style: dashed; }
.is-skeleton .upload-img { animation: pulse 1.4s ease-in-out infinite; }
.bar { display: block; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); width: 70%; }
.bar--short { width: 40%; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.state { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.state-title { font: 400 26px var(--display); color: var(--ink); margin: 0; letter-spacing: .03em; }
.state p { margin: 0 0 10px; color: var(--text-on-felt-2); }

.more { display: flex; justify-content: center; margin-top: 28px; }
.end { color: var(--text-on-felt-2); font-size: 13px; margin: 0; }

@media (max-width: 720px) {
    .uploads-head .chip { width: 100%; }
    .upload-img { height: 200px; }
}

/* Deleting */
.upload .confirm { margin-top: auto; }
.upload.is-deleted { border-style: dashed; transition: opacity .6s var(--ease); }
.upload.is-deleted .upload-body { gap: 10px; align-items: flex-start; }
.upload.is-deleted .upload-img { filter: grayscale(1) brightness(.5); }
.deleted-note { margin: 0; font-size: 14px; color: var(--text-on-felt-2); }
.undo-help { margin: 0; font-size: 12.5px; color: var(--text-on-felt-2); opacity: .8; }
