.photo-upload-queue {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
}

.photo-upload-queue-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.photo-upload-queue-title {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.photo-upload-queue-help {
    max-width: 680px;
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.photo-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.photo-upload-action {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.photo-upload-camera {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.photo-upload-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.photo-upload-input-host {
    display: none !important;
}

.queued-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.queued-photo-card {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
}

.queued-photo-visual {
    display: grid;
    min-height: 130px;
    place-items: center;
    background: #eef2f7;
}

.queued-photo-visual img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.queued-photo-placeholder {
    padding: 18px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.queued-photo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
}

.queued-photo-label {
    overflow: hidden;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queued-photo-remove {
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.photo-upload-status,
.photo-upload-error {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.photo-upload-status {
    color: #475569;
}

.photo-upload-error {
    padding: 9px 11px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
}

@media (max-width: 640px) {
    .photo-upload-queue {
        padding: 14px;
    }

    .photo-upload-queue-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .photo-upload-live-count {
        align-self: flex-start;
    }

    .photo-upload-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .photo-upload-action {
        width: 100%;
    }

    .queued-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
